OSDN Git Service

474cc2cc90cd96672e02e9eb0c33b0b7473aa814
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-30  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/36967
4         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
5         Release defs of statements we remove.
6
7 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
8
9         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
10         instead of NULL_RTVEC.
11
12 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
13
14         PR target/35866
15
16         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
17         vector modes.
18
19 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
20
21        * final.c (call_from_call_insn): New.
22        (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
23
24 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
25
26         * configure.ac: Substitute ADA_CFLAGS.
27         * configure: Regenerate.
28         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
29         * Makefile.in: Remove mention of X_* variables.
30         * config/pa/x-ada-hpux10: Remove.
31         * config/pa/x-ada: Remove.
32
33         * doc/fragments.texi: Update.
34
35 2008-07-30  Olivier Hainque  <hainque@adacore.com>
36
37         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
38         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
39         __dso_handle explicitly here.
40
41 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
42
43         PR 34389
44         * c-typeck.c (build_binary_op): Encapsulate code into...
45         * c-common.c (shorten_binary_op): ...this new function.
46         (conversion_warning): Use the new function. Handle non-negative
47         constant in bitwise-and.
48         * c-common.h (shorten_binary_op): Declare.
49         
50 2008-07-30  Olivier Hainque  <hainque@adacore.com>
51
52         * scan.c (make_sstring_space): Add explicit conversions of
53         allocator's return value.
54         * fix-header.c (recognized_function): Likewise.
55
56 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57
58         * doc/cpp.texi: Update to GFDL 1.2.
59         * doc/gcc.texi: Do not list GPL as Invariant Section.
60         * doc/gccint.texi: Likewise.  Update copyright years.
61         * doc/install.texi: Update copyright years.
62
63 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
64
65         PR target/36955
66         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
67         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
68
69 2008-07-29  Jan Hubicka  <jh@suse.cz>
70
71         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
72         (grokdeclarator): Likewise.
73         * langhooks.c (lhd_warn_unused_global_decl): Use
74         DECL_DECLARED_INLINE_P.
75         * print-tree.c (print_node): Remove DECL_INLINE check.
76
77 2008-07-29  Richard Guenther  <rguenther@suse.de>
78
79         PR tree-optimization/36945
80         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
81         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
82         Record invariant addresses un-decomposed.
83         (copy_reference_ops_from_call): Record reference call
84         arguments properly.  Simplify.
85         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
86         helper split out from ...
87         (create_component_ref_by_pieces): ... here.  Simplify.
88         Prepare for recursive invocation for call arguments.
89         (create_expression_by_pieces): Adjust call to
90         create_component_ref_by_pieces.
91         (compute_avail): Process operand 2 of reference ops.
92
93 2008-07-29  Richard Guenther  <rguenther@suse.de>
94
95         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
96         OBJ_TYPE_REF.
97
98 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
99
100         * c-format.c (check_format_types): Revert unwanted checkin.
101
102 2008-07-29  Jan Hubicka  <jh@suse.cz>
103
104         * flags.h (flag_really_no_inline): Remove.
105         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
106         * toplev.c (flag_really_no_inline): Remove.
107         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
108         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
109         (cgraph_decide_inlining_incrementally): Likewise.
110         (compute_inline_parameters): Likewise.
111         * opts.c (decode_options): Simplify.
112         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
113         * common.opt (finline): Initialize to 1.
114         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
115
116 2008-07-29  Jan Hubicka  <jh@suse.cz>
117
118         * predict.c (always_optimize_for_size_p): New function.
119         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
120         optimize_edge_for_size_p, optimize_edge_for_speed_p,
121         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
122         functions.
123         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
124         * function.c (prepare_function_start): Set default profile.
125         * function.h (rtl_data): Add maybe_hot_insn_p.
126         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
127         (construct_exit_block): Likewise.
128         (tree_expand_cfg): Likewise.
129         * basic-block.h
130         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
131         optimize_edge_for_size_p, optimize_edge_for_speed_p,
132         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
133         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
134         Declare.
135
136 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
137
138         PR 34985
139         * c-decl.c (merge_decls): Merge USED flags.
140         
141 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
142
143         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
144         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
145         next_stack, lab_false and lab_over trees.
146
147 2008-07-28  Richard Guenther  <rguenther@suse.de>
148
149         PR tree-optimization/36957
150         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
151         (useless_type_conversion_p): Remove.
152         (types_compatible_p): Remove.
153         * gimple.h (tree_ssa_useless_type_conversion): Declare.
154         (useless_type_conversion_p): Declare.
155         (types_compatible_p): Declare.
156         (gimple_expr_type): Return the base type only if it is
157         trivially convertible to the subtype.
158
159 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
160
161         * configure.ac: Use the m4_do macro to concatenate the warnings into
162         one string in ACX_PROG_CC_WARNING_OPTS,
163         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
164         * configure: Regenerate.
165
166 2008-07-28  Richard Guenther  <rguenther@suse.de>
167
168         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
169         (insert_fake_stores): Remove.
170         (realify_fake_stores): Likewise.
171         (execute_pre): Remove dead code.
172         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
173         case.
174         (find_func_aliases): Deal with it here instead.
175         Re-enable gcc_unreachable call.
176
177 2008-07-28  Richard Guenther  <rguenther@suse.de>
178
179         Merge from gimple-tuples-branch.
180
181         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
182         * gimple.def: New file.
183         * gsstruct.def: Likewise.
184         * gimple-iterator.c: Likewise.
185         * gimple-pretty-print.c: Likewise.
186         * tree-gimple.c: Removed.  Merged into ...
187         * gimple.c: ... here.  New file.
188         * tree-gimple.h: Removed.  Merged into ...
189         * gimple.h: ... here.  New file.
190
191         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
192         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
193         --enable-checking=gimple flag.
194         * config.in: Likewise.
195         * configure: Regenerated.
196
197         * tree-ssa-operands.h: Tuplified.
198         * tree-vrp.c: Likewise.
199         * tree-loop-linear.c: Likewise.
200         * tree-into-ssa.c: Likewise.
201         * tree-ssa-loop-im.c: Likewise.
202         * tree-dump.c: Likewise.
203         * tree-complex.c: Likewise.
204         * cgraphbuild.c: Likewise.
205         * tree-ssa-threadupdate.c: Likewise.
206         * tree-ssa-loop-niter.c: Likewise.
207         * tree-pretty-print.c: Likewise.
208         * tracer.c: Likewise.
209         * gengtype.c: Likewise.
210         * tree-loop-distribution.c: Likewise.
211         * tree-ssa-loop-unswitch.c: Likewise.
212         * cgraph.c: Likewise.
213         * cgraph.h: Likewise.
214         * tree-ssa-loop-manip.c: Likewise.
215         * value-prof.c: Likewise.
216         * tree-ssa-loop-ch.c: Likewise.
217         * tree-tailcall.c: Likewise.
218         * value-prof.h: Likewise.
219         * tree.c: Likewise.
220         * tree.h: Likewise.
221         * tree-pass.h: Likewise.
222         * ipa-cp.c: Likewise.
223         * tree-scalar-evolution.c: Likewise.
224         * tree-scalar-evolution.h: Likewise.
225         * target.h: Likewise.
226         * lambda-mat.c: Likewise.
227         * tree-phinodes.c: Likewise.
228         * diagnostic.h: Likewise.
229         * builtins.c: Likewise.
230         * tree-ssa-alias-warnings.c: Likewise.
231         * cfghooks.c: Likewise.
232         * fold-const.c: Likewise.
233         * cfghooks.h: Likewise.
234         * omp-low.c: Likewise.
235         * tree-ssa-dse.c: Likewise.
236         * ipa-reference.c: Likewise.
237         * tree-ssa-uncprop.c: Likewise.
238         * toplev.c: Likewise.
239         * tree-gimple.c: Likewise.
240         * tree-gimple.h: Likewise.
241         * tree-chrec.c: Likewise.
242         * tree-chrec.h: Likewise.
243         * tree-ssa-sccvn.c: Likewise.
244         * tree-ssa-sccvn.h: Likewise.
245         * cgraphunit.c: Likewise.
246         * tree-ssa-copyrename.c: Likewise.
247         * tree-ssa-ccp.c: Likewise.
248         * tree-ssa-loop-ivopts.c: Likewise.
249         * tree-nomudflap.c: Likewise.
250         * tree-call-cdce.c: Likewise.
251         * ipa-pure-const.c: Likewise.
252         * c-format.c: Likewise.
253         * tree-stdarg.c: Likewise.
254         * tree-ssa-math-opts.c: Likewise.
255         * tree-ssa-dom.c: Likewise.
256         * tree-nrv.c: Likewise.
257         * tree-ssa-propagate.c: Likewise.
258         * ipa-utils.c: Likewise.
259         * tree-ssa-propagate.h: Likewise.
260         * tree-ssa-alias.c: Likewise.
261         * gimple-low.c: Likewise.
262         * tree-ssa-sink.c: Likewise.
263         * ipa-inline.c: Likewise.
264         * c-semantics.c: Likewise.
265         * dwarf2out.c: Likewise.
266         * expr.c: Likewise.
267         * tree-ssa-loop-ivcanon.c: Likewise.
268         * predict.c: Likewise.
269         * tree-ssa-loop.c: Likewise.
270         * tree-parloops.c: Likewise.
271         * tree-ssa-address.c: Likewise.
272         * tree-ssa-ifcombine.c: Likewise.
273         * matrix-reorg.c: Likewise.
274         * c-decl.c: Likewise.
275         * tree-eh.c: Likewise.
276         * c-pretty-print.c: Likewise.
277         * lambda-trans.c: Likewise.
278         * function.c: Likewise.
279         * langhooks.c: Likewise.
280         * ebitmap.h: Likewise.
281         * tree-vectorizer.c: Likewise.
282         * function.h: Likewise.
283         * langhooks.h: Likewise.
284         * tree-vectorizer.h: Likewise.
285         * ipa-type-escape.c: Likewise.
286         * ipa-type-escape.h: Likewise.
287         * domwalk.c: Likewise.
288         * tree-if-conv.c: Likewise.
289         * profile.c: Likewise.
290         * domwalk.h: Likewise.
291         * tree-data-ref.c: Likewise.
292         * tree-data-ref.h: Likewise.
293         * tree-flow-inline.h: Likewise.
294         * tree-affine.c: Likewise.
295         * tree-vect-analyze.c: Likewise.
296         * c-typeck.c: Likewise.
297         * gimplify.c: Likewise.
298         * coretypes.h: Likewise.
299         * tree-ssa-phiopt.c: Likewise.
300         * calls.c: Likewise.
301         * tree-ssa-coalesce.c: Likewise.
302         * tree.def: Likewise.
303         * tree-dfa.c: Likewise.
304         * except.c: Likewise.
305         * except.h: Likewise.
306         * cfgexpand.c: Likewise.
307         * tree-cfgcleanup.c: Likewise.
308         * tree-ssa-pre.c: Likewise.
309         * tree-ssa-live.c: Likewise.
310         * tree-sra.c: Likewise.
311         * tree-ssa-live.h: Likewise.
312         * tree-predcom.c: Likewise.
313         * lambda.h: Likewise.
314         * tree-mudflap.c: Likewise.
315         * ipa-prop.c: Likewise.
316         * print-tree.c: Likewise.
317         * tree-ssa-copy.c: Likewise.
318         * ipa-prop.h: Likewise.
319         * tree-ssa-forwprop.c: Likewise.
320         * ggc-page.c: Likewise.
321         * c-omp.c: Likewise.
322         * tree-ssa-dce.c: Likewise.
323         * tree-vect-patterns.c: Likewise.
324         * tree-ssa-ter.c: Likewise.
325         * tree-nested.c: Likewise.
326         * tree-ssa.c: Likewise.
327         * lambda-code.c: Likewise.
328         * tree-ssa-loop-prefetch.c: Likewise.
329         * tree-inline.c: Likewise.
330         * tree-inline.h: Likewise.
331         * tree-iterator.c: Likewise.
332         * tree-optimize.c: Likewise.
333         * tree-ssa-phiprop.c: Likewise.
334         * tree-vect-transform.c: Likewise.
335         * tree-object-size.c: Likewise.
336         * tree-outof-ssa.c: Likewise.
337         * cfgloop.c: Likewise.
338         * system.h: Likewise.
339         * tree-profile.c: Likewise.
340         * cfgloop.h: Likewise.
341         * c-gimplify.c: Likewise.
342         * c-common.c: Likewise.
343         * tree-vect-generic.c: Likewise.
344         * tree-flow.h: Likewise.
345         * c-common.h: Likewise.
346         * basic-block.h: Likewise.
347         * tree-ssa-structalias.c: Likewise.
348         * tree-switch-conversion.c: Likewise.
349         * tree-ssa-structalias.h: Likewise.
350         * tree-cfg.c: Likewise.
351         * passes.c: Likewise.
352         * ipa-struct-reorg.c: Likewise.
353         * ipa-struct-reorg.h: Likewise.
354         * tree-ssa-reassoc.c: Likewise.
355         * cfgrtl.c: Likewise.
356         * varpool.c: Likewise.
357         * stmt.c: Likewise.
358         * tree-ssanames.c: Likewise.
359         * tree-ssa-threadedge.c: Likewise.
360         * langhooks-def.h: Likewise.
361         * tree-ssa-operands.c: Likewise.
362         * config/alpha/alpha.c: Likewise.
363         * config/frv/frv.c: Likewise.
364         * config/s390/s390.c: Likewise.
365         * config/m32c/m32c.c: Likewise.
366         * config/m32c/m32c-protos.h: Likewise.
367         * config/spu/spu.c: Likewise.
368         * config/sparc/sparc.c: Likewise.
369         * config/i386/i386.c: Likewise.
370         * config/sh/sh.c: Likewise.
371         * config/xtensa/xtensa.c: Likewise.
372         * config/stormy16/stormy16.c: Likewise.
373         * config/ia64/ia64.c: Likewise.
374         * config/rs6000/rs6000.c: Likewise.
375         * config/pa/pa.c: Likewise.
376         * config/mips/mips.c: Likewise.
377
378 2008-07-28  Simon Baldwin  <simonb@google.com>
379
380         * c-pragma.c (handle_pragma_message): New function.
381         (init_pragma): Register handle_pragma_message.
382         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
383         documentation.
384
385 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
386
387         PR tree-optimization/35252
388         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
389         REALPART_EXPR to be considered as same load operation.
390
391 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
392
393         PR tree-optimization/36830
394         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
395         (expressions_equal_p): Return false if only one operand is null.
396
397 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
398
399         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
400         version requirements.
401
402 2008-07-26  Olivier Hainque  <hainque@adacore.com>
403
404         * collect2.c (symkind): New enum.  Symbol kinds we care about.
405         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
406         code and head comment accordingly.
407         (scan_prog_file): Use symkind names instead of bare integers.
408         
409 2008-07-25  Jan Hubicka  <jh@suse.cz>
410
411         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
412         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
413         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
414         * dojump.c (clear_pending_stack_adjust): Likewise.
415         * print-tree.c (print_node): Ignore DECL_INLINE.
416         * tree-inline.c (inlinable_function_p): Likewise.
417         
418 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
419
420         * doc/extend.texi (hot attribute): Document that the hot attribute
421         turns on -O3 for some ports.
422         (cold attribute): Document that the cold attribute turns on -Os
423         for some ports
424
425         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
426         reflect function specific option support.
427
428         * target.h (struct target_option_hooks): Add fields to say whether
429         the cold attribute implies -Os and the hot attribute implies -O3.
430
431         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
432         By default, do not turn on -Os for cold functions.
433         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
434         not turn on -O3 for hot functions.
435
436         * c-common.c (handle_hot_attribute): Use target hook to determine
437         if hot functions should enable -O3.
438         (handle_cold_attribute): Use target hook to determine if cold
439         functions should enable -Os.
440
441         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
442         (override_options): Move disable scheduling to
443         optimization_options.
444         (optimization_options): Disable scheduling here, not
445         override_options.
446         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
447         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
448
449         * config/ia64/ia64.c (ia64_override_options): Move setting
450         scheduling flags to ia64_optimization_options.
451         (ia64_optimization_options): Disable scheduling options here, and
452         not in ia64_override_options.
453         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
454         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
455
456 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
457
458         PR target/36936
459         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
460
461 2008-07-25  Martin Jambor  <mjambor@suse.cz>
462
463         PR tree-optimization/36926
464         * ipa-prop.c (ipa_analyze_call_uses): Call
465         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
466
467 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
468
469         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
470         movv2si_internal): Add mem = reg alternative.
471
472 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
473
474         PR bootstrap/36918
475         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
476         DEFAULT_PCC_STRUCT_RETURN to 127.
477
478 2008-07-24  Jan Hubicka  <jh@suse.cz>
479
480         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
481         (build_cgraph_edges): Likewise.
482         * cgraph.c (cgraph_node): Do not update assembler hash.
483         (cgraph_remove_node): Drop non-unit-at-a-time code.
484         * tree-pass.h (pass_O0_always_inline): Remove.
485         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
486         * toplev.c (process_options): Flag unit-at-a-time does not imply
487         no section anchors.
488         * cgraphunit.c: Update comments.
489         (decide_is_function_needed): Drop non-unit-at-a-time mode.
490         (cgraph_assemble_pending_functions): Remove.
491         (cgraph_reset_node): Drop non-unit-at-a-time code.
492         (cgraph_finalize_function): Likewise.
493         (cgraph_analyze_function): Likewise.
494         (cgraph_finalize_compilation_unit): Likewise.
495         (cgraph_expand_function): Likewise.
496         (cgraph_optimize): Likesise.
497         (save_inline_function_body): Likewise.
498         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
499         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
500         * ipa-inline.c: Update comments.
501         (enum inlining_mode): remove INLINE_SPEED.
502         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
503         (cgraph_mark_inline_edge): Likewise.
504         (try_inline): Likewise.
505         (cgraph_decide_inlining_incrementally): Likewise.
506         (cgraph_gate_inlining): Remove.
507         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
508         (cgraph_gate_early_inlining): Likewise.
509         (gate_inline_passes): Remove.
510         (pass_inline_parameters, pass_ipa_inline): Remove gates.
511         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline, 
512         pass_O0_always_inline): Remove.
513         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
514         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
515         * opts.c (no_unit_at_a_time_default): Remove.
516         (decode_options): Remove flag_unit_at_a_time reset and warning.
517         * opts.h (no_unit_at_a_time_default): Remove.
518         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
519         early in GNU dialect.
520         (merge_decls): Update comment; drop unit-at-a-time check.
521         (finish_decl): Likewise.
522         (grok_declaration): Remove flag_inline_trees code.
523         (finish_functions): Return on function returning non-void on all
524         statics.
525         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
526         * cfgexpand.c (expand_one_static_var): Remove.
527         (expand_one_var): Remove expand_one_static_var call.
528         (expand_used_vars_for_block): Remove flag_unit_a_time check.
529         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
530         and flag_unit_at_a-time compatibility checks.
531         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
532         * tree-inline.c (flag_inline_trees): Remove.
533         (inlinable_function_p): Don't check it.
534         (expand_call_inline): Remove non-unit-at-a-time code.
535         * tree-inline.h (flag_inline_trees): Remove.
536         * tree-optimize.c (execute_early_local_optimizations): Remove
537         unit-at-a-time checks.
538         (tree_rest_of_compilation): Likewise.
539         * combine.c (setup_incoming_promotions): Likewise.
540         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
541         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
542         * passes.c (pass_inline_parameters): Update comments; remove
543         O0_alwaysinline pass.
544         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
545         (execute_one_pass): Likewise.
546         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
547         (ix86_function_sseregparm): Likewise.
548         * arm.c (arm_function_in_section_p): Likewise.
549         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
550         * varpool.c: Update comments.
551         (decide_is_variable_needed): Remove unit-at-a-time checks.
552         (varpool_finalize_decl): Likewise.
553
554 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
555
556         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
557         to 2 instead of -1.
558         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
559         to 2.
560
561 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
562
563         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
564         imp symbol extension.
565
566         2008-07-23  Ian Lance Taylor  <iant@google.com>
567
568         * tree-vrp.c (infer_value_range): Ignore asm statements when
569         looking for memory accesses for -fdelete-null-pointer-checks.
570
571 2008-07-24  Ben Elliston  <bje@au.ibm.com>
572
573         * config/spu/spu-c.c (__vector_keyword): New variable.
574         (vector_keyword): Likewise.
575         (spu_categorize_keyword): New function.
576         (spu_macro_to_expand): Likewise.
577         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
578         compiling an ISO C dialect.
579
580 2008-07-24  Ben Elliston  <bje@au.ibm.com>
581
582         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
583         conventional usage.
584
585 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
586
587         * configure: Regenerate.
588         * configure.ac: Require texinfo 4.7.
589         * doc/install.texi: Document texinfo 4.7 requirement.
590
591 2008-07-23  Martin Jambor  <mjambor@suse.cz>
592
593         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
594         rather than for DECL_SAVED_TREE.
595         * ipa-prop.c: Include diagnostic.h.
596         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
597         thoroughly.
598         (ipa_detect_param_modifications): Function rewritten from scratch.
599         (ipa_compute_jump_functions): Changed accesses to modification flags.
600         (ipa_free_node_params_substructures): Update flags destruction.
601         (ipa_node_duplication_hook): Update flags duplication.
602         (ipa_print_all_params_modified): Updated flag access.
603         * ipa-prop.h (struct ipa_param_flags): New structure.
604         (struct ipa_node_params): New field modification_analysis_done,
605         modified_flags changed into param_flags.
606         (ipa_is_ith_param_modified): Changed to use new flags.
607         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
608
609         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
610         ipa-cp.c and split into two functions.
611         (ipa_print_node_jump_functions): New function.
612         (compute_scalar_jump_functions): New function.
613         (type_like_member_ptr_p): New function.
614         (compute_pass_through_member_ptrs): New function.
615         (fill_member_ptr_cst_jump_function): New function.
616         (determine_cst_member_ptr): New function.
617         (compute_cst_member_ptr_arguments): New function.
618         (ipa_compute_jump_functions): Complete rewrite.
619         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
620         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
621         (struct ipa_member_ptr_cst): New structure.
622         (union jump_func_value): New field member_cst.
623         * ipa-cp.c (ipcp_lat_is_insertable): New function.
624         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
625         jump function types.
626         (ipcp_print_all_lattices): Slight fprintf rearrangement.
627         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
628         instead of ipcp_print_all_jump_functions.
629         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
630         only for replacable scalars.
631
632         * doc/invoke.texi (Optimize options): Add description of
633         -findirect-inlining.
634         * common.opt (flag_indirect_inlining): New flag.
635         * opts.c (decode_options): Set flag_indirect_inlining when 
636         optimize >= 3.
637
638         * ipa-inline.c: Include ipa-prop.h.
639         (inline_indirect_intraprocedural_analysis): New function.
640         (inline_generate_summary): Allocate parameter and argument info
641         structures, call inline_indirect_intraprocedural_analysis on each
642         node when doing indirect inlining and deallocate indirect inlining 
643         data structures in the end.
644         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
645         (free_all_ipa_structures_after_iinln): New function.
646         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be 
647         done.
648         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
649
650         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
651         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
652         of computing the frequency separately.
653         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
654         of computing the frequency separately.
655         * ipa-cp.c (ipcp_print_all_structures): Replace a call to 
656         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
657         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
658         (ipa_get_stmt_member_ptr_load_param): New function.
659         (ipa_is_ssa_with_stmt_def): New function.
660         (ipa_note_param_call): New function.
661         (ipa_analyze_call_uses): New function.
662         (ipa_analyze_stmt_uses): New function.
663         (ipa_analyze_params_uses): New function.
664         (ipa_free_node_params_substructures): Also free the param_calls linked
665         list.
666         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
667         (ipa_print_node_param_flags): New function.
668         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
669         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
670         * ipa-prop.h (struct ipa_param_flags): New field called.
671         (struct ipa_param_call_note): New structure.
672         (struct ipa_node_params): New fields param_calls and
673         uses_analysis_done.
674         (ipa_is_ith_param_called): New function.
675         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
676         ipa_analyze_params_uses and dump parameter flags.
677
678         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
679         ipa_propagate_indirect_call_infos if performing indirect inlining,
680         pass a new parameter new_edges to it.
681         (add_new_edges_to_heap): New fucntion.
682         (cgraph_decide_inlining_of_small_functions): New vector
683         new_indirect_edges for newly found indirect edges , call
684         ipa_propagate_indirect_call_infos after inlining.
685         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
686         inlining if performing indirect inlining.  Call
687         free_all_ipa_structures_after_iinln when doing so too.
688         (inline_generate_summary): Do not call
689         free_all_ipa_structures_after_iinln here.
690         * ipa-prop.c (update_jump_functions_after_inlining): New function.
691         (print_edge_addition_message): New function.
692         (update_call_notes_after_inlining): New function.
693         (propagate_info_to_inlined_callees): New function.
694         (ipa_propagate_indirect_call_infos): New function.
695         * ipa-prop.h: Include cgraph.h
696         (struct ipa_param_call_note): Fields reordered, new field processed.
697         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
698         flag indirect_call.
699         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
700         rediscovered call statements.
701         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
702         (dump_cgraph_node): Dump also the indirect_call flag.
703         (cgraph_clone_edge): Copy also the indirect_call flag.
704         * tree-inline.c (copy_bb): Do not check for fndecls from call
705         expressions, check for edge availability when moving clones.
706         (get_indirect_callee_fndecl): New function.
707         (expand_call_inline): If callee declaration is not apprent from
708         the statement, try calling get_indirect_callee_fndecl.  Do not
709         issue warnings or call sorry when not inlinings an indirect edge.
710         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
711
712         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
713         bit more frandly to matching.
714         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
715         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
716         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
717         
718 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
719
720         PR 36907
721         * opth-gen.awk: Suppress function specific features when building
722         target libraries.
723         * optc-gen.awk: Ditto.
724
725 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
726
727         PR 35058
728         * diagnostic.c (pedwarn): Add opt parameter.
729         (pedwarn0): New.
730         * c-tree.h (pedwarn_init): Add opt parameter.
731         (pedwarn_c90): Likewise.
732         (pedwarn_c99): Likewise.
733         * c-errors.c (pedwarn_c99): Likewise.
734         (pedwarn_c90): Likewise.
735         * toplev.h (pedwarn): Update declaration.
736         (pedwarn0): Declare.
737         * c-lex.c: All calls to pedwarn changed.
738         * builtins.c: All calls to pedwarn changed.
739         * toplev.c: All calls to pedwarn changed.
740         * c-decl.c: All calls to pedwarn changed.
741         * c-typeck.c: All calls to pedwarn changed.
742         * c-common.c: All calls to pedwarn changed.
743         * c-parser.c: All calls to pedwarn changed.
744         
745 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
746             Karthik Kumar  <karthikkumar@gmail.com>
747
748         * attribs.c (file scope): Include c-common.h.
749         (decl_attributes): Add support for #pragma GCC optimize and
750         #pragma GCC option.
751
752         * targhooks.c (default_can_inline_p): New function that is the
753         default for the TARGET_CAN_INLINE_P target hook.
754
755         * targhooks.h (default_can_inline_p): Add declaration.
756
757         * tree.c (cl_optimization_node): New static tree for building
758         OPTIMIZATION_NODE tree.
759         (cl_target_option_node): New static tree for building
760         TARGET_OPTION_NODE tree.
761         (cl_option_hash_table): New hash table for hashing
762         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
763         (cl_option_hash_hash): New function to provide the hash value for
764         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
765         (cl_option_hash_eq): New function to provide an equality test for
766         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
767         (tree_code_size): Add support for OPTIMIZATION_NODE and
768         TARGET_OPTION_NODE trees.
769         (tree_code_structure): Add support for OPTIMIZATION_NODE and
770         TARGET_OPTION_NODE trees.
771         (build_optimization_node): Build a tree that has all of the
772         current optimization options.
773         (build_target_option_node): Build a tree that has the target
774         options that might be changed on a per function basis.
775
776         * tree.h (file scope): Include options.h.
777         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
778         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
779         (TREE_OPTIMIZATION): Ditto.
780         (TREE_TARGET_SPECIFIC): Ditto.
781         (struct tree_function_decl): Add fields for remembering the
782         current optimization options and target specific options.
783         (struct tree_optimization_option): New tree variant that remembers
784         the optimization options.
785         (struct tree_target_option): New tree variant that remembers the
786         target specific flags that might change for compiling a particular
787         function.
788         (union tree_node): Include tree_optimization_option and
789         tree_target_option fields.
790         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
791         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
792         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
793         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
794         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
795         optimization and target options.
796         (optimization_default_node): New macro to refer to global_trees
797         field.
798         (optimization_current_node): Ditto.
799         (optimization_cold_node): Ditto.
800         (optimization_hot_node): Ditto.
801         (target_option_default_node): Ditto.
802         (target_option_current_node): Ditto.
803         (current_option_pragma): Ditto.
804         (current_optimize_pragma): Ditto.
805
806         * target.h (struct gcc_target): Add valid_option_attribute_p,
807         target_option_save, target_option_restore, target_option_print,
808         target_option_pragma_parse, and can_inline_p hooks.
809
810         * toplev.h (parse_optimize_options): Add declaration.
811         (fast_math_flags_struct_set_p): Ditto.
812
813         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
814         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
815         optimize is used.
816
817         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
818         tree_can_inline_p hook to see if one function can inline another.
819         (cgraph_decide_inlining): Ditto.
820         (cgraph_decide_inlining_incrementally): Ditto.
821
822         * opts.c (decode_options): Add support for running multiple times
823         to allow functions with different target or optimization options
824         than was specified on the command line.
825         (fast_math_flags_struct_set_p): New function that is similar to
826         fast_math_flags_set_p, except it uses the values in the
827         cl_optimization structure instead of global variables.
828
829         * optc-gen.awk: Add support for TargetSave to allow a back end to
830         declare new fields that need to be saved when using function
831         specific options.  Include flags.h and target.h in the options.c
832         source.  Add support for Save to indicate which options can be set
833         for individual functions.  Generate cl_optimize_save,
834         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
835         cl_target_option_restore, cl_target_option_print functions to
836         allow functions to use different optimization or target options.
837
838         * opt-functions.awk (var_type_struct): Return the type used for
839         storing the field in a structure.
840
841         * opth-gen.awk: Add support for TargetSave to allow a back end to
842         declare new fields that need to be saved when using function
843         specific options.  Add support for Save to indicate which options
844         can be set for individual functions.  Only generate one extern for
845         Mask fields.  Generate cl_optimization and cl_target_option
846         structures to remember optimization and target options.
847
848         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
849         collecting new tree nodes.
850         (TS_TARGET_OPTION): Ditto.
851
852         * c-decl.c (merge_decls): Merge function specific target and
853         optimization options.
854
855         * function.c (invoke_set_current_function_hook): If the function
856         uses different optimization options, change the global variables
857         to reflect this.
858
859         * coretypes.h (struct cl_optimization): Add forward reference.
860         (struct cl_target_option): Ditto.
861
862         * c-pragma.c (option_stack): New static vector to remember the
863         current #pragma GCC option stack.
864         (handle_pragma_option): New function to support #pragma GCC option
865         to change target options.
866         (optimize_stack): New static vector to remember the current
867         #pragma GCC optimize stack.
868         (handle_pragma_optimize): New function to support #pragma GCC
869         optimize to change optimization options.
870         (init_pragma): Add support for #pragma GCC optimize and #pragma
871         GCC option.
872
873         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
874         optimization options.
875         (TARGET_OPTION_NODE): New tree code for remembering certain target
876         options.
877
878         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
879         TARGET_OPTION_NODE trees.
880
881         * common.opt (-O): Add Optimization flag.
882         (-Os): Ditto.
883         (-fmath-errno): Ditto.
884         (-falign-functions): Add UInteger flag to make sure flag gets full
885         int in cl_optimization structure.
886         (-falign-jumps): Ditto.
887         (-falign-labels): Ditto.
888         (-falign-loops): Ditto.
889         (-fsched-stalled-insns): Ditto.
890         (-fsched-stalled-insns-dep): Ditto.
891
892         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
893         definition.
894         (TARGET_OPTION_SAVE): Ditto.
895         (TARGET_OPTION_RESTORE): Ditto.
896         (TARGET_OPTION_PRINT): Ditto.
897         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
898         (TARGET_CAN_INLINE_P): Ditto.
899         (TARGET_INITIALIZER): Add new hooks.
900
901         * tree-inline.c (tree_can_inline_p): New function to determine
902         whether one function can inline another.  Check if the functions
903         use compatible optimization options, and also call the backend
904         can_inline_p hook.
905
906         * tree-inline.h (tree_can_inline_p): Add declaration.
907
908         * c-common.c (c_common_attribute): Add support for option and
909         optimize attributes.
910         (handle_option_attribute): Add support for the option attribute to
911         allow the user to specify different target options for compiling a
912         specific function.
913         (handle_optimize_attribute): Add support for the optimize
914         attribute to allow the user to specify different optimization
915         options for compiling a specific function.
916         (handle_hot_attribute): Turn on -O3 optimization for this one
917         function if it isn't the default optimization level.
918         (handle_cold_attribute): Turn on -Os optimization for this one
919         function if it insn't the default optimization.
920         (const_char_p): New const char * typedef.
921         (optimize_args): New static vector to remember the optimization
922         arguments.
923         (parse_optimize_options): New function to set up the optimization
924         arguments from either the optimize attribute or #pragma GCC
925         optimize.
926
927         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
928         (builtin_define_std): Ditto.
929
930         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
931         Add t-i386 Makefile fragment to add i386-c.o and i386.o
932         dependencies.
933         (x86_64-*-*): Ditto.
934
935         * Makefile.in (TREE_H): Add options.h.
936         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
937
938         * doc/extend.texi (option attribute): Document new attribute.
939         (optimize attribute): Ditto.
940         (hot attribute): Document hot attribute sets -O3.
941         (cold attribute): Document cold attribute sets -Os.
942         (#pragma GCC option): Document new pragma.
943         (#pragma GCC optimize): Ditto.
944
945         * doc/options.texi (TargetSave): Document TargetSave syntax.
946         (UInteger): Document UInteger must be used for certain flags.
947         (Save): Document Save option to create target specific options
948         that can be saved/restored on a function specific context.
949
950         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
951         macro.
952         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
953
954         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
955         hook.
956         (TARGET_OPTION_SAVE): Ditto.
957         (TARGET_OPTION_RESTORE): Ditto.
958         (TARGET_OPTION_PRINT): Ditto.
959         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
960         (TARGET_CAN_INLINE_P): Ditto.
961
962         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
963         -mfpmath=sse,387.
964         (-mfpmath=both): Ditto.
965
966 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
967             Karthik Kumar  <karthikkumar@gmail.com>
968
969         * config/i386/i386.h (TARGET_ABM): Move switch into
970         ix86_isa_flags.
971         (TARGET_POPCNT): Ditto.
972         (TARGET_SAHF): Ditto.
973         (TARGET_AES): Ditto.
974         (TARGET_PCLMUL): Ditto.
975         (TARGET_CMPXCHG16B): Ditto.
976         (TARGET_RECIP): Move switch into target_flags.
977         (TARGET_FUSED_MADD): Ditto.
978         (ix86_arch_features): Make an unsigned char type.
979         (ix86_tune_features): Ditto.
980         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
981         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
982         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
983
984         * config/i386/i386.opt (arch): New TargetSave field to define
985         fields that need to be saved for function specific option
986         support.
987         (tune): Ditto.
988         (fpmath): Ditto.
989         (branch_cost): Ditto.
990         (ix86_isa_flags_explicit): Ditto.
991         (tune_defaulted): Ditto.
992         (arch_specified): Ditto.
993         (-m128-long-double): Add Save flag to save option for target
994         specific option support.
995         (-m80387): Ditto.
996         (-maccumulate-outgoing-args): Ditto.
997         (-malign-double): Ditto.
998         (-malign-stringops): Ditto.
999         (-mfancy-math-387): Ditto.
1000         (-mhard-float): Ditto.
1001         (-mieee-fp): Ditto.
1002         (-minline-all-stringops): Ditto.
1003         (-minline-stringops-dynamically): Ditto.
1004         (-mms-bitfields): Ditto.
1005         (-mno-align-stringops): Ditto.
1006         (-mno-fancy-math-387): Ditto.
1007         (-mno-push-args): Ditto.
1008         (-mno-red-zone): Ditto.
1009         (-mpush-args): Ditto.
1010         (-mred-zone): Ditto.
1011         (-mrtd): Ditto.
1012         (-msseregparm): Ditto.
1013         (-mstack-arg-probe): Ditto.
1014         (-m32): Ditto.
1015         (-m64): Ditto.
1016         (-mmmx): Ditto.
1017         (-m3dnow): Ditto.
1018         (-m3dnowa): Ditto.
1019         (-msse): Ditto.
1020         (-msse2): Ditto.
1021         (-msse3): Ditto.
1022         (-msse4.1): Ditto.
1023         (-msse4.2): Ditto.
1024         (-msse4): Ditto.
1025         (-mno-sse4): Ditto.
1026         (-msse4a): Ditto.
1027         (-msse5): Ditto.
1028         (-mrecip): Move flag into target_flags.
1029         (-mcld): Ditto.
1030         (-mno-fused-madd): Ditto.
1031         (-mfused-madd): Ditto.
1032         (-mabm): Move flag into ix86_isa_flags.
1033         (-mcx16): Ditto.
1034         (-mpopcnt): Ditto.
1035         (-msahf): Ditto.
1036         (-maes): Ditto.
1037         (-mpclmul): Ditto.
1038
1039         * config/i386/i386-c.c: New file for #pragma support.
1040         (ix86_target_macros_internal): New function to #define or #undef
1041         target macros based when the user uses the #pragma GCC option to
1042         change target options.
1043         (ix86_pragma_option_parse): New function to add #pragma GCC option
1044         support.
1045         (ix86_target_macros): Move defining the target macros here from
1046         TARGET_CPU_CPP_BUILTINS in i386.h.
1047         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
1048         defined, initialize any subtarget #pragmas.
1049
1050         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1051         REGISTER_TARGET_PRAGMAS.
1052
1053         * config/i386/t-i386: New file for x86 dependencies.
1054         (i386.o): Make dependencies mirror the include files used.
1055         (i386-c.o): New file, add dependencies.
1056
1057         * config/i386/i386-protos.h (override_options): Add bool
1058         argument.
1059         (ix86_valid_option_attribute_tree): Add declaration.
1060         (ix86_target_macros): Ditto.
1061         (ix86_register_macros): Ditto.
1062
1063         * config/i386/i386.c (ix86_tune_features): Move initialization of
1064         the target masks to initial_ix86_tune_features to allow functions
1065         to have different target options.  Make type unsigned char,
1066         instead of unsigned int.
1067         (initial_ix86_tune_features): New static vector to hold processor
1068         masks for the tune variables.
1069         (ix86_arch_features): Move initialization of the target masks to
1070         initial_ix86_arch_features to allow functions to have different
1071         target options.  Make type unsigned char, instead of unsigned
1072         int.
1073         (initial_ix86_arch_features): New static vector to hold processor
1074         masks for the arch variables.
1075         (enum ix86_function_specific_strings): New enum to describe the
1076         string options used for attribute((option(...))).
1077         (ix86_target_string): New function to return a string that
1078         describes the target options.
1079         (ix86_debug_options): New function to print the current options in
1080         the debugger.
1081         (ix86_function_specific_save): New function hook to save the
1082         function specific global variables in the cl_target_option
1083         structure.
1084         (ix86_function_specific_restore): New function hook to restore the
1085         function specific variables from the cl_target_option structure to
1086         the global variables.
1087         (ix86_function_specific_print): New function hook to print the
1088         target specific options in the cl_target_option structure.
1089         (ix86_valid_option_attribute_p): New function hook to validate
1090         attribute((option(...))) arguments.
1091         (ix86_valid_option_attribute_tree): New function that is common
1092         code between attribute((option(...))) and #pragma GCC option
1093         support that parses the options and returns a tree holding the
1094         options.
1095         (ix86_valid_option_attribute_inner_p): New helper function for
1096         ix86_valid_option_attribute_tree.
1097         (ix86_can_inline_p): New function hook to decide if one function
1098         can inline another on a target specific basis.
1099         (ix86_set_current_function); New function hook to switch target
1100         options if the user used attribute((option(...))) or #pragma GCC
1101         option.
1102         (ix86_tune_defaulted): Move to static file scope from
1103         override_options.
1104         (ix86_arch_specified): Ditto.
1105         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1106         ix86_isa_flags.
1107         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1108         (OPTION_MASK_ISA_ABM_SET): Ditto.
1109         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1110         (OPTION_MASK_ISA_CX16_SET): Ditto.
1111         (OPTION_MASK_ISA_SAHF_SET): Ditto.
1112         (OPTION_MASK_ISA_AES_UNSET): Ditto.
1113         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1114         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1115         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1116         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1117         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1118         (struct ptt): Move to static file scope from override_options.
1119         (processor_target_table): Ditto.
1120         (cpu_names): Ditto.
1121         (ix86_handle_option): Add support for options that are now isa
1122         options.
1123         (override_options): Add support for declaring functions that
1124         support different target options than were specified on the
1125         command line.  Move struct ptt, processor_target_table, cpu_names,
1126         ix86_tune_defaulted, ix86_arch_specified to static file scope.
1127         Add bool argument.  Fix up error messages so the appropriate error
1128         is given for either command line or attribute.
1129         (ix86_previous_fndecl): New static to remember previous function
1130         declaration to see if we need to change target options.
1131         (ix86_builtins_isa): New array to record the ISA of each builtin
1132         function.
1133         (def_builtin): Always create the builtin function, even if the
1134         current ISA doesn't support it.
1135         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1136         tests for those builtins.
1137         (ix86_init_builtins): Remove TARGET_MMX test for calling
1138         ix86_init_mmx_sse_builtins.
1139         (ix86_expand_builtin): If the current ISA doesn't support a given
1140         builtin, signal an error.
1141         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1142         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1143         (TARGET_OPTION_SAVE): Ditto.
1144         (TARGET_OPTION_RESTORE): Ditto.
1145         (TARGET_OPTION_PRINT): Ditto.
1146         (TARGET_CAN_INLINE_P): Ditto.
1147
1148 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1149
1150        * c-typeck.c (build_external_ref): Don't call assemble_external.
1151        * final.c (output_operand): Call assemble_external.
1152
1153 2008-07-21  DJ Delorie  <dj@redhat.com>
1154
1155         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1156         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1157
1158 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1159
1160         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1161         original insn and splitter contents into ...
1162         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1163         flag_unsafe_math_optimizations.  Add dummy scratch register.
1164         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1165         !flag_unsafe_math_optimizations.  Returns number with next
1166         highest magnitude if this is still less or equal to the true
1167         quotient in magnitude.
1168
1169 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1170
1171         * Makefile.in: Replace toplev.h with TOPLEV_H.
1172         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1173         * c-lex.c (fe_file_change): Don't set in_system_header.
1174         * c-parser.c (c_token): Remove in_system_header.
1175         (c_lex_one_token): Don't set in_system_header.
1176         (c_parser_set_source_position_from_token): Don't set in_system_header.
1177         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1178         diagnostic_info.
1179         (warning_at): New.
1180         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1181         * flags.h (in_system_header): Remove.
1182         * function.c (saved_in_system_header): Remove.
1183         (push_cfun): Don't set in_system_header.
1184         (pop_cfun): Don't set in_system_header.
1185         (push_struct_function): Don't set in_system_header.
1186         * input.h (expanded_location): Add sysp.
1187         (in_system_header_at): New.
1188         (in_system_header): New.
1189         * toplev.c (in_system_header): Remove.
1190         * toplev.h: Include input.h
1191         (warning_at): New.
1192         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1193         * tree-ssa.c (warn_uninit): Call warning_at.
1194         (warn_uninitialized_var): Update calls to warn_uninit.
1195         (warn_uninitialized_phi): Update calls to warn_uninit.
1196         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1197         (expand_location): Initialize xloc.sysp.
1198         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1199         (tree_decl_with_vis): Remove in_system_header_flag.
1200
1201 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1202
1203         PR target/36822
1204         * recog.c (asm_operand_ok): Change the order of the extra
1205         memory constraint checks.
1206
1207 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1208
1209         PR tree-opt/36879
1210         * tree-switch-conversion.c (build_one_array): Call
1211         varpool_mark_needed_node and varpool_finalize_decl 
1212         instead of assemble_variable.
1213
1214 2008-07-19  Jan Hubicka  <jh@suse.cz>
1215
1216         * cgraph.c (cgraph_add_new_function): Do early local passes.
1217         * tree-nrv.c (gate_pass_return_slot): New gate.
1218         (pass_nrv): Add the gate.
1219         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1220         functions.
1221         (coalesce_ssa_name): Coalesce SSA names.
1222         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1223         not optimizing so unused user vars remains visible.
1224         * common.opt (flag_tree_ter): Always enable by default.
1225         * tree-ssa-ter.c: Include flags.h
1226         (is_replaceable_p): Check that locations match; when aliasing is missing
1227         be conservative about loads.
1228         * tree-optimize.c (gate_init_datastructures): Remove.
1229         (pass_init_datastructures): New.
1230         * passes.c: Reorder passes so we always go into SSA.
1231
1232 2008-07-19  Jan Hubicka  <jh@suse.cz>
1233
1234         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1235         * doc/invoke.texi (--combine): Likewise.
1236         (-finline-functions-called-once): Update levels when enabled.
1237         (-funit-at-a-time): Document new behaviour.
1238         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1239         -fno-section-anchors when disabled explicitly.
1240         (inline params): They are not ignored now.
1241         (precompiled headers): Remove unit-at-a-time as being incompatible.
1242         * opts.c (decode_options): Handle unit-at-a-time as alias;
1243         imply -fno-section-anchors when toplevel reorder is disabled
1244         explicitly.
1245         * common.opt (ftoplevel-reorder): Set default value to 2.
1246         (funit-at-a-time): Set default value to 1.
1247         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1248         to 2.
1249
1250 2008-07-19  Jan Hubicka  <jh@suse.cz>
1251
1252         * builtins.c (expand_builtin_int_roundingfn,
1253         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1254         it is not useful.
1255
1256 2008-07-19  Richard Guenther  <rguenther@suse.de>
1257
1258         PR bootstrap/36864
1259         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1260         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1261         * tree-ssa-pre.c (get_expr_value_id): For newly created
1262         constant value-ids make sure to add the expression to its
1263         expression-set.
1264
1265 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1266
1267         PR middle-end/36877
1268         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1269         return value of the builtin is ignored.
1270
1271 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1272
1273         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1274         bits, a C conformant malloc implementation has to provide.
1275         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1276
1277 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1278
1279         PR target/36780
1280         PR target/36827
1281         * reload.c (find_reloads_subreg_address): Only reload address if
1282         reloaded == 0, not for reloaded != 1.
1283
1284         Revert:
1285         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1286         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1287         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1288         m32c_legitimize_reload_address.
1289
1290         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1291         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1292         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1293
1294 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1295
1296         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1297         argument, saying whether nested array are to be collapsed
1298         into a single array type DIE with multiple subscripts.
1299         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1300         issues, centralize the nested array types collapsing control and
1301         disable the transformation for Ada.
1302         
1303 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1304
1305         PR target/36786
1306         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1307         x86_64_shift_adj.
1308         (x86_64_shift_adj_2): New expander.
1309         (x86_64_shift_adj_3): Ditto.
1310         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1311         to split TImode operands.
1312         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1313         (ix86_split_lshr): Ditto.
1314
1315 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1316
1317         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1318         and __CHAR32_TYPE__.
1319         * c-typeck.c (digest_init): Support char16_t and char32_t.
1320         (set_nonincremental_init_from_string): Idem.
1321
1322 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         PR middle-end/36859
1325         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1326         PREFERRED_STACK_BOUNDARY.
1327         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1328
1329 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1330
1331         PR middle-end/36858
1332         * function.c (locate_and_pad_parm): Cap boundary earlier.
1333
1334 2008-07-17  Julian Brown  <julian@codesourcery.com>
1335
1336         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1337         no-op for targets which don't use DLLs.
1338
1339 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1340
1341         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1342         that nodes are relevant by examining the node->analyzed flag.
1343         (ipcp_init_stage): Check which nodes are relevant, assert that the
1344         relevant ones are also required.
1345         (ipcp_propagate_stage): Check on the side arrays are properly
1346         allocated.
1347         (ipcp_print_all_jump_functions): Make sure not to touch any node
1348         that is not analyzed or an edge that does not have a corresponding
1349         entry in the on-the-side vectors.
1350         (ipcp_function_scale_print): Likewise.
1351         (ipcp_update_callgraph): Check that the node is relevant.
1352         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1353         an info for every node and edge.
1354         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1355         (ipa_print_all_tree_maps): Likewise and a new variable info.
1356         (ipa_print_all_params_modified): Likewise.
1357         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1358
1359 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1360
1361         PR target/25343
1362         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1363
1364 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1365
1366         PR rtl-optimization/36753
1367         * fwprop.c (use_killed_between): Don't shortcut
1368         single-definition global registers.
1369
1370 2008-07-16  Jan Hubicka  <jh@suse.cz>
1371
1372         * cgraph.h (varpool_empty_needed_queue): Declare.
1373         * cgraphunit.c (output_in_order): Mark all variables as needed;
1374         empty the queue.
1375         * varpool.c (varpool_assemble_node): Update debug queue.
1376         (varpool_assemble_pending_decls): Don't do it here.
1377         (varpool_empty_needed_queue):  New function.
1378
1379 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1380
1381         * recog.c (peephole2_optimize): Fix formatting.
1382
1383 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1384
1385         * c-pch.c (get_ident): Avoid C++ keywords.
1386         * combine-stack-adj.c (single_set_for_csa): Likewise.
1387         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1388         output_asm_insn): Likewise.
1389         * reload.c (push_secondary_reload, find_reusable_reload,
1390         push_reload, combine_reloads, find_reloads,
1391         debug_reload_to_stream): Likewise.
1392         * reload.h (struct reload): Likewise.
1393         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1394         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1395         emit_output_reload_insns): Likewise.
1396         * targhooks.c (default_secondary_reload): Likewise.
1397         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1398
1399 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1400
1401         * recog.c (validate_change_1, validate_change,
1402         validate_unshare_change, validate_replace_rtx_1, struct
1403         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1404         keywords.
1405         * reload.c (push_secondary_reload, secondary_reload_class,
1406         scratch_reload_class, find_valid_class, find_reusable_reload,
1407         push_reload, find_dummy_reload, find_reloads_address_1,
1408         find_reloads_address_part, find_equiv_reg): Likewise.
1409         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1410         choose_reload_regs): Likewise.
1411         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1412         Likewise.
1413         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1414         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1415         * sched-rgn.c (concat_INSN_LIST): Likewise.
1416         * stor-layout.c (mode_for_size, mode_for_size_tree,
1417         smallest_mode_for_size): Likewise.
1418
1419 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1420
1421         * cfg.c (dump_reg_info): Avoid C++ keywords.
1422         * dwarf2asm.c (dw2_force_const_mem,
1423         dw2_asm_output_encoded_addr_rtx): Likewise.
1424         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1425         * expmed.c (expand_shift): Likewise.
1426         * global.c (find_reg): Likewise.
1427         * graph.c (draw_edge): Likewise.
1428         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1429         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1430         widen_clz, widen_bswap, expand_parity, expand_unop,
1431         emit_cmp_and_jump_insn_1): Likewise.
1432         * postreload.c (reload_cse_simplify_operands): Likewise.
1433         * ra.h (add_neighbor): Likewise.
1434         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1435         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1436         record_reg_classes, copy_cost, record_address_regs,
1437         invalid_mode_change_p): Likewise.
1438         * regrename.c (regrename_optimize, scan_rtx_reg,
1439         dump_def_use_chain, find_oldest_value_reg,
1440         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1441
1442 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1443
1444         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1445         MASK_POWERPC64 for power4 in previous commit.
1446
1447 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1448
1449         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1450         instead of bare conversion to cast const-ness away.
1451
1452 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1453
1454         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1455         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1456         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1457         (TARGET_FUNCTION_VALUE): Define.
1458
1459 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1460
1461         * config/rs6000/rs6000.c (processor_target_table): Add
1462         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1463
1464 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1465
1466         PR target/36827
1467         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1468         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1469         m32c_legitimize_reload_address.
1470
1471 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1472
1473        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1474        DECL_IN_SYSTEM_HEADER in sync.
1475
1476 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1477
1478         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1479         * tree-ssa-pre.c (pre_expr_eq): Ditto
1480         (get_constant_for_value_id): Take a type as an argument.
1481         (fully_constant_expression): Pass in type.
1482         (find_or_generate_expression): Short circuit constant case.
1483         (create_expression_by_pieces): Remove special casing of
1484         pointer_plus.
1485         (do_regular_insertion): Short circuit constant case.
1486         (do_partial_partial_insertion): Ditto.
1487
1488 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1489
1490         PR target/36782
1491         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1492
1493 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1494         
1495         * config/xtensa/libgcc-xtensa.ver: New file.
1496         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1497         
1498 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1499
1500         * df-problems.c (df_set_note): Avoid C++ keywords.
1501         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1502         * dse.c (record_store, remove_useless_values): Likewise.
1503         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1504         gen_reg_rtx_offset, operand_subword, change_address_1,
1505         change_address, adjust_address_1, offset_address,
1506         widen_memory_access, emit_copy_of_insn_after): Likewise.
1507         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1508         * fwprop.c (should_replace_address, propagate_rtx_1,
1509         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1510         Likewise.
1511         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1512         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1513         * lcm.c (compute_insert_delete, pre_edge_lcm,
1514         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1515         * lower-subreg.c (resolve_reg_notes): Likewise.
1516         * mode-switching.c (optimize_mode_switching): Likewise.
1517
1518 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1519
1520         * bt-load.c (add_btr_def, migrate_btr_def,
1521         branch_target_load_optimize): Avoid C++ keywords.
1522         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1523         Likewise.
1524         * combine.c (subst, simplify_set, make_extraction,
1525         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1526         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1527         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1528
1529 2008-07-15  Richard Guenther  <rguenther@suse.de>
1530
1531         PR middle-end/36369
1532         * c-common.c (strict_aliasing_warning): Do not warn for
1533         TYPE_REF_CAN_ALIAS_ALL pointers.
1534         (c_common_get_alias_set): may_alias types are not special.
1535         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1536         attribute and set can_ref_all accordingly.
1537         (build_reference_type_for_mode): Likewise.
1538         * doc/extend.texi (may_alias): Clarify.
1539
1540 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1541
1542         PR target/36780
1543         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1544         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1545
1546 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1547
1548         PR target/31568
1549         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1550         gcc_assert, instead call output_operand_lossage.
1551
1552 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1553
1554         * builtins.c (std_canonical_va_list): Treat structure based
1555         va_list types.
1556
1557 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1558
1559         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1560
1561 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1562
1563         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1564         is set.
1565
1566 2008-07-14  Jan Hubicka  <jh@suse.cz>
1567
1568         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1569         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1570         fix predicates and constraints.
1571         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1572         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1573
1574 2008-07-14  Doug Kwan  <dougkwan@google.com>
1575
1576         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1577         additional option file arm/eabi.opt.
1578         * config/arm/eabi.h (File): New configuration file for EABI targets.
1579         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1580         SUBSUBTARGET_EXTRA_SPECS.
1581         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1582         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1583         from STARTFILE_SPEC so that it can be referenced in an override.
1584         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1585         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1586         can be referenced in an override.
1587         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1588         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1589         so that it can be referenced in an override.
1590         (LINK_SPEC): Use BPABI_LINK_SPEC.
1591         * config/arm/eabi.opt (File): New.
1592
1593 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1594
1595         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1596         (FIXED_VALUE_H): New variable.
1597         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1598         input.h, fixed-value.h.
1599         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1600         (BASIC_BLOCK_H): Use $(BITMAP_H).
1601         (FUNCTION_H): Add varray.h.
1602         (IPA_REFERENCE_H): Use $(BITMAP_H).
1603         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1604         (DF_H): Use $(BITMAP_H).
1605         (GGC_H): Add statistics.h.
1606         (INSN_ADDR_H): New.
1607         (INSN_ATTR_H): Use it.
1608         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1609         (INPUT_H): New.
1610         (SYMTAB_H): Add $(OBSTACK_H).
1611         (CPP_INTERNAL_H): New.
1612         (TREE_DUMP_H): Add tree-pass.h.
1613         (TREE_FLOW_H): Use $(BITMAP_H)
1614         (PRETTY_PRINT_H): Use $(INPUT_H).
1615         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1616         (GSTAB_H): New.
1617         (BITMAP_H): New.
1618         (many object files): Fix lots of header dependencies throughout.
1619
1620 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1621
1622         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1623         New macros.
1624         (s-gtyp-input): Use them to write tmp-gi.list.
1625         (echo_to_gi.list): Remove.
1626
1627 2008-07-14  Richard Guenther  <rguenther@suse.de>
1628
1629         * tree-ssa-sccvn.c (pre_info): Remove.
1630         (switch_to_PRE_table): Likewise.
1631         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1632         (set_hashtable_value_ids): Do not create value-ids for the
1633         optimistic tables.
1634         (run_scc_vn): Remove double test.  Remove bogus special-case
1635         in value-number printing.
1636         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1637         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1638         SSA_NAME_VALUE.
1639         * tree-flow-inline.h (get_value_handle): Remove.
1640         * tree-flow.h (get_value_handle): Remove.
1641
1642 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1643
1644         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1645         in which we generate arithmetics is not a subrange.
1646
1647 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1648
1649         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1650
1651 2008-07-14  Richard Guenther  <rguenther@suse.de>
1652
1653         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1654
1655 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1656
1657         PR target/36745
1658         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1659         reload for symbol refs moved to r0 with -fPIC.
1660         (legitimize_pic_address): Use the target register as temporary
1661         reg if possible.
1662         (emit_symbolic_move): Adjust comment.
1663         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1664         New expanders.
1665
1666 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1667
1668         * c-common.h (C_CPP_HASHNODE): New macro.
1669         * coretypes.h (struct cpp_token): Forward declare.
1670         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1671         the context-sensitive keyword method.
1672         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1673         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1674         expand_bool_pixel): New.
1675         (altivec_categorize_keyword): New function.
1676         (init_vector_keywords): New function.
1677         (rs6000_macro_to_expand): Likewise.
1678         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1679         compiling an ISO C dialect.
1680
1681 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1682
1683         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1684         (create_expression_by_pieces): Fix typo.
1685         (do_regular_insertion): Use debug counter here too.
1686
1687 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1688
1689         PR target/35492.
1690         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1691         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1692         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1693         implement Kp matching power-of-two.
1694         (CONSTRAINT_LEN): Define to match.
1695         * config/cris/cris.md: Replace all use of constraint K with Kc.
1696         ("*btst*): Use Kp for operand 0 of last alternative.
1697
1698 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1699
1700         PR testsuite/36440
1701         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1702         and quad formats.
1703
1704 2008-07-13  Jan Hubicka  <jh@suse.cz>
1705
1706         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1707         to be mangled too.
1708
1709 2008-07-13  Richard Guenther  <rguenther@suse.de>
1710
1711         PR middle-end/36811
1712         * langhooks.c (lhd_print_error_function): Deal with recursive
1713         BLOCK trees.
1714
1715 2008-07-12  Jan Hubicka  <jh@suse.cz>
1716
1717         * cgraph.c (assembler_name_hash): New static var.
1718         (hash_node_by_assembler_name, eq_assembler_name): New.
1719         (cgraph_node_for_asm): Use hashtable.
1720         (cgraph_remove_node): Maintain hashtable.
1721         (change_decl_assembler_name): Sanity check that names are not changing
1722         after aliasing was processed.
1723         * cgraph.h (varpoon_node): Add next GGC marker.
1724         * tree.c (decl_assembler_name_equal): Constify.
1725         (decl_assembler_name_hash): New.
1726         * tree.h (decl_assembler_name_equal): Constify.
1727         (decl_assembler_name_hash): Update.
1728
1729 2008-07-12  David Daney  <ddaney@avtrex.com>
1730
1731         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1732         sb1 and r5000 cpus.
1733
1734 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1735
1736         * doc/md.texi: Document the MIPS "v" constraint.
1737         * config/mips/mips.h (reg_class): Revert last change.
1738         (REG_CLASS_NAMES): Likewise.
1739         (REG_CLASS_CONTENTS): Likewise.
1740         * config/mips/mips.c (mips_regno_to_class): Likewise.
1741         * config/mips/constraints.md (v): Likewise, but add documentation.
1742         Add a comment to say that this constraint should not be used in
1743         gcc code.
1744
1745 2008-07-11  DJ Delorie  <dj@redhat.com>
1746
1747         * config/h8300/h8300.md (length): Fix branch offset limit.
1748
1749 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
1750
1751         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1752         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1753         (avr_hard_regno_scratch_ok): New function.
1754         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1755         * config/avr/avr.md (all peepholes that request a scratch register):
1756         Remove avr_peep2_scratch_safe use.
1757
1758 2008-07-11  Tom Tromey  <tromey@redhat.com>
1759             Ian Lance Taylor  <iant@google.com>
1760
1761         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1762         (struct c_common_resword): Define.
1763         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1764         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1765         (c_common_reswords, num_c_common_reswords): Declare.
1766         * c-common.c (c_common_reswords): New global const array.
1767         (num_c_common_reswords): New const int.
1768         * c-parser.c (struct resword, reswords): Don't define.
1769         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1770         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1771         than reswords.  If warning about C++ keywords, give them a special
1772         RID code.
1773         (c_lex_one_token): Warn about C++ keywords.  Call
1774         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1775         (c_parser_external_declaration): Look for RID_xxx rather than
1776         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1777         (c_parser_statement_after_labels): Likewise.
1778         (c_parser_objc_class_instance_variables): Likewise.
1779         (c_parser_objc_class_declaration): Likewise.
1780         (c_parser_objc_try_catch_statement): Likewise.
1781         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1782         (declspecs_add_type): Likewise.
1783
1784 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1785
1786         * ggc-page.c (alloc_page):
1787         Substituting xmalloc, xcalloc with
1788         XNEWVEC and XCNEWVAR macros which add the
1789         needed casts.
1790
1791 2008-07-11  Richard Guenther  <rguenther@suse.de>
1792
1793         PR tree-optimization/36765
1794         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1795         aliases from HEAP vars to SMTs.
1796
1797 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1798
1799         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1800         * configure.ac (loose_warn): Move -Wc++-compat from here...
1801         (strict_warn): ...to here.
1802         * configure: Regenerate.
1803
1804 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
1805
1806         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1807         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1808         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1809         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1810         excluding more specific h8300-*-* and sh-*-* targets.
1811
1812 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
1813
1814         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1815         (eliminate): Ditto.
1816         (execute_pre): Call loop_optimizer_finalize in early exit.
1817
1818 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
1819
1820         PR middle-end/36790
1821         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1822         uids in the bitmap, not just VAR_DECL uids.
1823
1824         PR rtl-optimization/36419
1825         * combine-stack-adj.c (adjust_frame_related_expr): New function.
1826         (combine_stack_adjustments_for_block): Call it if needed.  Delete
1827         correct insn.
1828         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1829         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1830         prologue sp adjustment.
1831
1832 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
1833
1834         PR other/28322
1835         * opts.c (print_ignored_options): Report postponed diagnostics for
1836         unknown -Wno-* options as warnings, not errors.
1837         (postpone_unknown_option_error): Renamed to...
1838         (postpone_unknown_option_warning): ... this.
1839
1840 2008-07-09  Doug Kwan  <dougkwan@google.com>
1841
1842         Revert:
1843         2008-07-08  Doug Kwan  <dougkwan@google.com>
1844
1845         * config/arm/arm.opt (mandroid): New option.
1846         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1847         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1848         (CC1_SPEC): Same.
1849         (CC1PLUS_SPEC): Same.
1850         (LIB_SPEC): Same.
1851         (STARTFILE_SPEC): Same.
1852         (ENDFILE_SPEC): Same.
1853         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1854         used.
1855
1856 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
1857
1858         PR target/35802
1859         * config/mips/mips.h (reg_class): Remove V1_REG.
1860         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1861         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1862         instead of V1_REGS.
1863         (mips_get_tp): New function.
1864         (mips_legitimize_tls_address): Use it.
1865         * config/mips/constraints.md (v): Delete.
1866         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1867         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1868         After reload, split into a move and ...
1869         (*tls_get_tp_<mode>_split): ...this new instruction.
1870
1871 2008-07-09  David Daney  <ddaney@avtrex.com>
1872
1873         * config/mips/driver-native.c: Include coretypes.h and tm.h.
1874
1875 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
1876
1877         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1878         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1879         Add c argument.
1880         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1881         htab_delete should be called.  Don't free c.
1882         (lookup_tmp_var): Create temp_htab lazily.
1883         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1884         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1885         callers.
1886         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1887         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1888         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
1889         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1890         * tree-sra.c (generate_element_init): Likewise.
1891         * tree-mudflap.c (execute_mudflap_function_ops,
1892         execute_mudflap_function_decls): Likewise.
1893         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1894         * tree-gimple.h (struct gimplify_ctx): New type.
1895         (push_gimplify_context): Adjust prototype.
1896
1897 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
1898
1899         * tree-ssa-pre.c (phi_translate_1): Update placement of
1900         add_to_value calls.
1901
1902 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
1903
1904         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1905         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1906         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1907         * targhooks.c (default_hard_regno_scratch_ok): New function.
1908         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1909         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1910         * recog.c:  Include "target.h".
1911         (peep2_find_free_register): Add check for global regs. Add target
1912         specific check.
1913         * Makefile.in (recog.o): Depend on target.h.
1914
1915 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1916
1917         * config/sh/sh.c (sh_canonical_va_list_type): New.
1918         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1919
1920 2008-07-09  Raksit Ashok <raksit@google.com>
1921
1922         * doc/invoke.texi (Option Summary): Mention new option
1923         -Wdisallowed-function-list=...
1924         (Warning Options): Document -Wdisallowed-function-list=...
1925         * common.opt (Wdisallowed-function-list=): New flag.
1926         * flags.h (warn_disallowed_functions): External definition of new
1927         boolean warning flag.
1928         (warn_if_disallowed_function_p): Declare new function.
1929         * opts.c (warning_disallowed_functions): New static variable.
1930         (warn_disallowed_functions): New boolean warning flag.
1931         (warn_if_disallowed_function_p): New function.
1932         (add_comma_separated_to_vector): Rename
1933         add_instrument_functions_exclude_list to this.
1934         (common_handle_option): Handle new option. Rename calls to
1935         add_instrument_functions_exclude_list into calls to
1936         add_comma_separated_to_vector.
1937         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1938         based on flag warn_disallowed_functions.
1939
1940 2008-07-09  Christian Bruel  <christian.bruel@st.com>
1941
1942         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1943          instead of get_attr_length.
1944
1945 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1946
1947         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1948         keywords.
1949         * genemit.c (gen_insn): Likewise.
1950         * gengtype.c (note_def_vec): Likewise.
1951         * gengtype.h (note_def_vec): Likewise.
1952         * genoutput.c (struct data, output_insn_data, process_template,
1953         gen_expand, gen_split, note_constraint): Likewise.
1954         * genrecog.c (new_decision, add_to_sequence, factor_tests,
1955         make_insn_sequence): Likewise.
1956         * gensupport.c (record_insn_name): Likewise.
1957
1958 2008-07-08  Doug Kwan  <dougkwan@google.com>
1959
1960         * config/arm/arm.opt (mandroid): New option.
1961         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1962         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1963         (CC1_SPEC): Same.
1964         (CC1PLUS_SPEC): Same.
1965         (LIB_SPEC): Same.
1966         (STARTFILE_SPEC): Same.
1967         (ENDFILE_SPEC): Same.
1968         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1969         used.
1970
1971 2008-07-08  Raksit Ashok  <raksit@google.com>
1972
1973         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1974         (set_storage_via_setmem): Fix expected_align parameter.
1975         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1976         missing from the list.
1977         * doc/md.texi (movmem): Explicitly state that expected alignment is
1978         to be expressed in bytes.
1979         (setmem): Explicitly state that expected alignment is to be expressed
1980         in bytes.
1981
1982 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
1983
1984         * reload.c (find_reloads_subreg_address): Do not require validity
1985         of address in original mode before reloading address.
1986
1987 2008-07-07  Tianwei Sheng  <tianweis@google.com>
1988
1989         * df-core.c (df_remove_problem): Adjust the access to avoid out of
1990         bounds array access.
1991
1992 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
1993
1994         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1995
1996 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
1997         
1998         Fix PR tree-optimization/23455
1999         Fix PR tree-optimization/35286
2000         Fix PR tree-optimization/35287
2001         * Makefile.in (OBJS-common): Remove tree-vn.o.
2002         (tree-vn.o): Remove.
2003         * dbgcnt.def: Add treepre_insert debug counter.
2004         * gcc/tree-flow.h (add_to_value): Updated for other changes.
2005         (debug_value_expressions): Ditto.
2006         (print_value_expressions): Ditto.
2007         * tree-pretty-print.c (dump_generic_node): Updated for
2008         VALUE_HANDLE removal.
2009         * tree-ssa-dom.c (record_equality): Ditto.
2010         (cprop_operand): Ditto.
2011         (lookup_avail_expr): Ditto.
2012         * tree-ssa-threadedge.c
2013         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2014         (simplify_control_stmt_condition): Ditto.
2015         * tree.c (tree_code_size): Ditto.
2016         (tree_node_structure): Ditto.
2017         (iterative_hash_expr): Ditto.
2018         * tree.def: Ditto.
2019         * tree.h (VALUE_HANDLE_ID): Ditto.
2020         (VALUE_HANDLE_EXPR_SET): Ditto.
2021         (struct tree_value_handle): Ditto.
2022         (union tree_node): Ditto.
2023         * treestruct.def: Ditto.
2024         * tree-vn.c: Removed.
2025         * tree-ssa-pre.c: Rewritten entirely.
2026         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2027         (constant_value_ids): Ditto.
2028         (vn_nary_op_t): Moved to header.
2029         (vn_phi_t): Ditto.
2030         (vn_reference_op_t): Ditto
2031         (vn_reference_t): Ditto.
2032         (next_value_id): New variable.
2033         (VN_INFO): Add an assert.
2034         (vn_constant_eq): New function.
2035         (vn_constant_hash): Ditto.
2036         (get_or_alloc_constant_value_id): Ditto.
2037         (value_id_constant_p): Ditto.
2038         (vn_reference_compute_hash): De-staticify.
2039         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2040         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
2041         (valueize_refs): Update opcode if it changes from ssa name to constant.
2042         (vn_reference_lookup_1): Add new argument.
2043         (vn_reference_lookup):  Ditto.
2044         (vn_reference_lookup_pieces): New function.
2045         (vn_reference_insert): Add return type. Modify to deal with value ids.
2046         (vn_reference_insert_pieces):  New function.
2047         (vn_nary_op_compute_hash): De-staticify.
2048         (vn_nary_op_eq): Ditto.
2049         (vn_nary_op_lookup_pieces): New function.
2050         (vn_nary_op_lookup): Add new argument.  
2051         (vn_nary_op_insert_pieces): New function.
2052         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2053         (vn_phi_insert): Ditto.
2054         (visit_unary_op): Update for callee changes.
2055         (visit_binary_op): Ditto.
2056         (visit_reference_op_load): Ditto.
2057         (visit_reference_op_store): Ditto.
2058         (init_scc_vn): Init next_value_id, constant_to_value_id and
2059         constant_value_ids. 
2060         (free_scc_vn): Free them.
2061         (set_hashtable_value_ids): New function.
2062         (run_scc_vn): Use it.
2063         (get_max_value_id): New function.
2064         (get_next_value_id): Ditto.
2065         (expressions_equal_p): Moved from tree-vn.c
2066         (sort_vuses): Ditto.
2067         (sort_vuses_heap): Ditto.
2068         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2069         above).
2070         * tree.c (iterative_hash_hashval_t): Made non-static
2071         * tree.h (iterative_hash_hashval_t): Declare it.
2072         
2073 2008-07-08  Martin Jambor  <mjambor@suse.cz>
2074
2075         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2076         instead of ipa_create_node_params.
2077         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2078         ipa_check_create_edge_args, free them with
2079         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2080
2081         * ipa-prop.c: Include flags.h and tree-inline.h.
2082         (ipa_node_params_vector): New variable.
2083         (ipa_edge_args_vector): New variable.
2084         (edge_removal_hook_holder): New variable.
2085         (node_removal_hook_holder): New variable.
2086         (edge_duplication_hook_holder): New variable.
2087         (node_duplication_hook_holder): New variable.
2088         (ipa_detect_param_modifications): Check for presence of modified flags.
2089         (ipa_compute_jump_functions): Check for presence of jump functions.
2090         (ipa_free_edge_args_substructures): New function.
2091         (ipa_create_node_params): Removed.
2092         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2093         (ipa_free_node_params_substructures): New function.
2094         (ipa_free_all_node_params): Changed to deallocate the on-the-side
2095         vector.
2096         (ipa_edge_removal_hook): New function.
2097         (ipa_node_removal_hook): New function.
2098         (duplicate_array): New function.
2099         (ipa_edge_duplication_hook): New function.
2100         (ipa_node_duplication_hook): New function.
2101         (ipa_register_cgraph_hooks): New function.
2102         (ipa_unregister_cgraph_hooks): New function.
2103         (free_all_ipa_structures_after_ipa_cp): New function.
2104         
2105         * ipa-prop.h: Include vec.h.
2106         (ipa_node_params_t): New typedef with vector types for it.
2107         (ipa_edge_args_t):  New typedef with vector types for it.
2108         (IPA_NODE_REF): Changed to access an on-the-side vector.
2109         (IPA_EDGE_REF): Changed to access an on-the-side vector.
2110         (ipa_check_create_node_params): New function.
2111         (ipa_check_create_edge_args): New function.
2112         
2113         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
2114         all users.
2115         
2116 2008-07-07  Tom Tromey  <tromey@redhat.com>
2117
2118         * configure, config.in: Rebuilt.
2119         * configure.ac: Don't check for scandir or alphasort.
2120
2121 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2122
2123         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2124         types immediately after creating them.
2125
2126 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2127
2128         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2129
2130 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
2131
2132         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2133         dump_constraint_graph.
2134         (dump_constraint_edge): New function.
2135         (dump_constraint_graph): New function.
2136         (debug_constraint_graph): New function.
2137         (dump_constraint): Removed useless comparison.
2138         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2139         (dump_constraint_graph): Declare.
2140         (debug_constraint_graph): Declare.
2141         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2142
2143 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2144
2145         * config/i386/i386.c (is_va_list_char_pointer): New.
2146         (ix86_va_start): Replace compare with ms_va_list_type_node
2147         by is_va_list_char_pointer.
2148         (ix86_gimplify_va_arg): Likewise.
2149
2150 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2151
2152         * cgraph.c (cgraph_edge_max_uid): New variable.
2153         (struct cgraph_edge_hook_list): New type.
2154         (struct cgraph_node_hook_list): New type.
2155         (struct cgraph_2edge_hook_list): New type.
2156         (struct cgraph_2node_hook_list): New type.
2157         (first_cgraph_edge_removal_hook): New variable.
2158         (first_cgraph_node_removal_hook): New variable.
2159         (first_cgraph_edge_duplicated_hook): New variable.
2160         (first_cgraph_node_duplicated_hook): New variable.
2161         (cgraph_add_edge_removal_hook): New function.
2162         (cgraph_remove_edge_removal_hook): New function.
2163         (cgraph_call_edge_removal_hooks):  New function.
2164         (cgraph_add_node_removal_hook):  New function.
2165         (cgraph_remove_node_removal_hook):  New function.
2166         (cgraph_call_node_removal_hooks):  New function.
2167         (cgraph_add_edge_duplication_hook):  New function.
2168         (cgraph_remove_edge_duplication_hook):  New function.
2169         (cgraph_call_edge_duplication_hooks):  New function.
2170         (cgraph_add_node_duplication_hook):  New function.
2171         (cgraph_remove_node_duplication_hook):  New function.
2172         (cgraph_call_node_duplication_hooks):  New function.
2173         (cgraph_create_edge): Assign to edge uid.
2174         (cgraph_remove_edge): Call edge removal hooks.
2175         (cgraph_node_remove_callees): Call edge removal hooks.
2176         (cgraph_node_remove_callers): Call edge removal hooks.
2177         (cgraph_remove_node): Call node removal hooks.
2178         (cgraph_clone_edge): Call edge duplication hooks.
2179         (cgraph_clone_node): Call node duplication hooks.
2180
2181         * cgraph.h (cgraph_edge): New field uid.
2182         (cgraph_edge_hook): New type.
2183         (cgraph_node_hook): New type.
2184         (cgraph_2edge_hook): New type.
2185         (cgraph_2node_hook): New type.
2186
2187 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2188
2189         * config.in: Regenerate.
2190
2191 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2192
2193         * gcc.c (print_sysroot): New.
2194         (option_map, display_help, process_command): Handle the
2195         -print-sysroot option.
2196         (main): Print the sysroot if requested.
2197         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2198         
2199 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2200
2201         PR target/34780
2202         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2203
2204 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2205
2206         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2207         (assign_parm_setup_block_p): Also check mode of entry_parm.
2208
2209 2008-07-07  Richard Guenther  <rguenther@suse.de>
2210
2211         * tree-ssa-structalias.h (set_used_smts): Remove.
2212         * tree-ssa-structalias.c (used_smts): Likewise.
2213         (set_used_smts): Likewise.
2214         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2215         call to set_used_smts.
2216
2217 2008-07-07  Richard Guenther  <rguenther@suse.de>
2218
2219         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2220         (new_var_info): Set it to false.
2221         (solution_set_add): Correctly handle pointers outside a var and
2222         inside a field.
2223         (type_safe): Treat variables with is_full_var properly.
2224         (do_sd_constraint): Likewise.
2225         (do_ds_constraint): Likewise.
2226         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2227         (get_constraint_for_ptr_offset): New function.
2228         (get_constraint_for_component_ref): For addresses at least include
2229         the last field of the variable.  Handle is_full_vars properly.
2230         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2231         (handle_ptr_arith): Remove.
2232         (find_func_aliases): Simplify assignment handling.
2233         (create_function_info_for): For parameter and result varinfos set
2234         is_full_var flag.
2235         (create_variable_info_for): Set is_full_var flag whenever we
2236         just created a single varinfo for a decl.
2237         (init_alias_vars): Initialize use_field_sensitive from
2238         max-fields-for-field-sensitive parameter.
2239
2240 2008-07-07  Richard Guenther  <rguenther@suse.de>
2241
2242         PR tree-optimization/36713
2243         * tree-flow-inline.h (is_call_used): New function.
2244         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2245         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2246         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2247
2248 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2249
2250         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2251         
2252 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2253
2254         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2255
2256 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2257             Nathan Sidwell  <nathan@codesourcery.com>
2258
2259         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2260         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2261         tmake_file.
2262         * config/m68k/t-linux: New.
2263         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2264         default.
2265
2266 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2267
2268         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2269         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2270         by MAC/EMAC.
2271
2272 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2273
2274         * gcc.c (execute): Fix -Wc++-compat warning.
2275
2276 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2277
2278         PR target/36720
2279         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2280         constant for little endian.
2281
2282 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2283
2284         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2285         mips_base_mips16 instead of TARGET_MIPS16.
2286         (mips_base_mips16): Declare.
2287         * config/mips/mips.c (mips_base_mips16): Make global.
2288         (was_mips16_p): Remove GTY marker.
2289         (was_mips16_pch_p): New variable.
2290         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2291         (mips_override_options): Force to non-MIPS16 mode initially.
2292         Do not complain about MIPS16 PIC incompatibilities here.
2293         Only allow -mgpopt if -mexplicit-relocs is in force for
2294         non-MIPS16 code.
2295
2296 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2297
2298         * configure.ac: Check for caddr_t, define to char * if not defined.
2299         * configure: Regenerate.
2300         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2301         (mmap_gt_pch_use_address): Likewise.
2302         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2303
2304 2008-07-06  Richard Guenther  <rguenther@suse.de>
2305
2306         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2307         (new_var_info): Deal with it.
2308         (solution_set_add): Likewise.
2309         (bitpos_of_field): Make signed, fix.
2310         (struct fieldoff): Remove type and decl fields.  Make size field
2311         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2312         flags.
2313         (fieldoff_compare): Deal with it.
2314         (push_fields_onto_fieldstack): Remove has_union argument, glob
2315         adjacent non-pointer fields together.
2316         (create_function_info_for): Do not set has_union.
2317         (create_variable_info_for): Simplify.
2318
2319 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2320
2321         * config.gcc (extra_headers): Add cross-stdarg.h for target
2322         x86_64-*-* and i?86-*-*.
2323         * config/i386/cross-stdarg.h: New.
2324         * builtins.c (std_fn_abi_va_list): New.
2325         (std_canonical_va_list_type): New.
2326         (stabilize_va_list): Replace va_list_type_node use by
2327         mtarget.canonical_va_list_type.
2328         (gimplify_va_arg_expr): Likewise.
2329         (expand_builtin_va_copy): Replace va_list_type_node use by
2330         mtarget.fn_abi_va_list.
2331         * tree-sra.c (is_va_list_type): New helper.
2332         (decl_can_be_decomposed_p): Replace
2333         va_list_type_node use by is_va_list_type.
2334         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2335         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2336         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2337         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2338         (ix86_enum_va_list): New.
2339         * config/i386/i386.c (sysv_va_list_type_node): New.
2340         (ms_va_list_type_node): New.
2341         (ix86_function_type_abi): Remove sorry.
2342         (ix86_build_builtin_va_list_abi): New.
2343         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2344         for 64-bit targets.
2345         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2346         (ix86_init_builtins_va_builtins_abi): New.
2347         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2348         for 64-bit targets.
2349         (ix86_handle_abi_attribute): New.
2350         (attribute_spec): Add sysv_abi and ms_abi.
2351         (ix86_fn_abi_va_list): New.
2352         (ix86_canonical_va_list_type): New.
2353         (ix86_enum_va_list): New.
2354         (TARGET_FN_ABI_VA_LIST): New.
2355         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2356         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2357         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2358         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2359         (TARGET_ENUM_VA_LIST): New.
2360         * expr.h (std_fn_abi_va_list): New.
2361         (std_canonical_va_list_type): New.
2362         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2363         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2364         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2365         TARGET_CANONICAL_VA_LIST_TYPE.
2366         * target.h (struct gcc_target): Add fn_abi_va_list hook
2367         and canonical_va_list_type hook.
2368
2369 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2370
2371         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2372         integral and pointer types.
2373
2374 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2375
2376         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2377         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2378
2379 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2380
2381         PR target/36684
2382         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2383
2384 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2385
2386         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2387         build_gimple_modify_stmt.
2388         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2389         gimple operand.  Use fold_build* instead of build*.
2390
2391 2008-07-04  Richard Guenther  <rguenther@suse.de>
2392
2393         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2394         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2395         properly to compute the reachability set if we do field-sensitive PTA.
2396         * invoke.texi (max-fields-for-field-sensitive): Document default.
2397         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2398         100 for optimize >= 2.
2399
2400 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2401
2402         * ggc-zone.c (lookup_page_table_if_allocated,
2403         set_page_table_entry, zone_find_object_size, alloc_small_page,
2404         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2405         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2406         -Wc++-compat and/or -Wcast-qual warnings.
2407
2408 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2409
2410         PR target/36634
2411         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2412         pic_offset_table_rtx to be marked as used here.
2413         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2414         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2415         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2416         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2417         !TARGET_SECURE_PLT.
2418
2419 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2420
2421         * alloc-pool.c (hash_descriptor, eq_descriptor,
2422         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2423         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2424         Likewise.
2425         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2426         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2427         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2428         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2429         Likewise.
2430
2431 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2432
2433         * tree-flow.h (loop_only_exit_p): Declare.
2434         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2435         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2436         the number of iterations if it is constant.  Otherwise, if this is the
2437         only possible exit of the loop, use the conservative estimate on the
2438         number of iterations of the entire loop if available.
2439
2440 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2441
2442         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2443         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2444         Add synchronization functions.
2445         * config/sync.c: New file.
2446         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2447         (LIBGCC_SYNC_CFLAGS): Likewise.
2448
2449 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2450
2451         PR target/36710
2452         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2453         (*pushtf_sse): New insn pattern.
2454         (pushtf splitters): New splitters.
2455
2456 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2457
2458         PR middle-end/35736
2459         * predict.c (build_predict_expr): Use void_type_node for the tree
2460         type, instead of NULL_TREE.
2461
2462 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2463
2464         * config/i386/i386.c (contains_aligned_value_p): Return true
2465         for TCmode.
2466         (ix86_data_alignment): Align TCmode to 128bits.
2467         (ix86_local_alignment): Likewise.
2468
2469 2008-07-03  Andrew Haley  <aph@redhat.com>
2470
2471         PR bootstrap/33304
2472         * vec.h (VEC_TA): New.
2473         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2474         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2475         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2476         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2477         (C_COMMON_FIXED_TYPES): Remove first arg.
2478         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2479         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2480         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2481         not to use empty macro arguments.
2482
2483 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2484
2485         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2486         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2487         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2488         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2489         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2490         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2491         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2492         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2493         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2494         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2495         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2496         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2497         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2498         config/rs6000/e500crtres64gpr.asm,
2499         config/rs6000/e500crtres64gprctr.asm,
2500         config/rs6000/e500crtrest32gpr.asm,
2501         config/rs6000/e500crtrest64gpr.asm,
2502         config/rs6000/e500crtresx32gpr.asm,
2503         config/rs6000/e500crtresx64gpr.asm,
2504         config/rs6000/e500crtsav32gpr.asm,
2505         config/rs6000/e500crtsav64gpr.asm,
2506         config/rs6000/e500crtsav64gprctr.asm,
2507         config/rs6000/e500crtsavg32gpr.asm,
2508         config/rs6000/e500crtsavg64gpr.asm,
2509         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2510         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2511         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2512         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2513         config/sparc/sol2-cn.asm: Remove .file directives.
2514
2515 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2516
2517         * resource.c (mark_referenced_resources): Look inside
2518         UNSPEC_VOLATILEs and ASM_INPUTs.
2519
2520 2008-07-02  Ian Lance Taylor  <iant@google.com>
2521
2522         * rtlanal.c (add_reg_note): New function.
2523         * rtl.h (add_reg_note): Declare.
2524         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2525         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2526         * builtins.c (expand_builtin_longjmp): Likewise.
2527         (expand_builtin_nonlocal_goto): Likewise.
2528         * calls.c (emit_call_1, expand_call): Likewise.
2529         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2530         * cfglayout.c (fixup_reorder_chain): Likewise.
2531         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2532         (commit_one_edge_insertion): Likewise.
2533         * combine.c (move_deaths, distribute_notes): Likewise.
2534         * df-problems.c (df_set_note): Likewise.
2535         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2536         (set_unique_reg_note): Likewise.
2537         (emit_copy_of_insn_after): Likewise.
2538         * expr.c (expand_expr_real): Likewise.
2539         * gcse.c (add_label_notes): Likewise.
2540         * haifa-sched.c (create_check_block_twin): Likewise.
2541         * jump.c (mark_jump_label_1): Likewise.
2542         * loop-doloop.c (add_test, doloop_modify): Likewise.
2543         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2544         * lower-subreg.c (move_eh_region_note): Likewise.
2545         * optabs.c (emit_libcall_block): Likewise.
2546         * predict.c (predict_insn): Likewise.
2547         (combine_predictions_for_insn): Likewise.
2548         * recog.c (peephole2_optimize): Likewise.
2549         * regmove.c (try_auto_increment): Likewise.
2550         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2551         * reload.c (find_reloads): Likewise.
2552         * reload1.c (fixup_eh_region_note): Likewise.
2553         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2554         * reorg.c (delete_prior_computation): Likewise.
2555         (delete_computation, dbr_schedule): Likewise.
2556         * config/pa/pa.c (legitimize_pic_address): Likewise.
2557         * config/sh/sh.c (sh_reorg): Likewise.
2558
2559 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2560
2561         PR target/36669
2562         * config/libgcc-glibc.ver: Add %exclude.
2563         * config/m32r/libgcc-glibc.ver: Likwise.
2564         * config/s390/libgcc-glibc.ver: Likwise.
2565         * config/sh/libgcc-glibc.ver: Likwise.
2566         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2567
2568         * config/i386/libgcc-glibc.ver: New.
2569
2570         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2571
2572 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2573
2574         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2575         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2576         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2577         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2578         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2579         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2580         i[34567]86-*-linux*, x86_64-*-linux*.
2581
2582         * libgcc-std.ver: Add empty GCC_4.4.0.
2583
2584         * mkmap-symver.awk: Support multiple versions per symbol.
2585
2586         * config/i386/i386.c (ix86_init_builtins): Always define
2587         __builtin_fabsq and __builtin_copysignq with fallbacks.
2588         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2589         and __builtin_copysignq if SSE2 isn't available.
2590
2591         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2592         (LIBGCC2_TF_CEXT): Likwise.
2593         (TF_SIZE): Likwise.
2594
2595         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2596
2597         * config/i386/sfp-machine.h: Moved to libgcc.
2598
2599         * config/i386/sfp-machine.h: New.
2600         * config/i386/t-linux: Likwise.
2601
2602         * config/i386/t-darwin: Remove softfp_wrap_start and
2603         softfp_wrap_end.
2604         * config/i386/t-darwin64: Likewise.
2605
2606         * config/i386/t-fprules-softfp64: Renamed to ...
2607         * config/i386/t-fprules-softfp: This.
2608
2609         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2610         and softfp_wrap_end.
2611
2612 2008-07-02  Jason Merrill  <jason@redhat.com>
2613
2614         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2615
2616         * tree.c (ctor_to_list): New fn.
2617         * tree.h: Declare it.
2618         (CONSTRUCTOR_ELT): New macro.
2619         (CONSTRUCTOR_NELTS): New macro.
2620
2621 2008-07-02  Richard Guenther  <rguenther@suse.de>
2622
2623         * tree-ssa-structalias.c (struct variable_info): Reorder
2624         to fill padding on 64bit hosts.  Make collapsed_to an int.
2625         (get_varinfo_fc): Deal with that.
2626         (new_var_info): Likewise.
2627         (collapse_rest_of_var): Likewise.
2628
2629 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2630
2631         * doc/install.texi (--enable-java-home): Document.
2632         (--enable-aot-compile-rpm): Likewise.
2633         (--with-arch-directory): Likewise.
2634         (--with-os-directory): Likewise.
2635         (--with-origin-name): Likewise.
2636         (--with-arch-suffix): Likewise.
2637         (--with-jvm-root-dir): Likewise.
2638         (--with-jvm-jar-dir): Likewise.
2639         (--with-python-dir): Likewise.
2640
2641 2008-07-02  Richard Guenther  <rguenther@suse.de>
2642
2643         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2644         from decls explicitly.  Merge operand checking from tuples.
2645
2646 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2647
2648         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2649         
2650 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2651
2652         * tree-switch-conversion.c: Included timevar.h
2653         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2654
2655         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2656
2657 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2658
2659         * tree-switch-conversion.c: Corrected various comments and
2660         whitespace issues
2661         (build_constructors): Fixed minor formatting mistakes.
2662
2663         * invoke.texi (Optimize Options): Corrected the
2664         switch-conversion-max-branch-ratio parameter.
2665
2666 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2667
2668         * final.c (asm_insn_count): Return zero for an empty asm body.
2669
2670 2008-07-02  Richard Guenther  <rguenther@suse.de>
2671
2672         * bitmap.h (bitmap_set_bit): Return bool.
2673         (bitmap_clear_bit): Likewise.
2674         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2675         write to the bitmap if it would.
2676         (bitmap_clear_bit): Likewise.
2677         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2678         bitmap_set_bit return value.
2679         (add_pred_graph_edge): Likewise.
2680         (add_graph_edge): Likewise.
2681         (do_sd_constraint): Likewise.
2682         (do_ds_constraint): Likewise.
2683
2684 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2685
2686         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2687         Fix -Wc++-compat and/or -Wcast-qual warnings.
2688         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2689         gen_regparm_prefix): Likewise.
2690         * vmsdbgout.c (write_modbeg, lookup_filename,
2691         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2692
2693 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2694
2695         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2696         defaults.h definition apply.
2697
2698 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2699
2700         * function.c (assign_parm_remove_parallels): New.
2701         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2702         PARALLELs.
2703         (assign_parm_setup_block): Do not handle them.
2704         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2705         assign_parm_remove_parallels.
2706
2707 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2708
2709         * c-typeck.c (convert_for_assignment): Use
2710         vector_targets_convertible_p.
2711         * c-common.c (vector_targets_convertible_p): New.
2712         * c-common.h (vector_targets_convertible_p): New prototype.
2713         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2714         opaque_p_V2SI_type_node.
2715
2716 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2717
2718         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2719         RFmode constants.
2720
2721 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2722
2723         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2724         TFmode constants via two element DImode vector for hosts with
2725         HOST_BITS_PER_WIDE_INT < 64.
2726         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2727         also for HOST_BITS_PER_WIDE_INT < 64.
2728
2729 2008-07-01  Richard Guenther  <rguenther@suse.de>
2730
2731         PR tree-optimization/36666
2732         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2733         (get_constraint_exp_from_ssa_var): Split into ...
2734         (get_constraint_exp_for_temp): ... this ...
2735         (get_constraint_for_ssa_var): ... and that.
2736         Return constraint expressions for all touched sub-fields
2737         if the results address is not taken.
2738         (process_constraint): Remove assertion that aggregate
2739         assignments do not happen at this place.
2740         (get_constraint_for_component_ref): Add address_p argument.
2741         Return constraint expressions for all touched sub-fields
2742         if the results address is not taken.
2743         (do_deref): Use get_constraint_exp_for_temp.
2744         (get_constraint_for_1): Rename from ...
2745         (get_constraint_for): ... this.  Add the old function as wrapper.
2746         (do_structure_copy): Use get_constraint_for_1.
2747
2748 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2749
2750         * Makefile.in (tree-switch-conversion.o): Add.
2751         (OBJS-common): Add tree-swtch-conversion.o.
2752         * passes.c (init_optimization_passes): Add pass_convert_switch.
2753         * tree-pass.h: (pass_convert_switch): Add.
2754         * tree-switch-conversion.c: New file.
2755         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2756         * common.opt (ftree-cswtch): New option.
2757         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2758         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2759         * opts.c (decode_options): Set flag_tree_switch_conversion when
2760         optimization level is >= 2.
2761         * doc/invoke.texi (Optimize Options): Added description of
2762         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2763
2764 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2765
2766         * config/darwin-driver.c (darwin_default_min_version): Fix
2767         -Wc++-compat warnings.
2768
2769 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2770
2771         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2772         of operand 0.
2773
2774 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2775
2776         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2777         
2778 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2779
2780         PR rtl-optimization/34744
2781         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2782         (df_scan_free_internal): Free data structures not
2783         allocated in storage pools.
2784         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2785         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2786         df_scan_free_mws_vec.
2787         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2788         unconditionally.
2789
2790 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2791
2792         * config/i386/i386.c (contains_aligned_value_p): Return true
2793         for __float128.
2794         (ix86_function_arg_boundary): Return its natural boundary
2795         for __float128.
2796         (return_in_memory_32): Don't check TDmode.
2797         (ix86_split_to_parts): Support splitting into 4 parts and
2798         support TFmode for 32bit target.
2799         (ix86_split_long_move): Support splitting into 4 parts.
2800         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2801         for SSE2.
2802         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2803         (ix86_init_builtins): Here.
2804         (ix86_scalar_mode_supported_p): Always return true for TFmode.
2805         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2806         'q' and 'w', respectively. 
2807
2808         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2809         TARGET_64BIT.
2810         (movtf_internal): Likewise.
2811         (<code>tf2): Likewise.
2812         (*absnegtf2_sse): Likewise.
2813         (copysign<mode>3): Likewise.
2814         (copysign<mode>3_const): Likewise.
2815         (copysign<mode>3_var): Likewise.
2816         (define_split UNSPEC_COPYSIGN): Likewise.
2817         * config/i386/sse.md (*nandtf3): Likewise.
2818         (<code>tf3): Likewise.
2819         (*<code>tf3): Likewise.
2820
2821 2008-06-30  Joey Ye  <joey.ye@intel.com>
2822             H.J. Lu  <hongjiu.lu@intel.com>
2823
2824         * global.c (compute_regsets): Set frame_pointer_needed here.
2825         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2826
2827 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2828
2829         * doc/install.texi (specific): Expand Windows build notes.
2830
2831 2008-06-30  Ira Rosen  <irar@il.ibm.com>
2832
2833         PR tree-optimization/36648
2834         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2835         number of prolog iterations by step. Fix the comment.
2836
2837 2008-06-30  Richard Guenther  <rguenther@suse.de>
2838
2839         PR middle-end/36671
2840         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2841         handle calls from ECF_MALLOC functions.
2842         (handle_pure_call): ECF_MALLOC functions do not return
2843         call-used memory.
2844         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2845
2846 2008-06-29  Andreas Schwab  <schwab@suse.de>
2847
2848         * config/m68k/m68k.c (print_operand): Always print a float
2849         constant in hex.
2850         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2851         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2852         Remove macros.
2853
2854         * config/rs6000/x-linux64: Remove never used file.
2855
2856 2008-06-29  Richard Guenther  <rguenther@suse.de>
2857
2858         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2859         prototype.
2860         (struct alias_info): Move ...
2861         * tree-ssa-alias.c: ... here.
2862         (update_alias_info): Declare.
2863         (compute_may_aliases): Call it.
2864         (update_alias_info): New function.
2865         * tree-ssa-structalias.c (update_alias_info): Move ...
2866         * tree-ssa-alias.c (update_alias_info_1): ... here.
2867         * tree-ssa-structalias.c (process_constraint_1): Remove
2868         unused from_call argument.  Rename to ...
2869         (process_constraint): ... this.  Delete old wrapper.
2870         (make_constraint_to): Adjust callers.
2871         (handle_const_call): Likewise.
2872         (handle_pure_call): Likewise.
2873         (init_base_vars): Likewise.
2874         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
2875         (find_func_aliases): We don't need structure copies for
2876         complex types.
2877         (make_constraint_from_anything): Remove.
2878         (create_variable_info_for): For globals make constraints
2879         from escaped, not from anything.
2880         (compute_points_to_sets): Do not call update_alias_info.
2881         (ipa_pta_execute): Use make_constraint_from.
2882
2883 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2884
2885         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2886         (bitmap.o-warn, dominance.o-warn): New.
2887         * configure.ac (cxx_compat_warn): Delete.
2888         (loose_warn): Add -Wcast-qual and -Wc++-compat.
2889         * system.h: Remove #pragma diagnostic for -Wcast-qual and
2890         -Wc++-compat.
2891         * configure: Regenerate.
2892
2893         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2894         warnings.
2895
2896 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2897
2898         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2899         * df-scan.c (df_notes_rescan): Likewise.
2900         * ggc-page.c (set_page_table_entry): Likewise.
2901         * intl.c (gcc_gettext_width): Likewise.
2902         * varasm.c (get_unnamed_section, get_noswitch_section,
2903         get_section): Likewise.
2904
2905 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
2906
2907         * regrename.c (build_def_use): Don't copy RTX.
2908
2909 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
2910
2911         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2912         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
2913         punctuation.  Use @ref instead of @xref.
2914         (Function Names): Remove stray @display/@end display.
2915         (C++ Attributes): Use @ref instead of @xref.
2916         (Deprecated Features): Fix punctuation around @xref.
2917         (Backwards Compatibility): Likewise.
2918         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2919
2920 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
2921
2922         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2923         constants for E500 double.
2924
2925 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2926
2927         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2928         element type of const_vector.
2929
2930 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
2931
2932         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2933         Remove FLAGS_REG clobber from expander pattern.
2934         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2935         (anddi3, andsi3, andhi3, andqi3): Ditto.
2936         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2937         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2938         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2939         (ashlsi3, ashlhi3, ashlqi3): Ditto.
2940         (ashrsi3, ashrhi3, ashrqi3): Ditto.
2941         (lshrsi3, lshrhi3, lshrqi3): Ditto.
2942         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2943         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2944
2945 2008-06-28  Richard Guenther  <rguenther@suse.de>
2946
2947         * tree-ssa-structalias.c (callused_id, var_callused,
2948         callused_tree): Add.
2949         (handle_pure_call): New function.
2950         (find_func_aliases): Call it.
2951         (find_what_p_points_to): Handle the call-used set.
2952         (clobber_what_escaped): Likewise.
2953         (compute_call_used_vars): New function.
2954         (init_base_vars): Init the call-used variable.
2955         (do_sd_constraint): Do not propagate the solution from CALLUSED
2956         but use CALLUSED as a placeholder.
2957         (solve_graph): Likewise.
2958         * tree-flow-inline.h (gimple_call_used_vars): New function.
2959         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2960         (compute_call_used_vars): Declare.
2961         * tree-ssa-alias.c (set_initial_properties): Call
2962         compute_call_used_vars.
2963         (reset_alias_info): Clear call-used variables.
2964         (add_call_clobber_ops): Assert we are not called for const/pure
2965         functions.  Remove handling of them.
2966         (add_call_read_ops): Handle pure functions by adding the
2967         call-used set of variables as VUSEs.
2968         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2969         (delete_tree_ssa): Free it.
2970         * tree-dfa.c (remove_referenced_var): Clear the var from the
2971         call-used bitmap.
2972
2973 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
2974
2975         * tree.c (build_varargs_function_type_list): New.
2976         (build_function_type_list_1): New.
2977         (build_function_type_list): Use build_function_type_list_1.
2978         * tree.h (build_varargs_function_type_list): New.
2979
2980 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2981
2982         PR target/34856
2983         * config/spu/spu.c (spu_builtin_splats): Do not generate
2984         invalid CONST_VECTOR expressions.
2985         (spu_expand_vector_init): Likewise.
2986
2987 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
2988
2989         * optabs.c (libfunc_decls): New variable.
2990         (libfunc_decl_hash, libfunc_decl_eq): New functions.
2991         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2992         for the same function twice.
2993
2994 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
2995
2996         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2997         ix86_expand_binary_operator directly.
2998         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
2999         for operand 2.
3000         (*ashrti3_1): Ditto.
3001         (*lshrti3_1): Ditto.
3002         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3003         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3004         using only one splitter.  Conditionaly execute splitter before or
3005         after peephole2 pass.
3006         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3007         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
3008         Use only one alternative in asm template.
3009         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3010         in asm template.
3011         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3012         "J" operand constraint for operand 2.
3013         (*ashldi3_cconly_rex64): Ditto.
3014         (*ashrdi3_cmp_rex64): Ditto.
3015         (*ashrdi3_cconly_rex64): Ditto.
3016         (*lshrdi3_cmp_rex64): Ditto.
3017         (*lshrdi3_cconly_rex64): Ditto.
3018         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3019         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3020         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3021         gen_x86_shrd_1.
3022
3023 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3024
3025         * gimplify.c (omp_is_private): Don't return true if decl is not
3026         already private on #pragma omp for or #pragma omp parallel for.
3027
3028         PR debug/36617
3029         * tree-cfg.c (struct move_stmt_d): Replace block field with
3030         orig_block and new_block fields.
3031         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3032         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3033         (move_block_to_fn): Replace vars_map and new_label_map arguments
3034         with struct move_stmt_d pointer.
3035         (replace_block_vars_by_duplicates): New function.
3036         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
3037         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
3038         all subblocks of ORIG_BLOCK to the new function.  Call
3039         replace_block_vars_by_duplicates.
3040         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3041         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3042         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
3043         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3044         (expand_omp): Temporarily set input_location to the location of
3045         region's controlling stmt.
3046         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3047         BIND_EXPR, push ctx->block_vars and gimplification vars into
3048         the BIND_EXPR and its block's BLOCK_VARS instead of directly
3049         into dest function.
3050         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3051         there are any BLOCK_VARS.
3052         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3053         OMP_PARALLEL or OMP_TASK stmt.
3054         (lower_omp): Save and restore input_location around the lower_omp_1
3055         call.
3056
3057 2008-06-27  Richard Guenther  <rguenther@suse.de>
3058
3059         PR tree-optimization/36400
3060         PR tree-optimization/36373
3061         PR tree-optimization/36344
3062         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3063         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3064         (update_alias_info): Remove call clobbering code.
3065         (make_constraint_to): New helper function.
3066         (make_escape_constraint): Likewise.
3067         (handle_rhs_call): Use it on all pointer containing arguments.
3068         Also mark the static chain escaped.
3069         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3070         instead of ANYTHING.
3071         (make_constraint_from): New helper split out from ...
3072         (make_constraint_from_anything): ... here.
3073         (find_func_aliases): Add constraints for escape sites.
3074         (intra_create_variable_infos): Make constraints from NONLOCAL
3075         for parameters.
3076         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3077         as ANYTHING.
3078         (clobber_what_p_points_to): Remove.
3079         (clobber_what_escaped): New function.
3080         (init_base_vars): Init NONLOCAL and ESCAPED.
3081         (do_sd_constraint): Do not propagate the solution from ESCAPED
3082         but use ESCAPED as a placeholder.
3083         (solve_graph): Likewise.
3084         * tree-flow.h (clobber_what_p_points_to): Remove.
3085         (clobber_what_escaped): Declare.
3086         * tree-ssa-alias.c (set_initial_properties): Call it.
3087         Remove code clobbering escaped pointers.
3088
3089 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3090
3091         * function.c (allocate_struct_function): Only allocate a unique
3092         funcdef_no if the decl is nonzero.
3093
3094 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3095
3096         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3097         * config/mips/mips.c (mips_split_const_insns): New function.
3098         * config/mips/mips.md (move_type): New attribute.
3099         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
3100         (dword_mode): New attribute.
3101         (type): Avoid long line.  Map "move_type"s to "type"s,
3102         choosing "multi" for doubleword moves if appropriate.
3103         Swap MTC/MFC comments to match their declaration order.
3104         (extended_mips16): Default to "yes" if "move_type" is "sll0",
3105         "type" is "branch" or "jal" is "direct".
3106         (length): Handle "extended_mips16" first.  Make the default
3107         "0" for "ghost" instructions.  Set the length from "move_type".
3108         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3109         of "type", with "sll0" for the register alternative.  Remove the
3110         "extended_mips16" attribute.
3111         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3112         of "type", with "shift_shift" for the register alternative.
3113         Remove the "length" attribute.
3114         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3115         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3116         of "type", with "andi" for the register alternative.
3117         (*zero_extendqihi2): Likewise.
3118         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3119         of "andi" instead of a "type" of "arith".
3120         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3121         instead of "type".
3122         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3123         (mov_<store>r, *mov<mode>_ra): Likewise.
3124         (extendsidi2): Use "move_type" instead of "type", with "move"
3125         for the register alternative.
3126         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3127         of "type", with "signext" for the register alternative.
3128         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3129         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3130         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3131         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3132         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3133         (unnamed branch insn): Likewise.
3134         (*movdi_gp32_fp64): Fold into...
3135         (*movdi_32bit): ...here.
3136         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3137         (*movdf_hardfloat): ...this new pattern.
3138         (*movdf_softfloat): Remove redundant FPR alternatives.
3139         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3140         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3141         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3142         the "move" attribute.
3143         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3144         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3145         and "store" for COP loads and stores.
3146         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3147         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3148         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3149         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3150         (*movtf_mips16, *movv2sf): Likewise.
3151         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3152         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3153         (mfhc1<mode>): Use "move_type" instead of "move".
3154         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3155         (loadgp_blockage): Remove the "length" attribute.
3156         (blockage, set_got_version, update_got_version): Likewise.
3157         (call_internal): Remove the "extended_mips16" attribute.
3158         (call_value_internal, call_value_multiple_internal): Likewise.
3159         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3160         instead of "move".
3161         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3162         the "length" attribute.
3163
3164 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3165
3166         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3167         -Wcast-qual warnings.
3168         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3169         handle_pragma_pop_macro): Likewise.
3170         * collect2.c (resolve_lib_name): Likewise.
3171         * config/arc/arc.c (arc_init): Likewise.
3172         * config/arm/arm.c (neon_builtin_compare,
3173         locate_neon_builtin_icode): Likewise.
3174         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3175         * config/bfin/bfin.c (bfin_init_machine_status,
3176         bfin_optimize_loop): Likewise.
3177         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3178         * config/cris/cris.c (cris_init_expanders): Likewise.
3179         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3180         * config/darwin.c (machopic_indirection_eq,
3181         machopic_indirection_name, machopic_output_indirection): Likewise.
3182         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3183         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3184         frv_optimize_membar): Likewise.
3185         * config/i386/cygwin.h (mingw_scan,
3186         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3187         * config/i386/cygwin1.c (mingw_scan): Likewise.
3188         * config/i386/i386.c (machopic_output_stub): Likewise.
3189         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3190         i386_pe_unique_section): Likewise.
3191         * config/ia64/ia64.c (ia64_init_machine_status,
3192         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3193         Likewise.
3194         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3195         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3196         * config/m68k/m68k.c (m68k_handle_option,
3197         m68k_sched_md_init_global): Likewise.
3198         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3199         mcore_unique_section): Likewise.
3200         * config/mips/mips.c (mips_block_move_straight,
3201         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3202         Likewise.
3203         * config/mmix/mmix.c (mmix_init_machine_status,
3204         mmix_encode_section_info): Likewise.
3205         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3206         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3207         print_operand_address, output_toc, redefine_groups,
3208         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3209         * config/s390/s390.c (s390_init_machine_status): Likewise.
3210         * config/score/score.c (score_block_move_straight,
3211         score_block_move_loop_body): Likewise.
3212         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3213         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3214         * emit-rtl.c (find_auto_inc): Likewise.
3215         * gcc.c (translate_options, process_command): Likewise.
3216         * reorg.c (dbr_schedule): Likewise.
3217         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3218         * xcoffout.c (xcoffout_declare_function): Likewise.
3219
3220 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3221
3222         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3223         ipa-pta working again.
3224
3225 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3226
3227         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3228         genautomata.
3229
3230 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3231
3232         * config.gcc (powerpc*-*-*): Add new core e500mc.
3233         * config/rs6000/e500mc.md: New file.
3234         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3235         e500mc.
3236         (rs6000_override_options): Add e500mc case to
3237         processor_target_table. Altivec and Spe options not allowed
3238         with e500mc. Add isel instruction to e500mc by
3239         default. Initialize rs6000_cost for e500mc.
3240         (rs6000_issue_rate): Set issue rate for e500mc.
3241         * config/rs6000/rs6000.h (processor_type): Add
3242         PROCESSOR_PPCE500MC.
3243         (ASM_CPU_SPEC): Add e500mc.
3244         Set TARGET_ISEL to rs6000_isel.
3245         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3246         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3247         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3248         Include e500mc.md.
3249         * doc/invoke.texi: Add e500mc to list of cpus.
3250
3251 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3252
3253         PR c/34867
3254         * c-lex.c (lex_charconst): Initialize unsignedp.
3255
3256 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3257
3258         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3259         documented assumptions.
3260
3261 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3262
3263         * dwarf2out.c: Remove trailing white spaces.  Break long line
3264         in comments.
3265
3266 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3267
3268         * libfuncs.h (LTI_synchronize): New libfunc_index.
3269         (synchronize_libfunc): Declare.
3270         * builtins.c (expand_builtin_synchronize): Consider using
3271         synchronize_libfunc before falling back on an asm blockage.
3272         * config/mips/mips.c: Include libfuncs.h
3273         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3274
3275 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3276
3277         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3278         parameter.  Copy stack_reg to r11 where appropriate.
3279         (no_global_regs_above): Add gpr parameter.
3280         (rs6000_stack_info): Only add padding for SPE save area if we
3281         are saving SPE GPRs and CR.
3282         (saveres_routine_syms): New variable.
3283         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3284         Define.
3285         (rs6000_savres_routine_sym): New function.
3286         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3287         split out of...
3288         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3289         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3290         Tweak FPR out-of-line saving.
3291         (rs6000_make_savres_rtx): New function.
3292         (rs6000_use_multiple_p): New function.
3293         (rs6000_savres_strategy): New function.
3294         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3295         out-of-line if appropriate.
3296         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3297         if we are optimizing for size.
3298         (GP_SAVE_INLINE): Define.
3299         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3300         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3301         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3302         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3303         (*save_fpregs_<mode>): Add use of r11.
3304         (*restore_gpregs_<mode>): New insn.
3305         (*return_and_restore_gpregs_<mode>): New insn.
3306         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3307         use r11.
3308         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3309         (*restore_gpregs_spe): New insn.
3310         (*return_and_restore_gpregs_spe): New insn.
3311         * config/rs6000/predicates.md (save_world_operation): Fix check.
3312
3313 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3314
3315         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3316         this point, so assert that.
3317
3318 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3319
3320         * cfganal.c: Include vec.h and vecprim.h.
3321         (compute_idf): Import from...
3322         * tree-into-ssa (compute_idf): ...here.
3323         * basic-block.h (compute_idf): Export.
3324
3325 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3326
3327         * c-decl.c (merge_decls): Use !current_function_decl to check for
3328         extern declaration of C99 inline function being at file scope.
3329
3330 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3331
3332         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3333
3334 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3335
3336         * alias.c (record_alias_subset, init_alias_analysis): Fix
3337         -Wc++-compat and/or -Wcast-qual warnings.
3338         * attribs.c (lookup_attribute_spec): Likewise.
3339         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3340         copy_bb, connect_traces,
3341         find_rarely_executed_basic_blocks_and_cr): Likewise.
3342         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3343         note_btr_set, migrate_btr_defs): Likewise.
3344         * builtins.c (result_vector, expand_builtin_memcpy,
3345         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3346         builtin_memset_read_str, expand_builtin_printf,
3347         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3348         Likewise.
3349         * caller-save.c (mark_set_regs): Likewise.
3350         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3351         * cgraph.c (cgraph_edge): Likewise.
3352         * combine.c (likely_spilled_retval_1): Likewise.
3353         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3354         htab_counts_entry_del, get_coverage_counts): Likewise.
3355         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3356         new_cselib_val): Likewise.
3357         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3358         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3359         Likewise.
3360         * df-core.c (df_compact_blocks): Likewise.
3361         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3362         * df-scan.c (df_grow_reg_info, df_ref_create,
3363         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3364         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3365         df_record_entry_block_defs, df_record_exit_block_uses,
3366         df_bb_verify): Likewise.
3367         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3368         DF_REF_EXTRACT_MODE_CONST): New.
3369         * dominance.c (get_immediate_dominator, get_dominated_by,
3370         nearest_common_dominator, root_of_dom_tree,
3371         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3372         -Wc++-compat and/or -Wcast-qual warnings.
3373         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3374         record_store, replace_read, check_mem_read_rtx, scan_insn,
3375         dse_step1, dse_record_singleton_alias_set): Likewise.
3376         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3377
3378 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3379
3380         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3381         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3382         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3383         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3384         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3385         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3386         file_name_acquire, output_file_names, add_const_value_attribute,
3387         premark_used_types_helper, file_table_eq, file_table_hash,
3388         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3389         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3390         -Wcast-qual warnings.
3391         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3392         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3393         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3394         gen_reg_rtx, start_sequence, init_emit): Likewise.
3395         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3396         * except.c (init_eh_for_function, gen_eh_region,
3397         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3398         arh_to_landing_pad, arh_to_label, add_action_record,
3399         add_call_site, switch_to_exception_section): Likewise.
3400         * expmed.c (synth_mult): Likewise.
3401         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3402         store_expr): Likewise.
3403         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3404         Likewise.
3405         * function.c (assign_stack_temp_for_type,
3406         allocate_struct_function, match_asm_constraints_1): Likewise.
3407         * gcov-io.c (gcov_allocate): Likewise.
3408         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3409         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3410         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3411         record_one_set, insert_expr_in_table, insert_set_in_table,
3412         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3413         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3414         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3415         -Wcast-qual warnings.
3416
3417 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3418
3419         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3420         -Wcast-qual warnings.
3421         * gcc.c (process_command): Likewise.
3422         * genattrtab.c (oballoc): Use XOBNEW.
3423         (oballocvec): Define.
3424         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3425         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3426         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3427         -Wc++-compat and/or -Wcast-qual warnings.
3428         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3429         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3430         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3431         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3432         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3433         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3434         add_excls, process_presence_absence_names,
3435         process_presence_absence_patterns, add_presence_absence,
3436         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3437         get_free_state, add_arc, get_free_automata_list_el,
3438         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3439         transform_3, cache_presence, create_ainsns, create_automata,
3440         create_state_ainsn_table, dfa_insn_code_enlarge,
3441         output_trans_func, output_min_issue_delay_func,
3442         output_dead_lock_func, output_reset_func,
3443         output_get_cpu_unit_code_func, output_dfa_start_func,
3444         expand_automata): Likewise.
3445         * genextract.c (gen_insn): Likewise.
3446         * gengtype-lex.l: Likewise.
3447         * gengtype.c (read_input_list, adjust_field_type,
3448         process_gc_options): Likewise.
3449         * genoutput.c (note_constraint): Likewise.
3450         * genpreds.c (mangle, add_constraint): Likewise.
3451         * genrecog.c (process_define_predicate, new_decision,
3452         add_to_sequence): Likewise.
3453         * gensupport.c (record_insn_name): Likewise.
3454
3455 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3456
3457         * config/i386/driver-i386.c (detect_caches_amd,
3458         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3459         and/or -Wcast-qual warnings.
3460         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3461         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3462         gt_pch_save): Likewise.
3463         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3464         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3465         * global.c (compute_regsets): Likewise.
3466         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3467         finish_graph_dump_file): Likewise.
3468         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3469         unlink_bb_notes): Likewise.
3470         * integrate.c (get_hard_reg_initial_val): Likewise.
3471         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3472         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3473         * local-alloc.c (update_equiv_regs): Likewise.
3474         * loop-invariant.c (check_invariant_table_size,
3475         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3476         Likewise.
3477         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3478         altered_reg_used, mark_altered): Likewise.
3479         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3480         insert_var_expansion_initialization,
3481         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3482         release_var_copies): Likewise.
3483         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3484         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3485         analyze_accesses_for_phi_node, check_var_notmodified_p,
3486         check_allocation_function, find_sites_in_func,
3487         record_all_accesses_in_func, transform_access_sites,
3488         transform_allocation_sites): Likewise.
3489         * omp-low.c (new_omp_region, create_omp_child_function_name,
3490         check_omp_nesting_restrictions, check_combined_parallel,
3491         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3492         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3493         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3494         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3495         Likewise.
3496         * opts-common.c (prune_options): Likewise.
3497         * opts.c (add_input_filename, print_filtered_help,
3498         get_option_state): Likewise.
3499         * params.c (add_params): Likewise.
3500         * passes.c (set_pass_for_id, next_pass_1,
3501         do_per_function_toporder, pass_fini_dump_file): Likewise.
3502         * postreload.c (reload_cse_simplify_operands): Likewise.
3503         * predict.c (tree_predicted_by_p, tree_predict_edge,
3504         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3505
3506 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3507
3508         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3509         warnings.
3510         * recog.c (check_asm_operands, validate_change_1): Likewise.
3511         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3512         subst_asm_stack_regs): Likewise.
3513         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3514         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3515         * regmove.c (reg_is_remote_constant_p): Likewise.
3516         * regrename.c (regrename_optimize, scan_rtx_reg,
3517         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3518         Likewise.
3519         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3520         regstat_compute_calls_crossed): Likewise.
3521         * reload1.c (init_reload, new_insn_chain,
3522         has_nonexceptional_receiver, reload, copy_reloads,
3523         calculate_needs_all_insns, init_elim_table): Likewise.
3524         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3525         * rtl.c (shallow_copy_rtx_stat): Likewise.
3526         * rtlanal.c (parms_set): Likewise.
3527         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3528         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3529         * sched-ebb.c (earliest_block_with_similiar_load,
3530         add_deps_for_risky_insns): Likewise.
3531         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3532         schedule_region): Likewise.
3533         * see.c (eq_descriptor_pre_extension,
3534         hash_descriptor_pre_extension, hash_del_pre_extension,
3535         eq_descriptor_properties, hash_descriptor_properties,
3536         hash_del_properties, see_seek_pre_extension_expr,
3537         see_initialize_data_structures, see_print_register_properties,
3538         see_print_pre_extension_expr, see_delete_merged_def_extension,
3539         see_delete_unmerged_def_extension, see_emit_use_extension,
3540         see_pre_delete_extension, see_map_extension, see_commit_changes,
3541         see_analyze_merged_def_local_prop,
3542         see_analyze_merged_def_local_prop,
3543         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3544         see_set_prop_merged_def, see_set_prop_unmerged_def,
3545         see_set_prop_unmerged_use, see_print_one_extension,
3546         see_merge_one_use_extension, see_merge_one_def_extension,
3547         see_store_reference_and_extension, see_update_uses_relevancy,
3548         see_update_defs_relevancy): Likewise.
3549         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3550         hash_statistics_free, curr_statistics_hash): Likewise.
3551         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3552         expand_asm_operands, expand_return, case_bit_test_cmp,
3553         expand_case): Likewise.
3554         * stor-layout.c (start_record_layout): Likewise.
3555         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3556         gt_pch_save_stringpool): Likewise.
3557         * tree-data-ref.c (hash_stmt_vertex_info,
3558         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3559         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3560
3561 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3562
3563         PR target/36627
3564         * config/i386/i386.md : Change constraints of HImode and QImode
3565         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3566         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3567         from const0_operand and const1_operand predicated operands.
3568         (i): Change QImode and HImode attribute from "i" to "n".
3569         (*subqi_2): Change HImode operands to QImode.
3570         (*subqi_3): Ditto.
3571
3572 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3573
3574         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3575         sed substitutions.
3576
3577 2008-06-25  Richard Guenther  <rguenther@suse.de>
3578
3579         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3580         not overflow the result type.
3581
3582 2008-06-25  Richard Guenther  <rguenther@suse.de>
3583
3584         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3585         (vn_lookup): Likewise.
3586
3587 2008-06-25  Richard Guenther  <rguenther@suse.de>
3588
3589         PR tree-optimization/35518
3590         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3591         * tree-sra.c (instantiate_element): Use fold_build3 to build
3592         BIT_FIELD_REFs.
3593         (try_instantiate_multiple_fields): Likewise.
3594
3595 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3596
3597         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3598         be early clobbers.
3599
3600 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3601
3602         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3603         use_backchain_to_restore_sp to true
3604         if the offset of the link register save area would go over the 32k - 1
3605         offset limit of the load
3606         instructions.
3607
3608 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3609
3610         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3611         anchor for the type-punning blurb.  Cross-reference "Structures
3612         unions enumerations and bit-fields implementation".  Provide a
3613         cast-through-pointer example.  Make final sentence self-contained.
3614         * doc/implement-c.texi (Structures unions enumerations and
3615         bit-fields implementation): Cross-reference the type-punning blurb
3616         in the -fstrict-aliasing documentation.
3617
3618 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3619
3620         PR middle-end/36594
3621         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3622         the memory instead of the memory itself for the save area.
3623
3624 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3625             Nicolas Roche  <roche@adacore.com>
3626
3627         * gengtype.c (srcdir_len): size_t instead of int.
3628         (get_file_realbasename): New function.  For F a filename, the real
3629         basename of F, with all the path components stripped.
3630         (get_file_srcdir_relative_path): New function.  For F a filename, the
3631         relative path to F from $(srcdir).
3632         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3633         get_file_realbasename.  Adjust the head comment.
3634         (get_prefix_langdir_index): New function. For F a filename, return the
3635         lang_dir_names[] relative index of the language directory that is
3636         a prefix in F.
3637         (get_file_langdir): For F a filename, return the name of the language
3638         directory where F is located.
3639         (get_file_gtfilename): New function. The gt- output file name for an
3640         input filename F.
3641         (get_output_file_with_visibility): Replace in-line computations with
3642         uses of get_file_gtfilename and get_prefix_langdir_index.
3643         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3644
3645 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3646
3647         PR tree-optimization/36504
3648         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3649         references without base address.
3650
3651 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3652
3653         PR middle-end/36584
3654         * calls.c (expand_call): Increase alignment for recursive functions.
3655
3656 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3657
3658         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3659         (TARGET_FUNCTION_VALUE): New define.
3660         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3661         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3662
3663 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3664
3665         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3666         (fmod<mode>3): Ditto.
3667         (remainderxf3): Ditto.
3668         (remainder<mode>3): Ditto.
3669
3670 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3671
3672         PR target/36533
3673         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3674         REG is a hard register.
3675
3676         PR tree-optimization/36508
3677         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3678         499, don't check it at all in release compilers.
3679
3680 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3681
3682         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3683         together with SSE_TARGET_MATH to disable insn pattern.
3684         (*fop_<MODEF:mode>_2_i387): Ditto.
3685         (*fop_<MODEF:mode>_3_i387): Ditto.
3686
3687 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3688
3689         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3690         
3691 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3692
3693         PR middle-end/34906
3694         * gimplify.c (gimplify_asm_expr): Check the return code of
3695         parse_output_constraint call, set function return and is_inout
3696         value if it failed.
3697
3698 2008-06-22  Ian Lance Taylor  <iant@google.com>
3699
3700         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3701         (narrowest_signed_type): Likewise.
3702         * c-typeck.c (c_common_type): Change local variable mclass to enum
3703         mode_class, twice.
3704         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3705         tcc_comparison, not the tree code itself.
3706         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3707         (c_expand_expr): Cast modifier to enum expand_modifier.
3708         * c-common.h (C_RID_CODE): Add casts.
3709         (C_SET_RID_CODE): Define.
3710         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3711         (c_lex_one_token): Add cast to avoid warning.
3712         (c_parser_objc_type_name): Rename local typename to type_name.
3713         (check_no_duplicate_clause): Change code parameter to enum
3714         omp_clause_code.
3715         (c_parser_omp_var_list_parens): Change kind parameter to enum
3716         omp_clause_code.
3717         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3718         c_parser_omp_list_var_parens.
3719         (c_parser_omp_threadprivate): Likewise.
3720         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3721         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3722         * c-format.c (NO_FMT): Define.
3723         (printf_length_specs): Use NO_FMT.
3724         (asm_fprintf_length_specs): Likewise.
3725         (gcc_diag_length_specs): Likewise.
3726         (scanf_length_specs): Likewise.
3727         (strfmon_length_specs): Likewise.
3728         (gcc_gfc_length_specs): Likewise.
3729         (printf_flag_specs): Change 0 to STD_C89.
3730         (asm_fprintf_flag_specs): Likewise.
3731         (gcc_diag_flag_specs): Likewise.
3732         (gcc_cxxdiag_flag_specs): Likewise.
3733         (scanf_flag_specs): Likewise.
3734         (strftime_flag_specs): Likewise.
3735         (strfmon_flag_specs): Likewise.
3736         (print_char_table): Likewise.
3737         (asm_fprintf_char_table): Likewise.
3738         (gcc_diag_char_table): Likewise.
3739         (gcc_tdiag_char_table): Likewise.
3740         (gcc_cdiag_char_table): Likewise.
3741         (gcc_cxxdiag_char_table): Likewise.
3742         (gcc_gfc_char_table): Likewise.
3743         (scan_char_table): Likewise.
3744         (time_char_table): Likewis.
3745         (monetary_char_table): Likewise.
3746         * c-format.h (BADLEN): Likewise.
3747
3748 2008-06-21  Ian Lance Taylor  <iant@google.com>
3749
3750         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3751         Define END_OF_BASE_TREE_CODES around inclusion.
3752         * tree.c (tree_code_type): New global array.
3753         (tree_code_length, tree_code_name): Likewise.
3754         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3755         $(lang_tree_files).
3756         (all-tree.def, s-alltree): New targets.
3757         (gencheck.h, s-gencheck): Remove.
3758         (tree.o): Depend upon all-tree.def.
3759         (build/gencheck.o): Remove gencheck.h dependency.
3760         (mostlyclean): Don't remove gencheck.h.
3761         * c-common.h (enum c_tree_code): Remove.
3762         * c-lang.c (tree_code_type): Remove.
3763         (tree_code_length, tree_code_name): Remove.
3764         * gencheck.c (tree_codes): Include all-tree.def, rather than
3765         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3766         after it is used.
3767         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3768         than tree.def.
3769         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3770         (operator_name_info): Size to MAX_TREE_CODES.
3771         (assignment_operator_name_info): Likewise.
3772         * cp/cp-lang.c (tree_code_type): Remove.
3773         (tree_code_length, tree_code_name): Remove.
3774         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3775         (assignment_operator_name_info): Likewise.
3776         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3777         MAX_TREE_CODES.
3778         * cp/mangle.c (write_expression): Likewise.
3779         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3780         * fortran/f95-lang.c (tree_code_type): Remove.
3781         (tree_code_length, tree_code_name): Remove.
3782         * java/java-tree.h (enum java_tree_code): Remove.
3783         * java/lang.c (tree_code_type): Remove.
3784         (tree_code_length, tree_code_name): Remove.
3785         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3786         * objc/objc-act.h (enum objc_tree_code): Remove.
3787         * objc/objc-lang.c (tree_code_type): Remove.
3788         (tree_code_length, tree_code_name): Remove.
3789         * objcp/objcp-lang.c (tree_code_type): Remove.
3790         (tree_code_length, tree_code_name): Remove.
3791         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3792         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3793         * ada/misc.c (tree_code_type): Remove.
3794         (tree_code_length, tree_code_name): Remove.
3795
3796 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3797
3798         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3799         the grand_bitmap_obstack.
3800
3801 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3802
3803         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3804         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3805         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3806         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3807         move_stmt_r, new_label_mapper): Likewise.
3808         * tree-complex.c (cvc_lookup): Likewise.
3809         * tree-dfa.c (create_function_ann): Likewise.
3810         * tree-dump.c (dump_register): Likewise.
3811         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3812         find_phi_replacement_condition): Likewise.
3813         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3814         tree_function_versioning): Likewise.
3815         * tree-into-ssa.c (cmp_dfsnum): Likewise.
3816         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3817         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3818         get_nonlocal_debug_decl, convert_nonlocal_reference,
3819         convert_nonlocal_omp_clauses, get_local_debug_decl,
3820         convert_local_reference, convert_local_omp_clauses,
3821         convert_nl_goto_reference, convert_nl_goto_receiver,
3822         convert_tramp_reference, convert_call_expr): Likewise.
3823         * tree-outof-ssa.c (contains_tree_r): Likewise.
3824         * tree-parloops.c (reduction_phi, initialize_reductions,
3825         eliminate_local_variables_1, add_field_for_reduction,
3826         add_field_for_name, create_phi_for_local_result,
3827         create_call_for_reduction_1, create_loads_for_reductions,
3828         create_stores_for_reduction, create_loads_and_stores_for_name):
3829         Likewise.
3830         * tree-phinodes.c (allocate_phi_node): Likewise.
3831         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3832         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3833         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3834         * tree-ssa-coalesce.c (compare_pairs): Likewise.
3835         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3836         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3837         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3838         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
3839         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3840         vn_nary_op_insert): Likewise.
3841         * tree-ssa.c (redirect_edge_var_map_add,
3842         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3843         * tree-vectorizer.c (vectorize_loops): Likewise.
3844         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3845         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3846         tree_cons_stat, build1_stat, build_variant_type_copy,
3847         decl_init_priority_lookup, decl_fini_priority_lookup,
3848         decl_priority_info, decl_restrict_base_lookup,
3849         decl_restrict_base_insert, decl_debug_expr_lookup,
3850         decl_debug_expr_insert, decl_value_expr_lookup,
3851         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3852         type_hash_add, get_file_function_name, tree_check_failed,
3853         tree_not_check_failed, tree_range_check_failed,
3854         omp_clause_range_check_failed, build_omp_clause,
3855         build_vl_exp_stat): Likewise.
3856         * value-prof.c (gimple_histogram_value,
3857         gimple_duplicate_stmt_histograms): Likewise.
3858         * var-tracking.c (attrs_list_insert, attrs_list_copy,
3859         unshare_variable, variable_union_info_cmp_pos, variable_union,
3860         dataflow_set_different_1, dataflow_set_different_2,
3861         vt_find_locations, variable_was_changed, set_variable_part,
3862         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3863         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3864         section_entry_hash, object_block_entry_eq,
3865         object_block_entry_hash, create_block_symbol,
3866         initialize_cold_section_name, default_function_rodata_section,
3867         strip_reg_name, set_user_assembler_name, const_desc_eq,
3868         build_constant_desc, output_constant_def, lookup_constant_def,
3869         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3870         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3871         default_internal_label): Likewise.
3872         * varray.c (varray_init, varray_grow): Likewise.
3873         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3874
3875 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
3876
3877         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3878         operators for "test" insn.  Macroize insn using SWI mode macro.
3879         (*jcc_fused_2): Ditto.
3880         (*jcc_fused_3): Macroize insn using SWI mode macro.
3881         (*jcc_fused_4): Ditto.
3882
3883 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
3884
3885         * tree-ssa-pre.c: Fix typo in comment.
3886         (init_antic, fini_antic): Add explicit funtions for
3887         initializing and deinitializing ANTIC and AVAIL sets.
3888         (create_expression_by_pieces): Fix typo in comment.
3889         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3890         (execute_pre): Eventually dump details about ANTIC_IN.
3891
3892 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3893
3894         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3895         * gcc.c (translate_options, init_spec, store_arg, read_specs,
3896         add_to_obstack, file_at_path, find_a_file, execute,
3897         add_preprocessor_option, add_assembler_option, add_linker_option,
3898         process_command, insert_wrapper, do_option_spec, do_self_spec,
3899         spec_path, do_spec_1, is_directory, main, used_arg,
3900         getenv_spec_function): Likewise.
3901         * tlink.c (symbol_hash_lookup, file_hash_lookup,
3902         demangled_hash_lookup, symbol_push, file_push, frob_extension):
3903         Likewise.
3904
3905 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3906
3907         * doc/rtl.texi: Updated subreg section.
3908
3909 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
3910
3911         PR c++/36523
3912         * cgraphunit.c (cgraph_process_new_functions): Don't clear
3913         node->needed and node->reachable.
3914         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3915         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3916         (expand_task_call): Don't call expand_task_copyfn.
3917         (expand_task_copyfn): Renamed to...
3918         (finalize_task_copyfn): ... this.
3919
3920 2008-06-19  Jan Hubicka  <jh@suse.cz>
3921
3922         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3923         clobbering framepointer.
3924
3925 2008-06-19  Jan Hubicka  <jh@suse.cz>
3926
3927         * tree-optimize.c (execute_early_local_optimizations): Set
3928         cgraph_state only at first invocation.
3929
3930 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3931
3932         * system.h (-Wc++-compat): Activate as a warning, no an error.
3933
3934 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3935
3936         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3937         instead of "#" in insn asm template.
3938         (*jcc_fused_2): Ditto.
3939
3940 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3941
3942         * config/i386/i386.h (ix86_tune_indices)
3943         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3944         (TARGET_FUSE_CMP_AND_BRANCH): New define.
3945         * config/i386/i386.md (*jcc_fused_1): New insn pattern
3946         (*jcc_fused_2): Ditto.
3947         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3948         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3949         (print operand): Handle 'E' and 'e' code.
3950
3951 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
3952
3953         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3954         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3955         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3956
3957 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
3958
3959         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3960         node->decl.
3961         (cgraph_expand_function): Use local copy of decl.
3962         (cgraph_expand_all_functions): Remove redundant initialization of
3963         order_pos.
3964         (cgraph_optimize): Reword internal_error message.
3965
3966 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
3967
3968         * arm-protos.h (arm_return_in_memory): Remove public
3969         arm_return_in_memory() prototype.
3970         * arm.c (arm_return_in_memory): Add static prototype, add target
3971         hook macro, change definition and comments.
3972         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3973
3974 2008-06-19  Ben Elliston  <bje@au.ibm.com>
3975
3976         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3977         real.c: Remove references to IEEE 754R.
3978         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3979         * doc/libgcc.texi (Decimal float library routines): Likewise.
3980
3981 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3982
3983         * targhooks.h (struct gcc_target): New member unwind_word_mode.
3984         (default_unwind_word_mode): Add prototype.
3985         * targhooks.c (default_unwind_word_mode): New function.
3986         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3987         instead of word_mode.
3988         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3989         (TARGET_INITIALIZER): Use it.
3990
3991         * c-common.c (handle_mode_attribute): Support "unwind_word"
3992         mode attribute.
3993         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3994
3995         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3996         word_mode to access SjLj_Function_Context member "data".
3997         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
3998         conversion from targetm.eh_return_filter_mode () to
3999         targetm.unwind_word_mode () if they differ.
4000
4001         * builtin-types.def (BT_UNWINDWORD): New primitive type.
4002         (BT_FN_UNWINDWORD_PTR): New function type.
4003         (BT_FN_WORD_PTR): Remove.
4004         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4005         * except.c (expand_builtin_extend_pointer): Convert pointer to
4006         targetm.unwind_word_mode () instead of word_mode.
4007
4008         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4009         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4010         (spu_unwind_word_mode): New function.
4011         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4012         (TARGET_UNWIND_WORD_MODE): Define.
4013         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4014
4015 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4016
4017         * config/spu/spu.c (reg_align): Remove.
4018         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4019         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4020         (spu_split_store): Likewise.
4021
4022 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4023
4024         * gcc/tree-vn.c: Fix typo in comment.
4025
4026 2008-06-18  Jan Hubicka  <jh@suse.cz>
4027
4028         * cgraphunit.c (cgraph_optimize): Output debug info when doing
4029         toplevel reorder too.
4030
4031 2008-06-18  Jan Hubicka  <jh@suse.cz>
4032
4033         * c-opts.c (c_common_post_options): PCH is not compatible with
4034         no-unit-at-a-time.
4035         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4036         -fno-toplevel-reorder by default now.
4037
4038 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4039
4040         PR documentation/30739
4041         * doc/install.texi (Prerequisites): Document dependency on awk.
4042
4043 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
4044             Ian Lance Taylor  <iant@google.com>
4045
4046         PR rtl-optimization/35604
4047         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4048         only want to change jump destinations, not eventual label comparisons.
4049
4050 2008-06-16  Jan Hubicka  <jh@suse.cz>
4051
4052         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4053         syntax errors.
4054         (cgraph_analyze_function): Likewise.
4055
4056 2008-06-16  Jan Hubicka  <jh@suse.cz>
4057
4058         * cgraph.h (cgraph_mark_if_needed): New function.
4059         * cgraphunit.c (cgraph_mark_if_needed): New function.
4060         * c-decl.c (duplicate_decl): Use it.
4061
4062 2008-06-16  Jan Hubicka  <jh@suse.cz>
4063
4064         * cgraph.c (cgraph_add_new_function): When in expansion state, do
4065         lowering.
4066
4067 2008-06-16  Jan Hubicka  <jh@suse.cz>
4068
4069         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4070
4071 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
4072             Kazu Hirata  <kazu@codesourcery.com>
4073             Maxim Kuvyrkov  <maxim@codesourcery.com
4074
4075         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4076         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4077         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4078         EXTRA_SPEC_FUNCTIONS.
4079         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4080         (DRIVER_SELF_SPECS): Adjust.
4081         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4082         * config/mips/st.h, config/mips/t-st: New.
4083         * config/mips/driver-native.c, config/mips/x-native: New.
4084         * doc/invoke.texi (MIPS): Document 'native' value for -march and
4085         -mtune options.
4086
4087 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4088
4089         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4090         from it.
4091         (ISA_HAS_FP_CONDMOVE): New macro.
4092         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4093         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4094         (ISA_HAS_NMADD3_NMSUB3): New macro.
4095         * config/mips/mips.c (mips_rtx_costs): Update.
4096         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4097         compiling for ST Loongson 2E/2F.
4098         (madd<mode>): Rename to madd4<mode>.  Update.
4099         (madd3<mode>): New pattern.
4100         (msub<mode>): Rename to msub4<mode>.  Update.
4101         (msub3<mode>): New pattern.
4102         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
4103         (nmadd3<mode>): New pattern.
4104         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
4105         (nmadd3<mode>_fastmath): New pattern.
4106         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
4107         (nmsub3<mode>): New pattern.
4108         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
4109         (nmsub3<mode>_fastmath): New pattern.
4110         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4111
4112 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
4113
4114         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4115         (DF_REF_INSN_INFO): New.
4116         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4117         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4118         with a NULL DF_REF_INSN_INFO.
4119         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4120         DF_INSN_SET.
4121         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4122         DF_INSN_INFO_EQ_USES): New.
4123         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4124         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4125         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4126         * df-core.c: Update comment for above changes.
4127         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4128         DF_INSN_UID_* macros.
4129         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4130         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4131         insn rtx.  Update all callers.
4132         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4133         df_ref_create_structure, df_insn_refs_collect): Likewise.
4134         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4135         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4136         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4137         macros to access the insn refs.
4138         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4139         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4140         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4141         for accessing the refs.
4142         (try_fwprop_subst): Likewise.
4143         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4144         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4145         for accessing the refs.
4146         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4147         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4148         to look at the insn refs.
4149         (record_uses): Likewise.
4150         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4151         function anymore.
4152         (mark_artificial_uses): Don't mark_insn for artificial refs.
4153         (mark_reg_rependencies): Likewise.
4154
4155         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4156
4157 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4158
4159         * configure: Regenerate.
4160
4161 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4162
4163         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4164         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4165         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4166
4167 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4168
4169         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4170         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4171         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4172
4173 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4174
4175         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4176         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4177         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4178
4179 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4180
4181         * tree-ssa-sccvn.c: Fix format of comments.
4182
4183 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4184
4185         * cgraph.c: Remove unneeded forward declarations of eq_node()
4186         and hash_node().
4187
4188 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4189
4190         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4191         REG_RETVAL notes.
4192         (see_update_relevancy): Likewise.
4193         * fwprop.c (try_fwprop_subst): Likewise.
4194         * rtlanal.c (noop_move_p): Likewise.
4195         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4196         notes to non-existing libcall blocks.
4197         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4198         Remove orig_set.
4199         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4200         (dead_libcall_p): Remove.
4201         (delete_trivially_dead_insns): Don't use it.
4202         * web.c (union_defs): Remove comment about keeping nops.
4203         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4204         (compute_hash_table_work): Don't track libcall notes.
4205         (do_local_cprop): Don't take libcall pointers.  Don't update
4206         libcall notes.
4207         (adjust_libcall_notes): Deleted.
4208         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4209         ever have existed in the first place).
4210         (replace_store_insn): Don't try to remove libcall notes.
4211         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4212         (resolve_reg_notes): Don't call them.
4213         (resolve_simple_move): Likewise.
4214         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4215         Don't remove REG_RETVAL notes.
4216         * emit-rtl.c (try_split): Don't update libcall notes.
4217         (emit_copy_of_insn_after): Dito.
4218         * cselib.c (cselib_current_insn_in_libcall): Remove.
4219         (cselib_process_insn): Don't set/clear it.
4220         (new_elt_loc_list): Don't record it.
4221         (cselib_init): Don't initialize it.
4222         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4223         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4224         notes.
4225         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4226         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4227         (init_deps): Don't initialize it.
4228         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4229         * combine.c (delete_noop_moves): Don't update libcall notes.
4230         (can_combine_p): Remove now pointless #if 0 block.
4231         (try_combine): Remove another obsolete #if 0 block.
4232         (distribute_notes): Don't distribute libcall notes.
4233         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4234         * dce.c (libcall_dead_p): Remove.
4235         (delete_unmarked_insns): Don't handle libcall blocks.
4236         (preserve_libcall_for_dce): Remove.
4237         (prescan_insns_for_dce): Don't special-case libcall block insns.
4238         * reload1 (reload): Don't handle libcall notes. 
4239         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4240         documentation.
4241
4242 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4243
4244         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4245         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4246         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4247
4248 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4249
4250         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4251         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4252         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4253
4254 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4255
4256         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4257
4258 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4259
4260         PR tree-optimization/36493
4261         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4262         the arguments list. Use VECTYPE to create vector pointer.
4263         (vectorizable_store): Fail if accesses through a pointer to vectype
4264         do not alias the original memory reference operands.
4265         Call vect_create_data_ref_ptr without the removed argument.
4266         (vectorizable_load): Likewise.
4267         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4268         removed argument.
4269
4270 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4271
4272         PR target/36336
4273         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
4274         reg_equiv_constant.
4275
4276 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4277
4278         * config/mips/loongson2ef.md: New file.
4279         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4280         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4281         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4282         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4283         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4284         and loongson_2f.
4285         (loongson2ef.md): New include.
4286         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4287         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4288         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4289         (loongson_gt_<mode>, loongson_extract_halfword)
4290         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4291         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4292         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4293         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4294         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4295         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4296         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4297         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4298         (vec_interleave_low<mode>): Define type attribute.
4299         * config/mips/mips.c (mips_ls2): New static variable.
4300         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4301         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4302         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4303         Implement target scheduling hooks.
4304         (mips_multipass_dfa_lookahead): Update to handle tuning for
4305         Loongson 2E/2F.
4306         (mips_sched_init): Initialize data for Loongson scheduling.
4307         (mips_ls2_variable_issue): New static function.
4308         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4309         Add sanity check.
4310         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4311         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4312         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4313         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4314         Handle ST Loongson 2E/2F cores.
4315         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4316
4317 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4318
4319         * omp-low.c (extract_omp_for_data): Fix comment typo.
4320         * c.opt: Fix typo.
4321
4322 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4323
4324         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4325         FIXME note about gcc/config.guess.
4326         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4327         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4328         * doc/cppopts.texi: Likewise.
4329         * doc/extend.texi: Likewise.
4330         * doc/gcc.texi: Likewise.
4331         * doc/gccint.texi: Likewise.
4332         * doc/gcov.texi: Likewise.
4333         * doc/gty.texi: Likewise.
4334         * doc/hostconfig.texi: Likewise.
4335         * doc/install.texi: Likewise.
4336         * doc/invoke.texi: Likewise.
4337         * doc/loop.texi: Likewise.
4338         * doc/makefile.texi: Likewise.
4339         * doc/md.texi: Likewise.
4340         * doc/passes.texi: Likewise.
4341         * doc/tm.texi: Likewise.
4342         * doc/tree-ssa.texi: Likewise.
4343         * doc/trouble.texi: Likewise.
4344
4345 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4346             Nathan Sidwell  <nathan@codesourcery.com>
4347             Maxim Kuvyrkov  <maxim@codesourcery.com>
4348             Richard Sandiford  <rdsandiford@googlemail.com>
4349         
4350         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4351         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4352         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4353         builtins.
4354         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4355         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4356         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4357         V8QImode cases.
4358         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4359         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4360         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4361         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4362         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4363         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4364         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4365         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4366         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4367         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4368         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4369         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4370         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4371         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4372         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4373         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4374         (mips_builtins): Add Loongson builtins.
4375         (mips_loongson_2ef_bdesc): New.
4376         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4377         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4378         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4379         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4380         New.
4381         (mips_expand_vector_init): New.
4382         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4383         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4384         if appropriate.
4385         * config/mips/mips.md: Add unspec numbers for Loongson
4386         builtins.  Include loongson.md.
4387         (MOVE64): Include Loongson vector modes.
4388         (SPLITF): Include Loongson vector modes.
4389         (HALFMODE): Handle Loongson vector modes.
4390         * config/mips/loongson.md: New.
4391         * config/mips/loongson.h: New.
4392         * config.gcc: Add loongson.h header for mips*-*-* targets.
4393         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4394
4395 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4396
4397         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4398         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4399         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4400         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4401         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4402         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4403         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4404         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4405         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4406         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4407         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4408         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4409         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4410         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4411         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4412         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4413         Remove use_fixproto=yes.
4414         (ia64*-*-hpux*): Remove comment about using fixproto.
4415         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4416
4417 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4418
4419         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4420         library rebuilds.
4421         * configure: Regenerate.
4422
4423 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4424
4425         PR middle-end/36520
4426         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4427         before evaluating it.
4428
4429 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4430
4431         PR c/36507
4432         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4433         nested inline functions.
4434         (start_decl, start_function): Don't invert DECL_EXTERNAL
4435         for nested inline functions.
4436
4437 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4438
4439         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4440         splits that must be made for correctness.
4441
4442 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4443
4444         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4445         (AVAIL_NON_MIPS16): Likewise.
4446         (mips_builtin_description): Replace target_flags with a predicate.
4447         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4448         (dspr2_32): New availability predicates.
4449         (MIPS_BUILTIN): New macro.
4450         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4451         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4452         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4453         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4454         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4455         (mips_dsp_32only_bdesc): Merge into...
4456         (mips_builtins): ...this new array.
4457         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4458         (mips_init_builtins): Update after above changes.
4459         (mips_expand_builtin_1): Merge into...
4460         (mips_expand_builtin): ...here and update after above changes.
4461
4462 2008-06-12  Paul Brook  <paul@codesourcery.com>
4463
4464         * longlong.h (__arm__): Define count_leading_zeros.
4465         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4466         (clzsi2, clzdi2): New functions.
4467         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4468         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4469         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4470         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4471         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4472         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4473         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4474         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4475         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4476         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4477
4478 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4479
4480         * config/m68k/m68k.c (m68k_tune_flags): New.
4481         (override_options): Compute m68k_tune_flags.
4482         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4483         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4484
4485 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4486
4487         PR middle-end/36506
4488         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4489
4490 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4491
4492         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4493         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4494
4495 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4496
4497         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4498         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4499
4500 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4501
4502         PR middle-end/36506
4503         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4504         reductions.
4505
4506 2008-06-12  Richard Guenther  <rguenther@suse.de>
4507
4508         PR tree-optimization/36345
4509         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4510         add memory_tag_needed flag.
4511         (may_alias_p): Declare.
4512         * tree-ssa-alias.c (may_alias_p): Export.
4513         (set_initial_properties): Use memory_tag_needed flag.
4514         (update_reference_counts): Likewise.
4515         (reset_alias_info): Reset memory_tag_needed flag.
4516         (create_name_tags): Check memory_tag_needed flag.
4517         (dump_points_to_info_for): Dump it.
4518         * tree-ssa-structalias.c (struct variable_info): Remove
4519         directly_dereferenced flag.
4520         (new_var_info): Do not initialize it.
4521         (process_constraint_1): Do not set it.
4522         (update_alias_info): Set is_dereferenced flag.
4523         (set_uids_in_ptset): Use may_alias_p.
4524         (set_used_smts): Check memory_tag_needed flag.
4525         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4526         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4527         memory_tag_needed flag.
4528         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4529         from broken design.
4530
4531 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4532
4533         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4534         red zone for w64 abi.
4535         (ix86_expand_prologue): Likewise.
4536         (ix86_force_to_memory): Likewise.
4537         (ix86_free_from_memory): Likewise.
4538
4539 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4540
4541         PR target/36425
4542         * config/rs6000/rs6000.c (rs6000_override_options): Set
4543         rs6000_isel conditionally to the absence of comand line override.
4544         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4545         Remove duplicate rs6000_isel setting.
4546         * config/rs6000/eabispe.h: Ditto.
4547
4548 2008-06-11  Richard Guenther  <rguenther@suse.de>
4549
4550         * alias.c (get_alias_set): Use the element alias-set for arrays.
4551         (record_component_aliases): For arrays and vectors do nothing.
4552         * c-common.c (strict_aliasing_warning): Handle the cases
4553         of alias set zero explicitly.
4554         * Makefile.in (dfp.o-warn): Add -Wno-error.
4555
4556 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4557
4558         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4559         tune_32 tune_64.
4560         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4561         tune_32 tune_64 to supported_defaults.  Allow values not
4562         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4563         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4564         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4565         with_cpu_64 to generic for 64-bit-supporting configurations, not
4566         with_cpu.  Remove FIXMEs.
4567         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4568         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4569         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4570         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4571         arch_32 and arch_64.
4572
4573 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4574             Olivier Hainque  <hainque@adacore.com>
4575
4576         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4577         Use DECL_SIZE_UNIT to retrieve the size of the field.
4578
4579 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4580
4581         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4582         with function calls after declarations.  Lay out
4583         neon_float_type_node before further use.
4584
4585 2008-06-11  Richard Guenther  <rguenther@suse.de>
4586
4587         * tree-flow.h (may_point_to_global_var): Declare.
4588         * tree-ssa-alias.c (may_point_to_global_var): New function.
4589         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4590
4591 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4592
4593         * configure.ac: Teach that fido supports .debug_line.
4594         * configure: Regenerate.
4595
4596 2008-06-10  Tom Tromey  <tromey@redhat.com>
4597
4598         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4599         debug hook.
4600
4601 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4602
4603         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4604         (encode_decimal64, decode_decimal64, encode_decimal128,
4605         decode_decimal128): Reverse order of 32-bit parts of value if host
4606         and target endianness differ.
4607
4608 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4609
4610         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4611         Avoid division by 0.
4612         (tree_mod_pow2_value_transform): Likewise.
4613         (tree_ic_transform): Likewise.
4614         (tree_stringops_transform): Likewise.
4615         (tree_mod_subtract_transform): Likewise.
4616         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4617         (copy_edges_for_bb): Likewise.
4618         (initialize_cfun): Likewise.
4619
4620 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4621
4622         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4623         nonmemory_operand. Add "N" operand constraint.
4624         (*btsi): Ditto.
4625         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4626         (*jcc_btsi_mask): Ditto.
4627         (*jcc_btsi_mask_1): Ditto.
4628
4629 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4630
4631         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4632         TYPE_CANONICAL for copied element type.
4633
4634 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4635
4636         PR target/36473
4637         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4638         Add m_CORE2 and m_GENERIC.
4639         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4640         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4641         (*btsi): Ditto.
4642         (*jcc_btdi_rex64): New instruction and split pattern.
4643         (*jcc_btsi): Ditto.
4644         (*jcc_btsi_1): Ditto.
4645         (*btsq): Fix Intel asm dialect operand order.
4646         (*btrq): Ditto.
4647         (*btcq): Ditto.
4648
4649 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4650
4651         PR middle-end/36447
4652         * simplify-rtx.c (simplify_subreg): Add check for shift count 
4653         greater than size.
4654
4655 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4656
4657         * doc/md.texi: Synchronize with later constraints.md change.
4658         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4659         with a C implementation.
4660         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4661         MFLO handling.
4662         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4663         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4664         when moving to and from MD_REGNUM.
4665         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4666         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4667         Handle byte and halfword moves.
4668         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4669         separately.
4670         * config/mips/constraints.md (h): Turn into NO_REGS.
4671         (l, x): Update documentation.
4672         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4673         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4674         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4675         (HILO): New mode iterator.
4676         (MOVE128): Add TI.
4677         (any_div): New code iterator.
4678         (u): Extend code attribute to div and udiv.
4679         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4680         d_operand in the splitters.  Remove redundant CONST_INT checks.
4681         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4682         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4683         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4684         accordingly, using normal moves instead of unspecs to move LO into
4685         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4686         (<u>mulsidi3): Handle expansion in C code.
4687         (<u>mulsidi3_32bit_internal): Rename to...
4688         (<u>mulsidi3_32bit): ...this.
4689         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4690         (*<u>mulsidi3_64bit): Rename to...
4691         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4692         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4693         to set LO and HI to the multiplication result.  Use a normal move
4694         for MFLO and an unspec for MFHI.
4695         (*<u>mulsidi3_64bit_parts): Replace with...
4696         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4697         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4698         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4699         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4700         instead of HI.  Split the instruction into a separate multiplication
4701         and MFHI if !TARGET_FIX_R4000.
4702         (<su>muldi3_highpart): Likewise.
4703         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4704         and the "=h" clobber.
4705         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4706         (<u>mulditi3): New expander.
4707         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4708         (madsi): Remove "=h" clobber.
4709         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4710         Force the modulus result to be a GPR and split the instruction into
4711         a division followed by an MFHI after reload.
4712         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4713         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4714         the MIPS16 HIGH define_split.
4715         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4716         of acc<->gpr moves to "multi".
4717         (*movdi_64bit): Replace the single "x" alternative with
4718         alternatives for moving into and out of "a".
4719         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4720         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4721         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4722         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4723         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4724         (movti): New expander.
4725         (*movti, *movti_mips16): New insns.
4726         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4727         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4728         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4729         * config/mips/predicates.md (fpr_operand): Delete.
4730         (d_operand): New predicate.
4731
4732 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4733
4734         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4735         failure on some Bourne shells.
4736         (x86_64-*-*): Ditto.
4737
4738 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4739
4740         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4741
4742 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4743
4744         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4745         (sparc-sun-solaris2*): Likewise.
4746
4747 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4748
4749         * doc/install.texi: Update requirements to build the Ada compiler.
4750
4751 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4752
4753         * df-scan.c (struct df_scan_problem_data): Remove the
4754         mw_link_pool alloc pool.
4755         (df_scan_free_internal): Don't free it.
4756         (df_scan_alloc): Don't allocate it.
4757         * df.h (struct df_link): Update comment.
4758
4759 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4760
4761         * except.h: Correct checks for when SJLJ exceptions must be used.
4762
4763 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4764
4765         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4766         default.
4767         
4768 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4769
4770         PR tree-optimization/36218
4771         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4772         configure for the build system.
4773         (BUILD_LDFLAGS): Define.
4774         * configure: Regenerate.
4775         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4776
4777 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4778
4779         PR target/36424
4780         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4781         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
4782         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
4783
4784 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4785
4786         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4787
4788 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4789
4790         * config.gcc (Obsolete configurations): Remove list of
4791         configurations.
4792         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4793         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4794         targets matched by those patterns.
4795         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4796         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4797         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4798         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4799         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4800         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4801         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4802         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4803         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4804         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4805         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4806         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4807         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4808         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4809         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4810         Make code for Solaris 7 and greater unconditional for Solaris.
4811         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4812         Remove --with-* handling.
4813         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4814         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4815         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4816         LINK_OS_WINDISS_SPEC): Remove.
4817         * config/rs6000/sysv4.opt (mwindiss): Remove.
4818         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4819         * configure: Regenerate.
4820         * doc/cpp.texi: Don't mention BeOS.
4821         * doc/extend.texi (interrupt): Don't mention MS1.
4822         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4823         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4824         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4825         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4826         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4827         Remove.
4828         * doc/invoke.texi (MT Options): Remove.
4829         (-mwindiss): Remove.
4830         (CRIS Options): Remove cris-axis-aout references.
4831         (HPPA Options): Don't mention hppa1.1-*-pro.
4832         * doc/md.texi: (MorphoTech family): Remove.
4833         * libgcc2.c: Don't handle UWIN.
4834         * config/alpha/t-unicosmk: Remove.
4835         * config/alpha/unicosmk.h: Remove.
4836         * config/arm/kaos-arm.h: Remove.
4837         * config/arm/kaos-strongarm.h: Remove.
4838         * config/arm/strongarm-coff.h: Remove.
4839         * config/arm/strongarm-elf.h: Remove.
4840         * config/arm/strongarm-pe.h: Remove.
4841         * config/arm/t-strongarm-pe: Remove.
4842         * config/arm/t-xscale-coff: Remove.
4843         * config/arm/t-xscale-elf: Remove.
4844         * config/arm/xscale-coff.h: Remove.
4845         * config/arm/xscale-elf.h: Remove.
4846         * config/chorus.h: Remove.
4847         * config/cris/aout.h: Remove.
4848         * config/cris/aout.opt: Remove.
4849         * config/cris/t-aout: Remove.
4850         * config/i386/beos-elf.h: Remove.
4851         * config/i386/kaos-i386.h: Remove.
4852         * config/i386/ptx4-i.h: Remove.
4853         * config/i386/sco5.h: Remove.
4854         * config/i386/sco5.opt: Remove.
4855         * config/i386/sysv4-cpp.h: Remove.
4856         * config/i386/sysv5.h: Remove.
4857         * config/i386/t-beos: Remove.
4858         * config/i386/t-sco5: Remove.
4859         * config/i386/t-uwin: Remove.
4860         * config/i386/uwin.asm: Remove.
4861         * config/i386/uwin.h: Remove.
4862         * config/kaos.h: Remove.
4863         * config/mips/windiss.h: Remove.
4864         * config/mt: Remove directory.
4865         * config/pa/pa-osf.h: Remove.
4866         * config/pa/pa-pro-end.h: Remove.
4867         * config/pa/t-pro: Remove.
4868         * config/ptx4.h: Remove.
4869         * config/rs6000/beos.h: Remove.
4870         * config/rs6000/kaos-ppc.h: Remove.
4871         * config/rs6000/t-beos: Remove.
4872         * config/rs6000/windiss.h: Remove.
4873         * config/sh/kaos-sh.h: Remove.
4874         * config/sol2-6.h: Remove.
4875         * config/sparc/sol26-sld.h: Remove.
4876         * config/sparc/sysv4-only.h: Remove.
4877         * config/vax/bsd.h: Remove.
4878         * config/vax/t-memfuncs: Remove.
4879         * config/vax/ultrix.h: Remove.
4880         * config/vax/vaxv.h: Remove.
4881         * config/windiss.h: Remove.
4882
4883 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
4884
4885         PR rtl-optimization/36438
4886         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4887         for vector shifts with constant scalar shift operands.
4888
4889 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
4890
4891         * doc/invoke.texi: Document -march=xlr.
4892         * config/mips/xlr.md: New file.
4893         * config/mips/mips.md: Include it.
4894         (cpu): Add "xlr".
4895         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4896         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4897         (mips_rtx_cost_data): Likewise.
4898
4899 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
4900
4901         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4902         PRE_INC and PRE_DEC cases.
4903
4904 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4905
4906         PR rtl-optimization/36419
4907         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4908         the emitting jump insn.
4909
4910         PR target/36362
4911         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4912         is not bool, boolify the whole *expr_p and convert to the desired type.
4913
4914 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4915
4916         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4917         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4918         Add omp_private_outer_ref hook, add another argument to
4919         omp_clause_default_ctor hook.
4920         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4921         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4922         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4923         hook_tree_tree_tree_tree_null.
4924         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4925         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4926         * hooks.c (hook_tree_tree_tree_tree_null): New function.
4927         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4928         * tree.def (OMP_TASK): New tree code.
4929         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4930         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4931         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4932         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4933         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4934         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4935         OMP_CLAUSE_COLLAPSE_EXPR): Define.
4936         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4937         (OMP_DIRECTIVE_P): Add OMP_TASK.
4938         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4939         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4940         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4941         and OMP_CLAUSE_UNTIED entries.
4942         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
4943         num_ops to 2.
4944         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4945         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4946         * tree-pretty-print.c (dump_omp_clause): Handle
4947         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4948         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4949         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4950         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
4951         warning about unsigned iterators.  Change decl/init/cond/incr
4952         arguments to TREE_VECs, check arguments for all collapsed loops.
4953         (c_finish_omp_taskwait): New function.
4954         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4955         ws_clauses.
4956         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
4957         default_function_array_conversion on init.  Add par_clauses argument.
4958         If decl is present in parallel's lastprivate clause, change it to
4959         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4960         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
4961         collapse count in clauses.
4962         (c_parser_omp_for, c_parser_omp_parallel): Adjust
4963         c_parser_omp_for_loop callers.
4964         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4965         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4966         (c_parser_omp_clause_name): Handle collapse and untied clauses.
4967         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4968         functions.
4969         (c_parser_omp_clause_schedule): Handle schedule(auto).
4970         Include correct location in the error message.
4971         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4972         and PRAGMA_OMP_CLAUSE_UNTIED.
4973         (OMP_TASK_CLAUSE_MASK): Define.
4974         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4975         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4976         * tree-nested.c (convert_nonlocal_omp_clauses,
4977         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4978         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4979         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4980         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4981         OMP_CLAUSE_DECL.
4982         (conver_nonlocal_reference, convert_local_reference,
4983         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
4984         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4985         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4986         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4987         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4988         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4989         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4990         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4991         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4992         OMP_CLAUSE_UNTIED.
4993         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4994         * c-common.h (c_finish_omp_taskwait): New prototype.
4995         * gimple-low.c (lower_stmt): Handle OMP_TASK.
4996         * tree-parloops.c (create_parallel_loop): Create 1 entry
4997         vectors for OMP_FOR_{INIT,COND,INCR}.
4998         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4999         (make_edges): Handle OMP_TASK.
5000         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5001         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5002         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5003         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5004         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5005         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5006         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5007         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5008         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5009         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5010         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5011         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5012         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5013         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5014         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5015         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5016         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5017         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5018         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5019         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5020         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5021         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5022         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5023         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5024         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5025         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5026         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
5027         original iterator is present in lastprivate clause or if
5028         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
5029         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5030         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5031         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5032         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5033         if it is set, lookup var in outer contexts too.  Handle
5034         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
5035         to be implicitly determined firstprivate for task regions.
5036         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5037         if it is set, lookup var in outer contexts too.  Set
5038         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5039         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5040         OMP_CLAUSE_UNTIED.  Take region_type as last argument
5041         instead of in_parallel and in_combined_parallel.
5042         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5043         Adjust callers.
5044         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5045         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
5046         (new_omp_context): Set default_kind to
5047         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5048         (omp_region_type): New enum.
5049         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5050         fields, add region_type.
5051         (new_omp_context): Take region_type as argument instead of is_parallel
5052         and is_combined_parallel.
5053         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5054         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5055         ctx->is_combined_parallel checks.
5056         (gimplify_omp_task): New function.
5057         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5058         OMP_CLAUSE_UNTIED.
5059         * omp-low.c (extract_omp_for_data): Use schedule(static)
5060         for schedule(auto).  Handle pointer and unsigned iterators.
5061         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
5062         Add loops argument.  Extract data for collapsed OMP_FOR loops.
5063         (expand_parallel_call): Assert sched_kind isn't auto,
5064         map runtime schedule to index 3.
5065         (struct omp_for_data_loop): New type.
5066         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5067         Add loop, loops, collapse and iter_type fields.
5068         (workshare_safe_to_combine_p): Disallow combined for if
5069         iter_type is unsigned long long.  Don't combine collapse > 1 loops
5070         unless all bounds and steps are constant.  Adjust extract_omp_for_data
5071         caller.
5072         (expand_omp_for_generic): Handle pointer, unsigned and long long
5073         iterators.  Handle collapsed OMP_FOR loops.  Adjust
5074         for struct omp_for_data changes.  If libgomp function doesn't return
5075         boolean_type_node, add comparison of the return value with 0.
5076         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5077         pointer, unsigned and long long iterators.  Adjust for struct
5078         omp_for_data changes.
5079         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5080         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
5081         unsigned long long.  Allocate loops array, pass it to
5082         extract_omp_for_data.  For collapse > 1 loops use always
5083         expand_omp_for_generic.
5084         (omp_context): Add sfield_map and srecord_type fields.
5085         (is_task_ctx, lookup_sfield): New functions.
5086         (use_pointer_for_field): Use is_task_ctx helper.  Change first
5087         argument's type from const_tree to tree.  Clarify comment.
5088         In OMP_TASK disallow copy-in/out sharing.
5089         (build_sender_ref): Call lookup_sfield instead of lookup_field.
5090         (install_var_field): Add mask argument.  Populate both record_type
5091         and srecord_type if needed.
5092         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5093         in srecord_type.
5094         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5095         and DECL_FIELD_OFFSET.
5096         (scan_sharing_clauses): Adjust install_var_field callers.  For
5097         firstprivate clauses on explicit tasks allocate the var by value in
5098         record_type unconditionally, rather than by reference.
5099         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5100         Use is_taskreg_ctx instead of is_parallel_ctx.
5101         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5102         (create_omp_child_function_name): Add task_copy argument, use
5103         *_omp_cpyfn* names if it is true.
5104         (create_omp_child_function): Add task_copy argument, if true create
5105         *_omp_cpyfn* helper function.
5106         (scan_omp_parallel): Adjust create_omp_child_function callers.
5107         Rename parallel_nesting_level to taskreg_nesting_level.
5108         (scan_omp_task): New function.
5109         (lower_rec_input_clauses): Don't run constructors for firstprivate
5110         explicit task vars which are initialized by *_omp_cpyfn*.  
5111         Pass outer var ref to omp_clause_default_ctor hook if
5112         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5113         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5114         OMP_CLAUSE_REDUCTION_INIT.
5115         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5116         avoid duplicate setting of fields.  Handle
5117         OMP_CLAUSE_PRIVATE_OUTER_REF.
5118         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
5119         copy-out if TREE_READONLY, only copy-in.
5120         (expand_task_copyfn): New function.
5121         (expand_task_call): New function.
5122         (struct omp_taskcopy_context): New type.
5123         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5124         New functions.
5125         (lower_omp_parallel): Rename to...
5126         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5127         Call create_task_copyfn if srecord_type is needed.  Adjust
5128         sender_decl type.
5129         (task_shared_vars): New variable.
5130         (check_omp_nesting_restrictions): Warn if work-sharing,
5131         barrier, master or ordered region is closely nested inside OMP_TASK.
5132         Add warnings for barrier if closely nested inside of work-sharing,
5133         ordered, or master region.
5134         (scan_omp_1): Call check_omp_nesting_restrictions even for
5135         GOMP_barrier calls.  Rename parallel_nesting_level to
5136         taskreg_nesting_level.  Handle OMP_TASK.
5137         (lower_lastprivate_clauses): Even if some lastprivate is found on a
5138         work-sharing construct, continue looking for them on parent parallel
5139         construct.
5140         (lower_omp_for_lastprivate): Add lastprivate clauses
5141         to the beginning of dlist rather than end.  Adjust for struct
5142         omp_for_data changes.
5143         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5144         not after it.  Handle collapsed OMP_FOR loops, adjust for
5145         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5146         (get_ws_args_for): Adjust extract_omp_for_data caller.
5147         (scan_omp_for): Handle collapsed OMP_FOR
5148         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5149         (lower_omp_single_simple): If libgomp function doesn't return
5150         boolean_type_node, add comparison of the return value with 0.
5151         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5152         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5153         (parallel_nesting_level): Rename to...
5154         (taskreg_nesting_level): ... this.
5155         (is_taskreg_ctx): New function.
5156         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5157         of is_parallel_ctx.
5158         (execute_lower_omp): Rename parallel_nesting_level to
5159         taskreg_nesting_level.
5160         (expand_omp_parallel): Rename to...
5161         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5162         Call omp_task_call for OMP_TASK regions.
5163         (expand_omp): Adjust caller, handle OMP_TASK.
5164         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5165
5166         * bitmap.c (bitmap_default_obstack_depth): New variable.
5167         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5168         if argument is NULL and bitmap_default_obstack is already initialized.
5169         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5170         at the end.
5171         * matrix-reorg.c (matrix_reorg): Likewise.
5172
5173 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5174
5175         * config/i386/i386.md (*indirect_jump): Macroize using P
5176         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5177         (*tablejump_1): Ditto.
5178         (*indirect_jump_rex64): Remove insn pattern.
5179         (*tablejump_1_rex64): Ditto.
5180         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5181         and eh_return_si insn patterns.
5182
5183 2008-06-06  Richard Guenther  <rguenther@suse.de>
5184
5185         * tree-ssa-structalias.c (merge_smts_into): Remove.
5186         (find_what_p_points_to): Do not bother to compute the
5187         points-to set for pt_anything pointers.
5188         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5189         for pt_anything pointers is ok.
5190
5191 2008-06-06  Jan Hubicka  <jh@suse.cz>
5192
5193         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5194
5195 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5196
5197         * cgraph.c: Fix typos in comments.
5198         (cgraph_availability_names): Fix string typo.
5199         * fold-const.c: Fix typos in comments.
5200         (fold_binary): Fix typo in warning.
5201         * genautomata.c: Fix typos in comments.
5202         (check_presence_pattern_sets): Fix typo in local variable.
5203         (output_description): Fix typo in output.
5204         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5205         * hwint.h: Likewise.
5206         * matrix-reorg.c (check_allocation_function): Likewise.
5207         * omega.c (smooth_weird_equations): Likewise.
5208         * auto-inc-dec.c: Fix typos in comments.
5209         * bb-reorder.c: Likewise.
5210         * builtins.c: Likewise.
5211         * c-common.c: Likewise.
5212         * c-cppbuiltin.c: Likewise.
5213         * c-parser.c: Likewise.
5214         * c-pretty-print.c: Likewise.
5215         * cfgcleanup.c: Likewise.
5216         * cfgexpand.c: Likewise.
5217         * cfghooks.c: Likewise.
5218         * cfglayout.c: Likewise.
5219         * cfgloopmanip.c: Likewise.
5220         * cgraphunit.c: Likewise.
5221         * coverage.c: Likewise.
5222         * dbxout.c: Likewise.
5223         * df-byte-scan.c: Likewise.
5224         * df-core.c: Likewise.
5225         * df-problems.c: Likewise.
5226         * df-scan.c: Likewise.
5227         * dfp.c: Likewise.
5228         * dominance.c: Likewise.
5229         * domwalk.c: Likewise.
5230         * dse.c: Likewise.
5231         * dwarf2out.c: Likewise.
5232         * emit-rtl.c: Likewise.
5233         * et-forest.c: Likewise.
5234         * function.c: Likewise.
5235         * function.h: Likewise.
5236         * gcc.c: Likewise.
5237         * gcov-io.c: Likewise.
5238         * gcov.c: Likewise.
5239         * gcse.c: Likewise.
5240         * genattrtab.c: Likewise.
5241         * ggc-page.c: Likewise.
5242         * gimplify.c: Likewise.
5243         * gthr-lynx.h: Likewise.
5244         * haifa-sched.c: Likewise.
5245         * ipa-cp.c: Likewise.
5246         * ipa-inline.c: Likewise.
5247         * ipa-prop.h: Likewise.
5248         * ipa-pure-const.c: Likewise.
5249         * ipa-struct-reorg.c: Likewise.
5250         * ipa-struct-reorg.h: Likewise.
5251         * ipa-type-escape.c: Likewise.
5252         * ipa.c: Likewise.
5253         * loop-doloop.c: Likewise.
5254         * mips-tfile.c: Likewise.
5255         * mkmap-flat.awk: Likewise.
5256         * mkmap-symver.awk: Likewise.
5257         * modulo-sched.c: Likewise.
5258         * omp-low.c: Likewise.
5259         * optabs.c: Likewise.
5260         * optabs.h: Likewise.
5261         * opts.c: Likewise.
5262         * passes.c: Likewise.
5263         * postreload-gcse.c: Likewise.
5264         * postreload.c: Likewise.
5265         * predict.c: Likewise.
5266         * pretty-print.h: Likewise.
5267         * profile.c: Likewise.
5268         * protoize.c: Likewise.
5269         * ra-conflict.c: Likewise.
5270         * real.c: Likewise.
5271         * recog.c: Likewise.
5272         * regclass.c: Likewise.
5273         * regs.h: Likewise.
5274         * reload.c: Likewise.
5275         * rtl-error.c: Likewise.
5276         * rtlanal.c: Likewise.
5277         * scan.h: Likewise.
5278         * sched-rgn.c: Likewise.
5279         * see.c: Likewise.
5280         * stmt.c: Likewise.
5281         * target.h: Likewise.
5282         * tree-dfa.c: Likewise.
5283         * tree-eh.c: Likewise.
5284         * tree-flow-inline.h: Likewise.
5285         * tree-inline.c: Likewise.
5286         * tree-into-ssa.c: Likewise.
5287         * tree-loop-distribution.c: Likewise.
5288         * tree-nested.c: Likewise.
5289         * tree-parloops.c: Likewise.
5290         * tree-pass.h: Likewise.
5291         * tree-pretty-print.c: Likewise.
5292         * tree-profile.c: Likewise.
5293         * tree-scalar-evolution.c: Likewise.
5294         * tree-sra.c: Likewise.
5295         * tree-ssa-alias-warnings.c: Likewise.
5296         * tree-ssa-ccp.c: Likewise.
5297         * tree-ssa-coalesce.c: Likewise.
5298         * tree-ssa-dom.c: Likewise.
5299         * tree-ssa-dse.c: Likewise.
5300         * tree-ssa-forwprop.c: Likewise.
5301         * tree-ssa-live.c: Likewise.
5302         * tree-ssa-live.h: Likewise.
5303         * tree-ssa-loop-im.c: Likewise.
5304         * tree-ssa-loop-ivopts.c: Likewise.
5305         * tree-ssa-loop-niter.c: Likewise.
5306         * tree-ssa-loop-prefetch.c: Likewise.
5307         * tree-ssa-phiopt.c: Likewise.
5308         * tree-ssa-phiprop.c: Likewise.
5309         * tree-ssa-sccvn.c: Likewise.
5310         * tree-ssa-ter.c: Likewise.
5311         * tree-ssa-threadupdate.c: Likewise.
5312         * tree-ssa.c: Likewise.
5313         * tree-vect-analyze.c: Likewise.
5314         * tree-vect-transform.c: Likewise.
5315         * tree-vectorizer.c: Likewise.
5316         * tree-vn.c: Likewise.
5317         * tree-vrp.c: Likewise.
5318         * tree.c: Likewise.
5319         * tree.def: Likewise.
5320         * tree.h: Likewise.
5321         * unwind-dw2-fde.c: Likewise.
5322         * unwind.inc: Likewise.
5323         * value-prof.c: Likewise.
5324         * vmsdbgout.c: Likewise.
5325
5326 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5327
5328         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5329         always place FP constants in the TOC for TARGET_POWERPC64.
5330         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5331
5332 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5333
5334         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5335         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5336         enable for TARGET_E500_DOUBLE.
5337         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5338         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5339         floating-point modes like integer modes for E500 double.
5340         (rs6000_legitimate_offset_address_p): Likewise.
5341         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5342         addressing for DDmode for E500 double.
5343         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5344         modes as using 64-bits of registers for E500 double.
5345         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5346         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5347         specially for E500 double.
5348         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5349         TDmode for E500 double.
5350         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5351         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5352         (rs6000_split_multireg_move): Do not handle TDmode specially for
5353         E500 double.
5354         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5355         using 64-bit registers for E500 double.
5356         (emit_frame_save): Do not handle DDmode specially for E500 double.
5357         (gen_frame_mem_offset): Likewise.
5358         (rs6000_function_value): Do not call spe_build_register_parallel
5359         for DDmode or TDmode.
5360         (rs6000_libcall_value): Likewise.
5361         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5362         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5363         for E500 double.
5364
5365 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5366
5367         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5368         in comments.
5369
5370 2008-06-04  Junjie Gu <jgu@tensilica.com>
5371
5372         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5373         comparison for frame pointers.
5374
5375 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5376
5377         PR target/27386
5378         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5379
5380 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5381
5382         PR target/30243
5383         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5384         register is already smaller or equal to required mode. 
5385
5386 2008-06-04  Xinliang David Li  <davidxl@google.com>
5387
5388         * tree-call-cdce.c: New file. 
5389         (cond_dead_built_in_calls): New static variable.
5390         (input_domain): New struct.
5391         (check_pow): New function.
5392         (check_builtin_call): Ditto.
5393         (check_target_format): Ditto.
5394         (is_call_dce_candidate): Ditto.
5395         (gen_one_condition): Ditto.
5396         (gen_conditions_for_domain): Ditto.
5397         (get_domain): Ditto.
5398         (gen_conditions_for_pow_cst_base): Ditto.
5399         (gen_conditions_for_pow_int_base): Ditto.
5400         (gen_conditions_for_pow): Ditto.
5401         (get_no_error_domain): Ditto.
5402         (gen_shrink_wrap_conditions): Ditto.
5403         (shrink_wrap_one_built_in_call): Ditto.
5404         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5405         (tree_call_cdce): Ditto.
5406         (gate_call_cdce): Ditto.
5407         (pass_call_cdce): New gimple pass.
5408         * passes.c: (init_optimization_passes): New pass.
5409         * tree-pass.h: New pass declaration.
5410         * opts.c (decode_options): New flag setting.
5411         * common.opt: Add -ftree-builtin-call-dce flag.
5412         * Makefile.in: Add new source file.
5413         * tempvar.def: New tv_id.
5414         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5415
5416 2008-06-04  Richard Guenther  <rguenther@suse.de>
5417
5418         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5419         (is_call_clobbered): Always check var_ann->call_clobbered.
5420         (mark_call_clobbered): Always set var_ann->call_clobbered.
5421         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5422         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5423         (reset_alias_info): Clear call clobbering info on MTAGs and
5424         globals as well.
5425         (set_pt_anything): Set pt_global_mem.
5426         (create_tag_raw): Adjust comment.
5427         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5428
5429 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5430             Maxim Kuvyrkov  <maxim@codesourcery.com>
5431
5432         * config/m68k/m68k.opt (mxgot): New option.
5433         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5434         (m68k_output_addr_const_extra): New.
5435         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5436         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5437         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5438         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5439
5440 2008-06-04  Richard Guenther  <rguenther@suse.de>
5441
5442         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5443         negative or non-representable offsets.
5444
5445 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5446
5447         * config/i386/i386.c (ix86_gen_leave): New.
5448         (ix86_gen_pop1): Likewise.
5449         (ix86_gen_add3): Likewise.
5450         (ix86_gen_sub3): Likewise.
5451         (ix86_gen_sub3_carry): Likewise.
5452         (ix86_gen_one_cmpl2): Likewise.
5453         (ix86_gen_monitor): Likewise.
5454         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5455         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5456         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5457         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5458         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5459         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5460         (ix86_expand_epilogue): Updated.
5461         (print_operand): Handle integer register operand for 'z'.
5462         (ix86_expand_strlensi_unroll_1): Likewise.
5463         (ix86_expand_strlen): Likewise.
5464         (ix86_expand_builtin): Likewise.
5465         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5466         mov{q}/mov{l} and add{q}/add{l}.
5467
5468 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5469
5470         * config/i386/i386.md (P): New mode iterator.
5471         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5472         using P mode iterator.
5473         (DFmode push_operand splitter): Ditto.
5474         (XFmode push_operand splitter): Ditto.
5475         (DFmode float_extend SFmode push_operand splitter): Ditto.
5476         (XFmode float_extend SFmode push_operand splitter): Do not generate
5477         SImode pushes for 64bit target.  Macroize Dimode and SImode
5478         pushes using P mode iterator.
5479         (XFmode float_extend DFmode push_operand splitter): Ditto.
5480
5481 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5482
5483         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5484         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5485         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5486         return type to int.
5487         (ix86_call_abi_override): Remove check for call_used_regs.
5488
5489 2008-06-03  Richard Guenther  <rguenther@suse.de>
5490
5491         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5492         for the lhs of calls if the return type contains pointers.
5493
5494 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5495
5496         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5497         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5498         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5499         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5500         of cfun and DEFAULT_ABI to deceide abi mode.
5501         (DEFAULT_ABI): New.
5502         (REG_PARM_STACK_SPACE): Removed.
5503         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5504         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5505         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5506         (ix86_function_abi): Likewise.
5507         (ix86_function_type_abi): Likewise.
5508         (ix86_call_abi_override): Likewise.
5509         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5510         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5511         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5512         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5513         specific defines.
5514         (X86_64_REGPARM_MAX): New.
5515         (X86_64_SSE_REGPARM_MAX): New.
5516         (X64_REGPARM_MAX): New.
5517         (X64_SSE_REGPARM_MAX): New.
5518         (X86_32_REGPARM_MAX): New.
5519         (X86_32_SSE_REGPARM_MAX): New.
5520         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5521         (ix86_function_regparm): Handle user calling abi.
5522         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5523         by DEFAULT_ABI versus SYSV_ABI check.
5524         (ix86_reg_parm_stack_space): New.
5525         (ix86_function_type_abi): New.
5526         (ix86_call_abi_override): New.
5527         (ix86_function_abi): New.
5528         (ix86_cfun_abi): New.
5529         (init_cumulative_args): Call abi specific initialization.
5530         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5531         (function_arg_64): Extend SSE_REGPARM_MAX check.
5532         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5533         (ix86_pass_by_reference): Likewise.
5534         (ix86_function_value_regno_p): Likewise.
5535         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5536         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5537         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5538         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5539         (setup_incoming_varargs_64): Adjust regparm for call abi.
5540         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5541         (ix86_va_start): Likewise.
5542         (ix86_gimplify_va_arg): Likewise.
5543         (ix86_expand_prologue): Likewise.
5544         (output_pic_addr_const): Likewise.
5545         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5546         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5547         (x86_output_mi_thunk): Likewise.
5548         (x86_function_profiler): Likewise.
5549         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5550         (SYSV_ABI, MS_ABI): New constants.
5551         (DEFAULT_ABI): New.
5552         (init_regs): Add prototype of function in regclass.c file.
5553         (OVERRIDE_ABI_FORMAT): New.
5554         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5555         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5556         (OUTGOING_REG_PARM_STACK_SPACE): New.
5557         (ix86_reg_parm_stack_space): New prototype.
5558         (CUMULATIVE_ARGS): Add call_abi member.
5559         (machine_function): Add call_abi member.
5560         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5561         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5562
5563 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
5564
5565         PR target/34879
5566         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5567         (avr_builtin_setjmp_frame_value): New function.
5568         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5569         (nonlocal_goto): Define.
5570
5571 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5572
5573         * config/mips/mips.c (mips_emit_loadgp): Return early if
5574         there is nothing do to, otherwise emit a blockage if
5575         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5576         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5577
5578 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5579
5580         * configure.ac: Drop unneeded backslash ending up in config.in.
5581         * acinclude.m4: Likewise.
5582         * config.in: Regenerate.
5583
5584 2008-05-26  Jan Hubicka  <jh@suse.cz>
5585
5586         * predict.c (maybe_hot_frequency_p): Break out of...
5587         (maybe_hot_bb_p): ... here.
5588         (maybe_hot_edge_p): New.
5589         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5590         * basic-block.h (maybe_hot_edge_p): Declare.
5591
5592 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5593
5594         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5595         (*cmpfp_<mode>_cc): Ditto.
5596         (*fp_jcc_8<mode>_387): Ditto.
5597         (*fop_<MODEF:mode>_2_i387): Ditto.
5598         (*fop_<MODEF:mode>_3_i387): Ditto.
5599         (*fop_xf_2_i387): Ditto.
5600         (*fop_xf_3_i387): Ditto.
5601
5602 2008-06-02  Tomas Bily  <tbily@suse.cz>
5603
5604         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5605
5606 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5607
5608         * config/mips/mips.c (mips_valid_offset_p): New function.
5609         (mips_valid_lo_sum_p): Likewise.
5610         (mips_classify_address): Use them.
5611         (mips_force_address): New function.
5612         (mips_legitimize_address): Use it.
5613         * config/mips/mips.md (MOVE128): New mode iterator.
5614         (movtf): Require TARGET_64BIT.  Remove empty strings.
5615         (*movtf_internal): Rename to...
5616         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5617         of "R" and use {,fp}{load,store} attributes instead of "multi".
5618         Use a separate define_split.
5619         (*movtf_mips16): New pattern.
5620
5621 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5622
5623         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5624         * config/mips/mips.c (mips_expand_before_return): New function.
5625         (mips_expand_epilogue): Call it.
5626         * config/mips/mips.md (return): Turn into a define_expand.
5627         (*return): New insn.
5628
5629 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5630
5631         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5632         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5633         functions.  Do not emit uses and clobbers of CONCATs; individually
5634         use and clobber their operands.
5635         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5636         gen_clobber, emit_use and gen_use.
5637         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5638         (expand_builtin_return): Likewise.
5639         * cfgbuild.c (count_basic_blocks): Likewise.
5640         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5641         * explow.c (emit_stack_restore): Likewise.
5642         * expmed.c (extract_bit_field_1): Likewise.
5643         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5644         (emit_move_multi_word, store_constructor): Likewise.
5645         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5646         (thread_prologue_and_epilogue_insns): Likewise.
5647         * lower-subreg.c (resolve_simple_move): Likewise.
5648         * optabs.c (widen_operand, expand_binop): Likewise.
5649         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5650         * reload.c (find_reloads): Likewise.
5651         * reload1.c (eliminate_regs_in_insn): Likewise.
5652         * stmt.c (expand_nl_goto_receiver): Likewise.
5653         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5654         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5655         * config/arm/arm.c (arm_load_pic_register): Likewise.
5656         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5657         * config/arm/arm.md (untyped_return): Likewise.
5658         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5659         * config/avr/avr.c (expand_prologue): Likewise.
5660         * config/bfin/bfin.c (do_unlink): Likewise.
5661         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5662         * config/cris/cris.c (cris_expand_prologue): Likewise.
5663         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5664         (machopic_legitimize_pic_address): Likewise.
5665         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5666         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5667         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5668         (ix86_expand_convert_uns_didf_sse): Likewise.
5669         (ix86_expand_vector_init_general): Likewise.
5670         * config/ia64/ia64.md (eh_epilogue): Likewise.
5671         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5672         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5673         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5674         (config/iq2000/iq2000.c): Likewise.
5675         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5676         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5677         (builtin_longjmp): Likewise.
5678         * config/mn10300/mn10300.md (call, call_value): Likewise.
5679         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5680         * config/pdp11/pdp11.md (abshi2): Likewise.
5681         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5682         * config/s390/s390.c (s390_emit_prologue): Likewise.
5683         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5684         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5685         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5686         * config/sh/sh.c (prepare_move_operands): Likewise.
5687         (output_stack_adjust, sh_expand_epilogue): Likewise.
5688         (sh_set_return_address, sh_expand_t_scc): Likewise.
5689         * config/sparc/sparc.c (load_pic_register): Likewise.
5690         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5691         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5692         * config/v850/v850.c (expand_epilogue): Likewise.
5693
5694 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5695
5696         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5697         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5698         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5699         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
5700         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
5701         stack pointer register.
5702         (output_movhi): Remove code for interrupt specific writing to the 
5703         stack pointer register.
5704
5705 2008-05-31  Richard Guenther  <rguenther@suse.de>
5706
5707         PR tree-optimization/34244
5708         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5709         (tree_expr_nonzero_warnv_p): Likewise.
5710         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5711         ssa_name_nonnegative_p.
5712         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5713         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5714         not tree_expr_nonzero_warnv_p.
5715
5716         PR tree-optimization/36262
5717         Revert
5718         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5719
5720         PR tree-optimization/34244
5721         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5722         (record_numbers_of_iterations): New function.
5723         (execute_vrp): Cache the numbers of iterations of loops.
5724         * tree-scalar-evolution.c (scev_reset_except_niters):
5725         New function.
5726         (scev_reset): Use scev_reset_except_niters.
5727         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5728
5729 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5730
5731         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5732         __WORKAROUND_RETS when appropriate.
5733
5734 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5735
5736         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5737         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5738         mode iterator.
5739         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5740         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5741         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5742         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5743         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5744         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5745         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5746         *fop_df_1_sse insn patterns using MODEF mode iterator.
5747         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5748         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5749         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5750         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5751         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5752         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5753         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5754         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5755         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5756         (*fop_xf_5_i387): Ditto.
5757         (*fop_xf_6_i387): Ditto.
5758
5759 2008-05-30  Richard Guenther  <rguenther@suse.de>
5760
5761         * builtins.c (build_string_literal): Avoid generating
5762         a non-gimple_val result.
5763
5764 2008-05-30  DJ Delorie  <dj@redhat.com>
5765
5766         * exec-tool.in: Use an environment variable (private) instead of a
5767         file (shared) as a semaphore, so as to not break parallel builds.
5768
5769 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5770
5771         * optabs.c (maybe_encapsulate_block): Remove.
5772         (emit_libcall_block): Adjust accordingly.
5773         * optabs.h (maybe_encapsulate_block): Remove prototype.
5774
5775         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5776         Don't use maybe_encapsulate_block.
5777
5778 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5779
5780         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5781         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5782         rtx is a SYMBOL_REF before calling get_pool_constant.
5783
5784 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5785
5786         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5787
5788 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5789
5790         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5791         rather than OS names to choose INO_T_EQ definition.
5792         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5793         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5794
5795 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5796
5797         PR target/36348
5798         * config/darwin-f.c: New.
5799         * config/t-darwin: Added rule to build darwin-f.o.
5800         * config.gcc: Defined new variable, fortran_target_objs.
5801         (*-*-darwin*): Set fortran_target_objs.
5802         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5803         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5804         * configure: Regenerated.
5805
5806 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5807
5808         PR target/35771
5809         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5810         canonical type if needed.
5811
5812 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
5813
5814         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5815
5816 2008-05-29  Richard Guenther  <rguenther@suse.de>
5817
5818         PR tree-optimization/36343
5819         PR tree-optimization/36346
5820         PR tree-optimization/36347
5821         * tree-flow.h (clobber_what_p_points_to): Declare.
5822         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5823         pointed-to variable is dereferenced is irrelevant to whether
5824         the pointer can access the pointed-to variable.
5825         (clobber_what_p_points_to): New function.
5826         * tree-ssa-alias.c (set_initial_properties): Use it.
5827         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5828         call clobber check for NMTs.
5829
5830 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5831         
5832         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5833         for printing gcov_type.
5834
5835 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5836
5837         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5838         and the eh region information.
5839         * value-prof.c (gimple_move_stmt_histograms): New function.
5840         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5841
5842 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
5843
5844         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5845
5846 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
5847
5848         * value-prof.c (tree_ic_transform): Print counts.
5849         * tree-profile.c (tree_gen_ic_func_profiler):
5850         Clear __gcov_indreict_call_callee variable to avoid misattribution
5851         of the profile.
5852
5853 2008-05-28  Rafael Espindola  <espindola@google.com>
5854
5855         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5856         invalid sharing.
5857
5858 2008-05-28  Richard Guenther  <rguenther@suse.de>
5859
5860         PR tree-optimization/36339
5861         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5862         and clobbering code out of the loop.
5863
5864 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5865
5866         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5867         letters defined.
5868
5869         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5870         s390_contiguous_bitmask_p, s390_symref_operand_p,
5871         s390_check_symref_alignment, s390_reload_larl_operand,
5872         s390_reload_symref_address): New functions.
5873         (s390_branch_condition_mnemonic): Support compare and branch
5874         instructions.
5875         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5876         and 'W' constraints.
5877         (s390_secondary_reload): Add secondary reloads for unaligned
5878         symbol refs or symbol refs to floating point or QI/TI mode
5879         integer values.
5880         (legitimate_address_p): Accept symbol references as addresses.
5881         (s390_expand_insv): Use rotate and insert selected bits
5882         instruction for insv when building for z10.
5883         (print_operand_address): Handle symbol ref addresses.
5884         (print_operand): Output modifier 'c' added for signed byte values.
5885         (s390_encode_section_info): Mark symbol refs with
5886         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5887
5888         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5889         (length attribute): RRF, RRR have 4 byte length.
5890         (FPALL, INTALL): New mode iterators added.
5891         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5892         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5893         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5894         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5895         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5896         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5897         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5898         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5899         instructions.
5900         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5901         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5902         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5903         reload<INTALL:mode><P:mode>_toreg_z10,
5904         reload<FPALL:mode><P:mode>_tomem_z10,
5905         reload<FPALL:mode><P:mode>_toreg_z10,
5906         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5907         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5908         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5909         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5910         definition.
5911         (movmem, clrmem, cmpmem): New splitters added.
5912
5913         * config/s390/predicates.md (larl_operand): Use
5914         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5915         SYMBOL_REF_ALIGN1_P.
5916         (s390_signed_integer_comparison,
5917         s390_unsigned_integer_comparison): New predicates.
5918
5919         * config/s390/s390-protos.h (s390_check_symref_alignment,
5920         s390_contiguous_bitmask_p, s390_reload_larl_operand,
5921         s390_reload_symref_address,
5922         s390_compare_and_branch_condition_mask): Prototypes added.
5923
5924         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5925         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5926         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5927
5928 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5929
5930         * config/s390/s390.c (z10_cost): New cost function for z10.
5931         (s390_handle_arch_option, override_options): Support -march=z10 switch.
5932         (s390_issue_rate): Adjust issue rate for z10.
5933         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5934         (processor_flags): Add PF_Z10.
5935         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5936         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5937         * gcc/config.gcc: Add z10.
5938
5939 2008-05-28  Richard Guenther  <rguenther@suse.de>
5940
5941         PR tree-optimization/36291
5942         * tree-flow. h (struct gimple_df): Remove var_anns member.
5943         * tree-flow-inline.h (gimple_var_anns): Remove.
5944         (var_ann): Simplify.
5945         * tree-dfa.c (create_var_ann): Simplify.
5946         (remove_referenced_var): Clear alias info from var_anns of globals.
5947         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5948         (delete_tree_ssa): Clear alias info from var_anns of globals.
5949         Do not free var_anns.
5950         (var_ann_eq): Remove.
5951         (var_ann_hash): Likewise.
5952
5953 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
5954
5955         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5956         and loongson2f entries.
5957         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5958         * config/mips/mips.h (processor_type): Add Loongson-2E
5959         and Loongson-2F entries.
5960         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5961         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5962         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5963         * doc/invoke.texi (MIPS Options): Document loongson2e
5964         and loongson2f processor names.
5965
5966 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5967
5968         PR target/35767
5969         PR target/35771
5970         * config/i386/i386.c (ix86_function_arg_boundary): Use
5971         alignment of canonical type.
5972         (ix86_expand_vector_move): Check unaligned memory access for
5973         all SSE modes.
5974
5975 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5976
5977         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5978         Moved to the front of file.
5979
5980 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
5981             H.J. Lu  <hongjiu.lu@intel.com>
5982
5983         * dwarf2out.c (current_fde): New.
5984         (add_cfi): Use it.
5985         (lookup_cfa:): Likewise.
5986         (dwarf2out_end_epilogue): Likewise.
5987         (dwarf2out_note_section_used): Likewise.
5988
5989 2008-05-27  Michael Matz  <matz@suse.de>
5990
5991         PR c++/27975
5992         * c.opt (Wenum-compare): New warning option.
5993         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
5994
5995 2008-05-27  Michael Matz  <matz@suse.de>
5996
5997         PR middle-end/36326
5998         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5999         non-BLKmode types.
6000         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6001         into memory as tail calls.
6002
6003 2008-05-27  Richard Guenther  <rguenther@suse.de>
6004
6005         PR tree-optimization/36339
6006         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6007         pointers cause all addressable variables to be call clobbered.
6008
6009 2008-05-27  Richard Guenther  <rguenther@suse.de>
6010
6011         PR tree-optimization/36245
6012         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6013
6014 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6015
6016         * config/s390/s390.md: Replace all occurences of the 'm'
6017         constraint with 'RT'.
6018
6019 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6020
6021         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6022         definitions added.
6023         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6024         "*movdi_64".
6025         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6026         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6027         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6028
6029 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6030
6031         * reload.c: (find_reloads): Skip alternatives according to the
6032         "enabled" attribute. Constify the constraint variable.
6033         * recog.c (get_attr_enabled): Add default implementation.
6034         (extract_insn): Set the alternative_enabled_p array
6035         in the recog_data struct.
6036         (preprocess_constraints, constrain_operands): Skip
6037         alternatives according to the "enabled" attribute
6038         * recog.h (struct recog_data): New field alternative_enabled_p.
6039         (skip_alternative): New inline function.
6040         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6041         (record_reg_classes): Skip alternative according to the
6042         "enabled" attribute.
6043
6044         * doc/md.texi: Add documention for the "enabled" attribute.
6045
6046 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6047
6048         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6049         * postreload.c (reload_cse_simplify_operands): Replace 'm'
6050         constraint with TARGET_MEM_CONSTRAINT.
6051         * recog.c (asm_operand_ok, preprocess_constraints,
6052         constrain_operands): Likewise.
6053         * regclass.c (record_reg_classes): Likewise.
6054         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6055         * reload1.c (maybe_fix_stack_asms): Likewise.
6056         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6057         * recog.h: Adjust comment.
6058         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6059         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6060         * doc/md.texi: Add a note to description of 'm' constraint.
6061         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6062
6063 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6064
6065         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6066         that the bitfield is of integral type before testing its precision.
6067
6068 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6069             Sa Liu  <saliu@de.ibm.com> 
6070
6071         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
6072         __modti3, __udivti3, __umodti3 and __udivmodti4.
6073         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6074         that implement TImode mul and div functions.
6075         * config/spu/multi3.c: New. Implement __multi3.
6076         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6077         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6078         functions on SPU.
6079
6080 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
6081
6082         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6083         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6084         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6085         tls_sysv_suffix): New mode and mode attribute iterators.
6086         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6087         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6088         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6089         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6090         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6091         iterators.
6092
6093 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6094
6095         PR tree-optimization/36329
6096         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6097         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6098         * cgraphbuild.c (initialize_inline_failed): Use the latter
6099         macro in lieu of the former.
6100         * ipa-inline.c (cgraph_mark_inline): Likewise.
6101         (cgraph_decide_inlining_of_small_function): Likewise.
6102         (cgraph_decide_inlining): Likewise.
6103         (cgraph_decide_inlining_incrementally): Likewise.
6104
6105 2008-05-26  Tristan Gingold  <gingold@adacore.com>
6106             Anatoly Sokolov  <aesok@post.ru>
6107
6108         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6109         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6110         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
6111         optimization for 'avr6' architecture.
6112
6113 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
6114
6115         PR target/34932
6116         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6117
6118 2008-05-26  Richard Guenther  <rguenther@suse.de>
6119
6120         * tree-ssa-sccvn.c (expr_has_constants): Declare.
6121         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6122
6123 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6124
6125         PR middle-end/36253
6126         * caller-save.c (insert_restore): Verify alignment of spill space.
6127         (insert_save): Likewise.
6128         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6129         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6130         (STACK_SLOT_ALIGNMENT): Likewise.
6131         * function.c (LOCAL_ALIGNMENT): Removed.
6132         (get_stack_local_alignment): New.
6133         (assign_stack_local): Use it.  Set alignment on stack slot.
6134         (assign_stack_temp_for_type): Use get_stack_local_alignment.
6135         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6136         (STACK_SLOT_ALIGNMENT): New.
6137         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6138         stack slot in XFmode.
6139
6140         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6141
6142 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6143
6144         PR/36321
6145         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6146         argument operand in rax isn't removed.
6147
6148 2008-05-26  Richard Guenther  <rguenther@suse.de>
6149
6150         PR middle-end/36300
6151         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6152         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6153
6154 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6155
6156         PR bootstrap/36331
6157         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6158
6159 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6160
6161         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6162         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6163
6164 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6165
6166         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6167         build a trampoline if we don't want one.
6168         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6169         return zero for nested functions if we don't want a trampoline.
6170
6171 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6172
6173         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6174
6175 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6176
6177         PR fortran/18428
6178         * c.opt: Removed undocumented option '-lang-fortran'.
6179         * c-common.h: Removed global variable 'lang_fortran'.
6180         * c-opts.c (c_common_handle_option): Removed code to handle
6181         option '-lang-fortran'. Updated includes.
6182         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6183         definition of '__GFORTRAN__'.
6184         (define__GNUC__): Reimplemented to use BASEVER and
6185         cpp_define_formatted.
6186         (builtin_define_with_value_n): Removed.
6187         * c-incpath.h: Renamed to ...
6188         * incpath.h: ... this.
6189         * c-incpath.c: Renamed to ...
6190         * incpath.c: ... this. Updated includes.
6191         * fix-header.c: Updated includes.
6192         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6193         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6194         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6195
6196 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6197
6198         * tree.h: Update the table of flags used on tree nodes.
6199         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6200         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6201         (FORCED_LABEL): Add access check.
6202         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6203         (ASM_INPUT_P): Likewise.
6204         (ASM_VOLATILE_P): Likewise.
6205         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6206         (OMP_SECTION_LAST): Access private_flag directly.
6207         (OMP_RETURN_NOWAIT): Likewise.
6208         (OMP_PARALLEL_COMBINED): Likewise.
6209         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6210         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6211         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6212         deprecated_flag directly.
6213
6214 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6215
6216         * final.c (frame_pointer_needed): Removed.
6217         * flags.h (frame_pointer_needed): Likewise.
6218
6219         * function.h (rtl_data): Add frame_pointer_needed.
6220         (frame_pointer_needed): New.
6221
6222 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6223
6224         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6225
6226 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6227
6228         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6229         SRC is a REG.
6230
6231 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6232
6233         * c-common.c (strip_array_types): Move function to..
6234         * tree.c: ..here.
6235         (get_inner_array_type): Delete.
6236         * c-common.h (strip_array_types): Move declaration to..
6237         * tree.h: ..here.
6238         (get_inner_array_type): Delete.
6239         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6240         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6241         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6242         * config/pa/pa.c (emit_move_sequence): Likewise.
6243
6244 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6247         attribute to 34.
6248
6249 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6250
6251         * function.c: Include target hook for nonlocal_goto frame value.
6252
6253 2008-05-24  Richard Guenther  <rguenther@suse.de>
6254
6255         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6256         variable can be only accessed through a pointer or a union.
6257
6258 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6259
6260         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6261         * doc/extend.texi: Likewise.
6262
6263 2008-05-23  DJ Delorie  <dj@redhat.com>
6264
6265         * config/m32c/jump.md (untyped_call): Add.
6266
6267         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6268         for A24 to PSImode.
6269         (m32c_address_cost): Detail costs for indirect offsets.
6270
6271 2008-05-23  Rafael Espindola  <espindola@google.com>
6272
6273         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6274         if a node is a SUBREG.
6275         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6276         is a SUBREG.
6277
6278 2008-05-23  Paul Brook  <paul@codesourcery.com>
6279             Carlos O'Donell  <carlos@codesourcery.com>
6280
6281         * doc/extend.texi: Clarify use of __attribute__((naked)).
6282         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6283         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6284         * function.c (use_register_for_decl): Use
6285         targetm.calls.allocate_stack_slots_for_args.
6286         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6287         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6288         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6289
6290 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6291
6292         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6293
6294 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6295
6296         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6297         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6298         is only rounded once.
6299
6300 2008-05-23  Richard Guenther  <rguenther@suse.de>
6301
6302         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6303
6304 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6305             Jakub Jelinek  <jakub@redhat.com>
6306
6307         PR target/36079
6308         * configure.ac: Handle --enable-cld.
6309         * configure: Regenerated.
6310         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6311         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6312         (ix86_current_function_needs_cld): New define.
6313         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6314         (cld): New isns pattern.
6315         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6316         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6317         * config/i386/i386.opt (mcld): New option.
6318         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6319         TARGET_CLD and ix86_current_function_needs_cld.
6320         (override_options): Use -mcld by default for 32-bit code if
6321         USE_IX86_CLD.
6322
6323         * doc/install.texi (Options specification): Document --enable-cld.
6324         * doc/invoke.texi (Machine Dependent Options)
6325         [i386 and x86-64 Options]: Add -mcld option.
6326         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6327
6328 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6329         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6330         (return_in_memory_64): Likewise.
6331         (return_in_memory_ms_64): Likewise.
6332
6333 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6334
6335         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6336         * builtins.c (fold_builtin_fpclassify): New.
6337         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6338         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6339         * c-common.c (handle_type_generic_attribute): Adjust to accept
6340         fixed arguments before an elipsis.
6341         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6342         * doc/extend.texi: Document __builtin_fpclassify.
6343
6344 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6345
6346         * omp-low.c (gate_expand_omp_ssa): Remove.
6347         (pass_expand_omp_ssa): Remove.
6348         (gate_expand_omp): Do not check for flag_openmp_ssa.
6349         * common.opt (-fopenmp-ssa): Remove.
6350         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6351
6352 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6353
6354         * config/sh/sh.opt (mfixed-range): New option.
6355         * config/sh/sh-protos.h (sh_fix_range): Declare.
6356         * config/sh/sh.c (sh_fix_range): New function.
6357         * config/sh/sh.h (sh_fixed_range_str): Declare.
6358         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6359         is not empty.
6360         * doc/invoke.texi (SH Options): Document -mfixed-range.
6361
6362 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6363
6364         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6365         it before the redeclaration.
6366
6367 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6368
6369         * config/avr/avr.c (get_sequence_length): Add new function.
6370         (expand_prologue, expand_epilogue): Remove duplicate code.
6371
6372 2008-05-22  Rafael Espindola  <espindola@google.com>
6373
6374         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6375         sharing.
6376
6377 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6378
6379         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6380         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6381
6382         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6383         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6384         (vect_update_misalignment_for_peel): Likewise.
6385         (vector_alignment_reachable_p): Likewise.
6386         * tree-vect-transform.c (vectorizable_load): Likewise.
6387         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6388         (get_vectype_for_scalar_type): Pass mode of scalar_type
6389         to UNITS_PER_SIMD_WORD.
6390
6391         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6392         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6393         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6394         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6395         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6396
6397 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6398
6399         PR tree-optimization/36293
6400         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6401         if the first load must be skipped because of a gap.
6402
6403 2008-05-22  Richard Guenther  <rguenther@suse.de>
6404
6405         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6406         more cases of offset disambiguation that is possible if
6407         strict-aliasing rules apply.
6408         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6409         for basic offset and type-based disambiguation.
6410
6411 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6412
6413         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6414         ix86_expand_vector_set on V16QImode for SSE4.1.
6415
6416 2008-05-21  Tom Tromey  <tromey@redhat.com>
6417
6418         * c.opt (Wimport): Mark as undocumented.
6419         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6420         -Wno-import.
6421         (Warning Options): Likewise.
6422         * doc/cppopts.texi: Don't mention -Wimport.
6423
6424 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6425
6426         PR tree-optimization/36287
6427         PR tree-optimization/36286
6428         * lambda-code.c (build_access_matrix): Do not use the loop->num
6429         for computing the number of induction variables: use the loop depth
6430         instead.
6431
6432 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6433
6434         PR/36280
6435         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6436         option -f(no-)leading-underscore.
6437
6438 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6439
6440         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6441         GET_MODE_NUNITS (mode).
6442
6443 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6444
6445         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6446         (-mmulhw): Add 464 to description.
6447         (-mdlmzb): Likewise.
6448         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6449         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6450         464fp entries.
6451         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6452         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6453         * config/rs6000/rs6000.md: Update comments for 464.
6454
6455 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6456
6457         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6458
6459 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6460
6461         * config/i386/sse.md (vec_extractv4sf): Removed.
6462         (vec_extractv2df): Likewise.
6463         (vec_extractv2di): Likewise.
6464         (vec_extractv4si): Likewise.
6465         (vec_extractv8hi): Likewise.
6466         (vec_extractv16qi): Likewise.
6467         (vec_extract<mode>): New.
6468
6469 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6470
6471         * config/i386/sse.md (vec_setv4sf): Removed.
6472         (vec_setv2df): Likewise.
6473         (vec_setv2di): Likewise.
6474         (vec_setv4si): Likewise.
6475         (vec_setv8hi): Likewise.
6476         (vec_setv16qi): Likewise.
6477         (vec_set<mode>): New.
6478
6479 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6480
6481         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6482         goto for vec_concat and vec_interleave.
6483
6484 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6485
6486         * config/i386/sse.md (vec_initv4sf): Removed.
6487         (vec_initv2df): Likewise.
6488         (vec_initv2di): Likewise.
6489         (vec_initv4si): Likewise.
6490         (vec_initv8hi): Likewise.
6491         (vec_initv16qi): Likewise.
6492         (vec_init<mode>): New.
6493
6494 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6495
6496         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6497
6498 2008-05-21  Tom Tromey  <tromey@redhat.com>
6499
6500         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6501         (zone_find_object_offset): Likewise.
6502         (gt_ggc_m_S): Likewise.
6503         (highest_bit): Likewise.
6504         * ggc-page.c (gt_ggc_m_S): New function.
6505         * stringpool.c (string_stack): Remove.
6506         (init_stringpool): Update.
6507         (ggc_alloc_string): Use ggc_alloc.
6508         (maybe_delete_ident): New function.
6509         (ggc_purge_stringpool): Likewise.
6510         (gt_ggc_m_S): Remove.
6511         * ggc-common.c (ggc_protect_identifiers): New global.
6512         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6513         ggc_protect_identifiers.
6514         * ggc.h (ggc_protect_identifiers): Declare.
6515         (gt_ggc_m_S): Update.
6516         (ggc_purge_stringpool): Declare.
6517         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6518         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6519         special case.
6520         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6521
6522 2008-05-21  David S. Miller  <davem@davemloft.net>
6523
6524         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6525         tmake_file.
6526
6527 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6528
6529         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6530         once finished.
6531
6532 2008-05-20  David Daney  <ddaney@avtrex.com>
6533
6534         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6535         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6536         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6537         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6538         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6539         (atomic_hiqi_op): New define_code_iterator.
6540         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6541         mips_expand_compare_and_swap_12.
6542         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6543         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6544         (sync_<optab><mode>, sync_old_<optab><mode>,
6545         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6546         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6547         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6548         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6549         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6550         (test_and_set_12): New insn.
6551         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6552         sync_new_<optab><mode>, sync_old_nand<mode>,
6553         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6554         clobber to operand 0 for SI and DI mode insns.
6555         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6556         mips_gen_fn_4): New typedefs.
6557         (mips_gen_fn_ptrs): Define new union type.
6558         (mips_expand_compare_and_swap_12): Remove declaration.
6559         (mips_expand_atomic_qihi): Declare function.
6560         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6561         (mips_expand_atomic_qihi): ... this.  Use new generator function
6562         parameter.
6563         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6564         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6565         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6566         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6567         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6568         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6569         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6570         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6571         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6572         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6573         New macros.
6574
6575 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6576
6577         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6578         the missing break.
6579
6580 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6581
6582         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6583         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6584         (avr_attribute_table): Add 'OS_main' function attribute.
6585         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6586         functions with 'OS_main' attribute.
6587
6588 2008-05-20  Richard Guenther  <rguenther@suse.de>
6589
6590         PR tree-optimization/35204
6591         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6592         helper, split out from ...
6593         (DFS): ... here.  Make the DFS walk non-recursive.
6594
6595 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6596             Jan Sjodin  <jan.sjodin@amd.com>
6597
6598         PR tree-optimization/36181
6599         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6600         (parallelize_loops): Don't parallelize when the loop has vector
6601         phi nodes.
6602
6603 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6604             Sebastian Pop  <sebastian.pop@amd.com>
6605
6606         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6607         matrix, and never look at the tree representation of the memory
6608         accesses.
6609         (linear_transform_loops): Computes parameters and access matrices.
6610         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6611         when fails.
6612         (access_matrix_get_index_for_parameter): New.
6613         * tree-data-ref.h (struct access_matrix): New.
6614         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6615         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6616         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6617         am_vector_index_for_loop): New.
6618         (struct data_reference): Add field access_matrix.
6619         (DR_ACCESS_MATRIX): New.
6620         (compute_data_dependences_for_loop): Update declaration.
6621         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6622         * lambda.h (lambda_vector_vec_p): Declared.
6623         * lambda-code.c: Depend on pointer-set.h.
6624         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6625         av_for_af_base, av_for_af, build_access_matrix,
6626         lambda_compute_access_matrices): New.
6627         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6628
6629 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6630
6631         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6632         $SOURCEDIR/include.
6633
6634 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6635             Sebastian Pop  <sebastian.pop@amd.com>
6636
6637         PR tree-optimization/36206
6638         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6639         FOLD_CONVERSIONS.
6640         (instantiate_scev_1): Rename flags to fold_conversions.
6641         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6642         outeside instantiation_loop.
6643         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6644         (evolution_function_is_affine_or_constant_p): Removed.
6645         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6646         instantiate_scev.
6647         (analyze_siv_subscript): Pass in the loop nest number.
6648         Call evolution_function_is_affine_in_loop instead of 
6649         evolution_function_is_affine_p.
6650         (analyze_overlapping_iterations): Pass in the loop nest number.
6651
6652 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6653             Sebastian Pop  <sebastian.pop@amd.com>
6654
6655         PR tree-optimization/36206
6656         * tree-chrec.h (chrec_fold_op): New.
6657         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6658         and other trees.
6659
6660 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6661
6662         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6663         (DIRS_EQ): New.
6664         (remove_duplicates): Do not set inode on non-inode systems.
6665         Use DIRS_EQ.
6666
6667 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6668
6669         * config.gcc (tm_file): Update comments about relative pathnames.
6670
6671 2008-05-20  Richard Guenther  <rguenther@suse.de>
6672
6673         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6674         * tree-ssa-sccvn.c (process_scc): Likewise.
6675         * tree-ssa-sink.c (execute_sink_code): Likewise.
6676         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6677         * tree-vrp.c (process_assert_insertions): Likewise.
6678         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6679         (perform_tree_ssa_dce): Likewise.
6680         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6681         (dump_dominator_optimization_stats): Likewise.
6682         * tree-vectorizer.c (vectorize_loops): Likewise.
6683
6684 2008-05-20  Richard Guenther  <rguenther@suse.de>
6685
6686         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6687
6688 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6689
6690         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6691         (ix86_i386elf_return_in_memory): Likewise.
6692         (ix86_i386interix_return_in_memory): Likewise.
6693         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6694         (SUBTARGET_RETURN_IN_MEMORY): New.
6695         * config/i386/i386elf.h: Likewise.
6696         * config/i386/ptx4-i.h: Likewise.
6697         * config/i386/sol2-10.h: Likewise.
6698         * config/i386/sysv4.h: Likewise.
6699         * config/i386/vx-common.h: Likewise.
6700         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6701         * config/i386/i386.c (ix86_return_in_memory): Made static and
6702         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6703         (ix86_i386elf_return_in_memory): Removed.
6704         (ix86_i386interix_return_in_memory): Removed.
6705         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6706         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6707
6708 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6709
6710         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6711
6712 2008-05-19  Xinliang David Li  <davidxl@google.com>
6713
6714         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
6715         * opts.c: Ditto.
6716         * common.opt: Ditto.
6717         * doc/invoke.texi: Ditto.
6718
6719 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6720
6721         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6722         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6723
6724 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6725
6726         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6727         sizes of operand array from 8/4 to 4/2.
6728         (ix86_expand_vector_init_general): Change size of operand array
6729         from 32 to 16.  Remove op0, op1 and half_mode.
6730
6731 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6732
6733         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6734         (ix86_expand_vector_init_interleave): Likewise.
6735         (ix86_expand_vector_init_general): Use them.  Assert
6736         word_mode == SImode when n_words == 4.
6737
6738 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6739
6740         * config/i386/i386.c (ix86_secondary_reload): New static function.
6741         (TARGET_SECONDARY_RELOAD): New define.
6742         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6743         * config/i386/i386.md (reload_outqi): Remove.
6744
6745 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6746
6747         PR middle-end/35509
6748         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6749         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6750         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6751         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6752         (fold_builtin_1): Likewise.
6753         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6754         c-common.c (check_builtin_function_arguments): Handle
6755         BUILT_IN_ISINF_SIGN.
6756         * doc/extend.texi: Document __builtin_isinf_sign.
6757         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6758
6759 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6760
6761         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6762         EH cleanup at the end of the pass, search for those that have been
6763         turned into forwarder blocks and do the cleanup on their successor.
6764
6765 2008-05-18  Richard Guenther  <rguenther@suse.de>
6766
6767         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6768         pointers to sizetype and vice versa.
6769
6770 2008-05-18 Xinliang David Li   <davidxl@google.com>
6771
6772         * gcc/tree-ssa-dce.c: Coding style fix.
6773         (check_pow): Documentation comment. 
6774         (check_log): Documenation comment. Coding style fix.
6775         (is_unnecessary_except_errno_call): Ditto.
6776         (gen_conditions_for_pow): Ditto.
6777         (gen_conditions_for_log): Ditto.
6778         (gen_shrink_wrap_conditions): Ditto.
6779         (shrink_wrap_one_built_in_calls): Ditto.
6780         * gcc/doc/invoke.texi: Better documentation string.
6781         * ChangeLog: Fix wrong change log entries from 
6782         May 17 checkin on function call DCE.
6783
6784 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6785
6786         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6787
6788 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6789
6790         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6791         * df-problems.c (simulation routines): Fixed block comment to
6792         properly say how to add forwards scanning functions.
6793         
6794 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6795
6796         * tree-inline.c (setup_one_parameter): Remove dead code.
6797
6798 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6799
6800         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6801         a BIT_AND_EXPR only for an INTEGER_TYPE.
6802
6803 2008-05-17 Xinliang David Li   <davidxl@google.com>
6804
6805         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6806         (check_pow, check_log, is_unnecessary_except_errno_call): New 
6807         functions to check for eliminating math functions that are pure 
6808         except for setting errno.
6809         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6810         general condition expressions for shrink-wrapping pow/log calls.
6811         (gen_shrink_wrap_conditions): Ditto.
6812         (shrink_wrap_one_built_in_call): Ditto.
6813         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6814         (mark_operand_necessary): If debugging, output if OP is necessary.
6815         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6816         unnecessary.
6817         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6818         opt level >= 2.
6819         * gcc/common.opt: New user flag -ftree-builtin-dce.
6820         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6821
6822 2008-05-16  David S. Miller  <davem@davemloft.net>
6823
6824         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6825         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6826
6827 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
6828
6829         PR target/36246
6830         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6831
6832 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6833
6834         * ifcvt.c (dead_or_predicable): Rename
6835         df_simulate_one_insn_backwards to df_simulate_one_insn.
6836         * recog.c (peephole2_optimize): Ditto.
6837         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6838         Ditto.
6839         * df.h: Rename df_simulate_one_insn_backwards to
6840         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
6841         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6842         scanning of defs and uses.
6843         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6844         (df_simulate_one_insn_forwards): Removed.
6845
6846 2008-05-16  Doug Kwan  <dougkwan@google.com>
6847
6848         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6849         QNaN & SNaN.
6850         (real_from_string): Handle NaNs and Inf as approriate.
6851
6852 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6853
6854         * doc/gty.texi (Source Files Containing Type Information): Note
6855         that headers should appear first in the gtfiles list.
6856
6857 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6858
6859         * tree.def (COND_EXEC): Properly documented this code.
6860
6861 2008-05-16  Diego Novillo  <dnovillo@google.com>
6862
6863         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6864         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6865         the new field.
6866
6867 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6868
6869         * tree-ssa-dse (max_stmt_uid): Removed.
6870         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
6871         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6872         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6873         * function.h (cfun.last_stmt_uid): New field.
6874         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6875         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6876         New functions.
6877         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6878         (create_stmt_ann): Initialize the ann->uid field.
6879         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6880         with new calls.
6881         * tree-flow.h (renumber_gimple_stmt_uids): New function.
6882
6883 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6884
6885         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6886         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6887         (init_empty_tree_cfg): Call it.
6888
6889 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6890
6891         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
6892         Update all users.
6893
6894 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6895
6896         * doc/invoke.text (-fdump-tree-*-verbose): New option.
6897         * tree-dump.c (dump_options): New verbose option.
6898         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6899         Add verbose dump.
6900         * tree-pass.h (TDF_VERBOSE): New dump flag.
6901         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6902         (tree-flow.h): Added include.
6903         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
6904
6905 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
6906
6907         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6908
6909         From Jie Zhang  <jie.zhang@analog.com>
6910         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6911         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6912         mcpu=bf561-none and mcpu=bf561-0.2.
6913         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6914         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6915         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6916         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6917         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6918         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6919         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
6920         option.
6921         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6922         (cputype_selected): Remove.
6923         (bfin_handle_option): Don't use cputype_selected.
6924         (override_options): When no mcpu option, enable all workarounds.
6925         Don't use bfin_workarounds.
6926         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6927         processor type.
6928         (DEFAULT_CPU_TYPE): Don't define.
6929
6930 2008-05-16  Richard Guenther  <rguenther@suse.de>
6931
6932         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6933         on deletion of the last stmt.
6934
6935 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6936
6937         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6938         V8HImode for SSE2 and V16QImode for SSE4.1.
6939
6940 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6941
6942         * cgraph.h (compute_inline_parameters): Made public.
6943         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6944         variable_generate_summary, function_write_summary,
6945         variable_write_summary, variable_read_summary.  Added generate_summary,
6946         write_summary, read_summary.
6947         * cgraphunit.c (cgraph_process_new_functions): Changed call from
6948         pass_ipa_inline.function_generate_summary, to
6949         compute_inline_parameters. 
6950         * ipa-inline.c (compute_inline_parameters): Made public and added
6951         node parameter.
6952         (compute_inline_parameters_for_current): New function.
6953         (pass_inline_param): Now calls compute_inline_parameters_for_current.
6954         (inline_generate_summary): Removed parameter and made to loop over
6955         all cgraph nodes.
6956         (pass_ipa_inline): Updated for new IPA_PASS structure.
6957         * passes.c (execute_ipa_summary_passes): Now is called once per
6958         pass rather than once per node*pass.
6959         
6960 2008-05-15  Anatoly Sokolov <aesok@post.ru>
6961
6962         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
6963         avr_have_mul_p, avr_asm_only_p): Remove variables.
6964         (avr_override_options): Remove initialization of removed variables.
6965         (avr_file_start):  Convert removed variables to fields of 
6966         'struct base_arch_s *avr_current_arch'. 
6967         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6968         (AVR_HAVE_MUL): (Ditto.).
6969         (AVR_HAVE_MOVW): (Ditto.).
6970         (AVR_HAVE_LPMX): (Ditto.). 
6971         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
6972         avr_asm_only_p): Remove declaration.
6973
6974 2008-05-15  Diego Novillo  <dnovillo@google.com>
6975
6976         * config/arm/arm.c (arm_return_in_memory): Fix return type.
6977         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6978
6979 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
6980
6981         PR middle-end/36194
6982         * combine.c (check_conversion): Rename back to check_promoted_subreg.
6983         Don't call record_truncated_value from here.
6984         (record_truncated_value): Turn it into a for_each_rtx callback.
6985         (record_truncated_values): New function.
6986         (combine_instructions): Call note_uses with record_truncated_values.
6987         Change name of check_conversion to check_promoted_subreg. 
6988
6989 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
6990
6991         * doc/sourcebuild.texi: Document support for torture tests.
6992
6993 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6994
6995         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6996         to alternative 4 of operand 2.
6997
6998 2008-05-15  Richard Guenther  <rguenther@suse.de>
6999
7000         * tree-pass.h (current_pass): Declare.
7001         (get_pass_for_id): Likewise.
7002         * passes.c (passes_by_id, passes_by_id_size): New globals.
7003         (set_pass_for_id): New function.
7004         (get_pass_for_id): Likewise.
7005         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7006         (execute_function_todo): Flush per function statistics.
7007         * toplev.c (compile_file): Init statistics.
7008         (general_init): Do early statistics initialization.
7009         (finalize): Finish statistics.
7010         * statistics.h (statistics_early_init): Declare.
7011         (statistics_init): Likewise.
7012         (statistics_fini): Likewise.
7013         (statistics_fini_pass): Likewise.
7014         (statistics_counter_event): Likewise.
7015         (statistics_histogram_event): Likewise.
7016         * statistics.c: New file.
7017         * Makefile.in (OBJS-common): Add statistics.o.
7018         (statistics.o): Add dependencies.
7019         * doc/invoke.texi (-fdump-statistics): Document.
7020
7021         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7022         (insert): Likewise.
7023         (execute_pre): Use statistics_counter_event.
7024         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7025         (substitute_and_fold): Increment it.  Use statistics_counter_event.
7026
7027 2008-05-15  Diego Novillo  <dnovillo@google.com>
7028
7029         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7030
7031         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7032         * tree-ssa-alias.c (new_type_alias): Remove references to
7033         sub-variables from comment.
7034         * tree-ssa-operands.c (swap_tree_operands): Likewise.
7035
7036 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7037
7038         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7039         attribute to 1 only for insertps alternative.
7040
7041 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7042
7043         * config/bfin/bfin.md (loadbytes): New pattern.
7044         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7045         (bfin_init_builtins): Initialize it.
7046         (bdesc_1arg): Add it.
7047
7048 2008-05-15  Sa Liu  <saliu@de.ibm.com>
7049
7050         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7051         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7052         * testsuite/lib/target-supports.exp: Add
7053         check_effective_target_fortran_integer_16.
7054
7055 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7056
7057         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7058         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7059         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
7060         (TARGET_RETURN_IN_MEMORY): Define.
7061
7062 2008-05-15  Richard Guenther  <rguenther@suse.de>
7063
7064         PR middle-end/36244
7065         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7066         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7067         represent unmodifiable vars.
7068
7069 2008-05-15  Richard Guenther  <rguenther@suse.de>
7070
7071         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7072         INDIRECT_REF and TARGET_MEM_REF.
7073         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7074         TARGET_MEM_REF.
7075
7076 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7077             H.J. Lu  <hongjiu.lu@intel.com>
7078
7079         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7080         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7081         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
7082         insn alternatives.  Add missing alternatives.
7083         (*vec_concatv2di_rex64_sse4_1): Likewise.
7084         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7085         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7086         Require TARGET_SSE.
7087
7088 2008-05-15  Richard Guenther  <rguenther@suse.de>
7089
7090         PR tree-optimization/36009
7091         PR tree-optimization/36204
7092         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7093         (determine_invariantness_stmt): Record the loop a store is
7094         always executed in.
7095         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7096         dependency.
7097
7098 2008-05-15  Richard Guenther  <rguenther@suse.de>
7099
7100         PR tree-optimization/34330
7101         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7102         through the pointer will alias the SMT.
7103
7104 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
7105
7106         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7107
7108 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7109
7110         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7111
7112 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7113             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7114
7115         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7116         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7117         (vashl_optab): New optab for vector/vector shifts.
7118         (vashr_optab): Ditto.
7119         (vlshr_optab): Ditto.
7120         (vrotl_optab): Ditto.
7121         (vrotr_optab): Ditto.
7122         (optab_subtype): New enum for optab_for_tree_code call.
7123         (optab_for_tree_code): Add enum optab_subtype argument.
7124
7125         * optabs.c (optab_for_tree_code): Take an additional argument to
7126         distinguish between a vector shift by a scalar and vector shift by
7127         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
7128         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
7129         vector shift by a vector.
7130         (expand_widen_pattern_expr): Pass additional argument to
7131         optab_for_tree_code.
7132
7133         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7134         vrotl_optab, vrotr_optab.
7135
7136         * expr.c (expand_expr_real_1): Update calls to
7137         optab_for_tree_code to distinguish between vector shifted by a
7138         scalar and vector shifted by a vector.
7139         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7140         (supportable_narrowing_operation): Ditto.
7141         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7142         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7143         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7144         (vect_create_epilog_for_reduction): Ditto.
7145         (vectorizable_reduction): Ditto.
7146         (vectorizable_operation): Ditto.
7147         (vect_strided_store_supported): Ditto.
7148         (vect_strided_load_supported): Ditto.
7149         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7150         * expmed.c (expand_shift): Ditto.
7151
7152         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7153         scalar type.
7154         (ashr@var{m}3): Ditto.
7155         (vashl@var{m}3): Document new vector/vector shift standard name.
7156         (vashr@var{m}3): Ditto.
7157         (vlshr@var{m}3): Ditto.
7158         (vrotl@var{m}3): Ditto.
7159         (vrotr@var{m}3): Ditto.
7160
7161         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7162         (PPERM_INVERT): Ditto.
7163         (PPERM_REVERSE): Ditto.
7164         (PPERM_REV_INV): Ditto.
7165         (PPERM_ZERO): Ditto.
7166         (PPERM_ONES): Ditto.
7167         (PPERM_SIGN): Ditto.
7168         (PPERM_INV_SIGN): Ditto.
7169         (PPERM_SRC1): Ditto.
7170         (PPERM_SRC2): Ditto.
7171
7172         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7173         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7174         allows a memory operand to be the value being added, and split it
7175         to improve vectorization.
7176         (sse5_pmacsdqh_mem): Ditto.
7177         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7178         (sse5_mulv2div2di3_high): Ditto.
7179         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7180         (vec_pack_trunc_v4si): Ditto.
7181         (vec_pack_trunc_v2di): Ditto.
7182         (sse5_pcmov_<mode>): Remove code that tried to use use
7183         andps/andnps instead of pcmov.
7184         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7185         pmacsdqh instructions.
7186         (vec_widen_smult_lo_v4si): Ditto.
7187
7188         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7189         (PPERM_INVERT): Ditto.
7190         (PPERM_REVERSE): Ditto.
7191         (PPERM_REV_INV): Ditto.
7192         (PPERM_ZERO): Ditto.
7193         (PPERM_ONES): Ditto.
7194         (PPERM_SIGN): Ditto.
7195         (PPERM_INV_SIGN): Ditto.
7196         (PPERM_SRC1): Ditto.
7197         (PPERM_SRC2): Ditto.
7198         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7199         true/false tests.
7200         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7201         comparisons.
7202         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7203         says ignore whether the last reference is a memory operand.
7204
7205 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7206             Paolo Bonzini <bonzini at gnu dot org>
7207
7208         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7209         shift patterns.
7210
7211         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7212         (vlshr<mode>3): Rename from vlshr<mode>3.
7213         (vashr<mode>3): Rename from vashr<mode>3.
7214         (mulv4sf3): Change the names of vector shift patterns.
7215         (mulv4si3): Ditto.
7216         (negv4sf2): Ditt.
7217
7218         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7219         shift insns.
7220
7221         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7222         (SI_SHLHI): Ditto.
7223         (SI_SHL): Ditto.
7224         (SI_SHLI): Ditto.
7225         (SI_ROTH): Ditto.
7226         (SI_ROTHI): Ditto.
7227         (SI_ROT): Ditto.
7228         (SI_ROTI): Ditto.
7229         (SPU_RL_0): Ditto.
7230         (SPU_RL_1): Ditto.
7231         (SPU_RL_2): Ditto.
7232         (SPU_RL_3): Ditto.
7233         (SPU_RL_4): Ditto.
7234         (SPU_RL_5): Ditto.
7235         (SPU_RL_6): Ditto.
7236         (SPU_RL_7): Ditto.
7237         (SPU_SL_0): Ditto.
7238         (SPU_SL_1): Ditto.
7239         (SPU_SL_2): Ditto.
7240         (SPU_SL_3): Ditto.
7241         (SPU_SL_4): Ditto.
7242         (SPU_SL_5): Ditto.
7243         (SPU_SL_6): Ditto.
7244         (SPU_SL_7): Ditto.
7245
7246         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7247         (floatunssidf2_internal): Change vector/vector shift names.
7248         (floatunsdidf2_internal): Ditto.
7249         (mulv8hi3): Ditto.
7250         (ashrdi3): Ditto.
7251         (ashrti3): Ditto.
7252         (cgt_df): Ditto.
7253         (cgt_v2df): Ditto.
7254         (dftsv): Ditto.
7255         (vashl<mode>3): Rename from ashl<mode>3.
7256         (vashr<mode>3): Rename from ashr<mode>3.
7257         (vlshr<mode>3): Rename from lshr<mode>3.
7258         (vrotl<mode>3): Rename from rotl<mode>3.
7259
7260 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7261
7262         PR target/36224
7263         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7264         multiply gives the wrong value when doing widening multiplies.
7265         (vec_widen_smult_lo_v4si): Ditto.
7266
7267 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7268
7269         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7270         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7271         emit_library_call_value. 
7272         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7273         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7274         * calls.c (initialize_argument_information, precompute_arguments, 
7275         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7276         (precompute_arguments): Removed flags parameter.
7277         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7278         
7279 2008-05-14  Richard Guenther  <rguenther@suse.de>
7280
7281         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7282         Make sure to register the store if the use is a PHI_NODE.
7283
7284 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7285
7286         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7287         memory if the component is to be referenced in BLKmode according
7288         to get_inner_reference.
7289
7290 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7291
7292         * calls.c (emit_library_call_value_1): Restore code clearing
7293         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7294
7295 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7296             Nicolas Roche  <roche@adacore.com>
7297
7298         * configure.ac: Add support for a "gcc_subdir" variable in
7299         config-lang.in, to denote a subdirectory where the language/GCC
7300         integration files are to be found.
7301         * configure: Regenerate.
7302
7303 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7304
7305         PR tree-optimization/36098
7306         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7307         value for the first load in the group in case of a gap.
7308         (vect_build_slp_tree): Check that there are no gaps in loads.
7309
7310 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7311
7312         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7313         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7314         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7315         emit_insn and remove unneeded code to construct extra args.
7316         (emit_no_conflict_block): Removed.
7317         * optabls.h: (emit_no_conflict_block): Removed.
7318         * cse.c (cse_extended_basic_block): Remove search for
7319         REG_NO_CONFLICT note.
7320         * global.c: Removed incorrect comment added in revision 117.
7321         * expr.c (convert_move): Change call to emit_no_conflict_block to
7322         emit_insn.
7323         * recog.c: Change comments so that they do not mention
7324         REG_NO_CONFLICT.
7325         * local_alloc.c (combine_regs): Removed last parameter.
7326         (no_conflict_p): Removed.
7327         (block_alloc): Removed note, no_conflict_combined_regno and set
7328         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7329         (combine_regs): Removed already_dead and code to look for
7330         REG_NO_CONFLICT notes.
7331         * lower_subreg (remove_retval_note): Removed code to look for
7332         REG_NO_CONFLICT block.
7333         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7334         (resolve_clobber): Remove code to process libcalls that have
7335         REG_NO_CONFLICT notes.
7336         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7337         case.
7338         * combine.c (can_combine_p, distribute_notes):  Removed
7339         REG_NO_CONFLICT case.
7340         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7341         to emit_insns.
7342         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7343         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7344         Ditto.
7345         * reg-notes.def (NO_CONFLICT): Removed.
7346
7347 2008-05-14  David S. Miller  <davem@davemloft.net>
7348
7349         * config/sparc/sparc.c (sparc_profile_hook): If
7350         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7351         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7352         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7353
7354 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7355
7356         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7357
7358 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7359
7360         PR target/36222
7361         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7362         and op1 expansion before vector concat to have less live pseudos.
7363
7364 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7365
7366         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7367         ix86_expand_vector_set if supported.
7368
7369 2008-05-13  Diego Novillo  <dnovillo@google.com>
7370             Kenneth Zadeck  <zadeck@naturalbridge.com>
7371
7372         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7373
7374         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7375         phinodes_print_statistics, init_ssanames, fini_ssanames,
7376         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7377         release_ssa_name, release_defs, replace_ssa_name_symbol,
7378         ssanames_print_statistics): Move ...
7379         * tree-flow.h: ... here.
7380         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7381         Use FN instead of cfun.
7382         (make_ssa_name_fn): Rename from make_ssa_name.
7383         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7384         * tree-flow-inline.h (make_ssa_name): Move from
7385         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7386         * omp-low.c (expand_omp_parallel):
7387         * tree-flow-inline.h (redirect_edge_var_map_result):
7388         * tree-ssa.c (init_tree_ssa): Add argument FN.
7389         Use it instead of cfun.  Update all users.
7390
7391 2008-05-13  Tom Tromey  <tromey@redhat.com>
7392
7393         PR preprocessor/22168:
7394         * doc/cpp.texi (Top): Update menu.
7395         (Alternatives to Wrapper #ifndef): New node.
7396         (Other Directives): Document deprecation.
7397         (Obsolete Features): Remove menu.
7398         (Assertions): Merge node into Obsolete Features.
7399         (Obsolete once-only headers): Move earlier; rename to Alternatives
7400         to Wrapper #ifndef.
7401         * doc/cppopts.texi: Update.
7402         * c.opt (Wdeprecated): Enable for C and ObjC.
7403         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7404         (C++ Dialect Options): Move -Wno-deprecated from here to...
7405         (Warning Options): ... here.
7406
7407 2008-05-13  Richard Guenther  <rguenther@suse.de>
7408
7409         PR middle-end/36227
7410         * fold-const.c (fold_sign_changed_comparison): Do not allow
7411         changes in pointer-ness.
7412
7413 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7414
7415         PR target/24713
7416         * config/sh/sh.c (sh_expand_prologue): Don't clear
7417         RTX_FRAME_RELATED_P for push insns.
7418
7419 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7420
7421         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7422
7423 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7424
7425         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7426         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7427         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7428
7429 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7430
7431         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7432         (*vec_concatv4sf_sse): This.
7433         (*sse2_concatv2si): Renamed to ...
7434         (*vec_concatv2si_sse2): This.
7435         (*sse1_concatv2si): Renamed to ...
7436         (*vec_concatv2si_sse): This.
7437         (*vec_concatv2di_rex): Renamed to ...
7438         (*vec_concatv2di_rex64): This.
7439         (*vec_concatv2si_sse4_1): New.
7440         (*vec_concatv2di_rex64_sse4_1): Likewise.
7441
7442 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7443
7444         PR rtl-optimization/36111
7445         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7446         that was created for swappable operands.
7447
7448 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7449
7450         PR ada/36001
7451         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7452         * configure.ac: Add call to ACX_PROG_GNAT.
7453
7454 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7455
7456         * optc-gen.awk: Fix comment typo.
7457
7458 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7459
7460         * pretty-print.c (pp_integer_with_precision): Use
7461         HOST_LONG_LONG_FORMAT.
7462
7463 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7464
7465         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7466                 
7467 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7468
7469         * config/i386/i386.c (bdesc_ptest): Removed.
7470         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7471         (bdesc_args): Add __builtin_ia32_ptestz128,
7472         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7473         (ix86_init_mmx_sse_builtins): Updated.
7474         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7475         (ix86_expand_builtin): Updated.
7476
7477 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7478
7479         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7480         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7481
7482 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7483
7484         * value-prof.c (interesting_stringop_to_profile): Do not
7485         return early for BUILT_IN_MEMPCPY.
7486
7487 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7488
7489         * calls.c (expand_call): Don't use callgraph to increase
7490         preferred_stack_boundary.
7491
7492         * cgraph.h (cgraph_rtl_info): Use unsigned on
7493         preferred_incoming_stack_boundary.
7494
7495         * final.c (rest_of_clean_state): Use unsigned on
7496         preferred_stack_boundary.
7497
7498 2008-05-09  Tom Tromey  <tromey@redhat.com>
7499
7500         PR preprocessor/22231:
7501         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7502         proceeding.
7503
7504 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7505
7506         PR tree-optimization/36129
7507         * tree-ssa-ccp.c: Include value-prof.h.
7508         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7509         built-in function was folded to a constant.
7510         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7511
7512 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7513             Sebastian Pop  <sebastian.pop@amd.com>
7514
7515         * tree-scalar-evolution.c: Document instantiate_scev.
7516         (instantiate_parameters_1): Renamed instantiate_scev_1.
7517         Don't use the same loop for instantiation_loop and evolution_loop.
7518         (instantiate_scev): New.
7519         (instantiate_parameters): Moved...
7520         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7521         same loop twice.  Maintains the semantics for this function.
7522         * tree-scalar-evolution.h (instantiate_scev): Declare.
7523         (instantiate_parameters): ...here.  Now static inline.
7524         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7525         instead of resolve_mixers.
7526
7527 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7528
7529         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7530
7531 2008-05-09  Tomas Bily  <tbily@suse.cz>
7532
7533         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7534         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7535         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7536         * c-common.c (c_common_truthvalue_conversion): Likewise.
7537         * tree-object-size.c (compute_object_offset): Likewise.
7538         * tree-inline.c (estimate_num_insns_1): Likewise.
7539         * varasm.c (const_hash_1, compare_constant, copy_constant)
7540         (compute_reloc_for_constant, output_addressed_constants)
7541         (initializer_constant_valid_p): Likewise.
7542         * c-omp.c (check_omp_for_incr_expr): Likewise.
7543         * gimplify.c (gimplify_expr): Likewise.
7544         * c-typeck.c (c_finish_return): Likewise.
7545         * tree-vectorizer.c (supportable_widening_operation)
7546         (supportable_narrowing_operation): Likewise.
7547         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7548         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7549         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7550         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7551         (descr_info_loc): Likewise.
7552         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7553         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7554         (fold_unary): Likewise.
7555         * builtins.c (get_pointer_alignment): Likewise.
7556         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7557         (instantiate_parameters_1): Likewise.
7558         * tree.c (expr_align, stabilize_reference): Likewise.
7559         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7560         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7561         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7562         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7563         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7564         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7565         Likewise.
7566         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7567         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7568         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7569         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7570         (forward_propagate_comparison)
7571         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7572         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7573         * emit-rtl.c (component_ref_for_mem_expr)
7574         (set_mem_attributes_minus_bitpos): Likewise.
7575         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7576         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7577         Likewise.
7578         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7579         (build_function_call, pointer_diff, build_compound_expr)
7580         (c_finish_return): Likewise.
7581         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7582         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7583         Likewise.
7584         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7585         * expr.c (is_aligning_offset): Likewise.
7586         * tree-ssa-alias.c (is_escape_site): Likewise.
7587         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7588         (check_all_va_list_escapes): Likewise.
7589         * tree-ssa-loop-ivopts.c (determine_base_object)
7590         (determine_common_wider_type): Likewise.
7591         * dojump.c (do_jump): Likewise.
7592         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7593         * tree-gimple.c (is_gimple_cast): Likewise.
7594         * fold-const.c (decode_field_reference, )
7595         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7596         (fold_binary): Likewise.
7597         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7598         (already_warned_in_frontend_p): Likewise.
7599         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7600         * tree.c (really_constant_p, get_unwidened): Likewise.
7601         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7602         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7603         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7604         Likewise.
7605         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7606         CONVERT_EXPR_P.
7607         (CONVERT_EXPR_P): Define.
7608         (CASE_CONVERT): Define.
7609         
7610 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7611
7612         PR middle-end/36117
7613         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7614         (delete_unmarked_insns): When deleting a call, call
7615         delete_unreachable_blocks.
7616         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7617         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7618
7619 2008-05-08  Richard Guenther  <rguenther@suse.de>
7620
7621         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7622         (-ftree-salias): Likewise.
7623         (salias-max-implicit-fields): Remove param documentation.
7624         (salias-max-array-elements): Likewise.
7625         * tree-pass.h (pass_create_structure_vars): Remove.
7626         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7627         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7628         * tree-ssa-alias.c (create_structure_vars): Remove.
7629         (gate_structure_vars): Likewise.
7630         (pass_create_structure_vars): Likewise.
7631         (gate_build_alias): Likewise.
7632         (pass_build_alias): Adjust to run always and dump the function.
7633         * common.opt (ftree-salias): Hide.
7634         * passes.c (init_optimization_passes): Remove
7635         pass_create_structure_vars, adjust comment.
7636         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7637         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7638         * opts.c (decode_options): Do not set flag_tree_salias.
7639         (common_handle_option): Add OPT_ftree_salias to the backward
7640         compatibility section.
7641
7642 2008-05-08  Richard Guenther  <rguenther@suse.de>
7643
7644         * tree-flow-inline.h (var_can_have_subvars): Move ...
7645         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7646         * tree-flow.h (var_can_have_subvars): Remove.
7647         (push_fields_onto_fieldstack): Remove.
7648         (sort_fieldstack): Likewise.
7649         (struct fieldoff): Move ...
7650         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7651         alias_set and base_for_components fields.
7652         (sort_fieldstack): Make static.
7653         (push_fields_onto_fieldstack): Likewise.  Remove code that
7654         handles anything but RECORD_TYPEs.  Remove alias_set and
7655         base_for_components handling.
7656         (create_variable_info_for): Adjust.
7657
7658 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7659
7660         * common.opt (Wframe-larger-than=): Shorten the help message
7661         to one line.
7662         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7663
7664 2008-05-08  Rafael Espindola  <espindola@google.com>
7665
7666         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7667         trap.
7668         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7669         trap and that both operands are gimple values.
7670         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7671         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7672         is a fp operation.
7673
7674 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7675
7676         * read-rtl.c (join_c_conditions): Return the first string if the
7677         two strings are equal.
7678
7679 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7680
7681         * gensupport.h (pred_data): Add a "num_codes" field.
7682         (add_predicate_code): Declare.
7683         * gensupport.c (add_predicate_code): New function.
7684         (std_pred_table): Add an "allows_const_p" field.
7685         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7686         Remove the (incomplete) list of such codes from the codes field.
7687         (init_predicate_table): Use add_predicate_code.  Add all
7688         RTX_CONST_OBJs if allows_const_p is true.
7689         * genrecog.c (process_define_predicate): Use add_predicate_code.
7690
7691 2008-05-08  David Daney  <ddaney@avtrex.com>
7692             Richard Sandiford  <rsandifo@nildram.co.uk>
7693         
7694         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7695         special case of constant zero operands.
7696         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7697         old and new values.  Special case constant zero values.
7698         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7699         fails.
7700         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7701         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7702
7703 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7704
7705         PR target/36090
7706         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7707         similar RTX_CONST_OBJ before CONST_INT.
7708
7709 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7710
7711         * stmt.c (expand_stack_restore): Change sa mode if needed.
7712
7713 2008-05-08  Richard Guenther  <rguenther@suse.de>
7714
7715         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7716         return type to bool.
7717         (ix86_sol10_return_in_memory): Likewise.
7718         (ix86_i386elf_return_in_memory): Likewise.
7719         (ix86_i386interix_return_in_memory): Likewise.
7720         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7721         (ix86_sol10_return_in_memory): Likewise.
7722         (ix86_i386elf_return_in_memory): Likewise.
7723         (ix86_i386interix_return_in_memory): Likewise.
7724
7725 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7726
7727         PR bootstrap/36180
7728         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7729         fndecl argument.
7730         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7731         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7732         declared in front.
7733
7734 2008-05-08  Richard Guenther  <rguenther@suse.de>
7735
7736         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7737         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7738         (DR_SUBVARS): Remove.
7739         * tree-dfa.c (dump_subvars_for): Remove.
7740         (debug_subvars_for): Likewise.
7741         (dump_variable): Do not dump subvars.
7742         (remove_referenced_var): Do not remove subvars.
7743         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7744         (lookup_subvars_for_var): Remove.
7745         (get_subvars_for_var): Likewise.
7746         (get_subvars_at): Likewise.
7747         (get_first_overlapping_subvar): Likewise.
7748         (overlap_subvar): Likewise.
7749         * tree-flow.h (subvar_t): Remove.
7750         (struct var_ann_d): Remove subvars field.
7751         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7752         argument.  Remove special handling of SFTs.
7753         (compute_tag_properties): Likewise.
7754         (set_initial_properties): Likewise.
7755         (compute_call_clobbered): Likewise.
7756         (count_mem_refs): Likewise.
7757         (compute_memory_partitions): Likewise.
7758         (compute_flow_insensitive_aliasing): Likewise.
7759         (setup_pointers_and_addressables): Likewise.
7760         (new_type_alias): Likewise.
7761         (struct used_part): Remove.
7762         (used_portions): Likewise.
7763         (struct used_part_map): Likewise.
7764         (used_part_map_eq): Likewise.
7765         (used_part_map_hash): Likewise.
7766         (free_used_part_map): Likewise.
7767         (up_lookup): Likewise.
7768         (up_insert): Likewise.
7769         (get_or_create_used_part_for): Likewise.
7770         (create_sft): Likewise.
7771         (create_overlap_variables_for): Likewise.
7772         (find_used_portions): Likewise.
7773         (create_structure_vars): Likewise.
7774         * tree.def (STRUCT_FIELD_TAG): Remove.
7775         * tree.h (MTAG_P): Adjust.
7776         (struct tree_memory_tag): Remove base_for_components and
7777         unpartitionable flags.
7778         (struct tree_struct_field_tag): Remove.
7779         (SFT_PARENT_VAR): Likewise.
7780         (SFT_OFFSET): Likewise.
7781         (SFT_SIZE): Likewise.
7782         (SFT_NONADDRESSABLE_P): Likewise.
7783         (SFT_ALIAS_SET): Likewise.
7784         (SFT_UNPARTITIONABLE_P): Likewise.
7785         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7786         (union tree_node): Remove sft field.
7787         * alias.c (get_alias_set): Remove special handling of SFTs.
7788         * print-tree.c (print_node): Remove handling of SFTs.
7789         * tree-dump.c (dequeue_and_dump): Likewise.
7790         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7791         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7792         * tree-predcom.c (set_alias_info): Do not set subvars.
7793         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7794         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7795         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7796         (add_vars_for_offset): Remove.
7797         (add_virtual_operand): Remove special handling of SFTs.
7798         (add_call_clobber_ops): Likewise.
7799         (add_call_read_ops): Likewise.
7800         (get_asm_expr_operands): Likewise.
7801         (get_modify_stmt_operands): Likewise.
7802         (get_expr_operands): Likewise.
7803         (add_to_addressable_set): Likewise.
7804         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7805         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7806         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7807         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7808         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7809         (tree_node_structure): Likewise.
7810         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7811         handling of SFTs.
7812         (find_what_p_points_to): Likewise.
7813
7814 2008-05-08  Sa Liu  <saliu@de.ibm.com>
7815
7816         * config/spu/spu.md: Fixed subti3 pattern.
7817
7818 2008-05-08  Richard Guenther  <rguenther@suse.de>
7819
7820         PR middle-end/36154
7821         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7822         sure to create a representative for trailing arrays for PTA.
7823
7824 2008-05-08  Richard Guenther  <rguenther@suse.de>
7825
7826         PR middle-end/36172
7827         * fold-const.c (operand_equal_p): Two objects which types
7828         differ in pointerness are not equal.
7829
7830 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7831
7832         * calls.c (compute_argument_block_size): Add argument tree fndecl.
7833         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7834         (emit_library_call_value_1): Add new variable fndecl initialized by
7835         NULL_TREE. It should be the decl type of orgfun, but this information
7836         seems not to be available here, so it uses the default calling abi.
7837         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7838         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7839         by TARGET_RETURN_IN_MEMORY.
7840         * config/i386/i386-interix.h: Likewise.
7841         * config/i386/i386.h: Likewise.
7842         * config/i386/i386elf.h: Likewise.
7843         * config/i386/ptx4-i.h: Likewise.
7844         * config/i386/sol2-10.h: Likewise.
7845         * config/i386/sysv4.h: Likewise.
7846         * config/i386/vx-common.h: Likewise.
7847         * config/cris/cris.h: Removed #if 0 clause.
7848         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7849         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7850         argument.
7851         (ix86_sol10_return_in_memory): Likewise.
7852         (ix86_i386elf_return_in_memory): New.
7853         (ix86_i386interix_return_in_memory): New.
7854         * config/mt/mt-protos.h (mt_return_in_memory): New.
7855         * config/mt/mt.c: Likewise.
7856         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7857         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
7858         * config/bfin/bfin.h: Likewise.
7859         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7860         argument.
7861         * config/bfin/bfin.c: Likewise.
7862         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7863         * config/alpha/unicosmk.h: Likewise.
7864         * config/i386/cygming.h: Likewise.
7865         * config/iq2000/iq2000.h: Likewise.
7866         * config/mips/mips.h: Likewise.
7867         * config/mn10300/mn10300.h: Likewise.
7868         * config/rs6000/rs6000.h: Likewise.
7869         * config/score/score.h: Likewise.
7870         * config/spu/spu.h: Likewise.
7871         * config/v850/v850.h: Likewise.
7872         * defaults.h: Likewise.
7873         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7874         * expr.c (emit_block_move): Adjust use of
7875         OUTGOING_REG_PARM_STACK_SPACE.
7876         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7877         OUTGOING_REG_PARM_STACK_SPACE.
7878         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7879
7880 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
7881
7882         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7883         on OMP_RETURN for OMP_FOR.
7884
7885         PR debug/35896
7886         * dwarf2out.c (dw_expand_expr, common_check): Removed.
7887         (fortran_common): New function.
7888         (gen_variable_die): Call fortran_common instead of common_check,
7889         adjust for it returning tree instead of rtx.  Formatting.
7890
7891 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
7892
7893         PR rtl/7335
7894         PR rtl/33826
7895         * see.c (see_copy_insn): Copy new pure const attributes for new call.
7896         * c-decl.c (merge_decls): Ditto.
7897         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7898         to RTL_CONST_OR_PURE_CALL_P.
7899         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7900         Initialized DECL_LOOPING_CONST_PURE.
7901         (process_call_operands): Set tree_side_effects properly.
7902         * tree.h (TREE_READONLY_DECL_P): Removed.
7903         (DECL_IS_PURE): Renamed to DECL_PURE_P.
7904         (DECL_LOOPING_OR_CONST_P): New macro.
7905         (struct tree_function_decl): Added looping_const_or_pure_p.
7906         (ECF_*) Renumbered.
7907         (ECF_LOOPING_OR_CONST_P): New macro.
7908         * rtlanal.c (pure_const_p): Removed.
7909         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7910         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7911         to RTL_CONST_CALL_P.
7912         * ipa-pure-const.c (pure_const_state_e): Added looping field.
7913         (check_decl, check_tree, check_call, scan_function): Initialize
7914         looping.
7915         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7916         (static_execute): Set looping true for recursive functions.
7917         Undo setting state to IPA_NEITHER for recursive functions.
7918         * cse.c (cse_insn): 
7919         * ifcvt.c (noce_can_store_speculate_p): Changed
7920         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
7921         RTL_CONST_OR_PURE_CALL_P.
7922         * dse.c (scan_insn): Ditto.
7923         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7924         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7925         RTL_CONST_OR_PURE_CALL_P.
7926         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7927         pure_call_p to RTL_CONST_CALL_P.
7928         * gimplify.c (gimplify_call_expr): Clear side effects for
7929         non-looping pure and constant calls.
7930         * calls.c (emit_call_1): Set rtl flags from ecf flags.
7931         (flags_from_decl_or_type): Set ecf flags from decl flags.
7932         (initialize_argument_information): Turn off
7933         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7934         Change const to pure if callee_copies is true rather than just
7935         turning off const.
7936         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7937         way of marking pure calls.
7938         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7939         Remove hack that was supposed to fix pr7335 and remove old
7940         way of marking pure calls.
7941         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7942         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7943         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7944         RTL_CONST_OR_PURE_CALL_P.
7945         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7946         * loop-invariant.c (find_exits, find_invariant_bb): Changed
7947         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7948         * sched-deps.c (schedule_analyze): Ditto.
7949         * rtl.h (struct rtx_def): Use call field, unchanging field, and
7950         return_val field of calls to represent pure and const function info.
7951         (CONST_OR_PURE_CALL_P): Deleted macro.
7952         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7953         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7954         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7955         TREE_READONLY.
7956         * tree-optimize.c (execute_fixup_cfg): Added test for
7957         ECF_LOOPING_CONST_OR_PURE.
7958         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7959         DECL_PURE_P.
7960         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7961         effects for looping pure or const calls.
7962         (verify_gimple_expr): Added verification code. 
7963         * config/alpha/alpha.c (alpha_legitimize_address,
7964         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7965         RTL_CONST_CALL_P.
7966         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7967         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7968         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7969         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7970         RTL_CONST_OR_PURE_CALL_P.
7971         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7972         and const calls to be deleted.
7973
7974 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7975
7976         PR target/35714
7977         * config/i386/mmx.md (mmx_subv2sf3): New expander.
7978         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7979         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7980         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7981         to handle nonimmediate operands.
7982         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7983         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
7984         to handle nonimmediate operands.
7985         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7986         (mmx_pmulhrwv4hi3): New expander.  Use
7987         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7988         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7989         (sse2_umulv1siv1di3): New expander.  Use
7990         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7991         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7992         (mmx_eq<mode>3): New expander.  Use
7993         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7994         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7995         (mmx_uavgv8qi3): New expander.  Use
7996         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7997         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7998         (mmx_uavgv4hi3): New expander.  Use
7999         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8000
8001         * config/i386/sse.md
8002         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
8003         to handle nonimmediate operands.
8004         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
8005         to handle nonimmediate operands.
8006         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
8007         to handle nonimmediate operands.
8008         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
8009         to handle nonimmediate operands.
8010         (sse2_unpckhpd_exp): New expander.  Use
8011         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8012         (sse2_unpcklpd_exp): New expander.  Use
8013         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8014         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
8015         to handle nonimmediate operands.
8016         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
8017         to handle nonimmediate operands.
8018         (*sse2_<plusminus_insn><mode>3): Rename from
8019         sse2_<plusminus_insn><mode>3 insn pattern.
8020         (sse2_<plusminus_insn><mode>3): New expander.  Use
8021         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8022         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8023         (sse2_umulv2siv2di3): New expander.  Use
8024         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8025         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8026         (sse4_1_mulv2siv2di3): New expander.  Use
8027         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8028         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8029         (sse2_pmaddwd): New expander.  Use
8030         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8031         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8032         (sse2_eq<mode>3): New expander.  Use
8033         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8034         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8035         (sse4_1_eqv2di3): New expander.  Use
8036         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8037         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8038         (sse2_uavgv16qi3): New expander.  Use
8039         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8040         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8041         (sse2_uavgv16qi3): New expander.  Use
8042         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8043         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8044         (sse2_uavgv8hi3): New expander.  Use
8045         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8046         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8047         (ssse3_pmulhrswv8hi3): New expander.  Use
8048         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8049         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8050         (ssse3_pmulhrswv4hi3): New expander.  Use
8051         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8052
8053         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8054         (<sse>_vmmul<mode>3): Ditto.
8055         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8056         (divv2df3): Ditto.
8057         (ssse3_pmaddubsw128): Use register_operand for operand 1.
8058         (ssse3_pmaddubsw): Ditto.
8059
8060         * config/i386/i386.c (struct_builtin_description)
8061         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8062         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8063         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8064         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8065         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8066         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8067         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8068         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8069         (ix86_fixup_binary_operands): Assert that src1
8070         and src2 must have the same mode when swapped.
8071         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8072         and ix86_binary_operator_ok.  Do not force operands in registers
8073         when optimizing.
8074
8075 2008-05-07  Jan Hubicka  <jh@suse.cz>
8076
8077         * cgraph.c (dump_cgraph_node): Update.
8078         * cgraph.h (cgraph_local_info): Break out inline summary.
8079         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8080         hook.
8081         * ipa-inline (inline_summary): New accestor function.
8082         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8083         cgraph_decide_inlining, compute_inline_parameters): Update.
8084         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8085
8086 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8087
8088         Cleanup ColdFire scheduling support and add V4 pipeline model.
8089
8090         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8091         (define_attr cpu): Add cfv4 value.
8092         (define_attr type, define_attr type1): Merge into a single 'type'
8093         attribute.  Update all uses.
8094         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8095         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
8096         Update all uses.
8097         (define_attr opx_mem, define_attr opy_mem): Remove.
8098         (define_attr op_mem): Clean up, update comment.
8099         (define_attr size): Use specific values instead of general int.
8100         (define_attr guess, define_attr split): Remove.  Update all uses.
8101         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8102         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8103         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8104         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8105         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8106         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8107         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8108         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8109         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8110         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8111         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8112         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8113         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8114         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8115         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8116         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8117         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8118         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8119         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8120         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8121         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8122         Update or set attributes.
8123         (stack_tie): New fake instruction.
8124
8125         * config/m68k/m68k.h (TUNE_CFV4): New macro.
8126         (m68k_sched_attr_size): Update declaration.
8127         (m68k_sched_attr_type2): Remove.
8128         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8129         Declare new bypass predicates.
8130
8131         * config/m68k/m68k.c (m68k_sched_issue_rate,
8132         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8133         implementations.
8134         (TARGET_SCHED_ISSUE_RATE,
8135         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8136         (override_options): Handle scheduling for ColdFire V4 core.
8137         (m68k_expand_prologue): Emit stack_tie.
8138         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8139         'OP_TYPE_FPN'.  Update all uses.
8140         (sched_guess_p): Remove.
8141         (sched_address_type): Handle symbolic addresses.
8142         (sched_get_operand): New static function.
8143         (sched_operand_type): Merge into sched_attr_op_type.
8144         (sched_attr_op_type): Handle FP registers, handle quick constants,
8145         update.
8146         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8147         (m68k_sched_attr_size): Update.  Move logic to ...
8148         (sched_get_attr_size_int): New static function.
8149         (sched_get_opxy_mem_type): New static function.
8150         (m68k_sched_attr_op_mem): Update.
8151         (m68k_sched_attr_type2): Remove.
8152         (sched_cfv4_bypass_data): New static variable.
8153         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8154         (m68k_sched_issue_rate): Implement scheduler hook.
8155         (struct _sched_ib: enabled_p): New field.
8156         (m68k_sched_variable_issue): Update.  Handle V4.
8157         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8158         sched_dump_class_func_t, sched_dump_split_class,
8159         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8160         sched_dump_dfa_class, m68k_sched_dump): Remove.
8161         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8162         hook.
8163         (m68k_sched_init_global): Remove statisctics dumping, introduce
8164         sanity check that all instructions have pipeline reservations.  Handle
8165         ColdFire V4 core.
8166         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8167         Handle ColdFire V4 core.
8168         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8169         New static functions.
8170         (m68k_sched_address_bypass_p): New bypass predicate.
8171         (sched_get_indexed_address_scale): New static function.
8172         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8173
8174         * cf.md: Update comments.
8175         (define_attr type2): Remove.  Use 'type' attribute instead.
8176         Update all uses.
8177         (cf_ib): Rename to cfv123_ib.  Update all uses.
8178         (cf_oep): Rename to cfv123_oep.  Update all uses.
8179         (cf_chr): Rename to cfv123_chr.  Update all uses.
8180         (cf_mem): Rename to cfv123_mem.  Update all uses.
8181         (cf_mac): Move to more appropriate place.
8182         (cfv123_guess): New automaton and cpu_unit.
8183         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8184         Update uses of 'size' attribute.  Handle before reload scheduling.
8185         (cfv123_guess): New dummy reservation for unhandled instructions.
8186         (cfv4_*): Pipeline description of ColdFire V4 core.
8187         (ignore): New reservation to handle 'ignore' type.
8188
8189 2008-05-07  Ian Lance Taylor  <iant@google.com>
8190
8191         PR middle-end/36013
8192         * gimplify.c (find_single_pointer_decl_1): Don't look through
8193         indirections.
8194         (find_single_pointer_decl): Adjust comments.
8195
8196 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8197
8198         PR middle-end/36137
8199         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8200         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8201
8202         PR middle-end/36106
8203         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8204         integral type rather than floating point, then VIEW_CONVERT_EXPR
8205         to the floating point type.
8206
8207 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8208
8209         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8210         TFmode op0 to register.
8211
8212 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8213
8214         * c-decl.c (grokdeclarator): Comment typo.
8215
8216 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8217
8218         * tree-flow.h: Remove prototype for computed_goto_p.
8219         * tree-cfg.c (computed_goto_p): Make static.
8220
8221 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8222
8223         PR target/35657
8224         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8225         (contains_aligned_value_p): This.  Handle _Decimal128.
8226         (ix86_function_arg_boundary): Only align _Decimal128 to its
8227         natural boundary and handle it properly.
8228
8229 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8230
8231         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8232         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8233         (ipcp_method_set_orig_node): Removed.
8234         (ipcp_cval_get_cvalue_type): Removed.
8235         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8236         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8237         (ipcp_cval_set_cvalue_type): Removed.
8238         (ipcp_cval_get_cvalue): Removed.
8239         (ipcp_cval_set_cvalue): Removed.
8240         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8241         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8242         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8243         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8244         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8245         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8246         (ipcp_get_ith_lattice): Changed parameters.
8247         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8248         (ipcp_lattice_from_jfunc): Changed parameters.
8249         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8250         (ipcp_method_cval_print): Added temporary variable info.
8251         (ipcp_redirect): Removed already unused local variable caller.
8252         (ipcp_redirect): New temporary variable orig_callee_info
8253         (ipcp_redirect): Removed newly unused local variable callee.
8254         (ipcp_redirect): Removed (a bit confusing) local variable type.
8255         (ipcp_insert_stage): Added local variable info.
8256         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
8257         renamed too
8258         (ipcp_formal_create): Removed.
8259         (ipcp_method_cval_set): Removed.
8260         (ipcp_propagate_stage): Renamed lattice variables.
8261         (ipcp_method_cval_set_cvalue_type): Removed.
8262         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8263         (ipcp_print_all_lattices): Changed printed strings to refer to 
8264         lattices rather than cvals.
8265         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8266         (ipcp_propagate_const): Changed formal parameters.
8267         (build_const_val): Changed formal parameters.
8268         (ipcp_insert_stage): Removed useless variable cvalue
8269         (build_const_val): Changed formal parameters.
8270         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8271         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8272         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8273         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8274         (ipcp_print_func_profile_counts): Changed string from "method" to 
8275         "function"
8276         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8277         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8278         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8279         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8280         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8281         (ipcp_lat_is_const): Changed parameters and made inline.
8282         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8283         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8284         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
8285         the predicate condition directly
8286         (ipcp_propagate_stage): Added local variable args. Removed local
8287         variable callee.  (Both are mere code simplifications.)
8288         (ipcp_method_dont_insert_const): Renamed to
8289         ipcp_node_not_modifiable_p.
8290         (ipcp_node_not_modifiable_p): Made inline.
8291         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8292         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8293         (ipcp_print_all_lattices): Removed variable cvalue
8294         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8295         Updated comments.
8296
8297 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8298
8299         * tree-sra.c (try_instantiate_multiple_fields): Early return
8300         if field has POINTER_TYPE.
8301
8302 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8303
8304         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8305         by using 'q' specifier for instruction.
8306         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8307
8308 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8309
8310         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8311         Change mode of zero_extract from QImode to HImode.
8312         (sign bit tests peepholes): (Ditto.).
8313
8314 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8315
8316         * config/i386/mmx.md: Remove double backslashes from asm templates.
8317         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8318         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8319         to handle nonimmediate operands.
8320         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8321         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8322         to handle nonimmediate operands.
8323         (*mmx_<code>v2sf3_finite): New insn pattern.
8324         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8325         (mmx_<code>v2sf3): New expander.  Use
8326         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8327         (mmx_<plusminus_insn><mode>3): New expander.  Use
8328         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8329         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8330         (mmx_add<mode>3): Removed.
8331         (mmx_ssadd<mode>3): Ditto.
8332         (mmx_usadd<mode>3): Ditto.
8333         (mmx_sub<mode>3): Ditto.
8334         (mmx_sssub<mode>3): Ditto.
8335         (mmx_ussub<mode>3): Ditto.
8336         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8337         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8338         to handle nonimmediate operands.
8339         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8340         insn pattern.
8341         (mmx_smulv4hi3_highpart): New expander.  Use
8342         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8343         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8344         insn pattern.
8345         (mmx_umulv4hi3_highpart): New expander.  Use
8346         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8347         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8348         (mmx_<code>v4hi3): New expander.  Use
8349         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8350         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8351         (mmx_<code>v8qi3): New expander.  Use
8352         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8353         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8354         (mmx_<code><mode>3): New expander.  Use
8355         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8356
8357 2008-05-05  Jan Hubicka  <jh@suse.cz>
8358
8359         PR tree-optimization/36118
8360         * passes.c (pass_init_dump_file): Fix dump header.
8361
8362 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8363
8364         PR middle-end/36141
8365         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8366         VCE for function decls.
8367
8368 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8369
8370         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8371
8372 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8373
8374         * config/i386/i386.md (sat_plusminus): New.
8375         (plusminus_insn): Likewise.
8376         (plusminus_mnemonic): Likewise.
8377         (addsub): Removed.
8378         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8379         (*<addsub><mode>3_cc_overflow): Renamed to ...
8380         (*<plusminus_insn><mode>3_cc_overflow): This.
8381         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8382         (*<plusminus_insn>si3_zext_cc_overflow): This.
8383
8384         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8385         (<plusminus_insn><mode>3): This.
8386         (*<addsub><mode>3): Renamed to ...
8387         (*<plusminus_insn><mode>3): This.
8388         (<sse>_vm<addsub><mode>3): Renamed to ...
8389         (<sse>_vm<plusminus_insn><mode>3): This.
8390         (sse3_h<addsub>v4sf3): Renamed to ...
8391         (sse3_h<plusminus_insn>v4sf3): This.
8392         (sse3_h<addsub>v2df3): Renamed to ...
8393         (sse3_h<plusminus_insn>v2df3): This.
8394         (<plusminus_insn><mode>3): New.
8395         (*<plusminus_insn><mode>3): Likewise.
8396         (sse2_<plusminus_insn><mode>3): Likewise.
8397         (add<mode>): Removed.
8398         (*add<mode>3): Likewise.
8399         (sse2_ssadd<mode>3): Likewise.
8400         (sse2_usadd<mode>3): Likewise.
8401         (sub<mode>3): Likewise.
8402         (*sub<mode>3): Likewise.
8403         (sse2_sssub<mode>3): Likewise.
8404         (sse2_ussub<mode>3): Likewise.
8405
8406 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8407
8408         * gthr-single.h: Add in required interface elements as per gthr.h.
8409         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8410         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8411         Generalize UNUSED macro. 
8412         (__gthread_once): Add.
8413         (__gthread_key_create): Add.
8414         (__gthread_key_delete): Add.
8415         (__gthread_getspecific): Add.
8416         (__gthread_setspecific): Add.
8417         
8418 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8419
8420         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8421         the same size types for the indirect reference on the rhs, then
8422         create a VCE.
8423
8424 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8425
8426         * config/i386/i386.md
8427         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8428         one insn template instead of template series.
8429         (*xordi_1_rex64): Ditto.
8430         (*xordi_2_rex64): Ditto.
8431
8432 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8433
8434         PR tree-optimization/36119
8435         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8436         in case of SLP.
8437
8438 2008-06-04  Jan Hubicka  <jh@suse.cz>
8439
8440         tree-optimization/36100
8441         * tree-pass.h (pass_O0_always_inline): Declare.
8442         * ipa-inline.c (inline_transform): Remove dead code.
8443         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8444         pass_O0_always_inline): New.
8445         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8446
8447 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8448
8449         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8450         mnemonic in this_param move for TARGET_64BIT.
8451
8452 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8453
8454         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8455         (*strmovsi_rex_1): Ditto.
8456         (*strsetsi_1): Ditto.
8457         (*strsetsi_rex_1): Ditto.
8458
8459         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8460         adddicc expanders using SWI mode iterator.
8461
8462 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8463
8464         PR target/36121
8465         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8466         argument handling.
8467
8468 2008-05-04  David S. Miller  <davem@davemloft.net>
8469
8470         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8471         (sparc*-*-linux*): Use linux.h in tm_file.
8472         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8473         compiler defaulting to 32-bit.
8474         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8475         no longer needed.
8476         * config/sparc/linux.h: Remove definitions now obtained
8477         properly from linux.h
8478         * config/sparc/linux64.h: Likewise.
8479         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8480         don't want this setting for 32-bit builds in a biarch compiler.
8481         * doc/install.texi: Add sparc-linux to list of targets
8482         supporting --enable-targets=all.
8483
8484 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8485
8486         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8487
8488 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8489
8490         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8491         after V4SI_FTYPE_V8HI.
8492         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8493         case V4SI_FTYPE_V2DF.
8494
8495 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8496
8497         * doc/invoke.texi (max-flow-memory-locations): Removed.
8498         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8499         
8500 2008-05-03  Richard Guenther  <rguenther@suse.de>
8501
8502         PR middle-end/34973
8503         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8504
8505 2008-05-02  David S. Miller  <davem@davemloft.net>
8506
8507         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8508
8509 2008-05-02  Simon Baldwin <simonb@google.com>
8510
8511         PR bootstrap/36108
8512         * c-common.h (warn_array_subscript_range): Removed.
8513         * c-common.c (warn_array_subscript_range): Ditto.
8514         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8515         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8516
8517 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8518
8519         * config/i386/i386.c (ix86_special_builtin_type): New.
8520         (bdesc_special_args): Likewise.
8521         (ix86_expand_special_args_builtin): Likewise.
8522         (ix86_init_mmx_sse_builtins): Updated.
8523         (ix86_expand_builtin): Updated.
8524         (ix86_expand_store_builtin): Removed.
8525         (ix86_expand_unop_builtin): Likewise.
8526
8527         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8528         * config/i386/mmintrin.h (__v2sf): Here.
8529
8530         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8531         const __v2sf.
8532         (_mm_loadl_pi): Likewise.
8533         (_mm_storeh_pi): Replace __v2si with __v2sf.
8534         (_mm_storel_pi): Likewise.
8535
8536         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8537         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8538         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8539         __builtin_ia32_loadlpd.
8540
8541 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8542
8543         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8544         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8545         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8546         (ix86_init_mmx_sse_builtins): Updated.
8547         (ix86_expand_args_builtin): Likewise.
8548         (ix86_expand_builtin): Likewise.
8549         (ix86_expand_unop1_builtin): Renamed to ...
8550         (ix86_expand_unop_vec_merge_builtin): This.
8551
8552 2008-05-01  Jan Hubicka  <jh@suse.cz>
8553
8554         PR bootstrap/36100
8555         * ipa-inline.c (inline_generate_summary): Make static.
8556         (inline_transform): Do not call inlining at -O0; make static.
8557         * passes.c (execute_todo): Add sanity check.
8558         (execute_one_ipa_transform_pass): Execute proper flags.
8559
8560 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8561
8562         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8563         (DECL_NONADDRESSABLE_P): Likewise.
8564         * alias.c (record_component_aliases): Fix comment.
8565
8566 2008-05-01  Simon Baldwin <simonb@google.com>
8567
8568         * c-common.h (warn_array_subscript_range): New function.
8569         * c-common.c (warn_array_subscript_range): Ditto.
8570         * tree-vrp.c (check_array_ref): Corrected code to agree with
8571         comment, ignoring only arrays of size 0 or size 1.
8572         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8573
8574 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8575
8576         * config/i386/i386.c (ix86_builtin_type): Replace
8577         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8578         (bdesc_args): Updated.
8579         (ix86_init_mmx_sse_builtins): Likewise.
8580         (ix86_expand_args_builtin): Likewise.
8581
8582         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8583         with __v1di.
8584
8585         * doc/extend.texi: Correct __builtin_ia32_palignr.
8586
8587 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8588
8589         PR target/36095
8590         * config/i386/i386.c (bdesc_crc32): Removed.
8591         (ix86_expand_crc32): Likewise.
8592         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8593         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8594         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8595         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8596         UINT_FTYPE_UINT_UCHAR.
8597         (bdesc_args): Updated. Add crc32 builtins.
8598         (ix86_init_mmx_sse_builtins): Updated.
8599         (ix86_expand_args_builtin): Updated to support subreg.
8600
8601         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8602
8603 2008-05-01  Jan Hubicka  <jh@suse.cz>
8604
8605         * tree-pass.h (opt_pass): Add IPA_PASS.
8606         (varpool_node, cgraph_node): Forward declare.
8607         (ipa_opt_pass): Define.
8608         (pass_ipa_inline): Turn into ipa_opt_pass.
8609         (pass_apply_inline): Remove.
8610         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8611         (apply_inline): Turn into ....
8612         (inline_transform): ... this one.
8613         (inline_generate_summary): New function.
8614         (pass_apply_inline): Remove.
8615         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8616         vector.
8617         (struct function): Add ipa_transforms_to_apply.
8618         * passes.c (register_one_dump_file): Work on IPA_PASS.
8619         (init_optimization_passes): Remove pass_inline_parameters and
8620         pass_apply_inline.
8621         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8622         (execute_one_pass) ... here; apply transforms when possible.
8623         (add_ipa_transform_pass, execute_ipa_summary_asses,
8624         execute_one_ipa_transform_pass): New.
8625         (execute_ipa_pass_list): Update for IPA_PASS type.
8626
8627 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8628
8629         * config/i386/i386.c (ix86_builtin_type): Add
8630         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8631         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8632         (bdesc_args): Add SSE4a builtins.
8633         (ix86_init_mmx_sse_builtins): Updated.
8634         (ix86_expand_args_builtin): Likewise.
8635         (ix86_expand_builtin): Likewise.
8636
8637 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8638
8639         * config/i386/i386.c (ix86_builtin_type): Add
8640         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8641         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8642         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8643         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8644         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8645         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8646         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8647         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8648         and DI_FTYPE_DI_DI_INT.
8649         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8650         (ix86_init_mmx_sse_builtins): Updated.
8651         (ix86_expand_args_builtin): Likewise.
8652         (ix86_expand_builtin): Likewise.
8653         (ix86_expand_binop_imm_builtin): Removed.
8654
8655         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8656
8657 2008-04-30  Richard Guenther  <rguenther@suse.de>
8658
8659         PR tree-optimization/32921
8660         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8661
8662 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8663
8664         * config/arm/arm.c (arm_unwind_emit): Use
8665         crtl->all_throwers_are_sibcalls instead of
8666         cfun->all_throwers_are_sibcalls.
8667         (arm_output_fn_unwind): Likewise.
8668         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8669         instead of cfun->uses_pic_offset_table.
8670         (frv_expand_prologue): Likewise.
8671         (frv_frame_pointer_required): Likewise.
8672         (frv_expand_fdpic_call): Likewise.
8673         (frv_emit_movsi): Likewise.
8674         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8675         cfun->returns_pcc_struct instead of
8676         current_function_returns_pcc_struct.
8677         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8678         instead of cfun->calls_eh_return.
8679         (m32c_pushm_popm): Likewise.
8680         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8681         "extern" declaration.
8682
8683 2008-04-30  Richard Guenther  <rguenther@suse.de>
8684
8685         PR tree-optimization/21636
8686         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8687         constant address.
8688         (evaluate_stmt): Print the likely value.
8689         (ccp_visit_stmt): Avoid excessive vertical spacing.
8690
8691 2008-04-30  Rafael Espindola  <espindola@google.com>
8692
8693         * builtins.c (fold_call_expr): Return realret.
8694         * tree-ssa-threadedge.c
8695         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8696         __builtin_object_size.
8697
8698 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8699
8700         * gcc.c (wrapper_string): New variable.
8701         (insert_wrapper): New function.
8702         (execute): New option -wrapper.
8703         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8704
8705 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8706
8707         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8708         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8709         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8710         from...
8711         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8712         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8713         config/rs6000/e500crtres64gprctr.asm,
8714         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8715         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8716         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8717         config/rs6000/e500crtsav64gprctr.asm,
8718         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8719         config/rs6000/e500crtsavg64gprctr.asm: New files.
8720         * config/rs6000/t-ppccomm: Add build rules for new files.
8721         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8722         * config/rs6000/t-netbsd: Add build rules for new files.
8723         (LIB2FUNCS_STATIC_EXTRA): New variable.
8724         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8725         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8726         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8727
8728 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8729
8730         * config/i386/i386.c (ix86_builtin_type): Add
8731         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8732         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8733         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8734         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8735         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8736         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8737         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8738         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8739         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8740         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8741         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8742         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8743         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8744         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8745         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8746         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8747         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8748         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8749         V1DI_FTYPE_V2SI_V2SI.
8750         (bdesc_2arg): Moved to ...
8751         (bdesc_args): Here.
8752         (ix86_init_mmx_sse_builtins): Updated.
8753         (ix86_expand_args_builtin): Updated.  Take a pointer
8754         to const struct builtin_description.  Handle comparison
8755         builtin functions.
8756         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8757         (ix86_expand_builtin): Updated.
8758
8759         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8760         (ssse3_pmaddubsw128): This.
8761         (ssse3_pmaddubswv4hi3): Renamed to ...
8762         (ssse3_pmaddubsw): This.
8763
8764         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8765         (__builtin_ia32_packssdw128): Likewise.
8766         (__builtin_ia32_packuswb128): Likewise.
8767         (__builtin_ia32_pmaddubsw): Likewise.
8768         (__builtin_ia32_pmaddubsw128): Likewise.
8769
8770 2008-04-30  Richard Guenther  <rguenther@suse.de>
8771
8772         PR tree-optimization/14847
8773         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8774         (recognize_bits_test): Use it.
8775         (recognize_single_bit_test): Likewise.
8776
8777 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8778
8779         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8780         instead of setting number of formal parameters to zero.
8781         (ipcp_init_stage): Do not set the number of actual parameters to zero 
8782         either.
8783         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8784         which are called with variable number of arguments.
8785         (ipcp_insert_stage): Explicitely skipping all nodes which are
8786         called with variable number of arguments.
8787         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
8788         number of parameters.
8789
8790         * ipa-prop.h (struct ipa_node_params): Added flag
8791         called_with_var_arguments
8792         (ipa_set_param_count): Added.  Changed sole setter to use it.
8793         (ipa_get_param_count): Added.  All readers of param_count
8794         converted to use it instead.
8795         (ipa_set_called_with_variable_arg): Added.
8796         (ipa_is_called_with_var_arguments): Added.
8797         (ipa_get_ith_param): Added.  All readers of param_decls converted
8798         to use it instead.
8799         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
8800         changed to use it. 
8801         (ipa_get_cs_argument_count): Added, all readers of argument_count
8802         changed to cal it.
8803         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
8804         to use it.
8805         
8806         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8807         (struct ipcp_lattice): Renamed cval_type to type
8808         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8809
8810         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8811         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8812         (ipcp_insert_stage): Changed the type of variable cvalue to tree
8813         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8814         (build_const_val): Changed the type of parameter cvalue to tree
8815         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8816         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8817         
8818         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
8819         constant 
8820
8821         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8822         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8823         (ipa_add_method): Renamed to ipa_push_func_to_list
8824         (ipa_remove_method): Renamed to ipa_pop_func_from_list
8825         (ipa_callsite_param_count): Removed.
8826         (ipa_callsite_param_count_set): Removed.
8827         (ipa_callsite_param): Removed.
8828         (ipa_callsite_callee): Removed.
8829         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8830         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8831         (ipa_method_formal_count): Removed.
8832         (ipa_method_formal_count_set): Removed.
8833         (ipa_method_get_tree): Removed.
8834         (ipa_method_tree_map_create): Removed.
8835         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8836         (ipa_create_param_decls_array): Creates the array itself
8837         (ipa_create_param_decls_array): Temporary variable info instead of 
8838         a few dereferences.
8839         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8840         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8841         (get_type): Removed.
8842         (ipa_jf_get_info_type): Removed.
8843         (ipa_node_create): Renamed to ipa_create_node_params
8844         (ipa_free): Renamed to ipa_free_all_node_params
8845         (ipa_nodes_create): Renamed to ipa_create_all_node_params
8846         (ipa_edges_create): Renamed to ipa_create_all_edge_args
8847         (ipa_edges_free): Renamed to ipa_free_all_edge_args
8848         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8849         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
8850         ipa_free_all_edge_args
8851         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8852         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8853         (ipa_create_methodlist_node): Removed.
8854         (ipa_methodlist_method): Removed.
8855         (ipa_methodlist_method_set): Removed.
8856         (ipa_methodlist_next_method): Removed.
8857         (ipa_methodlist_next_method_set): Removed.
8858         (ipa_method_is_modified): Removed.
8859         (ipa_method_modify_create): Removed.
8860         (ipa_method_modify_init): Temporary variable info instead of a few 
8861         dereferences.
8862         (ipa_detect_param_modifications): Temporary variable info instead of 
8863         a few dereferences.
8864         (ipa_compute_jump_functions): Temporary variable info instead of 
8865         a few dereferences.
8866         (ipa_method_modify_set): Removed.
8867         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8868         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
8869         than craph_node as the first parameter.
8870         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8871         (ipa_method_modify_init): Removed.
8872         (ipa_compute_jump_functions): Added a temp variable instead of 
8873         repeatadly dereferencing the cgraph_edge.aux pointer
8874         (ipa_callsite_param_set_type): Removed.
8875         (ipa_compute_jump_functions): i renamed to index and moved to 
8876         an inner block
8877         (ipa_callsite_param_set_info_type_formal): Removed.
8878         (ipa_callsite_param_set_info_type): Removed.
8879         (ipa_callsite_param_map_create): Removed.
8880         (ipa_callsite_tree): Removed.
8881         (ipa_callsite_caller): Removed.
8882         (ipa_pop_func_from_list): return_method removed to return_func
8883
8884         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8885         prefixed all values with IPA_. Changed all users.
8886         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
8887         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
8888         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
8889         (union parameter_info): Renamed to jump_func_value.
8890         (union jump_func_value): Renamed value to constant
8891         (struct ipa_jump_func): Renamed info_type to value
8892         (struct ipa_node): Renamed to ipa_node_params
8893         (struct ipa_node_params): Renamed ipa_arg_num to param_count
8894         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8895         (struct ipa_node_params): Renamed ipa_mod to modified_flags
8896         (struct ipa_edge): Renamed to ipa_edge_args
8897         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8898         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8899         (struct ipa_methodlist): Renamed to ipa_func_list
8900         (struct ipa_func_list): method_p renamed to node, next_method
8901         renamed to next
8902         (ipa_methodlist_p): Removed, switched all users to struct pointer
8903         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8904
8905 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
8906
8907         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8908         (rs6000_emit_epilogue): Use backchain to restore only when we
8909         have a large frame.  Make use of frame pointer to restore if we
8910         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8911
8912 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
8913
8914         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8915         Add mode to zero_extract.
8916         (sign bit tests peepholes): (Ditto.).
8917
8918 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8919
8920         * config/i386/i386.c (ix86_builtins): Replace Prescott New
8921         Instructions in comments with SSE3.
8922         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
8923         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8924         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8925         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8926         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8927         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8928         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8929         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8930         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8931         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8932         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8933         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8934         (bdesc_sse_args): Renamed to ...
8935         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8936         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8937         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8938         IX86_BUILTIN_FABSQ.
8939         (bdesc_1arg): Moved to ...
8940         (bdesc_args): Here.
8941         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
8942         Instructions in comments with SSE3.
8943         (ix86_expand_sse_operands_builtin): Renamed to ...
8944         (ix86_expand_args_builtin): This.  Updated.
8945         (ix86_expand_unop1_builtin): Update comments.
8946         (ix86_expand_builtin): Updated.
8947
8948 2008-04-29  Richard Guenther  <rguenther@suse.de>
8949
8950         PR tree-optimization/36078
8951         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8952         Update virtual SSA form after cleaning up the CFG.
8953
8954 2008-04-29  Richard Guenther  <rguenther@suse.de>
8955
8956         PR middle-end/15255
8957         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8958
8959 2008-04-29  Richard Guenther  <rguenther@suse.de>
8960
8961         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8962         (compute_may_aliases): Do not call finalize_ref_all_pointers.
8963         (compute_flow_insensitive_aliasing): Do not treat
8964         PTR_IS_REF_ALL pointers special.
8965         (get_smt_for): Likewise.
8966         (may_alias_p): Re-structure.
8967         (is_escape_site): A ref-all pointer conversion is not an escape site.
8968         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8969         PTR_IS_REF_ALL pointers special.
8970         * tree-ssa-structalias.h (struct alias_info): Remove
8971         ref_all_symbol_mem_tag field.
8972         (PTR_IS_REF_ALL): Remove.
8973
8974 2008-04-29  Richard Guenther  <rguenther@suse.de>
8975
8976         PR middle-end/36077
8977         * fold-const.c (extract_muldiv_1): In combining division constants
8978         make sure to never overflow.
8979
8980 2008-04-29  Nick Clifton  <nickc@redhat.com>
8981
8982         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8983
8984 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8985
8986         PR bootstrap/35169
8987         * optc-gen.awk: Work around HP-UX/IA awk bug.
8988
8989 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
8990
8991         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8992         2008-04-25 commit.
8993
8994 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8995
8996         PR target/36073
8997         * config/i386/i386.md
8998         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8999         Change operand 1 predicate to nonimmediate_operand.
9000
9001 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
9002
9003         PR debug/36060
9004         * dwarf2out.c (struct die_struct): Mark as chain_circular through
9005         die_sub field.
9006         * gengtype.c (walk_type, write_func_for_structure): Handle
9007         chain_circular.
9008         * doc/gty.texi: Document chain_circular.
9009
9010 2008-04-28  Richard Guenther  <rguenther@suse.de>
9011
9012         PR tree-optimization/36066
9013         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9014         SCEV and loop.
9015
9016 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9017
9018         PR target/36064
9019         * config/i386/i386.md
9020         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9021         Use match_scratch instead of match_operand for operands 3 and 4.
9022
9023 2008-04-27  Richard Guenther  <rguenther@suse.de>
9024
9025         PR tree-optimization/18754
9026         PR tree-optimization/34223
9027         * tree-pass.h (pass_complete_unrolli): Declare.
9028         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9029         loop size before and after unconditionally of UL_NO_GROWTH in effect.
9030         Rewrite loop into loop closed SSA form if it is not already.
9031         (tree_unroll_loops_completely): Re-structure to iterate over
9032         innermost loops with intermediate CFG cleanups.
9033         Unroll outermost loops only if requested or the code does not grow
9034         doing so.
9035         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9036         loops are available.
9037         (tree_vectorize): Instead do so here.
9038         (tree_complete_unroll): Also unroll outermost loops.
9039         (tree_complete_unroll_inner): New function.
9040         (gate_tree_complete_unroll_inner): Likewise.
9041         (pass_complete_unrolli): New pass.
9042         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9043         uses outside of the loop.
9044         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9045         form if it is available.  
9046         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9047         * passes.c (init_optimization_passes): Schedule complete inner
9048         loop unrolling pass before the first CCP pass after final inlining.
9049
9050 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
9051
9052         * targhooks.h (default_emutls_var_fields,
9053         default_emutls_var_init): Declare.
9054         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9055         * target.h (struct gcc_target): Add struct emutls member.
9056         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9057         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9058         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9059         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9060         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9061         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9062         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9063         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9064         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9065         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9066         emit debug information.
9067         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9068         * varasm.c: Include targhooks.h.
9069         (emutls_object_section, emutls_tmpl_section): New.
9070         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9071         (EMUTLS_SEPARATOR): New.
9072         (prefix_name): New.
9073         (get_emutls_object_name): New.
9074         (default_emutls_var_fields): New, broken out of ...
9075         (get_emutls_object_type): ... here.  Adjust to use target hooks.
9076         (get_emutls_init_templ_addr): Adjust to use target hooks.
9077         (emutls_decl): Adjust to use target hooks.
9078         (emutls_finish): Likewise.
9079         (default_emutls_var_init): New, broken out of ...
9080         (assemble_variable): ... here.  Adjust to use target hooks.
9081         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9082         SECCAT_EMUTLS_TMPL.
9083         * c-common.c (handle_section_attribute): Prevent overriding
9084         sections for emulated tls with special sections.
9085         * config/i386/i386.c (x86_64_elf_select_section): Add
9086         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9087         (x86_64_elf_unique_section): Likewise.
9088         * config/vxworks.c: Include tree.h.
9089         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9090         (vxworks_override_options): Set TLS scheme.
9091         * doc/tm.texi (Emulated TLS): New node.
9092
9093 2008-04-26  Simon Baldwin <simonb@google.com>
9094
9095         PR c/35652
9096         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9097         with propagated string constants.
9098
9099 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
9100
9101         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9102         constraint for operand 2 when operand 0 is memory operand.
9103         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9104         operand 0 is memory operand.
9105         (fix_trunc<mode>_i387_with_temp): Ditto.
9106         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9107         operand 2 when operand 1 is memory operand.
9108         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9109         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9110         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9111         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9112         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9113         operands 2,3 and 4 when operand 1 is memory operand.
9114         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9115         is memory operand.
9116         (fistdi2_floor_with_temp): Ditto.
9117         (fist<mode>2_floor_with_temp): Ditto.
9118         (fistdi2_ceil_with_temp): Ditto.
9119         (fist<mode>2_ceil_with_temp): Ditto.
9120         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9121
9122 2008-04-26  David Daney  <ddaney@avtrex.com>
9123
9124         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9125         unspec_volitile.
9126         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9127         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9128         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9129         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9130         (compare_and_swap_12): New insn.
9131         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9132         * config/mips/mips.c (mips_force_binary): New function.
9133         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9134         (mips_expand_compare_and_swap_12): New function.
9135         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9136
9137 2008-04-25  Jan Hubicka  <jh@suse.cz>
9138
9139         PR testsuite/35843
9140         * cfgexpand.c (pass_expand): Turn into RTL pass.
9141         * passes.c (execute_one_pass): Do pass typechecking after execution.
9142         * tree-pass.h (pass_expand): Turn into RTL pass.
9143
9144         * function.h (struct rtl_data): Move here fields
9145         accesses_prior_frames, calls_eh_return, saves_all_registers,
9146         has_nonlocal_goto, has_asm_statement, is_thunk,
9147         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9148         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9149         arg_pointer_save_area_init from struct function; turn into bool.
9150         (struct function): Move
9151         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9152         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9153         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9154         tail_call_emit, arg_pointer_save_area_init
9155         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9156         (current_function_returns_struct, current_function_returns_pcc_struct,
9157         current_function_calls_setjmp, current_function_calls_alloca,
9158         current_function_accesses_prior_frames,
9159         current_function_calls_eh_return, current_function_is_thunk,
9160         current_function_stdarg, current_function_profile,
9161         current_function_limit_stack, current_function_uses_pic_offset_table,
9162         current_function_uses_const_pool, current_function_has_nonlocal_label,
9163         current_function_saves_all_registers,
9164         current_function_has_nonlocal_goto,
9165         current_function_has_asm_statement): Remove accesor macros.
9166         * ra-conflict.c (global_conflicts): Update.
9167         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9168         (suitable_for_tail_call_opt_p): Update.
9169         * builtins.c (expand_builtin_return_addr): Update.
9170         (expand_builtin_setjmp_setup): Update.
9171         (expand_builtin_nonlocal_goto): Update.
9172         * final.c (final_start_function): Update.
9173         (profile_function): Update.
9174         (leaf_function_p): Update.
9175         (only_leaf_regs_used): Update.
9176         * df-scan.c (df_get_exit_block_use_set): Update.
9177         * dojump.c (clear_pending_stack_adjust): Update.
9178         * tree-stdarg.c (gate_optimize_stdarg): Update.
9179         * gimple-low.c (lower_function_body): Update.
9180         * global.c (compute_regsets): Update.
9181         (global_alloc): Update.
9182         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9183         * expr.c (expand_assignment): Update.
9184         * dse.c (dse_step0): Update.
9185         (dse_step1): Update.
9186         * c-decl.c (store_parm_decls): Update.
9187         * local-alloc.c (combine_regs): Update.
9188         (find_free_reg): Update.
9189         * function.c (assign_parms_augmented_arg_list): Update.
9190         (assign_parm_find_data_types): Update.
9191         (assign_parms): Update.
9192         (allocate_struct_function): Update.
9193         (expand_function_start): Update.
9194         (expand_function_end): Update.
9195         (get_arg_pointer_save_area): Update.
9196         (thread_prologue_and_epilogue_insns): Update.
9197         (rest_of_match_asm_constraints): Update.
9198         * stor-layout.c (variable_size): Update.
9199         * gcse.c (gcse_main): Update.
9200         (bypass_jumps): Update.
9201         * gimplify.c (gimplify_function_tree): Update.
9202         * calls.c (emit_call_1): Update.
9203         (expand_call): Update.
9204         * bt-load.c (compute_defs_uses_and_gen): Update.
9205         * except.c (sjlj_assign_call_site_values): Update.
9206         (sjlj_emit_function_enter): Update.
9207         (can_throw_external): Update.
9208         (set_nothrow_function_flags): Update.
9209         (expand_builtin_unwind_init): Update.
9210         (expand_eh_return): Update.
9211         (convert_to_eh_region_ranges): Update.
9212         (output_function_exception_table): Update.
9213         * emit-rtl.c (gen_tmp_stack_mem): Update.
9214         * cfgexpand.c (expand_used_vars): Update.
9215         (tree_expand_cfg): Update.
9216         * cfgcleanup.c (rest_of_handle_jump): Update.
9217         * explow.c (allocate_dynamic_stack_space): Update.
9218         * varasm.c (assemble_start_function): Update.
9219         (force_const_mem): Update.
9220         (mark_constant_pool): Update.
9221         * tree-optimize.c (tree_rest_of_compilation): Update.
9222         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9223         * tree-cfg.c (notice_special_calls): Update.
9224         (is_ctrl_altering_stmt): Update.
9225         (tree_can_make_abnormal_goto): Update.
9226         (tree_purge_dead_abnormal_call_edges): Update.
9227         * config/alpha/predicates.md: Update.
9228         * config/alpha/alpha.c (alpha_sa_mask): Update.
9229         (alpha_sa_size): Update.
9230         (alpha_does_function_need_gp): Update.
9231         (alpha_expand_prologue): Update.
9232         (alpha_start_function): Update.
9233         (alpha_output_function_end_prologue): Update.
9234         (alpha_expand_epilogue): Update.
9235         * config/frv/frv.c (frv_stack_info): Update.
9236         (frv_expand_epilogue): Update.
9237         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9238         (s390_register_info): Update.
9239         (s390_frame_info): Update.
9240         (s390_init_frame_layout): Update.
9241         (s390_can_eliminate): Update.
9242         (save_gprs): Update.
9243         * config/spu/spu.c (spu_split_immediate): Update.
9244         (need_to_save_reg): Update.
9245         (spu_expand_prologue): Update.
9246         (spu_expand_epilogue): Update.
9247         * config/sparc/sparc.md: Update.
9248         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9249         (sparc_tls_got): Update.
9250         (legitimize_pic_address): Update.
9251         (sparc_emit_call_insn): Update.
9252         (sparc_expand_prologue): Update.
9253         (output_return): Update.
9254         (print_operand): Update.
9255         (sparc_function_ok_for_sibcall): Update.
9256         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9257         * config/m32r/m32r.md: Update.
9258         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9259         (m32r_compute_frame_size): Update.
9260         (m32r_expand_prologue): Update.
9261         (m32r_expand_epilogue): Update.
9262         (m32r_legitimize_pic_address): Update.
9263         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9264         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9265         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9266         (gen_push): Update.
9267         (ix86_save_reg): Update.
9268         (ix86_compute_frame_layout): Update.
9269         (ix86_expand_prologue): Update.
9270         (ix86_expand_epilogue): Update.
9271         * config/sh/sh.c (output_stack_adjust): Update.
9272         (calc_live_regs): Update.
9273         (sh5_schedule_saves): Update.
9274         (sh_expand_prologue): Update.
9275         (sh_expand_epilogue): Update.
9276         (sh_setup_incoming_varargs): Update.
9277         (sh_allocate_initial_value): Update.
9278         (sh_get_pr_initial_val): Update.
9279         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9280         * config/sh/sh.md (label:): Update.
9281         * config/avr/avr.c (out_movhi_mr_r): Update.
9282         * config/crx/crx.h (enum): Update.
9283         * config/xtensa/xtensa.h (along): Update.
9284         * config/stormy16/stormy16.c Update.
9285         (xstormy16_compute_stack_layout): Update.
9286         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9287         (fr30_expand_prologue): Update.
9288         * config/cris/cris.c (cris_conditional_register_usage): Update.
9289         (cris_reg_saved_in_regsave_area): Update.
9290         (cris_initial_frame_pointer_offset): Update.
9291         (cris_simple_epilogue): Update.
9292         (cris_expand_prologue): Update.
9293         (cris_expand_epilogue): Update.
9294         (cris_expand_pic_call_address): Update.
9295         (cris_asm_output_symbol_ref): Update.
9296         (cris_asm_output_label_ref): Update.
9297         * config/cris/cris.md Update.
9298         * config/iq2000/iq2000.c (compute_frame_size): Update.
9299         (iq2000_expand_epilogue): Update.
9300         * config/mt/mt.h (save_direction): Update.
9301         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9302         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9303         (ia64_secondary_reload_class): Update.
9304         * config/m68k/m68k.c (m68k_save_reg): Update.
9305         (m68k_expand_prologue): Update.
9306         (m68k_expand_epilogue): Update.
9307         (legitimize_pic_address): Update.
9308         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9309         (first_reg_to_save): Update.
9310         (first_altivec_reg_to_save): Update.
9311         (compute_vrsave_mask): Update.
9312         (compute_save_world_info): Update.
9313         (rs6000_stack_info): Update.
9314         (spe_func_has_64bit_regs_p): Update.
9315         (rs6000_ra_ever_killed): Update.
9316         (rs6000_emit_eh_reg_restore): Update.
9317         (rs6000_emit_allocate_stack): Update.
9318         (rs6000_emit_prologue): Update.
9319         (rs6000_emit_epilogue): Update.
9320         (rs6000_output_function_epilogue): Update.
9321         (output_profile_hook): Update.
9322         (rs6000_elf_declare_function_name): Update.
9323         * config/rs6000/rs6000.h (rs6000_args): Update.
9324         * config/rs6000/rs6000.md: Update.
9325         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9326         * config/arc/arc.c (arc_output_function_epilogue): Update.
9327         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9328         * config/darwin.c (machopic_function_base_name): Update.
9329         * config/score/score3.c (score3_compute_frame_size): Update.
9330         (rpush): Update.
9331         (rpop): Update.
9332         (score3_epilogue): Update.
9333         * config/score/score7.c (score7_compute_frame_size): Update.
9334         (score7_prologue): Update.
9335         (score7_epilogue): Update.
9336         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9337         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9338         * config/arm/arm.c (use_return_insn): Update.
9339         (require_pic_register): Update.
9340         (arm_load_pic_register): Update.
9341         (arm_compute_save_reg0_reg12_mask): Update.
9342         (arm_compute_save_reg_mask): Update.
9343         (thumb1_compute_save_reg_mask): Update.
9344         (output_return_instruction): Update.
9345         (arm_output_function_prologue): Update.
9346         (arm_output_epilogue): Update.
9347         (arm_get_frame_offsets): Update.
9348         (arm_expand_prologue): Update.
9349         (thumb_pushpop): Update.
9350         (thumb_exit): Update.
9351         (thumb1_expand_prologue): Update.
9352         (thumb1_expand_epilogue): Update.
9353         (arm_unwind_emit): Update.
9354         (arm_output_fn_unwind): Update.
9355         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9356         * config/arm/arm.md: Update.
9357         * config/pa/pa.md: Update.
9358         * config/pa/pa.c (legitimize_pic_address): Update.
9359         (compute_frame_size): Update.
9360         (hppa_expand_prologue): Update.
9361         (hppa_expand_epilogue): Update.
9362         (borx_reg_operand): Update.
9363         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9364         (HARD_REGNO_RENAME_OK): Update.
9365         * config/mips/mips.c (mips_global_pointer): Update.
9366         (mips_save_reg_p): Update.
9367         (mips_compute_frame_info): Update.
9368         (mips_frame_pointer_required): Update.
9369         (mips_expand_prologue): Update.
9370         (mips_expand_epilogue): Update.
9371         (mips_can_use_return_insn): Update.
9372         (mips_reorg_process_insns): Update.
9373         * config/v850/v850.c (compute_register_save_size): Update.
9374         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9375         * config/mmix/mmix.c (along): Update.
9376         (mmix_expand_epilogue): Update.
9377         * config/bfin/bfin.c (legitimize_pic_address): Update.
9378         (must_save_p): Update.
9379         (stack_frame_needed_p): Update.
9380         (add_to_reg): Update.
9381         (bfin_expand_prologue): Update.
9382         * stmt.c (expand_asm_operands): Update.
9383         * reload1.c (reload): Update.
9384         (init_elim_table): Update.
9385
9386 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9387         
9388         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9389         
9390 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9391
9392         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9393         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9394         (mov<mode>): Removed.
9395         (*movv4sf_internal): Likewise.
9396         (*movv2df_internal): Likewise.
9397
9398 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9399
9400         * config.gcc (crx-*-elf): Remove deprecation.
9401
9402 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9403
9404         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9405         __gcc_deregister_frame with atexit.
9406         (deregister_frame_dtor): Remove.
9407
9408 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9409             Nathan Sidwell  <nathan@codesourcery.com>
9410
9411         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9412         (misel): Likewise.
9413         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9414         (rs6000_isel): Likewise.
9415         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9416         (rs6000_isel): New variable.
9417         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9418
9419 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9420
9421         PR c++/35758
9422         * c-common.c (handle_vector_size_attribute): Call
9423         lang_hooks.types.reconstruct_complex_type instead of
9424         reconstruct_complex_type.
9425         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9426         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9427         * langhooks.h (struct lang_hooks_for_types): Add
9428         reconstruct_complex_type hook.
9429         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9430         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9431
9432 2008-04-24  Richard Guenther  <rguenther@suse.de>
9433
9434         * c-common.h (check_builtin_function_arguments): Declare.
9435         * c-common.c (validate_nargs): New function.
9436         (check_builtin_function_arguments): Likewise.
9437         * c-typeck.c (build_function_call): Call
9438         check_builtin_function_arguments.
9439         * builtins.c (fold_builtin_classify): Remove error reporting code.
9440         (fold_builtin_unordered_cmp): Likewise.
9441         (fold_builtin_1): Likewise.
9442         (fold_builtin_n): Likewise.
9443
9444 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9445
9446         PR tree-optimization/36008
9447         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9448         the original op1, rather than delta by step.
9449
9450 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9451             Sebastian Pop  <sebastian.pop@amd.com>
9452
9453         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9454         eliminate_local_variables_stmt, eliminate_local_variables,
9455         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9456         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9457         of code delimited by two edges in the CFG.
9458         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9459         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9460         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
9461         the case of parallelisation of reductions.
9462         (expr_invariant_in_region_p): New.
9463
9464         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9465         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9466
9467 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9468             Richard Guenther  <rguenther@suse.de>
9469
9470         PR tree-optimization/36034
9471         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9472         incapable of dealing with loads with gaps.
9473
9474 2008-04-24  Rafael Espindola  <espindola@google.com>
9475
9476         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9477         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9478         vrp_evaluate_conditional.
9479         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9480         (vrp_evaluate_conditional): Split the cond argument.
9481         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9482         (simplify_stmt_for_jump_threading): Update call to
9483         vrp_evaluate_conditional.
9484
9485 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9486
9487         PR tree-optimization/35982
9488         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9489         interleaved data-refs are of the same type.
9490
9491 2008-04-24  Danny Smith  <dannysmith@users.net>
9492
9493         * c-format.c (check_format_info_main): Use strncmp rather than a
9494         magic prefix to handle multichar length specs.
9495         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9496         Don't prefix "I64" and "I32" with '\0'.
9497
9498 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9499
9500         PR target/36015
9501         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9502         in registers for -m32 only if stdarg_p (fntype).
9503
9504 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9505
9506         PR rtl-optimization/36006
9507         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9508         temp to op0 in order to avoid invalid rtx sharing.
9509
9510 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9511
9512         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9513         check TREE_INVARIANT.
9514         * tree-gimple.c (is_gimple_address): New.
9515         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9516         * tree-gimple.h (is_gimple_address): New.
9517         * tree.h (decl_address_invariant_p): New.
9518         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9519         (build_string): Likewise.
9520         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9521         (tree_invariant_p_1): Likewise.
9522         (save_expr): Use it.
9523         (tree_invariant_p): New.
9524         (skip_simple_arithmetic): Use it.
9525         (stabilize_reference_1): Use it.
9526         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9527         simplify.
9528         (build1_stat): Drop code to compute TREE_INVARIANT.
9529         (build2_stat): Drop code to compute TREE_INVARIANT.
9530         (build3_stat): Drop code to compute TREE_INVARIANT.
9531         (build4_stat): Drop code to compute TREE_INVARIANT.
9532         (build5_stat): Drop code to compute TREE_INVARIANT.
9533         (build7_stat): Drop code to compute TREE_INVARIANT.
9534         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9535         * tree.h (struct tree_base): Remove invariant_flag.
9536         (TREE_INVARIANT): Remove.
9537         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9538         (fold_builtin_expect): Check TREE_CONSTANT.
9539         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9540         * c-tree.h (c_expr_to_decl): Drop third parameter.
9541         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9542         (build_c_cast): Don't set TREE_INVARIANT.
9543         (pop_init_level): Don't set TREE_INVARIANT.
9544         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9545         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9546         TREE_CONSTANT.
9547         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9548         (gimplify_addr_expr): Adjust comment.
9549         * tree-mudflap.c (mf_build_string):
9550         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9551         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9552         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9553         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9554         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9555         * langhooks.h (struct lang_hooks): Drop third parameter from
9556         expr_to_decl.
9557
9558 2008-04-23  Richard Guenther  <rguenther@suse.de>
9559
9560         PR tree-optimization/27799
9561         PR tree-optimization/32921
9562         PR tree-optimization/32624
9563         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9564         SMTs aliases and the tag itself into the solution.
9565         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9566         merge the points-to solution back into the SMT aliases.
9567         (may_alias_p): Use alias_set_subset_of instead of
9568         aliases_conflict_p.  A pointer which points to
9569         memory with alias set zero may access any variable.
9570
9571 2008-04-23  Richard Guenther  <rguenther@suse.de>
9572
9573         * alias.c (alias_set_subset_of): Correctly handle asking
9574         if zero is a subset of an alias set with zero child.
9575         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9576         (compute_flow_insensitive_aliasing): Correctly walk all
9577         pointers.  Do not unnecessarily union sets.
9578
9579 2008-04-23  Richard Guenther  <rguenther@suse.de>
9580
9581         PR middle-end/36021
9582         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9583
9584 2008-04-22  Tomas Bily  <tbily@suse.cz>
9585
9586         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9587         unreachable case.
9588         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9589         NON_LVALUE_EXPR.
9590         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9591         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9592         * tree-inline.c (estimate_num_insns_1): Likewise.
9593         * varasm.c (const_hash_1, compare_constant, copy_constant)
9594         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9595         * emit-rtl.c (component_ref_for_mem_expr)
9596         (set_mem_attributes_minus_bitpos): Likewise.
9597         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9598         (is_aligning_offset): Likewise.
9599         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9600         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9601         * dojump.c (do_jump): Likewise.
9602         * builtins.c (get_pointer_alignment, get_memory_rtx)
9603         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9604         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9605
9606 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9607
9608         PR rtl-optimization/36017
9609         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9610         expanding the library call.
9611
9612 2008-04-22  Ian Lance Taylor  <iant@google.com>
9613
9614         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9615         than size_in_bytes.
9616
9617 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9618
9619         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9620         of LR/CTR moves for Power6.
9621
9622 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9623
9624         PR middle-end/36003
9625         * passes.c (init_optimization_passes): Remove
9626         pass_fast_rtl_byte_dce.
9627         
9628 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9629
9630         PR target/29096
9631         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9632         builtin functions to generate faster code.
9633         (_mm_cvtpu16_ps): Ditto.
9634         (_mm_cvtpi32x2_ps): Ditto.
9635
9636 2008-04-22  Nick Clifton  <nickc@redhat.com>
9637
9638         * common.opt (ftree-loop-distribution): Add Optimization
9639         attribute.
9640
9641         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9642         (frv_expand_builtin_va_start): Likewise.
9643
9644         * config/arm/arm.c (thumb_find_work_register): Fix location of
9645         argument register count.
9646
9647 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9648
9649         Support scheduling for ColdFire V1 and V3 microarchitecture.
9650         Improve scheduling of multiplication instructions.
9651
9652         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9653         (mac): New instruction attribute.
9654         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9655         (m68k_sched_mac): New variable.
9656         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9657         Handle cfv1 and cfv3.
9658         (max_insn_size): New static variable.
9659         (struct _sched_ib): New type.
9660         (sched_ib): New static variable.
9661         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9662         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9663         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9664         Update.
9665         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9666         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9667         new variables.  Update.
9668         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9669         Add modeling of cfv3 instruction buffer.  Update.
9670         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9671         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9672         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9673         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9674         a particular reservation applies to.
9675         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9676         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9677         to mul_l and mul_w.
9678         (cf_ib_*): Simplify description of instruction buffer.
9679         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9680         (cf_mem): Split into cf_mem1 and cf_mem2.
9681         (cf_v2_move_??): Rename to cfv12_alu_??.
9682         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9683         (cf_v2_mul_??): Remove reservations.
9684         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9685         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9686         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9687         appropriate place.
9688         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9689         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9690         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9691         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9692         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9693         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9694         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9695         expansions of the above reservations for instructions of sizes
9696         1, 2 and 3 words.
9697
9698 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9699
9700         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9701
9702 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9703
9704         * coverage.c: Include tree-pass.h.
9705         (coverage_counter_alloc): Print da_file_name to the dump file.
9706
9707 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9708
9709         * sbitmap.c (sbitmap_range_empty_p): New function.
9710         * sbitmap.h (sbitmap_range_empty_p): New function.
9711         * bitmap.h: Now includes obstack.h.
9712
9713 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9714             Kenneth Zadeck  <zadeck@naturalbridge.com>
9715
9716         * dbgcnt.def (ra_byte_scan): Added.
9717         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9718         when the last hit happens for a counter.  
9719         * timevar.def (TV_DF_BYTE_LR): New variable.
9720         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9721         * passes.c (pass_fast_rtl_byte_dce): New pass.
9722         * fwprop.c (update_df): Added mode to call df_ref_create.
9723         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9724         DF_REF_EXTRACT_OFFSET.
9725         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
9726         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9727         (df_mm): New enum.
9728         (df_ref_extract): Added mode field.
9729         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9730         DF_REF_EXTRACT_OFFSET.
9731         (DF_REF_EXTRACT_MODE): New macro.
9732         (df_byte_lr_bb_info): New structure.
9733         (df_print_byte_regset, df_compute_accessed_bytes, 
9734         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9735         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9736         df_byte_lr_simulate_uses,
9737         df_byte_lr_simulate_artificial_refs_at_top,
9738         df_byte_lr_simulate_artificial_refs_at_end,
9739         df_compute_accessed_bytes): New function.
9740         (df_ref_create): Add parameter.
9741         (df_byte_lr_get_bb_info): New inline function.
9742         * df-scan.c (df_ref_record, df_uses_record,
9743         df_ref_create_structure): Added mode parameter.
9744         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
9745         df_defs_record, df_uses_record, df_get_conditional_uses,
9746         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
9747         df_entry_block_defs_collect, df_exit_block_uses_collect):
9748         Added mode parameter to calls to df_ref_record, df_uses_record,
9749         df_ref_create_structure.
9750         (df_ref_equal_p, df_ref_compare): Added test for modes.
9751         (df_ref_create_structure): Added code to set mode.  Renamed
9752         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9753         DF_REF_EXTRACT_OFFSET.
9754         * df-core.c (df_print_byte_regset): New function.
9755         * df-byte-scan.c: New file.
9756         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9757         calls to BITMAP_FREE.  
9758         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9759         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9760         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
9761         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
9762         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9763         df_byte_lr_local_compute, df_byte_lr_init,
9764         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
9765         df_byte_lr_transfer_function, df_byte_lr_free, 
9766         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9767         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
9768         df_byte_lr_simulate_uses,
9769         df_byte_lr_simulate_artificial_refs_at_top,
9770         df_byte_lr_simulate_artificial_refs_at_end): New function.
9771         * dce.c (byte_dce_process_block): New function.
9772         (dce_process_block): au is now passed in rather than computed
9773         locally.  Changed loops that look at artificial defs to not look
9774         for conditional or partial ones, because there never are any.  
9775         (fast_dce): Now is able to drive byte_dce_process_block or 
9776         dce_process_block depending on the kind of dce being done.
9777         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9778         (rest_of_handle_fast_byte_dce): New function.
9779         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9780         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9781
9782 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9783
9784         PR fortran/35019
9785         * gcc.h: Added fortran options that take arguments to
9786         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9787         macros.
9788
9789 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9790
9791         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9792         scalarization if on the LHS and not a full access.
9793
9794 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9795
9796         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9797
9798 2008-04-18  Rafael Espindola  <espindola@google.com>
9799
9800         * tree-vrp.c (find_case_label_index): Fix the binary search.
9801         (find_case_label_range): New.
9802         (vrp_visit_switch_stmt): Use find_case_label_range.
9803         (simplify_switch_using_ranges): Use find_case_label_range.
9804
9805 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9806
9807         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9808         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9809
9810 2008-04-18  Tom Tromey  <tromey@redhat.com>
9811
9812         PR libcpp/15500:
9813         * doc/cpp.texi (Implementation-defined behavior): Mention
9814         -finput-charset.
9815
9816 2008-04-18  Ian Lance Taylor  <iant@google.com>
9817
9818         * fold-const.c (pointer_may_wrap_p): New static function.
9819         (fold_comparison): Add another test for pointer overflow.  Use
9820         pointer_may_wrap_p to disable some false positives.
9821
9822 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
9823           
9824         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9825         (fname_as_string): Match updated cpp_interpret_string prototype.
9826         (fix_string_type): Support char16_t* and char32_t*.
9827         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9828         derivative) nodes.  Register as builtin if C++0x.
9829         (c_parse_error): Support CPP_CHAR{16,32}.
9830         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
9831         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9832         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9833         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9834         CTI_CHAR32_ARRAY_TYPE>: New elements.
9835         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9836         char32_type_node, signed_char32_type_node, char16_array_type_node,
9837         char32_array_type_node): New defines.
9838         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9839         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9840         (lex_string): Support CPP_STRING{16,32}, match updated
9841         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9842         (lex_charconst): Support CPP_CHAR{16,32}.
9843         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9844         and CPP_STRING{16,32}.
9845
9846 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
9847
9848         PR bootstrap/35457
9849         * aclocal.m4: Regenerate.
9850         * configure: Regenerate.
9851
9852 2008-04-18  Jan Hubicka  <jh@suse.cz>
9853
9854         * except.c (dw2_size_of_call_site_table,
9855         sjlj_size_of_call_site_table): Use vector API for call_site_record.
9856
9857         * cgraphbuild.c (build_cgraph_edges): Update.
9858         * tree-pass.h: Update comment.
9859         * final.c (leaf_function_p): Update.
9860         (leaf_renumber_regs): Update.
9861         (rest_of_clean_state): Update.
9862         * omp-low.c (expand_omp_parallel): Update.
9863         * ipa-reference.c (analyze_function): Update.
9864         * reorg.c (find_end_label): Update.
9865         (optimize_skip): Update.
9866         (fill_simple_delay_slots): Update.
9867         (fill_simple_delay_slots): Update.
9868         (make_return_insns): Update.
9869         (dbr_schedule): Update.
9870         * gimple-low.c (record_vars_into): Update.
9871         * cfgbuild.c (make_edges): Update.
9872         * function.c (assign_stack_local): Update.
9873         (assign_parm_adjust_stack_rtl): Update.
9874         (locate_and_pad_parm): Update.
9875         (allocate_struct_function): Do not initialize stack_alignment_needed
9876         and preferred_stack_boundary here.
9877         (stack_protect_prologue): Update.
9878         (stack_protect_epilogue): Update.
9879         (expand_function_start): Initialize stack_alignment_needed,
9880         preferred_stack_boundary and max_jumptable_ents.
9881         (expand_function_end): Update.
9882         (free_after_compilation): Do not NULLify epilogue_delay_list.
9883         * function.h (struct rtl_data): Add stack_protect_guard,
9884         stack_alignment_needed,
9885         preferred_stack_boundary, epilogue_delay_list.
9886         (struct function): Remove value_histograms, stack_alignment_needed,
9887         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9888         last_label_uid,
9889         unexpanded_var_list, stack_protect_guard.
9890         (current_function_epilogue_delay_list): Remove.
9891         * ipa-type-escape.c (analyze_function): Update.
9892         * gimplify.c (pop_gimplify_context): Update comment.
9893         * calls.c (expand_call): Update.
9894         (emit_library_call_value_1): Update.
9895         * except.c (set_nothrow_function_flags): Update.
9896         * cfgexpand.c (get_decl_align_unit): Update.
9897         (create_stack_guard): Update.
9898         (estimated_stack_frame_size): Update.
9899         (expand_used_vars): Update.
9900         (tree_expand_cfg): Free histogram earliers, init expansion variables.
9901         * explow.c (allocate_dynamic_stack_space): Update.
9902         * tree-ssa-live.c (remove_unused_locals): Update.
9903         * varasm.c (mark_constant_pool): Update.
9904         * tree-inline.c (remap_decls): Update.
9905         (initialize_cfun): Update.
9906         (declare_return_variable): Update.
9907         (inline_forbidden_p): Update.
9908         (expand_call_inline): Update.
9909         (declare_inline_vars): Update.
9910         (tree_function_versioning): Update.
9911         * tree-flow.h (value_histograms): New.
9912         (VALUE_HISTOGRAMS): New macro.
9913         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9914         last_label_uid.
9915         * tree-cfg.c (set_bb_for_stmt): Update.
9916         (replace_by_duplicate_decl): Update.
9917         (move_block_to_fn): Update.
9918         (new_label_mapper): Update.
9919         (dump_function_to_file): Update.
9920         * ipa-struct-reorg.c (build_data_structure): Update.
9921         * cfgrtl.c (print_rtl_with_bb): Update.
9922         * reload1.c (reload): Update.
9923         (reload): Update.
9924         * config/i386/i386.c (setup_incoming_varargs_64,
9925         ix86_compute_frame_layout): Update.
9926         * config/arc/arc.c (arc_output_function_epilogue): Update.
9927
9928 2008-04-18  Marius Strobl <marius@FreeBSD.org>
9929
9930         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9931         for FreeBSD as well.
9932         * gthr-posix95.h: Likewise.
9933
9934 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
9935
9936         PR rtl-optimization/35838
9937         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9938         out the byte offset of the first subreg.
9939
9940 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
9941
9942         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9943         to split_ti instead of three separate calls with single member arrays.
9944         (subti3 splitter): Ditto.
9945         (adddi3 splitter): Ditto with split_di.
9946         (subdi3 splitter): Ditto.
9947         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9948         two separate calls with single member arrays.  Swap match_dup
9949         operands 1 and 2 to better fit into the array.
9950         (negdi2 splitter): Ditto with split_di.
9951         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
9952         two separate calls with single member arrays.  Swap match_dup operands
9953         6 and 7 to better fit into the array.
9954
9955 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9956
9957         * config/i386/i386.c (sse_builtin_type): New.
9958         (bdesc_sse_args): Likewise.
9959         (bdesc_sse_3arg): Removed.
9960         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9961         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9962         IX86_BUILTIN_ROUNDPS.
9963         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
9964         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
9965         IX86_BUILTIN_ROUNDPS.
9966         (ix86_expand_sse_4_operands_builtin): Removed.
9967         (ix86_expand_sse_operands_builtin): New.
9968         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9969         and CODE_FOR_sse4_1_roundps.
9970         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9971         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
9972
9973 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
9974
9975         PR target/35907
9976         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9977         regs before frame pop when needed.  If use_backchain_to_restore_sp
9978         then load backchain into a temp reg to restore vr and vrsave.  Add
9979         code to restore vr after frame pop if possible.
9980
9981 2008-04-17  Richard Guenther  <rguenther@suse.de>
9982
9983         * tree-vn.c (expressions_equal_p): Do not check type
9984         equality or compatibility before calling operand_equal_p.
9985         * fold-const.c (operand_equal_p): Check equivalence of
9986         integer constants before bailing out due to signedness or
9987         precision differences.
9988         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9989         spurious differences in type qualification.  Ignore types
9990         for COMPONENT_REFs at all.
9991
9992 2008-04-17  Christian Bruel  <christian.bruel@st.com>
9993
9994         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9995         msw_skip comparison.
9996         
9997 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
9998
9999         PR c/35739
10000         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10001         reg type.
10002
10003         PR tree-optimization/35899
10004         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10005         rather than TREE_OPERAND.
10006
10007 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
10008
10009         PR target/35944
10010         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10011         temporary registers.  Change operand predicate to general_operand.
10012         (remainderxf3): Ditto.
10013
10014 2008-04-16  Richard Guenther  <rguenther@suse.de>
10015
10016         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10017         * tree-affine.c (aff_combination_expand): Look through some
10018         conversions.
10019
10020 2008-04-15  Doug Kwan  <dougkwan@google.com>
10021
10022         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10023         for hex printing.
10024         * tree-pretty-print.c (dump_generic_node): Ditto.
10025         * final.c (output_addr_const): Ditto.
10026         * dwarf2out.c (output_cfi): Ditto.
10027         * c-pretty-print.c (pp_c_integer_constant): Ditto.
10028         * print-rtl.c (print_rtx): Ditto.
10029         * print-tree.c (print_node_brief, print_node): Ditto.
10030         * c-common.c (match_case_to_enum_1): Ditto.
10031         * sched-vis.c (print_value): Ditto.
10032         * config/i386/i386.c (print_operand): Cast to long unsigned int
10033         for hex printing.
10034
10035 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
10036         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
10037         MS Windows VirtualProtect function.
10038
10039 2008-04-15  Jan Hubicka  <jh@suse.cz>
10040
10041         * gengtype.c (write_root): Param_is argument is OK.
10042         * expr.c (expand_expr_real_1): Update call of get_exception_*.
10043         * function.h: Include varray.h
10044         (rtl_eh): New stucture based on except.c one.
10045         (call_site_record): New forward declaration and vector type.
10046         * calls.c (emit_call_1): Do not call
10047         note_current_region_may_contain_throw.
10048         * except.c (eh_status): Remove cur_region, try_region since they are
10049         unused.
10050         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10051         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10052         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
10053         Remove call_site_data_used, call_site_data_size.
10054         Turn call_site_record into vector in function.h.
10055         (note_current_region_may_contain_throw): Remove.
10056         (get_exception_pointer, get_exception_filter): Do not take struct
10057         function argument; update.
10058         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10059         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10060         build_post_landing_pads, dw2_build_landing_pads,
10061         sjlj_assign_call_site_values, sjlj_mark_call_sites,
10062         sjlj_emit_function_enter, sjlj_emit_function_enter, 
10063         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10064         sjlj_build_landing_pads, finish_eh_generation,
10065         remove_exception_handler_label, remove_eh_handler,
10066         maybe_remove_eh_handler, add_reachable_handler,
10067         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10068         add_action_record, collect_one_action_chain, add_call_site,
10069         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10070         sjlj_output_call_site_table, output_function_exception_table,
10071         * except.h (note_current_region_may_contain_throw): Remove
10072         (get_exception_pointer, get_exception_filter): Do not take struct
10073         function argument.
10074         * Makefile.in (GTFILES): Put varargs before struct function.
10075
10076 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10077
10078         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10079         punt for STRING_CST.
10080         (get_constraint_for): Deal with STRING_CST here instead.
10081
10082 2008-04-15  Richard Guenther  <rguenther@suse.de>
10083
10084         * tree-ssa-propagate.c (substitute_and_fold): Substitute
10085         statements in a basic-block with a backward walk.  Do not
10086         substitute into dead statements but instead remove those.
10087
10088 2008-04-15  Richard Guenther  <rguenther@suse.de>
10089
10090         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10091         to zero, thus disable creation of SFTs.
10092
10093 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10094
10095         * tree-predcom.c (suitable_reference_p): Return false if the
10096         reference can throw.
10097
10098 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
10099
10100         PR c/35751
10101         * c-decl.c (finish_decl): If extern or static var has variable
10102         size, set TREE_TYPE (decl) to error_mark_node.
10103
10104 2008-04-15  Rafael Espindola  <espindola@google.com>
10105
10106         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10107         variable arg1.
10108
10109 2008-04-15  Richard Guenther  <rguenther@suse.de>
10110
10111         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10112         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10113         (visit_reference_op_load): Do walk vuse-vdef chains on
10114         vn_reference_lookup.
10115         (visit_reference_op_store): But do not here.
10116         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10117         vn_reference_lookup.
10118         (vn_lookup_with_vuses): But do so here.
10119
10120 2008-04-14  Ian Lance Taylor  <iant@google.com>
10121
10122         * fold-const.c (fold_overflow_warning): Remove assertion.
10123
10124 2008-04-15  Ben Elliston  <bje@au.ibm.com>
10125
10126         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10127         temp1 local variables.
10128
10129 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
10130
10131         PR target/35661
10132         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10133         ".text.unlikely" section as executable.
10134
10135 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
10136
10137         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10138         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10139         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10140         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10141         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10142         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10143         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10144
10145 2008-04-14  Ian Lance Taylor  <iant@google.com>
10146
10147         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10148         * fold-const.c (fold_comparison): If appropriate, test
10149         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10150         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10151         reassociating a pointer type.
10152         * doc/invoke.texi (Optimize Options): Document that
10153         -fstrict-overflow applies to pointer wraparound.
10154
10155 2008-04-13  Jan Hubicka  <jh@suse.cz>
10156
10157         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10158
10159 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10160
10161         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10162         we are going to "save the world".
10163
10164 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10165
10166         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10167         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10168         operand 0 constraint, not "=".
10169
10170 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10171
10172         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10173
10174 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10175
10176         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10177         of size of positions_needed * CHAR_BIT.
10178
10179 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10180
10181         PR middle-end/35897
10182         * dse.c (store_info): Change positions_needed to unsigned
10183         HOST_WIDE_INT.
10184         (lowpart_bitmask): New.
10185         (record_store): Cast to unsigned HOST_WIDE_INT for
10186         positions_needed.  Assert width <= size of positions_needed *
10187         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10188         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10189         lowpart_bitmask to set mask.
10190
10191 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10192
10193         * config/bfin/constraints.md: New file.
10194         * config/bfin/bfin.md: Include it.
10195         (adddi3): Use satisfies_constraint functions instead of the old macros.
10196         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10197         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10198         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10199         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10200         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10201         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10202         EXTRA_CONSTRAINT): Delete.
10203         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10204         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10205         of the old macros.
10206         * config/bfin/bfin.c: Include "tm-constrs.h".
10207         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10208         Use satisfies_constraint functions instead of the old macros.
10209         * doc/md.texi (Blackfin Constraints): Update file name reference.
10210
10211 2008-04-11  Richard Guenther  <rguenther@suse.de>
10212
10213         PR tree-optimization/35869
10214         * tree-vrp.c (execute_vrp): Move switch statement update after
10215         jump threading.  Schedule another cfg cleanup run.
10216
10217 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10218
10219         PR c/35744
10220         * attribs.c (decl_attributes): Return early on errorneous node.
10221
10222 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10223
10224         * tree.h (struct tree_base): Added a new flag default_def_flag.
10225         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10226
10227 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10228
10229         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10230
10231 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10232
10233         PR target/35768
10234         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10235         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10236         (icacheflush): Likewise.
10237         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10238         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10239
10240 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10241
10242         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10243
10244 2008-04-10  Rafael Espindola  <espindola@google.com>
10245
10246         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10247         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10248         (extract_range_from_expr): The same.
10249
10250 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10251
10252         * config/mips/mips.md (GPR2): New mode iterator.
10253         (seq): Add comment.
10254         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10255         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10256         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10257         Rewrite these to take two modes, the mode of comparison and the
10258         mode of the destination.
10259         * config/mips/mips.c (mips_expand_scc): Instead of having
10260         paradoxical subreg as destination, expand "narrowing" scc if mode
10261         of comparison is SI and target is requested in DI mode.
10262         (mips_emit_int_order_test): Update comment.  Make mode of
10263         comparison match CMP0 rather than TARGET.  When creating inverse
10264         target use mode of TARGET.
10265
10266 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10267
10268         * gcov-dump.c (tag_summary): Only print summaries for the first
10269         GCOV_COUNTERS_SUMMABLE counters.
10270
10271 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10272
10273         * config/i386/i386.md (absneg): New code iterator.
10274         (absnegprefix): New code attribute.
10275         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10276         patterns using absneg code iterator.
10277         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10278         using absneg code iterator.
10279         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10280         *neg<mode>2 patterns using absneg code iterator.
10281         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10282         *negextendsfdf2 patterns using absneg code iterator.
10283         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10284         *negextendsfxf2 patterns using absneg code iterator.
10285         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10286         *negextendsfdf2 patterns using absneg code iterator.
10287         * config/i386/sse.md (<code><mode>2): Macroize expander from
10288         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
10289
10290 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10291
10292         * config/s390/s390.h: Remove the remains of the recent search
10293         & replace action of current_function_outgoing_args_size.
10294
10295 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10296
10297         PR tree-optimization/35821
10298         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10299         NEW_STMT_LIST is not NULL.
10300
10301 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10302
10303         PR libstdc++/35597
10304         * toplev.c (process_options): Remove -ffunction-sections debugging
10305         warning.
10306
10307 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10308
10309         PR middle-end/PR28690
10310         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10311         than gen_rtx_fmt_ee to perform more canonicalizations.
10312
10313 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10314
10315         PR driver/35665
10316         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10317
10318 2008-04-09  Richard Guenther  <rguenther@suse.de>
10319
10320         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10321         (dump_function_to_file): Dump function arguments with types.
10322
10323 2008-04-08  Richard Guenther  <rguenther@suse.de>
10324
10325         * fold-const.c (fold_widened_comparison): Do not allow
10326         sign-changes that change the result.
10327
10328 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10329
10330         PR target/35839
10331         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10332         kinds of indirect references.
10333
10334 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10335
10336         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10337         GNU Fortran language string.
10338
10339 2008-04-08  Rafael Espindola  <espindola@google.com>
10340
10341         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10342         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10343         * tree.h (tree_call_nonnegative_warnv_p): New.
10344
10345 2008-04-08  Jan Hubicka  <jh@suse.cz>
10346
10347         * function.c (free_after_compilation): Clear out regno_reg_rtx
10348         pointer.
10349
10350 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10351
10352         Revert
10353         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10354
10355         PR middle-end/PR28690
10356         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10357         same precedence as REG_POINTER and MEM_POINTER operands.
10358
10359 2008-04-08  Richard Guenther  <rguenther@suse.de>
10360
10361         PR middle-end/35834
10362         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10363         for adding index to base.
10364
10365 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10366
10367         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10368         (MINGW_ENABLE_EXECUTE_STACK): New.
10369         (IN_LIBGCC2): For libgcc include windows.h file for
10370         function declarations.
10371
10372 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10373
10374         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10375         and tem2 if tem1 is not a REG or MULT.
10376
10377 2008-04-08  Jan Hubicka  <jh@suse.cz>
10378
10379         * function.h (incomming_args): Break out of struct function.
10380         (function_subsections): Break out of struct function.
10381         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10382         return_rtx and hard_reg_initial_vals from struct function.
10383         Kill inl_max_label_num.
10384         (current_function_pops_args, current_function_args_info,
10385         current_function_args_size, current_function_args_size,
10386         current_function_pretend_args_size,
10387         current_function_outgoing_args_size,
10388         current_function_internal_arg_pointer, current_function_return_rtx):
10389         Kill compatibility accestor macros.
10390         * builtins.c (expand_builtin_apply_args_1): Update.
10391         (expand_builtin_next_arg): Update.
10392         * df-scan.c (df_get_call_refs): Update.
10393         * dbxout.c (dbxout_function_end): Update.
10394         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10395         (output_line_info): Update.
10396         (secname_for_decl): Update.
10397         (dwarf2out_var_location): Update.
10398         * function.c (free_after_compilation): Update.
10399         (assign_parm_find_stack_rtl): Update.
10400         (assign_parms): Update.
10401         (expand_dummy_function_end): Update.
10402         (expand_function_end): Update.
10403         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10404         (expand_call): Update.
10405         (emit_library_call_value_1): Update.
10406         (store_one_arg): Update.
10407         * varasm.c (initialize_cold_section_name): Update.
10408         (unlikely_text_section): Update.
10409         (unlikely_text_section_p): Update.
10410         (assemble_start_function): Update.
10411         (assemble_end_function): Update.
10412         (default_section_type_flags): Update.
10413         (switch_to_section): Update.
10414         * integrate.c (set_decl_abstract_flags): Update.
10415         (get_hard_reg_initial_val): Update.
10416         (has_hard_reg_initial_val): Update.
10417         (allocate_initial_values): Update.
10418         * resource.c (init_resource_info): Update.
10419         * config/alpha/alpha.c (NUM_ARGS): Update.
10420         (direct_return): Update.
10421         (alpha_va_start): Update.
10422         (alpha_sa_size): Update.
10423         (alpha_initial_elimination_offset): Update.
10424         (alpha_expand_prologue): Update.
10425         (alpha_start_function): Update.
10426         (alpha_expand_epilogue): Update.
10427         (unicosmk_initial_elimination_offset):
10428         * config/alpha/alpha.md (call expander): Update.
10429         * config/s390/s390.c (s390_register_info): Update.
10430         (s390_register_info): Update.
10431         (s390_frame_info): Update.
10432         (s390_initial_elimination_offset): Update.
10433         (s390_build_builtin_va_list): Update.
10434         (s390_va_start): Update.
10435         * config/spu/spu.c (direct_return): Update.
10436         (spu_expand_prologue): Update.
10437         (spu_initial_elimination_offset): Update.
10438         (spu_build_builtin_va_list): Update.
10439         (spu_va_start): Update.
10440         * config/sparc/sparc.c (sparc_init_modes): Update.
10441         (sparc_compute_frame_size): Update.
10442         (function_value): Update.
10443         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10444         * config/i386/i386.md (return expander): Update.
10445         * config/i386/i386.c (ix86_va_start): Update.
10446         (ix86_can_use_return_insn_p): Update.
10447         (ix86_compute_frame_layout): Update.
10448         (ix86_expand_epilogue): Update.
10449         * config/sh/sh.c (output_stack_adjust): Update.
10450         (calc_live_regs): Update.
10451         (sh_expand_prologue): Update.
10452         (sh_builtin_saveregs): Update.
10453         (sh_va_start): Update.
10454         (initial_elimination_offset): Update.
10455         (sh_allocate_initial_value): Update.
10456         (sh_function_ok_for_sibcall): Update.
10457         (sh_get_pr_initial_val): Update.
10458         * config/sh/sh.md (return expander): Update.
10459         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10460         * config/crx/crx.c (crx_compute_frame): UPdate.
10461         (crx_initial_elimination_offset): UPdate.
10462         * config/xtensa/xtensa.c (compute_frame_size): Update
10463         (xtensa_builtin_saveregs): Update.
10464         (xtensa_va_start): Update.
10465         (order_regs_for_local_alloc): Update.
10466         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10467         (xstormy16_expand_builtin_va_start): Update.
10468         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10469         * config/m68hc11/m68hc11.md (return expanders): Update.
10470         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10471         (expand_epilogue): Update.
10472         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10473         (cris_simple_epilogue): Update.
10474         (cris_expand_prologue): Update.
10475         (cris_expand_epilogue): Update.
10476         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10477         (compute_frame_size): Update.
10478         * config/mt/mt.c (mt_compute_frame_size): Update.
10479         * config/mn10300/mn10300.c (expand_prologue): Update.
10480         (expand_epilogue): Update.
10481         (initial_offset): Update.
10482         (mn10300_builtin_saveregs):
10483         * config/mn10300/mn10300.md (return expander): Update.
10484         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10485         (ia64_initial_elimination_offset): Update.
10486         (ia64_initial_elimination_offset): Update.
10487         (ia64_expand_prologue): Update.
10488         * config/m68k/m68k.md (return expander): Update.
10489         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10490         (rs6000_stack_info): Update.
10491         * config/mcore/mcore.c (layout_mcore_frame): Update.
10492         (mcore_expand_prolog): Update.
10493         * config/arc/arc.c (arc_compute_frame_size): Update.
10494         * config/score/score3.c (score3_compute_frame_size): Update.
10495         * config/score/score7.c (score7_compute_frame_size): Update.
10496         * config/arm/arm.c (use_return_insn): Update.
10497         (thumb_find_work_register): Update.
10498         (arm_compute_save_reg_mask): Update.
10499         (arm_output_function_prologue): Update.
10500         (arm_output_epilogue): Update.
10501         (arm_size_return_regs): Update.
10502         (arm_get_frame_offsets): Update.
10503         (arm_expand_prologue): Update.
10504         (thumb_exit): Update.
10505         (thumb_unexpanded_epilogue): Update.
10506         (thumb1_output_function_prologue): Update.
10507         * config/pa/pa.md (return expander): Update.
10508         * config/pa/pa.c (compute_frame_size): Update.
10509         (hppa_builtin_saveregs): Update.
10510         * config/mips/mips.c (mips_va_start): Update.
10511         (mips16_build_function_stub): Update.
10512         (mips_compute_frame_info): Update.
10513         (mips_restore_gp): Update.
10514         (mips_output_function_prologue): Update.
10515         (mips_expand_prologue): Update.
10516         * config/v850/v850.c (compute_frame_size): Update.
10517         (expand_prologue): * config/mmix/mmix.c (along): update.
10518         (mmix_initial_elimination_offset): update.
10519         (mmix_reorg): update.
10520         (mmix_use_simple_return): update.
10521         (mmix_expand_prologue): update.
10522         (mmix_expand_epilogue): Update.
10523         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10524         (emit_link_insn): Update.
10525
10526 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10527
10528         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
10529         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
10530         instructions.
10531         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
10532         atmega103 device.
10533
10534 2008-04-07  Jan Hubicka  <jh@suse.cz>
10535
10536         * function.h (rtl): Rename to x_rtl.
10537         (crtl): New define.
10538         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10539         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10540         used_temp_slots avail_temp_slots, temp_slot_level,
10541         nonlocal_goto_handler_labels): Update accesstors.
10542         (rtl): New global variable.
10543         (struct function): Move some fileds to rtl_data.
10544         (get_arg_pointer_save_area): Update prototype.
10545         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10546         get_arg_pointer_save_area.
10547         * expr.c (init_expr): Update
10548         * function.c (get_frame_size): Update
10549         (assign_stack_local): Update
10550         (expand_function_end): Update.
10551         (get_art_pointer_save_area): Update
10552         * function.h 
10553         * emit-rtl.c (rtl): Declare.
10554         (regno_reg_rtx): Declare.
10555         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10556         Update.
10557         (gen_reg_rtx): Update.
10558         * varasm.c (n_deferred_constatns): Update accestor.
10559         (init_varasm_status): Do not allocate varasm_status.
10560         (force_const_mem, get_pool_size, output_constant_pool): Update.
10561         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10562         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10563         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10564         * sparc/sparc.h (INIT_EXPANDERS): Update.
10565         * ia64/ia64.h (INIT_EXPANDERS): Update.
10566
10567 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10568
10569         * reload.c (push_secondary_reload): Add missing break to for loop.
10570
10571 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10572
10573         PR middle-end/PR28690
10574         * rtlanal.c: Update copyright years.
10575         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10576         as REG_POINTER and MEM_POINTER operands.
10577         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10578         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10579         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10580         * gcse.c: Update copyright years.
10581         (pre_delete): Call gen_reg_rtx_and_attrs.
10582         (hoist_code): Likewise.
10583         (build_store_vectors): Likewise.
10584         (delete_store): Likewise.
10585         * loop-invariant.c (move_invariant_reg): Likewise.
10586         Update copyright years.
10587
10588 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10589
10590         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10591         control string instead of quoted.
10592
10593 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10594
10595         * doc/rtl.texi: Rewrite of subreg section.
10596
10597 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10598
10599         PR/35842
10600         * config/i386/i386.c (legitimize_pic_address): Add treating
10601         of dllimport SYM_REF's.
10602         (legitimize_dllimport_symbol): Add prototype.
10603
10604 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10605
10606         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10607         reference in constructor with non self-referential type.
10608
10609 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10610
10611         Removal of Return with Depressed Stack Pointer support
10612         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10613         (ECF_SP_DEPRESSED): Likewise.
10614         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10615         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10616         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10617         (expand_call): Do not test ECF_SP_DEPRESSED.
10618         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10619         * function.c (keep_stack_depressed): Delete.
10620         (handle_epilogue_set): Likewise.
10621         (update_epilogue_consts): Likewise.
10622         (emit_equiv_load): Likewise.
10623         (thread_prologue_and_epilogue_insns): Remove support for Return with
10624         Depressed Stack Pointer.
10625         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10626
10627 2008-04-06  Richard Guenther  <rguenther@suse.de>
10628
10629         PR tree-optimization/35400
10630         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10631         information from SSA_NAMEs.
10632
10633 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10634
10635         * config/avr/avr.h (avr_mega_p): Remove declaration.
10636         (AVR_MEGA): Remove macro.
10637         * config/avr/avr.c (avr_mega_p): Remove variable.
10638         (avr_override_options): Remove inicializion of avr_mega_p.
10639         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10640         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10641         (avr_jump_mode): (Ditto.).
10642         (avr_output_progmem_section_asm_op): (Ditto.).
10643         (avr_asm_init_sections): (Ditto.).
10644         (avr_asm_init_sections): (Ditto.).
10645         (avr_rtx_costs): (Ditto.).
10646         * config/avr/avr.md: (Ditto.).
10647         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
10648         '__AVR_MEGA__'.
10649
10650 2008-04-06  Richard Guenther  <rguenther@suse.de>
10651
10652         PR tree-optimization/35842
10653         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10654         is_gimple_invariant_address.
10655
10656 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10657
10658         * gcc.c (default_compilers): Sync Fortran extensions list with
10659         that in fortran/lang-specs.h.
10660         * doc/invoke.texi: Likewise.
10661         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10662         * dwarf2out.c (gen_compile_unit_die): Likewise.
10663
10664 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10665
10666         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10667
10668 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10669
10670         PR target/12329
10671         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10672         attribute is used for nested functions.
10673
10674 2008-04-05  Jan Hubicka  <jh@suse.cz>
10675
10676         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10677
10678         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10679         letter argument.
10680         (dump_files): Update.
10681         (enable_rtl_dump_file): Do not accept letter argument.
10682         * tree-pass.h (dump_file_info): Remove letter argument.
10683         * toplev.c (decode_d_option): Update -da handling.
10684         * toplev.h (enable_rtl_dump_file): Update prototype.
10685         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10686         it out based on pass type.
10687         (register_dump_files_1): Likewise.
10688         (init_optimization_passes): Update register_one_dump_file calls.
10689         (execute_one_pass): Sanity check that IPA passes are called at IPA
10690         level and RTL passes at RTL level.
10691         (execute_pass_list): IPA pass can not be after or subpass of
10692         GIMPLE/RTL pass.
10693         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10694         disallov RTL subpasses of IPA subpasses.
10695
10696 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10697
10698         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10699         builtins that return exactly once and do not throw. Cache call to
10700         call_expr_flags.
10701
10702 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10703
10704         PR rtl-optimization/34916
10705         PR middle-end/35519
10706         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10707         between instruction pairs.
10708
10709 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10710
10711         * doc/invoke.texi: Document -mbitops for SH.
10712         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10713         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10714         * config/sh/sh.c (print_operand): Add %t operand code.
10715         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10716         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10717         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10718         (extendqihi2): Likewise.
10719         (movqi_i): Likewise.
10720         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10721         (extv): Use bld instruction for SH2A if possible.
10722         (extzv): Likewise.
10723         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10724         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10725         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10726         (bset.b, bclr.b): Define peepholes.
10727         * config/sh/sh.opt (mbitops): New option.
10728
10729 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10730
10731         PR target/35620
10732         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10733         and view convert expression.
10734
10735 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10736
10737         PR target/35364
10738         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10739
10740 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10741
10742         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10743
10744         * config/i386/cpuid.h (bit_AES): New.
10745         (bit_PCLMUL): Likewise.
10746
10747         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10748         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10749         SSE2 if AES or PCLMUL is enabled.
10750         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10751         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10752         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10753         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10754         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10755         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10756         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10757         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10758         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10759         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10760         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10761         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10762         __builtin_ia32_aeskeygenassist128 and
10763         __builtin_ia32_pclmulqdq128.
10764         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10765         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10766         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10767
10768         * config/i386/i386.h (TARGET_AES): New.
10769         (TARGET_PCLMUL): Likewise.
10770         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10771
10772         * config/i386/i386.md (UNSPEC_AESENC): New.
10773         (UNSPEC_AESENCLAST): Likewise.
10774         (UNSPEC_AESDEC): Likewise.
10775         (UNSPEC_AESDECLAST): Likewise.
10776         (UNSPEC_AESIMC): Likewise.
10777         (UNSPEC_AESKEYGENASSIST): Likewise.
10778         (UNSPEC_PCLMUL): Likewise.
10779
10780         * config/i386/i386.opt (maes): New.
10781         (mpclmul): Likewise.
10782
10783         * config/i386/sse.md (aesenc): New pattern.
10784         (aesenclast): Likewise.
10785         (aesdec): Likewise.
10786         (aesdeclast): Likewise.
10787         (aesimc): Likewise.
10788         (aeskeygenassist): Likewise.
10789         (pclmulqdq): Likewise.
10790
10791         * config/i386/wmmintrin.h: New.
10792
10793         * doc/extend.texi: Document AES and PCLMUL built-in function.
10794
10795         * doc/invoke.texi: Document -maes and -mpclmul.
10796
10797 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
10798
10799         * function.c (free_after_parsing): Replace with
10800         cxx_push_function_context from C++ front-end.
10801         (allocate_struct_function): Don't call langhook.
10802         * langhooks.h (struct lang_hooks_for_functions): Delete.
10803         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10804         member "function".
10805         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10806         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10807         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10808         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10809         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10810         remove LANG_HOOKS_FUNCTION_INITIALIZER.
10811         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10812
10813         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10814         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10815         
10816 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10817
10818         PR c/35440
10819         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10820         for all types.
10821
10822 2008-04-04  Richard Guenther  <rguenther@suse.de>
10823
10824         PR middle-end/35823
10825         * fold-const.c (optimize_minmax_comparison): Use the correct
10826         type for the constant in the simplified comparison.
10827
10828 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
10829
10830         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10831         Pass L2 size as "--param l2-cache-size" to the compiler.
10832         (decode_l2_cache): New function to decode L2 cache parameters using
10833         0x8000006 extended cpuid function.
10834         (detect_caches_amd): Determine parameters of L2 cache using
10835         decode_l2_caches function.
10836         (decode_caches_intel): Decode L2 cache parameters.
10837         (detect_caches_intel): Determine L2 cache parameters using
10838         decode_caches_intel and decode_l2_caches functions.
10839
10840 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
10841
10842         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10843         secondary input reload for subword loads from the constant pool.
10844
10845 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
10846
10847         PR target/35713
10848         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10849           constants of the appropriate size for runtime calculations.
10850
10851         PR c/35712
10852         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10853           decimal-float literal constant zero.
10854
10855 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
10856
10857         PR c/35738
10858         * c-parser.c (c_parser_omp_atomic): Call
10859         default_function_array_conversion on the RHS.
10860
10861         PR middle-end/35818
10862         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10863         call is_variable_sized if decl has incomplete type.
10864
10865 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
10866
10867         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10868
10869 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
10870
10871         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10872         iterators.
10873         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10874         (sgt<u>): Merge sgt and sgtu into new expander.
10875         (sgt, sgtu): Remove expanders.
10876         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10877         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10878         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10879         *sgtu_<mode>_mips16 into new pattern.
10880         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10881         (sge<u>): Merge sge and sgeu into new expander.
10882         (sge, sgeu): Remove expanders.
10883         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10884         new pattern.
10885         (*sge_<mode>, second *sge_<mode>): Remove patterns.
10886         (slt<u>): Merge slt and sltu into new expander.
10887         (slt, sltu): Remove expanders.
10888         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10889         (*slt_<mode>, *sltu_<mode>): Remove patterns.
10890         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10891         *sltu_<mode>_mips16 into new pattern.
10892         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10893         (sle<u>): Merge sle and sleu into new expander.
10894         (sle, sleu): Remove expanders.
10895         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10896         (*sle_<mode>, *sleu_<mode>): Remove patterns.
10897         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10898         *sleu_<mode>_mips16 into new pattern.
10899         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10900
10901 2008-04-03  Jan Hubicka  <jh@suse.cz>
10902
10903         PR tree-optimization/35795
10904         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10905         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10906         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10907         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10908         * score/score3.c (score3_output_mi_thunk): Likewise.
10909         * score/score7.c (score7_output_mi_thunk): Likewise.
10910         * mips/mips.c (mips_output_mi_thunk): Likewise.
10911
10912 2008-04-03  Richard Guenther  <rguenther@suse.de>
10913
10914         * tree-vrp.c (extract_range_from_unary_expr): Handle all
10915         conversions.  Simplify code.
10916
10917 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10918
10919         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10920
10921 2008-04-03  Tom Tromey  <tromey@redhat.com>
10922             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10923
10924         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10925         * config/bfin/t-bfin-linux (generated_files): Add
10926         linux-sysroot-suffix.h.
10927         * doc/install.texi (Prerequisites): Require make 3.80.
10928         * doc/sourcebuild.texi (Front End Directory): Document new
10929         variable.
10930         * Makefile.in (generated_files): New variable.
10931         (ALL_HOST_OBJS): New variable.
10932         ($(ALL_HOST_OBJS)): New target.
10933
10934 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10935
10936         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10937         (remap_block): Call id->transform_lang_insert_block instead
10938         of langhook.
10939         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10940         Set id.transform_lang_insert_block to NULL.
10941         (clone_body): Move to cp/optimize.c
10942         * tree-inline.h (struct copy_body_data): Change
10943         transform_lang_insert_block to function pointer.
10944         (copy_generic_body, copy_decl_no_change): Export.
10945         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10946         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10947         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10948
10949         * c-tree.h (insert_block): Kill.
10950         * c-decl.c (insert_block): Kill.
10951
10952 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10953
10954         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10955         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10956         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10957         argument.
10958         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10959         argument, call {push,pop}_function_context from here.
10960         * c-parser.c: Use c_{push,pop}_function_context.
10961
10962         * function.c (push_function_context_to): Move meat ...
10963         (push_function_context): ... here.  Simplify.
10964         * function.c (pop_function_context_from): Move meat ...
10965         (pop_function_context): ... here.  Simplify.
10966         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10967         leave_nested).
10968         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10969         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10970         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10971         * tree.h (push_function_context_to, pop_function_context_from): Remove.
10972
10973 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10974
10975         * expmed.c (extract_force_align_mem_bit_field): Remove.
10976
10977 2008-04-03  Richard Guenther  <rguenther@suse.de>
10978
10979         PR middle-end/35800
10980         * expr.h (try_casesi): Adjust prototype.
10981         * expr.c (try_casesi): Take fallback label as extra parameter.
10982         Use that for gen_casesi if default_label is NULL.
10983         * stmt.c (expand_case): Pass fallback label to try_casesi,
10984         make sure to fill gaps with a fallback label if default_label
10985         is not present.
10986
10987 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
10988
10989         PR target/35801
10990         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10991
10992 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10993
10994         * expmed.c (extract_split_bit_field): Remove if (0) code.
10995         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10996         (do_ds_constraint): Likewise.
10997
10998 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
10999
11000         * doc/cppopts.texi (-dU): Document.
11001         * c-common.h (flag_dump_macros): Update comment.
11002         * c-opts.c (handle_OPT_d): Handle -dU.
11003         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11004         dump_queued_macros, cb_used_define, cb_used_undef): New.
11005         (init_pp_output): Handle -dU.
11006         (cb_line_change): Call dump_queued_macros.
11007         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11008
11009 2008-04-02  Anatoly Sokolov <aesok@post.ru>
11010
11011         * config/avr/predicates.md (io_address_operand): New predicate. 
11012         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11013         * config/avr/avr.c (avr_io_address_p): Remove function.
11014         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
11015         'avr_io_address_p' function.
11016         (out_movhi_r_mr): (Ditto.).
11017         (out_movqi_mr_r): (Ditto.).
11018         (out_movhi_mr_r): (Ditto.).
11019         (avr_address_cost): (Ditto.).
11020
11021 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
11022
11023         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11024         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11025         in 32bit mode when XMM registers are available to avoid store
11026         forwarding stalls.
11027         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11028         corresponding post-reload splitters.
11029
11030 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11031
11032         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11033         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
11034         __builtin_ia32_roundss.
11035         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11036         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11037         __builtin_ia32_roundss.
11038         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11039         IX86_BUILTIN_SHUFPD here.
11040
11041 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11042
11043         * config/i386/i386.md (plogic): New.
11044         (plogicprefix): Likewise.
11045
11046         * config/i386/mmx.md (mmx_<code><mode>3): New.
11047         (mmx_and<mode>3): Removed.
11048         (mmx_ior<mode>3): Likewise.
11049         (mmx_xor<mode>3): Likewise.
11050
11051         * config/i386/sse.md (<code><mode>3): New.
11052         (*<code><mode>3): Likewise.
11053         (*<code><mode>3): Likewise.
11054         (<code><mode>3): Likewise.
11055         (*sse_<code><mode>3): Likewise.
11056         (*sse2_<code><mode>3): Likewise.
11057         (<code>tf3): Likewise.
11058         (*<code>tf3): Likewise.
11059         (and<mode>3): Likewise.
11060         (*and<mode>3): Likewise.
11061         (ior<mode>3): Removed.
11062         (*ior<mode>3): Likewise.
11063         (xor<mode>3): Likewise.
11064         (*xor<mode>3): Likewise.
11065         (*and<mode>3): Likewise.
11066         (*ior<mode>3): Likewise.
11067         (*xor<mode>3): Likewise.
11068         (and<mode>3): Likewise.
11069         (*sse_and<mode>3): Likewise.
11070         (*sse2_and<mode>3): Likewise.
11071         (andtf3): Likewise.
11072         (*andtf3): Likewise.
11073         (ior<mode>3): Likewise.
11074         (*sse_ior<mode>3): Likewise.
11075         (*sse2_ior<mode>3): Likewise.
11076         (iortf3): Likewise.
11077         (*iortf3): Likewise.
11078         (xor<mode>3): Likewise.
11079         (*sse_xor<mode>3): Likewise.
11080         (*sse2_xor<mode>3): Likewise.
11081         (xortf3): Likewise.
11082         (*xortf3): Likewise.
11083
11084 2008-04-02  Richard Guenther  <rguenther@suse.de>
11085
11086         PR tree-optimization/14495
11087         PR tree-optimization/34793
11088         * tree-vrp.c (struct switch_update): New structure.
11089         (to_remove_edges, to_update_switch_stmts): New VECs.
11090         (simplify_switch_using_ranges): New function.  Remove not taken
11091         case labels and edges.
11092         (simplify_stmt_using_ranges): Call it.
11093         (identify_jump_threads): Mark edges we have queued for removal
11094         so we don't thread them.
11095         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11096         case label vector.
11097         * tree-cfg.c (group_case_labels): Deal with missing default label.
11098         (tree_verify_flow_info): Allow missing default label.
11099         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11100         (emit_case_nodes): Likewise.
11101         (expand_case): Do not rely on the default label to be present.
11102         * expr.c (try_casesi): Deal with NULL default_label.
11103         (do_tablejump): Likewise.
11104
11105 2008-04-02  Richard Guenther  <rguenther@suse.de>
11106
11107         PR tree-optimization/14495
11108         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11109         SWITCH_EXPR here ...
11110         (vrp_visit_switch_stmt): ... but here (new function).
11111         (find_case_label_index): New helper function.
11112         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11113
11114 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11115
11116         * fwprop.c: Fix ISO-C99ism.
11117
11118 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11119
11120         PR bootstrap/35752
11121         * Makefile.in (objdir): Set it here.
11122         * configure.ac: Not here.  Find dynamic linker characteristics.
11123         * exec-tool.in: Use them.
11124         * aclocal.m4: Regenerate.
11125         * configure: Regenerate.
11126
11127 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11128
11129         * expr.c (expand_var): Delete it.
11130         * expr.h (expand_var): Delete prototype.
11131         * function.c (expand_function_start): Use expand_decl instead.
11132         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11133         langhook.
11134
11135 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
11136
11137         PR rtl-optimization/35542
11138         * fwprop.c (forward_propagate_and_simplify): Replace
11139         loc_reg_mentioned_in_p with reg_mentioned_p.
11140
11141 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11142
11143         PR rtl-optimization/35281
11144         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11145         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11146         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11147         (varying_mem_p): Move above propagate_rtx.
11148         (all_uses_available_at): Do not check MEMs.
11149
11150 2008-04-02  Rafael Espindola  <espindola@google.com>
11151
11152         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11153         (register_edge_assert_for_2): Split the cond argument.
11154         (register_edge_assert_for_1): Adjust for the change in
11155         register_edge_assert_for_2.
11156         (register_edge_assert_for): Split the cond argument.
11157         (find_switch_asserts): Adjust for the change in
11158         register_edge_assert_for.
11159
11160 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11161
11162         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11163         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11164         offsets for 64-bit mingw.
11165         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11166         abi for x86_64-pc-mingw.
11167
11168 2008-04-02  Richard Guenther  <rguenther@suse.de>
11169
11170         * tree-vrp.c (extract_range_from_assert): Make sure to not
11171         produce range min/max with TREE_OVERFOW set.
11172         If merging a anti-range and a range keep the anti-range if
11173         the range covers all values of the type.
11174         (register_edge_assert_for_2): Only allow sign-changing
11175         conversions in detecting canonical range checks.  Also
11176         register an assert for the unsigned name if useful.
11177
11178         PR tree-optimization/35787
11179         * tree-vrp.c (vrp_val_max): New function.
11180         (vrp_val_min): Likewise.
11181         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11182         (vrp_val_is_min): Likewise.
11183         (supports_overflow_infinity): Use vrp_val_{min,max}.
11184         (negative_overflow_infinity): Likewise.
11185         (positive_overflow_infinity): Likewise.
11186         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11187         (is_positive_overflow_infinity): Likewise.
11188         (is_overflow_infinity): Likewise.
11189         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11190         vrp_val_is_{min,max}.
11191         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11192         to ranges if possible.  Avoid empty ranges.
11193
11194 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11195
11196         PR middle-end/35705
11197         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11198         the expression is a function address.
11199
11200 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11201
11202         PR fortran/35154, fortran/23057
11203         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11204         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11205         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11206         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11207         in common.
11208         (dbxout_syms): Check for COMMON-based symbol and wrap in
11209         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11210         in bracket for efficiency.
11211
11212         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11213         using DW_TAG_common_block + member offset.
11214         (add_pubname_string): New function.
11215         (dw_expand_expr): New function to find block name and offset for
11216         COMMON var.
11217         (common_check): New function to check whether symbol in Fortran COMMON.
11218         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11219
11220 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11221
11222         PR c/35436
11223         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11224
11225 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11226
11227         * config/v850/v850.md (casesi): Remove if (0) code.
11228         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11229         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11230
11231 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11232
11233         * config/i386/i386.md (rex64suffix): New mode attribute.
11234         (floathi<mode>2): Disable expander for SSE math.
11235         (*floathi<mode>2_1): New insn insn_and_split pattern.
11236         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11237         corresponding post-reload splitters.
11238         (*floathi<mode>2_i387): New macroized insn pattern.
11239         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11240         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11241         insn_and_split pattern.
11242         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11243         New macroized instruction patterns and corresponding post-reload
11244         splitters.
11245         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11246         and corresponding post-reload splitters.
11247         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11248         New macroized instruction patterns.
11249         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11250         macroized instruction patterns and corresponding post-reload splitters.
11251         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11252         corresponding post-reload splitters.
11253         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11254         New macroized instruction patterns.
11255         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11256         corresponding post-reload splitters.
11257         (*floatsi<mode>2_i387): New macroized instruction patterns.
11258
11259 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11260
11261         * config/i386/i386.md (smaxmin): New.
11262         (umaxmin): Likewise.
11263         (maxminiprefix): Likewise.
11264         (maxminfprefix): Likewise.
11265         (<code><mode>3): Likewise.
11266         (smin<mode>3): Removed.
11267         (smax<mode>3): Likewise.
11268
11269         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11270         (mmx_<code>v4hi3): Likewise.
11271         (mmx_<code>v8qi3): Likewise.
11272         (mmx_smaxv2sf3): Removed.
11273         (mmx_sminv2sf3): Likewise.
11274         (mmx_umaxv8qi3): Likewise.
11275         (mmx_smaxv4hi3): Likewise.
11276         (mmx_uminv8qi3): Likewise.
11277         (mmx_sminv4hi3): Likewise.
11278
11279         * config/i386/sse.md (<addsub><mode>3): New.
11280         (*<addsub><mode>3): Likewise.
11281         (<sse>_vm<addsub><mode>3): Likewise.
11282         (<maxmin><mode>3): Likewise.
11283         (*<maxmin><mode>3_finite): Likewise.
11284         (*<maxmin><mode>3): Likewise.
11285         (<sse>_vm<maxmin><mode>3): Likewise.
11286         (sse3_h<addsub>v4sf3): Likewise.
11287         (sse3_h<addsub>v2df3): Likewise.
11288         (<maxmin>v16qi3): Likewise.
11289         (*<maxmin>v16qi3): Likewise.
11290         (<maxmin>v8hi3): Likewise.
11291         (*<maxmin>v8hi3): Likewise.
11292         (*sse4_1_<maxmin><mode>3): Likewise.
11293         (*sse4_1_<maxmin><mode>3): Likewise.
11294         (add<mode>3): Removed.
11295         (*add<mode>3): Likewise.
11296         (<sse>_vmadd<mode>3): Likewise.
11297         (sub<mode>3): Likewise.
11298         (*sub<mode>3): Likewise.
11299         (<sse>_vmsub<mode>3): Likewise.
11300         (smin<mode>3): Likewise.
11301         (*smin<mode>3_finite): Likewise.
11302         (*smin<mode>3): Likewise.
11303         (<sse>_vmsmin<mode>3): Likewise.
11304         (smax<mode>3): Likewise.
11305         (*smax<mode>3_finite): Likewise.
11306         (*smax<mode>3): Likewise.
11307         (<sse>_vmsmax<mode>3): Likewise.
11308         (sse3_haddv4sf3): Likewise.
11309         (sse3_haddv2df3): Likewise.
11310         (sse3_hsubv4sf3): Likewise.
11311         (sse3_hsubv2df3): Likewise.
11312         (umaxv16qi3): Likewise.
11313         (*umaxv16qi3): Likewise.
11314         (smaxv8hi3): Likewise.
11315         (*smaxv8hi3): Likewise.
11316         (*sse4_1_smax<mode>3): Likewise.
11317         (*sse4_1_umax<mode>3): Likewise.
11318         (uminv16qi3): Likewise.
11319         (*uminv16qi3): Likewise.
11320         (sminv8hi3): Likewise.
11321         (*sminv8hi3): Likewise.
11322         (*sse4_1_smin<mode>3): Likewise.
11323         (*sse4_1_umin<mode>3): Likewise.
11324
11325 2008-04-01  Rafael Espindola  <espindola@google.com>
11326
11327         * tree-cfg.c (verify_expr): remove in_phi.
11328         (verify_stmt): Don't call walk_tree with verify_expr. Use
11329         is_gimple_min_invariant instead of is_gimple_val.
11330
11331 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11332
11333         * doc/include/gpl_v3.texi: Update for manpage generation.
11334         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11335         gpl.texi.
11336         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11337         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11338         gpl_v3.texi instead of gpl.texi.
11339         (gpl.pod): New.
11340
11341 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11342
11343         PR pch/13675
11344         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11345
11346 2008-04-01  Rafael Espindola  <espindola@google.com>
11347
11348         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11349         (extract_code_and_val_from_cond): Use
11350         extract_code_and_val_from_cond_with_ops.
11351
11352 2008-04-01  Jan Hubicka  <jh@suse.cz>
11353
11354         * function.c (free_after_compilation): Free epilogue_delay_list.
11355         (prepare_function_start): Assert that previous compilation was freed.
11356
11357 2008-04-01  Jan Hubicka  <jh@suse.cz>
11358             Jim Wilson  <wilson@tuliptree.org>
11359             Andreas Tobler <andreast@gcc.gnu.org>
11360
11361         PR middle-end/35781
11362         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11363         rtl.emit instead cfun->emit.
11364         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11365         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11366
11367 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11368
11369         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11370
11371 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11372
11373         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11374         New options
11375         (fprofile-use): Add var flag_profile_use
11376         * coverage.c (coverage_begin_output): Do not open a gcno file for
11377         output only if -ftest-coverage is set.
11378         Do not add getpwd() to gcda file path.
11379         (build_gcov_info): Check the new flag
11380         flag_profile_datafile_relative_path.
11381         (coverage_init): Use profile_data_prefix.
11382         Read profile counter only if flag_profile_use is set.
11383         * opts.c (common_handle_option): New option fprofile-use=,
11384         fprofile-dir=, fprofile-generate=.
11385         * toplev.c (profile_data_prefix): New variable definition.
11386         * toplev.h (profile_data_prefix): New declaration.
11387         * doc/invoke.tex (Option Summary, Optimization Options):
11388         Add new options.
11389
11390 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11391
11392         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11393         use tmp consistently.
11394
11395         PR target/35695
11396         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11397         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11398         UNSPEC_FR_RECIP_APPROX_RES.
11399         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11400
11401 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11402
11403         PR c/35750
11404         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11405
11406 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11407
11408         PR middle-end/30186
11409         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11410         element of the vector via a pointer.
11411
11412 2008-03-31  Ian Lance Taylor  <iant@google.com>
11413
11414         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11415
11416 2008-03-31  Jan Hubicka  <jh@suse.cz>
11417
11418         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11419         get_arg_pointer_save_area.
11420         * expr.c (init_expr): Just clear out rtl.expr.
11421         * function.c (free_after_compilation): Clear out whole RTL structure.
11422         (get_func_frame_size): Merge into ...
11423         (get_frame_size): ... this one.
11424         (assign_stack_local_1): Merge into ...
11425         (assign_stack_local): ... this one.
11426         (expand_function_end): Update call of get_arg_pointer_save_area.
11427         (get_art_pointer_save_area): Remove cfun argument.
11428         * function.h (emit_status): regno_pointer_align does not need length
11429         attribute. Move x_regno_reg_rtx to ...
11430         (regno_reg_rtx): ... new global array.
11431         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11432         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11433         apply_args_value, forced_labels, stack_pointer_delta):
11434         Update accestors.
11435         (struct varasm_status): Move here from varasm.c
11436         (struct rtl_data): New. Move here some fields from struct function.
11437         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11438         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11439         used_temp_slots avail_temp_slots, temp_slot_level,
11440         nonlocal_goto_handler_labels): Update accesstors.
11441         (rtl): New global variable.
11442         (struct function): Move some fileds to rtl_data.
11443         (get_arg_pointer_save_area): Update prototype.
11444         * emit-rtl.c (rtl): Declare.
11445         (regno_reg_rtx): Declare.
11446         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11447         Update.
11448         (gen_reg_rtx): Update.
11449         (init_virtual_regs): Do not tate emit_status argument.
11450         (init_emit): Do not allocate emit.
11451         * varasm.c (varasm_statuc): Move to function.h.
11452         (n_deferred_constatns): Update accestor.
11453         (init_varasm_status): Do not allocate varasm_status.
11454         (force_const_mem, get_pool_size, output_constant_pool): Update.
11455         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11456         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11457
11458 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11459
11460         PR rtl-optimization/35729
11461         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11462         references.
11463
11464 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11465
11466         PR target/32000
11467         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11468         load/store if memory is unaligned.
11469         (*movti_rex64): Likewise.
11470
11471         * config/i386/predicates.md (misaligned_operand): New.
11472
11473 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11474
11475         PR tree-opt/35431
11476         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11477         complex types.
11478
11479 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11480
11481         * config/ia64/constraints.md: Add 'j' constraint.
11482         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11483         (movdi_internal): Likewise.
11484
11485 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11486
11487         PR c/35748
11488         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11489
11490 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11491
11492         PR target/35757
11493         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11494         proper error message for the third argument on blendpd and
11495         blendps.
11496
11497         * config/i386/sse.md (blendbits): New.
11498         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11499
11500 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11501
11502         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11503
11504 2008-03-30  Richard Guenther  <rguenther@suse.de>
11505
11506         PR middle-end/31023
11507         * fold-const.c (fold_sign_changed_comparison): Do leave
11508         conversions to base-types alone.
11509
11510 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11511
11512         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11513         the link register if one altivec register is be saved.
11514
11515 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11516
11517         * final.c (final_scan_insn): Remove if (0) code.
11518
11519 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11520
11521         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11522
11523 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11524
11525         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11526         of V4SFmode to ix86_binary_operator_ok.
11527
11528 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11529
11530         * config/i386/i386.c (override_options): Initialize
11531         ix86_veclib_handler to ix86_veclibabi_svml when
11532         -mveclibabi=svml is used.
11533         (ix86_veclibabi_svml): New function for SVML ABI style
11534         vectorization support.
11535         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11536
11537 2008-03-28  Rafael Espindola  <espindola@google.com>
11538
11539         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11540         (tree_binary_nonnegative_warnv_p): Make it public.
11541         (tree_single_nonnegative_warnv_p): Make it public.
11542         (tree_invalid_nonnegative_warnv_p): Make it public.
11543         (tree_unary_nonzero_warnv_p): Make it public.
11544         (tree_binary_nonzero_warnv_p): Make it public
11545         (tree_single_nonzero_warnv_p): Make it public.
11546         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11547         (extract_range_from_binary_expr): Split the expr argument.
11548         (extract_range_from_unary_expr): Split the expr argument.
11549         (extract_range_from_comparison): Split the expr argument.
11550         (extract_range_from_expr): Use the new aux functions.
11551         (vrp_evaluate_conditional_warnv): Use
11552         vrp_evaluate_conditional_warnv_with_ops.
11553         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11554         (tree_binary_nonzero_warnv_p): Declare.
11555         (tree_single_nonzero_warnv_p): Declare.
11556         (tree_expr_nonzero_warnv_p): Declare.
11557         (tree_unary_nonnegative_warnv_p): Declare.
11558         (tree_binary_nonnegative_warnv_p): Declare.
11559         (tree_single_nonnegative_warnv_p): Declare.
11560         (tree_invalid_nonnegative_warnv_p): Declare.
11561
11562 2008-03-28  Richard Guenther  <rguenther@suse.de>
11563
11564         PR tree-optimization/30317
11565         PR tree-optimization/30911
11566         PR tree-optimization/34793
11567         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11568         (struct assert_locus_d): New member EXPR.
11569         (register_new_assert_for): Add EXPR parameter to support
11570         ASSERT_EXPR <name, expr OP limit>.
11571         (register_edge_assert_for_1): Adjust callers.
11572         (find_assert_locations): Likewise.
11573         (process_assert_insertions_for): Build condition from expression.
11574         (extract_range_from_assert): Handle ASSERT_EXPRs
11575         of the form ASSERT_EXPR <name, expr OP limit>.
11576         (register_edge_assert_for_2): New helper registering
11577         asserts for comparisons.  Recognize range tests of the form
11578         (unsigned)i - CST1 OP CST2.
11579         (register_edge_assert_for_1): Use it.
11580         (register_edge_assert_for): Likewise.
11581         (needs_overflow_infinity): Integer sub-types
11582         do not need overflow infinities.
11583         (vrp_val_is_max): The extreme values of integer sub-types
11584         are those of the base type.
11585         (vrp_val_is_min): Likewise.
11586         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11587         expressions.
11588
11589 2008-03-28  Nick Clifton  <nickc@redhat.com>
11590
11591         PR target/31110
11592         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11593         Return GENERAL_REGS for stack adjustment reloads.
11594
11595 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11596
11597         PR target/31334
11598         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11599         const_vector when all the vectors are constant.
11600
11601 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11602
11603         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11604         comparisons.
11605         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11606         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11607         (scc_sf): New.
11608         (s<code>_sf): Use new scc_sf attribute for opcode names.
11609
11610 2008-03-27  Tom Tromey  <tromey@redhat.com>
11611
11612         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11613         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11614         config/spu/t-spu-elf, config/i386/t-interix,
11615         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11616         config/i386/x-darwin, config/i386/x-mingw32,
11617         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11618         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11619         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11620         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11621         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11622         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11623         config/score/t-score-elf, config/arm/t-strongarm-pe,
11624         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11625         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11626         Revert automatic dependency patch.
11627
11628 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11629
11630         PR target/35657
11631         * config/i386/i386.c (ix86_function_arg_boundary): Align
11632         decimal floating point to its natural boundary.
11633
11634 2008-03-27  Richard Guenther  <rguenther@suse.de>
11635
11636         PR middle-end/35716
11637         * fold-const.c (fold_comparison): Restrict distinct decl
11638         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11639         solely rely on operand_equal_p.
11640
11641 2008-03-27  Richard Guenther  <rguenther@suse.de>
11642
11643         PR c/32511
11644         * c-common.c (handle_weak_attribute): Reject combination of
11645         weak and inline.
11646
11647 2008-03-27  Richard Guenther  <rguenther@suse.de>
11648
11649         PR tree-optimization/32810
11650         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11651         conversions from DECL_INITIAL.
11652         (fold_const_aggregate_ref): Likewise from constructor elements.
11653
11654 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11655
11656         * tree-affine.h (aff_combination_expand): Declare.
11657         (get_inner_reference_aff): Likewise.
11658         * tree-affine.c (aff_combination_expand): Split out from
11659         tree_to_aff_combination_expand.
11660         (get_inner_reference_aff): New function.
11661         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11662         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11663         (struct lim_aux_data): sm_done field removed.
11664         (mem_ref_loc_p, mem_ref_locs_p): New types.
11665         (struct mem_ref): Added id, stored, accesses_in_loop,
11666         indep_loop, dep_loop, indep_ref, dep_ref fields.
11667         Removed is_stored, locs and next fields.
11668         (memory_accesses): New variable.
11669         (movement_possibility): Do not allow moving statements
11670         that store to memory.
11671         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11672         New functions.
11673         (determine_max_movement): For statements with memory references,
11674         find the outermost loop in that the reference is independent.
11675         (move_computations_stmt): Mark the virtual operands for renaming.
11676         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11677         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11678         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11679         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11680         create_vop_ref_mapping, analyze_memory_references,
11681         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11682         get_all_locs_in_loop, ref_always_accessed_p,
11683         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11684         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11685         store_motion_loop, store_motion): New functions.
11686         (struct vop_to_refs_elt): New type.
11687         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11688         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11689         (schedule_sm): Replaced by...
11690         (execute_sm): ... this.
11691         (determine_lsm_ref, hoist_memory_references,
11692         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11693         find_more_ref_vops, free_mem_ref, free_mem_refs,
11694         determine_lsm_loop, determine_lsm): Removed.
11695         (tree_ssa_lim_finalize): Free data structures used by store motion.
11696         (tree_ssa_lim): Call analyze_memory_references.  Use
11697         store_motion instead of determine_lsm.
11698
11699 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11700
11701         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11702         rename tmake_file to m68hc11/t-m68hc11.
11703         (mcore): Set inhibit_libc to true.
11704         * config.host (alpha*-dec-*vms*): Set extra_programs.
11705         (interix3*): Don't use host_xmake_file.
11706         * configure.ac: Let config.gcc override inhibit_libc.
11707         * configure: Regenerate.
11708
11709         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11710         * config/t-openbsd-thread: Remove commented out lines.
11711         
11712         * config/x-interix: Remove.
11713
11714         * config/m68hc11/t-m68hc11-gas: Rename to...
11715         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11716
11717         * config/mcore/t-mcore: Remove T_CFLAGS.
11718         * config/mcore/t-mcore-pe: Likewise.
11719
11720 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11721
11722         * configure.ac: Replace custom __GNU_SOURCE test with
11723         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11724         * aclocal.m4: Regenerate.
11725         * configure: Regenerate.
11726         * config.in: Regenerate.
11727
11728 2008-03-27  Richard Guenther  <rguenther@suse.de>
11729
11730         * fold-const.c (target.h): Include.
11731         (fold_comparison): Fold comparison of addresses of decls
11732         that bind locally or of constants.  Consolidate address folding code.
11733         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11734         results from fold_binary_to_constant.
11735         (compare_values_warnv): Likewise.
11736
11737 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11738
11739         PR middle-end/35429
11740         * fold-const.c (fold_truthop): Check for integeral types when folding
11741         a == 0 && b == 0 and a != 0 || b != 0 .
11742
11743 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11744
11745         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11746
11747 2008-03-26  Andreas Schwab  <schwab@suse.de>
11748
11749         * doc/invoke.texi: Fix use of @item vs. @itemx.
11750
11751 2008-03-26  Tom Tromey  <tromey@redhat.com>
11752
11753         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11754         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11755         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11756         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11757         build/genconstants.o, build/genemit.o, build/genextract.o,
11758         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11759         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11760         options.h.
11761
11762 2008-03-26  Richard Guenther  <rguenther@suse.de>
11763
11764         Revert
11765         2008-03-26  Richard Guenther  <rguenther@suse.de>
11766
11767         * fold-const.c (target.h): Include.
11768         (fold_comparison): Fold comparison of addresses of two decls
11769         that bind locally.  Consolidate address folding code.
11770
11771 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11772
11773         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11774         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11775         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11776         dconstsqrt2, dconstthird, dconste and/or dconst10.
11777         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11778         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11779         dconstsqrt2, dconste): Delete.
11780         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11781         Constify variable.
11782         * real.c (get_real_const): New.
11783         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11784         dconstsqrt2, dconste): Delete.
11785         (real_value_const, get_real_const): New.
11786
11787 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11788
11789         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11790
11791         * config/i386/i386.c (ix86_function_arg_boundary): Check
11792         BIGGEST_ALIGNMENT instead of 128.
11793         (setup_incoming_varargs_64): Likewise.
11794
11795 2008-03-26  Tom Tromey  <tromey@redhat.com>
11796
11797         * Makefile.in (DEPFILES): Add missing '/'.
11798
11799 2008-03-26  Richard Guenther  <rguenther@suse.de>
11800
11801         * fold-const.c (target.h): Include.
11802         (fold_comparison): Fold comparison of addresses of two decls
11803         that bind locally.  Consolidate address folding code.
11804
11805 2008-03-26  Nick Clifton  <nickc@redhat.com>
11806
11807         PR target/31232
11808         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11809         not allow INT+INT as a legitimate addressing mode.
11810
11811 2008-03-26  Richard Guenther  <rguenther@suse.de>
11812
11813         * tree-flow.h (widen_bitfield): Remove declaration.
11814         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11815         (widen_bitfield): Remove function.
11816         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11817         code.
11818
11819 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11820
11821         PR target/31558
11822         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11823         error_mark_node's.
11824
11825 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11826
11827         PR rtl-optimization/35232
11828         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11829         (forget_old_reloads_1, forget_marked_reloads): Don't clear
11830         reg_reloaded_call_part_clobbered here.
11831         (reload_regs_reach_end_p): New function.
11832         (reload_reg_rtx_for_input): New variable.
11833         (reload_reg_rtx_for_output): Likewise.
11834         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11835         when reassigning a pseudo register.  Load reloadreg from 
11836         reload_reg_rtx_for_input, moving the mode and register
11837         calculation to...
11838         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
11839         instead of the original when deciding whether an input reload
11840         would be a no-op or whether an output reload can be deleted.
11841         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11842         when setting up new_spill_reg_store.  Load it from
11843         reload_reg_rtx_for_output, moving the mode and register
11844         calculation to...
11845         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
11846         instead of the original when deciding whether an output reload
11847         would be a no-op.  Do the same when modifying insn notes.
11848         Use rtx_equal_p instead of == to compare the registers.
11849         (inherit_piecemeal_p): Take a mode and two register numbers
11850         as argument.
11851         (emit_reload_insns): Clear new_spill_reg_store for every hard
11852         register in the reload register.  Remove spill registers
11853         from reg_reloaded_valid before considering whether to record
11854         inheritance information for them.  Use reload_reg_rtx_for_output
11855         instead of reg_rtx when recording output reloads.  Use
11856         reload_reg_rtx_for_input instead of reg_rtx when recording
11857         input reloads.  Set or clear reg_reloaded_call_part_clobbered
11858         at the same time as setting reg_reloaded_valid.
11859         (delete_output_reload): Add a new_reload_reg parameter and use it
11860         instead of rld[j].reg_rtx.
11861         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11862         calls accordingly.
11863
11864 2008-03-25  Tom Tromey  <tromey@redhat.com>
11865
11866         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11867         (build/genattr.o): Likewise.
11868         (build/genattrtab.o): Likewise.
11869         (build/gencodes.o): Likewise.
11870         (build/genconfig.o): Likewise.
11871         (build/genconstants.o): Likewise.
11872         (build/genemit.o): Likewise.
11873         (build/genextract.o): Likewise.
11874         (build/genflags.o): Likewise.
11875
11876 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
11877         
11878         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11879         instead of size_int for integer types.
11880         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
11881         to match type of MINUS_EXPR.
11882         
11883 2008-03-25  Tom Tromey  <tromey@redhat.com>
11884
11885         * configure: Rebuilt.
11886         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11887         Makefile.
11888
11889 2008-03-25  Tom Tromey  <tromey@redhat.com>
11890
11891         * config/x-solaris (host-solaris.o): Update.
11892         * config/x-linux (host-linux.o): Update.
11893         * config/x-hpux (host-hpux.o): Update.
11894         * config/x-darwin (host-darwin.o): Update.
11895         * config/v850/t-v850e (v850-c.o): Update.
11896         * config/v850/t-v850 (v850-c.o): Update.
11897         * config/t-vxworks (vxworks.o): Update.
11898         * config/t-sol2 (sol2-c.o, sol2.o): Update.
11899         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11900         * config/spu/t-spu-elf (spu-c.o): Update.
11901         (spu.o): Remove.
11902         * config/sh/t-symbian (sh-c.o): Update.
11903         (symbian.o): Update.
11904         * config/sh/t-sh (sh-c.o): Update.
11905         * config/score/t-score-elf (score7.o, score3.o): Update.
11906         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11907         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11908         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11909         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11910         (rs6000.o): Remove.
11911         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11912         * config/m32c/t-m32c (m32c-pragma.o): Update.
11913         * config/ia64/t-ia64 (ia64-c.o): Update.
11914         * config/i386/x-mingw32 (host-mingw32.o): Update.
11915         * config/i386/x-i386 (driver-i386.o): Update.
11916         * config/i386/x-darwin (host-i386-darwin.o): Update.
11917         * config/i386/x-cygwin (host-cygwin.o): Update.
11918         * config/i386/t-nwld (nwld.o): Update.
11919         * config/i386/t-netware (netware.o): Update.
11920         * config/i386/t-interix (winnt.o): Update.
11921         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11922         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11923         msformat-c.o): Update.
11924         * config/bfin/t-bfin-linux (generated_files): Add
11925         linux-sysroot-suffix.h.
11926         * config/arm/t-wince-pe (pe.o): Update.
11927         * config/arm/t-strongarm-pe (pe.o): Update.
11928         * config/arm/t-pe (pe.o): Update.
11929         * config/arm/t-arm (arm-c.o): Update.
11930         * doc/install.texi (Prerequisites): Require make 3.80.
11931         * Makefile.in: Remove .o targets.
11932         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11933         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11934         (simple_generated_h, simple_generated_c): Move earlier.
11935         (generated_files): New variable.
11936         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11937         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11938         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11939         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11940         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11941         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11942         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11943         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11944         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11945         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11946         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11947         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11948         (.c.o): Remove.
11949         (COMPILE.base, COMPILE): New variables.
11950         (%.o): New pattern rule.
11951         (ALL_HOST_OBJS): New variable.
11952         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11953         (dummy-checksum.o, cc1-checksum.o): Remove.
11954         (DRIVER_SHLIB): New variable.
11955         (DRIVER_DEFINES): Use it.
11956         (gencondmd.c): Move out of build/.
11957         (s-conditions): Update.
11958         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11959         (ALL_BUILD_OBJS): Likewise.
11960         (build/%.o): Use BUILDCOMPILE.
11961         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11962         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11963         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11964         build/gencheck.o, build/gencodes.o, build/genconditions.o,
11965         build/genconfig.o, build/genconstants.o, build/genemit.o,
11966         build/genextract.o, build/genflags.o, build/genmddeps.o,
11967         build/genopinit.o, build/genoutput.o, build/genpeep.o,
11968         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11969         build/gen-protos.o, build/scan.o, build/fix-header.o,
11970         build/scan-decls.o): Simplify.
11971         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11972         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11973         prefix.o, toplev.o): Reduce to variable setting.
11974         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
11975         ($(out_object_file), gcc-options.o): New targets.
11976         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
11977         * configure: Rebuilt.
11978         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11979         * doc/sourcebuild.texi (Front End Directory): Document new variable.
11980
11981 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
11982
11983         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11984         complain when we hit an error, return ERROR_MARK_NODE.
11985
11986 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11987
11988         * config/sh/constraints.md (Pso, Psz): New constraints.
11989         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11990         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11991
11992 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11993
11994         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11995         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11996
11997 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11998
11999         * config/sh/sh.md (prefetch): Add condition for SH2A target.
12000         (prefetch_sh2a): New.   
12001
12002 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12003             Naveen.H.S  <naveen.hs@kpitcummins.com>
12004
12005         * config/sh/constraints.md (I28): New constraint.
12006         * config/sh/sh.c (broken_move): Add support for movi20s.
12007         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12008
12009 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
12010             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12011             Naveen.H.S  <naveen.hs@kpitcummins.com>
12012
12013         * config/sh/sh.c (SH_ATTRIBUTES): Define.
12014         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12015         (print_operand): Handle resbank in %@ operand code.
12016         (sh_encode_section_info): New.
12017         (push_regs): Add conditions for resbank.
12018         (sh_expand_epilogue): Likewise.
12019         (sh_insert_attributes): Likewise.
12020         (sh_attribute_table): Likewise.
12021         (sh_handle_resbank_handler_attribute): New.
12022         (sh2a_handle_function_vector_handler_attribute): New.
12023         (sh2a_is_function_vector_call): New.
12024         (sh2a_get_function_vector_number): New.
12025         (sh2a_function_vector_p): New.
12026         (sh_cfun_resbank_handler_p): New.
12027         * config/sh/sh.md (calli): Emit jsr/n if possible.
12028         (calli_tbr_rel): New.
12029         (calli_pcrel): Emit jsr/n if possible.
12030         (return_i): Emit rts/n if possible.
12031         (call_valuei_tbr_rel): New.
12032         (call_valuei_pcrel): Add condition for SH2A target.
12033         (call_value): Likewise.
12034         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12035         (sh2a_get_function_vector_number): Likewise.
12036         (sh2a_is_function_vector_call): Likewise.
12037         * doc/extend.texi: Document TBR relative addressing of SH2A.
12038         (resbank): Add description for SH2A.
12039
12040 2008-03-24  Richard Guenther  <rguenther@suse.de>
12041
12042         PR c/22371
12043         * gimplify.c (gimplify_modify_expr): For frontend type-correct
12044         pointer assignments change conversions according to middle-end rules.
12045         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12046         * configure.ac: Include type checking in yes.
12047         * configure: Regenerate.
12048
12049 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12050
12051         * diagnostic.c (diagnostic_count_diagnostic): Delete.
12052         (diagnostic_report_diagnostic): Update. Handle ICEs here.
12053         
12054 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12055
12056         * gthr-vxworks.h (UNUSED): Define.
12057
12058 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12059
12060         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12061
12062 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
12063
12064         * doc/extend.texi (Function Attributes): Add missing comma in the
12065         example of the "alloc_size" attribute.
12066         
12067 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
12068
12069         Revert:
12070         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12071
12072         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12073         32bit host.
12074
12075         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12076
12077         PR target/35496
12078         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12079         of the underlying type of a MS bitfield layout to the natural
12080         alignment of the type.
12081
12082         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12083
12084         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12085         to their natural alignment to avoid store forwarding stalls.
12086
12087 2008-03-22  Richard Guenther  <rguenther@suse.de>
12088
12089         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12090         For PHI nodes verify the address is invariant.
12091         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12092         (get_symbol_constant_value): Use is_gimple_min_invariant.
12093         (maybe_fold_stmt_indirect): Likewise.
12094
12095 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
12096
12097         PR rtl-optimization/33927
12098         * Makefile.in (dse.o): Depend on $(TM_P_H).
12099         * expr.h (extract_low_bits): Declare.
12100         * expmed.c (extract_low_bits): New function.
12101         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12102         * dse.c: Include tm_p.h.
12103         (find_shift_sequence): Remove the read_reg argument and return the
12104         read value.  Emit the instructions instead of returning them.
12105         Iterate on new_mode rather than calculating it each time.
12106         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
12107         source to NEW_MODE and extract_low_bits to convert the shifted
12108         value to READ_MODE.
12109         (replace_read): Allow the load and store to have different mode
12110         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
12111         or extraction instructions before trying the replacement.  Update
12112         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12113
12114 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12115
12116         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12117         to their natural alignment to avoid store forwarding stalls.
12118
12119 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12120
12121         PR target/27946
12122         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12123         encouraging but not allowing gprs for input;
12124         change the input constraint to !f#r.
12125         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12126         gprs for output;
12127         change the output constraint to !f#r.
12128
12129 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
12130
12131         PR target/13958
12132         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12133         corresponding post-reload splitters.
12134         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12135         when x87 FP math is selected.
12136         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12137         New function prototype.
12138         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12139         unreachable function to ease macroization of insn patterns.
12140
12141 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12142
12143         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12144         reference dumps if ddr is NULL or dependence is unknown.
12145
12146 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12147
12148         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12149         unsigned extension into account.
12150         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12151         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12152         Do computations on a scratch register.
12153
12154 2008-03-21  Richard Guenther  <rguenther@suse.de>
12155
12156         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12157         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12158         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12159         * tree-ssa-dom.c (record_equality): Likewise.
12160         * tree-inline.c (copy_body_r): Likewise.
12161         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12162         TREE_INVARIANT.
12163
12164 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12165
12166         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12167         as 'delete_unused' argument.
12168
12169 2008-03-20  Richard Guenther  <rguenther@suse.de>
12170
12171         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12172         special casing of constant qualifiers.
12173         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12174         care about them in general.
12175         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12176         regardless of their type.
12177         (fold_stmt_r): Forcefully fold *& if we end up with that.
12178
12179 2008-03-20  Paul Brook  <paul@codesourcery.com>
12180
12181         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12182         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12183         linker flags.
12184         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12185         definition.
12186         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12187         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12188
12189 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12190
12191         * common.opt (Wmudflap): New option.
12192         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12193         (mx_register_decls): Likewise.
12194         (mudflap_finish_file): Likewise.
12195         * doc/invoke.texi: Document -Wno-mudflap.
12196
12197 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12198
12199         * c-format.c (replace_format_name_to_system_name): New.
12200         (cmp_attribs): New.
12201         (convert_format_name_to_system_name): New.
12202         (decode_format_attr): Add use of convert_format_name_to_system_name.
12203         (format_types_orig): Add gnu_ prefix to names.
12204         (check_format_info_main): Special treating of \0 escaped names for
12205         supporting multi-character format specifiers as I32, I64.
12206         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12207         (gnu_target_overrides_format_attributes): New.
12208         * c-format.h: Add structure target_ovr_attr to hold
12209         system specific formatter names.
12210         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12211         msformat-c.o file to c_target_objs and cxx_target_objs.
12212         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12213         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12214         (TARGET_N_FORMAT_TYPES): New.
12215         * config/i386/msformat-c.c: New.
12216         * config/i386/t-cygming: Add build rule for msformat-c.o.
12217         * doc/extend.texi: Add new format names gnu_* and ms_* and
12218         further details.
12219         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12220
12221 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12222
12223         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12224         optimizations turned on under -O3.
12225         (ftree-vectorize): Add that the flag is turned on with -O3.
12226
12227 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12228
12229         * regmove.c (try_auto_increment): Fix spelling error in comment.
12230         * final.c (final_scan_insn): Likewise.
12231
12232 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12233
12234         PR target/14552
12235         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12236         allocator preferences for "y" and "r" class registers.
12237         ("*mov<mode>_internal"): Ditto.
12238         ("*movv2sf_internal_rex64"): Ditto.
12239         ("*movv2sf_internal"): Ditto.
12240
12241 2008-03-19  Michael Matz  <matz@suse.de>
12242
12243         PR middle-end/35616
12244         * calls.c (expand_call): Check overlap of arguments with call
12245         address for sibcalls.
12246
12247 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12248
12249         PR target/35496
12250         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12251         of the underlying type of a MS bitfield layout to the natural
12252         alignment of the type.
12253
12254 2008-03-19  Jan Hubicka  <jh@suse.cz>
12255
12256         PR other/35094
12257         * toplev.c (decode_d_option): Handle all CPP flags.
12258         * tree-vrp.c: Update tree_pass descriptors.
12259         * regrename.c: Update tree_pass descriptors.
12260         * fwprop.c: Update tree_pass descriptors.
12261         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12262         * tree-into-ssa.c: Update tree_pass descriptors.
12263         * tree-dump.c: Update tree_pass descriptors.
12264         * tree-complex.c: Update tree_pass descriptors.
12265         * tree-dump.h: Update tree_pass descriptors.
12266         * see.c: Update tree_pass descriptors.
12267         * cgraphbuild.c: Update tree_pass descriptors.
12268         * tracer.c: Update tree_pass descriptors.
12269         * tree-loop-distribution.c: Update tree_pass descriptors.
12270         * cgraph.c: Update tree_pass descriptors.
12271         * postreload-gcse.c: Update tree_pass descriptors.
12272         * postreload.c: Update tree_pass descriptors.
12273         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12274         * tree-tailcall.c: Update tree_pass descriptors.
12275         * tree-pass.h (tree_opt_pass): Rename to ...
12276         (opt_pass) ... this one; add "type" field and remove letter field.
12277         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12278         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12279         all_lowering_passes): Update declaration.
12280         * ipa-cp.c: Update tree_pass descriptors.
12281         * final.c: Update tree_pass descriptors.
12282         * omp-low.c: Update tree_pass descriptors.
12283         * tree-ssa-dse.c: Update tree_pass descriptors.
12284         * ipa-reference.c: Update tree_pass descriptors.
12285         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12286         * auto-inc-dec.c: Update tree_pass descriptors.
12287         * reorg.c: Update tree_pass descriptors.
12288         * cgraphunit.c: Update tree_pass descriptors.
12289         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12290         * tree-ssa-ccp.c: Update tree_pass descriptors.
12291         * df-core.c: Update tree_pass descriptors.
12292         * mode-switching.c: Update tree_pass descriptors.
12293         * tree-nomudflap.c: Update tree_pass descriptors.
12294         * modulo-sched.c: Update tree_pass descriptors.
12295         * ipa-pure-const.c: Update tree_pass descriptors.
12296         * cse.c: Update tree_pass descriptors.
12297         * web.c: Update tree_pass descriptors.
12298         * tree-stdarg.c: Update tree_pass descriptors.
12299         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12300         * tree-ssa-dom.c: Update tree_pass descriptors.
12301         * tree-nrv.c: Update tree_pass descriptors.
12302         * tree-ssa-alias.c: Update tree_pass descriptors.
12303         * loop-init.c: Update tree_pass descriptors.
12304         * gimple-low.c: Update tree_pass descriptors.
12305         * ipa-inline.c: Update tree_pass descriptors.
12306         * tree-ssa-sink.c: Update tree_pass descriptors.
12307         * global.c: Update tree_pass descriptors.
12308         * ifcvt.c: Update tree_pass descriptors.
12309         * jump.c: Update tree_pass descriptors.
12310         * predict.c: Update tree_pass descriptors.
12311         * tree-ssa-loop.c: Update tree_pass descriptors.
12312         * recog.c: Update tree_pass descriptors.
12313         * dse.c: Update tree_pass descriptors.
12314         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12315         * tree-eh.c: Update tree_pass descriptors.
12316         * regmove.c: Update tree_pass descriptors.
12317         * local-alloc.c
12318         * function.c: Update tree_pass descriptors.
12319         * tree-vectorizer.c: Update tree_pass descriptors.
12320         * gcse.c: Update tree_pass descriptors.
12321         * ipa-type-escape.c: Update tree_pass descriptors.
12322         * tree-if-conv.c: Update tree_pass descriptors.
12323         * init-regs.c: Update tree_pass descriptors.
12324         * ipa.c: Update tree_pass descriptors.
12325         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12326         * rtl-factoring.c: Update tree_pass descriptors.
12327         * lower-subreg.c: Update tree_pass descriptors.
12328         * bt-load.c: Update tree_pass descriptors.
12329         * tree-dfa.c: Update tree_pass descriptors.
12330         * except.c: Update tree_pass descriptors.
12331         * emit-rtl.c: Update tree_pass descriptors.
12332         * cfgexpand.c: Update tree_pass descriptors.
12333         * tree-cfgcleanup.c: Update tree_pass descriptors.
12334         * cfgcleanup.c: Update tree_pass descriptors.
12335         * tree-ssa-pre.c: Update tree_pass descriptors.
12336         * tree-sra.c: Update tree_pass descriptors.
12337         * tree-mudflap.c: Update tree_pass descriptors.
12338         * tree-ssa-copy.c: Update tree_pass descriptors.
12339         * cfglayout.c: Update tree_pass descriptors.
12340         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12341         * tree-ssa-dce.c: Update tree_pass descriptors.
12342         * tree-ssa.c: Update tree_pass descriptors.
12343         * regclass.c: Update tree_pass descriptors.
12344         * integrate.c: Update tree_pass descriptors.
12345         * tree-optimize.c: Update tree_pass descriptors.
12346         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12347         * tree-object-size.c: Update tree_pass descriptors.
12348         * combine.c: Update tree_pass descriptors.
12349         * tree-outof-ssa.c: Update tree_pass descriptors.
12350         * bb-reorder.c: Update tree_pass descriptors.
12351         * stack-ptr-mod.c: Update tree_pass descriptors.
12352         * var-tracking.c: Update tree_pass descriptors.
12353         * tree-profile.c: Update tree_pass descriptors.
12354         * tree-vect-generic.c: Update tree_pass descriptors.
12355         * reg-stack.c: Update tree_pass descriptors.
12356         * sched-rgn.c: Update tree_pass descriptors.
12357         * tree-ssa-structalias.c: Update tree_pass descriptors.
12358         * tree-cfg.c: Update tree_pass descriptors.
12359         * passes.c (current_pass): Update declaration.
12360         (finish_optimization_passes): Update.
12361         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12362         (register_one_dump_file, register_dump_files_1, next_pass_1):
12363         Update arguments.
12364         (init_optimization_passes): Update handling of new types.
12365         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12366         * ipa-struct-reorg.c: Update tree_pass descriptors.
12367         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12368         * combine-stack-adj.c: Update tree_pass descriptors.
12369         * cfgrtl.c: Update tree_pass descriptors.
12370         * dce.c: Update tree_pass descriptors.
12371         * tree-ssanames.c: Update tree_pass descriptors.
12372
12373 2008-03-19  Richard Guenther  <rguenther@suse.de>
12374
12375         PR middle-end/35609
12376         * tree-ssa.c (walk_data): New structure.
12377         (warn_uninitialized_var): If not always_executed warn with "maybe"
12378         instead of "is".
12379         (execute_early_warn_uninitialized): Compute post-dominators.
12380         Initialize always_executed before processing each basic block.
12381
12382 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12383
12384         PR target/35504
12385         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12386         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12387
12388 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12389
12390         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12391
12392 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12393
12394         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12395         is true.
12396         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12397         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12398         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12399         target after ignore has been set, and move there also the commputation
12400         of subtarget and original_target.
12401         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12402         (LANG_HOOKS_INITIALIZER): Remove it.
12403         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12404
12405 2008-03-18  Richard Guenther  <rguenther@suse.de>
12406
12407         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12408         found an expression with constants, note that in the VN for the lhs.
12409         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12410         fold them to constants if possible.  Run cleanup_cfg if done so.
12411         (execute_pre): Return todo.
12412         (do_pre): Likewise.
12413         (execute_fre): Likewise.
12414         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12415         of constants.
12416         (get_prop_source_stmt): Look through pointer conversions.
12417
12418 2008-03-18  Jan Hubicka  <jh@suse.cz>
12419
12420         * tree-pretty-print.c: Include predict.h.
12421         (dump_generic_node): Dump predictor.
12422         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12423         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12424         * gimple-low.c (lower_stmt): Likewise.
12425         * expr.c (expand_expr_real): Likewise.
12426         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12427         them.
12428         (build_predict_expr, build_predict_expr): New.
12429         * predict.h (predictor_name, build_predict_expr): Update.
12430         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12431         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12432         * predict.def (PRED_CONTINUE): Update hitrate.
12433         * tree.def (PREDICT_EXPR): Define.
12434         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12435         do not handle BIND_EXPR.
12436         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12437         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12438         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12439         operands.
12440
12441 2008-03-18  Michael Matz  <matz@suse.de>
12442
12443         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12444
12445 2008-03-18  Richard Guenther  <rguenther@suse.de>
12446
12447         * tree-gimple.h (is_gimple_invariant_address): Declare.
12448         (is_gimple_constant): Likewise.
12449         * tree-gimple.c (is_gimple_constant): New function.
12450         (is_gimple_invariant_address): Likewise.
12451         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12452         and is_gimple_invariant_address.
12453         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12454         previous change.
12455         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12456         an addressable base.
12457
12458 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12459
12460         PR middle-end/35611
12461         * gimplify.c (gimplify_expr): Gimplify second operand of
12462         OMP_ATOMIC_LOAD.
12463
12464 2008-03-17  Richard Guenther  <rguenther@suse.de>
12465
12466         PR tree-optimization/19637
12467         * fold-const.c (fold_unary): Remove restrictions of removing
12468         intermediate pointer-conversions (P2)(P1)P0.
12469         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12470         conversion to void pointer.
12471         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12472
12473 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12474
12475         PR debug/31510
12476         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12477         emulated thread local variables.
12478
12479 2008-03-16  Richard Guenther  <rguenther@suse.de>
12480
12481         PR middle-end/35607
12482         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12483         expand TREE_INVARIANT operations that are not gimple invariant.
12484
12485 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12486
12487         * doc/extend.texi (Alignment): Say that the ABI controls
12488         the __alignof__ for non-strict-alignment targets rather
12489         than being a recommendation.
12490
12491 2008-03-15  Paul Brook  <paul@codesourcery.com>
12492
12493         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12494         annotations.
12495         (arm_output_fn_unwind): Mark functions that can not be unwound.
12496
12497 2008-03-15  Paul Brook  <paul@codesourcery.com>
12498
12499         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12500         extension instructions.
12501
12502 2008-03-15  Richard Guenther  <rguenther@suse.de>
12503
12504         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12505         and fold constant aggregate refs.
12506         (fold_const_aggregate_ref): Handle string constants
12507         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12508         (evaluate_stmt): Simplify now that ccp_fold folds constant
12509         aggregate refs.
12510
12511 2008-03-15  Paul Brook  <paul@codesourcery.com>
12512
12513         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12514         (extzv): Use gen_extzv_t2.
12515         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12516
12517 2008-03-15  Richard Guenther  <rguenther@suse.de>
12518
12519         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12520         (fold_const_aggregate_ref): Likewise.
12521         (get_value): Return NULL if we don't have any values.
12522         (ccp_finalize): Set const_val to NULL after freeing it.
12523         * tree-flow.h (get_symbol_constant_value): Declare.
12524         (fold_const_aggregate_ref): Likewise.
12525         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12526
12527 2008-03-15  Richard Guenther  <rguenther@suse.de>
12528
12529         PR middle-end/35593
12530         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12531         to not produce negative array indices if not allowed.  Add
12532         parameter to indicate that.
12533         (maybe_fold_offset_to_component_ref): Allow negative array
12534         indices only for the first member of a structure.
12535         (maybe_fold_offset_to_reference): Allow negative array indices.
12536         (maybe_fold_stmt_addition): Likewise.
12537
12538 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12539             Anatoly Sokolov <aesok@post.ru>
12540
12541         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12542         (avr_arch): Add ARCH_AVR6.
12543         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12544         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
12545         instead of fixed value 2.
12546         (print_operand_address): Use gs() asm specifier instead of pm().
12547         (avr_assemble_integer): (Ditto.).
12548         (avr_output_addr_vec_elt): (Ditto.).
12549         (print_operand): Handle "!" code.
12550         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
12551         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12552         (AVR_HAVE_EIJMP_EICALL): Define.
12553         (AVR_3_BYTE_PC): Redefine.
12554         (AVR_2_BYTE_PC): (Ditto.).
12555         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12556         (LINK_SPEC): Add atmega2560 and atmega2561.
12557         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
12558         (crtm2561.o).
12559         * config/avr/avr.md (call_insn): Use eicall instead of icall 
12560         for 3 byte PC devices.
12561         (call_value_insn): (Ditto.).
12562         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12563         (indirect_jump): Use only for for 2 byte PC devices.
12564         (*tablejump): (Ditto.).
12565         (*indirect_jump_avr6): Add insn.
12566         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12567         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
12568         instead of ijmp for 3 byte PC devices.
12569         (__tablejump2__): (Ditto.).
12570         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12571         (MULITLIB_DIRNAMES): (Ditto.). 
12572         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12573
12574 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12575
12576         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12577         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12578         ("mmx_psadbw"): Use V1DI mode for operand 0.
12579         * config/i386/i386-modes.def (V1SI): New vector mode.
12580         * config/i386/i386.c (struct builtin_description)
12581         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12582         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12583         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12584         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12585         v1di_ftype_v8qi_v8qi type.
12586         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12587
12588         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12589         __builtin_ia32_pmuludq]: Fix the mode of return value.
12590
12591 2008-03-15  Richard Guenther  <rguenther@suse.de>
12592
12593         PR middle-end/35595
12594         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12595         being a PHI_NODE.
12596
12597 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12598         
12599         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12600         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12601         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12602         unless TARGET_SERIALIZE_VOLATILE is enabled.
12603         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12604         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12605         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12606
12607 2008-03-14  Richard Guenther  <rguenther@suse.de>
12608
12609         PR tree-optimization/34172
12610         * tree-flow.h (refs_may_alias_p): Declare.
12611         (get_single_def_stmt): Likewise.
12612         (get_single_def_stmt_from_phi): Likewise.
12613         (get_single_def_stmt_with_phi): Likewise.
12614         * tree-dfa.c (refs_may_alias_p): New function.
12615         (get_single_def_stmt): Likewise.
12616         (get_single_def_stmt_from_phi): Likewise.
12617         (get_single_def_stmt_with_phi): Likewise.
12618         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12619         (vn_reference_lookup_1): New helper function.
12620         (vn_reference_lookup): Walk the virtual use-def chain to
12621         continue searching for a match if the def does not alias the
12622         reference we are looking for.
12623
12624 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12625
12626         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12627         archive and Perzl.  Update The Written Word listing.
12628
12629 2008-03-14  Richard Guenther  <rguenther@suse.de>
12630
12631         PR tree-optimization/34043
12632         PR tree-optimization/33989
12633         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12634         when doing FRE.
12635         (bitmap_find_leader): Use extra argument to verify dominance
12636         relationship inside a basic-block.
12637         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12638         (find_leader_in_sets): Adjust.
12639         (create_component_ref_by_pieces): Take extra argument for
12640         dominance check, handle lookup failures.
12641         (find_or_generate_expression): Likewise.
12642         (create_expression_by_pieces): Likewise.
12643         (insert_into_preds_of_block): Adjust.
12644         (create_value_expr_from): If asked for, verify all operands
12645         are in the blocks AVAIL_OUT set.
12646         (make_values_for_stmt): Check for SSA_NAMEs that are life
12647         over an abnormal edge.
12648         (compute_avail): Remove such check.
12649         (do_SCCVN_insertion): New function.
12650         (eliminate): If we do not find a leader suitable for replacement
12651         insert a replacement expression from SCCVN if available.
12652         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12653         (struct vn_ssa_aux): Add needs_insertion flag.
12654         * tree-ssa-sccvn.c (may_insert): New global flag.
12655         (copy_reference_ops_from_ref): Value-number union member access
12656         based on its size, not type and member if insertion is allowed.
12657         (visit_reference_op_load): For a weak match from union type
12658         punning lookup a view-converted value and insert a SSA_NAME
12659         for that value if that is not found.
12660         (visit_use): Make dumps shorter.  Do not disallow value numbering
12661         SSA_NAMEs that are life over an abnormal edge to constants.
12662         (free_scc_vn): Release inserted SSA_NAMEs.
12663         (run_scc_vn): New flag to specify whether insertion is allowed.
12664         Process SSA_NAMEs in forward order.
12665         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12666         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12667         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12668         pointer type to/from integral types that do not change the
12669         precision to regular conversions.
12670
12671 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12672
12673         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12674         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12675         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12676         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12677         input arguments and the mode of return value.  Built-in functions
12678         that operate on whole 64-bit MMX register now use V1DI mode.
12679
12680 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12681             Olga Golovanevsky  <olga@il.ibm.com>
12682
12683         PR tree-optimization/35041
12684         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12685         to locate the right position in a statement.
12686
12687 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12688
12689         PR target/34000
12690         PR target/35553
12691         * config/i386/xmmintrin.h:  Change all static inline functions to
12692         extern inline and add __gnu_inline__ attribute.
12693         * config/i386/bmintrin.h: Ditto.
12694         * config/i386/smmintrin.h: Ditto.
12695         * config/i386/tmmintrin.h: Ditto.
12696         * config/i386/mmintrin-common.h: Ditto.
12697         * config/i386/ammintrin.h: Ditto.
12698         * config/i386/emmintrin.h: Ditto.
12699         * config/i386/pmmintrin.h: Ditto.
12700         * config/i386/mmintrin.h: Ditto.
12701         * config/i386/mm3dnow.h: Ditto.
12702
12703 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12704
12705         PR middle-end/35185
12706         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12707         (lower_omp_2): New function.
12708         (lower_omp_1, lower_omp): Rewritten.
12709
12710 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12711
12712         PR 35054
12713         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12714         with the phrase "Microsoft Windows compilers".
12715         (Push/Pop Macro Pragmas): New subsection. Document
12716         #pragma push_macro and pragma pop_macro.
12717
12718 2008-03-12  Paul Brook  <paul@codesourcery.com>
12719
12720         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12721
12722 2008-03-12  Paul Brook  <paul@codesourcery.com>
12723
12724         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12725         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12726         (thumb2_addsi_shortim): Rename ...
12727         (thumb2_addsi_short): ... to this.  Allow register operands.
12728         (thumb2_subsi_short): New pattern.
12729         (thumb2_one_cmplsi2_short,
12730         thumb2_negsi2_short): New patterns and peepholes.
12731
12732 2008-03-12  Paul Brook  <paul@codesourcery.com>
12733
12734         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12735
12736 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12737
12738         * config/i386/i386.md (int_cond): New code iterator.
12739         (fp_cond): Ditto.
12740         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12741         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12742         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12743         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12744         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12745         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12746         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12747         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12748
12749 2008-03-12  Paul Brook  <paul@codesourcery.com>
12750
12751         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12752         instead of {arm,thumb}_compute_save_reg_mask.
12753         (output_return_instruction): Ditto.
12754         (thumb_unexpanded_epilogue): Ditto.
12755         (thumb1_expand_prologue): Ditto.
12756         (thumb1_output_function_prologue): Ditto.
12757         (arm_set_return_address): Ditto.
12758         (thumb_set_return_address): Ditto.
12759         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12760         regs to achieve stack alignment.
12761         (thumb1_compute_save_reg_mask): Fix compiler warning.
12762         (arm_output_epilogue): Use offsets->saved_regs_mask.
12763         Adjust stack pointer by poping call clobered registers.
12764         (arm_expand_prologue): Use offsets->saved_regs_mask.
12765         Adjust stack pointer by pushing extra registers.
12766         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12767
12768 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12769
12770         PR tree-opt/35422
12771         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12772         conversion to the operands of a multiplication.
12773
12774 2008-03-12  Richard Guenther  <rguenther@suse.de>
12775
12776         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12777         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12778         * timevar.def (TV_TREE_PHIPROP): Add.
12779         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12780         pass description.  Use TV_TREE_PHIPROP.
12781         * tree-ssa-forwprop.c: Remove phiprop code.
12782
12783 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12784
12785         PR middle-end/35549
12786         * omp-low.c (maybe_lookup_decl): Constify first argument.
12787         (use_pointer_for_field): Change last argument from bool to
12788         omp_context *.  Disallow shared copy-in/out in nested
12789         parallel if decl is shared in outer parallel too.
12790         (build_outer_var_ref, scan_sharing_clauses,
12791         lower_rec_input_clauses, lower_copyprivate_clauses,
12792         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12793
12794 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12795             Ira Rosen  <irar@il.ibm.com>
12796
12797         * tree-vectorizer.c (free_stmt_vec_info): New function.
12798         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12799         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12800         * tree-vectorizer.h (free_stmt_vec_info): Declare.
12801         * tree-vect-transform.c (vectorizable_conversion): Free
12802         vec_oprnds0 if it was allocated.
12803         (vect_permute_store_chain): Remove unused VECs.
12804         (vectorizable_store): Free VECs that are allocated in the..
12805         function.
12806         (vect_transform_strided_load, vectorizable_load): Likewise.
12807         (vect_remove_stores): Simplify the code.
12808         (vect_transform_loop): Move code to vect_remove_stores().
12809         Call vect_remove_stores() and free_stmt_vec_info().
12810
12811 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12812
12813         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12814         TARGET_HPUX.  Revise comment.
12815         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12816         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12817         Use sr4 variant of `be' instruction when not generating PIC code.
12818         (attr_length_call): Adjust for above change.
12819
12820 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12821
12822         * ipa-reference.c (static_execute): Remove module_statics_const and
12823         associated setting code.
12824
12825 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12826
12827         PR target/35540
12828         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12829         predicate for operand 1.
12830         (paritysi2_cmp): Use register_operand predicate for operand 2.
12831         Use earlyclobber modifier for operand 1.  Remove support for
12832         memory operands.
12833         (paritydi2_cmp): Use register_operand predicate for operand 3.
12834         Use earlyclobber modifier for operand 1.  Remove support for
12835         memory operands.
12836
12837 2008-03-11  Paul Brook  <paul@codesourcery.com>
12838             Vladimir Prus  <vladimir@codesourcery.com>
12839
12840         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12841         (arm_compute_save_reg0_reg12_mask): Always
12842         check if register 11 must be saved.  Always safe hard frame pointer
12843         when frame_pointer_needeed.
12844         (arm_compute_save_reg_mask): Save IP and PC
12845         only with apcs frames.
12846         (arm_output_epilogue): Adjust Thumb2 codepath to
12847         be also invoked and work for ARM non-apcs frames.
12848         (arm_expand_prologue): Don't bother saving IP
12849         for non-apcs frame, since it's not clobbered by
12850         prologue code.  Implement non-apcs frame
12851         layout.
12852
12853 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12854
12855         PR rtl-optimization/35281
12856         * expr.c (convert_move): Use a new pseudo for the intermediate
12857         from_mode->word_mode result.
12858
12859 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12860
12861         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12862         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12863         * toplev.c (compile_file): Don't call it.
12864
12865 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12866
12867         PR middle-end/35526
12868         * expr.c (store_expr): Call emit_block_move if the mode
12869         of "temp" RTX is BLKmode.
12870
12871 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12872             Richard Guenther  <rguenther@suse.de>
12873
12874         PR tree-optimization/31358
12875         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12876         the step with a NULL_TREE.
12877         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12878         to sizetype if type is a pointer type.
12879         (add_candidate_1): Don't convert the base and step to
12880         the generic type if the orginal type is a pointer type.
12881         (add_iv_value_candidates): Use sizetype for the step
12882         if type is a pointer type.
12883         (cand_value_at): Likewise.
12884         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12885         for pointer types.
12886         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12887         Don't convert the tem affine to the type.
12888         (add_elt_to_tree): Use sizetype for the step if a pointer.
12889         Use POINTER_PLUS_EXPR for pointers.
12890         (aff_combination_to_tree): Use sizetype for the step if a
12891         pointer.
12892
12893 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
12894
12895         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12896         Remove commutativity hint.
12897
12898 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
12899
12900         PR c/35438
12901         PR c/35439
12902         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12903         errorneous type.  Check that v is a VAR_DECL.
12904
12905         PR middle-end/35099
12906         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12907
12908 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12909
12910         PR tree-optimization/35494
12911         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12912         may be overriden at link and run time.
12913
12914 2008-03-10  Richard Guenther  <rguenther@suse.de>
12915
12916         PR tree-optimization/34677
12917         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12918         (poolify_tree): Likewise.
12919         (modify_expr_template): Likewise.
12920         (poolify_modify_stmt): Likewise.
12921         (insert_fake_stores): Handle all component-ref style stores
12922         in addition to INDIRECT_REF.  Also handle complex types.
12923         Do not poolify the inserted load.
12924         (realify_fake_stores): Do not rebuild the tree but only
12925         make it a SSA_NAME copy.
12926         (init_pre): Remove initialzation of modify_expr_template.
12927         Do not allocate modify_expr_node_pool.
12928         (fini_pre): Do not free modify_expr_node_pool.
12929
12930 2008-03-10  Paul Brook  <paul@codesourcery.com>
12931
12932         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12933         to avoid conflicts.
12934
12935 2008-03-10  Paul Brook  <paul@codesourcery.com>
12936             Mark Shinwell  <shinwell@codesourcery.com>
12937
12938         * config/arm/cortex-r4.md: New.
12939         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12940         insn attributes.
12941         * config/arm/arm.md: Include cortex-r4.md.
12942         (insn): Add smmls, sdiv and udiv values.
12943         (generic_sched): Don't use generic scheduling for Cortex-R4.
12944         (arm_issue_rate): New function.
12945         (TARGET_SCHED_ISSUE_RATE): Define.
12946
12947 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
12948
12949         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12950
12951 2008-03-10  Richard Guenther  <rguenther@suse.de>
12952
12953         * tree-ssa-pre.c (get_sccvn_value): Simplify.
12954         (compute_avail): Do not add stmt uses to AVAIL_OUT.
12955
12956 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
12957
12958         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12959         Set default to true.
12960
12961 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12962
12963         * c.opt (Wsynth): Deprecate.
12964         * doc/invoke.texi (Option Summary, Warning Options): Document
12965         -Wno-format-contains-nul.
12966
12967 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
12968
12969         PR target/35496
12970         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12971         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12972
12973 2008-03-09  Ira Rosen  <irar@il.ibm.com>
12974
12975         * config/rs6000/rs6000.c (builtin_description): Rename vector
12976         left shift operations.
12977         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12978         (altivec_vsl<VI_char>): Rename to ...
12979         (ashl<mode>3): ... new name.
12980         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12981         gen_ashlv4si3.
12982         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12983
12984 2008-03-08  Richard Guenther  <rguenther@suse.de>
12985
12986         * coverage.h (tree_coverage_counter_addr): Declare.
12987         * coverage.c (tree_coverage_counter_addr): New function.
12988         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12989         before using again.
12990         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12991         (tree_gen_one_value_profiler): Likewise.
12992         (tree_gen_ic_profiler): Likewise.
12993         (tree_gen_average_profiler): Likewise.
12994         (tree_gen_ior_profiler): Likewise.
12995
12996 2008-03-08  Richard Guenther  <rguenther@suse.de>
12997
12998         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12999         (vn_binary_op_insert): Likewise.
13000         (vn_unary_op_lookup): Likewise.
13001         (vn_unary_op_insert): Likewise.
13002         (vn_nary_op_lookup): Declare.
13003         (vn_nary_op_insert): Likewise.
13004         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13005         and binary hashes, use a single obstack for unary_op_pool
13006         and binary_op_pool.
13007         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13008         a single struct vn_nary_op_s.  Store tree code length and
13009         a variable number of operands.
13010         (struct vn_reference_op_struct): Remove unused op2.
13011         (vn_reference_op_eq): Do not compare op2.
13012         (vn_reference_op_compute_hash): Do not compute hash of op2.
13013         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13014         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13015         with vn_nary_op_compute_hash.
13016         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13017         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13018         vn_nary_op_lookup.
13019         (vn_unary_op_insert, vn_binary_op_insert): Replace with
13020         vn_nary_op_insert.
13021         (visit_unary_op): Call nary functions.
13022         (visit_binary_op): Likewise.
13023         (process_scc): Adjust for struct vn_tables_s changes.
13024         (allocate_vn_table): Likewise.
13025         (free_vn_table): Likewise.
13026         * tree-vn.c (vn_add): Call nary functions.
13027         (vn_lookup): Likewise.
13028
13029 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
13030
13031         PR target/35498
13032         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13033         wdst back after sync_compare_and_swapqhi_internal.
13034
13035 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
13036
13037         PR target/22152
13038         * config/i386/i386-modes.def (V1DI): New vector mode.
13039         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13040         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13041         (MMXMODE248): Ditto.
13042         (MMXMODE): Add V1DI mode.
13043         (mmxvecsize): Change DI mode to V1DI mode.
13044         ("mov<mode>): Use MMXMODEI8 mode iterator.
13045         ("*mov<mode>_internal_rex64"): Ditto.
13046         ("*mov<mode>_internal"): Ditto.
13047         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
13048         ("mmx_sub<mode>3"): Ditto.
13049         ("mmx_adddi3"): Remove insn pattern.
13050         ("mmx_subdi3"): Ditto.
13051         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13052         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13053         ("mmx_ashl<mode>3"): Ditto.
13054         ("mmx_lshrdi3"): Remove insn pattern.
13055         ("mmx_ashldi3"): Ditto.
13056         * config/i386/i386.c (classify_argument): Handle V1DImode.
13057         (function_arg_advance_32): Ditto.
13058         (function_arg_32): Ditto.
13059         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13060         mmx_addv1di3 insn pattern.
13061         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13062         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13063         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13064         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13065         Remove definitions of built-in functions.
13066         (V1DI_type_node): New node.
13067         (v1di_ftype_v1di_int): Ditto.
13068         (v1di_ftype_v1di_v1di): Ditto.
13069         (v2si_ftype_v2si_si): Ditto.
13070         (v4hi_ftype_v4hi_di): Remove node.
13071         (v2si_ftype_v2si_di): Ditto.
13072         (ix86_init_mmx_sse_builtins): Handle V1DImode.
13073         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13074         Redefine builtins using def_builtin_const with *_ftype_*_int node.
13075         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13076         Add new builtins using def_builtin_const.
13077         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13078         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13079         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13080         * config/i386/mmintrin.h (__v1di): New typedef.
13081         (_mm_add_si64): Cast arguments to __v1di type.
13082         (_mm_sub_si64): Ditto.
13083         (_mm_sll_pi16): Cast __count to __v4hi type.
13084         (_mm_sll_pi32): Cast __count to __v2si type.
13085         (_mm_sll_si64): Cast arguments to __v1di type.
13086         (_mm_srl_pi16): Cast __count to __v4hi type.
13087         (_mm_srl_pi32): Cast __count to __v2si type.
13088         (_mm_srl_si64): Cast arguments to __v1di type.
13089         (_mm_sra_pi16): Cast __count to __v4hi type.
13090         (_mm_sra_pi32): Cast __count to __v2si type.
13091         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13092         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13093         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13094         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13095         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13096         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13097         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13098         (_mm_srai_pi32): Use __builtin_ia32_psradi.
13099         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13100         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13101         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13102         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13103
13104 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
13105
13106         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13107
13108 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
13109
13110         PR target/35373
13111         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13112         reg+const addressing for Altivec modes.  Don't generate reg+reg
13113         addressing for TFmode or TDmode quantities.
13114
13115 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
13116
13117         * c-common.c (vector_types_convertible_p): Call langhook
13118         instead of comptypes.
13119
13120 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13121
13122         PR tree-opt/35402
13123         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13124         integral and scalar float variables which have a
13125         NULL DECL_INITIAL.
13126
13127 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
13128
13129         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13130         dwarf_register_span hook when emitting unwind information for
13131         register-to-memory saves.
13132         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13133         (rs6000_frame_related): Remove call to spe_synthesize_frame.
13134
13135 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13136
13137         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13138         for the same VAR_DECL.
13139
13140 2008-03-06  Tom Tromey  <tromey@redhat.com>
13141
13142         * treelang: Delete.
13143         * doc/standards.texi (Standards): Don't mention treelang.
13144         * doc/invoke.texi (Overall Options): Don't mention treelang.
13145         * doc/install.texi (Prerequisites): Don't mention bison or
13146         treelang.
13147         (Configuration): Don't mention treelang.
13148         (Building): Likewise.
13149         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13150
13151 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13152
13153         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13154         word-extractions out of a multi-word object.
13155
13156 2008-03-06  Richard Guenther  <rguenther@suse.de>
13157
13158         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13159         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13160         result type and precision.
13161         * expr.c (get_inner_reference): Set unsignedp based on the result
13162         type of BIT_FIELD_REF.
13163         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13164         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13165         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13166         for BIT_FIELD_REF.
13167         (sra_build_assignment): Likewise.
13168         (sra_build_elt_assignment): Likewise.
13169         (sra_explode_bitfield_assignment): Likewise.
13170         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13171         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13172         set BIT_FIELD_REF_UNSIGNED.
13173         (vectorizable_load): Likewise.
13174
13175 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13176
13177         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13178         at bb start.
13179
13180 2008-03-06  Richard Guenther  <rguenther@suse.de>
13181
13182         * alias.c (struct alias_set_entry): Move has_zero_child field
13183         to pack with alias_set.
13184
13185 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13186
13187         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13188         32bit host.
13189
13190 2008-03-05  Ian Lance Taylor  <iant@google.com>
13191
13192         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13193
13194 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13195
13196         * fwprop.c (update_df): Support width and offset parameters of
13197         df_ref_create.
13198         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13199         global_conflicts): Change DF_REF_EXTRACT to either
13200         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13201         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13202         * df-scan.c (df_ref_record, df_defs_record,
13203         df_ref_create_structure, df_def_record_1, df_uses_record,
13204         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13205         df_bb_refs_collect, df_entry_block_defs_collect,
13206         df_exit_block_uses_collect): Support new width and offset fields.
13207         (ref_extract_pool): New storage pool.
13208         (df_free_ref): New function.
13209         (df_reg_chain_unlink, df_free_collection_rec,
13210         df_sort_and_compress_refs): Call df_free_ref.
13211         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13212         of df_ref_extract.
13213         (df_ref_create_structure): Allocate df_ref_extract if offset and
13214         width fields are used.
13215         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13216         (df_uses_record): Get offset and width from ZERO_EXTRACT 
13217         and SIGN_EXTRACT.
13218         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13219         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13220         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13221         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13222         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13223         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13224         (df_ref_extract): New structure.
13225         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13226         (df_ref_create): Add width and offset parameters.
13227         
13228 2008-03-05  Richard Guenther  <rguenther@suse.de>
13229
13230         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13231         Use ranges_overlap_p.
13232         (offset_overlaps_with_access): Rename
13233         to ranges_overlap_p and move ...
13234         * tree-flow-inline.h (ranges_overlap_p): ... here.
13235
13236         * tree.h (get_inner_reference, handled_component_p): Update
13237         comments.
13238
13239         * tree.h (record_component_aliases, get_alias_set,
13240         alias_sets_conflict_p, alias_sets_must_conflict_p,
13241         objects_must_conflict_p): Move declarations ...
13242         * alias.h (record_component_aliases, get_alias_set,
13243         alias_sets_conflict_p, alias_sets_must_conflict_p,
13244         objects_must_conflict_p): ... here.
13245         Include coretypes.h.
13246         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13247
13248 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13249
13250         * cfg.c: Include tree-flow.h.
13251         (remove_edge_raw): Call redirect_edge_var_map_clear.
13252         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13253         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13254         (redirect_edge_var_map_result): New.
13255         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13256         PENDING_STMT use with redirect_edge_var_map_*.
13257         * tree-ssa.c (edge_var_maps): New definition.
13258         (redirect_edge_var_map_add): New.
13259         (redirect_edge_var_map_clear): New.
13260         (redirect_edge_var_map_dup): New.
13261         (redirect_edge_var_map_vector): New.
13262         (redirect_edge_var_map_destroy): New.
13263         (ssa_redirect_edge): Replace PENDING_STMT use with
13264         redirect_edge_var_map_*.
13265         (flush_pending_stmts): Same.
13266         (delete_tree_ssa): Destroy edge var map.
13267         * tree-flow.h (struct _edge_var_map): New.
13268         Define edge_var_map vector type.
13269         Declare redirect_edge_var_map_* prototypes.
13270         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13271         * tree-cfg.c (reinstall_phi_args): Replace
13272         PENDING_STMT use with redirect_edge_var_map_*.
13273
13274 2008-03-05  Richard Guenther  <rguenther@suse.de>
13275
13276         PR tree-optimization/35472
13277         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13278         whose single use_stmt has a overlapping set of loaded and
13279         stored symbols as that use_stmt might be a noop assignment then.
13280
13281 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13282
13283         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13284
13285 2008-03-05  Richard Guenther  <rguenther@suse.de>
13286
13287         PR c++/35336
13288         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13289         should be constants.
13290         * tree-cfg.c (verify_expr): Verify it.
13291         * fold-const.c (fold_truthop): Remove code generating
13292         BIT_FIELD_REFs of structure bases.
13293         (fold_binary): Likewise.
13294         (fold_ternary): Position and size of BIT_FIELD_REFs are
13295         always host integers.
13296         (make_bit_field_ref): Remove.
13297         (optimize_bit_field_compare): Remove.
13298         (all_ones_mask_p): Remove.
13299
13300 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13301
13302         PR gcc/33009
13303         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13304         (split_block_and_df_analyze): New. Split basic block and rebuild
13305         dataflow.
13306         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13307         SPLIT_BLOCK.
13308         (split_pattern_seq): Likewise.
13309         (erase_matching_seqs): Likewise.
13310         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13311
13312 2008-03-04  Geoff Keating  <geoffk@apple.com>
13313
13314         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13315         declaration and code.
13316         (tree_invalid_nonnegative_warnv_p): Likewise.
13317
13318 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13319
13320         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13321         examples.  Truncate option-names then causing overfull hbox.
13322
13323 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13324
13325         PR target/35222
13326         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13327         on hpux10.
13328         * configure: Rebuilt.
13329
13330 2008-03-04  Rafael Espindola  <espindola@google.com>
13331
13332         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13333         (tree_unary_nonnegative_warnv_p): New.
13334         (tree_binary_nonnegative_warnv_p): New.
13335         (tree_single_nonnegative_warnv_p): New.
13336         (tree_invalid_nonnegative_warnv_p): New.
13337         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13338
13339 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13340
13341         PR 28322
13342         * opts.c (handle_option): Postpone 'unknown option' errors only for
13343         warning options.
13344
13345 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13346
13347         PR target/35453
13348         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13349         (_SIDD_XXX): This.
13350
13351 2008-03-04  Rafael Espindola  <espindola@google.com>
13352
13353         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13354         (tree_binary_nonzero_warnv_p): New.
13355         (tree_single_nonzero_warnv_p): New.
13356         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13357
13358 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13359
13360         PR middle-end/35456
13361         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13362         transformations for modes that have signed zeros.
13363         * ifcvt.c (noce_try_abs): Ditto.
13364
13365 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13366
13367         * config/i386/i386.c (override_options): Force
13368         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13369
13370 2008-03-04  Jan Hubicka  <jh@suse.cz>
13371
13372         PR c++/35262
13373         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13374         in last commit.
13375
13376 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13377
13378         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13379         label to probe the stack.
13380
13381 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13382
13383         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13384         (__gthr_win32_mutex_destroy): Declare.
13385         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13386         __gthr_win32_mutex_destroy.
13387         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13388
13389 2008-03-03  Jan Hubicka  <jh@suse.cz>
13390
13391         PR c++/35262
13392         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13393         aggressive on inlining cold calls.
13394
13395 2008-03-03  Richard Guenther  <rguenther@suse.de>
13396
13397         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13398         struct copies into the expression table.
13399         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13400         (try_to_simplify): Likewise.
13401         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13402         integral and pointer arguments which do not change the
13403         precision to NOP_EXPRs.
13404         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13405         VIEW_CONVERT_EXPR case.
13406
13407 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13408
13409         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13410         defined in a loop at depth 0 is invariant.
13411         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13412         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13413         be called at loop depth 0.
13414
13415 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13416
13417         PR driver/35420
13418         * gcc.c (process_command): Update copyright notice dates.
13419         * gcov.c (print_version): Likewise.
13420         * gcov-dump.c (print_version): Likewise.
13421         * mips-tfile.c (main): Likewise.
13422         * mips-tdump.c (main): Likewise.
13423
13424 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13425
13426         PR 24924
13427         * c-common.c (flag_permissive): Delete.
13428         (constant_expression_warnings): Check flags first.
13429         (constant_expression_error): New.
13430         * c-common.h (flag_permissive): Delete.
13431         (constant_expression_error): Declare.
13432         * flags.h (flag_permissive): Declare. Update description.
13433         * diagnostic.c (pedwarn): Update.
13434         (permerror): New.
13435         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13436         (permissive_error_kind): New.
13437         * toplev.c (flag_permissive): Define. Update description.
13438         * toplev.h (permissive_error_kind): Declare.
13439         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13440         (pedwarn_c90): Use pedantic_warning_kind.
13441         * c-opts.c (c_common_post_options): flag_permissive does not affect
13442         flag_pedantic_errors.
13443
13444 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13445
13446         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13447         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13448         __absvsi2, __absvDI2): Use unsigned arithmetic.
13449
13450 2008-03-02  Andi Kleen  <ak@suse.de>
13451             Richard Guenther  <rguenther@suse.de>
13452
13453         * struct-equiv.c: Remove file.
13454         * cfg_cleanup.c (condjump_equiv_p): Remove.
13455         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13456         (struct-equiv.o): Remove rule.
13457         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13458         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
13459         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13460
13461 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13462
13463         * ifcvt.c (noce_process_if_block): Try to handle only the then
13464         block if the else block exists but isn't suitable.
13465
13466 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13467
13468         PR gcc/35063
13469         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13470         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13471         regression from previous patch.
13472
13473 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13474
13475         PR gcc/35063
13476         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13477         implemented.
13478         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13479         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13480         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13481         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13482         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13483         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13484         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13485         (__gthread_mutex_destroy_function): Rename to
13486         __gthread_mutex_destroy.
13487         * gthr-dce.h (__gthread_mutex_destroy): Call
13488         pthread_mutex_destroy.
13489         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13490         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13491         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13492
13493 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13494
13495         * df-scan.c (df_ref_chain_change_bb): Simplify.
13496         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13497         set_block_for_insn if there's any change.
13498         * df.h ((df_insn_change_bb): Fix prototype.
13499         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13500         df_insn_change_bb, don't call set_block_for_insn.
13501         * emit-rtl.c (reorder_insns): Likewise.
13502         * haifa-sched.c (move_insn): Likewise.
13503
13504 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13505
13506         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13507
13508 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13509
13510         * tree-flow-inline.h (next_readonly_imm_use): Return
13511         NULL_USE_OPERAND_P after the end.
13512
13513 2008-03-01  Richard Guenther  <rguenther@suse.de>
13514
13515         PR tree-optimization/35411
13516         * tree-sra.c (sra_build_assignment): Split conversion to
13517         final type to a separate statement if we are not assigning
13518         to a register.
13519
13520 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13521
13522         * fold-const.c (fold_convertible_p): Correct the logic to follow
13523         that in fold_convert().
13524
13525 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13526
13527         PR c++/35315
13528         * tree-inline.c (build_duplicate_type): When we make a
13529         duplicate type, make it unique in the canonical types system.
13530
13531 2008-02-29  Tom Tromey  <tromey@redhat.com>
13532
13533         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13534         input_file_stack_history, input_file_stack_restored): Remove.
13535         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13536         * input.h (struct file_stack): Remove.
13537         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13538         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13539         Likewise.
13540         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13541         type.
13542         (diagnostic_last_module_changed): Add 'map' argument.
13543         (diagnostic_set_last_function): Likewise.
13544         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13545         line map, not input_file_stack.
13546         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13547
13548 2008-02-29  Paul Brook  <paul@codesourcery.com>
13549
13550         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13551
13552 2008-02-29  Paul Brook  <paul@codesourcery.com>
13553
13554         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13555
13556 2008-02-29  Richard Guenther  <rguenther@suse.de>
13557
13558         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13559         vn_lookup_or_add.
13560         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13561         value for comparing for a store match.
13562         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13563         (try_to_simplify): Do not do a full-blown reference lookup.
13564
13565 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13566
13567         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13568         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13569
13570         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13571
13572 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13573
13574         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13575         strides against cache sizes.
13576
13577 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13578
13579         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13580         constant to fpul.
13581
13582 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13583
13584         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13585         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13586         is smaller than the original promoted value.
13587         (simplify_subreg): If OP is a SUBREG, try to preserve its
13588         SUBREG_PROMOTED_VAR_P information.
13589
13590 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13591
13592         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13593         (VN_INFO_GET): Allocate new objects on the obstack.
13594         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13595         for rpo_numbers_temp, for consistency.
13596         (free_scc_vn): Free the obstack.
13597
13598 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13599
13600         * doc/invoke.texi: Document -ftree-loop-distribution.
13601         * tree-loop-distribution.c: New.
13602         * tree-pass.h (pass_loop_distribution): New.
13603         * graphds.h (struct graph): Add htab_t indices.
13604         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13605         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13606         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13607         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13608         * tree-data-ref.c (debug_data_dependence_relations): New.
13609         (dump_data_dependence_relation): Also print data references.
13610         (free_data_ref): Extern.
13611         (same_access_functions): Moved...
13612         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13613         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13614         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13615         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13616         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13617         (stmts_from_loop): Skip LABEL_EXPR.
13618         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13619         New.
13620         (build_rdg): Initialize rdg->indices htab.
13621         (free_rdg, stores_from_loop, ref_base_address,
13622         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13623         have_similar_memory_accesses_1, ref_base_address_1,
13624         remove_similar_memory_refs): New.
13625         * tree-data-ref.h: Depend on tree-chrec.h.
13626         (debug_data_dependence_relations, free_data_ref): Declared.
13627         (same_access_functions): ... here.
13628         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13629         New.
13630         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13631         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13632         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13633         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13634         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13635         rdg_vertex_for_stmt): Declared.
13636         (struct rdg_edge): Add level.
13637         (RDGE_LEVEL): New.
13638         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13639         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13640         Declared.
13641         (rdg_has_similar_memory_accesses): New.
13642         * tree-vect-analyze.c: Remove unused static decls.
13643         * lambda.h (dependence_level): New.
13644         * common.opt (ftree-loop-distribution): New.
13645         * tree-flow.h (mark_virtual_ops_in_bb, 
13646         slpeel_tree_duplicate_loop_to_edge_cfg,
13647         rename_variables_in_loop): Declared.
13648         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13649         (OBJS-common): Add tree-loop-distribution.o.
13650         (tree-loop-distribution.o): New rule.
13651         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13652         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13653         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13654
13655 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13656
13657         PR target/33963
13658         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13659         other than structures and unions.
13660
13661 2008-02-28  Richard Guenther  <rguenther@suse.de>
13662
13663         Revert:
13664         2008-02-26  Richard Guenther  <rguenther@suse.de>
13665
13666         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13667         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13668         (lookup_decl_from_uid): Declare.
13669         (remove_decl_from_map): Likewise.
13670         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13671         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13672         (decl_for_uid_map): New global hashtable mapping DECL_UID
13673         to the decl tree.
13674         (init_ttree): Allocate it.
13675         (insert_decl_to_uid_decl_map): New helper function.
13676         (make_node_stat): Insert new decls into the map.
13677         (copy_node_stat): Likewise.
13678         (lookup_decl_from_uid): New function.
13679         (remove_decl_from_map): Likewise.
13680         (print_decl_for_uid_map_statistics): New helper.
13681         (dump_tree_statistics): Call it.
13682
13683         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13684         (referenced_var_iterator): Adjust.
13685         (FOR_EACH_REFERENCED_VAR): Adjust.
13686         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13687         (num_referenced_vars): Adjust.
13688         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13689         (first_referenced_var): Remove.
13690         (end_referenced_vars_p): Likewise.
13691         (next_referenced_var): Likewise.
13692         (referenced_var_iterator_set): New helper function.
13693         * tree-dfa.c (referenced_var_lookup): Adjust.
13694         (referenced_var_check_and_insert): Likewise.
13695         (remove_referenced_var): Likewise.
13696         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13697         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13698         (verify_call_clobbering): Likewise.
13699         (verify_memory_partitions): Likewise.
13700         (init_tree_ssa): Allocate bitmap instead of hashtable for
13701         referenced_vars.
13702         (delete_tree_ssa): Adjust.
13703         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13704         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13705         (compute_tag_properties): Likewise.
13706         (set_initial_properties): Likewise.
13707         (find_partition_for): Likewise.
13708         (update_reference_counts): Likewise.
13709         (dump_may_aliases_for): Likewise.
13710         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13711         (add_call_clobber_ops): Likewise.
13712         (add_call_read_ops): Likewise.
13713         (get_asm_expr_operands): Likewise.
13714         * tree-into-ssa.c (dump_decl_set): Likewise.
13715         (update_ssa): Likewise.
13716         * tree-sra.c (scan_function): Likewise.
13717         (decide_instantiations): Likewise.
13718         (scalarize_parms): Likewise.
13719         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13720         (dsa_named_for): Likewise.
13721         * tree-ssa-structalias.c (update_alias_info): Likewise.
13722         (merge_smts_into): Likewise.
13723
13724 2008-02-27  David Daney  <ddaney@avtrex.com>
13725
13726         PR target/34409
13727         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13728         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13729         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13730         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13731         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13732
13733 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13734
13735         PR target/25477
13736         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13737         (BUILT_IN_NEXTTOWARD): Remove.
13738         (BUILT_IN_NEXTTOWARDF): Ditto.
13739         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13740         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13741
13742 2008-02-27  Tom Tromey  <tromey@redhat.com>
13743
13744         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13745         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13746
13747 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13748
13749         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13750         update the respective field on newdecl.
13751
13752 2008-02-27  Revital Eres  <eres@il.ibm.com>
13753
13754         PR rtl-optimization/34999
13755         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13756         crossing edges that ends with a call insn.
13757         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13758         call insn and clear the EDGE_CROSSING flag of the crossing edge
13759         when fixing fallthru edges.
13760
13761 2008-02-27  Richard Guenther  <rguenther@suse.de>
13762
13763         PR middle-end/35390
13764         * fold-const.c (fold_unary): Return the correct argument,
13765         converted to the result type.
13766
13767 2008-02-27  Richard Guenther  <rguenther@suse.de>
13768
13769         PR middle-end/34971
13770         * expr.c (expand_expr_real_1): Assert on rotates that operate
13771         on partial modes.
13772         * fold-const.c (fold_binary): Use the types precision, not the
13773         bitsize of the mode if folding rotate expressions.  Build rotates
13774         only for full modes.
13775
13776 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13777
13778         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13779         and CPP_PRAGMA_EOL.
13780         * c-pragma.c (pragma_ns_name): New typedef.
13781         (registered_pp_pragmas): New variable.
13782         (c_pp_lookup_pragma): New function.
13783         (c_register_pragma_1): If flag_preprocess_only, do nothing
13784         for non-expanded pragmas, for expanded ones push pragma's
13785         namespace and name into registered_pp_pragmas vector.
13786         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13787         flag_preprocess_only, don't register GCC pch_preprocess
13788         pragma if flag_preprocess_only.
13789         * c-opts.c (c_common_init): Call init_pragma even if
13790         flag_preprocess_only.
13791         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13792         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13793         cpp_register_pragma if flag_preprocess_only.
13794
13795 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13796
13797         PR c/28800
13798         * c-parser.c (c_parser_translation_unit): Warn for empty
13799         translation unit, not empty source file.
13800
13801 2008-02-26  Paul Brook  <paul@codesourcery.com>
13802
13803         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13804         operand for Thumb-2.
13805         * config/arm/arm.h (reg_class): Add CORE_REGS.
13806         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13807         (BASE_REG_CLASS): Use CORE_REGS.
13808         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13809         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13810         (REGNO_OK_FOR_INDEX_P): Exclude SP.
13811         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
13812         ARM_REGNO_OK_FOR_INDEX_P.
13813         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13814         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13815         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13816         (ldm/stm peepholes): Ditto.
13817         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13818         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13819         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13820         * config/arm/constraints.md: Enable "k" constraint on ARM.
13821
13822 2008-02-27  Ben Elliston  <bje@au.ibm.com>
13823
13824         * config/rs6000/rs6000.c: Annotate cache line size field in all
13825         instances of struct processor_costs.
13826
13827 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
13828
13829         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13830         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13831         jump_bypass): New counters.
13832         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13833         * dce.c (gate_ud_dce): Same.
13834         (gate_fast_dce): Same.
13835         * dse.c (gate_dse1): New function.
13836         (gate_dse2): New function.
13837         (gate_dse): Merge results of new gate functions.
13838         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13839         (gate_handle_jump_bypass): Add dbg_cnt.
13840         (gate_handle_gcse): Add dbg_cnt.
13841         * ifcvt.c (gate_handle_if_conversion): Same.
13842         (gate_handle_if_after_combine): Same.
13843         (gate_handle_if_after_reload): Same.
13844         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13845
13846 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
13847
13848         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13849         line sizes.
13850         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13851
13852 2008-02-26  Jason Merrill  <jason@redhat.com>
13853
13854         PR c++/35315
13855         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
13856         alone if it's the naming decl for the type's main variant.
13857
13858 2008-02-26  Tom Tromey  <tromey@redhat.com>
13859
13860         * system.h (USE_MAPPED_LOCATION): Poison.
13861         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13862         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13863         (make_goto_expr_edges): Likewise.
13864         (remove_bb): Likewise.
13865         (execute_warn_function_return): Likewise.
13866         * basic-block.h (struct edge_def) <goto_locus>: Change type to
13867         location_t.
13868         * c-common.c (fname_decl): Remove old location code.
13869         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13870         location code.
13871         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13872         variant.
13873         (ASM_INPUT_SOURCE_LOCATION): Likewise.
13874         (gen_rtx_ASM_INPUT): Likewise.
13875         (gen_rtx_ASM_INPUT_loc): Likewise.
13876         (get_rtx_asm_OPERANDS): Remove.
13877         * cfglayout.c (insn_locators_alloc): Remove old location code.
13878         (set_curr_insn_source_location): Likewise.
13879         (curr_insn_locator): Likewise.
13880         * print-tree.c (print_node): Remove old location code.
13881         * tree-mudflap.c (mf_varname_tree): Remove old location code.
13882         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13883         * cfgexpand.c (expand_gimple_cond_expr): Don't use
13884         location_from_locus.
13885         (construct_exit_block): Remove old location code.
13886         * emit-rtl.c (force_next_line_note): Remove old location code.
13887         * profile.c (branch_prob): Remove old location code.
13888         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13889         LOC_LINE): Remove old-location variants.
13890         * langhooks.c (lhd_print_error_function): Remove old location
13891         code.
13892         * configure, config.in: Rebuilt.
13893         * configure.ac (--enable-mapped-location): Remove.
13894         * c-decl.c (c_init_decl_processing): Remove old location code.
13895         (finish_function): Likewise.
13896         * recog.c (decode_asm_operands): Remove old location code.
13897         * c-pch.c (c_common_read_pch): Remove old location code.
13898         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13899         variants.
13900         * gimple-low.c (lower_function_body): Remove old location code.
13901         * toplev.c (unknown_location): Remove.
13902         (push_srcloc): Remove old-location variant.
13903         (process_options): Remove old location code.
13904         (lang_dependent_init): Likewise.
13905         * input.h (UNKNOWN_LOCATION): Move definition.
13906         (location_t): Undeprecate.
13907         (source_locus): Remove.
13908         (location_from_locus): Remove.
13909         (struct location_s): Remove.
13910         Remove all old-location code.
13911         (input_line, input_filename): Remove.
13912         * final.c (final_scan_insn): Remove old location code.
13913         * diagnostic.c (diagnostic_build_prefix): Remove
13914         USE_MAPPED_LOCATION test.
13915         * tree.h (gimple_stmt) <locus>: Now a location_t.
13916         (tree_exp) <locus>: Likewise.
13917         (DECL_IS_BUILTIN): Remove old-location variant.
13918         (annotate_with_file_line, annotate_with_locus): Likewise.
13919         (expr_locus, set_expr_locus): Update.
13920         * tree.c (build1_stat): Remove old location code.
13921         (last_annotated_node): Remove.
13922         (annotate_with_file_line): Remove old-location variant.
13923         (annotate_with_locus): Likewise.
13924         (expr_location): Remove old location code.
13925         (set_expr_location): Likewise.
13926         (expr_has_location): Likewise.
13927         (expr_locus): Likewise.
13928         (set_expr_locus): Likewise.
13929         (expr_filename): Don't use location_from_locus.
13930         (expr_lineno): Likewise.
13931         * rtl-error.c (location_for_asm): Remove old location code.
13932         * c-lex.c (cb_line_change): Remove old location code.
13933         (fe_file_change): Likewise.
13934         (cb_def_pragma): Likewise.
13935         (c_lex_with_flags): Likewise.
13936         * gengtype.c (do_typedef): Don't special-case location types.
13937         (define_location_structures): Remove.
13938         (main): Don't call define_location_structures.
13939         * tree-pretty-print.c (dump_implicit_edges): Remove old location
13940         code.
13941
13942 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13943
13944         PR 26264
13945         * builtins.def (BUILT_IN_STDARG_START): Remove.
13946         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13947         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13948         * tree-inline.c (inline_forbidden_p_1): Likewise.
13949         
13950 2008-02-26  Richard Guenther  <rguenther@suse.de>
13951
13952         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13953         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13954         (lookup_decl_from_uid): Declare.
13955         (remove_decl_from_map): Likewise.
13956         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13957         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13958         (decl_for_uid_map): New global hashtable mapping DECL_UID
13959         to the decl tree.
13960         (init_ttree): Allocate it.
13961         (insert_decl_to_uid_decl_map): New helper function.
13962         (make_node_stat): Insert new decls into the map.
13963         (copy_node_stat): Likewise.
13964         (lookup_decl_from_uid): New function.
13965         (remove_decl_from_map): Likewise.
13966         (print_decl_for_uid_map_statistics): New helper.
13967         (dump_tree_statistics): Call it.
13968
13969         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13970         (referenced_var_iterator): Adjust.
13971         (FOR_EACH_REFERENCED_VAR): Adjust.
13972         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13973         (num_referenced_vars): Adjust.
13974         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13975         (first_referenced_var): Remove.
13976         (end_referenced_vars_p): Likewise.
13977         (next_referenced_var): Likewise.
13978         (referenced_var_iterator_set): New helper function.
13979         * tree-dfa.c (referenced_var_lookup): Adjust.
13980         (referenced_var_check_and_insert): Likewise.
13981         (remove_referenced_var): Likewise.
13982         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13983         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13984         (verify_call_clobbering): Likewise.
13985         (verify_memory_partitions): Likewise.
13986         (init_tree_ssa): Allocate bitmap instead of hashtable for
13987         referenced_vars.
13988         (delete_tree_ssa): Adjust.
13989         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13990         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13991         (compute_tag_properties): Likewise.
13992         (set_initial_properties): Likewise.
13993         (find_partition_for): Likewise.
13994         (update_reference_counts): Likewise.
13995         (dump_may_aliases_for): Likewise.
13996         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13997         (add_call_clobber_ops): Likewise.
13998         (add_call_read_ops): Likewise.
13999         (get_asm_expr_operands): Likewise.
14000         * tree-into-ssa.c (dump_decl_set): Likewise.
14001         (update_ssa): Likewise.
14002         * tree-sra.c (scan_function): Likewise.
14003         (decide_instantiations): Likewise.
14004         (scalarize_parms): Likewise.
14005         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14006         (dsa_named_for): Likewise.
14007         * tree-ssa-structalias.c (update_alias_info): Likewise.
14008         (merge_smts_into): Likewise.
14009
14010 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14011
14012         PR 34351
14013         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14014         * c-opts.c (c_common_handle_option): Wall enables
14015         Wvolatile-register-var.
14016         * common.opt: Move Wvolatile-register-var to...
14017         * c.opt: ...here.
14018         
14019 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14020
14021         * common.opt (Wlarger-than=): New.
14022         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14023         -Wlarger-than=.
14024         * opts.c (common_handle_option): Handle -Wlarger-than=.
14025         * optc-gen.awk: Likewise.
14026         * opth-gen.awk: Likewise.
14027         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14028         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14029         
14030 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14031
14032         * c-common.c (match_case_to_enum_1): Add appropriate
14033         OPT_W* parameter to warning.
14034         (c_do_switch_warnings): Likewise.
14035         * c-typeck.c (warning_init): Add one more parameter following
14036         'warning' function.
14037         (push_init_level): Update call to warning_init.
14038         (pop_init_level): Likewise.
14039         (add_pending_init): Likewise.
14040         (output_init_element: Likewise.
14041
14042 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14043
14044         PR 28322
14045         * toplev.c (toplev_main): If there are warnings or error, print
14046         errors for ignored options.
14047         * opts.c (ignored_options): New static variable.
14048         (postpone_unknown_option_error): New.
14049         (print_ignored_options): New.
14050         (handle_option): Postpone errors for unknown -Wno-* options.
14051         * opts.h (print_ignored_options): Declare.
14052         
14053 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14054
14055         * config/mips/mips.md (loadgp_blockage, blockage): Change type
14056         to "ghost".
14057
14058 2008-02-25  Richard Guenther  <rguenther@suse.de>
14059
14060         Revert:
14061         2008-02-25  Richard Guenther  <rguenther@suse.de>
14062
14063         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14064         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14065         (lookup_decl_from_uid): Declare.
14066         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14067         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14068         (decl_for_uid_map): New global hashtable mapping DECL_UID
14069         to the decl tree.
14070         (init_ttree): Allocate it.
14071         (insert_decl_to_uid_decl_map): New helper function.
14072         (make_node_stat): Insert new decls into the map.
14073         (copy_node_stat): Likewise.
14074         (lookup_decl_from_uid): New function.
14075         (print_decl_for_uid_map_statistics): New helper.
14076         (dump_tree_statistics): Call it.
14077
14078         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14079         (referenced_var_iterator): Adjust.
14080         (FOR_EACH_REFERENCED_VAR): Adjust.
14081         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14082         (num_referenced_vars): Adjust.
14083         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14084         (first_referenced_var): Remove.
14085         (end_referenced_vars_p): Likewise.
14086         (next_referenced_var): Likewise.
14087         (referenced_var_iterator_set): New helper function.
14088         * tree-dfa.c (referenced_var_lookup): Adjust.
14089         (referenced_var_check_and_insert): Likewise.
14090         (remove_referenced_var): Likewise.
14091         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14092         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14093         (verify_call_clobbering): Likewise.
14094         (verify_memory_partitions): Likewise.
14095         (init_tree_ssa): Allocate bitmap instead of hashtable for
14096         referenced_vars.
14097         (delete_tree_ssa): Adjust.
14098         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14099         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14100         (compute_tag_properties): Likewise.
14101         (set_initial_properties): Likewise.
14102         (find_partition_for): Likewise.
14103         (update_reference_counts): Likewise.
14104         (dump_may_aliases_for): Likewise.
14105         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14106         (add_call_clobber_ops): Likewise.
14107         (add_call_read_ops): Likewise.
14108         (get_asm_expr_operands): Likewise.
14109         * tree-into-ssa.c (dump_decl_set): Likewise.
14110         (update_ssa): Likewise.
14111         * tree-sra.c (scan_function): Likewise.
14112         (decide_instantiations): Likewise.
14113         (scalarize_parms): Likewise.
14114         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14115         (dsa_named_for): Likewise.
14116         * tree-ssa-structalias.c (update_alias_info): Likewise.
14117         (merge_smts_into): Likewise.
14118
14119 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14120
14121         PR fortran/29549
14122         * doc/invoke.texi (-fcx-limited-range): Document new option.
14123         * toplev.c (process_options): Handle -fcx-fortran-rules.
14124         * common.opt: Add documentation for -fcx-fortran-rules.
14125
14126 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14127
14128         PR c/35162
14129         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14130         actual behaviour and C99.
14131         
14132 2008-02-26  Ben Elliston  <bje@au.ibm.com>
14133
14134         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14135         (ASM_CPU_POWER6_SPEC): Likewise.
14136         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14137         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14138         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14139
14140 2008-02-25  Richard Guenther  <rguenther@suse.de>
14141
14142         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14143         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14144         (lookup_decl_from_uid): Declare.
14145         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14146         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14147         (decl_for_uid_map): New global hashtable mapping DECL_UID
14148         to the decl tree.
14149         (init_ttree): Allocate it.
14150         (insert_decl_to_uid_decl_map): New helper function.
14151         (make_node_stat): Insert new decls into the map.
14152         (copy_node_stat): Likewise.
14153         (lookup_decl_from_uid): New function.
14154         (print_decl_for_uid_map_statistics): New helper.
14155         (dump_tree_statistics): Call it.
14156
14157         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14158         (referenced_var_iterator): Adjust.
14159         (FOR_EACH_REFERENCED_VAR): Adjust.
14160         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14161         (num_referenced_vars): Adjust.
14162         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14163         (first_referenced_var): Remove.
14164         (end_referenced_vars_p): Likewise.
14165         (next_referenced_var): Likewise.
14166         (referenced_var_iterator_set): New helper function.
14167         * tree-dfa.c (referenced_var_lookup): Adjust.
14168         (referenced_var_check_and_insert): Likewise.
14169         (remove_referenced_var): Likewise.
14170         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14171         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14172         (verify_call_clobbering): Likewise.
14173         (verify_memory_partitions): Likewise.
14174         (init_tree_ssa): Allocate bitmap instead of hashtable for
14175         referenced_vars.
14176         (delete_tree_ssa): Adjust.
14177         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14178         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14179         (compute_tag_properties): Likewise.
14180         (set_initial_properties): Likewise.
14181         (find_partition_for): Likewise.
14182         (update_reference_counts): Likewise.
14183         (dump_may_aliases_for): Likewise.
14184         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14185         (add_call_clobber_ops): Likewise.
14186         (add_call_read_ops): Likewise.
14187         (get_asm_expr_operands): Likewise.
14188         * tree-into-ssa.c (dump_decl_set): Likewise.
14189         (update_ssa): Likewise.
14190         * tree-sra.c (scan_function): Likewise.
14191         (decide_instantiations): Likewise.
14192         (scalarize_parms): Likewise.
14193         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14194         (dsa_named_for): Likewise.
14195         * tree-ssa-structalias.c (update_alias_info): Likewise.
14196         (merge_smts_into): Likewise.
14197
14198 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14199
14200         PR target/35258
14201         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14202         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14203         * alias.h (nonoverlapping_memrefs_p): Likewise.
14204
14205 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14206
14207         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14208         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14209         __emultls_get_address, __emultls_register_common,
14210         __floatundi?f, and _Unwind_GetIPInfo.
14211         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14212         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14213         (gen_regparm_prefix): Likewise.
14214         (i386_nlm_encode_section_info): Sync with
14215         config/i386/winnt.c:i386_pe_encode_section_info().
14216         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14217         i386_nlm_mangle_decl_assembler_name): New.
14218         (netware_override_options): New.
14219         * config/i386/netware.h (netware_override_options): Declare.
14220         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14221         (i386_nlm_mangle_decl_assembler_name): Declare.
14222         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14223
14224 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14225
14226         PR other/32948
14227         * c-decl.c (grokdeclarator): Remove unused local variables
14228         `typedef_type' and `type_as_written'.
14229         * bb-reorder.c
14230         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14231         unused local variable `has_hot_blocks'.
14232         (fix_crossing_conditional_branches): Remove unused local variable
14233         `prev_bb'.
14234         
14235 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14236
14237         PR middle-end/19984
14238         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14239         using DEF_C99_BUILTIN.
14240         (BUILT_IN_NANF): Ditto.
14241         (BUILT_IN_NANL): Ditto.
14242
14243 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14244             Revital Eres  <eres@il.ibm.com>
14245
14246         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14247         regarding the order of two dependent insns in the same row.
14248
14249 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14250
14251         * stor-layout.c (layout_decl): Do not bump the alignment of a
14252         bit-field to more than byte alignment if it is packed.
14253
14254 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14255
14256         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14257         e300c2 and e300c3.
14258
14259 2008-02-24  Diego Novillo  <dnovillo@google.com>
14260
14261         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14262
14263         PR 33738
14264         * tree-vrp.c (vrp_evaluate_conditional): With
14265         -Wtype-limits, emit a warning when comparing against a
14266         constant outside the natural range of OP0's type.
14267         * c.opt (Wtype-limits): Move ...
14268         * common.opt (Wtype-limits): ... here.
14269
14270 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14271
14272         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14273         * config/rs6000/e300c2c3.md: New file.
14274         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14275         e300c2 and e300c3.
14276         (rs6000_override_options): Add e300c2 and e300c3 cases to
14277         processor_target_table. Do not allow usage of Altivec or Spe
14278         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14279         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14280         * config/rs6000/rs6000.h (processor_type): Add
14281         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14282         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14283         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14284         and ppce300c3. Include e300c2c3.md.
14285
14286 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14287
14288         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14289         instead of TARGET_STRICT_ALIGN.
14290
14291 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * explow.c (memory_address): Assert that the generated address is
14294         valid.
14295
14296 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14297
14298         PR target/25477
14299         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14300         * config/darwin-ppc-ldouble-patch.def: New file.
14301         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14302         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14303         SUBTARGET_INIT_BUILTINS if defined.
14304         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14305         New functions.
14306
14307 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14308
14309         PR rtl-opt/33512
14310         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14311         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14312
14313 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14314
14315         PR pch/35027
14316         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14317         file" warning condtional on -Winvalid-PCH.
14318
14319 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14320
14321         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14322
14323 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14324
14325         PR target/22076
14326         PR target/34256 
14327         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14328         prevent reload from using MMX registers.
14329         (*mov<mode>_internal): Ditto.
14330         (*movv2sf_internal_rex64): Ditto.
14331         (*movv2sf_internal): Ditto.
14332
14333 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14334
14335         PR documentation/31569
14336         * doc/install.texi2html: Use makeinfo --no-number-sections.
14337
14338 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14339
14340         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14341         ensure that we can address an entire entity > 8 bytes.  Don't
14342         generate reg+reg addressing for such data.
14343
14344 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14345
14346         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14347         strings when optimizing for size, unless the target cares about
14348         alignment.
14349
14350 2008-02-22  Tom Tromey  <tromey@redhat.com>
14351
14352         * regclass.c (current_pass): Remove declaration.
14353
14354 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14355
14356         * config/avr/libgcc.S (__RAMPZ__): Define.
14357         (__do_copy_data): Add for devices with 128KB code memory.
14358
14359 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14360
14361         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14362         Use spe_abi.
14363         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14364
14365 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14366
14367         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14368         GENNONACR_REGS.
14369
14370 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14371
14372         PR c/19999
14373         * c-typeck.c (build_binary_op): Warn about floating point
14374         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14375
14376 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14377
14378         PR target/34526
14379         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14380         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14381         add vrsave.
14382         (rs6000_override_options): Set altivec_abi as default, not override,
14383         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14384         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14385         is used; use new member spe_abi.
14386         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14387         spe_abi and altivec_abi.
14388
14389 2008-02-22  Tomas Bily  <tbily@suse.cz>
14390
14391         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14392
14393 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14394
14395         PR bootstrap/35273
14396         * config.build (build_file_translate): Set to `CMD //c' only if
14397         it works.
14398         * Makefile.in (build_file_translate): Improve comment.
14399
14400 2008-02-21  Jan Hubicka  <jh@suse.cz>
14401
14402         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14403         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14404         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14405
14406 2008-02-21  Michael Matz  <matz@suse.de>
14407
14408         PR target/35264
14409         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14410
14411 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14412
14413         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14414         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14415         as insn constraint.
14416         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14417         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14418         SSE_VEC_FLOAT_MODE_P as insn constraint.
14419         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14420         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14421         sse4a_movntdf using MODEF mode iterator.
14422         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14423         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14424         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14425         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14426         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14427         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14428         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14429
14430 2008-02-21  Richard Guenther  <rguenther@suse.de>
14431
14432         * tree.def (PAREN_EXPR): New tree code.
14433         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14434         and PAREN_EXPR.
14435         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14436         * expr.c (expand_expr_real_1): Likewise.
14437         * tree-inline.c (estimate_num_insns_1): Likewise.
14438         * tree-complex.c (expand_complex_move): Likewise.
14439         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14440         as plain x.
14441
14442 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14443
14444         PR target/35225
14445         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14446
14447 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14448
14449         PR target/35190
14450         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14451
14452         * config/sh/sh.c (find_barrier): Don't go past
14453         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14454
14455 2008-02-20  DJ Delorie  <dj@redhat.com>
14456
14457         * config/h8300/h8300.md (insv): Force source operand to be a register.
14458
14459         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14460         as a jump, not as a plain insn.
14461         
14462 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14463
14464         * doc/invoke.texi (Warning Options): Add new option
14465         -Wframe-larger-than=.
14466         (-Wframe-larger-than): Document.
14467
14468         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14469         Add declarations for new option variables.
14470
14471         * final.c (final_start_function): Check the frame size
14472         before emission and issue a Wframe-larger-than warning.
14473
14474         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14475         Add definitions for new option variables.
14476         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14477
14478         * common.opt (Wframe-larger-than=): New option.
14479
14480 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14481
14482         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14483         (<sse>_div<mode>3): Ditto.
14484         (<sse>_vmdiv<mode>3): Ditto.
14485         (<sse>_vmsqrt<mode>2): Ditto.
14486         (*smax<mode>3): Ditto.
14487         (sse5_frcz<mode>2): Ditto.
14488         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14489         as insn constraint.
14490
14491 2008-02-20  Richard Guenther  <rguenther@suse.de>
14492
14493         PR middle-end/35265
14494         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14495         be happy with INTEGRAL_TYPE_P.
14496
14497 2008-02-20  Richard Guenther  <rguenther@suse.de>
14498
14499         * fold-const.c (split_tree): Associate floatig-point expressions
14500         if flag_associative_math is set.
14501
14502 2008-02-20  Richard Guenther  <rguenther@suse.de>
14503
14504         * tree.h (fold_real_zero_addition_p): Declare.
14505         * fold-const.c (fold_real_zero_addition_p): Export.
14506         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14507         floating-point operations with zero and one.
14508
14509 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14510
14511         * doc/install.texi: Correct references to CFLAGS, replacing them
14512         with BOOT_CFLAGS.  Document flags used during bootstrap for
14513         target libraries.
14514                                 
14515 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14516
14517         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14518         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14519         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14520         insn constraint.
14521         (smin<mode>3): Ditto from similar patterns.
14522         (smax<mode>3): Ditto.
14523         (*ieee_smin<mode>3): Ditto.
14524         (*ieee_smax<mode>3): Ditto.
14525         * config/i386/sse.md (sse): New mode attribute.
14526         (mov<mode>): Macroize expander from movv4sf and movv2df using
14527         SSEMODEF2P mode iterator.
14528         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14529         SSE_VEC_FLOAT_MODE_P as insn constraint.
14530         (storent<mode>): Ditto.
14531         (storent<mode>): Macroize expander from storentsf and storentdf using
14532         MODEF mode iterator.
14533         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14534         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14535         (abs<mode>2): Ditto from similar patterns.
14536         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14537         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14538         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14539         (<sse>_vmsqrt<mode>2): Ditto.
14540         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14541         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14542         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14543         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14544         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14545         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14546         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14547         insn constraint.
14548         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14549         iterator and SSE_FLOAT_MODE_P as insn constraint.
14550         (<sse>_ucomi): Ditto from similar patterns.
14551         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14552         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14553         SSE_VEC_FLOAT_MODE_P as insn constraint.
14554         (vcond<mode>): Ditto from similar patterns.
14555         (and<mode>3, *and<mode>3): Ditto.
14556         (<sse>_nand<mode>3): Ditto.
14557         (ior<mode>3, *ior<mode>3): Ditto.
14558         (xor<mode>3, *xor<mode>3): Ditto.
14559         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14560         iterator and SSE_FLOAT_MODE_P as insn constraint.
14561         (*nand<mode>3): Ditto from similar patterns.
14562         (*ior<mode>3): Ditto.
14563         (*xor<mode>3): Ditto.
14564
14565 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14566
14567         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14568         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14569         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14570
14571 2008-02-19  Jan Hubicka  <jh@suse.cz>
14572
14573         * predict.c (tree_bb_level_predictions): Remove variable next
14574         mistakely introduced by previous commit.
14575
14576 2008-02-19  Jan Hubicka  <jh@suse.cz>
14577
14578         * predict.c (predict_paths_leading_to): Rewrite.
14579         (predict_paths_for_bb): New.
14580         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14581
14582 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14583
14584         PR bootstrap/35218
14585         * Makefile.in (build_file_translate): New.
14586         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14587         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14588         * configure.ac (build_file_translate): Substitute it.
14589         * configure: Regenerate.
14590
14591 2008-02-19  Jan Hubicka  <jh@suse.cz>
14592
14593         PR rtl-optimization/34408
14594         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14595         invalid sharing.
14596
14597 2008-02-19  Jan Hubicka  <jh@suse.cz>
14598
14599         PR middle-end/28779
14600         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14601         call_expr.
14602
14603 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14604
14605         PR Ada/35186
14606         * config/i386/i386-modes.def: Revert the last DI alignment
14607         change until Ada people can look into it.
14608
14609 2008-02-19  Nick Clifton  <nickc@redhat.com>
14610
14611         * opts.c (print_specific_help): Fix typo in --help text.
14612
14613 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14614
14615         PR target/35239
14616         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14617         32-bit inline asm without asm alternatives for host GCC < 3.0.
14618
14619 2008-02-19  Richard Guenther  <rguenther@suse.de>
14620
14621         PR tree-optimization/34989
14622         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14623         Allow propagation to INDIRECT_REF if we can simplify only.
14624
14625 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14626
14627         * c-common.c (warn_for_collisions_1): Use appropriate option when
14628         warning.
14629
14630 2008-02-19  Nick Clifton  <nickc@redhat.com>
14631
14632         PR other/31349
14633         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14634         (handle_options): Fix indentation.
14635         (print_filtered_help): If no language-specific options were
14636         displayed tell the user how to list all the options supported by
14637         the language's front-end.
14638         (print_specific_help): Fix indentation and remove duplicate line.
14639         (common_handle_option): Handle the -v option.
14640         For --help enable the display of undocumented options if the -v
14641         switch has been included on the command line.
14642         For --help= check for overlaps in the arguments between the option
14643         classes and the language names and issue a warning when they
14644         cannot be disambiguated.
14645         * c.opt (v): Pass on to the common option handler.
14646
14647 2008-02-19  Revital Eres  <eres@il.ibm.com> 
14648
14649         * modulo-sched.c (sms_schedule): Change dump message when
14650         create_ddg function fails.
14651         (try_scheduling_node_in_cycle): Rename row to cycle.
14652         (print_partial_schedule): Rename CYCLE to ROW.
14653
14654 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14655             Zdenek Dvorak  <ook@ucw.cz>
14656
14657         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14658
14659 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14660
14661         PR target/33555
14662         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14663         (*x86_movdicc_0_m1_se): Ditto.
14664
14665 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14666
14667         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14668         (CMPtype): Define as __gcc_CMPtype.
14669         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14670         (CMPtype): Define as __gcc_CMPtype.
14671
14672 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14673
14674         Support valgrind 3.3 for --enable-checking=valgrind.
14675         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14676         here.
14677         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14678         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14679         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14680         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14681         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14682         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14683         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14684         respectively.
14685         * ggc-zone.c: Similar.
14686         * ggc-page.c: Similar.
14687
14688 2008-02-19  Paul Brook  <paul@codesourcery.com>
14689
14690         PR target/35071
14691         * config/arm/ieee754-df.S: Fix do_it typo.
14692         * config/arm/ieee754-sf.S: Fix do_it typo.
14693
14694 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14695
14696         PR target/35189
14697         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14698         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14699         (OPTION_MASK_ISA_SSE_SET): Likewise.
14700         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14701         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14702         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14703         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14704         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14705         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14706         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14707         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14708         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14709         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14710         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14711         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14712         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14713         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14714         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14715         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14716         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14717         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14718         (OPTION_MASK_ISA_SSE4): Removed.
14719         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14720         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14721         (override_options): Don't turn on implied SSE/MMX bits in
14722         ix86_isa_flags.
14723
14724 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14725
14726         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14727         32bit host.
14728
14729 2008-02-18  Joey Ye  <joey.ye@intel.com>
14730
14731         PR middle-end/34921
14732         * tree-nested.c (insert_field_into_struct): Set type alignment
14733         to field alignment if the former is less than the latter.
14734
14735 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14736
14737         * BASE-VER: Set to 4.4.0.
14738
14739 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14740
14741         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14742         * doc/cfg.texi: Likewise.
14743         * doc/extend.texi: Likewise.
14744         * doc/gty.texi: Likewise.
14745         * doc/invoke.texi: Likewise.
14746         * doc/loop.texi: Likewise.
14747         * doc/md.texi: Likewise.
14748         * doc/passes.texi: Likewise.
14749         * doc/rtl.texi: Likewise.
14750         * doc/sourcebuild.texi: Likewise.
14751         * doc/tm.texi: Likewise.
14752         * doc/tree-ssa.texi: Likewise.
14753
14754 2008-02-17  Richard Guenther  <rguenther@suse.de>
14755
14756         PR middle-end/35227
14757         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14758         without default definition.
14759
14760 2008-02-17  Richard Guenther  <rguenther@suse.de>
14761
14762         PR tree-optimization/35231
14763         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14764         if A | B != 1.
14765
14766 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14767
14768         Revert:
14769         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
14770         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14771         libgcc_cmp_return mode.
14772
14773 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14774
14775         PR c/28368
14776         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14777
14778 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14779
14780         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14781         multilibs.
14782
14783 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14784
14785         * doc/c-tree.texi: Use `@.' where appropriate.
14786         * doc/extend.texi: Likewise.
14787         * doc/install.texi: Likewise.
14788         * doc/invoke.texi: Likewise.
14789         * doc/loop.texi: Likewise.
14790         * doc/makefile.texi: Likewise.
14791         * doc/md.texi: Likewise.
14792         * doc/passes.texi: Likewise.
14793         * doc/standards.texi: Likewise.
14794         * doc/tm.texi: Likewise.
14795
14796 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14797
14798         PR middle-end/35196
14799         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14800         in entry_bb.
14801         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14802         rather than in entry_bb.
14803
14804 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14805
14806         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14807         libgcc_cmp_return mode.
14808
14809 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14810
14811         PR middle-end/35130
14812         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14813         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14814
14815 2008-02-15  Richard Guenther  <rguenther@suse.de>
14816             Zdenek Dvorak  <ook@ucw.cz>
14817
14818         PR tree-optimization/35164
14819         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14820         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14821         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14822         Only propagate addresses which do not have abnormal SSA_NAMEs
14823         in their operands.
14824
14825 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
14826
14827         PR target/35088
14828         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14829
14830 2008-02-15  Jan Hubicka  <jh@suse.cz>
14831
14832         PR middle-end/35149
14833         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14834
14835 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14836
14837         PR middle-end/34621
14838         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14839         when calculating alignment_pad.
14840
14841 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14842
14843         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14844         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14845         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14846         and STACK_BOUNDARY define.
14847
14848 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
14849
14850         PR preprocessor/35061
14851         * c-pragma.c (handle_pragma_pop_macro): Check that
14852         pushed_macro_table has been allocated.
14853
14854 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14855
14856         PR middle-end/35136
14857         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14858         (force_gimple_operand): Likewise.
14859         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14860         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14861         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14862         (find_interesting_uses_address): Check addressability and alignment
14863         of the base expression only after substituting bases of IVs into it.
14864
14865 2008-02-14  Michael Matz  <matz@suse.de>
14866
14867         PR target/34930
14868         * function.c (instantiate_virtual_regs_in_insn): Reload address
14869         before falling back to reloading the whole operand.
14870
14871 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
14872
14873         * config/s390/s390.c (s390_mainpool_start): Emit the pool
14874         before the first section switch note.
14875
14876 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14877
14878         * doc/bugreport.texi: Update copyright years.
14879         * doc/c-tree.texi: Likewise.
14880         * doc/cfg.texi: Likewise.
14881         * doc/cpp.texi: Likewise.
14882         * doc/cppinternals.texi: Likewise.
14883         * doc/fragments.texi: Likewise.
14884         * doc/frontends.texi: Likewise.
14885         * doc/gcc.texi: Likewise.
14886         * doc/gty.texi: Likewise.
14887         * doc/hostconfig.texi: Likewise.
14888         * doc/implement-c.texi: Likewise.
14889         * doc/libgcc.texi: Likewise.
14890         * doc/loop.texi: Likewise.
14891         * doc/makefile.texi: Likewise.
14892         * doc/options.texi: Likewise.
14893         * doc/passes.texi: Likewise.
14894         * doc/rtl.texi: Likewise.
14895         * doc/sourcebuild.texi: Likewise.
14896         * doc/standards.texi: Likewise.
14897         * doc/tree-ssa.texi: Likewise.
14898         * doc/trouble.texi: Likewise.
14899
14900         * doc/extend.texi: Use @: or add comma where appropriate.
14901         * doc/invoke.texi: Likewise.
14902         * doc/tm.texi: Likewise.
14903
14904 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
14905
14906         PR target/34393
14907         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14908         to a reg.
14909
14910 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
14911
14912         * doc/md.texi (clz, ctz): Add reference.
14913         * doc/rtl.texi (clz, ctz): Likewise.
14914
14915 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14916
14917         PR other/35148
14918         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14919         srcdir.
14920
14921 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
14922
14923         * config/s390/s390.c (struct constant_pool): New field
14924         emit_pool_after added.
14925         (s390_mainpool_start): Set the emit_pool_after flag according
14926         to the section switch notes.
14927         (s390_mainpool_finish): Consider emit_pool_after when emitting
14928         the literal pool at the end of the function.
14929         (s390_chunkify_start): Force literal pool splits at section
14930         switch notes.
14931
14932 2008-02-13  Michael Matz  <matz@suse.de>
14933
14934         PR debug/35065
14935         * var-tracking.c (clobber_variable_part): Correctly traverse the
14936         list.
14937
14938 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14939
14940         PR 29673
14941         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14942         Add -fdump-ipa-inline.
14943         * tree-dump.c (dump_files): Remove tree-inlined dump.
14944         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14945         
14946 2008-02-12  Richard Guenther  <rguenther@suse.de>
14947
14948         PR tree-optimization/35171
14949         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14950         default defs.
14951
14952 2008-02-12  Richard Guenther  <rguenther@suse.de>
14953
14954         PR middle-end/35163
14955         * fold-const.c (fold_widened_comparison): Use get_unwidened in
14956         value-preserving mode.  Disallow final truncation.
14957
14958 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14959
14960         PR middle-end/35136
14961         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14962         code from here to...
14963         (force_gimple_operand): ...here.
14964
14965 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
14966
14967         PR c++/35144
14968         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14969         non-compatible pointers.
14970         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14971         different FIELD_DECLs, try harder by comparing field offsets, sizes
14972         and types.
14973
14974         PR inline-asm/35160
14975         * function.c (match_asm_constraints_1): Don't replace the same input
14976         multiple times.
14977
14978 2008-02-12  Anatoly Sokolov <aesok@post.ru>
14979
14980         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14981         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14982         (expand_epilogue): Restore RAMPZ register.
14983         * config/avr/avr.md (RAMPZ_ADDR): New constant.
14984
14985 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
14986
14987         * config/i386/cygwin.asm: (__alloca): Correct calling
14988         convention and alignment.
14989         (__chkstk): Force 8 byte stack alignment.
14990
14991 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
14992             Richard Guenther  <rguenther@suse.de>
14993
14994         PR tree-optimization/33992
14995         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14996         the zero we compare against.
14997
14998 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
14999
15000         PR libfortran/35063
15001         * gthr-win32.h (__gthread_mutex_destroy_function): New function
15002         to CloseHandle after unlocking to prevent accumulation of handle
15003         count.
15004
15005 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15006
15007         PR middle_end/34150
15008         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15009         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
15010         and update LABEL_NUSES during and after reload.
15011
15012 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15013
15014         PR middle-end/34627
15015         * combine.c (simplify_if_then_else): Make sure the comparison is
15016         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15017
15018 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15019
15020         PR bootstrap/35051
15021         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15022         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15023         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15024         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15025         * tree.h (get_type_static_bounds): Likewise.
15026
15027 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15028
15029         * doc/invoke.texi (Option Summary, C++ Dialect Options)
15030         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15031         Make -Wfoo language annotations match what the compiler outputs.
15032
15033 2008-02-08  Sa Liu  <saliu@de.ibm.com>
15034
15035         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
15036         intrinsics spu_convts, spu_convtu, spu_convtf.
15037
15038 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
15039
15040         * doc/extend.texi (Function Attributes) <noinline>: Mention
15041         asm ("") as method to keep calls.
15042
15043 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15044
15045         PR other/32754
15046         * doc/options.texi (Options): Replace references to opts.sh with
15047         optc-gen.awk.
15048         * opts-common.c: Likewise.
15049         * optc-gen.awk: Likewise.
15050         
15051 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15052
15053         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15054
15055 2008-02-07  Richard Henderson  <rth@redhat.com>
15056
15057         PR rtl-opt/33410
15058         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15059         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
15060         funny mode.
15061
15062 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
15063
15064         PR tree-optimization/35085
15065         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15066         for operand entry oe2 in addition to operand entry oe3 in order to
15067         expose more opportunities for vectorizer sum reduction.
15068
15069 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15070
15071         PR other/35107
15072         * Makefile.in (LIBS): Remove $(GMPLIBS).
15073         (cc1-dummy, cc1): Add $(GMPLIBS).
15074
15075 2008-02-06  Jan Hubicka  <jh@suse.cz>
15076
15077         PR target/23322
15078         * i386.md (moddf_integer): Do not produce partial memory stalls for
15079         targets where it hurts.
15080
15081 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
15082
15083         PR target/35083
15084         * optabs.c (expand_float): Do not check for decimal modes when
15085         expanding unsigned integer through signed conversion.
15086
15087 2008-02-06  Nick Clifton  <nickc@redhat.com>
15088
15089         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15090         inside the clobber with a match_operand and duplicated operand
15091         number in the constraint.
15092         (ineqbranchsi): Delete redundant comment.
15093
15094 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
15095
15096         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
15097         builtin_define ("__USE_INIT_FINI__").
15098         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15099         -msx multilibs.
15100         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15101
15102 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15103
15104         PR documentation/30330
15105         * doc/invoke.texi (C++ Dialect Options)
15106         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15107         For each warning option -Wfoo that allows -Wno-foo, ensure both
15108         -Wfoo and -Wno-foo are listed in the option index.  Fix index
15109         entry of -Wswitch-default, index -Wnormalized= including the
15110         `=', and -Wlarger-than-@var{len} including @var{len}.
15111
15112 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15113
15114         * config/i386/i386.md (floatunssisf2): Use
15115         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15116         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15117         Macroize expander using MODEF mode iterator.
15118
15119 2008-02-05  Diego Novillo  <dnovillo@google.com>
15120
15121         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15122
15123         PR 33738
15124         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15125
15126 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15127
15128         PR other/35070
15129         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15130
15131 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
15132
15133         PR target/35084
15134         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15135         to indicate if a message should be generated.
15136         (init_cumulative_args): Updated.
15137         (function_value_32): Likewise.
15138
15139 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15140
15141         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15142
15143 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15144
15145         PR target/35083
15146         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15147         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15148
15149 2008-02-04  Diego Novillo  <dnovillo@google.com>
15150
15151         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15152
15153         PR 33738
15154         * tree-vrp.c (vrp_evaluate_conditional): With
15155         -Wtype-limits, emit a warning when comparing against a
15156         constant outside the natural range of OP0's type.
15157
15158 2008-02-04  Richard Guenther  <rguenther@suse.de>
15159
15160         PR middle-end/33631
15161         * expr.c (count_type_elements): Give for unions instead of
15162         guessing.
15163
15164 2008-02-04  Richard Guenther  <rguenther@suse.de>
15165
15166         PR middle-end/35043
15167         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15168         to TYPE_DOMAINs base type instead of using bitsizetype here.
15169
15170 2008-02-03  Jason Merrill  <jason@redhat.com>
15171
15172         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15173
15174 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15175
15176         PR other/29972
15177         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15178         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15179         (RS/6000 and PowerPC Options): Fix typos and markup.
15180         * doc/passes.texi (Tree-SSA passes): Likewise.
15181
15182 2008-02-02  Michael Matz  <matz@suse.de>
15183
15184         PR target/35045
15185         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15186         from record_last_reg_set_info.
15187         (record_last_reg_set_info): Take an RTX argument, iterate over all
15188         constituent hardregs.
15189         (record_last_set_info, record_opr_changes): Change calls to
15190         new signature or to record_last_reg_set_info_regno.
15191
15192 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15193
15194         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15195
15196 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15197
15198         PR rtl-optimization/34773
15199         * reg-notes.def (EQUAL): Mention significance of combination of
15200         REG_EQUAL and REG_RETVAL.
15201         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15202         insn that has a REG_RETVAL.
15203
15204 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15205
15206         PR bootstrap/33781
15207         * configure.ac (--enable-fixed-point): Disable unless explicitly
15208         requested on IRIX.
15209         * configure: Regenerate.
15210
15211 2008-02-01  Richard Guenther  <rguenther@suse.de>
15212
15213         PR other/35042
15214         * invoke.texi (-finline-limit): Remove no longer true parts
15215         of the documentation.  Note that there is no default value.
15216
15217 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15218             Mark Mitchell  <mark@codesourcery.com>
15219             Ben Elliston  <bje@au.ibm.com>
15220
15221         PR c/29326
15222         * doc/extend.texi (Other Builtins): Document.
15223
15224 2008-01-31  Tom Browder <tom.browder@gmail.com>
15225
15226         * doc/c-tree.texi (Types): Fix grammar.
15227         (Expression trees): Ditto.
15228         * doc/passes.texi (Tree-SSA passes): Ditto.
15229         
15230         * doc/configterms.texi (Configure Terms): Fix typo.
15231         * doc/cpp.texi (Common Predefined Macros): Ditto.
15232         * doc/md.texi (Machine Constraints): Ditto.
15233         
15234         * doc/makefile.texi (Makefile): Add comma.
15235
15236 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15237             Gerald Pfeifer  <gerald@pfeifer.com>
15238         
15239         * doc/sourcebuild.texi (Front End): Remove references to CVS
15240         and CVSROOT/modules.
15241         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15242         (Back End): Remove reference to CVS.
15243
15244 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15245
15246         PR target/34900
15247         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15248         comment from...
15249         (mips16_gp_pseudo_reg): ...here.
15250         * config/mips/mips.md (load_const_gp): Replace with...
15251         (load_const_gp_<mode>): ...this :P-based insn.
15252
15253 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15254
15255         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15256         options. Minor fixes.
15257         (-std): Move reference to standards closer to where language
15258         standards are first mentioned.
15259         
15260 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15261
15262         PR rtl-optimization/34995
15263         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15264         parameter and return a bool.  If the rtx parameter is nonnull,
15265         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15266         (find_reloads): Update call accordingly.  Pass the new operand
15267         if it needed no address reloads, otherwise pass null.
15268
15269 2008-01-30  Richard Henderson  <rth@redhat.com>
15270
15271         PR c/34993
15272         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15273         for unbounded arrays.
15274
15275 2008-01-30  Silvius Rus  <rus@google.com>
15276
15277         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15278
15279 2008-01-30  Jan Hubicka  <jh@suse.cz>
15280
15281         PR target/34982
15282         * i386.c (init_cumulative_args): Use real function declaration when
15283         calling locally.
15284
15285 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15286
15287         PR rtl-optimization/34998
15288         * global.c (build_insn_chain): Treat non-subreg_lowpart
15289         SUBREGs of pseudos as clobbering all the words covered by the
15290         SUBREG, not just all the bytes.
15291         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15292         original df_ref rather than an extract parameter.
15293         (global_conflicts): Update call accordingly.
15294
15295 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15296
15297         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15298         the overflow check to make it easier to read.
15299         (__fixtfdi): Change the type of the ll member in union
15300         long_double to UDItype_x.
15301
15302 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15303
15304         PR middle-end/34969
15305         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15306         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15307         * tree-inline.c (fold_marked_statements): Call
15308         cgraph_update_edges_for_call_stmt if folding a call statement.
15309         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15310         debug_generic_stmt calls, reset it back afterwards.
15311
15312         PR c/35017
15313         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15314         static decls.
15315         * c-typeck.c (build_external_ref): Don't pedwarn about
15316         static vars in current function's scope.
15317
15318 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15319
15320         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15321
15322 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15323
15324         PR c/35002
15325         * ipa-struct-reorg.c: Fix spelling.
15326         * params.def: Ditto.
15327
15328 2008-01-29  Richard Guenther  <rguenther@suse.de>
15329
15330         PR middle-end/35006
15331         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15332         field.
15333         * tree-inline.c (remap_type): Increment remapping_type_depth
15334         around remapping types.
15335         (copy_body_r): Only add referenced variables if they are referenced
15336         from code, not types.
15337
15338 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15339
15340         PR c++/34055
15341         PR c++/34103
15342         PR c++/34219
15343         PR c++/34606
15344         PR c++/34753
15345         PR c++/34754
15346         PR c++/34755
15347         PR c++/34919
15348         PR c++/34961
15349         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15350         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15351
15352 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15353
15354         PR target/34412
15355         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
15356         pointer for tiny stack.
15357
15358 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15359
15360         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15361
15362 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15363
15364         * config/vx-common.h: Fix typo in comment.
15365
15366 2008-01-28  Ian Lance Taylor  <iant@google.com>
15367
15368         PR c++/34862
15369         PR c++/33407
15370         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15371         coalesce pointers if they have different DECL_NO_TBAA_P values.
15372         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15373         between variables with different DECL_NO_TBAA_P values.
15374
15375 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15376
15377         PR 31535
15378         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15379         are not legitimate small data references on SPE targets.
15380
15381 2008-01-28  David Daney  <ddaney@avtrex.com>
15382
15383         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15384
15385 2008-01-28  David Daney  <ddaney@avtrex.com>
15386
15387         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15388
15389 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15390
15391         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15392         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15393         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15394         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15395         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15396         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15397         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15398         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15399
15400 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15401
15402         * basic-block.h (condjump_equiv_p): Fix comment.
15403
15404 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15405
15406         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15407         print_generic_stmt_indented): Fix comment.
15408
15409 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15410
15411         * configure.ac (__stack_chk_fail): Add detecion for availability
15412         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15413         * configure: Regenerate.
15414
15415 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15416
15417         PR middle-end/34688
15418         * final.c (output_addr_const): Handle TRUNCATE.
15419
15420 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15421
15422         PR target/34711
15423         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15424         (zero_cost, infinite_cost): New constants.
15425         (struct cost_pair): Change type of cost to comp_cost.
15426         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15427         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15428         New functions.
15429         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15430         split_address_cost, ptr_difference_cost, difference_cost,
15431         get_computation_cost_at, get_computation_cost,
15432         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15433         determine_use_iv_cost_condition, determine_use_iv_costs,
15434         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15435         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15436         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15437         Change type of cost to comp_cost.
15438         (determine_iv_cost): Increase cost of non-original ivs, instead
15439         of decreasing the cost of original ones.
15440         (get_address_cost): Indicate the complexity of the addressing mode 
15441         in comp_cost.
15442         (try_add_cand_for): Prefer using ivs not specific to some object.
15443         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15444
15445 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15446             Janis Johnson  <janis187@us.ibm.com>
15447
15448         PR target/34814
15449         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15450         (TARGET_INSTANTIATE_DECLS): Likewise.
15451         * target.h (expand_to_rtl_hook): New target hook.
15452         (instantiate_decls): Likewise.
15453         * function.c (instantiate_decl): Make non-static.  Rename to...
15454         (instantiate_decl_rtl): ... this.
15455         (instantiate_expr): Use instantiate_decl_rtl.
15456         (instantiate_decls_1): Likewise.
15457         (instantiate_decls): Likewise.
15458         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15459         * function.h (instantiate_decl_rtl): Add prototype.
15460         * cfgexpand.c (target.h): New include.
15461         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15462         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15463         (TARGET_INSTANTIATE_DECLS): Likewise.
15464         (TARGET_INITIALIZER): New target hooks added.
15465         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15466         New prototype.
15467         * config/rs6000/rs6000.c (tree-flow.h): New include.
15468         (machine_function): Add sdmode_stack_slot field.
15469         (rs6000_alloc_sdmode_stack_slot): New function.
15470         (rs6000_instantiate_decls): Likewise.
15471         (rs6000_secondary_memory_needed_rtx): Likewise.
15472         (rs6000_check_sdmode): Likewise.
15473         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15474         (TARGET_INSTANTIATE_DECLS): Likewise.
15475         (rs6000_hard_regno_mode_ok): Allow SDmode.
15476         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15477         (rs6000_emit_move): Handle SDmode.
15478         (function_arg_advance): Likewise.
15479         (function_arg): Likewise.
15480         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15481         SDmode var args for 32-bit compiles.
15482         (rs6000_secondary_reload_class): Handle SDmode.
15483         (rs6000_output_function_epilogue): Likewise.
15484         (rs6000_function_value): Simplify if statement.
15485         (rs6000_libcall_value): Likewise.
15486         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15487         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15488         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15489         (movsd_hardfloat): New define_insn.
15490         (movsd_softfloat): Likewise.
15491         (movsd_store): Likewise.
15492         (movsd_load): Likewise.
15493         (extendsddd2): Likewise.
15494         (extendsdtd2): Likewise.
15495         (truncddsd2): Likewise.
15496         (movdd_hardfloat64): Fixup comment.
15497         (UNSPEC_MOVSD_LOAD): New constant.
15498         (UNSPEC_MOVSD_STORE): Likewise.
15499
15500 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15501
15502         PR c++/34965
15503         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15504         TRUTH_XOR_EXPR.
15505         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15506         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15507         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15508         and TRUTH_XOR_EXPR.
15509
15510 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15511
15512         PR target/34794
15513         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15514         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15515         __LONGDOUBLE128 too.
15516         * config/rs6000/aix61.h: New file.
15517
15518 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15519
15520         PR rtl-optimization/34959
15521         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15522         popcount and parity rtxes the same mode as their operand.
15523         Truncate or extend the result to the return value's mode
15524         if necessary.
15525
15526 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15527
15528         PR target/34981
15529         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15530         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15531         to GOT_VERSION_REGNUM.
15532         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15533         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15534         * config/mips/mips.c (mips_emit_call_insn): New function.
15535         (mips_call_tls_get_addr): Call mips_expand_call directly.
15536         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15537         emit_call_insn.
15538         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15539         (mips_expand_call): Update the call to mips16_build_call_stub
15540         accordingly and a remove redundant condition.  Assert that MIPS16
15541         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15542         the call insn.
15543         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15544         TARGET_USE_GOT.
15545         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15546         (mips_avoid_hazard): Remove hazard_set handling.
15547         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15548         (UNSPEC_RESTORE_GP): ...this.
15549         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15550         (FAKE_CALL_REGNO): Rename to...
15551         (GOT_VERSION_REGNUM): ...this.
15552         (type): Add "ghost" value.  Add an associated insn reservation.
15553         (hazard_set): Remove.
15554         (exception_receiver): Rename to...
15555         (restore_gp): ...this and update the unspec identifier accordingly.
15556         (exception_receiver, nonlocal_got_receiver): New expanders.
15557         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15558         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15559         (set_got_version, update_got_version): New patterns.
15560
15561 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15562
15563         PR target/34970
15564         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15565
15566 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15567
15568         PR other/31955
15569         * doc/install.texi2html: Generate gcc-vers.texi.
15570
15571 2008-01-25  DJ Delorie  <dj@redhat.com>
15572
15573         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15574
15575 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15576
15577         * config/c4x: Remove directory.
15578         * config.gcc (crx-*, mt-*): Mark obsolete.
15579         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15580         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15581         sh-*-rtemscoff*): Remove cases.
15582         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15583         * real.c (encode_c4x_single, decode_c4x_single,
15584         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15585         c4x_extended_format): Remove.
15586         * real.h (c4x_single_format, c4x_extended_format): Remove.
15587         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15588         on C4x.
15589         (Pragmas): Remove comment about c4x pragmas.
15590         * doc/install.texi (c4x): Remove target-specific instructions.
15591         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15592         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15593         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15594         refer to C4x source files as examples.
15595         (C4X_FLOAT_FORMAT): Remove documentation.
15596
15597 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15598
15599         * config/bfin/bfin.c (override_options): Reorder tests so that
15600         flag_pic gets enabled for -msep-data.
15601
15602 2008-01-25  Richard Guenther  <rguenther@suse.de>
15603
15604         PR middle-end/32244
15605         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15606         to its bitfield precision if required.
15607
15608 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15609
15610         PR middle-end/33880
15611         * tree-nested.c (walk_omp_for): New function.
15612         (convert_nonlocal_reference, convert_local_reference): Call
15613         walk_omp_for on OMP_FOR.
15614         (convert_call_expr): Call walk_body on OMP_FOR's
15615         OMP_FOR_PRE_INIT_BODY.
15616
15617 2008-01-25  Richard Guenther  <rguenther@suse.de>
15618
15619         PR tree-optimization/34966
15620         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15621         default defs and PHI_NODEs we have to insert after the
15622         defining statement.
15623
15624 2008-01-24  Nick Clifton  <nickc@redhat.com>
15625
15626         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15627         Provide a default definition.
15628         (LIBGCC2_UNITS_PER_WORD): Likewise.
15629
15630         * config/stormy16/stormy16.c: Include df.h for the prototype
15631         for df_regs_ever_live_p.
15632         (xstormy16_expand_builtin_va_start): Convert the stack offset
15633         into a component_ref and then use POINTER_PLUS_EXPR to add it
15634         to the incoming_virtual_args_rtx.
15635         (xstormy16_gimplify_va_arg_expr): Rename to
15636         xstormy16_gimplify_va_arg_expr.
15637         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15638         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15639         xstormy16_gimplify_va_arg_expr.
15640         Fix up some formatting issues.
15641
15642         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15643         Move to predicates.md.
15644         (xs_hi_general_operand): Likewise.
15645         (xs_hi_nonmemory_operand): Likewise.
15646         * config/stormy16/predicates.md:
15647         (xstormy16_carry_plus_operand): New predicate.
15648         (xs_hi_general_operand): New predicate.
15649         (xs_hi_nonmemory_operand): New predicate.
15650         * config/stormy16/stormy16-protos.h:
15651         (xstormy16_carry_plus_operand): Delete prototype.
15652         (xs_hi_general_operand): Likewise.
15653         (xs_hi_nonmemory_operand): Likewise.
15654
15655         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15656         modifiers as they are no longer needed and they can trigger
15657         reload spill failures.
15658
15659         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15660         with a match_operand in order to help reload.
15661
15662         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15663         constraint with 'e' for the 8th alternative as this version of
15664         the mov.w instruction only accepts the lower 8 registers.
15665
15666 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15667
15668         PR target/34856
15669         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15670         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15671         vector elements.
15672
15673 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15674
15675         PR middle-end/33333
15676         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15677
15678 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15679
15680         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15681         New functions.
15682         (remove_structure): Update allocations list before removing structure.
15683         
15684 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15685
15686         * ipa-struct-reorg.c (is_safe_cond_expr, 
15687         create_new_stmts_for_cond_expr): Use integer_zerop function,
15688         that recognize not only zero-pointer, but zero-integer too.
15689
15690 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15691
15692         PR other/22232
15693         * fixproto: Escape "." in sed expression that strips leading "./".
15694
15695 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15696
15697         PR driver/34904
15698         * gcc.c (SWITCH_OK): Removed.
15699         (SWITCH_LIVE): Changed to bit.
15700         (SWITCH_FALSE): Likewise.
15701         (SWITCH_IGNORE): Likewise.
15702         (switchstr): Change live_cond to unsigned int.
15703         (process_command): Replace SWITCH_OK with 0.
15704         (do_self_spec): Likewise.
15705         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15706         (give_switch): Likewise.
15707         (used_arg): Likewise.
15708         (do_spec_1): Set the SWITCH_IGNORE bit.
15709         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15710         bits.  Set the SWITCH_LIVE bit.
15711
15712 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15713
15714         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15715
15716 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15717
15718         PR tree-optimization/34472
15719         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15720         parameter to a "bool *" and set *DATA to false if there is
15721         an unsafe access.  Do not delete the structure here.
15722         (check_cond_exprs): Delete it here instead.
15723         (check_cond_exprs, exclude_cold_structs): Do not increase
15724         I when removing a structure.
15725
15726 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15727
15728         PR target/34856
15729         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15730         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15731
15732 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15733
15734         PR middle-end/34934
15735         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15736         a fixed vector for stack.
15737
15738 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15739
15740         PR c++/25701
15741         * doc/gcc.texi (Software development): Add a direntry for g++.
15742         
15743 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15744
15745         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15746         stale and straggling -fforce-addr comments above.
15747
15748         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15749         define.
15750         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15751         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15752
15753 2008-01-23  Michael Matz  <matz@suse.de>
15754
15755         PR debug/34895
15756         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15757         gen_type_die.
15758
15759 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15760
15761         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15762         malloc result type.
15763
15764 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15765
15766         * config/avr/avr.c (avr_current_arch): New variable.
15767         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15768         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15769         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15770         (avr_override_options): Init 'avr_current_arch'. 
15771         (base_arch_s): Move from here...
15772         * config/avr/avr.h (base_arch_s): ... here. Add new members 
15773         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
15774         'mega' to 'have_jmp_call'.
15775         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
15776         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15777         macros.
15778         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
15779         architectures.
15780         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
15781         MULTILIB_MATCHES): (Ditto.).
15782
15783 2008-01-23  Richard Guenther  <rguenther@suse.de>
15784
15785         PR middle-end/31529
15786         * cgraphunit.c (cgraph_reset_node): Always mark the node
15787         not reachable if it is not queued already.
15788
15789 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15790
15791         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15792         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15793         (cputype_selected): New static variable.
15794         (bfin_handle_option): Set it if -mcpu is used.
15795         (override_option): Select default set of workarounds if no cpu type
15796         selected on the command line.
15797         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15798
15799         From  Michael Frysinger  <michael.frysinger@analog.com>
15800         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15801         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15802
15803         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15804         for bf547, bf523, bf524, and bf526.
15805         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
15806         bf526.
15807         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15808         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15809         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15810         __ADSPBF547__ and __ADSPBF54x__ for bf547.
15811         * doc/invoke.texi (Blackfin Options): Document that
15812         -mcpu now accept bf547, bf523, bf524, and bf526.
15813
15814 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15815
15816         PR rtl-optimization/34628
15817         * combine.c (try_combine): Stop and undo after the first combination
15818         if an autoincrement side-effect on the first insn has effectively
15819         been lost.
15820
15821 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
15822
15823         PR target/34529
15824         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15825         Offset addresses are not valid for Altivec or paired float modes.
15826
15827 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
15828
15829         PR c++/34607
15830         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15831         if DECL_INITIAL (decl) is error_mark_node.
15832
15833         PR c++/34914
15834         * c-common.c (handle_vector_size_attribute): Only allow
15835         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
15836         the same way as pointer, array etc. types.
15837         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15838
15839         PR c++/34917
15840         * tree.c (build_type_attribute_qual_variant): Call
15841         build_qualified_type if attributes are equal, but quals are not.
15842
15843 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15844
15845         PR 32102
15846         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15847         * flags.h (warn_strict_aliasing): Remove.
15848         (warn_strict_overflow): Remove.
15849         * opts.c (warn_strict_aliasing): Remove.
15850         (warn_strict_overflow): Remove.
15851         * c-opts.c (c_common_handle_option): -Wall only sets
15852         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15853         (c_common_post_options): Give default values to -Wstrict-aliasing
15854         and -Wstrict-overflow if they are uninitialized.
15855         * common.opt (Wstrict-aliasing): Specify Var and Init.
15856         (Wstrict-overflow): Likewise.
15857
15858 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15859
15860         PR rtl-optimization/26854
15861         PR rtl-optimization/34400
15862         PR rtl-optimization/34884
15863         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15864         DF_RD->gen.
15865         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15866         (df_rd_bb_info.expanded_lr_out): Deleted
15867         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15868         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
15869         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15870         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15871         Removed code to allocate, initialize or free expanded_lr_out.
15872         (df_rd_bb_local_compute_process_def): Restructured to make more
15873         understandable.
15874         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15875         sets if the sets are being trimmed.
15876
15877 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15878
15879         PR bootstrap/32287
15880         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15881         (as_vers): Likewise.
15882         * configure: Regenerated.
15883
15884 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15885
15886         PR middle-end/33092
15887         * tree-pass.h (pass_build_alias): New pass.
15888         * tree-ssa-alias.c (gate_build_alias): New.
15889         (pass_build_alias): New.
15890         * passes.c (init_optimization_passes): Add pass_build_alias after
15891         pass_create_structure_vars.
15892
15893 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
15894
15895         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15896         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15897         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15898         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15899         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15900         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15901         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15902         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15903         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15904         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15905         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15906         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15907         * config/s390/s390.md (FP_ALL): New mode iterator.
15908         (_d): New mode attribute.
15909         ("*signbit<mode>2>"): Changed mode of first operand.
15910         ("isinf<mode>2"): Changed mode of first operand.
15911         ("*TDC_insn"): Adaptation for DFP modes.
15912
15913 2008-01-22  Ben Elliston  <bje@au.ibm.com>
15914
15915         * tree.c (check_qualified_type): Improve function description.
15916
15917 2008-01-21  Jason Merrill  <jason@redhat.com>
15918
15919         PR c++/34196
15920         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15921         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15922         if it is set.
15923
15924 2008-01-21  DJ Delorie  <dj@redhat.com>
15925
15926         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15927         return zero.
15928
15929 2008-01-21  Richard Guenther  <rguenther@suse.de>
15930
15931         PR middle-end/34856
15932         * tree-cfg.c (verify_expr): Allow all invariant expressions
15933         instead of just constant class ones as reference argument.
15934         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15935         like any other constant.
15936         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15937
15938 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
15939
15940         * regmove.c (fixup_match_1): Update call crossed frequencies.
15941
15942 2008-01-21  Richard Guenther  <rguenther@suse.de>
15943
15944         PR c/34885
15945         * tree-inline.c (setup_one_parameter): Deal with mismatched
15946         types using a VIEW_CONVERT_EXPR.
15947
15948 2008-01-21  Alon Dayan  <alond@il.ibm.com>
15949             Olga Golovanevsky  <olga@il.ibm.com>
15950         
15951         PR tree-optimization/34701
15952         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15953         when the structure size is not a power of 2.
15954
15955 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15956
15957         * doc/install.texi: Add doc for --enable-checking=df.
15958         
15959 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15960
15961         PR rtl-optimization/34808
15962         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15963
15964 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15965
15966         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15967         input.
15968
15969 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
15970
15971         PR rtl-optimization/26854
15972         PR rtl-optimization/34400
15973         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15974         DF_RD->gen.
15975         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15976         (df_rd_bb_info.expanded_lr_out): New.
15977         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15978         * loop_iv.c (iv_analysis_loop_init): Ditto.
15979         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15980         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15981         Added code to allocate, initialize or free expanded_lr_out.
15982         (df_rd_bb_local_compute_process_def): Restructured to make
15983         more understandable.
15984         (df_rd_confluence_n): Add code to do nothing with fake edges and
15985         code to no apply invalidate_by_call sets if the sets are being trimmed.
15986         (df_lr_local_finalize): Renamed to df_lr_finalize.
15987         (df_live_local_finalize): Renamed to df_live_finalize.
15988
15989 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15990
15991         PR target/34831
15992         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15993         deciding whether to use reciprocal instructions.
15994
15995 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
15996
15997         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15998         dwarf2out_note_section_used if cold_text_section is NULL.
15999
16000 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
16001
16002         PR gcov-profile/34610
16003         * tree-cfg.c (make_edges): Mark both outgoing edges from
16004         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16005         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16006         from OMP_FOR and OMP_CONTINUE outgoing edges.
16007
16008         * tree-profile.c (tree_profiling): Return early if
16009         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
16010         at the end.
16011         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16012         from cfun to child_cfun.
16013         * function.h (struct function): Add after_tree_profile bit.
16014
16015 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16016
16017         * config/avr/avr.S (_exit): Disable interrupt.
16018
16019 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
16020             Steven Bosscher  <stevenb.gcc@gmail.com>
16021
16022         PR rtl-optimization/26854
16023         PR rtl-optimization/34400
16024         * df-problems.c (df_live_scratch): New scratch bitmap.
16025         (df_live_alloc): Allocate df_live_scratch when doing df_live.
16026         (df_live_reset): Clear the proper bitmaps.
16027         (df_live_bb_local_compute): Only process the artificial defs once
16028         since the order is not important.
16029         (df_live_init): Init the df_live sets only with the variables
16030         found live by df_lr.
16031         (df_live_transfer_function): Use the df_lr sets to prune the
16032         df_live sets as they are being computed.  
16033         (df_live_free): Free df_live_scratch.
16034
16035 2008-01-18  Ian Lance Taylor  <iant@google.com>
16036
16037         * common.opt: Add fmerge-debug-strings.
16038         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16039         flag_merge_debug_strings rather than flag_merge_constants.
16040         * doc/invoke.texi (Option Summary): Mention
16041         -fmerge-debug-strings.
16042         (Debugging Options): Document -fmerge-debug-strings.
16043
16044 2008-01-18  Ian Lance Taylor  <iant@google.com>
16045
16046         PR c++/33407
16047         * tree.h (DECL_IS_OPERATOR_NEW): Define.
16048         (struct tree_function_decl): Add new field operator_new_flag.
16049         * tree-inline.c (expand_call_inline): When inlining a call to
16050         operator new, force the return value to go into a variable, and
16051         set DECL_NO_TBAA_P on that variable.
16052         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16053
16054 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
16055
16056         PR debug/34484
16057         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16058         DWARF2_DEBUGGING_INFO.
16059         (dwarf2out_note_section_used): Ditto.  Add prototype.
16060         (have_multiple_function_sections, text_section_used,
16061         cold_text_section_used, *cold_text_sections): Move declarations
16062         before their uses.
16063
16064 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
16065
16066         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16067         field and add signal_ra.
16068         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16069         assignments to frame state pc.  Move end of stack check after
16070         MD_FALLBACK_FRAME_STATE_FOR.
16071         (uw_update_context_1): Use frame state signal_regs if set, instead
16072         of checking signal_frame flag.
16073         (uw_update_context): Use frame state signal_ra if set.
16074         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16075         * config/xtensa/linux-unwind.h: New file.
16076
16077 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
16078
16079         * modulo-sched.c (get_sched_window): Fix comment typo.
16080
16081 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
16082
16083         PR tree-optimization/34648
16084         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16085
16086 2008-01-17  Anatoly Sokolov <aesok@post.ru>
16087
16088         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16089         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16090
16091 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
16092
16093         PR rtl-optimization/34400
16094         * df-core.c (df_worklist_dataflow_overeager,
16095         df_worklist_dataflow_doublequeue): New functions.
16096         (df_worklist_dataflow): Two different worklist solvers.
16097         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16098         New param.
16099
16100 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16101
16102         PR testsuite/34821
16103         * doc/invoke.texi: Document the dependence on pthread for fopenmp
16104         and ftree-parallelize-loops.
16105
16106 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
16107
16108         PR rtl-optimization/34826
16109         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16110
16111 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16112
16113         * global.c (find_reg): Mark the eh regs as used if necessary.
16114         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16115         * ra.h (struct allocno): no_eh_reg field added.  Changed
16116         no_stack_reg type to bitfield.
16117
16118 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16119
16120         * tree.c (substitute_in_expr): Add missing 'break'.
16121
16122 2008-01-17  Richard Guenther  <rguenther@suse.de>
16123
16124         PR tree-optimization/34825
16125         * tree-ssa-math-opts.c (is_division_by): Do not recognize
16126         x / x as division to handle.
16127
16128 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16129
16130         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16131         "-pthread" is specified.
16132         * pa-hpux11.h (LIB_SPEC): Likewise.
16133
16134 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
16135             Peter Bergner  <bergner@vnet.ibm.com>
16136
16137         PR rtl-optimization/33796
16138         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16139
16140 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16141
16142         PR libgfortran/34699
16143         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16144         static links.
16145         * pa-hpux10.h (LINK_SPEC): Likewise.
16146         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16147
16148 2008-01-16  Richard Guenther  <rguenther@suse.de>
16149
16150         PR middle-end/32628
16151         * fold-const.c (fold_convert_const_int_from_int): Do not
16152         set overflow if that occured only because of a sign extension
16153         change when converting from/to a sizetype with the same
16154         precision and signedness.
16155
16156 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16157
16158         PR debug/34249
16159         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16160         location address to the correct place.  Update copyright year.
16161
16162 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16163
16164         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16165         no dependences in the dependence_relations vector.
16166
16167 2008-01-16  Jan Hubicka  <jh@suse.cz>
16168
16169         PR rtl-optimization/31396
16170         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16171         * cfg.c (dump_reg_info): Print it.
16172         * regs.h (struct reg_info_t): add freq_calls_crossed.
16173         (REG_FREQ_CALLS_CROSSED): New macro.
16174         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16175         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16176         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16177         regmove_optimize): Update call crossed frequencies.
16178         * local-alloc.c (struct qty): Add freq_calls_crossed.
16179         (alloc_qty): Copute freq_calls_crossed.
16180         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16181         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16182         * ra.h (struct allocno): Add freq_calls_crossed.
16183
16184 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16185
16186         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16187         libgomp when compiling with ftree-parallelize-loops.
16188         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16189
16190 2008-01-16  Richard Guenther  <rguenther@suse.de>
16191
16192         PR tree-optimization/34769
16193         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16194         * tree.c (int_cst_value): Instead make this function more
16195         permissive in what it accepts as valid input.  Document this
16196         function always sign-extends the value.
16197
16198 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16199             Richard Guenther  <rguenther@suse.de>
16200
16201         PR c/34668
16202         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16203         (gimple_fold_indirect_ref_rhs): ... this.
16204         (gimple_fold_indirect_ref): New function with foldings
16205         that preserve lvalueness.
16206         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16207         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16208         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16209         to fold an INDIRECT_REF, fall back to the old use of
16210         fold_indirect_ref_1.
16211
16212 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16213
16214         * tree-data-ref.c (subscript_dependence_tester_1): Call 
16215         free_conflict_function.
16216         (compute_self_dependence): Same.
16217
16218 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16219
16220         PR debug/34249
16221         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16222         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16223         function global.
16224         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16225         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16226         for DWARF2_UNWIND_INFO targets.
16227
16228 2008-01-16  Richard Guenther  <rguenther@suse.de>
16229
16230         PR c/34768
16231         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16232         type qualifiers for function types.
16233
16234 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16235
16236         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16237         loop_iterator li from previous commit.
16238
16239 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16240
16241         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16242
16243 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16244
16245         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16246         (parallelize_loops): Don't parallelize irreducible components.
16247
16248 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16249
16250         PR c++/24924
16251         * c-opts (c_common_post_options): Do not enable CPP
16252         flag_pedantic_errors by default.
16253         
16254 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16255
16256         PR rtl-optimization/31944
16257         * cse.c (remove_pseudo_from_table): New function.
16258         (merge_equiv_classes): Use above function to remove pseudo-registers.
16259         (invalidate): Likewise.
16260
16261 2008-01-13  Richard Guenther  <rguenther@suse.de>
16262
16263         PR middle-end/34601
16264         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16265         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16266
16267 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16268
16269         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16270         validate_change to unshare the source of the PC set.
16271
16272 2008-01-12  Jan Hubicka  <jh@suse.cz>
16273
16274         PR middle-end/32135
16275         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16276         references above array bounds.  This might trigger bounds checks for
16277         pointers to arrays.
16278
16279 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16280
16281         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16282         new_replaceable_dependencies.
16283
16284 2008-01-12  Doug Kwan  <dougkwan@google.com>
16285
16286         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16287         instead of OPT_Wreturn_type in warning due to ignored return type
16288         qualifiers.
16289         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16290         options included in -Wextra.
16291         * c.opt: New option -Wignored_qualifiers.
16292         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16293         -Wignore_qualifiers.
16294         (-Wignored-qualifiers): Document.
16295         (-Wreturn-type): Remove description of functionality now handled
16296         by -Wignored-qualifiers.
16297
16298 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16299
16300         PR ada/33788
16301         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16302         NOP_EXPR if it is between integral types with the same precision.
16303
16304 2008-01-12  Jan Hubicka  <jh@suse.cz>
16305
16306         PR other/28023
16307         * invoke.texi (max-inline-recursive-depth): Fix default value.
16308
16309 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16310
16311         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16312         correct type.
16313
16314 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16315         
16316         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16317         
16318 2008-01-11  James E. Wilson  <wilson@specifix.com>
16319
16320         PR target/26015
16321         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16322
16323 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16324
16325         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
16326         save/restore frame pointer register and don't use 'call-prologues' 
16327         optimization in function with "OS_task" attribute.
16328
16329 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16330
16331         PR middle-end/31309
16332         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16333         when copying to memory.
16334
16335 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16336
16337         PR rtl-optimization/30905
16338         * cfgcleanup.c: Include dce.h
16339         (crossjumps_occured): New global variable.
16340         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16341         If something changed, set crossjumps_occured to true.
16342         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16343         Don't add/remove fake edges to exit here...
16344         (cleanup_cfg): ...but do it here, when crossjumping.
16345         Run a fast DCE when successful crossjumps occured in the latest
16346         iteration of try_optimize_cfg.
16347
16348 2008-01-11  Richard Guenther  <rguenther@suse.de>
16349
16350         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16351         (struct vn_unary_op_s): Likewise.
16352         (vn_reference_insert): Free old reference on hash collision.
16353
16354 2008-01-10  Raksit Ashok  <raksit@google.com>
16355
16356         PR rtl-optimization/27971
16357         * combine.c (find_split_point): Split PLUS expressions which are
16358         inside a MEM rtx, and whose first operand is complex.
16359
16360 2008-01-10  DJ Delorie  <dj@redhat.com>
16361
16362         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16363         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16364         (m32c_hard_regno_ok): Call the underlying function.
16365
16366 2008-01-10  Richard Guenther  <rguenther@suse.de>
16367
16368         PR middle-end/34683
16369         * tree-cfg.c (tree_merge_blocks): Do not go through the
16370         full-blown folding and stmt updating path if we just deal
16371         with virtual operands.
16372         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16373         test for abnormal SSA_NAMEs.
16374
16375 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16376
16377         PR middle-end/34641
16378         * reload.c (push_reload): Add assertions.  All constants from
16379         reg_equiv_constant should have been used for replacing the respective
16380         pseudo earlier.
16381         (find_reloads_address): Invoke find_reloads_address_part for
16382         constant taken from the reg_equiv_constant array.
16383
16384 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16385
16386         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16387         field (valnum) the first in the struct.  Replace bools with
16388         unit bit fields.
16389
16390 2008-01-10  Richard Guenther  <rguenther@suse.de>
16391
16392         PR tree-optimization/34651
16393         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16394         types and ordering for masking and converting.
16395
16396 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16397
16398         PR tree-optimization/34017
16399         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16400         also for PHI_NODE expressions.
16401
16402 2008-01-09  Jan Hubicka  <jh@suse.cz>
16403
16404         PR tree-optimization/34708
16405         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16406         based on number of case labels.
16407         (init_inline_once): Remove switch_cost.
16408         * tree-inline.h (eni_weights_d): Remove switch_cost.
16409
16410 2008-01-09  Richard Guenther  <rguenther@suse.de>
16411         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16412
16413         PR middle-end/30132
16414         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16415         temporary if an rvalue is ok or an lvalue is not required.
16416
16417 2008-01-09  Richard Guenther  <rguenther@suse.de>
16418
16419         PR middle-end/34458
16420         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16421         adjust return type.
16422
16423 2008-01-09  Richard Guenther  <rguenther@suse.de>
16424
16425         PR middle-end/34679
16426         * tree.c (host_integerp): Check for sizetype only if the
16427         type is an integer type.
16428
16429 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16430
16431         PR debug/26364
16432         * opts.c (decode_options): Disable inlining of functions called
16433         once if not in unit-at-a-time mode.
16434
16435 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16436
16437         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16438
16439 2008-01-08  Richard Guenther  <rguenther@suse.de>
16440
16441         PR middle-end/31863
16442         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16443         out early if the result will be unused.
16444
16445 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16446
16447         PR target/34709
16448         Revert:
16449
16450         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16451         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16452         for TARGET_RECIP.       
16453         
16454 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16455         
16456         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16457         for vectorization tuned.
16458         
16459 2008-01-08  Richard Guenther  <rguenther@suse.de>
16460
16461         PR tree-optimization/34683
16462         * tree-ssa-operands.c (operand_build_cmp): Export.
16463         * tree-ssa-operands.h (operand_build_cmp): Declare.
16464         * tree-vn.c (vuses_compare): Remove.
16465         (sort_vuses): Use operand_build_cmp.
16466         (sort_vuses_heap): Likewise.
16467         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16468         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16469         (vdefs_to_vec): Do not sort already sorted VDEFs.
16470
16471 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16472
16473         PR middle-end/34694
16474         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16475
16476 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16477
16478         PR target/34702
16479         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16480         limitations of reciprocal sequences on x86 targets.
16481
16482 2008-01-08  Richard Guenther  <rguenther@suse.de>
16483
16484         PR tree-optimization/34683
16485         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16486
16487 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16488
16489         PR target/34622
16490         * config/darwin.c (darwin_mergeable_string_section): Don't use
16491         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16492
16493 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16494
16495         PR target/34682
16496         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16497         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16498         predicates of op0 and op1 to register_operand.
16499         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16500         expander using X87MODEF mode iterator.  Change predicates of
16501         op0 and op1 to register_operand.
16502         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16503         corresponding patterns and macroize using MODEF macro.  Change
16504         predicates of op0 and op1 to register_operand and remove
16505         "m" constraint. Disparage "r" alternative with "!".
16506         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16507         macroize using X87MODEF macro.  Change predicates of op0 and op1
16508         to register_operand and remove "m" constraint.  Disparage "r"
16509         alternative with "!".
16510         (absneg splitter with memory operands): Remove.
16511         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16512         patterns and macroize using X87MODEF mode iterator.
16513         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16514         Change predicate of op1 to register_operand.
16515         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16516         for memory operands.
16517
16518 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16519
16520         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16521
16522 2008-01-07  Richard Guenther  <rguenther@suse.de>
16523
16524         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16525         fields.
16526
16527 2008-01-07  Richard Guenther  <rguenther@suse.de>
16528
16529         PR tree-optimization/34683
16530         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16531         VOPs of the needed size to save memory.  Use VEC_quick_push
16532         to save compile-time.
16533         (vdefs_to_vec): Likewise.
16534
16535 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16536
16537         * config/spu/spu.md (divdf3): Genetate inline code for double
16538         division.  The implementation doesn't handle INF or NAN, therefore it
16539         only applies when -ffinite-math-only is given.
16540
16541 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16542
16543         PR libstdc++/34680
16544         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16545         * doc/cpp.texi ([Common Predefined Macros]): Document.
16546
16547 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16548
16549         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16550         order to use commutative addition instead of subtraction.
16551
16552 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16553             Mircea Namolaru  <namolaru@il.ibm.com>
16554             Vladimir Yanovsky  <yanov@il.ibm.com>
16555             Revital Eres  <eres@il.ibm.com>
16556
16557         PR tree-optimization/34263
16558         * tree-outof-ssa.c (process_single_block_loop_latch,
16559         contains_tree_r): New functions.
16560         (analyze_edges_for_bb): Call process_single_block_loop_latch
16561         function to empty single-basic-block latch block if possible.
16562
16563 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16564
16565         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16566         for TARGET_RECIP.
16567         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16568
16569 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16570
16571         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16572
16573 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16574
16575         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16576
16577 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16578
16579         PR tree-optimization/34618
16580         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16581         flag from T.
16582
16583 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16584
16585         PR target/34673
16586         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16587         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16588         Update copyright year.
16589
16590         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16591         Update copyright year.
16592         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16593         using NR fixup.
16594
16595 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16596
16597         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16598         edge does not point to current bb before changing need_assert.
16599
16600 2008-01-04  Richard Guenther  <rguenther@suse.de>
16601
16602         PR middle-end/34029
16603         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16604         for verifying purposes if they are is_gimple_min_invariant.
16605
16606 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16607
16608         PR tree-optimization/34448
16609         PR tree-optimization/34465
16610         * gimplify.c (gimplify_init_constructor): Add new parameter
16611         notify_temp_creation.  Use it.
16612         (gimplify_modify_expr_rhs): Take volatiles into account when
16613         optimizing constructors.
16614         Do not optimize constructors if gimplify_init_constructor will dump to
16615         memory.
16616         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16617         * gcc.c-torture/compile/pr34448.c: New.
16618
16619 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16620
16621         PR gcov-profile/34609
16622         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16623         return_slot if result is TREE_ADDRESSABLE.
16624
16625 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16626
16627         * config/mips/mips.md (sqrt_condition): Tweak comment.
16628         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16629
16630 2008-01-03  Tom Tromey  <tromey@redhat.com>
16631
16632         PR c/34457
16633         * c-common.c (c_type_hash): Handle VLAs.
16634
16635 2008-01-03  Jan Hubicka  <jh@suse.cz>
16636
16637         PR tree-optimization/31081
16638         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16639         0 when inlining and not inlining to first basic block.
16640         (remap_decl): When var is initialized to 0, don't set default_def.
16641         (expand_call_inline): Set entry_bb.
16642         * tree-inline.h (copy_body_data): Add entry_bb.
16643
16644 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16645
16646         PR c++/34619
16647         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16648         before returning.
16649
16650         PR tree-optimization/29484
16651         * tree-inline.c (inline_forbidden_p_2): New function.
16652         (inline_forbidden_p): Disallow inlining if some static var
16653         has an address of a local LABEL_DECL in its initializer.
16654         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16655         vs. inlining.
16656
16657 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16658
16659         PR tree-optimization/34635
16660         * tree-data-ref.c (add_other_self_distances): Make sure that the
16661         evolution step is constant.
16662
16663 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16664
16665         PR middle-end/34608
16666         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16667
16668 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16669
16670         * tree-sra.c (scalarize_init): Insert the generate_element_init
16671         statements after the generate_element_zero statements.
16672
16673 2008-01-02  Richard Guenther  <rguenther@suse.de>
16674
16675         PR middle-end/34093
16676         PR middle-end/31976
16677         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16678         for very large number of operands instead of ICEing.
16679
16680 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16681
16682         PR target/34013
16683         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16684         while stack probing.
16685
16686 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16687
16688         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16689         in C++0x mode.
16690
16691 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16692
16693         PR libmudflap/26442
16694         * tree-mudflap.c (mx_register_decls): Guard warning by
16695         !DECL_ARTIFICIAL check.
16696
16697 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16698
16699         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16700         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16701         sse5_perm<mode>): Fix constraints.