OSDN Git Service

* config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
2
3         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
4         function.
5         (arm_compute_initial_elimination_offset): Use it.
6         (arm_compute_save_reg_mask): Include static chain save slot when
7         calculating alignment.
8         (arm_get_frame_offsets): Ditto.
9         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
10         that we can use to decrement the stack when the stack decrement
11         could be too big for an immediate value in a single insn.
12         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
13
14 2008-07-30  Richard Guenther  <rguenther@suse.de>
15
16         PR tree-optimization/36967
17         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
18         Release defs of statements we remove.
19
20 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
21
22         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
23         instead of NULL_RTVEC.
24
25 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
26
27         PR target/35866
28
29         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
30         vector modes.
31
32 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
33
34        * final.c (call_from_call_insn): New.
35        (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
36
37 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
38
39         * configure.ac: Substitute ADA_CFLAGS.
40         * configure: Regenerate.
41         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
42         * Makefile.in: Remove mention of X_* variables.
43         * config/pa/x-ada-hpux10: Remove.
44         * config/pa/x-ada: Remove.
45
46         * doc/fragments.texi: Update.
47
48 2008-07-30  Olivier Hainque  <hainque@adacore.com>
49
50         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
51         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
52         __dso_handle explicitly here.
53
54 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
55
56         PR 34389
57         * c-typeck.c (build_binary_op): Encapsulate code into...
58         * c-common.c (shorten_binary_op): ...this new function.
59         (conversion_warning): Use the new function. Handle non-negative
60         constant in bitwise-and.
61         * c-common.h (shorten_binary_op): Declare.
62         
63 2008-07-30  Olivier Hainque  <hainque@adacore.com>
64
65         * scan.c (make_sstring_space): Add explicit conversions of
66         allocator's return value.
67         * fix-header.c (recognized_function): Likewise.
68
69 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70
71         * doc/cpp.texi: Update to GFDL 1.2.
72         * doc/gcc.texi: Do not list GPL as Invariant Section.
73         * doc/gccint.texi: Likewise.  Update copyright years.
74         * doc/install.texi: Update copyright years.
75
76 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
77
78         PR target/36955
79         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
80         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
81
82 2008-07-29  Jan Hubicka  <jh@suse.cz>
83
84         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
85         (grokdeclarator): Likewise.
86         * langhooks.c (lhd_warn_unused_global_decl): Use
87         DECL_DECLARED_INLINE_P.
88         * print-tree.c (print_node): Remove DECL_INLINE check.
89
90 2008-07-29  Richard Guenther  <rguenther@suse.de>
91
92         PR tree-optimization/36945
93         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
94         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
95         Record invariant addresses un-decomposed.
96         (copy_reference_ops_from_call): Record reference call
97         arguments properly.  Simplify.
98         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
99         helper split out from ...
100         (create_component_ref_by_pieces): ... here.  Simplify.
101         Prepare for recursive invocation for call arguments.
102         (create_expression_by_pieces): Adjust call to
103         create_component_ref_by_pieces.
104         (compute_avail): Process operand 2 of reference ops.
105
106 2008-07-29  Richard Guenther  <rguenther@suse.de>
107
108         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
109         OBJ_TYPE_REF.
110
111 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
112
113         * c-format.c (check_format_types): Revert unwanted checkin.
114
115 2008-07-29  Jan Hubicka  <jh@suse.cz>
116
117         * flags.h (flag_really_no_inline): Remove.
118         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
119         * toplev.c (flag_really_no_inline): Remove.
120         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
121         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
122         (cgraph_decide_inlining_incrementally): Likewise.
123         (compute_inline_parameters): Likewise.
124         * opts.c (decode_options): Simplify.
125         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
126         * common.opt (finline): Initialize to 1.
127         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
128
129 2008-07-29  Jan Hubicka  <jh@suse.cz>
130
131         * predict.c (always_optimize_for_size_p): New function.
132         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
133         optimize_edge_for_size_p, optimize_edge_for_speed_p,
134         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
135         functions.
136         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
137         * function.c (prepare_function_start): Set default profile.
138         * function.h (rtl_data): Add maybe_hot_insn_p.
139         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
140         (construct_exit_block): Likewise.
141         (tree_expand_cfg): Likewise.
142         * basic-block.h
143         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
144         optimize_edge_for_size_p, optimize_edge_for_speed_p,
145         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
146         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
147         Declare.
148
149 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
150
151         PR 34985
152         * c-decl.c (merge_decls): Merge USED flags.
153         
154 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
155
156         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
157         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
158         next_stack, lab_false and lab_over trees.
159
160 2008-07-28  Richard Guenther  <rguenther@suse.de>
161
162         PR tree-optimization/36957
163         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
164         (useless_type_conversion_p): Remove.
165         (types_compatible_p): Remove.
166         * gimple.h (tree_ssa_useless_type_conversion): Declare.
167         (useless_type_conversion_p): Declare.
168         (types_compatible_p): Declare.
169         (gimple_expr_type): Return the base type only if it is
170         trivially convertible to the subtype.
171
172 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
173
174         * configure.ac: Use the m4_do macro to concatenate the warnings into
175         one string in ACX_PROG_CC_WARNING_OPTS,
176         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
177         * configure: Regenerate.
178
179 2008-07-28  Richard Guenther  <rguenther@suse.de>
180
181         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
182         (insert_fake_stores): Remove.
183         (realify_fake_stores): Likewise.
184         (execute_pre): Remove dead code.
185         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
186         case.
187         (find_func_aliases): Deal with it here instead.
188         Re-enable gcc_unreachable call.
189
190 2008-07-28  Richard Guenther  <rguenther@suse.de>
191
192         Merge from gimple-tuples-branch.
193
194         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
195         * gimple.def: New file.
196         * gsstruct.def: Likewise.
197         * gimple-iterator.c: Likewise.
198         * gimple-pretty-print.c: Likewise.
199         * tree-gimple.c: Removed.  Merged into ...
200         * gimple.c: ... here.  New file.
201         * tree-gimple.h: Removed.  Merged into ...
202         * gimple.h: ... here.  New file.
203
204         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
205         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
206         --enable-checking=gimple flag.
207         * config.in: Likewise.
208         * configure: Regenerated.
209
210         * tree-ssa-operands.h: Tuplified.
211         * tree-vrp.c: Likewise.
212         * tree-loop-linear.c: Likewise.
213         * tree-into-ssa.c: Likewise.
214         * tree-ssa-loop-im.c: Likewise.
215         * tree-dump.c: Likewise.
216         * tree-complex.c: Likewise.
217         * cgraphbuild.c: Likewise.
218         * tree-ssa-threadupdate.c: Likewise.
219         * tree-ssa-loop-niter.c: Likewise.
220         * tree-pretty-print.c: Likewise.
221         * tracer.c: Likewise.
222         * gengtype.c: Likewise.
223         * tree-loop-distribution.c: Likewise.
224         * tree-ssa-loop-unswitch.c: Likewise.
225         * cgraph.c: Likewise.
226         * cgraph.h: Likewise.
227         * tree-ssa-loop-manip.c: Likewise.
228         * value-prof.c: Likewise.
229         * tree-ssa-loop-ch.c: Likewise.
230         * tree-tailcall.c: Likewise.
231         * value-prof.h: Likewise.
232         * tree.c: Likewise.
233         * tree.h: Likewise.
234         * tree-pass.h: Likewise.
235         * ipa-cp.c: Likewise.
236         * tree-scalar-evolution.c: Likewise.
237         * tree-scalar-evolution.h: Likewise.
238         * target.h: Likewise.
239         * lambda-mat.c: Likewise.
240         * tree-phinodes.c: Likewise.
241         * diagnostic.h: Likewise.
242         * builtins.c: Likewise.
243         * tree-ssa-alias-warnings.c: Likewise.
244         * cfghooks.c: Likewise.
245         * fold-const.c: Likewise.
246         * cfghooks.h: Likewise.
247         * omp-low.c: Likewise.
248         * tree-ssa-dse.c: Likewise.
249         * ipa-reference.c: Likewise.
250         * tree-ssa-uncprop.c: Likewise.
251         * toplev.c: Likewise.
252         * tree-gimple.c: Likewise.
253         * tree-gimple.h: Likewise.
254         * tree-chrec.c: Likewise.
255         * tree-chrec.h: Likewise.
256         * tree-ssa-sccvn.c: Likewise.
257         * tree-ssa-sccvn.h: Likewise.
258         * cgraphunit.c: Likewise.
259         * tree-ssa-copyrename.c: Likewise.
260         * tree-ssa-ccp.c: Likewise.
261         * tree-ssa-loop-ivopts.c: Likewise.
262         * tree-nomudflap.c: Likewise.
263         * tree-call-cdce.c: Likewise.
264         * ipa-pure-const.c: Likewise.
265         * c-format.c: Likewise.
266         * tree-stdarg.c: Likewise.
267         * tree-ssa-math-opts.c: Likewise.
268         * tree-ssa-dom.c: Likewise.
269         * tree-nrv.c: Likewise.
270         * tree-ssa-propagate.c: Likewise.
271         * ipa-utils.c: Likewise.
272         * tree-ssa-propagate.h: Likewise.
273         * tree-ssa-alias.c: Likewise.
274         * gimple-low.c: Likewise.
275         * tree-ssa-sink.c: Likewise.
276         * ipa-inline.c: Likewise.
277         * c-semantics.c: Likewise.
278         * dwarf2out.c: Likewise.
279         * expr.c: Likewise.
280         * tree-ssa-loop-ivcanon.c: Likewise.
281         * predict.c: Likewise.
282         * tree-ssa-loop.c: Likewise.
283         * tree-parloops.c: Likewise.
284         * tree-ssa-address.c: Likewise.
285         * tree-ssa-ifcombine.c: Likewise.
286         * matrix-reorg.c: Likewise.
287         * c-decl.c: Likewise.
288         * tree-eh.c: Likewise.
289         * c-pretty-print.c: Likewise.
290         * lambda-trans.c: Likewise.
291         * function.c: Likewise.
292         * langhooks.c: Likewise.
293         * ebitmap.h: Likewise.
294         * tree-vectorizer.c: Likewise.
295         * function.h: Likewise.
296         * langhooks.h: Likewise.
297         * tree-vectorizer.h: Likewise.
298         * ipa-type-escape.c: Likewise.
299         * ipa-type-escape.h: Likewise.
300         * domwalk.c: Likewise.
301         * tree-if-conv.c: Likewise.
302         * profile.c: Likewise.
303         * domwalk.h: Likewise.
304         * tree-data-ref.c: Likewise.
305         * tree-data-ref.h: Likewise.
306         * tree-flow-inline.h: Likewise.
307         * tree-affine.c: Likewise.
308         * tree-vect-analyze.c: Likewise.
309         * c-typeck.c: Likewise.
310         * gimplify.c: Likewise.
311         * coretypes.h: Likewise.
312         * tree-ssa-phiopt.c: Likewise.
313         * calls.c: Likewise.
314         * tree-ssa-coalesce.c: Likewise.
315         * tree.def: Likewise.
316         * tree-dfa.c: Likewise.
317         * except.c: Likewise.
318         * except.h: Likewise.
319         * cfgexpand.c: Likewise.
320         * tree-cfgcleanup.c: Likewise.
321         * tree-ssa-pre.c: Likewise.
322         * tree-ssa-live.c: Likewise.
323         * tree-sra.c: Likewise.
324         * tree-ssa-live.h: Likewise.
325         * tree-predcom.c: Likewise.
326         * lambda.h: Likewise.
327         * tree-mudflap.c: Likewise.
328         * ipa-prop.c: Likewise.
329         * print-tree.c: Likewise.
330         * tree-ssa-copy.c: Likewise.
331         * ipa-prop.h: Likewise.
332         * tree-ssa-forwprop.c: Likewise.
333         * ggc-page.c: Likewise.
334         * c-omp.c: Likewise.
335         * tree-ssa-dce.c: Likewise.
336         * tree-vect-patterns.c: Likewise.
337         * tree-ssa-ter.c: Likewise.
338         * tree-nested.c: Likewise.
339         * tree-ssa.c: Likewise.
340         * lambda-code.c: Likewise.
341         * tree-ssa-loop-prefetch.c: Likewise.
342         * tree-inline.c: Likewise.
343         * tree-inline.h: Likewise.
344         * tree-iterator.c: Likewise.
345         * tree-optimize.c: Likewise.
346         * tree-ssa-phiprop.c: Likewise.
347         * tree-vect-transform.c: Likewise.
348         * tree-object-size.c: Likewise.
349         * tree-outof-ssa.c: Likewise.
350         * cfgloop.c: Likewise.
351         * system.h: Likewise.
352         * tree-profile.c: Likewise.
353         * cfgloop.h: Likewise.
354         * c-gimplify.c: Likewise.
355         * c-common.c: Likewise.
356         * tree-vect-generic.c: Likewise.
357         * tree-flow.h: Likewise.
358         * c-common.h: Likewise.
359         * basic-block.h: Likewise.
360         * tree-ssa-structalias.c: Likewise.
361         * tree-switch-conversion.c: Likewise.
362         * tree-ssa-structalias.h: Likewise.
363         * tree-cfg.c: Likewise.
364         * passes.c: Likewise.
365         * ipa-struct-reorg.c: Likewise.
366         * ipa-struct-reorg.h: Likewise.
367         * tree-ssa-reassoc.c: Likewise.
368         * cfgrtl.c: Likewise.
369         * varpool.c: Likewise.
370         * stmt.c: Likewise.
371         * tree-ssanames.c: Likewise.
372         * tree-ssa-threadedge.c: Likewise.
373         * langhooks-def.h: Likewise.
374         * tree-ssa-operands.c: Likewise.
375         * config/alpha/alpha.c: Likewise.
376         * config/frv/frv.c: Likewise.
377         * config/s390/s390.c: Likewise.
378         * config/m32c/m32c.c: Likewise.
379         * config/m32c/m32c-protos.h: Likewise.
380         * config/spu/spu.c: Likewise.
381         * config/sparc/sparc.c: Likewise.
382         * config/i386/i386.c: Likewise.
383         * config/sh/sh.c: Likewise.
384         * config/xtensa/xtensa.c: Likewise.
385         * config/stormy16/stormy16.c: Likewise.
386         * config/ia64/ia64.c: Likewise.
387         * config/rs6000/rs6000.c: Likewise.
388         * config/pa/pa.c: Likewise.
389         * config/mips/mips.c: Likewise.
390
391 2008-07-28  Simon Baldwin  <simonb@google.com>
392
393         * c-pragma.c (handle_pragma_message): New function.
394         (init_pragma): Register handle_pragma_message.
395         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
396         documentation.
397
398 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
399
400         PR tree-optimization/35252
401         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
402         REALPART_EXPR to be considered as same load operation.
403
404 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
405
406         PR tree-optimization/36830
407         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
408         (expressions_equal_p): Return false if only one operand is null.
409
410 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
411
412         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
413         version requirements.
414
415 2008-07-26  Olivier Hainque  <hainque@adacore.com>
416
417         * collect2.c (symkind): New enum.  Symbol kinds we care about.
418         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
419         code and head comment accordingly.
420         (scan_prog_file): Use symkind names instead of bare integers.
421         
422 2008-07-25  Jan Hubicka  <jh@suse.cz>
423
424         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
425         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
426         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
427         * dojump.c (clear_pending_stack_adjust): Likewise.
428         * print-tree.c (print_node): Ignore DECL_INLINE.
429         * tree-inline.c (inlinable_function_p): Likewise.
430         
431 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
432
433         * doc/extend.texi (hot attribute): Document that the hot attribute
434         turns on -O3 for some ports.
435         (cold attribute): Document that the cold attribute turns on -Os
436         for some ports
437
438         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
439         reflect function specific option support.
440
441         * target.h (struct target_option_hooks): Add fields to say whether
442         the cold attribute implies -Os and the hot attribute implies -O3.
443
444         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
445         By default, do not turn on -Os for cold functions.
446         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
447         not turn on -O3 for hot functions.
448
449         * c-common.c (handle_hot_attribute): Use target hook to determine
450         if hot functions should enable -O3.
451         (handle_cold_attribute): Use target hook to determine if cold
452         functions should enable -Os.
453
454         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
455         (override_options): Move disable scheduling to
456         optimization_options.
457         (optimization_options): Disable scheduling here, not
458         override_options.
459         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
460         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
461
462         * config/ia64/ia64.c (ia64_override_options): Move setting
463         scheduling flags to ia64_optimization_options.
464         (ia64_optimization_options): Disable scheduling options here, and
465         not in ia64_override_options.
466         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
467         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
468
469 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
470
471         PR target/36936
472         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
473
474 2008-07-25  Martin Jambor  <mjambor@suse.cz>
475
476         PR tree-optimization/36926
477         * ipa-prop.c (ipa_analyze_call_uses): Call
478         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
479
480 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
481
482         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
483         movv2si_internal): Add mem = reg alternative.
484
485 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
486
487         PR bootstrap/36918
488         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
489         DEFAULT_PCC_STRUCT_RETURN to 127.
490
491 2008-07-24  Jan Hubicka  <jh@suse.cz>
492
493         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
494         (build_cgraph_edges): Likewise.
495         * cgraph.c (cgraph_node): Do not update assembler hash.
496         (cgraph_remove_node): Drop non-unit-at-a-time code.
497         * tree-pass.h (pass_O0_always_inline): Remove.
498         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
499         * toplev.c (process_options): Flag unit-at-a-time does not imply
500         no section anchors.
501         * cgraphunit.c: Update comments.
502         (decide_is_function_needed): Drop non-unit-at-a-time mode.
503         (cgraph_assemble_pending_functions): Remove.
504         (cgraph_reset_node): Drop non-unit-at-a-time code.
505         (cgraph_finalize_function): Likewise.
506         (cgraph_analyze_function): Likewise.
507         (cgraph_finalize_compilation_unit): Likewise.
508         (cgraph_expand_function): Likewise.
509         (cgraph_optimize): Likesise.
510         (save_inline_function_body): Likewise.
511         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
512         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
513         * ipa-inline.c: Update comments.
514         (enum inlining_mode): remove INLINE_SPEED.
515         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
516         (cgraph_mark_inline_edge): Likewise.
517         (try_inline): Likewise.
518         (cgraph_decide_inlining_incrementally): Likewise.
519         (cgraph_gate_inlining): Remove.
520         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
521         (cgraph_gate_early_inlining): Likewise.
522         (gate_inline_passes): Remove.
523         (pass_inline_parameters, pass_ipa_inline): Remove gates.
524         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline, 
525         pass_O0_always_inline): Remove.
526         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
527         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
528         * opts.c (no_unit_at_a_time_default): Remove.
529         (decode_options): Remove flag_unit_at_a_time reset and warning.
530         * opts.h (no_unit_at_a_time_default): Remove.
531         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
532         early in GNU dialect.
533         (merge_decls): Update comment; drop unit-at-a-time check.
534         (finish_decl): Likewise.
535         (grok_declaration): Remove flag_inline_trees code.
536         (finish_functions): Return on function returning non-void on all
537         statics.
538         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
539         * cfgexpand.c (expand_one_static_var): Remove.
540         (expand_one_var): Remove expand_one_static_var call.
541         (expand_used_vars_for_block): Remove flag_unit_a_time check.
542         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
543         and flag_unit_at_a-time compatibility checks.
544         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
545         * tree-inline.c (flag_inline_trees): Remove.
546         (inlinable_function_p): Don't check it.
547         (expand_call_inline): Remove non-unit-at-a-time code.
548         * tree-inline.h (flag_inline_trees): Remove.
549         * tree-optimize.c (execute_early_local_optimizations): Remove
550         unit-at-a-time checks.
551         (tree_rest_of_compilation): Likewise.
552         * combine.c (setup_incoming_promotions): Likewise.
553         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
554         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
555         * passes.c (pass_inline_parameters): Update comments; remove
556         O0_alwaysinline pass.
557         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
558         (execute_one_pass): Likewise.
559         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
560         (ix86_function_sseregparm): Likewise.
561         * arm.c (arm_function_in_section_p): Likewise.
562         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
563         * varpool.c: Update comments.
564         (decide_is_variable_needed): Remove unit-at-a-time checks.
565         (varpool_finalize_decl): Likewise.
566
567 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
568
569         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
570         to 2 instead of -1.
571         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
572         to 2.
573
574 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
575
576         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
577         imp symbol extension.
578
579         2008-07-23  Ian Lance Taylor  <iant@google.com>
580
581         * tree-vrp.c (infer_value_range): Ignore asm statements when
582         looking for memory accesses for -fdelete-null-pointer-checks.
583
584 2008-07-24  Ben Elliston  <bje@au.ibm.com>
585
586         * config/spu/spu-c.c (__vector_keyword): New variable.
587         (vector_keyword): Likewise.
588         (spu_categorize_keyword): New function.
589         (spu_macro_to_expand): Likewise.
590         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
591         compiling an ISO C dialect.
592
593 2008-07-24  Ben Elliston  <bje@au.ibm.com>
594
595         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
596         conventional usage.
597
598 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
599
600         * configure: Regenerate.
601         * configure.ac: Require texinfo 4.7.
602         * doc/install.texi: Document texinfo 4.7 requirement.
603
604 2008-07-23  Martin Jambor  <mjambor@suse.cz>
605
606         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
607         rather than for DECL_SAVED_TREE.
608         * ipa-prop.c: Include diagnostic.h.
609         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
610         thoroughly.
611         (ipa_detect_param_modifications): Function rewritten from scratch.
612         (ipa_compute_jump_functions): Changed accesses to modification flags.
613         (ipa_free_node_params_substructures): Update flags destruction.
614         (ipa_node_duplication_hook): Update flags duplication.
615         (ipa_print_all_params_modified): Updated flag access.
616         * ipa-prop.h (struct ipa_param_flags): New structure.
617         (struct ipa_node_params): New field modification_analysis_done,
618         modified_flags changed into param_flags.
619         (ipa_is_ith_param_modified): Changed to use new flags.
620         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
621
622         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
623         ipa-cp.c and split into two functions.
624         (ipa_print_node_jump_functions): New function.
625         (compute_scalar_jump_functions): New function.
626         (type_like_member_ptr_p): New function.
627         (compute_pass_through_member_ptrs): New function.
628         (fill_member_ptr_cst_jump_function): New function.
629         (determine_cst_member_ptr): New function.
630         (compute_cst_member_ptr_arguments): New function.
631         (ipa_compute_jump_functions): Complete rewrite.
632         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
633         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
634         (struct ipa_member_ptr_cst): New structure.
635         (union jump_func_value): New field member_cst.
636         * ipa-cp.c (ipcp_lat_is_insertable): New function.
637         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
638         jump function types.
639         (ipcp_print_all_lattices): Slight fprintf rearrangement.
640         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
641         instead of ipcp_print_all_jump_functions.
642         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
643         only for replacable scalars.
644
645         * doc/invoke.texi (Optimize options): Add description of
646         -findirect-inlining.
647         * common.opt (flag_indirect_inlining): New flag.
648         * opts.c (decode_options): Set flag_indirect_inlining when 
649         optimize >= 3.
650
651         * ipa-inline.c: Include ipa-prop.h.
652         (inline_indirect_intraprocedural_analysis): New function.
653         (inline_generate_summary): Allocate parameter and argument info
654         structures, call inline_indirect_intraprocedural_analysis on each
655         node when doing indirect inlining and deallocate indirect inlining 
656         data structures in the end.
657         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
658         (free_all_ipa_structures_after_iinln): New function.
659         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be 
660         done.
661         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
662
663         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
664         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
665         of computing the frequency separately.
666         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
667         of computing the frequency separately.
668         * ipa-cp.c (ipcp_print_all_structures): Replace a call to 
669         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
670         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
671         (ipa_get_stmt_member_ptr_load_param): New function.
672         (ipa_is_ssa_with_stmt_def): New function.
673         (ipa_note_param_call): New function.
674         (ipa_analyze_call_uses): New function.
675         (ipa_analyze_stmt_uses): New function.
676         (ipa_analyze_params_uses): New function.
677         (ipa_free_node_params_substructures): Also free the param_calls linked
678         list.
679         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
680         (ipa_print_node_param_flags): New function.
681         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
682         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
683         * ipa-prop.h (struct ipa_param_flags): New field called.
684         (struct ipa_param_call_note): New structure.
685         (struct ipa_node_params): New fields param_calls and
686         uses_analysis_done.
687         (ipa_is_ith_param_called): New function.
688         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
689         ipa_analyze_params_uses and dump parameter flags.
690
691         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
692         ipa_propagate_indirect_call_infos if performing indirect inlining,
693         pass a new parameter new_edges to it.
694         (add_new_edges_to_heap): New fucntion.
695         (cgraph_decide_inlining_of_small_functions): New vector
696         new_indirect_edges for newly found indirect edges , call
697         ipa_propagate_indirect_call_infos after inlining.
698         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
699         inlining if performing indirect inlining.  Call
700         free_all_ipa_structures_after_iinln when doing so too.
701         (inline_generate_summary): Do not call
702         free_all_ipa_structures_after_iinln here.
703         * ipa-prop.c (update_jump_functions_after_inlining): New function.
704         (print_edge_addition_message): New function.
705         (update_call_notes_after_inlining): New function.
706         (propagate_info_to_inlined_callees): New function.
707         (ipa_propagate_indirect_call_infos): New function.
708         * ipa-prop.h: Include cgraph.h
709         (struct ipa_param_call_note): Fields reordered, new field processed.
710         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
711         flag indirect_call.
712         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
713         rediscovered call statements.
714         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
715         (dump_cgraph_node): Dump also the indirect_call flag.
716         (cgraph_clone_edge): Copy also the indirect_call flag.
717         * tree-inline.c (copy_bb): Do not check for fndecls from call
718         expressions, check for edge availability when moving clones.
719         (get_indirect_callee_fndecl): New function.
720         (expand_call_inline): If callee declaration is not apprent from
721         the statement, try calling get_indirect_callee_fndecl.  Do not
722         issue warnings or call sorry when not inlinings an indirect edge.
723         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
724
725         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
726         bit more frandly to matching.
727         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
728         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
729         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
730         
731 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
732
733         PR 36907
734         * opth-gen.awk: Suppress function specific features when building
735         target libraries.
736         * optc-gen.awk: Ditto.
737
738 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
739
740         PR 35058
741         * diagnostic.c (pedwarn): Add opt parameter.
742         (pedwarn0): New.
743         * c-tree.h (pedwarn_init): Add opt parameter.
744         (pedwarn_c90): Likewise.
745         (pedwarn_c99): Likewise.
746         * c-errors.c (pedwarn_c99): Likewise.
747         (pedwarn_c90): Likewise.
748         * toplev.h (pedwarn): Update declaration.
749         (pedwarn0): Declare.
750         * c-lex.c: All calls to pedwarn changed.
751         * builtins.c: All calls to pedwarn changed.
752         * toplev.c: All calls to pedwarn changed.
753         * c-decl.c: All calls to pedwarn changed.
754         * c-typeck.c: All calls to pedwarn changed.
755         * c-common.c: All calls to pedwarn changed.
756         * c-parser.c: All calls to pedwarn changed.
757         
758 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
759             Karthik Kumar  <karthikkumar@gmail.com>
760
761         * attribs.c (file scope): Include c-common.h.
762         (decl_attributes): Add support for #pragma GCC optimize and
763         #pragma GCC option.
764
765         * targhooks.c (default_can_inline_p): New function that is the
766         default for the TARGET_CAN_INLINE_P target hook.
767
768         * targhooks.h (default_can_inline_p): Add declaration.
769
770         * tree.c (cl_optimization_node): New static tree for building
771         OPTIMIZATION_NODE tree.
772         (cl_target_option_node): New static tree for building
773         TARGET_OPTION_NODE tree.
774         (cl_option_hash_table): New hash table for hashing
775         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
776         (cl_option_hash_hash): New function to provide the hash value for
777         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
778         (cl_option_hash_eq): New function to provide an equality test for
779         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
780         (tree_code_size): Add support for OPTIMIZATION_NODE and
781         TARGET_OPTION_NODE trees.
782         (tree_code_structure): Add support for OPTIMIZATION_NODE and
783         TARGET_OPTION_NODE trees.
784         (build_optimization_node): Build a tree that has all of the
785         current optimization options.
786         (build_target_option_node): Build a tree that has the target
787         options that might be changed on a per function basis.
788
789         * tree.h (file scope): Include options.h.
790         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
791         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
792         (TREE_OPTIMIZATION): Ditto.
793         (TREE_TARGET_SPECIFIC): Ditto.
794         (struct tree_function_decl): Add fields for remembering the
795         current optimization options and target specific options.
796         (struct tree_optimization_option): New tree variant that remembers
797         the optimization options.
798         (struct tree_target_option): New tree variant that remembers the
799         target specific flags that might change for compiling a particular
800         function.
801         (union tree_node): Include tree_optimization_option and
802         tree_target_option fields.
803         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
804         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
805         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
806         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
807         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
808         optimization and target options.
809         (optimization_default_node): New macro to refer to global_trees
810         field.
811         (optimization_current_node): Ditto.
812         (optimization_cold_node): Ditto.
813         (optimization_hot_node): Ditto.
814         (target_option_default_node): Ditto.
815         (target_option_current_node): Ditto.
816         (current_option_pragma): Ditto.
817         (current_optimize_pragma): Ditto.
818
819         * target.h (struct gcc_target): Add valid_option_attribute_p,
820         target_option_save, target_option_restore, target_option_print,
821         target_option_pragma_parse, and can_inline_p hooks.
822
823         * toplev.h (parse_optimize_options): Add declaration.
824         (fast_math_flags_struct_set_p): Ditto.
825
826         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
827         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
828         optimize is used.
829
830         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
831         tree_can_inline_p hook to see if one function can inline another.
832         (cgraph_decide_inlining): Ditto.
833         (cgraph_decide_inlining_incrementally): Ditto.
834
835         * opts.c (decode_options): Add support for running multiple times
836         to allow functions with different target or optimization options
837         than was specified on the command line.
838         (fast_math_flags_struct_set_p): New function that is similar to
839         fast_math_flags_set_p, except it uses the values in the
840         cl_optimization structure instead of global variables.
841
842         * optc-gen.awk: Add support for TargetSave to allow a back end to
843         declare new fields that need to be saved when using function
844         specific options.  Include flags.h and target.h in the options.c
845         source.  Add support for Save to indicate which options can be set
846         for individual functions.  Generate cl_optimize_save,
847         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
848         cl_target_option_restore, cl_target_option_print functions to
849         allow functions to use different optimization or target options.
850
851         * opt-functions.awk (var_type_struct): Return the type used for
852         storing the field in a structure.
853
854         * opth-gen.awk: Add support for TargetSave to allow a back end to
855         declare new fields that need to be saved when using function
856         specific options.  Add support for Save to indicate which options
857         can be set for individual functions.  Only generate one extern for
858         Mask fields.  Generate cl_optimization and cl_target_option
859         structures to remember optimization and target options.
860
861         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
862         collecting new tree nodes.
863         (TS_TARGET_OPTION): Ditto.
864
865         * c-decl.c (merge_decls): Merge function specific target and
866         optimization options.
867
868         * function.c (invoke_set_current_function_hook): If the function
869         uses different optimization options, change the global variables
870         to reflect this.
871
872         * coretypes.h (struct cl_optimization): Add forward reference.
873         (struct cl_target_option): Ditto.
874
875         * c-pragma.c (option_stack): New static vector to remember the
876         current #pragma GCC option stack.
877         (handle_pragma_option): New function to support #pragma GCC option
878         to change target options.
879         (optimize_stack): New static vector to remember the current
880         #pragma GCC optimize stack.
881         (handle_pragma_optimize): New function to support #pragma GCC
882         optimize to change optimization options.
883         (init_pragma): Add support for #pragma GCC optimize and #pragma
884         GCC option.
885
886         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
887         optimization options.
888         (TARGET_OPTION_NODE): New tree code for remembering certain target
889         options.
890
891         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
892         TARGET_OPTION_NODE trees.
893
894         * common.opt (-O): Add Optimization flag.
895         (-Os): Ditto.
896         (-fmath-errno): Ditto.
897         (-falign-functions): Add UInteger flag to make sure flag gets full
898         int in cl_optimization structure.
899         (-falign-jumps): Ditto.
900         (-falign-labels): Ditto.
901         (-falign-loops): Ditto.
902         (-fsched-stalled-insns): Ditto.
903         (-fsched-stalled-insns-dep): Ditto.
904
905         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
906         definition.
907         (TARGET_OPTION_SAVE): Ditto.
908         (TARGET_OPTION_RESTORE): Ditto.
909         (TARGET_OPTION_PRINT): Ditto.
910         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
911         (TARGET_CAN_INLINE_P): Ditto.
912         (TARGET_INITIALIZER): Add new hooks.
913
914         * tree-inline.c (tree_can_inline_p): New function to determine
915         whether one function can inline another.  Check if the functions
916         use compatible optimization options, and also call the backend
917         can_inline_p hook.
918
919         * tree-inline.h (tree_can_inline_p): Add declaration.
920
921         * c-common.c (c_common_attribute): Add support for option and
922         optimize attributes.
923         (handle_option_attribute): Add support for the option attribute to
924         allow the user to specify different target options for compiling a
925         specific function.
926         (handle_optimize_attribute): Add support for the optimize
927         attribute to allow the user to specify different optimization
928         options for compiling a specific function.
929         (handle_hot_attribute): Turn on -O3 optimization for this one
930         function if it isn't the default optimization level.
931         (handle_cold_attribute): Turn on -Os optimization for this one
932         function if it insn't the default optimization.
933         (const_char_p): New const char * typedef.
934         (optimize_args): New static vector to remember the optimization
935         arguments.
936         (parse_optimize_options): New function to set up the optimization
937         arguments from either the optimize attribute or #pragma GCC
938         optimize.
939
940         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
941         (builtin_define_std): Ditto.
942
943         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
944         Add t-i386 Makefile fragment to add i386-c.o and i386.o
945         dependencies.
946         (x86_64-*-*): Ditto.
947
948         * Makefile.in (TREE_H): Add options.h.
949         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
950
951         * doc/extend.texi (option attribute): Document new attribute.
952         (optimize attribute): Ditto.
953         (hot attribute): Document hot attribute sets -O3.
954         (cold attribute): Document cold attribute sets -Os.
955         (#pragma GCC option): Document new pragma.
956         (#pragma GCC optimize): Ditto.
957
958         * doc/options.texi (TargetSave): Document TargetSave syntax.
959         (UInteger): Document UInteger must be used for certain flags.
960         (Save): Document Save option to create target specific options
961         that can be saved/restored on a function specific context.
962
963         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
964         macro.
965         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
966
967         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
968         hook.
969         (TARGET_OPTION_SAVE): Ditto.
970         (TARGET_OPTION_RESTORE): Ditto.
971         (TARGET_OPTION_PRINT): Ditto.
972         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
973         (TARGET_CAN_INLINE_P): Ditto.
974
975         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
976         -mfpmath=sse,387.
977         (-mfpmath=both): Ditto.
978
979 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
980             Karthik Kumar  <karthikkumar@gmail.com>
981
982         * config/i386/i386.h (TARGET_ABM): Move switch into
983         ix86_isa_flags.
984         (TARGET_POPCNT): Ditto.
985         (TARGET_SAHF): Ditto.
986         (TARGET_AES): Ditto.
987         (TARGET_PCLMUL): Ditto.
988         (TARGET_CMPXCHG16B): Ditto.
989         (TARGET_RECIP): Move switch into target_flags.
990         (TARGET_FUSED_MADD): Ditto.
991         (ix86_arch_features): Make an unsigned char type.
992         (ix86_tune_features): Ditto.
993         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
994         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
995         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
996
997         * config/i386/i386.opt (arch): New TargetSave field to define
998         fields that need to be saved for function specific option
999         support.
1000         (tune): Ditto.
1001         (fpmath): Ditto.
1002         (branch_cost): Ditto.
1003         (ix86_isa_flags_explicit): Ditto.
1004         (tune_defaulted): Ditto.
1005         (arch_specified): Ditto.
1006         (-m128-long-double): Add Save flag to save option for target
1007         specific option support.
1008         (-m80387): Ditto.
1009         (-maccumulate-outgoing-args): Ditto.
1010         (-malign-double): Ditto.
1011         (-malign-stringops): Ditto.
1012         (-mfancy-math-387): Ditto.
1013         (-mhard-float): Ditto.
1014         (-mieee-fp): Ditto.
1015         (-minline-all-stringops): Ditto.
1016         (-minline-stringops-dynamically): Ditto.
1017         (-mms-bitfields): Ditto.
1018         (-mno-align-stringops): Ditto.
1019         (-mno-fancy-math-387): Ditto.
1020         (-mno-push-args): Ditto.
1021         (-mno-red-zone): Ditto.
1022         (-mpush-args): Ditto.
1023         (-mred-zone): Ditto.
1024         (-mrtd): Ditto.
1025         (-msseregparm): Ditto.
1026         (-mstack-arg-probe): Ditto.
1027         (-m32): Ditto.
1028         (-m64): Ditto.
1029         (-mmmx): Ditto.
1030         (-m3dnow): Ditto.
1031         (-m3dnowa): Ditto.
1032         (-msse): Ditto.
1033         (-msse2): Ditto.
1034         (-msse3): Ditto.
1035         (-msse4.1): Ditto.
1036         (-msse4.2): Ditto.
1037         (-msse4): Ditto.
1038         (-mno-sse4): Ditto.
1039         (-msse4a): Ditto.
1040         (-msse5): Ditto.
1041         (-mrecip): Move flag into target_flags.
1042         (-mcld): Ditto.
1043         (-mno-fused-madd): Ditto.
1044         (-mfused-madd): Ditto.
1045         (-mabm): Move flag into ix86_isa_flags.
1046         (-mcx16): Ditto.
1047         (-mpopcnt): Ditto.
1048         (-msahf): Ditto.
1049         (-maes): Ditto.
1050         (-mpclmul): Ditto.
1051
1052         * config/i386/i386-c.c: New file for #pragma support.
1053         (ix86_target_macros_internal): New function to #define or #undef
1054         target macros based when the user uses the #pragma GCC option to
1055         change target options.
1056         (ix86_pragma_option_parse): New function to add #pragma GCC option
1057         support.
1058         (ix86_target_macros): Move defining the target macros here from
1059         TARGET_CPU_CPP_BUILTINS in i386.h.
1060         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
1061         defined, initialize any subtarget #pragmas.
1062
1063         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1064         REGISTER_TARGET_PRAGMAS.
1065
1066         * config/i386/t-i386: New file for x86 dependencies.
1067         (i386.o): Make dependencies mirror the include files used.
1068         (i386-c.o): New file, add dependencies.
1069
1070         * config/i386/i386-protos.h (override_options): Add bool
1071         argument.
1072         (ix86_valid_option_attribute_tree): Add declaration.
1073         (ix86_target_macros): Ditto.
1074         (ix86_register_macros): Ditto.
1075
1076         * config/i386/i386.c (ix86_tune_features): Move initialization of
1077         the target masks to initial_ix86_tune_features to allow functions
1078         to have different target options.  Make type unsigned char,
1079         instead of unsigned int.
1080         (initial_ix86_tune_features): New static vector to hold processor
1081         masks for the tune variables.
1082         (ix86_arch_features): Move initialization of the target masks to
1083         initial_ix86_arch_features to allow functions to have different
1084         target options.  Make type unsigned char, instead of unsigned
1085         int.
1086         (initial_ix86_arch_features): New static vector to hold processor
1087         masks for the arch variables.
1088         (enum ix86_function_specific_strings): New enum to describe the
1089         string options used for attribute((option(...))).
1090         (ix86_target_string): New function to return a string that
1091         describes the target options.
1092         (ix86_debug_options): New function to print the current options in
1093         the debugger.
1094         (ix86_function_specific_save): New function hook to save the
1095         function specific global variables in the cl_target_option
1096         structure.
1097         (ix86_function_specific_restore): New function hook to restore the
1098         function specific variables from the cl_target_option structure to
1099         the global variables.
1100         (ix86_function_specific_print): New function hook to print the
1101         target specific options in the cl_target_option structure.
1102         (ix86_valid_option_attribute_p): New function hook to validate
1103         attribute((option(...))) arguments.
1104         (ix86_valid_option_attribute_tree): New function that is common
1105         code between attribute((option(...))) and #pragma GCC option
1106         support that parses the options and returns a tree holding the
1107         options.
1108         (ix86_valid_option_attribute_inner_p): New helper function for
1109         ix86_valid_option_attribute_tree.
1110         (ix86_can_inline_p): New function hook to decide if one function
1111         can inline another on a target specific basis.
1112         (ix86_set_current_function); New function hook to switch target
1113         options if the user used attribute((option(...))) or #pragma GCC
1114         option.
1115         (ix86_tune_defaulted): Move to static file scope from
1116         override_options.
1117         (ix86_arch_specified): Ditto.
1118         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1119         ix86_isa_flags.
1120         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1121         (OPTION_MASK_ISA_ABM_SET): Ditto.
1122         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1123         (OPTION_MASK_ISA_CX16_SET): Ditto.
1124         (OPTION_MASK_ISA_SAHF_SET): Ditto.
1125         (OPTION_MASK_ISA_AES_UNSET): Ditto.
1126         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1127         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1128         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1129         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1130         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1131         (struct ptt): Move to static file scope from override_options.
1132         (processor_target_table): Ditto.
1133         (cpu_names): Ditto.
1134         (ix86_handle_option): Add support for options that are now isa
1135         options.
1136         (override_options): Add support for declaring functions that
1137         support different target options than were specified on the
1138         command line.  Move struct ptt, processor_target_table, cpu_names,
1139         ix86_tune_defaulted, ix86_arch_specified to static file scope.
1140         Add bool argument.  Fix up error messages so the appropriate error
1141         is given for either command line or attribute.
1142         (ix86_previous_fndecl): New static to remember previous function
1143         declaration to see if we need to change target options.
1144         (ix86_builtins_isa): New array to record the ISA of each builtin
1145         function.
1146         (def_builtin): Always create the builtin function, even if the
1147         current ISA doesn't support it.
1148         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1149         tests for those builtins.
1150         (ix86_init_builtins): Remove TARGET_MMX test for calling
1151         ix86_init_mmx_sse_builtins.
1152         (ix86_expand_builtin): If the current ISA doesn't support a given
1153         builtin, signal an error.
1154         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1155         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1156         (TARGET_OPTION_SAVE): Ditto.
1157         (TARGET_OPTION_RESTORE): Ditto.
1158         (TARGET_OPTION_PRINT): Ditto.
1159         (TARGET_CAN_INLINE_P): Ditto.
1160
1161 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1162
1163        * c-typeck.c (build_external_ref): Don't call assemble_external.
1164        * final.c (output_operand): Call assemble_external.
1165
1166 2008-07-21  DJ Delorie  <dj@redhat.com>
1167
1168         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1169         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1170
1171 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1172
1173         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1174         original insn and splitter contents into ...
1175         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1176         flag_unsafe_math_optimizations.  Add dummy scratch register.
1177         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1178         !flag_unsafe_math_optimizations.  Returns number with next
1179         highest magnitude if this is still less or equal to the true
1180         quotient in magnitude.
1181
1182 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1183
1184         * Makefile.in: Replace toplev.h with TOPLEV_H.
1185         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1186         * c-lex.c (fe_file_change): Don't set in_system_header.
1187         * c-parser.c (c_token): Remove in_system_header.
1188         (c_lex_one_token): Don't set in_system_header.
1189         (c_parser_set_source_position_from_token): Don't set in_system_header.
1190         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1191         diagnostic_info.
1192         (warning_at): New.
1193         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1194         * flags.h (in_system_header): Remove.
1195         * function.c (saved_in_system_header): Remove.
1196         (push_cfun): Don't set in_system_header.
1197         (pop_cfun): Don't set in_system_header.
1198         (push_struct_function): Don't set in_system_header.
1199         * input.h (expanded_location): Add sysp.
1200         (in_system_header_at): New.
1201         (in_system_header): New.
1202         * toplev.c (in_system_header): Remove.
1203         * toplev.h: Include input.h
1204         (warning_at): New.
1205         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1206         * tree-ssa.c (warn_uninit): Call warning_at.
1207         (warn_uninitialized_var): Update calls to warn_uninit.
1208         (warn_uninitialized_phi): Update calls to warn_uninit.
1209         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1210         (expand_location): Initialize xloc.sysp.
1211         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1212         (tree_decl_with_vis): Remove in_system_header_flag.
1213
1214 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1215
1216         PR target/36822
1217         * recog.c (asm_operand_ok): Change the order of the extra
1218         memory constraint checks.
1219
1220 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1221
1222         PR tree-opt/36879
1223         * tree-switch-conversion.c (build_one_array): Call
1224         varpool_mark_needed_node and varpool_finalize_decl 
1225         instead of assemble_variable.
1226
1227 2008-07-19  Jan Hubicka  <jh@suse.cz>
1228
1229         * cgraph.c (cgraph_add_new_function): Do early local passes.
1230         * tree-nrv.c (gate_pass_return_slot): New gate.
1231         (pass_nrv): Add the gate.
1232         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1233         functions.
1234         (coalesce_ssa_name): Coalesce SSA names.
1235         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1236         not optimizing so unused user vars remains visible.
1237         * common.opt (flag_tree_ter): Always enable by default.
1238         * tree-ssa-ter.c: Include flags.h
1239         (is_replaceable_p): Check that locations match; when aliasing is missing
1240         be conservative about loads.
1241         * tree-optimize.c (gate_init_datastructures): Remove.
1242         (pass_init_datastructures): New.
1243         * passes.c: Reorder passes so we always go into SSA.
1244
1245 2008-07-19  Jan Hubicka  <jh@suse.cz>
1246
1247         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1248         * doc/invoke.texi (--combine): Likewise.
1249         (-finline-functions-called-once): Update levels when enabled.
1250         (-funit-at-a-time): Document new behaviour.
1251         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1252         -fno-section-anchors when disabled explicitly.
1253         (inline params): They are not ignored now.
1254         (precompiled headers): Remove unit-at-a-time as being incompatible.
1255         * opts.c (decode_options): Handle unit-at-a-time as alias;
1256         imply -fno-section-anchors when toplevel reorder is disabled
1257         explicitly.
1258         * common.opt (ftoplevel-reorder): Set default value to 2.
1259         (funit-at-a-time): Set default value to 1.
1260         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1261         to 2.
1262
1263 2008-07-19  Jan Hubicka  <jh@suse.cz>
1264
1265         * builtins.c (expand_builtin_int_roundingfn,
1266         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1267         it is not useful.
1268
1269 2008-07-19  Richard Guenther  <rguenther@suse.de>
1270
1271         PR bootstrap/36864
1272         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1273         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1274         * tree-ssa-pre.c (get_expr_value_id): For newly created
1275         constant value-ids make sure to add the expression to its
1276         expression-set.
1277
1278 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1279
1280         PR middle-end/36877
1281         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1282         return value of the builtin is ignored.
1283
1284 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1285
1286         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1287         bits, a C conformant malloc implementation has to provide.
1288         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1289
1290 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1291
1292         PR target/36780
1293         PR target/36827
1294         * reload.c (find_reloads_subreg_address): Only reload address if
1295         reloaded == 0, not for reloaded != 1.
1296
1297         Revert:
1298         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1299         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1300         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1301         m32c_legitimize_reload_address.
1302
1303         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1304         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1305         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1306
1307 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1308
1309         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1310         argument, saying whether nested array are to be collapsed
1311         into a single array type DIE with multiple subscripts.
1312         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1313         issues, centralize the nested array types collapsing control and
1314         disable the transformation for Ada.
1315         
1316 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1317
1318         PR target/36786
1319         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1320         x86_64_shift_adj.
1321         (x86_64_shift_adj_2): New expander.
1322         (x86_64_shift_adj_3): Ditto.
1323         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1324         to split TImode operands.
1325         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1326         (ix86_split_lshr): Ditto.
1327
1328 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1329
1330         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1331         and __CHAR32_TYPE__.
1332         * c-typeck.c (digest_init): Support char16_t and char32_t.
1333         (set_nonincremental_init_from_string): Idem.
1334
1335 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1336
1337         PR middle-end/36859
1338         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1339         PREFERRED_STACK_BOUNDARY.
1340         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1341
1342 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1343
1344         PR middle-end/36858
1345         * function.c (locate_and_pad_parm): Cap boundary earlier.
1346
1347 2008-07-17  Julian Brown  <julian@codesourcery.com>
1348
1349         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1350         no-op for targets which don't use DLLs.
1351
1352 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1353
1354         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1355         that nodes are relevant by examining the node->analyzed flag.
1356         (ipcp_init_stage): Check which nodes are relevant, assert that the
1357         relevant ones are also required.
1358         (ipcp_propagate_stage): Check on the side arrays are properly
1359         allocated.
1360         (ipcp_print_all_jump_functions): Make sure not to touch any node
1361         that is not analyzed or an edge that does not have a corresponding
1362         entry in the on-the-side vectors.
1363         (ipcp_function_scale_print): Likewise.
1364         (ipcp_update_callgraph): Check that the node is relevant.
1365         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1366         an info for every node and edge.
1367         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1368         (ipa_print_all_tree_maps): Likewise and a new variable info.
1369         (ipa_print_all_params_modified): Likewise.
1370         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1371
1372 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1373
1374         PR target/25343
1375         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1376
1377 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1378
1379         PR rtl-optimization/36753
1380         * fwprop.c (use_killed_between): Don't shortcut
1381         single-definition global registers.
1382
1383 2008-07-16  Jan Hubicka  <jh@suse.cz>
1384
1385         * cgraph.h (varpool_empty_needed_queue): Declare.
1386         * cgraphunit.c (output_in_order): Mark all variables as needed;
1387         empty the queue.
1388         * varpool.c (varpool_assemble_node): Update debug queue.
1389         (varpool_assemble_pending_decls): Don't do it here.
1390         (varpool_empty_needed_queue):  New function.
1391
1392 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1393
1394         * recog.c (peephole2_optimize): Fix formatting.
1395
1396 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1397
1398         * c-pch.c (get_ident): Avoid C++ keywords.
1399         * combine-stack-adj.c (single_set_for_csa): Likewise.
1400         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1401         output_asm_insn): Likewise.
1402         * reload.c (push_secondary_reload, find_reusable_reload,
1403         push_reload, combine_reloads, find_reloads,
1404         debug_reload_to_stream): Likewise.
1405         * reload.h (struct reload): Likewise.
1406         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1407         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1408         emit_output_reload_insns): Likewise.
1409         * targhooks.c (default_secondary_reload): Likewise.
1410         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1411
1412 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1413
1414         * recog.c (validate_change_1, validate_change,
1415         validate_unshare_change, validate_replace_rtx_1, struct
1416         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1417         keywords.
1418         * reload.c (push_secondary_reload, secondary_reload_class,
1419         scratch_reload_class, find_valid_class, find_reusable_reload,
1420         push_reload, find_dummy_reload, find_reloads_address_1,
1421         find_reloads_address_part, find_equiv_reg): Likewise.
1422         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1423         choose_reload_regs): Likewise.
1424         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1425         Likewise.
1426         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1427         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1428         * sched-rgn.c (concat_INSN_LIST): Likewise.
1429         * stor-layout.c (mode_for_size, mode_for_size_tree,
1430         smallest_mode_for_size): Likewise.
1431
1432 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1433
1434         * cfg.c (dump_reg_info): Avoid C++ keywords.
1435         * dwarf2asm.c (dw2_force_const_mem,
1436         dw2_asm_output_encoded_addr_rtx): Likewise.
1437         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1438         * expmed.c (expand_shift): Likewise.
1439         * global.c (find_reg): Likewise.
1440         * graph.c (draw_edge): Likewise.
1441         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1442         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1443         widen_clz, widen_bswap, expand_parity, expand_unop,
1444         emit_cmp_and_jump_insn_1): Likewise.
1445         * postreload.c (reload_cse_simplify_operands): Likewise.
1446         * ra.h (add_neighbor): Likewise.
1447         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1448         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1449         record_reg_classes, copy_cost, record_address_regs,
1450         invalid_mode_change_p): Likewise.
1451         * regrename.c (regrename_optimize, scan_rtx_reg,
1452         dump_def_use_chain, find_oldest_value_reg,
1453         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1454
1455 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1456
1457         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1458         MASK_POWERPC64 for power4 in previous commit.
1459
1460 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1461
1462         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1463         instead of bare conversion to cast const-ness away.
1464
1465 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1466
1467         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1468         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1469         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1470         (TARGET_FUNCTION_VALUE): Define.
1471
1472 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1473
1474         * config/rs6000/rs6000.c (processor_target_table): Add
1475         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1476
1477 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1478
1479         PR target/36827
1480         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1481         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1482         m32c_legitimize_reload_address.
1483
1484 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1485
1486        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1487        DECL_IN_SYSTEM_HEADER in sync.
1488
1489 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1490
1491         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1492         * tree-ssa-pre.c (pre_expr_eq): Ditto
1493         (get_constant_for_value_id): Take a type as an argument.
1494         (fully_constant_expression): Pass in type.
1495         (find_or_generate_expression): Short circuit constant case.
1496         (create_expression_by_pieces): Remove special casing of
1497         pointer_plus.
1498         (do_regular_insertion): Short circuit constant case.
1499         (do_partial_partial_insertion): Ditto.
1500
1501 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1502
1503         PR target/36782
1504         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1505
1506 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1507         
1508         * config/xtensa/libgcc-xtensa.ver: New file.
1509         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1510         
1511 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1512
1513         * df-problems.c (df_set_note): Avoid C++ keywords.
1514         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1515         * dse.c (record_store, remove_useless_values): Likewise.
1516         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1517         gen_reg_rtx_offset, operand_subword, change_address_1,
1518         change_address, adjust_address_1, offset_address,
1519         widen_memory_access, emit_copy_of_insn_after): Likewise.
1520         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1521         * fwprop.c (should_replace_address, propagate_rtx_1,
1522         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1523         Likewise.
1524         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1525         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1526         * lcm.c (compute_insert_delete, pre_edge_lcm,
1527         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1528         * lower-subreg.c (resolve_reg_notes): Likewise.
1529         * mode-switching.c (optimize_mode_switching): Likewise.
1530
1531 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1532
1533         * bt-load.c (add_btr_def, migrate_btr_def,
1534         branch_target_load_optimize): Avoid C++ keywords.
1535         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1536         Likewise.
1537         * combine.c (subst, simplify_set, make_extraction,
1538         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1539         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1540         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1541
1542 2008-07-15  Richard Guenther  <rguenther@suse.de>
1543
1544         PR middle-end/36369
1545         * c-common.c (strict_aliasing_warning): Do not warn for
1546         TYPE_REF_CAN_ALIAS_ALL pointers.
1547         (c_common_get_alias_set): may_alias types are not special.
1548         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1549         attribute and set can_ref_all accordingly.
1550         (build_reference_type_for_mode): Likewise.
1551         * doc/extend.texi (may_alias): Clarify.
1552
1553 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1554
1555         PR target/36780
1556         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1557         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1558
1559 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1560
1561         PR target/31568
1562         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1563         gcc_assert, instead call output_operand_lossage.
1564
1565 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1566
1567         * builtins.c (std_canonical_va_list): Treat structure based
1568         va_list types.
1569
1570 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1571
1572         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1573
1574 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1575
1576         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1577         is set.
1578
1579 2008-07-14  Jan Hubicka  <jh@suse.cz>
1580
1581         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1582         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1583         fix predicates and constraints.
1584         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1585         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1586
1587 2008-07-14  Doug Kwan  <dougkwan@google.com>
1588
1589         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1590         additional option file arm/eabi.opt.
1591         * config/arm/eabi.h (File): New configuration file for EABI targets.
1592         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1593         SUBSUBTARGET_EXTRA_SPECS.
1594         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1595         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1596         from STARTFILE_SPEC so that it can be referenced in an override.
1597         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1598         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1599         can be referenced in an override.
1600         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1601         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1602         so that it can be referenced in an override.
1603         (LINK_SPEC): Use BPABI_LINK_SPEC.
1604         * config/arm/eabi.opt (File): New.
1605
1606 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1607
1608         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1609         (FIXED_VALUE_H): New variable.
1610         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1611         input.h, fixed-value.h.
1612         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1613         (BASIC_BLOCK_H): Use $(BITMAP_H).
1614         (FUNCTION_H): Add varray.h.
1615         (IPA_REFERENCE_H): Use $(BITMAP_H).
1616         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1617         (DF_H): Use $(BITMAP_H).
1618         (GGC_H): Add statistics.h.
1619         (INSN_ADDR_H): New.
1620         (INSN_ATTR_H): Use it.
1621         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1622         (INPUT_H): New.
1623         (SYMTAB_H): Add $(OBSTACK_H).
1624         (CPP_INTERNAL_H): New.
1625         (TREE_DUMP_H): Add tree-pass.h.
1626         (TREE_FLOW_H): Use $(BITMAP_H)
1627         (PRETTY_PRINT_H): Use $(INPUT_H).
1628         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1629         (GSTAB_H): New.
1630         (BITMAP_H): New.
1631         (many object files): Fix lots of header dependencies throughout.
1632
1633 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1634
1635         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1636         New macros.
1637         (s-gtyp-input): Use them to write tmp-gi.list.
1638         (echo_to_gi.list): Remove.
1639
1640 2008-07-14  Richard Guenther  <rguenther@suse.de>
1641
1642         * tree-ssa-sccvn.c (pre_info): Remove.
1643         (switch_to_PRE_table): Likewise.
1644         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1645         (set_hashtable_value_ids): Do not create value-ids for the
1646         optimistic tables.
1647         (run_scc_vn): Remove double test.  Remove bogus special-case
1648         in value-number printing.
1649         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1650         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1651         SSA_NAME_VALUE.
1652         * tree-flow-inline.h (get_value_handle): Remove.
1653         * tree-flow.h (get_value_handle): Remove.
1654
1655 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1656
1657         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1658         in which we generate arithmetics is not a subrange.
1659
1660 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1661
1662         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1663
1664 2008-07-14  Richard Guenther  <rguenther@suse.de>
1665
1666         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1667
1668 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1669
1670         PR target/36745
1671         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1672         reload for symbol refs moved to r0 with -fPIC.
1673         (legitimize_pic_address): Use the target register as temporary
1674         reg if possible.
1675         (emit_symbolic_move): Adjust comment.
1676         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1677         New expanders.
1678
1679 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1680
1681         * c-common.h (C_CPP_HASHNODE): New macro.
1682         * coretypes.h (struct cpp_token): Forward declare.
1683         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1684         the context-sensitive keyword method.
1685         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1686         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1687         expand_bool_pixel): New.
1688         (altivec_categorize_keyword): New function.
1689         (init_vector_keywords): New function.
1690         (rs6000_macro_to_expand): Likewise.
1691         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1692         compiling an ISO C dialect.
1693
1694 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1695
1696         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1697         (create_expression_by_pieces): Fix typo.
1698         (do_regular_insertion): Use debug counter here too.
1699
1700 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1701
1702         PR target/35492.
1703         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1704         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1705         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1706         implement Kp matching power-of-two.
1707         (CONSTRAINT_LEN): Define to match.
1708         * config/cris/cris.md: Replace all use of constraint K with Kc.
1709         ("*btst*): Use Kp for operand 0 of last alternative.
1710
1711 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1712
1713         PR testsuite/36440
1714         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1715         and quad formats.
1716
1717 2008-07-13  Jan Hubicka  <jh@suse.cz>
1718
1719         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1720         to be mangled too.
1721
1722 2008-07-13  Richard Guenther  <rguenther@suse.de>
1723
1724         PR middle-end/36811
1725         * langhooks.c (lhd_print_error_function): Deal with recursive
1726         BLOCK trees.
1727
1728 2008-07-12  Jan Hubicka  <jh@suse.cz>
1729
1730         * cgraph.c (assembler_name_hash): New static var.
1731         (hash_node_by_assembler_name, eq_assembler_name): New.
1732         (cgraph_node_for_asm): Use hashtable.
1733         (cgraph_remove_node): Maintain hashtable.
1734         (change_decl_assembler_name): Sanity check that names are not changing
1735         after aliasing was processed.
1736         * cgraph.h (varpoon_node): Add next GGC marker.
1737         * tree.c (decl_assembler_name_equal): Constify.
1738         (decl_assembler_name_hash): New.
1739         * tree.h (decl_assembler_name_equal): Constify.
1740         (decl_assembler_name_hash): Update.
1741
1742 2008-07-12  David Daney  <ddaney@avtrex.com>
1743
1744         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1745         sb1 and r5000 cpus.
1746
1747 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1748
1749         * doc/md.texi: Document the MIPS "v" constraint.
1750         * config/mips/mips.h (reg_class): Revert last change.
1751         (REG_CLASS_NAMES): Likewise.
1752         (REG_CLASS_CONTENTS): Likewise.
1753         * config/mips/mips.c (mips_regno_to_class): Likewise.
1754         * config/mips/constraints.md (v): Likewise, but add documentation.
1755         Add a comment to say that this constraint should not be used in
1756         gcc code.
1757
1758 2008-07-11  DJ Delorie  <dj@redhat.com>
1759
1760         * config/h8300/h8300.md (length): Fix branch offset limit.
1761
1762 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
1763
1764         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1765         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1766         (avr_hard_regno_scratch_ok): New function.
1767         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1768         * config/avr/avr.md (all peepholes that request a scratch register):
1769         Remove avr_peep2_scratch_safe use.
1770
1771 2008-07-11  Tom Tromey  <tromey@redhat.com>
1772             Ian Lance Taylor  <iant@google.com>
1773
1774         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1775         (struct c_common_resword): Define.
1776         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1777         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1778         (c_common_reswords, num_c_common_reswords): Declare.
1779         * c-common.c (c_common_reswords): New global const array.
1780         (num_c_common_reswords): New const int.
1781         * c-parser.c (struct resword, reswords): Don't define.
1782         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1783         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1784         than reswords.  If warning about C++ keywords, give them a special
1785         RID code.
1786         (c_lex_one_token): Warn about C++ keywords.  Call
1787         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1788         (c_parser_external_declaration): Look for RID_xxx rather than
1789         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1790         (c_parser_statement_after_labels): Likewise.
1791         (c_parser_objc_class_instance_variables): Likewise.
1792         (c_parser_objc_class_declaration): Likewise.
1793         (c_parser_objc_try_catch_statement): Likewise.
1794         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1795         (declspecs_add_type): Likewise.
1796
1797 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1798
1799         * ggc-page.c (alloc_page):
1800         Substituting xmalloc, xcalloc with
1801         XNEWVEC and XCNEWVAR macros which add the
1802         needed casts.
1803
1804 2008-07-11  Richard Guenther  <rguenther@suse.de>
1805
1806         PR tree-optimization/36765
1807         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1808         aliases from HEAP vars to SMTs.
1809
1810 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1811
1812         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1813         * configure.ac (loose_warn): Move -Wc++-compat from here...
1814         (strict_warn): ...to here.
1815         * configure: Regenerate.
1816
1817 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
1818
1819         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1820         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1821         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1822         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1823         excluding more specific h8300-*-* and sh-*-* targets.
1824
1825 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
1826
1827         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1828         (eliminate): Ditto.
1829         (execute_pre): Call loop_optimizer_finalize in early exit.
1830
1831 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
1832
1833         PR middle-end/36790
1834         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1835         uids in the bitmap, not just VAR_DECL uids.
1836
1837         PR rtl-optimization/36419
1838         * combine-stack-adj.c (adjust_frame_related_expr): New function.
1839         (combine_stack_adjustments_for_block): Call it if needed.  Delete
1840         correct insn.
1841         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1842         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1843         prologue sp adjustment.
1844
1845 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
1846
1847         PR other/28322
1848         * opts.c (print_ignored_options): Report postponed diagnostics for
1849         unknown -Wno-* options as warnings, not errors.
1850         (postpone_unknown_option_error): Renamed to...
1851         (postpone_unknown_option_warning): ... this.
1852
1853 2008-07-09  Doug Kwan  <dougkwan@google.com>
1854
1855         Revert:
1856         2008-07-08  Doug Kwan  <dougkwan@google.com>
1857
1858         * config/arm/arm.opt (mandroid): New option.
1859         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1860         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1861         (CC1_SPEC): Same.
1862         (CC1PLUS_SPEC): Same.
1863         (LIB_SPEC): Same.
1864         (STARTFILE_SPEC): Same.
1865         (ENDFILE_SPEC): Same.
1866         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1867         used.
1868
1869 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
1870
1871         PR target/35802
1872         * config/mips/mips.h (reg_class): Remove V1_REG.
1873         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1874         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1875         instead of V1_REGS.
1876         (mips_get_tp): New function.
1877         (mips_legitimize_tls_address): Use it.
1878         * config/mips/constraints.md (v): Delete.
1879         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1880         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1881         After reload, split into a move and ...
1882         (*tls_get_tp_<mode>_split): ...this new instruction.
1883
1884 2008-07-09  David Daney  <ddaney@avtrex.com>
1885
1886         * config/mips/driver-native.c: Include coretypes.h and tm.h.
1887
1888 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
1889
1890         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1891         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1892         Add c argument.
1893         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1894         htab_delete should be called.  Don't free c.
1895         (lookup_tmp_var): Create temp_htab lazily.
1896         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1897         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1898         callers.
1899         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1900         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1901         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
1902         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1903         * tree-sra.c (generate_element_init): Likewise.
1904         * tree-mudflap.c (execute_mudflap_function_ops,
1905         execute_mudflap_function_decls): Likewise.
1906         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1907         * tree-gimple.h (struct gimplify_ctx): New type.
1908         (push_gimplify_context): Adjust prototype.
1909
1910 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
1911
1912         * tree-ssa-pre.c (phi_translate_1): Update placement of
1913         add_to_value calls.
1914
1915 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
1916
1917         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1918         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1919         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1920         * targhooks.c (default_hard_regno_scratch_ok): New function.
1921         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1922         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1923         * recog.c:  Include "target.h".
1924         (peep2_find_free_register): Add check for global regs. Add target
1925         specific check.
1926         * Makefile.in (recog.o): Depend on target.h.
1927
1928 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1929
1930         * config/sh/sh.c (sh_canonical_va_list_type): New.
1931         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1932
1933 2008-07-09  Raksit Ashok <raksit@google.com>
1934
1935         * doc/invoke.texi (Option Summary): Mention new option
1936         -Wdisallowed-function-list=...
1937         (Warning Options): Document -Wdisallowed-function-list=...
1938         * common.opt (Wdisallowed-function-list=): New flag.
1939         * flags.h (warn_disallowed_functions): External definition of new
1940         boolean warning flag.
1941         (warn_if_disallowed_function_p): Declare new function.
1942         * opts.c (warning_disallowed_functions): New static variable.
1943         (warn_disallowed_functions): New boolean warning flag.
1944         (warn_if_disallowed_function_p): New function.
1945         (add_comma_separated_to_vector): Rename
1946         add_instrument_functions_exclude_list to this.
1947         (common_handle_option): Handle new option. Rename calls to
1948         add_instrument_functions_exclude_list into calls to
1949         add_comma_separated_to_vector.
1950         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1951         based on flag warn_disallowed_functions.
1952
1953 2008-07-09  Christian Bruel  <christian.bruel@st.com>
1954
1955         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1956          instead of get_attr_length.
1957
1958 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1959
1960         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1961         keywords.
1962         * genemit.c (gen_insn): Likewise.
1963         * gengtype.c (note_def_vec): Likewise.
1964         * gengtype.h (note_def_vec): Likewise.
1965         * genoutput.c (struct data, output_insn_data, process_template,
1966         gen_expand, gen_split, note_constraint): Likewise.
1967         * genrecog.c (new_decision, add_to_sequence, factor_tests,
1968         make_insn_sequence): Likewise.
1969         * gensupport.c (record_insn_name): Likewise.
1970
1971 2008-07-08  Doug Kwan  <dougkwan@google.com>
1972
1973         * config/arm/arm.opt (mandroid): New option.
1974         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1975         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1976         (CC1_SPEC): Same.
1977         (CC1PLUS_SPEC): Same.
1978         (LIB_SPEC): Same.
1979         (STARTFILE_SPEC): Same.
1980         (ENDFILE_SPEC): Same.
1981         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1982         used.
1983
1984 2008-07-08  Raksit Ashok  <raksit@google.com>
1985
1986         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1987         (set_storage_via_setmem): Fix expected_align parameter.
1988         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1989         missing from the list.
1990         * doc/md.texi (movmem): Explicitly state that expected alignment is
1991         to be expressed in bytes.
1992         (setmem): Explicitly state that expected alignment is to be expressed
1993         in bytes.
1994
1995 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
1996
1997         * reload.c (find_reloads_subreg_address): Do not require validity
1998         of address in original mode before reloading address.
1999
2000 2008-07-07  Tianwei Sheng  <tianweis@google.com>
2001
2002         * df-core.c (df_remove_problem): Adjust the access to avoid out of
2003         bounds array access.
2004
2005 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
2006
2007         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2008
2009 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
2010         
2011         Fix PR tree-optimization/23455
2012         Fix PR tree-optimization/35286
2013         Fix PR tree-optimization/35287
2014         * Makefile.in (OBJS-common): Remove tree-vn.o.
2015         (tree-vn.o): Remove.
2016         * dbgcnt.def: Add treepre_insert debug counter.
2017         * gcc/tree-flow.h (add_to_value): Updated for other changes.
2018         (debug_value_expressions): Ditto.
2019         (print_value_expressions): Ditto.
2020         * tree-pretty-print.c (dump_generic_node): Updated for
2021         VALUE_HANDLE removal.
2022         * tree-ssa-dom.c (record_equality): Ditto.
2023         (cprop_operand): Ditto.
2024         (lookup_avail_expr): Ditto.
2025         * tree-ssa-threadedge.c
2026         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2027         (simplify_control_stmt_condition): Ditto.
2028         * tree.c (tree_code_size): Ditto.
2029         (tree_node_structure): Ditto.
2030         (iterative_hash_expr): Ditto.
2031         * tree.def: Ditto.
2032         * tree.h (VALUE_HANDLE_ID): Ditto.
2033         (VALUE_HANDLE_EXPR_SET): Ditto.
2034         (struct tree_value_handle): Ditto.
2035         (union tree_node): Ditto.
2036         * treestruct.def: Ditto.
2037         * tree-vn.c: Removed.
2038         * tree-ssa-pre.c: Rewritten entirely.
2039         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2040         (constant_value_ids): Ditto.
2041         (vn_nary_op_t): Moved to header.
2042         (vn_phi_t): Ditto.
2043         (vn_reference_op_t): Ditto
2044         (vn_reference_t): Ditto.
2045         (next_value_id): New variable.
2046         (VN_INFO): Add an assert.
2047         (vn_constant_eq): New function.
2048         (vn_constant_hash): Ditto.
2049         (get_or_alloc_constant_value_id): Ditto.
2050         (value_id_constant_p): Ditto.
2051         (vn_reference_compute_hash): De-staticify.
2052         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2053         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
2054         (valueize_refs): Update opcode if it changes from ssa name to constant.
2055         (vn_reference_lookup_1): Add new argument.
2056         (vn_reference_lookup):  Ditto.
2057         (vn_reference_lookup_pieces): New function.
2058         (vn_reference_insert): Add return type. Modify to deal with value ids.
2059         (vn_reference_insert_pieces):  New function.
2060         (vn_nary_op_compute_hash): De-staticify.
2061         (vn_nary_op_eq): Ditto.
2062         (vn_nary_op_lookup_pieces): New function.
2063         (vn_nary_op_lookup): Add new argument.  
2064         (vn_nary_op_insert_pieces): New function.
2065         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2066         (vn_phi_insert): Ditto.
2067         (visit_unary_op): Update for callee changes.
2068         (visit_binary_op): Ditto.
2069         (visit_reference_op_load): Ditto.
2070         (visit_reference_op_store): Ditto.
2071         (init_scc_vn): Init next_value_id, constant_to_value_id and
2072         constant_value_ids. 
2073         (free_scc_vn): Free them.
2074         (set_hashtable_value_ids): New function.
2075         (run_scc_vn): Use it.
2076         (get_max_value_id): New function.
2077         (get_next_value_id): Ditto.
2078         (expressions_equal_p): Moved from tree-vn.c
2079         (sort_vuses): Ditto.
2080         (sort_vuses_heap): Ditto.
2081         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2082         above).
2083         * tree.c (iterative_hash_hashval_t): Made non-static
2084         * tree.h (iterative_hash_hashval_t): Declare it.
2085         
2086 2008-07-08  Martin Jambor  <mjambor@suse.cz>
2087
2088         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2089         instead of ipa_create_node_params.
2090         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2091         ipa_check_create_edge_args, free them with
2092         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2093
2094         * ipa-prop.c: Include flags.h and tree-inline.h.
2095         (ipa_node_params_vector): New variable.
2096         (ipa_edge_args_vector): New variable.
2097         (edge_removal_hook_holder): New variable.
2098         (node_removal_hook_holder): New variable.
2099         (edge_duplication_hook_holder): New variable.
2100         (node_duplication_hook_holder): New variable.
2101         (ipa_detect_param_modifications): Check for presence of modified flags.
2102         (ipa_compute_jump_functions): Check for presence of jump functions.
2103         (ipa_free_edge_args_substructures): New function.
2104         (ipa_create_node_params): Removed.
2105         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2106         (ipa_free_node_params_substructures): New function.
2107         (ipa_free_all_node_params): Changed to deallocate the on-the-side
2108         vector.
2109         (ipa_edge_removal_hook): New function.
2110         (ipa_node_removal_hook): New function.
2111         (duplicate_array): New function.
2112         (ipa_edge_duplication_hook): New function.
2113         (ipa_node_duplication_hook): New function.
2114         (ipa_register_cgraph_hooks): New function.
2115         (ipa_unregister_cgraph_hooks): New function.
2116         (free_all_ipa_structures_after_ipa_cp): New function.
2117         
2118         * ipa-prop.h: Include vec.h.
2119         (ipa_node_params_t): New typedef with vector types for it.
2120         (ipa_edge_args_t):  New typedef with vector types for it.
2121         (IPA_NODE_REF): Changed to access an on-the-side vector.
2122         (IPA_EDGE_REF): Changed to access an on-the-side vector.
2123         (ipa_check_create_node_params): New function.
2124         (ipa_check_create_edge_args): New function.
2125         
2126         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
2127         all users.
2128         
2129 2008-07-07  Tom Tromey  <tromey@redhat.com>
2130
2131         * configure, config.in: Rebuilt.
2132         * configure.ac: Don't check for scandir or alphasort.
2133
2134 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2135
2136         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2137         types immediately after creating them.
2138
2139 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2140
2141         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2142
2143 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
2144
2145         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2146         dump_constraint_graph.
2147         (dump_constraint_edge): New function.
2148         (dump_constraint_graph): New function.
2149         (debug_constraint_graph): New function.
2150         (dump_constraint): Removed useless comparison.
2151         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2152         (dump_constraint_graph): Declare.
2153         (debug_constraint_graph): Declare.
2154         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2155
2156 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2157
2158         * config/i386/i386.c (is_va_list_char_pointer): New.
2159         (ix86_va_start): Replace compare with ms_va_list_type_node
2160         by is_va_list_char_pointer.
2161         (ix86_gimplify_va_arg): Likewise.
2162
2163 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2164
2165         * cgraph.c (cgraph_edge_max_uid): New variable.
2166         (struct cgraph_edge_hook_list): New type.
2167         (struct cgraph_node_hook_list): New type.
2168         (struct cgraph_2edge_hook_list): New type.
2169         (struct cgraph_2node_hook_list): New type.
2170         (first_cgraph_edge_removal_hook): New variable.
2171         (first_cgraph_node_removal_hook): New variable.
2172         (first_cgraph_edge_duplicated_hook): New variable.
2173         (first_cgraph_node_duplicated_hook): New variable.
2174         (cgraph_add_edge_removal_hook): New function.
2175         (cgraph_remove_edge_removal_hook): New function.
2176         (cgraph_call_edge_removal_hooks):  New function.
2177         (cgraph_add_node_removal_hook):  New function.
2178         (cgraph_remove_node_removal_hook):  New function.
2179         (cgraph_call_node_removal_hooks):  New function.
2180         (cgraph_add_edge_duplication_hook):  New function.
2181         (cgraph_remove_edge_duplication_hook):  New function.
2182         (cgraph_call_edge_duplication_hooks):  New function.
2183         (cgraph_add_node_duplication_hook):  New function.
2184         (cgraph_remove_node_duplication_hook):  New function.
2185         (cgraph_call_node_duplication_hooks):  New function.
2186         (cgraph_create_edge): Assign to edge uid.
2187         (cgraph_remove_edge): Call edge removal hooks.
2188         (cgraph_node_remove_callees): Call edge removal hooks.
2189         (cgraph_node_remove_callers): Call edge removal hooks.
2190         (cgraph_remove_node): Call node removal hooks.
2191         (cgraph_clone_edge): Call edge duplication hooks.
2192         (cgraph_clone_node): Call node duplication hooks.
2193
2194         * cgraph.h (cgraph_edge): New field uid.
2195         (cgraph_edge_hook): New type.
2196         (cgraph_node_hook): New type.
2197         (cgraph_2edge_hook): New type.
2198         (cgraph_2node_hook): New type.
2199
2200 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2201
2202         * config.in: Regenerate.
2203
2204 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2205
2206         * gcc.c (print_sysroot): New.
2207         (option_map, display_help, process_command): Handle the
2208         -print-sysroot option.
2209         (main): Print the sysroot if requested.
2210         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2211         
2212 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2213
2214         PR target/34780
2215         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2216
2217 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2218
2219         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2220         (assign_parm_setup_block_p): Also check mode of entry_parm.
2221
2222 2008-07-07  Richard Guenther  <rguenther@suse.de>
2223
2224         * tree-ssa-structalias.h (set_used_smts): Remove.
2225         * tree-ssa-structalias.c (used_smts): Likewise.
2226         (set_used_smts): Likewise.
2227         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2228         call to set_used_smts.
2229
2230 2008-07-07  Richard Guenther  <rguenther@suse.de>
2231
2232         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2233         (new_var_info): Set it to false.
2234         (solution_set_add): Correctly handle pointers outside a var and
2235         inside a field.
2236         (type_safe): Treat variables with is_full_var properly.
2237         (do_sd_constraint): Likewise.
2238         (do_ds_constraint): Likewise.
2239         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2240         (get_constraint_for_ptr_offset): New function.
2241         (get_constraint_for_component_ref): For addresses at least include
2242         the last field of the variable.  Handle is_full_vars properly.
2243         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2244         (handle_ptr_arith): Remove.
2245         (find_func_aliases): Simplify assignment handling.
2246         (create_function_info_for): For parameter and result varinfos set
2247         is_full_var flag.
2248         (create_variable_info_for): Set is_full_var flag whenever we
2249         just created a single varinfo for a decl.
2250         (init_alias_vars): Initialize use_field_sensitive from
2251         max-fields-for-field-sensitive parameter.
2252
2253 2008-07-07  Richard Guenther  <rguenther@suse.de>
2254
2255         PR tree-optimization/36713
2256         * tree-flow-inline.h (is_call_used): New function.
2257         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2258         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2259         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2260
2261 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2262
2263         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2264         
2265 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2266
2267         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2268
2269 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2270             Nathan Sidwell  <nathan@codesourcery.com>
2271
2272         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2273         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2274         tmake_file.
2275         * config/m68k/t-linux: New.
2276         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2277         default.
2278
2279 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2280
2281         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2282         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2283         by MAC/EMAC.
2284
2285 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2286
2287         * gcc.c (execute): Fix -Wc++-compat warning.
2288
2289 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2290
2291         PR target/36720
2292         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2293         constant for little endian.
2294
2295 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2296
2297         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2298         mips_base_mips16 instead of TARGET_MIPS16.
2299         (mips_base_mips16): Declare.
2300         * config/mips/mips.c (mips_base_mips16): Make global.
2301         (was_mips16_p): Remove GTY marker.
2302         (was_mips16_pch_p): New variable.
2303         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2304         (mips_override_options): Force to non-MIPS16 mode initially.
2305         Do not complain about MIPS16 PIC incompatibilities here.
2306         Only allow -mgpopt if -mexplicit-relocs is in force for
2307         non-MIPS16 code.
2308
2309 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2310
2311         * configure.ac: Check for caddr_t, define to char * if not defined.
2312         * configure: Regenerate.
2313         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2314         (mmap_gt_pch_use_address): Likewise.
2315         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2316
2317 2008-07-06  Richard Guenther  <rguenther@suse.de>
2318
2319         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2320         (new_var_info): Deal with it.
2321         (solution_set_add): Likewise.
2322         (bitpos_of_field): Make signed, fix.
2323         (struct fieldoff): Remove type and decl fields.  Make size field
2324         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2325         flags.
2326         (fieldoff_compare): Deal with it.
2327         (push_fields_onto_fieldstack): Remove has_union argument, glob
2328         adjacent non-pointer fields together.
2329         (create_function_info_for): Do not set has_union.
2330         (create_variable_info_for): Simplify.
2331
2332 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2333
2334         * config.gcc (extra_headers): Add cross-stdarg.h for target
2335         x86_64-*-* and i?86-*-*.
2336         * config/i386/cross-stdarg.h: New.
2337         * builtins.c (std_fn_abi_va_list): New.
2338         (std_canonical_va_list_type): New.
2339         (stabilize_va_list): Replace va_list_type_node use by
2340         mtarget.canonical_va_list_type.
2341         (gimplify_va_arg_expr): Likewise.
2342         (expand_builtin_va_copy): Replace va_list_type_node use by
2343         mtarget.fn_abi_va_list.
2344         * tree-sra.c (is_va_list_type): New helper.
2345         (decl_can_be_decomposed_p): Replace
2346         va_list_type_node use by is_va_list_type.
2347         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2348         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2349         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2350         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2351         (ix86_enum_va_list): New.
2352         * config/i386/i386.c (sysv_va_list_type_node): New.
2353         (ms_va_list_type_node): New.
2354         (ix86_function_type_abi): Remove sorry.
2355         (ix86_build_builtin_va_list_abi): New.
2356         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2357         for 64-bit targets.
2358         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2359         (ix86_init_builtins_va_builtins_abi): New.
2360         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2361         for 64-bit targets.
2362         (ix86_handle_abi_attribute): New.
2363         (attribute_spec): Add sysv_abi and ms_abi.
2364         (ix86_fn_abi_va_list): New.
2365         (ix86_canonical_va_list_type): New.
2366         (ix86_enum_va_list): New.
2367         (TARGET_FN_ABI_VA_LIST): New.
2368         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2369         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2370         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2371         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2372         (TARGET_ENUM_VA_LIST): New.
2373         * expr.h (std_fn_abi_va_list): New.
2374         (std_canonical_va_list_type): New.
2375         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2376         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2377         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2378         TARGET_CANONICAL_VA_LIST_TYPE.
2379         * target.h (struct gcc_target): Add fn_abi_va_list hook
2380         and canonical_va_list_type hook.
2381
2382 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2383
2384         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2385         integral and pointer types.
2386
2387 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2388
2389         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2390         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2391
2392 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2393
2394         PR target/36684
2395         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2396
2397 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2398
2399         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2400         build_gimple_modify_stmt.
2401         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2402         gimple operand.  Use fold_build* instead of build*.
2403
2404 2008-07-04  Richard Guenther  <rguenther@suse.de>
2405
2406         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2407         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2408         properly to compute the reachability set if we do field-sensitive PTA.
2409         * invoke.texi (max-fields-for-field-sensitive): Document default.
2410         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2411         100 for optimize >= 2.
2412
2413 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2414
2415         * ggc-zone.c (lookup_page_table_if_allocated,
2416         set_page_table_entry, zone_find_object_size, alloc_small_page,
2417         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2418         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2419         -Wc++-compat and/or -Wcast-qual warnings.
2420
2421 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2422
2423         PR target/36634
2424         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2425         pic_offset_table_rtx to be marked as used here.
2426         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2427         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2428         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2429         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2430         !TARGET_SECURE_PLT.
2431
2432 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2433
2434         * alloc-pool.c (hash_descriptor, eq_descriptor,
2435         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2436         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2437         Likewise.
2438         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2439         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2440         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2441         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2442         Likewise.
2443
2444 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2445
2446         * tree-flow.h (loop_only_exit_p): Declare.
2447         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2448         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2449         the number of iterations if it is constant.  Otherwise, if this is the
2450         only possible exit of the loop, use the conservative estimate on the
2451         number of iterations of the entire loop if available.
2452
2453 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2454
2455         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2456         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2457         Add synchronization functions.
2458         * config/sync.c: New file.
2459         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2460         (LIBGCC_SYNC_CFLAGS): Likewise.
2461
2462 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2463
2464         PR target/36710
2465         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2466         (*pushtf_sse): New insn pattern.
2467         (pushtf splitters): New splitters.
2468
2469 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2470
2471         PR middle-end/35736
2472         * predict.c (build_predict_expr): Use void_type_node for the tree
2473         type, instead of NULL_TREE.
2474
2475 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2476
2477         * config/i386/i386.c (contains_aligned_value_p): Return true
2478         for TCmode.
2479         (ix86_data_alignment): Align TCmode to 128bits.
2480         (ix86_local_alignment): Likewise.
2481
2482 2008-07-03  Andrew Haley  <aph@redhat.com>
2483
2484         PR bootstrap/33304
2485         * vec.h (VEC_TA): New.
2486         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2487         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2488         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2489         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2490         (C_COMMON_FIXED_TYPES): Remove first arg.
2491         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2492         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2493         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2494         not to use empty macro arguments.
2495
2496 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2497
2498         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2499         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2500         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2501         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2502         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2503         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2504         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2505         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2506         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2507         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2508         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2509         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2510         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2511         config/rs6000/e500crtres64gpr.asm,
2512         config/rs6000/e500crtres64gprctr.asm,
2513         config/rs6000/e500crtrest32gpr.asm,
2514         config/rs6000/e500crtrest64gpr.asm,
2515         config/rs6000/e500crtresx32gpr.asm,
2516         config/rs6000/e500crtresx64gpr.asm,
2517         config/rs6000/e500crtsav32gpr.asm,
2518         config/rs6000/e500crtsav64gpr.asm,
2519         config/rs6000/e500crtsav64gprctr.asm,
2520         config/rs6000/e500crtsavg32gpr.asm,
2521         config/rs6000/e500crtsavg64gpr.asm,
2522         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2523         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2524         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2525         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2526         config/sparc/sol2-cn.asm: Remove .file directives.
2527
2528 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2529
2530         * resource.c (mark_referenced_resources): Look inside
2531         UNSPEC_VOLATILEs and ASM_INPUTs.
2532
2533 2008-07-02  Ian Lance Taylor  <iant@google.com>
2534
2535         * rtlanal.c (add_reg_note): New function.
2536         * rtl.h (add_reg_note): Declare.
2537         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2538         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2539         * builtins.c (expand_builtin_longjmp): Likewise.
2540         (expand_builtin_nonlocal_goto): Likewise.
2541         * calls.c (emit_call_1, expand_call): Likewise.
2542         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2543         * cfglayout.c (fixup_reorder_chain): Likewise.
2544         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2545         (commit_one_edge_insertion): Likewise.
2546         * combine.c (move_deaths, distribute_notes): Likewise.
2547         * df-problems.c (df_set_note): Likewise.
2548         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2549         (set_unique_reg_note): Likewise.
2550         (emit_copy_of_insn_after): Likewise.
2551         * expr.c (expand_expr_real): Likewise.
2552         * gcse.c (add_label_notes): Likewise.
2553         * haifa-sched.c (create_check_block_twin): Likewise.
2554         * jump.c (mark_jump_label_1): Likewise.
2555         * loop-doloop.c (add_test, doloop_modify): Likewise.
2556         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2557         * lower-subreg.c (move_eh_region_note): Likewise.
2558         * optabs.c (emit_libcall_block): Likewise.
2559         * predict.c (predict_insn): Likewise.
2560         (combine_predictions_for_insn): Likewise.
2561         * recog.c (peephole2_optimize): Likewise.
2562         * regmove.c (try_auto_increment): Likewise.
2563         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2564         * reload.c (find_reloads): Likewise.
2565         * reload1.c (fixup_eh_region_note): Likewise.
2566         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2567         * reorg.c (delete_prior_computation): Likewise.
2568         (delete_computation, dbr_schedule): Likewise.
2569         * config/pa/pa.c (legitimize_pic_address): Likewise.
2570         * config/sh/sh.c (sh_reorg): Likewise.
2571
2572 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2573
2574         PR target/36669
2575         * config/libgcc-glibc.ver: Add %exclude.
2576         * config/m32r/libgcc-glibc.ver: Likwise.
2577         * config/s390/libgcc-glibc.ver: Likwise.
2578         * config/sh/libgcc-glibc.ver: Likwise.
2579         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2580
2581         * config/i386/libgcc-glibc.ver: New.
2582
2583         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2584
2585 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2586
2587         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2588         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2589         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2590         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2591         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2592         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2593         i[34567]86-*-linux*, x86_64-*-linux*.
2594
2595         * libgcc-std.ver: Add empty GCC_4.4.0.
2596
2597         * mkmap-symver.awk: Support multiple versions per symbol.
2598
2599         * config/i386/i386.c (ix86_init_builtins): Always define
2600         __builtin_fabsq and __builtin_copysignq with fallbacks.
2601         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2602         and __builtin_copysignq if SSE2 isn't available.
2603
2604         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2605         (LIBGCC2_TF_CEXT): Likwise.
2606         (TF_SIZE): Likwise.
2607
2608         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2609
2610         * config/i386/sfp-machine.h: Moved to libgcc.
2611
2612         * config/i386/sfp-machine.h: New.
2613         * config/i386/t-linux: Likwise.
2614
2615         * config/i386/t-darwin: Remove softfp_wrap_start and
2616         softfp_wrap_end.
2617         * config/i386/t-darwin64: Likewise.
2618
2619         * config/i386/t-fprules-softfp64: Renamed to ...
2620         * config/i386/t-fprules-softfp: This.
2621
2622         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2623         and softfp_wrap_end.
2624
2625 2008-07-02  Jason Merrill  <jason@redhat.com>
2626
2627         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2628
2629         * tree.c (ctor_to_list): New fn.
2630         * tree.h: Declare it.
2631         (CONSTRUCTOR_ELT): New macro.
2632         (CONSTRUCTOR_NELTS): New macro.
2633
2634 2008-07-02  Richard Guenther  <rguenther@suse.de>
2635
2636         * tree-ssa-structalias.c (struct variable_info): Reorder
2637         to fill padding on 64bit hosts.  Make collapsed_to an int.
2638         (get_varinfo_fc): Deal with that.
2639         (new_var_info): Likewise.
2640         (collapse_rest_of_var): Likewise.
2641
2642 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2643
2644         * doc/install.texi (--enable-java-home): Document.
2645         (--enable-aot-compile-rpm): Likewise.
2646         (--with-arch-directory): Likewise.
2647         (--with-os-directory): Likewise.
2648         (--with-origin-name): Likewise.
2649         (--with-arch-suffix): Likewise.
2650         (--with-jvm-root-dir): Likewise.
2651         (--with-jvm-jar-dir): Likewise.
2652         (--with-python-dir): Likewise.
2653
2654 2008-07-02  Richard Guenther  <rguenther@suse.de>
2655
2656         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2657         from decls explicitly.  Merge operand checking from tuples.
2658
2659 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2660
2661         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2662         
2663 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2664
2665         * tree-switch-conversion.c: Included timevar.h
2666         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2667
2668         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2669
2670 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2671
2672         * tree-switch-conversion.c: Corrected various comments and
2673         whitespace issues
2674         (build_constructors): Fixed minor formatting mistakes.
2675
2676         * invoke.texi (Optimize Options): Corrected the
2677         switch-conversion-max-branch-ratio parameter.
2678
2679 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2680
2681         * final.c (asm_insn_count): Return zero for an empty asm body.
2682
2683 2008-07-02  Richard Guenther  <rguenther@suse.de>
2684
2685         * bitmap.h (bitmap_set_bit): Return bool.
2686         (bitmap_clear_bit): Likewise.
2687         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2688         write to the bitmap if it would.
2689         (bitmap_clear_bit): Likewise.
2690         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2691         bitmap_set_bit return value.
2692         (add_pred_graph_edge): Likewise.
2693         (add_graph_edge): Likewise.
2694         (do_sd_constraint): Likewise.
2695         (do_ds_constraint): Likewise.
2696
2697 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2698
2699         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2700         Fix -Wc++-compat and/or -Wcast-qual warnings.
2701         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2702         gen_regparm_prefix): Likewise.
2703         * vmsdbgout.c (write_modbeg, lookup_filename,
2704         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2705
2706 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2707
2708         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2709         defaults.h definition apply.
2710
2711 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2712
2713         * function.c (assign_parm_remove_parallels): New.
2714         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2715         PARALLELs.
2716         (assign_parm_setup_block): Do not handle them.
2717         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2718         assign_parm_remove_parallels.
2719
2720 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2721
2722         * c-typeck.c (convert_for_assignment): Use
2723         vector_targets_convertible_p.
2724         * c-common.c (vector_targets_convertible_p): New.
2725         * c-common.h (vector_targets_convertible_p): New prototype.
2726         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2727         opaque_p_V2SI_type_node.
2728
2729 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2730
2731         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2732         RFmode constants.
2733
2734 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2735
2736         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2737         TFmode constants via two element DImode vector for hosts with
2738         HOST_BITS_PER_WIDE_INT < 64.
2739         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2740         also for HOST_BITS_PER_WIDE_INT < 64.
2741
2742 2008-07-01  Richard Guenther  <rguenther@suse.de>
2743
2744         PR tree-optimization/36666
2745         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2746         (get_constraint_exp_from_ssa_var): Split into ...
2747         (get_constraint_exp_for_temp): ... this ...
2748         (get_constraint_for_ssa_var): ... and that.
2749         Return constraint expressions for all touched sub-fields
2750         if the results address is not taken.
2751         (process_constraint): Remove assertion that aggregate
2752         assignments do not happen at this place.
2753         (get_constraint_for_component_ref): Add address_p argument.
2754         Return constraint expressions for all touched sub-fields
2755         if the results address is not taken.
2756         (do_deref): Use get_constraint_exp_for_temp.
2757         (get_constraint_for_1): Rename from ...
2758         (get_constraint_for): ... this.  Add the old function as wrapper.
2759         (do_structure_copy): Use get_constraint_for_1.
2760
2761 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2762
2763         * Makefile.in (tree-switch-conversion.o): Add.
2764         (OBJS-common): Add tree-swtch-conversion.o.
2765         * passes.c (init_optimization_passes): Add pass_convert_switch.
2766         * tree-pass.h: (pass_convert_switch): Add.
2767         * tree-switch-conversion.c: New file.
2768         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2769         * common.opt (ftree-cswtch): New option.
2770         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2771         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2772         * opts.c (decode_options): Set flag_tree_switch_conversion when
2773         optimization level is >= 2.
2774         * doc/invoke.texi (Optimize Options): Added description of
2775         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2776
2777 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2778
2779         * config/darwin-driver.c (darwin_default_min_version): Fix
2780         -Wc++-compat warnings.
2781
2782 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2783
2784         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2785         of operand 0.
2786
2787 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2788
2789         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2790         
2791 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2792
2793         PR rtl-optimization/34744
2794         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2795         (df_scan_free_internal): Free data structures not
2796         allocated in storage pools.
2797         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2798         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2799         df_scan_free_mws_vec.
2800         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2801         unconditionally.
2802
2803 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2804
2805         * config/i386/i386.c (contains_aligned_value_p): Return true
2806         for __float128.
2807         (ix86_function_arg_boundary): Return its natural boundary
2808         for __float128.
2809         (return_in_memory_32): Don't check TDmode.
2810         (ix86_split_to_parts): Support splitting into 4 parts and
2811         support TFmode for 32bit target.
2812         (ix86_split_long_move): Support splitting into 4 parts.
2813         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2814         for SSE2.
2815         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2816         (ix86_init_builtins): Here.
2817         (ix86_scalar_mode_supported_p): Always return true for TFmode.
2818         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2819         'q' and 'w', respectively. 
2820
2821         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2822         TARGET_64BIT.
2823         (movtf_internal): Likewise.
2824         (<code>tf2): Likewise.
2825         (*absnegtf2_sse): Likewise.
2826         (copysign<mode>3): Likewise.
2827         (copysign<mode>3_const): Likewise.
2828         (copysign<mode>3_var): Likewise.
2829         (define_split UNSPEC_COPYSIGN): Likewise.
2830         * config/i386/sse.md (*nandtf3): Likewise.
2831         (<code>tf3): Likewise.
2832         (*<code>tf3): Likewise.
2833
2834 2008-06-30  Joey Ye  <joey.ye@intel.com>
2835             H.J. Lu  <hongjiu.lu@intel.com>
2836
2837         * global.c (compute_regsets): Set frame_pointer_needed here.
2838         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2839
2840 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2841
2842         * doc/install.texi (specific): Expand Windows build notes.
2843
2844 2008-06-30  Ira Rosen  <irar@il.ibm.com>
2845
2846         PR tree-optimization/36648
2847         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2848         number of prolog iterations by step. Fix the comment.
2849
2850 2008-06-30  Richard Guenther  <rguenther@suse.de>
2851
2852         PR middle-end/36671
2853         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2854         handle calls from ECF_MALLOC functions.
2855         (handle_pure_call): ECF_MALLOC functions do not return
2856         call-used memory.
2857         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2858
2859 2008-06-29  Andreas Schwab  <schwab@suse.de>
2860
2861         * config/m68k/m68k.c (print_operand): Always print a float
2862         constant in hex.
2863         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2864         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2865         Remove macros.
2866
2867         * config/rs6000/x-linux64: Remove never used file.
2868
2869 2008-06-29  Richard Guenther  <rguenther@suse.de>
2870
2871         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2872         prototype.
2873         (struct alias_info): Move ...
2874         * tree-ssa-alias.c: ... here.
2875         (update_alias_info): Declare.
2876         (compute_may_aliases): Call it.
2877         (update_alias_info): New function.
2878         * tree-ssa-structalias.c (update_alias_info): Move ...
2879         * tree-ssa-alias.c (update_alias_info_1): ... here.
2880         * tree-ssa-structalias.c (process_constraint_1): Remove
2881         unused from_call argument.  Rename to ...
2882         (process_constraint): ... this.  Delete old wrapper.
2883         (make_constraint_to): Adjust callers.
2884         (handle_const_call): Likewise.
2885         (handle_pure_call): Likewise.
2886         (init_base_vars): Likewise.
2887         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
2888         (find_func_aliases): We don't need structure copies for
2889         complex types.
2890         (make_constraint_from_anything): Remove.
2891         (create_variable_info_for): For globals make constraints
2892         from escaped, not from anything.
2893         (compute_points_to_sets): Do not call update_alias_info.
2894         (ipa_pta_execute): Use make_constraint_from.
2895
2896 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2897
2898         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2899         (bitmap.o-warn, dominance.o-warn): New.
2900         * configure.ac (cxx_compat_warn): Delete.
2901         (loose_warn): Add -Wcast-qual and -Wc++-compat.
2902         * system.h: Remove #pragma diagnostic for -Wcast-qual and
2903         -Wc++-compat.
2904         * configure: Regenerate.
2905
2906         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2907         warnings.
2908
2909 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2910
2911         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2912         * df-scan.c (df_notes_rescan): Likewise.
2913         * ggc-page.c (set_page_table_entry): Likewise.
2914         * intl.c (gcc_gettext_width): Likewise.
2915         * varasm.c (get_unnamed_section, get_noswitch_section,
2916         get_section): Likewise.
2917
2918 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
2919
2920         * regrename.c (build_def_use): Don't copy RTX.
2921
2922 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
2923
2924         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2925         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
2926         punctuation.  Use @ref instead of @xref.
2927         (Function Names): Remove stray @display/@end display.
2928         (C++ Attributes): Use @ref instead of @xref.
2929         (Deprecated Features): Fix punctuation around @xref.
2930         (Backwards Compatibility): Likewise.
2931         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2932
2933 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
2934
2935         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2936         constants for E500 double.
2937
2938 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2939
2940         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2941         element type of const_vector.
2942
2943 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
2944
2945         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2946         Remove FLAGS_REG clobber from expander pattern.
2947         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2948         (anddi3, andsi3, andhi3, andqi3): Ditto.
2949         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2950         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2951         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2952         (ashlsi3, ashlhi3, ashlqi3): Ditto.
2953         (ashrsi3, ashrhi3, ashrqi3): Ditto.
2954         (lshrsi3, lshrhi3, lshrqi3): Ditto.
2955         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2956         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2957
2958 2008-06-28  Richard Guenther  <rguenther@suse.de>
2959
2960         * tree-ssa-structalias.c (callused_id, var_callused,
2961         callused_tree): Add.
2962         (handle_pure_call): New function.
2963         (find_func_aliases): Call it.
2964         (find_what_p_points_to): Handle the call-used set.
2965         (clobber_what_escaped): Likewise.
2966         (compute_call_used_vars): New function.
2967         (init_base_vars): Init the call-used variable.
2968         (do_sd_constraint): Do not propagate the solution from CALLUSED
2969         but use CALLUSED as a placeholder.
2970         (solve_graph): Likewise.
2971         * tree-flow-inline.h (gimple_call_used_vars): New function.
2972         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2973         (compute_call_used_vars): Declare.
2974         * tree-ssa-alias.c (set_initial_properties): Call
2975         compute_call_used_vars.
2976         (reset_alias_info): Clear call-used variables.
2977         (add_call_clobber_ops): Assert we are not called for const/pure
2978         functions.  Remove handling of them.
2979         (add_call_read_ops): Handle pure functions by adding the
2980         call-used set of variables as VUSEs.
2981         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2982         (delete_tree_ssa): Free it.
2983         * tree-dfa.c (remove_referenced_var): Clear the var from the
2984         call-used bitmap.
2985
2986 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
2987
2988         * tree.c (build_varargs_function_type_list): New.
2989         (build_function_type_list_1): New.
2990         (build_function_type_list): Use build_function_type_list_1.
2991         * tree.h (build_varargs_function_type_list): New.
2992
2993 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2994
2995         PR target/34856
2996         * config/spu/spu.c (spu_builtin_splats): Do not generate
2997         invalid CONST_VECTOR expressions.
2998         (spu_expand_vector_init): Likewise.
2999
3000 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
3001
3002         * optabs.c (libfunc_decls): New variable.
3003         (libfunc_decl_hash, libfunc_decl_eq): New functions.
3004         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3005         for the same function twice.
3006
3007 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
3008
3009         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3010         ix86_expand_binary_operator directly.
3011         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
3012         for operand 2.
3013         (*ashrti3_1): Ditto.
3014         (*lshrti3_1): Ditto.
3015         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3016         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3017         using only one splitter.  Conditionaly execute splitter before or
3018         after peephole2 pass.
3019         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3020         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
3021         Use only one alternative in asm template.
3022         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3023         in asm template.
3024         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3025         "J" operand constraint for operand 2.
3026         (*ashldi3_cconly_rex64): Ditto.
3027         (*ashrdi3_cmp_rex64): Ditto.
3028         (*ashrdi3_cconly_rex64): Ditto.
3029         (*lshrdi3_cmp_rex64): Ditto.
3030         (*lshrdi3_cconly_rex64): Ditto.
3031         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3032         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3033         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3034         gen_x86_shrd_1.
3035
3036 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3037
3038         * gimplify.c (omp_is_private): Don't return true if decl is not
3039         already private on #pragma omp for or #pragma omp parallel for.
3040
3041         PR debug/36617
3042         * tree-cfg.c (struct move_stmt_d): Replace block field with
3043         orig_block and new_block fields.
3044         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3045         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3046         (move_block_to_fn): Replace vars_map and new_label_map arguments
3047         with struct move_stmt_d pointer.
3048         (replace_block_vars_by_duplicates): New function.
3049         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
3050         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
3051         all subblocks of ORIG_BLOCK to the new function.  Call
3052         replace_block_vars_by_duplicates.
3053         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3054         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3055         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
3056         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3057         (expand_omp): Temporarily set input_location to the location of
3058         region's controlling stmt.
3059         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3060         BIND_EXPR, push ctx->block_vars and gimplification vars into
3061         the BIND_EXPR and its block's BLOCK_VARS instead of directly
3062         into dest function.
3063         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3064         there are any BLOCK_VARS.
3065         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3066         OMP_PARALLEL or OMP_TASK stmt.
3067         (lower_omp): Save and restore input_location around the lower_omp_1
3068         call.
3069
3070 2008-06-27  Richard Guenther  <rguenther@suse.de>
3071
3072         PR tree-optimization/36400
3073         PR tree-optimization/36373
3074         PR tree-optimization/36344
3075         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3076         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3077         (update_alias_info): Remove call clobbering code.
3078         (make_constraint_to): New helper function.
3079         (make_escape_constraint): Likewise.
3080         (handle_rhs_call): Use it on all pointer containing arguments.
3081         Also mark the static chain escaped.
3082         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3083         instead of ANYTHING.
3084         (make_constraint_from): New helper split out from ...
3085         (make_constraint_from_anything): ... here.
3086         (find_func_aliases): Add constraints for escape sites.
3087         (intra_create_variable_infos): Make constraints from NONLOCAL
3088         for parameters.
3089         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3090         as ANYTHING.
3091         (clobber_what_p_points_to): Remove.
3092         (clobber_what_escaped): New function.
3093         (init_base_vars): Init NONLOCAL and ESCAPED.
3094         (do_sd_constraint): Do not propagate the solution from ESCAPED
3095         but use ESCAPED as a placeholder.
3096         (solve_graph): Likewise.
3097         * tree-flow.h (clobber_what_p_points_to): Remove.
3098         (clobber_what_escaped): Declare.
3099         * tree-ssa-alias.c (set_initial_properties): Call it.
3100         Remove code clobbering escaped pointers.
3101
3102 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3103
3104         * function.c (allocate_struct_function): Only allocate a unique
3105         funcdef_no if the decl is nonzero.
3106
3107 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3108
3109         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3110         * config/mips/mips.c (mips_split_const_insns): New function.
3111         * config/mips/mips.md (move_type): New attribute.
3112         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
3113         (dword_mode): New attribute.
3114         (type): Avoid long line.  Map "move_type"s to "type"s,
3115         choosing "multi" for doubleword moves if appropriate.
3116         Swap MTC/MFC comments to match their declaration order.
3117         (extended_mips16): Default to "yes" if "move_type" is "sll0",
3118         "type" is "branch" or "jal" is "direct".
3119         (length): Handle "extended_mips16" first.  Make the default
3120         "0" for "ghost" instructions.  Set the length from "move_type".
3121         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3122         of "type", with "sll0" for the register alternative.  Remove the
3123         "extended_mips16" attribute.
3124         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3125         of "type", with "shift_shift" for the register alternative.
3126         Remove the "length" attribute.
3127         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3128         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3129         of "type", with "andi" for the register alternative.
3130         (*zero_extendqihi2): Likewise.
3131         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3132         of "andi" instead of a "type" of "arith".
3133         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3134         instead of "type".
3135         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3136         (mov_<store>r, *mov<mode>_ra): Likewise.
3137         (extendsidi2): Use "move_type" instead of "type", with "move"
3138         for the register alternative.
3139         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3140         of "type", with "signext" for the register alternative.
3141         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3142         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3143         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3144         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3145         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3146         (unnamed branch insn): Likewise.
3147         (*movdi_gp32_fp64): Fold into...
3148         (*movdi_32bit): ...here.
3149         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3150         (*movdf_hardfloat): ...this new pattern.
3151         (*movdf_softfloat): Remove redundant FPR alternatives.
3152         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3153         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3154         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3155         the "move" attribute.
3156         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3157         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3158         and "store" for COP loads and stores.
3159         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3160         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3161         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3162         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3163         (*movtf_mips16, *movv2sf): Likewise.
3164         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3165         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3166         (mfhc1<mode>): Use "move_type" instead of "move".
3167         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3168         (loadgp_blockage): Remove the "length" attribute.
3169         (blockage, set_got_version, update_got_version): Likewise.
3170         (call_internal): Remove the "extended_mips16" attribute.
3171         (call_value_internal, call_value_multiple_internal): Likewise.
3172         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3173         instead of "move".
3174         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3175         the "length" attribute.
3176
3177 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3178
3179         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3180         -Wcast-qual warnings.
3181         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3182         handle_pragma_pop_macro): Likewise.
3183         * collect2.c (resolve_lib_name): Likewise.
3184         * config/arc/arc.c (arc_init): Likewise.
3185         * config/arm/arm.c (neon_builtin_compare,
3186         locate_neon_builtin_icode): Likewise.
3187         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3188         * config/bfin/bfin.c (bfin_init_machine_status,
3189         bfin_optimize_loop): Likewise.
3190         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3191         * config/cris/cris.c (cris_init_expanders): Likewise.
3192         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3193         * config/darwin.c (machopic_indirection_eq,
3194         machopic_indirection_name, machopic_output_indirection): Likewise.
3195         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3196         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3197         frv_optimize_membar): Likewise.
3198         * config/i386/cygwin.h (mingw_scan,
3199         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3200         * config/i386/cygwin1.c (mingw_scan): Likewise.
3201         * config/i386/i386.c (machopic_output_stub): Likewise.
3202         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3203         i386_pe_unique_section): Likewise.
3204         * config/ia64/ia64.c (ia64_init_machine_status,
3205         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3206         Likewise.
3207         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3208         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3209         * config/m68k/m68k.c (m68k_handle_option,
3210         m68k_sched_md_init_global): Likewise.
3211         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3212         mcore_unique_section): Likewise.
3213         * config/mips/mips.c (mips_block_move_straight,
3214         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3215         Likewise.
3216         * config/mmix/mmix.c (mmix_init_machine_status,
3217         mmix_encode_section_info): Likewise.
3218         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3219         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3220         print_operand_address, output_toc, redefine_groups,
3221         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3222         * config/s390/s390.c (s390_init_machine_status): Likewise.
3223         * config/score/score.c (score_block_move_straight,
3224         score_block_move_loop_body): Likewise.
3225         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3226         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3227         * emit-rtl.c (find_auto_inc): Likewise.
3228         * gcc.c (translate_options, process_command): Likewise.
3229         * reorg.c (dbr_schedule): Likewise.
3230         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3231         * xcoffout.c (xcoffout_declare_function): Likewise.
3232
3233 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3234
3235         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3236         ipa-pta working again.
3237
3238 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3239
3240         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3241         genautomata.
3242
3243 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3244
3245         * config.gcc (powerpc*-*-*): Add new core e500mc.
3246         * config/rs6000/e500mc.md: New file.
3247         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3248         e500mc.
3249         (rs6000_override_options): Add e500mc case to
3250         processor_target_table. Altivec and Spe options not allowed
3251         with e500mc. Add isel instruction to e500mc by
3252         default. Initialize rs6000_cost for e500mc.
3253         (rs6000_issue_rate): Set issue rate for e500mc.
3254         * config/rs6000/rs6000.h (processor_type): Add
3255         PROCESSOR_PPCE500MC.
3256         (ASM_CPU_SPEC): Add e500mc.
3257         Set TARGET_ISEL to rs6000_isel.
3258         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3259         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3260         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3261         Include e500mc.md.
3262         * doc/invoke.texi: Add e500mc to list of cpus.
3263
3264 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3265
3266         PR c/34867
3267         * c-lex.c (lex_charconst): Initialize unsignedp.
3268
3269 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3270
3271         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3272         documented assumptions.
3273
3274 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3275
3276         * dwarf2out.c: Remove trailing white spaces.  Break long line
3277         in comments.
3278
3279 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3280
3281         * libfuncs.h (LTI_synchronize): New libfunc_index.
3282         (synchronize_libfunc): Declare.
3283         * builtins.c (expand_builtin_synchronize): Consider using
3284         synchronize_libfunc before falling back on an asm blockage.
3285         * config/mips/mips.c: Include libfuncs.h
3286         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3287
3288 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3289
3290         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3291         parameter.  Copy stack_reg to r11 where appropriate.
3292         (no_global_regs_above): Add gpr parameter.
3293         (rs6000_stack_info): Only add padding for SPE save area if we
3294         are saving SPE GPRs and CR.
3295         (saveres_routine_syms): New variable.
3296         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3297         Define.
3298         (rs6000_savres_routine_sym): New function.
3299         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3300         split out of...
3301         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3302         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3303         Tweak FPR out-of-line saving.
3304         (rs6000_make_savres_rtx): New function.
3305         (rs6000_use_multiple_p): New function.
3306         (rs6000_savres_strategy): New function.
3307         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3308         out-of-line if appropriate.
3309         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3310         if we are optimizing for size.
3311         (GP_SAVE_INLINE): Define.
3312         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3313         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3314         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3315         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3316         (*save_fpregs_<mode>): Add use of r11.
3317         (*restore_gpregs_<mode>): New insn.
3318         (*return_and_restore_gpregs_<mode>): New insn.
3319         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3320         use r11.
3321         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3322         (*restore_gpregs_spe): New insn.
3323         (*return_and_restore_gpregs_spe): New insn.
3324         * config/rs6000/predicates.md (save_world_operation): Fix check.
3325
3326 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3327
3328         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3329         this point, so assert that.
3330
3331 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3332
3333         * cfganal.c: Include vec.h and vecprim.h.
3334         (compute_idf): Import from...
3335         * tree-into-ssa (compute_idf): ...here.
3336         * basic-block.h (compute_idf): Export.
3337
3338 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3339
3340         * c-decl.c (merge_decls): Use !current_function_decl to check for
3341         extern declaration of C99 inline function being at file scope.
3342
3343 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3344
3345         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3346
3347 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3348
3349         * alias.c (record_alias_subset, init_alias_analysis): Fix
3350         -Wc++-compat and/or -Wcast-qual warnings.
3351         * attribs.c (lookup_attribute_spec): Likewise.
3352         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3353         copy_bb, connect_traces,
3354         find_rarely_executed_basic_blocks_and_cr): Likewise.
3355         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3356         note_btr_set, migrate_btr_defs): Likewise.
3357         * builtins.c (result_vector, expand_builtin_memcpy,
3358         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3359         builtin_memset_read_str, expand_builtin_printf,
3360         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3361         Likewise.
3362         * caller-save.c (mark_set_regs): Likewise.
3363         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3364         * cgraph.c (cgraph_edge): Likewise.
3365         * combine.c (likely_spilled_retval_1): Likewise.
3366         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3367         htab_counts_entry_del, get_coverage_counts): Likewise.
3368         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3369         new_cselib_val): Likewise.
3370         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3371         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3372         Likewise.
3373         * df-core.c (df_compact_blocks): Likewise.
3374         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3375         * df-scan.c (df_grow_reg_info, df_ref_create,
3376         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3377         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3378         df_record_entry_block_defs, df_record_exit_block_uses,
3379         df_bb_verify): Likewise.
3380         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3381         DF_REF_EXTRACT_MODE_CONST): New.
3382         * dominance.c (get_immediate_dominator, get_dominated_by,
3383         nearest_common_dominator, root_of_dom_tree,
3384         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3385         -Wc++-compat and/or -Wcast-qual warnings.
3386         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3387         record_store, replace_read, check_mem_read_rtx, scan_insn,
3388         dse_step1, dse_record_singleton_alias_set): Likewise.
3389         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3390
3391 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3392
3393         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3394         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3395         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3396         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3397         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3398         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3399         file_name_acquire, output_file_names, add_const_value_attribute,
3400         premark_used_types_helper, file_table_eq, file_table_hash,
3401         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3402         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3403         -Wcast-qual warnings.
3404         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3405         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3406         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3407         gen_reg_rtx, start_sequence, init_emit): Likewise.
3408         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3409         * except.c (init_eh_for_function, gen_eh_region,
3410         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3411         arh_to_landing_pad, arh_to_label, add_action_record,
3412         add_call_site, switch_to_exception_section): Likewise.
3413         * expmed.c (synth_mult): Likewise.
3414         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3415         store_expr): Likewise.
3416         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3417         Likewise.
3418         * function.c (assign_stack_temp_for_type,
3419         allocate_struct_function, match_asm_constraints_1): Likewise.
3420         * gcov-io.c (gcov_allocate): Likewise.
3421         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3422         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3423         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3424         record_one_set, insert_expr_in_table, insert_set_in_table,
3425         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3426         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3427         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3428         -Wcast-qual warnings.
3429
3430 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3431
3432         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3433         -Wcast-qual warnings.
3434         * gcc.c (process_command): Likewise.
3435         * genattrtab.c (oballoc): Use XOBNEW.
3436         (oballocvec): Define.
3437         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3438         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3439         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3440         -Wc++-compat and/or -Wcast-qual warnings.
3441         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3442         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3443         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3444         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3445         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3446         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3447         add_excls, process_presence_absence_names,
3448         process_presence_absence_patterns, add_presence_absence,
3449         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3450         get_free_state, add_arc, get_free_automata_list_el,
3451         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3452         transform_3, cache_presence, create_ainsns, create_automata,
3453         create_state_ainsn_table, dfa_insn_code_enlarge,
3454         output_trans_func, output_min_issue_delay_func,
3455         output_dead_lock_func, output_reset_func,
3456         output_get_cpu_unit_code_func, output_dfa_start_func,
3457         expand_automata): Likewise.
3458         * genextract.c (gen_insn): Likewise.
3459         * gengtype-lex.l: Likewise.
3460         * gengtype.c (read_input_list, adjust_field_type,
3461         process_gc_options): Likewise.
3462         * genoutput.c (note_constraint): Likewise.
3463         * genpreds.c (mangle, add_constraint): Likewise.
3464         * genrecog.c (process_define_predicate, new_decision,
3465         add_to_sequence): Likewise.
3466         * gensupport.c (record_insn_name): Likewise.
3467
3468 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3469
3470         * config/i386/driver-i386.c (detect_caches_amd,
3471         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3472         and/or -Wcast-qual warnings.
3473         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3474         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3475         gt_pch_save): Likewise.
3476         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3477         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3478         * global.c (compute_regsets): Likewise.
3479         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3480         finish_graph_dump_file): Likewise.
3481         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3482         unlink_bb_notes): Likewise.
3483         * integrate.c (get_hard_reg_initial_val): Likewise.
3484         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3485         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3486         * local-alloc.c (update_equiv_regs): Likewise.
3487         * loop-invariant.c (check_invariant_table_size,
3488         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3489         Likewise.
3490         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3491         altered_reg_used, mark_altered): Likewise.
3492         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3493         insert_var_expansion_initialization,
3494         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3495         release_var_copies): Likewise.
3496         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3497         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3498         analyze_accesses_for_phi_node, check_var_notmodified_p,
3499         check_allocation_function, find_sites_in_func,
3500         record_all_accesses_in_func, transform_access_sites,
3501         transform_allocation_sites): Likewise.
3502         * omp-low.c (new_omp_region, create_omp_child_function_name,
3503         check_omp_nesting_restrictions, check_combined_parallel,
3504         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3505         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3506         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3507         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3508         Likewise.
3509         * opts-common.c (prune_options): Likewise.
3510         * opts.c (add_input_filename, print_filtered_help,
3511         get_option_state): Likewise.
3512         * params.c (add_params): Likewise.
3513         * passes.c (set_pass_for_id, next_pass_1,
3514         do_per_function_toporder, pass_fini_dump_file): Likewise.
3515         * postreload.c (reload_cse_simplify_operands): Likewise.
3516         * predict.c (tree_predicted_by_p, tree_predict_edge,
3517         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3518
3519 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3520
3521         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3522         warnings.
3523         * recog.c (check_asm_operands, validate_change_1): Likewise.
3524         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3525         subst_asm_stack_regs): Likewise.
3526         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3527         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3528         * regmove.c (reg_is_remote_constant_p): Likewise.
3529         * regrename.c (regrename_optimize, scan_rtx_reg,
3530         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3531         Likewise.
3532         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3533         regstat_compute_calls_crossed): Likewise.
3534         * reload1.c (init_reload, new_insn_chain,
3535         has_nonexceptional_receiver, reload, copy_reloads,
3536         calculate_needs_all_insns, init_elim_table): Likewise.
3537         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3538         * rtl.c (shallow_copy_rtx_stat): Likewise.
3539         * rtlanal.c (parms_set): Likewise.
3540         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3541         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3542         * sched-ebb.c (earliest_block_with_similiar_load,
3543         add_deps_for_risky_insns): Likewise.
3544         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3545         schedule_region): Likewise.
3546         * see.c (eq_descriptor_pre_extension,
3547         hash_descriptor_pre_extension, hash_del_pre_extension,
3548         eq_descriptor_properties, hash_descriptor_properties,
3549         hash_del_properties, see_seek_pre_extension_expr,
3550         see_initialize_data_structures, see_print_register_properties,
3551         see_print_pre_extension_expr, see_delete_merged_def_extension,
3552         see_delete_unmerged_def_extension, see_emit_use_extension,
3553         see_pre_delete_extension, see_map_extension, see_commit_changes,
3554         see_analyze_merged_def_local_prop,
3555         see_analyze_merged_def_local_prop,
3556         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3557         see_set_prop_merged_def, see_set_prop_unmerged_def,
3558         see_set_prop_unmerged_use, see_print_one_extension,
3559         see_merge_one_use_extension, see_merge_one_def_extension,
3560         see_store_reference_and_extension, see_update_uses_relevancy,
3561         see_update_defs_relevancy): Likewise.
3562         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3563         hash_statistics_free, curr_statistics_hash): Likewise.
3564         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3565         expand_asm_operands, expand_return, case_bit_test_cmp,
3566         expand_case): Likewise.
3567         * stor-layout.c (start_record_layout): Likewise.
3568         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3569         gt_pch_save_stringpool): Likewise.
3570         * tree-data-ref.c (hash_stmt_vertex_info,
3571         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3572         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3573
3574 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3575
3576         PR target/36627
3577         * config/i386/i386.md : Change constraints of HImode and QImode
3578         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3579         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3580         from const0_operand and const1_operand predicated operands.
3581         (i): Change QImode and HImode attribute from "i" to "n".
3582         (*subqi_2): Change HImode operands to QImode.
3583         (*subqi_3): Ditto.
3584
3585 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3586
3587         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3588         sed substitutions.
3589
3590 2008-06-25  Richard Guenther  <rguenther@suse.de>
3591
3592         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3593         not overflow the result type.
3594
3595 2008-06-25  Richard Guenther  <rguenther@suse.de>
3596
3597         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3598         (vn_lookup): Likewise.
3599
3600 2008-06-25  Richard Guenther  <rguenther@suse.de>
3601
3602         PR tree-optimization/35518
3603         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3604         * tree-sra.c (instantiate_element): Use fold_build3 to build
3605         BIT_FIELD_REFs.
3606         (try_instantiate_multiple_fields): Likewise.
3607
3608 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3609
3610         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3611         be early clobbers.
3612
3613 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3614
3615         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3616         use_backchain_to_restore_sp to true
3617         if the offset of the link register save area would go over the 32k - 1
3618         offset limit of the load
3619         instructions.
3620
3621 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3622
3623         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3624         anchor for the type-punning blurb.  Cross-reference "Structures
3625         unions enumerations and bit-fields implementation".  Provide a
3626         cast-through-pointer example.  Make final sentence self-contained.
3627         * doc/implement-c.texi (Structures unions enumerations and
3628         bit-fields implementation): Cross-reference the type-punning blurb
3629         in the -fstrict-aliasing documentation.
3630
3631 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3632
3633         PR middle-end/36594
3634         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3635         the memory instead of the memory itself for the save area.
3636
3637 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3638             Nicolas Roche  <roche@adacore.com>
3639
3640         * gengtype.c (srcdir_len): size_t instead of int.
3641         (get_file_realbasename): New function.  For F a filename, the real
3642         basename of F, with all the path components stripped.
3643         (get_file_srcdir_relative_path): New function.  For F a filename, the
3644         relative path to F from $(srcdir).
3645         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3646         get_file_realbasename.  Adjust the head comment.
3647         (get_prefix_langdir_index): New function. For F a filename, return the
3648         lang_dir_names[] relative index of the language directory that is
3649         a prefix in F.
3650         (get_file_langdir): For F a filename, return the name of the language
3651         directory where F is located.
3652         (get_file_gtfilename): New function. The gt- output file name for an
3653         input filename F.
3654         (get_output_file_with_visibility): Replace in-line computations with
3655         uses of get_file_gtfilename and get_prefix_langdir_index.
3656         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3657
3658 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3659
3660         PR tree-optimization/36504
3661         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3662         references without base address.
3663
3664 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3665
3666         PR middle-end/36584
3667         * calls.c (expand_call): Increase alignment for recursive functions.
3668
3669 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3670
3671         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3672         (TARGET_FUNCTION_VALUE): New define.
3673         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3674         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3675
3676 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3677
3678         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3679         (fmod<mode>3): Ditto.
3680         (remainderxf3): Ditto.
3681         (remainder<mode>3): Ditto.
3682
3683 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3684
3685         PR target/36533
3686         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3687         REG is a hard register.
3688
3689         PR tree-optimization/36508
3690         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3691         499, don't check it at all in release compilers.
3692
3693 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3694
3695         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3696         together with SSE_TARGET_MATH to disable insn pattern.
3697         (*fop_<MODEF:mode>_2_i387): Ditto.
3698         (*fop_<MODEF:mode>_3_i387): Ditto.
3699
3700 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3701
3702         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3703         
3704 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3705
3706         PR middle-end/34906
3707         * gimplify.c (gimplify_asm_expr): Check the return code of
3708         parse_output_constraint call, set function return and is_inout
3709         value if it failed.
3710
3711 2008-06-22  Ian Lance Taylor  <iant@google.com>
3712
3713         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3714         (narrowest_signed_type): Likewise.
3715         * c-typeck.c (c_common_type): Change local variable mclass to enum
3716         mode_class, twice.
3717         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3718         tcc_comparison, not the tree code itself.
3719         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3720         (c_expand_expr): Cast modifier to enum expand_modifier.
3721         * c-common.h (C_RID_CODE): Add casts.
3722         (C_SET_RID_CODE): Define.
3723         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3724         (c_lex_one_token): Add cast to avoid warning.
3725         (c_parser_objc_type_name): Rename local typename to type_name.
3726         (check_no_duplicate_clause): Change code parameter to enum
3727         omp_clause_code.
3728         (c_parser_omp_var_list_parens): Change kind parameter to enum
3729         omp_clause_code.
3730         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3731         c_parser_omp_list_var_parens.
3732         (c_parser_omp_threadprivate): Likewise.
3733         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3734         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3735         * c-format.c (NO_FMT): Define.
3736         (printf_length_specs): Use NO_FMT.
3737         (asm_fprintf_length_specs): Likewise.
3738         (gcc_diag_length_specs): Likewise.
3739         (scanf_length_specs): Likewise.
3740         (strfmon_length_specs): Likewise.
3741         (gcc_gfc_length_specs): Likewise.
3742         (printf_flag_specs): Change 0 to STD_C89.
3743         (asm_fprintf_flag_specs): Likewise.
3744         (gcc_diag_flag_specs): Likewise.
3745         (gcc_cxxdiag_flag_specs): Likewise.
3746         (scanf_flag_specs): Likewise.
3747         (strftime_flag_specs): Likewise.
3748         (strfmon_flag_specs): Likewise.
3749         (print_char_table): Likewise.
3750         (asm_fprintf_char_table): Likewise.
3751         (gcc_diag_char_table): Likewise.
3752         (gcc_tdiag_char_table): Likewise.
3753         (gcc_cdiag_char_table): Likewise.
3754         (gcc_cxxdiag_char_table): Likewise.
3755         (gcc_gfc_char_table): Likewise.
3756         (scan_char_table): Likewise.
3757         (time_char_table): Likewis.
3758         (monetary_char_table): Likewise.
3759         * c-format.h (BADLEN): Likewise.
3760
3761 2008-06-21  Ian Lance Taylor  <iant@google.com>
3762
3763         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3764         Define END_OF_BASE_TREE_CODES around inclusion.
3765         * tree.c (tree_code_type): New global array.
3766         (tree_code_length, tree_code_name): Likewise.
3767         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3768         $(lang_tree_files).
3769         (all-tree.def, s-alltree): New targets.
3770         (gencheck.h, s-gencheck): Remove.
3771         (tree.o): Depend upon all-tree.def.
3772         (build/gencheck.o): Remove gencheck.h dependency.
3773         (mostlyclean): Don't remove gencheck.h.
3774         * c-common.h (enum c_tree_code): Remove.
3775         * c-lang.c (tree_code_type): Remove.
3776         (tree_code_length, tree_code_name): Remove.
3777         * gencheck.c (tree_codes): Include all-tree.def, rather than
3778         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3779         after it is used.
3780         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3781         than tree.def.
3782         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3783         (operator_name_info): Size to MAX_TREE_CODES.
3784         (assignment_operator_name_info): Likewise.
3785         * cp/cp-lang.c (tree_code_type): Remove.
3786         (tree_code_length, tree_code_name): Remove.
3787         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3788         (assignment_operator_name_info): Likewise.
3789         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3790         MAX_TREE_CODES.
3791         * cp/mangle.c (write_expression): Likewise.
3792         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3793         * fortran/f95-lang.c (tree_code_type): Remove.
3794         (tree_code_length, tree_code_name): Remove.
3795         * java/java-tree.h (enum java_tree_code): Remove.
3796         * java/lang.c (tree_code_type): Remove.
3797         (tree_code_length, tree_code_name): Remove.
3798         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3799         * objc/objc-act.h (enum objc_tree_code): Remove.
3800         * objc/objc-lang.c (tree_code_type): Remove.
3801         (tree_code_length, tree_code_name): Remove.
3802         * objcp/objcp-lang.c (tree_code_type): Remove.
3803         (tree_code_length, tree_code_name): Remove.
3804         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3805         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3806         * ada/misc.c (tree_code_type): Remove.
3807         (tree_code_length, tree_code_name): Remove.
3808
3809 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3810
3811         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3812         the grand_bitmap_obstack.
3813
3814 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3815
3816         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3817         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3818         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3819         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3820         move_stmt_r, new_label_mapper): Likewise.
3821         * tree-complex.c (cvc_lookup): Likewise.
3822         * tree-dfa.c (create_function_ann): Likewise.
3823         * tree-dump.c (dump_register): Likewise.
3824         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3825         find_phi_replacement_condition): Likewise.
3826         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3827         tree_function_versioning): Likewise.
3828         * tree-into-ssa.c (cmp_dfsnum): Likewise.
3829         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3830         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3831         get_nonlocal_debug_decl, convert_nonlocal_reference,
3832         convert_nonlocal_omp_clauses, get_local_debug_decl,
3833         convert_local_reference, convert_local_omp_clauses,
3834         convert_nl_goto_reference, convert_nl_goto_receiver,
3835         convert_tramp_reference, convert_call_expr): Likewise.
3836         * tree-outof-ssa.c (contains_tree_r): Likewise.
3837         * tree-parloops.c (reduction_phi, initialize_reductions,
3838         eliminate_local_variables_1, add_field_for_reduction,
3839         add_field_for_name, create_phi_for_local_result,
3840         create_call_for_reduction_1, create_loads_for_reductions,
3841         create_stores_for_reduction, create_loads_and_stores_for_name):
3842         Likewise.
3843         * tree-phinodes.c (allocate_phi_node): Likewise.
3844         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3845         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3846         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3847         * tree-ssa-coalesce.c (compare_pairs): Likewise.
3848         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3849         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3850         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3851         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
3852         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3853         vn_nary_op_insert): Likewise.
3854         * tree-ssa.c (redirect_edge_var_map_add,
3855         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3856         * tree-vectorizer.c (vectorize_loops): Likewise.
3857         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3858         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3859         tree_cons_stat, build1_stat, build_variant_type_copy,
3860         decl_init_priority_lookup, decl_fini_priority_lookup,
3861         decl_priority_info, decl_restrict_base_lookup,
3862         decl_restrict_base_insert, decl_debug_expr_lookup,
3863         decl_debug_expr_insert, decl_value_expr_lookup,
3864         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3865         type_hash_add, get_file_function_name, tree_check_failed,
3866         tree_not_check_failed, tree_range_check_failed,
3867         omp_clause_range_check_failed, build_omp_clause,
3868         build_vl_exp_stat): Likewise.
3869         * value-prof.c (gimple_histogram_value,
3870         gimple_duplicate_stmt_histograms): Likewise.
3871         * var-tracking.c (attrs_list_insert, attrs_list_copy,
3872         unshare_variable, variable_union_info_cmp_pos, variable_union,
3873         dataflow_set_different_1, dataflow_set_different_2,
3874         vt_find_locations, variable_was_changed, set_variable_part,
3875         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3876         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3877         section_entry_hash, object_block_entry_eq,
3878         object_block_entry_hash, create_block_symbol,
3879         initialize_cold_section_name, default_function_rodata_section,
3880         strip_reg_name, set_user_assembler_name, const_desc_eq,
3881         build_constant_desc, output_constant_def, lookup_constant_def,
3882         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3883         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3884         default_internal_label): Likewise.
3885         * varray.c (varray_init, varray_grow): Likewise.
3886         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3887
3888 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
3889
3890         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3891         operators for "test" insn.  Macroize insn using SWI mode macro.
3892         (*jcc_fused_2): Ditto.
3893         (*jcc_fused_3): Macroize insn using SWI mode macro.
3894         (*jcc_fused_4): Ditto.
3895
3896 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
3897
3898         * tree-ssa-pre.c: Fix typo in comment.
3899         (init_antic, fini_antic): Add explicit funtions for
3900         initializing and deinitializing ANTIC and AVAIL sets.
3901         (create_expression_by_pieces): Fix typo in comment.
3902         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3903         (execute_pre): Eventually dump details about ANTIC_IN.
3904
3905 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3906
3907         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3908         * gcc.c (translate_options, init_spec, store_arg, read_specs,
3909         add_to_obstack, file_at_path, find_a_file, execute,
3910         add_preprocessor_option, add_assembler_option, add_linker_option,
3911         process_command, insert_wrapper, do_option_spec, do_self_spec,
3912         spec_path, do_spec_1, is_directory, main, used_arg,
3913         getenv_spec_function): Likewise.
3914         * tlink.c (symbol_hash_lookup, file_hash_lookup,
3915         demangled_hash_lookup, symbol_push, file_push, frob_extension):
3916         Likewise.
3917
3918 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3919
3920         * doc/rtl.texi: Updated subreg section.
3921
3922 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
3923
3924         PR c++/36523
3925         * cgraphunit.c (cgraph_process_new_functions): Don't clear
3926         node->needed and node->reachable.
3927         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3928         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3929         (expand_task_call): Don't call expand_task_copyfn.
3930         (expand_task_copyfn): Renamed to...
3931         (finalize_task_copyfn): ... this.
3932
3933 2008-06-19  Jan Hubicka  <jh@suse.cz>
3934
3935         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3936         clobbering framepointer.
3937
3938 2008-06-19  Jan Hubicka  <jh@suse.cz>
3939
3940         * tree-optimize.c (execute_early_local_optimizations): Set
3941         cgraph_state only at first invocation.
3942
3943 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3944
3945         * system.h (-Wc++-compat): Activate as a warning, no an error.
3946
3947 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3948
3949         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3950         instead of "#" in insn asm template.
3951         (*jcc_fused_2): Ditto.
3952
3953 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3954
3955         * config/i386/i386.h (ix86_tune_indices)
3956         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3957         (TARGET_FUSE_CMP_AND_BRANCH): New define.
3958         * config/i386/i386.md (*jcc_fused_1): New insn pattern
3959         (*jcc_fused_2): Ditto.
3960         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3961         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3962         (print operand): Handle 'E' and 'e' code.
3963
3964 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
3965
3966         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3967         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3968         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3969
3970 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
3971
3972         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3973         node->decl.
3974         (cgraph_expand_function): Use local copy of decl.
3975         (cgraph_expand_all_functions): Remove redundant initialization of
3976         order_pos.
3977         (cgraph_optimize): Reword internal_error message.
3978
3979 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
3980
3981         * arm-protos.h (arm_return_in_memory): Remove public
3982         arm_return_in_memory() prototype.
3983         * arm.c (arm_return_in_memory): Add static prototype, add target
3984         hook macro, change definition and comments.
3985         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3986
3987 2008-06-19  Ben Elliston  <bje@au.ibm.com>
3988
3989         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3990         real.c: Remove references to IEEE 754R.
3991         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3992         * doc/libgcc.texi (Decimal float library routines): Likewise.
3993
3994 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3995
3996         * targhooks.h (struct gcc_target): New member unwind_word_mode.
3997         (default_unwind_word_mode): Add prototype.
3998         * targhooks.c (default_unwind_word_mode): New function.
3999         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4000         instead of word_mode.
4001         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4002         (TARGET_INITIALIZER): Use it.
4003
4004         * c-common.c (handle_mode_attribute): Support "unwind_word"
4005         mode attribute.
4006         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4007
4008         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4009         word_mode to access SjLj_Function_Context member "data".
4010         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
4011         conversion from targetm.eh_return_filter_mode () to
4012         targetm.unwind_word_mode () if they differ.
4013
4014         * builtin-types.def (BT_UNWINDWORD): New primitive type.
4015         (BT_FN_UNWINDWORD_PTR): New function type.
4016         (BT_FN_WORD_PTR): Remove.
4017         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4018         * except.c (expand_builtin_extend_pointer): Convert pointer to
4019         targetm.unwind_word_mode () instead of word_mode.
4020
4021         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4022         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4023         (spu_unwind_word_mode): New function.
4024         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4025         (TARGET_UNWIND_WORD_MODE): Define.
4026         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4027
4028 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4029
4030         * config/spu/spu.c (reg_align): Remove.
4031         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4032         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4033         (spu_split_store): Likewise.
4034
4035 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4036
4037         * gcc/tree-vn.c: Fix typo in comment.
4038
4039 2008-06-18  Jan Hubicka  <jh@suse.cz>
4040
4041         * cgraphunit.c (cgraph_optimize): Output debug info when doing
4042         toplevel reorder too.
4043
4044 2008-06-18  Jan Hubicka  <jh@suse.cz>
4045
4046         * c-opts.c (c_common_post_options): PCH is not compatible with
4047         no-unit-at-a-time.
4048         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4049         -fno-toplevel-reorder by default now.
4050
4051 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4052
4053         PR documentation/30739
4054         * doc/install.texi (Prerequisites): Document dependency on awk.
4055
4056 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
4057             Ian Lance Taylor  <iant@google.com>
4058
4059         PR rtl-optimization/35604
4060         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4061         only want to change jump destinations, not eventual label comparisons.
4062
4063 2008-06-16  Jan Hubicka  <jh@suse.cz>
4064
4065         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4066         syntax errors.
4067         (cgraph_analyze_function): Likewise.
4068
4069 2008-06-16  Jan Hubicka  <jh@suse.cz>
4070
4071         * cgraph.h (cgraph_mark_if_needed): New function.
4072         * cgraphunit.c (cgraph_mark_if_needed): New function.
4073         * c-decl.c (duplicate_decl): Use it.
4074
4075 2008-06-16  Jan Hubicka  <jh@suse.cz>
4076
4077         * cgraph.c (cgraph_add_new_function): When in expansion state, do
4078         lowering.
4079
4080 2008-06-16  Jan Hubicka  <jh@suse.cz>
4081
4082         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4083
4084 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
4085             Kazu Hirata  <kazu@codesourcery.com>
4086             Maxim Kuvyrkov  <maxim@codesourcery.com
4087
4088         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4089         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4090         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4091         EXTRA_SPEC_FUNCTIONS.
4092         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4093         (DRIVER_SELF_SPECS): Adjust.
4094         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4095         * config/mips/st.h, config/mips/t-st: New.
4096         * config/mips/driver-native.c, config/mips/x-native: New.
4097         * doc/invoke.texi (MIPS): Document 'native' value for -march and
4098         -mtune options.
4099
4100 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4101
4102         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4103         from it.
4104         (ISA_HAS_FP_CONDMOVE): New macro.
4105         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4106         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4107         (ISA_HAS_NMADD3_NMSUB3): New macro.
4108         * config/mips/mips.c (mips_rtx_costs): Update.
4109         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4110         compiling for ST Loongson 2E/2F.
4111         (madd<mode>): Rename to madd4<mode>.  Update.
4112         (madd3<mode>): New pattern.
4113         (msub<mode>): Rename to msub4<mode>.  Update.
4114         (msub3<mode>): New pattern.
4115         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
4116         (nmadd3<mode>): New pattern.
4117         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
4118         (nmadd3<mode>_fastmath): New pattern.
4119         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
4120         (nmsub3<mode>): New pattern.
4121         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
4122         (nmsub3<mode>_fastmath): New pattern.
4123         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4124
4125 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
4126
4127         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4128         (DF_REF_INSN_INFO): New.
4129         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4130         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4131         with a NULL DF_REF_INSN_INFO.
4132         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4133         DF_INSN_SET.
4134         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4135         DF_INSN_INFO_EQ_USES): New.
4136         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4137         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4138         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4139         * df-core.c: Update comment for above changes.
4140         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4141         DF_INSN_UID_* macros.
4142         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4143         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4144         insn rtx.  Update all callers.
4145         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4146         df_ref_create_structure, df_insn_refs_collect): Likewise.
4147         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4148         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4149         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4150         macros to access the insn refs.
4151         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4152         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4153         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4154         for accessing the refs.
4155         (try_fwprop_subst): Likewise.
4156         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4157         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4158         for accessing the refs.
4159         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4160         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4161         to look at the insn refs.
4162         (record_uses): Likewise.
4163         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4164         function anymore.
4165         (mark_artificial_uses): Don't mark_insn for artificial refs.
4166         (mark_reg_rependencies): Likewise.
4167
4168         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4169
4170 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4171
4172         * configure: Regenerate.
4173
4174 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4175
4176         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4177         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4178         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4179
4180 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4181
4182         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4183         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4184         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4185
4186 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4187
4188         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4189         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4190         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4191
4192 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4193
4194         * tree-ssa-sccvn.c: Fix format of comments.
4195
4196 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4197
4198         * cgraph.c: Remove unneeded forward declarations of eq_node()
4199         and hash_node().
4200
4201 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4202
4203         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4204         REG_RETVAL notes.
4205         (see_update_relevancy): Likewise.
4206         * fwprop.c (try_fwprop_subst): Likewise.
4207         * rtlanal.c (noop_move_p): Likewise.
4208         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4209         notes to non-existing libcall blocks.
4210         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4211         Remove orig_set.
4212         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4213         (dead_libcall_p): Remove.
4214         (delete_trivially_dead_insns): Don't use it.
4215         * web.c (union_defs): Remove comment about keeping nops.
4216         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4217         (compute_hash_table_work): Don't track libcall notes.
4218         (do_local_cprop): Don't take libcall pointers.  Don't update
4219         libcall notes.
4220         (adjust_libcall_notes): Deleted.
4221         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4222         ever have existed in the first place).
4223         (replace_store_insn): Don't try to remove libcall notes.
4224         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4225         (resolve_reg_notes): Don't call them.
4226         (resolve_simple_move): Likewise.
4227         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4228         Don't remove REG_RETVAL notes.
4229         * emit-rtl.c (try_split): Don't update libcall notes.
4230         (emit_copy_of_insn_after): Dito.
4231         * cselib.c (cselib_current_insn_in_libcall): Remove.
4232         (cselib_process_insn): Don't set/clear it.
4233         (new_elt_loc_list): Don't record it.
4234         (cselib_init): Don't initialize it.
4235         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4236         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4237         notes.
4238         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4239         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4240         (init_deps): Don't initialize it.
4241         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4242         * combine.c (delete_noop_moves): Don't update libcall notes.
4243         (can_combine_p): Remove now pointless #if 0 block.
4244         (try_combine): Remove another obsolete #if 0 block.
4245         (distribute_notes): Don't distribute libcall notes.
4246         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4247         * dce.c (libcall_dead_p): Remove.
4248         (delete_unmarked_insns): Don't handle libcall blocks.
4249         (preserve_libcall_for_dce): Remove.
4250         (prescan_insns_for_dce): Don't special-case libcall block insns.
4251         * reload1 (reload): Don't handle libcall notes. 
4252         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4253         documentation.
4254
4255 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4256
4257         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4258         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4259         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4260
4261 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4262
4263         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4264         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4265         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4266
4267 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4268
4269         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4270
4271 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4272
4273         PR tree-optimization/36493
4274         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4275         the arguments list. Use VECTYPE to create vector pointer.
4276         (vectorizable_store): Fail if accesses through a pointer to vectype
4277         do not alias the original memory reference operands.
4278         Call vect_create_data_ref_ptr without the removed argument.
4279         (vectorizable_load): Likewise.
4280         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4281         removed argument.
4282
4283 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4284
4285         PR target/36336
4286         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
4287         reg_equiv_constant.
4288
4289 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4290
4291         * config/mips/loongson2ef.md: New file.
4292         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4293         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4294         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4295         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4296         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4297         and loongson_2f.
4298         (loongson2ef.md): New include.
4299         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4300         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4301         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4302         (loongson_gt_<mode>, loongson_extract_halfword)
4303         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4304         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4305         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4306         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4307         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4308         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4309         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4310         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4311         (vec_interleave_low<mode>): Define type attribute.
4312         * config/mips/mips.c (mips_ls2): New static variable.
4313         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4314         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4315         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4316         Implement target scheduling hooks.
4317         (mips_multipass_dfa_lookahead): Update to handle tuning for
4318         Loongson 2E/2F.
4319         (mips_sched_init): Initialize data for Loongson scheduling.
4320         (mips_ls2_variable_issue): New static function.
4321         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4322         Add sanity check.
4323         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4324         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4325         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4326         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4327         Handle ST Loongson 2E/2F cores.
4328         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4329
4330 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4331
4332         * omp-low.c (extract_omp_for_data): Fix comment typo.
4333         * c.opt: Fix typo.
4334
4335 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4336
4337         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4338         FIXME note about gcc/config.guess.
4339         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4340         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4341         * doc/cppopts.texi: Likewise.
4342         * doc/extend.texi: Likewise.
4343         * doc/gcc.texi: Likewise.
4344         * doc/gccint.texi: Likewise.
4345         * doc/gcov.texi: Likewise.
4346         * doc/gty.texi: Likewise.
4347         * doc/hostconfig.texi: Likewise.
4348         * doc/install.texi: Likewise.
4349         * doc/invoke.texi: Likewise.
4350         * doc/loop.texi: Likewise.
4351         * doc/makefile.texi: Likewise.
4352         * doc/md.texi: Likewise.
4353         * doc/passes.texi: Likewise.
4354         * doc/tm.texi: Likewise.
4355         * doc/tree-ssa.texi: Likewise.
4356         * doc/trouble.texi: Likewise.
4357
4358 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4359             Nathan Sidwell  <nathan@codesourcery.com>
4360             Maxim Kuvyrkov  <maxim@codesourcery.com>
4361             Richard Sandiford  <rdsandiford@googlemail.com>
4362         
4363         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4364         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4365         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4366         builtins.
4367         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4368         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4369         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4370         V8QImode cases.
4371         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4372         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4373         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4374         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4375         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4376         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4377         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4378         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4379         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4380         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4381         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4382         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4383         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4384         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4385         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4386         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4387         (mips_builtins): Add Loongson builtins.
4388         (mips_loongson_2ef_bdesc): New.
4389         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4390         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4391         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4392         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4393         New.
4394         (mips_expand_vector_init): New.
4395         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4396         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4397         if appropriate.
4398         * config/mips/mips.md: Add unspec numbers for Loongson
4399         builtins.  Include loongson.md.
4400         (MOVE64): Include Loongson vector modes.
4401         (SPLITF): Include Loongson vector modes.
4402         (HALFMODE): Handle Loongson vector modes.
4403         * config/mips/loongson.md: New.
4404         * config/mips/loongson.h: New.
4405         * config.gcc: Add loongson.h header for mips*-*-* targets.
4406         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4407
4408 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4409
4410         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4411         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4412         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4413         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4414         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4415         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4416         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4417         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4418         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4419         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4420         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4421         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4422         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4423         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4424         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4425         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4426         Remove use_fixproto=yes.
4427         (ia64*-*-hpux*): Remove comment about using fixproto.
4428         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4429
4430 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4431
4432         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4433         library rebuilds.
4434         * configure: Regenerate.
4435
4436 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4437
4438         PR middle-end/36520
4439         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4440         before evaluating it.
4441
4442 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4443
4444         PR c/36507
4445         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4446         nested inline functions.
4447         (start_decl, start_function): Don't invert DECL_EXTERNAL
4448         for nested inline functions.
4449
4450 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4451
4452         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4453         splits that must be made for correctness.
4454
4455 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4456
4457         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4458         (AVAIL_NON_MIPS16): Likewise.
4459         (mips_builtin_description): Replace target_flags with a predicate.
4460         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4461         (dspr2_32): New availability predicates.
4462         (MIPS_BUILTIN): New macro.
4463         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4464         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4465         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4466         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4467         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4468         (mips_dsp_32only_bdesc): Merge into...
4469         (mips_builtins): ...this new array.
4470         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4471         (mips_init_builtins): Update after above changes.
4472         (mips_expand_builtin_1): Merge into...
4473         (mips_expand_builtin): ...here and update after above changes.
4474
4475 2008-06-12  Paul Brook  <paul@codesourcery.com>
4476
4477         * longlong.h (__arm__): Define count_leading_zeros.
4478         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4479         (clzsi2, clzdi2): New functions.
4480         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4481         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4482         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4483         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4484         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4485         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4486         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4487         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4488         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4489         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4490
4491 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4492
4493         * config/m68k/m68k.c (m68k_tune_flags): New.
4494         (override_options): Compute m68k_tune_flags.
4495         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4496         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4497
4498 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4499
4500         PR middle-end/36506
4501         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4502
4503 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4504
4505         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4506         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4507
4508 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4509
4510         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4511         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4512
4513 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4514
4515         PR middle-end/36506
4516         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4517         reductions.
4518
4519 2008-06-12  Richard Guenther  <rguenther@suse.de>
4520
4521         PR tree-optimization/36345
4522         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4523         add memory_tag_needed flag.
4524         (may_alias_p): Declare.
4525         * tree-ssa-alias.c (may_alias_p): Export.
4526         (set_initial_properties): Use memory_tag_needed flag.
4527         (update_reference_counts): Likewise.
4528         (reset_alias_info): Reset memory_tag_needed flag.
4529         (create_name_tags): Check memory_tag_needed flag.
4530         (dump_points_to_info_for): Dump it.
4531         * tree-ssa-structalias.c (struct variable_info): Remove
4532         directly_dereferenced flag.
4533         (new_var_info): Do not initialize it.
4534         (process_constraint_1): Do not set it.
4535         (update_alias_info): Set is_dereferenced flag.
4536         (set_uids_in_ptset): Use may_alias_p.
4537         (set_used_smts): Check memory_tag_needed flag.
4538         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4539         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4540         memory_tag_needed flag.
4541         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4542         from broken design.
4543
4544 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4545
4546         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4547         red zone for w64 abi.
4548         (ix86_expand_prologue): Likewise.
4549         (ix86_force_to_memory): Likewise.
4550         (ix86_free_from_memory): Likewise.
4551
4552 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4553
4554         PR target/36425
4555         * config/rs6000/rs6000.c (rs6000_override_options): Set
4556         rs6000_isel conditionally to the absence of comand line override.
4557         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4558         Remove duplicate rs6000_isel setting.
4559         * config/rs6000/eabispe.h: Ditto.
4560
4561 2008-06-11  Richard Guenther  <rguenther@suse.de>
4562
4563         * alias.c (get_alias_set): Use the element alias-set for arrays.
4564         (record_component_aliases): For arrays and vectors do nothing.
4565         * c-common.c (strict_aliasing_warning): Handle the cases
4566         of alias set zero explicitly.
4567         * Makefile.in (dfp.o-warn): Add -Wno-error.
4568
4569 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4570
4571         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4572         tune_32 tune_64.
4573         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4574         tune_32 tune_64 to supported_defaults.  Allow values not
4575         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4576         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4577         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4578         with_cpu_64 to generic for 64-bit-supporting configurations, not
4579         with_cpu.  Remove FIXMEs.
4580         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4581         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4582         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4583         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4584         arch_32 and arch_64.
4585
4586 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4587             Olivier Hainque  <hainque@adacore.com>
4588
4589         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4590         Use DECL_SIZE_UNIT to retrieve the size of the field.
4591
4592 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4593
4594         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4595         with function calls after declarations.  Lay out
4596         neon_float_type_node before further use.
4597
4598 2008-06-11  Richard Guenther  <rguenther@suse.de>
4599
4600         * tree-flow.h (may_point_to_global_var): Declare.
4601         * tree-ssa-alias.c (may_point_to_global_var): New function.
4602         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4603
4604 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4605
4606         * configure.ac: Teach that fido supports .debug_line.
4607         * configure: Regenerate.
4608
4609 2008-06-10  Tom Tromey  <tromey@redhat.com>
4610
4611         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4612         debug hook.
4613
4614 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4615
4616         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4617         (encode_decimal64, decode_decimal64, encode_decimal128,
4618         decode_decimal128): Reverse order of 32-bit parts of value if host
4619         and target endianness differ.
4620
4621 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4622
4623         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4624         Avoid division by 0.
4625         (tree_mod_pow2_value_transform): Likewise.
4626         (tree_ic_transform): Likewise.
4627         (tree_stringops_transform): Likewise.
4628         (tree_mod_subtract_transform): Likewise.
4629         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4630         (copy_edges_for_bb): Likewise.
4631         (initialize_cfun): Likewise.
4632
4633 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4634
4635         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4636         nonmemory_operand. Add "N" operand constraint.
4637         (*btsi): Ditto.
4638         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4639         (*jcc_btsi_mask): Ditto.
4640         (*jcc_btsi_mask_1): Ditto.
4641
4642 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4643
4644         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4645         TYPE_CANONICAL for copied element type.
4646
4647 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4648
4649         PR target/36473
4650         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4651         Add m_CORE2 and m_GENERIC.
4652         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4653         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4654         (*btsi): Ditto.
4655         (*jcc_btdi_rex64): New instruction and split pattern.
4656         (*jcc_btsi): Ditto.
4657         (*jcc_btsi_1): Ditto.
4658         (*btsq): Fix Intel asm dialect operand order.
4659         (*btrq): Ditto.
4660         (*btcq): Ditto.
4661
4662 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4663
4664         PR middle-end/36447
4665         * simplify-rtx.c (simplify_subreg): Add check for shift count 
4666         greater than size.
4667
4668 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4669
4670         * doc/md.texi: Synchronize with later constraints.md change.
4671         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4672         with a C implementation.
4673         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4674         MFLO handling.
4675         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4676         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4677         when moving to and from MD_REGNUM.
4678         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4679         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4680         Handle byte and halfword moves.
4681         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4682         separately.
4683         * config/mips/constraints.md (h): Turn into NO_REGS.
4684         (l, x): Update documentation.
4685         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4686         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4687         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4688         (HILO): New mode iterator.
4689         (MOVE128): Add TI.
4690         (any_div): New code iterator.
4691         (u): Extend code attribute to div and udiv.
4692         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4693         d_operand in the splitters.  Remove redundant CONST_INT checks.
4694         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4695         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4696         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4697         accordingly, using normal moves instead of unspecs to move LO into
4698         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4699         (<u>mulsidi3): Handle expansion in C code.
4700         (<u>mulsidi3_32bit_internal): Rename to...
4701         (<u>mulsidi3_32bit): ...this.
4702         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4703         (*<u>mulsidi3_64bit): Rename to...
4704         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4705         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4706         to set LO and HI to the multiplication result.  Use a normal move
4707         for MFLO and an unspec for MFHI.
4708         (*<u>mulsidi3_64bit_parts): Replace with...
4709         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4710         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4711         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4712         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4713         instead of HI.  Split the instruction into a separate multiplication
4714         and MFHI if !TARGET_FIX_R4000.
4715         (<su>muldi3_highpart): Likewise.
4716         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4717         and the "=h" clobber.
4718         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4719         (<u>mulditi3): New expander.
4720         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4721         (madsi): Remove "=h" clobber.
4722         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4723         Force the modulus result to be a GPR and split the instruction into
4724         a division followed by an MFHI after reload.
4725         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4726         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4727         the MIPS16 HIGH define_split.
4728         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4729         of acc<->gpr moves to "multi".
4730         (*movdi_64bit): Replace the single "x" alternative with
4731         alternatives for moving into and out of "a".
4732         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4733         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4734         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4735         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4736         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4737         (movti): New expander.
4738         (*movti, *movti_mips16): New insns.
4739         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4740         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4741         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4742         * config/mips/predicates.md (fpr_operand): Delete.
4743         (d_operand): New predicate.
4744
4745 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4746
4747         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4748         failure on some Bourne shells.
4749         (x86_64-*-*): Ditto.
4750
4751 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4752
4753         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4754
4755 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4756
4757         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4758         (sparc-sun-solaris2*): Likewise.
4759
4760 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4761
4762         * doc/install.texi: Update requirements to build the Ada compiler.
4763
4764 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4765
4766         * df-scan.c (struct df_scan_problem_data): Remove the
4767         mw_link_pool alloc pool.
4768         (df_scan_free_internal): Don't free it.
4769         (df_scan_alloc): Don't allocate it.
4770         * df.h (struct df_link): Update comment.
4771
4772 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4773
4774         * except.h: Correct checks for when SJLJ exceptions must be used.
4775
4776 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4777
4778         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4779         default.
4780         
4781 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4782
4783         PR tree-optimization/36218
4784         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4785         configure for the build system.
4786         (BUILD_LDFLAGS): Define.
4787         * configure: Regenerate.
4788         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4789
4790 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4791
4792         PR target/36424
4793         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4794         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
4795         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
4796
4797 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4798
4799         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4800
4801 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4802
4803         * config.gcc (Obsolete configurations): Remove list of
4804         configurations.
4805         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4806         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4807         targets matched by those patterns.
4808         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4809         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4810         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4811         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4812         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4813         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4814         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4815         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4816         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4817         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4818         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4819         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4820         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4821         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4822         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4823         Make code for Solaris 7 and greater unconditional for Solaris.
4824         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4825         Remove --with-* handling.
4826         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4827         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4828         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4829         LINK_OS_WINDISS_SPEC): Remove.
4830         * config/rs6000/sysv4.opt (mwindiss): Remove.
4831         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4832         * configure: Regenerate.
4833         * doc/cpp.texi: Don't mention BeOS.
4834         * doc/extend.texi (interrupt): Don't mention MS1.
4835         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4836         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4837         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4838         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4839         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4840         Remove.
4841         * doc/invoke.texi (MT Options): Remove.
4842         (-mwindiss): Remove.
4843         (CRIS Options): Remove cris-axis-aout references.
4844         (HPPA Options): Don't mention hppa1.1-*-pro.
4845         * doc/md.texi: (MorphoTech family): Remove.
4846         * libgcc2.c: Don't handle UWIN.
4847         * config/alpha/t-unicosmk: Remove.
4848         * config/alpha/unicosmk.h: Remove.
4849         * config/arm/kaos-arm.h: Remove.
4850         * config/arm/kaos-strongarm.h: Remove.
4851         * config/arm/strongarm-coff.h: Remove.
4852         * config/arm/strongarm-elf.h: Remove.
4853         * config/arm/strongarm-pe.h: Remove.
4854         * config/arm/t-strongarm-pe: Remove.
4855         * config/arm/t-xscale-coff: Remove.
4856         * config/arm/t-xscale-elf: Remove.
4857         * config/arm/xscale-coff.h: Remove.
4858         * config/arm/xscale-elf.h: Remove.
4859         * config/chorus.h: Remove.
4860         * config/cris/aout.h: Remove.
4861         * config/cris/aout.opt: Remove.
4862         * config/cris/t-aout: Remove.
4863         * config/i386/beos-elf.h: Remove.
4864         * config/i386/kaos-i386.h: Remove.
4865         * config/i386/ptx4-i.h: Remove.
4866         * config/i386/sco5.h: Remove.
4867         * config/i386/sco5.opt: Remove.
4868         * config/i386/sysv4-cpp.h: Remove.
4869         * config/i386/sysv5.h: Remove.
4870         * config/i386/t-beos: Remove.
4871         * config/i386/t-sco5: Remove.
4872         * config/i386/t-uwin: Remove.
4873         * config/i386/uwin.asm: Remove.
4874         * config/i386/uwin.h: Remove.
4875         * config/kaos.h: Remove.
4876         * config/mips/windiss.h: Remove.
4877         * config/mt: Remove directory.
4878         * config/pa/pa-osf.h: Remove.
4879         * config/pa/pa-pro-end.h: Remove.
4880         * config/pa/t-pro: Remove.
4881         * config/ptx4.h: Remove.
4882         * config/rs6000/beos.h: Remove.
4883         * config/rs6000/kaos-ppc.h: Remove.
4884         * config/rs6000/t-beos: Remove.
4885         * config/rs6000/windiss.h: Remove.
4886         * config/sh/kaos-sh.h: Remove.
4887         * config/sol2-6.h: Remove.
4888         * config/sparc/sol26-sld.h: Remove.
4889         * config/sparc/sysv4-only.h: Remove.
4890         * config/vax/bsd.h: Remove.
4891         * config/vax/t-memfuncs: Remove.
4892         * config/vax/ultrix.h: Remove.
4893         * config/vax/vaxv.h: Remove.
4894         * config/windiss.h: Remove.
4895
4896 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
4897
4898         PR rtl-optimization/36438
4899         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4900         for vector shifts with constant scalar shift operands.
4901
4902 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
4903
4904         * doc/invoke.texi: Document -march=xlr.
4905         * config/mips/xlr.md: New file.
4906         * config/mips/mips.md: Include it.
4907         (cpu): Add "xlr".
4908         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4909         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4910         (mips_rtx_cost_data): Likewise.
4911
4912 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
4913
4914         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4915         PRE_INC and PRE_DEC cases.
4916
4917 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4918
4919         PR rtl-optimization/36419
4920         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4921         the emitting jump insn.
4922
4923         PR target/36362
4924         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4925         is not bool, boolify the whole *expr_p and convert to the desired type.
4926
4927 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4928
4929         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4930         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4931         Add omp_private_outer_ref hook, add another argument to
4932         omp_clause_default_ctor hook.
4933         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4934         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4935         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4936         hook_tree_tree_tree_tree_null.
4937         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4938         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4939         * hooks.c (hook_tree_tree_tree_tree_null): New function.
4940         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4941         * tree.def (OMP_TASK): New tree code.
4942         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4943         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4944         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4945         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4946         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4947         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4948         OMP_CLAUSE_COLLAPSE_EXPR): Define.
4949         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4950         (OMP_DIRECTIVE_P): Add OMP_TASK.
4951         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4952         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4953         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4954         and OMP_CLAUSE_UNTIED entries.
4955         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
4956         num_ops to 2.
4957         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4958         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4959         * tree-pretty-print.c (dump_omp_clause): Handle
4960         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4961         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4962         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4963         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
4964         warning about unsigned iterators.  Change decl/init/cond/incr
4965         arguments to TREE_VECs, check arguments for all collapsed loops.
4966         (c_finish_omp_taskwait): New function.
4967         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4968         ws_clauses.
4969         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
4970         default_function_array_conversion on init.  Add par_clauses argument.
4971         If decl is present in parallel's lastprivate clause, change it to
4972         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4973         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
4974         collapse count in clauses.
4975         (c_parser_omp_for, c_parser_omp_parallel): Adjust
4976         c_parser_omp_for_loop callers.
4977         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4978         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4979         (c_parser_omp_clause_name): Handle collapse and untied clauses.
4980         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4981         functions.
4982         (c_parser_omp_clause_schedule): Handle schedule(auto).
4983         Include correct location in the error message.
4984         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4985         and PRAGMA_OMP_CLAUSE_UNTIED.
4986         (OMP_TASK_CLAUSE_MASK): Define.
4987         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4988         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4989         * tree-nested.c (convert_nonlocal_omp_clauses,
4990         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4991         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4992         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4993         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4994         OMP_CLAUSE_DECL.
4995         (conver_nonlocal_reference, convert_local_reference,
4996         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
4997         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4998         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4999         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5000         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5001         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5002         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5003         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5004         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5005         OMP_CLAUSE_UNTIED.
5006         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5007         * c-common.h (c_finish_omp_taskwait): New prototype.
5008         * gimple-low.c (lower_stmt): Handle OMP_TASK.
5009         * tree-parloops.c (create_parallel_loop): Create 1 entry
5010         vectors for OMP_FOR_{INIT,COND,INCR}.
5011         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5012         (make_edges): Handle OMP_TASK.
5013         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5014         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5015         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5016         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5017         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5018         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5019         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5020         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5021         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5022         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5023         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5024         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5025         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5026         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5027         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5028         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5029         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5030         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5031         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5032         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5033         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5034         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5035         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5036         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5037         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5038         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5039         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
5040         original iterator is present in lastprivate clause or if
5041         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
5042         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5043         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5044         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5045         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5046         if it is set, lookup var in outer contexts too.  Handle
5047         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
5048         to be implicitly determined firstprivate for task regions.
5049         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5050         if it is set, lookup var in outer contexts too.  Set
5051         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5052         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5053         OMP_CLAUSE_UNTIED.  Take region_type as last argument
5054         instead of in_parallel and in_combined_parallel.
5055         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5056         Adjust callers.
5057         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5058         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
5059         (new_omp_context): Set default_kind to
5060         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5061         (omp_region_type): New enum.
5062         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5063         fields, add region_type.
5064         (new_omp_context): Take region_type as argument instead of is_parallel
5065         and is_combined_parallel.
5066         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5067         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5068         ctx->is_combined_parallel checks.
5069         (gimplify_omp_task): New function.
5070         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5071         OMP_CLAUSE_UNTIED.
5072         * omp-low.c (extract_omp_for_data): Use schedule(static)
5073         for schedule(auto).  Handle pointer and unsigned iterators.
5074         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
5075         Add loops argument.  Extract data for collapsed OMP_FOR loops.
5076         (expand_parallel_call): Assert sched_kind isn't auto,
5077         map runtime schedule to index 3.
5078         (struct omp_for_data_loop): New type.
5079         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5080         Add loop, loops, collapse and iter_type fields.
5081         (workshare_safe_to_combine_p): Disallow combined for if
5082         iter_type is unsigned long long.  Don't combine collapse > 1 loops
5083         unless all bounds and steps are constant.  Adjust extract_omp_for_data
5084         caller.
5085         (expand_omp_for_generic): Handle pointer, unsigned and long long
5086         iterators.  Handle collapsed OMP_FOR loops.  Adjust
5087         for struct omp_for_data changes.  If libgomp function doesn't return
5088         boolean_type_node, add comparison of the return value with 0.
5089         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5090         pointer, unsigned and long long iterators.  Adjust for struct
5091         omp_for_data changes.
5092         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5093         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
5094         unsigned long long.  Allocate loops array, pass it to
5095         extract_omp_for_data.  For collapse > 1 loops use always
5096         expand_omp_for_generic.
5097         (omp_context): Add sfield_map and srecord_type fields.
5098         (is_task_ctx, lookup_sfield): New functions.
5099         (use_pointer_for_field): Use is_task_ctx helper.  Change first
5100         argument's type from const_tree to tree.  Clarify comment.
5101         In OMP_TASK disallow copy-in/out sharing.
5102         (build_sender_ref): Call lookup_sfield instead of lookup_field.
5103         (install_var_field): Add mask argument.  Populate both record_type
5104         and srecord_type if needed.
5105         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5106         in srecord_type.
5107         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5108         and DECL_FIELD_OFFSET.
5109         (scan_sharing_clauses): Adjust install_var_field callers.  For
5110         firstprivate clauses on explicit tasks allocate the var by value in
5111         record_type unconditionally, rather than by reference.
5112         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5113         Use is_taskreg_ctx instead of is_parallel_ctx.
5114         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5115         (create_omp_child_function_name): Add task_copy argument, use
5116         *_omp_cpyfn* names if it is true.
5117         (create_omp_child_function): Add task_copy argument, if true create
5118         *_omp_cpyfn* helper function.
5119         (scan_omp_parallel): Adjust create_omp_child_function callers.
5120         Rename parallel_nesting_level to taskreg_nesting_level.
5121         (scan_omp_task): New function.
5122         (lower_rec_input_clauses): Don't run constructors for firstprivate
5123         explicit task vars which are initialized by *_omp_cpyfn*.  
5124         Pass outer var ref to omp_clause_default_ctor hook if
5125         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5126         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5127         OMP_CLAUSE_REDUCTION_INIT.
5128         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5129         avoid duplicate setting of fields.  Handle
5130         OMP_CLAUSE_PRIVATE_OUTER_REF.
5131         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
5132         copy-out if TREE_READONLY, only copy-in.
5133         (expand_task_copyfn): New function.
5134         (expand_task_call): New function.
5135         (struct omp_taskcopy_context): New type.
5136         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5137         New functions.
5138         (lower_omp_parallel): Rename to...
5139         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5140         Call create_task_copyfn if srecord_type is needed.  Adjust
5141         sender_decl type.
5142         (task_shared_vars): New variable.
5143         (check_omp_nesting_restrictions): Warn if work-sharing,
5144         barrier, master or ordered region is closely nested inside OMP_TASK.
5145         Add warnings for barrier if closely nested inside of work-sharing,
5146         ordered, or master region.
5147         (scan_omp_1): Call check_omp_nesting_restrictions even for
5148         GOMP_barrier calls.  Rename parallel_nesting_level to
5149         taskreg_nesting_level.  Handle OMP_TASK.
5150         (lower_lastprivate_clauses): Even if some lastprivate is found on a
5151         work-sharing construct, continue looking for them on parent parallel
5152         construct.
5153         (lower_omp_for_lastprivate): Add lastprivate clauses
5154         to the beginning of dlist rather than end.  Adjust for struct
5155         omp_for_data changes.
5156         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5157         not after it.  Handle collapsed OMP_FOR loops, adjust for
5158         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5159         (get_ws_args_for): Adjust extract_omp_for_data caller.
5160         (scan_omp_for): Handle collapsed OMP_FOR
5161         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5162         (lower_omp_single_simple): If libgomp function doesn't return
5163         boolean_type_node, add comparison of the return value with 0.
5164         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5165         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5166         (parallel_nesting_level): Rename to...
5167         (taskreg_nesting_level): ... this.
5168         (is_taskreg_ctx): New function.
5169         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5170         of is_parallel_ctx.
5171         (execute_lower_omp): Rename parallel_nesting_level to
5172         taskreg_nesting_level.
5173         (expand_omp_parallel): Rename to...
5174         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5175         Call omp_task_call for OMP_TASK regions.
5176         (expand_omp): Adjust caller, handle OMP_TASK.
5177         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5178
5179         * bitmap.c (bitmap_default_obstack_depth): New variable.
5180         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5181         if argument is NULL and bitmap_default_obstack is already initialized.
5182         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5183         at the end.
5184         * matrix-reorg.c (matrix_reorg): Likewise.
5185
5186 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5187
5188         * config/i386/i386.md (*indirect_jump): Macroize using P
5189         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5190         (*tablejump_1): Ditto.
5191         (*indirect_jump_rex64): Remove insn pattern.
5192         (*tablejump_1_rex64): Ditto.
5193         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5194         and eh_return_si insn patterns.
5195
5196 2008-06-06  Richard Guenther  <rguenther@suse.de>
5197
5198         * tree-ssa-structalias.c (merge_smts_into): Remove.
5199         (find_what_p_points_to): Do not bother to compute the
5200         points-to set for pt_anything pointers.
5201         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5202         for pt_anything pointers is ok.
5203
5204 2008-06-06  Jan Hubicka  <jh@suse.cz>
5205
5206         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5207
5208 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5209
5210         * cgraph.c: Fix typos in comments.
5211         (cgraph_availability_names): Fix string typo.
5212         * fold-const.c: Fix typos in comments.
5213         (fold_binary): Fix typo in warning.
5214         * genautomata.c: Fix typos in comments.
5215         (check_presence_pattern_sets): Fix typo in local variable.
5216         (output_description): Fix typo in output.
5217         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5218         * hwint.h: Likewise.
5219         * matrix-reorg.c (check_allocation_function): Likewise.
5220         * omega.c (smooth_weird_equations): Likewise.
5221         * auto-inc-dec.c: Fix typos in comments.
5222         * bb-reorder.c: Likewise.
5223         * builtins.c: Likewise.
5224         * c-common.c: Likewise.
5225         * c-cppbuiltin.c: Likewise.
5226         * c-parser.c: Likewise.
5227         * c-pretty-print.c: Likewise.
5228         * cfgcleanup.c: Likewise.
5229         * cfgexpand.c: Likewise.
5230         * cfghooks.c: Likewise.
5231         * cfglayout.c: Likewise.
5232         * cfgloopmanip.c: Likewise.
5233         * cgraphunit.c: Likewise.
5234         * coverage.c: Likewise.
5235         * dbxout.c: Likewise.
5236         * df-byte-scan.c: Likewise.
5237         * df-core.c: Likewise.
5238         * df-problems.c: Likewise.
5239         * df-scan.c: Likewise.
5240         * dfp.c: Likewise.
5241         * dominance.c: Likewise.
5242         * domwalk.c: Likewise.
5243         * dse.c: Likewise.
5244         * dwarf2out.c: Likewise.
5245         * emit-rtl.c: Likewise.
5246         * et-forest.c: Likewise.
5247         * function.c: Likewise.
5248         * function.h: Likewise.
5249         * gcc.c: Likewise.
5250         * gcov-io.c: Likewise.
5251         * gcov.c: Likewise.
5252         * gcse.c: Likewise.
5253         * genattrtab.c: Likewise.
5254         * ggc-page.c: Likewise.
5255         * gimplify.c: Likewise.
5256         * gthr-lynx.h: Likewise.
5257         * haifa-sched.c: Likewise.
5258         * ipa-cp.c: Likewise.
5259         * ipa-inline.c: Likewise.
5260         * ipa-prop.h: Likewise.
5261         * ipa-pure-const.c: Likewise.
5262         * ipa-struct-reorg.c: Likewise.
5263         * ipa-struct-reorg.h: Likewise.
5264         * ipa-type-escape.c: Likewise.
5265         * ipa.c: Likewise.
5266         * loop-doloop.c: Likewise.
5267         * mips-tfile.c: Likewise.
5268         * mkmap-flat.awk: Likewise.
5269         * mkmap-symver.awk: Likewise.
5270         * modulo-sched.c: Likewise.
5271         * omp-low.c: Likewise.
5272         * optabs.c: Likewise.
5273         * optabs.h: Likewise.
5274         * opts.c: Likewise.
5275         * passes.c: Likewise.
5276         * postreload-gcse.c: Likewise.
5277         * postreload.c: Likewise.
5278         * predict.c: Likewise.
5279         * pretty-print.h: Likewise.
5280         * profile.c: Likewise.
5281         * protoize.c: Likewise.
5282         * ra-conflict.c: Likewise.
5283         * real.c: Likewise.
5284         * recog.c: Likewise.
5285         * regclass.c: Likewise.
5286         * regs.h: Likewise.
5287         * reload.c: Likewise.
5288         * rtl-error.c: Likewise.
5289         * rtlanal.c: Likewise.
5290         * scan.h: Likewise.
5291         * sched-rgn.c: Likewise.
5292         * see.c: Likewise.
5293         * stmt.c: Likewise.
5294         * target.h: Likewise.
5295         * tree-dfa.c: Likewise.
5296         * tree-eh.c: Likewise.
5297         * tree-flow-inline.h: Likewise.
5298         * tree-inline.c: Likewise.
5299         * tree-into-ssa.c: Likewise.
5300         * tree-loop-distribution.c: Likewise.
5301         * tree-nested.c: Likewise.
5302         * tree-parloops.c: Likewise.
5303         * tree-pass.h: Likewise.
5304         * tree-pretty-print.c: Likewise.
5305         * tree-profile.c: Likewise.
5306         * tree-scalar-evolution.c: Likewise.
5307         * tree-sra.c: Likewise.
5308         * tree-ssa-alias-warnings.c: Likewise.
5309         * tree-ssa-ccp.c: Likewise.
5310         * tree-ssa-coalesce.c: Likewise.
5311         * tree-ssa-dom.c: Likewise.
5312         * tree-ssa-dse.c: Likewise.
5313         * tree-ssa-forwprop.c: Likewise.
5314         * tree-ssa-live.c: Likewise.
5315         * tree-ssa-live.h: Likewise.
5316         * tree-ssa-loop-im.c: Likewise.
5317         * tree-ssa-loop-ivopts.c: Likewise.
5318         * tree-ssa-loop-niter.c: Likewise.
5319         * tree-ssa-loop-prefetch.c: Likewise.
5320         * tree-ssa-phiopt.c: Likewise.
5321         * tree-ssa-phiprop.c: Likewise.
5322         * tree-ssa-sccvn.c: Likewise.
5323         * tree-ssa-ter.c: Likewise.
5324         * tree-ssa-threadupdate.c: Likewise.
5325         * tree-ssa.c: Likewise.
5326         * tree-vect-analyze.c: Likewise.
5327         * tree-vect-transform.c: Likewise.
5328         * tree-vectorizer.c: Likewise.
5329         * tree-vn.c: Likewise.
5330         * tree-vrp.c: Likewise.
5331         * tree.c: Likewise.
5332         * tree.def: Likewise.
5333         * tree.h: Likewise.
5334         * unwind-dw2-fde.c: Likewise.
5335         * unwind.inc: Likewise.
5336         * value-prof.c: Likewise.
5337         * vmsdbgout.c: Likewise.
5338
5339 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5340
5341         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5342         always place FP constants in the TOC for TARGET_POWERPC64.
5343         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5344
5345 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5346
5347         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5348         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5349         enable for TARGET_E500_DOUBLE.
5350         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5351         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5352         floating-point modes like integer modes for E500 double.
5353         (rs6000_legitimate_offset_address_p): Likewise.
5354         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5355         addressing for DDmode for E500 double.
5356         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5357         modes as using 64-bits of registers for E500 double.
5358         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5359         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5360         specially for E500 double.
5361         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5362         TDmode for E500 double.
5363         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5364         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5365         (rs6000_split_multireg_move): Do not handle TDmode specially for
5366         E500 double.
5367         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5368         using 64-bit registers for E500 double.
5369         (emit_frame_save): Do not handle DDmode specially for E500 double.
5370         (gen_frame_mem_offset): Likewise.
5371         (rs6000_function_value): Do not call spe_build_register_parallel
5372         for DDmode or TDmode.
5373         (rs6000_libcall_value): Likewise.
5374         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5375         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5376         for E500 double.
5377
5378 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5379
5380         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5381         in comments.
5382
5383 2008-06-04  Junjie Gu <jgu@tensilica.com>
5384
5385         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5386         comparison for frame pointers.
5387
5388 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5389
5390         PR target/27386
5391         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5392
5393 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5394
5395         PR target/30243
5396         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5397         register is already smaller or equal to required mode. 
5398
5399 2008-06-04  Xinliang David Li  <davidxl@google.com>
5400
5401         * tree-call-cdce.c: New file. 
5402         (cond_dead_built_in_calls): New static variable.
5403         (input_domain): New struct.
5404         (check_pow): New function.
5405         (check_builtin_call): Ditto.
5406         (check_target_format): Ditto.
5407         (is_call_dce_candidate): Ditto.
5408         (gen_one_condition): Ditto.
5409         (gen_conditions_for_domain): Ditto.
5410         (get_domain): Ditto.
5411         (gen_conditions_for_pow_cst_base): Ditto.
5412         (gen_conditions_for_pow_int_base): Ditto.
5413         (gen_conditions_for_pow): Ditto.
5414         (get_no_error_domain): Ditto.
5415         (gen_shrink_wrap_conditions): Ditto.
5416         (shrink_wrap_one_built_in_call): Ditto.
5417         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5418         (tree_call_cdce): Ditto.
5419         (gate_call_cdce): Ditto.
5420         (pass_call_cdce): New gimple pass.
5421         * passes.c: (init_optimization_passes): New pass.
5422         * tree-pass.h: New pass declaration.
5423         * opts.c (decode_options): New flag setting.
5424         * common.opt: Add -ftree-builtin-call-dce flag.
5425         * Makefile.in: Add new source file.
5426         * tempvar.def: New tv_id.
5427         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5428
5429 2008-06-04  Richard Guenther  <rguenther@suse.de>
5430
5431         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5432         (is_call_clobbered): Always check var_ann->call_clobbered.
5433         (mark_call_clobbered): Always set var_ann->call_clobbered.
5434         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5435         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5436         (reset_alias_info): Clear call clobbering info on MTAGs and
5437         globals as well.
5438         (set_pt_anything): Set pt_global_mem.
5439         (create_tag_raw): Adjust comment.
5440         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5441
5442 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5443             Maxim Kuvyrkov  <maxim@codesourcery.com>
5444
5445         * config/m68k/m68k.opt (mxgot): New option.
5446         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5447         (m68k_output_addr_const_extra): New.
5448         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5449         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5450         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5451         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5452
5453 2008-06-04  Richard Guenther  <rguenther@suse.de>
5454
5455         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5456         negative or non-representable offsets.
5457
5458 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5459
5460         * config/i386/i386.c (ix86_gen_leave): New.
5461         (ix86_gen_pop1): Likewise.
5462         (ix86_gen_add3): Likewise.
5463         (ix86_gen_sub3): Likewise.
5464         (ix86_gen_sub3_carry): Likewise.
5465         (ix86_gen_one_cmpl2): Likewise.
5466         (ix86_gen_monitor): Likewise.
5467         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5468         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5469         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5470         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5471         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5472         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5473         (ix86_expand_epilogue): Updated.
5474         (print_operand): Handle integer register operand for 'z'.
5475         (ix86_expand_strlensi_unroll_1): Likewise.
5476         (ix86_expand_strlen): Likewise.
5477         (ix86_expand_builtin): Likewise.
5478         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5479         mov{q}/mov{l} and add{q}/add{l}.
5480
5481 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5482
5483         * config/i386/i386.md (P): New mode iterator.
5484         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5485         using P mode iterator.
5486         (DFmode push_operand splitter): Ditto.
5487         (XFmode push_operand splitter): Ditto.
5488         (DFmode float_extend SFmode push_operand splitter): Ditto.
5489         (XFmode float_extend SFmode push_operand splitter): Do not generate
5490         SImode pushes for 64bit target.  Macroize Dimode and SImode
5491         pushes using P mode iterator.
5492         (XFmode float_extend DFmode push_operand splitter): Ditto.
5493
5494 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5495
5496         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5497         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5498         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5499         return type to int.
5500         (ix86_call_abi_override): Remove check for call_used_regs.
5501
5502 2008-06-03  Richard Guenther  <rguenther@suse.de>
5503
5504         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5505         for the lhs of calls if the return type contains pointers.
5506
5507 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5508
5509         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5510         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5511         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5512         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5513         of cfun and DEFAULT_ABI to deceide abi mode.
5514         (DEFAULT_ABI): New.
5515         (REG_PARM_STACK_SPACE): Removed.
5516         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5517         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5518         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5519         (ix86_function_abi): Likewise.
5520         (ix86_function_type_abi): Likewise.
5521         (ix86_call_abi_override): Likewise.
5522         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5523         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5524         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5525         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5526         specific defines.
5527         (X86_64_REGPARM_MAX): New.
5528         (X86_64_SSE_REGPARM_MAX): New.
5529         (X64_REGPARM_MAX): New.
5530         (X64_SSE_REGPARM_MAX): New.
5531         (X86_32_REGPARM_MAX): New.
5532         (X86_32_SSE_REGPARM_MAX): New.
5533         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5534         (ix86_function_regparm): Handle user calling abi.
5535         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5536         by DEFAULT_ABI versus SYSV_ABI check.
5537         (ix86_reg_parm_stack_space): New.
5538         (ix86_function_type_abi): New.
5539         (ix86_call_abi_override): New.
5540         (ix86_function_abi): New.
5541         (ix86_cfun_abi): New.
5542         (init_cumulative_args): Call abi specific initialization.
5543         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5544         (function_arg_64): Extend SSE_REGPARM_MAX check.
5545         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5546         (ix86_pass_by_reference): Likewise.
5547         (ix86_function_value_regno_p): Likewise.
5548         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5549         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5550         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5551         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5552         (setup_incoming_varargs_64): Adjust regparm for call abi.
5553         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5554         (ix86_va_start): Likewise.
5555         (ix86_gimplify_va_arg): Likewise.
5556         (ix86_expand_prologue): Likewise.
5557         (output_pic_addr_const): Likewise.
5558         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5559         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5560         (x86_output_mi_thunk): Likewise.
5561         (x86_function_profiler): Likewise.
5562         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5563         (SYSV_ABI, MS_ABI): New constants.
5564         (DEFAULT_ABI): New.
5565         (init_regs): Add prototype of function in regclass.c file.
5566         (OVERRIDE_ABI_FORMAT): New.
5567         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5568         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5569         (OUTGOING_REG_PARM_STACK_SPACE): New.
5570         (ix86_reg_parm_stack_space): New prototype.
5571         (CUMULATIVE_ARGS): Add call_abi member.
5572         (machine_function): Add call_abi member.
5573         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5574         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5575
5576 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
5577
5578         PR target/34879
5579         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5580         (avr_builtin_setjmp_frame_value): New function.
5581         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5582         (nonlocal_goto): Define.
5583
5584 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5585
5586         * config/mips/mips.c (mips_emit_loadgp): Return early if
5587         there is nothing do to, otherwise emit a blockage if
5588         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5589         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5590
5591 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5592
5593         * configure.ac: Drop unneeded backslash ending up in config.in.
5594         * acinclude.m4: Likewise.
5595         * config.in: Regenerate.
5596
5597 2008-05-26  Jan Hubicka  <jh@suse.cz>
5598
5599         * predict.c (maybe_hot_frequency_p): Break out of...
5600         (maybe_hot_bb_p): ... here.
5601         (maybe_hot_edge_p): New.
5602         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5603         * basic-block.h (maybe_hot_edge_p): Declare.
5604
5605 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5606
5607         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5608         (*cmpfp_<mode>_cc): Ditto.
5609         (*fp_jcc_8<mode>_387): Ditto.
5610         (*fop_<MODEF:mode>_2_i387): Ditto.
5611         (*fop_<MODEF:mode>_3_i387): Ditto.
5612         (*fop_xf_2_i387): Ditto.
5613         (*fop_xf_3_i387): Ditto.
5614
5615 2008-06-02  Tomas Bily  <tbily@suse.cz>
5616
5617         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5618
5619 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5620
5621         * config/mips/mips.c (mips_valid_offset_p): New function.
5622         (mips_valid_lo_sum_p): Likewise.
5623         (mips_classify_address): Use them.
5624         (mips_force_address): New function.
5625         (mips_legitimize_address): Use it.
5626         * config/mips/mips.md (MOVE128): New mode iterator.
5627         (movtf): Require TARGET_64BIT.  Remove empty strings.
5628         (*movtf_internal): Rename to...
5629         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5630         of "R" and use {,fp}{load,store} attributes instead of "multi".
5631         Use a separate define_split.
5632         (*movtf_mips16): New pattern.
5633
5634 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5635
5636         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5637         * config/mips/mips.c (mips_expand_before_return): New function.
5638         (mips_expand_epilogue): Call it.
5639         * config/mips/mips.md (return): Turn into a define_expand.
5640         (*return): New insn.
5641
5642 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5643
5644         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5645         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5646         functions.  Do not emit uses and clobbers of CONCATs; individually
5647         use and clobber their operands.
5648         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5649         gen_clobber, emit_use and gen_use.
5650         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5651         (expand_builtin_return): Likewise.
5652         * cfgbuild.c (count_basic_blocks): Likewise.
5653         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5654         * explow.c (emit_stack_restore): Likewise.
5655         * expmed.c (extract_bit_field_1): Likewise.
5656         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5657         (emit_move_multi_word, store_constructor): Likewise.
5658         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5659         (thread_prologue_and_epilogue_insns): Likewise.
5660         * lower-subreg.c (resolve_simple_move): Likewise.
5661         * optabs.c (widen_operand, expand_binop): Likewise.
5662         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5663         * reload.c (find_reloads): Likewise.
5664         * reload1.c (eliminate_regs_in_insn): Likewise.
5665         * stmt.c (expand_nl_goto_receiver): Likewise.
5666         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5667         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5668         * config/arm/arm.c (arm_load_pic_register): Likewise.
5669         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5670         * config/arm/arm.md (untyped_return): Likewise.
5671         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5672         * config/avr/avr.c (expand_prologue): Likewise.
5673         * config/bfin/bfin.c (do_unlink): Likewise.
5674         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5675         * config/cris/cris.c (cris_expand_prologue): Likewise.
5676         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5677         (machopic_legitimize_pic_address): Likewise.
5678         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5679         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5680         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5681         (ix86_expand_convert_uns_didf_sse): Likewise.
5682         (ix86_expand_vector_init_general): Likewise.
5683         * config/ia64/ia64.md (eh_epilogue): Likewise.
5684         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5685         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5686         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5687         (config/iq2000/iq2000.c): Likewise.
5688         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5689         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5690         (builtin_longjmp): Likewise.
5691         * config/mn10300/mn10300.md (call, call_value): Likewise.
5692         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5693         * config/pdp11/pdp11.md (abshi2): Likewise.
5694         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5695         * config/s390/s390.c (s390_emit_prologue): Likewise.
5696         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5697         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5698         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5699         * config/sh/sh.c (prepare_move_operands): Likewise.
5700         (output_stack_adjust, sh_expand_epilogue): Likewise.
5701         (sh_set_return_address, sh_expand_t_scc): Likewise.
5702         * config/sparc/sparc.c (load_pic_register): Likewise.
5703         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5704         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5705         * config/v850/v850.c (expand_epilogue): Likewise.
5706
5707 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5708
5709         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5710         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5711         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5712         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
5713         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
5714         stack pointer register.
5715         (output_movhi): Remove code for interrupt specific writing to the 
5716         stack pointer register.
5717
5718 2008-05-31  Richard Guenther  <rguenther@suse.de>
5719
5720         PR tree-optimization/34244
5721         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5722         (tree_expr_nonzero_warnv_p): Likewise.
5723         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5724         ssa_name_nonnegative_p.
5725         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5726         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5727         not tree_expr_nonzero_warnv_p.
5728
5729         PR tree-optimization/36262
5730         Revert
5731         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5732
5733         PR tree-optimization/34244
5734         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5735         (record_numbers_of_iterations): New function.
5736         (execute_vrp): Cache the numbers of iterations of loops.
5737         * tree-scalar-evolution.c (scev_reset_except_niters):
5738         New function.
5739         (scev_reset): Use scev_reset_except_niters.
5740         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5741
5742 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5743
5744         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5745         __WORKAROUND_RETS when appropriate.
5746
5747 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5748
5749         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5750         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5751         mode iterator.
5752         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5753         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5754         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5755         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5756         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5757         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5758         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5759         *fop_df_1_sse insn patterns using MODEF mode iterator.
5760         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5761         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5762         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5763         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5764         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5765         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5766         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5767         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5768         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5769         (*fop_xf_5_i387): Ditto.
5770         (*fop_xf_6_i387): Ditto.
5771
5772 2008-05-30  Richard Guenther  <rguenther@suse.de>
5773
5774         * builtins.c (build_string_literal): Avoid generating
5775         a non-gimple_val result.
5776
5777 2008-05-30  DJ Delorie  <dj@redhat.com>
5778
5779         * exec-tool.in: Use an environment variable (private) instead of a
5780         file (shared) as a semaphore, so as to not break parallel builds.
5781
5782 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5783
5784         * optabs.c (maybe_encapsulate_block): Remove.
5785         (emit_libcall_block): Adjust accordingly.
5786         * optabs.h (maybe_encapsulate_block): Remove prototype.
5787
5788         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5789         Don't use maybe_encapsulate_block.
5790
5791 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5792
5793         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5794         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5795         rtx is a SYMBOL_REF before calling get_pool_constant.
5796
5797 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5798
5799         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5800
5801 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5802
5803         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5804         rather than OS names to choose INO_T_EQ definition.
5805         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5806         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5807
5808 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5809
5810         PR target/36348
5811         * config/darwin-f.c: New.
5812         * config/t-darwin: Added rule to build darwin-f.o.
5813         * config.gcc: Defined new variable, fortran_target_objs.
5814         (*-*-darwin*): Set fortran_target_objs.
5815         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5816         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5817         * configure: Regenerated.
5818
5819 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5820
5821         PR target/35771
5822         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5823         canonical type if needed.
5824
5825 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
5826
5827         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5828
5829 2008-05-29  Richard Guenther  <rguenther@suse.de>
5830
5831         PR tree-optimization/36343
5832         PR tree-optimization/36346
5833         PR tree-optimization/36347
5834         * tree-flow.h (clobber_what_p_points_to): Declare.
5835         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5836         pointed-to variable is dereferenced is irrelevant to whether
5837         the pointer can access the pointed-to variable.
5838         (clobber_what_p_points_to): New function.
5839         * tree-ssa-alias.c (set_initial_properties): Use it.
5840         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5841         call clobber check for NMTs.
5842
5843 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5844         
5845         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5846         for printing gcov_type.
5847
5848 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5849
5850         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5851         and the eh region information.
5852         * value-prof.c (gimple_move_stmt_histograms): New function.
5853         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5854
5855 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
5856
5857         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5858
5859 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
5860
5861         * value-prof.c (tree_ic_transform): Print counts.
5862         * tree-profile.c (tree_gen_ic_func_profiler):
5863         Clear __gcov_indreict_call_callee variable to avoid misattribution
5864         of the profile.
5865
5866 2008-05-28  Rafael Espindola  <espindola@google.com>
5867
5868         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5869         invalid sharing.
5870
5871 2008-05-28  Richard Guenther  <rguenther@suse.de>
5872
5873         PR tree-optimization/36339
5874         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5875         and clobbering code out of the loop.
5876
5877 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5878
5879         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5880         letters defined.
5881
5882         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5883         s390_contiguous_bitmask_p, s390_symref_operand_p,
5884         s390_check_symref_alignment, s390_reload_larl_operand,
5885         s390_reload_symref_address): New functions.
5886         (s390_branch_condition_mnemonic): Support compare and branch
5887         instructions.
5888         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5889         and 'W' constraints.
5890         (s390_secondary_reload): Add secondary reloads for unaligned
5891         symbol refs or symbol refs to floating point or QI/TI mode
5892         integer values.
5893         (legitimate_address_p): Accept symbol references as addresses.
5894         (s390_expand_insv): Use rotate and insert selected bits
5895         instruction for insv when building for z10.
5896         (print_operand_address): Handle symbol ref addresses.
5897         (print_operand): Output modifier 'c' added for signed byte values.
5898         (s390_encode_section_info): Mark symbol refs with
5899         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5900
5901         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5902         (length attribute): RRF, RRR have 4 byte length.
5903         (FPALL, INTALL): New mode iterators added.
5904         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5905         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5906         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5907         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5908         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5909         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5910         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5911         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5912         instructions.
5913         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5914         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5915         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5916         reload<INTALL:mode><P:mode>_toreg_z10,
5917         reload<FPALL:mode><P:mode>_tomem_z10,
5918         reload<FPALL:mode><P:mode>_toreg_z10,
5919         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5920         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5921         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5922         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5923         definition.
5924         (movmem, clrmem, cmpmem): New splitters added.
5925
5926         * config/s390/predicates.md (larl_operand): Use
5927         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5928         SYMBOL_REF_ALIGN1_P.
5929         (s390_signed_integer_comparison,
5930         s390_unsigned_integer_comparison): New predicates.
5931
5932         * config/s390/s390-protos.h (s390_check_symref_alignment,
5933         s390_contiguous_bitmask_p, s390_reload_larl_operand,
5934         s390_reload_symref_address,
5935         s390_compare_and_branch_condition_mask): Prototypes added.
5936
5937         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5938         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5939         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5940
5941 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5942
5943         * config/s390/s390.c (z10_cost): New cost function for z10.
5944         (s390_handle_arch_option, override_options): Support -march=z10 switch.
5945         (s390_issue_rate): Adjust issue rate for z10.
5946         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5947         (processor_flags): Add PF_Z10.
5948         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5949         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5950         * gcc/config.gcc: Add z10.
5951
5952 2008-05-28  Richard Guenther  <rguenther@suse.de>
5953
5954         PR tree-optimization/36291
5955         * tree-flow. h (struct gimple_df): Remove var_anns member.
5956         * tree-flow-inline.h (gimple_var_anns): Remove.
5957         (var_ann): Simplify.
5958         * tree-dfa.c (create_var_ann): Simplify.
5959         (remove_referenced_var): Clear alias info from var_anns of globals.
5960         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5961         (delete_tree_ssa): Clear alias info from var_anns of globals.
5962         Do not free var_anns.
5963         (var_ann_eq): Remove.
5964         (var_ann_hash): Likewise.
5965
5966 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
5967
5968         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5969         and loongson2f entries.
5970         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5971         * config/mips/mips.h (processor_type): Add Loongson-2E
5972         and Loongson-2F entries.
5973         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5974         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5975         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5976         * doc/invoke.texi (MIPS Options): Document loongson2e
5977         and loongson2f processor names.
5978
5979 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5980
5981         PR target/35767
5982         PR target/35771
5983         * config/i386/i386.c (ix86_function_arg_boundary): Use
5984         alignment of canonical type.
5985         (ix86_expand_vector_move): Check unaligned memory access for
5986         all SSE modes.
5987
5988 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5989
5990         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5991         Moved to the front of file.
5992
5993 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
5994             H.J. Lu  <hongjiu.lu@intel.com>
5995
5996         * dwarf2out.c (current_fde): New.
5997         (add_cfi): Use it.
5998         (lookup_cfa:): Likewise.
5999         (dwarf2out_end_epilogue): Likewise.
6000         (dwarf2out_note_section_used): Likewise.
6001
6002 2008-05-27  Michael Matz  <matz@suse.de>
6003
6004         PR c++/27975
6005         * c.opt (Wenum-compare): New warning option.
6006         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
6007
6008 2008-05-27  Michael Matz  <matz@suse.de>
6009
6010         PR middle-end/36326
6011         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6012         non-BLKmode types.
6013         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6014         into memory as tail calls.
6015
6016 2008-05-27  Richard Guenther  <rguenther@suse.de>
6017
6018         PR tree-optimization/36339
6019         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6020         pointers cause all addressable variables to be call clobbered.
6021
6022 2008-05-27  Richard Guenther  <rguenther@suse.de>
6023
6024         PR tree-optimization/36245
6025         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6026
6027 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6028
6029         * config/s390/s390.md: Replace all occurences of the 'm'
6030         constraint with 'RT'.
6031
6032 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6033
6034         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6035         definitions added.
6036         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6037         "*movdi_64".
6038         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6039         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6040         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6041
6042 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6043
6044         * reload.c: (find_reloads): Skip alternatives according to the
6045         "enabled" attribute. Constify the constraint variable.
6046         * recog.c (get_attr_enabled): Add default implementation.
6047         (extract_insn): Set the alternative_enabled_p array
6048         in the recog_data struct.
6049         (preprocess_constraints, constrain_operands): Skip
6050         alternatives according to the "enabled" attribute
6051         * recog.h (struct recog_data): New field alternative_enabled_p.
6052         (skip_alternative): New inline function.
6053         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6054         (record_reg_classes): Skip alternative according to the
6055         "enabled" attribute.
6056
6057         * doc/md.texi: Add documention for the "enabled" attribute.
6058
6059 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6060
6061         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6062         * postreload.c (reload_cse_simplify_operands): Replace 'm'
6063         constraint with TARGET_MEM_CONSTRAINT.
6064         * recog.c (asm_operand_ok, preprocess_constraints,
6065         constrain_operands): Likewise.
6066         * regclass.c (record_reg_classes): Likewise.
6067         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6068         * reload1.c (maybe_fix_stack_asms): Likewise.
6069         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6070         * recog.h: Adjust comment.
6071         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6072         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6073         * doc/md.texi: Add a note to description of 'm' constraint.
6074         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6075
6076 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6077
6078         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6079         that the bitfield is of integral type before testing its precision.
6080
6081 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6082             Sa Liu  <saliu@de.ibm.com> 
6083
6084         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
6085         __modti3, __udivti3, __umodti3 and __udivmodti4.
6086         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6087         that implement TImode mul and div functions.
6088         * config/spu/multi3.c: New. Implement __multi3.
6089         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6090         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6091         functions on SPU.
6092
6093 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
6094
6095         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6096         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6097         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6098         tls_sysv_suffix): New mode and mode attribute iterators.
6099         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6100         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6101         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6102         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6103         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6104         iterators.
6105
6106 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6107
6108         PR tree-optimization/36329
6109         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6110         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6111         * cgraphbuild.c (initialize_inline_failed): Use the latter
6112         macro in lieu of the former.
6113         * ipa-inline.c (cgraph_mark_inline): Likewise.
6114         (cgraph_decide_inlining_of_small_function): Likewise.
6115         (cgraph_decide_inlining): Likewise.
6116         (cgraph_decide_inlining_incrementally): Likewise.
6117
6118 2008-05-26  Tristan Gingold  <gingold@adacore.com>
6119             Anatoly Sokolov  <aesok@post.ru>
6120
6121         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6122         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6123         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
6124         optimization for 'avr6' architecture.
6125
6126 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
6127
6128         PR target/34932
6129         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6130
6131 2008-05-26  Richard Guenther  <rguenther@suse.de>
6132
6133         * tree-ssa-sccvn.c (expr_has_constants): Declare.
6134         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6135
6136 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6137
6138         PR middle-end/36253
6139         * caller-save.c (insert_restore): Verify alignment of spill space.
6140         (insert_save): Likewise.
6141         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6142         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6143         (STACK_SLOT_ALIGNMENT): Likewise.
6144         * function.c (LOCAL_ALIGNMENT): Removed.
6145         (get_stack_local_alignment): New.
6146         (assign_stack_local): Use it.  Set alignment on stack slot.
6147         (assign_stack_temp_for_type): Use get_stack_local_alignment.
6148         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6149         (STACK_SLOT_ALIGNMENT): New.
6150         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6151         stack slot in XFmode.
6152
6153         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6154
6155 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6156
6157         PR/36321
6158         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6159         argument operand in rax isn't removed.
6160
6161 2008-05-26  Richard Guenther  <rguenther@suse.de>
6162
6163         PR middle-end/36300
6164         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6165         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6166
6167 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6168
6169         PR bootstrap/36331
6170         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6171
6172 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6173
6174         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6175         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6176
6177 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6178
6179         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6180         build a trampoline if we don't want one.
6181         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6182         return zero for nested functions if we don't want a trampoline.
6183
6184 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6185
6186         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6187
6188 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6189
6190         PR fortran/18428
6191         * c.opt: Removed undocumented option '-lang-fortran'.
6192         * c-common.h: Removed global variable 'lang_fortran'.
6193         * c-opts.c (c_common_handle_option): Removed code to handle
6194         option '-lang-fortran'. Updated includes.
6195         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6196         definition of '__GFORTRAN__'.
6197         (define__GNUC__): Reimplemented to use BASEVER and
6198         cpp_define_formatted.
6199         (builtin_define_with_value_n): Removed.
6200         * c-incpath.h: Renamed to ...
6201         * incpath.h: ... this.
6202         * c-incpath.c: Renamed to ...
6203         * incpath.c: ... this. Updated includes.
6204         * fix-header.c: Updated includes.
6205         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6206         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6207         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6208
6209 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6210
6211         * tree.h: Update the table of flags used on tree nodes.
6212         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6213         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6214         (FORCED_LABEL): Add access check.
6215         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6216         (ASM_INPUT_P): Likewise.
6217         (ASM_VOLATILE_P): Likewise.
6218         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6219         (OMP_SECTION_LAST): Access private_flag directly.
6220         (OMP_RETURN_NOWAIT): Likewise.
6221         (OMP_PARALLEL_COMBINED): Likewise.
6222         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6223         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6224         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6225         deprecated_flag directly.
6226
6227 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6228
6229         * final.c (frame_pointer_needed): Removed.
6230         * flags.h (frame_pointer_needed): Likewise.
6231
6232         * function.h (rtl_data): Add frame_pointer_needed.
6233         (frame_pointer_needed): New.
6234
6235 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6236
6237         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6238
6239 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6240
6241         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6242         SRC is a REG.
6243
6244 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6245
6246         * c-common.c (strip_array_types): Move function to..
6247         * tree.c: ..here.
6248         (get_inner_array_type): Delete.
6249         * c-common.h (strip_array_types): Move declaration to..
6250         * tree.h: ..here.
6251         (get_inner_array_type): Delete.
6252         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6253         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6254         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6255         * config/pa/pa.c (emit_move_sequence): Likewise.
6256
6257 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6258
6259         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6260         attribute to 34.
6261
6262 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6263
6264         * function.c: Include target hook for nonlocal_goto frame value.
6265
6266 2008-05-24  Richard Guenther  <rguenther@suse.de>
6267
6268         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6269         variable can be only accessed through a pointer or a union.
6270
6271 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6272
6273         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6274         * doc/extend.texi: Likewise.
6275
6276 2008-05-23  DJ Delorie  <dj@redhat.com>
6277
6278         * config/m32c/jump.md (untyped_call): Add.
6279
6280         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6281         for A24 to PSImode.
6282         (m32c_address_cost): Detail costs for indirect offsets.
6283
6284 2008-05-23  Rafael Espindola  <espindola@google.com>
6285
6286         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6287         if a node is a SUBREG.
6288         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6289         is a SUBREG.
6290
6291 2008-05-23  Paul Brook  <paul@codesourcery.com>
6292             Carlos O'Donell  <carlos@codesourcery.com>
6293
6294         * doc/extend.texi: Clarify use of __attribute__((naked)).
6295         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6296         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6297         * function.c (use_register_for_decl): Use
6298         targetm.calls.allocate_stack_slots_for_args.
6299         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6300         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6301         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6302
6303 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6304
6305         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6306
6307 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6308
6309         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6310         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6311         is only rounded once.
6312
6313 2008-05-23  Richard Guenther  <rguenther@suse.de>
6314
6315         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6316
6317 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6318             Jakub Jelinek  <jakub@redhat.com>
6319
6320         PR target/36079
6321         * configure.ac: Handle --enable-cld.
6322         * configure: Regenerated.
6323         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6324         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6325         (ix86_current_function_needs_cld): New define.
6326         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6327         (cld): New isns pattern.
6328         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6329         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6330         * config/i386/i386.opt (mcld): New option.
6331         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6332         TARGET_CLD and ix86_current_function_needs_cld.
6333         (override_options): Use -mcld by default for 32-bit code if
6334         USE_IX86_CLD.
6335
6336         * doc/install.texi (Options specification): Document --enable-cld.
6337         * doc/invoke.texi (Machine Dependent Options)
6338         [i386 and x86-64 Options]: Add -mcld option.
6339         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6340
6341 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6342         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6343         (return_in_memory_64): Likewise.
6344         (return_in_memory_ms_64): Likewise.
6345
6346 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6347
6348         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6349         * builtins.c (fold_builtin_fpclassify): New.
6350         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6351         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6352         * c-common.c (handle_type_generic_attribute): Adjust to accept
6353         fixed arguments before an elipsis.
6354         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6355         * doc/extend.texi: Document __builtin_fpclassify.
6356
6357 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6358
6359         * omp-low.c (gate_expand_omp_ssa): Remove.
6360         (pass_expand_omp_ssa): Remove.
6361         (gate_expand_omp): Do not check for flag_openmp_ssa.
6362         * common.opt (-fopenmp-ssa): Remove.
6363         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6364
6365 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6366
6367         * config/sh/sh.opt (mfixed-range): New option.
6368         * config/sh/sh-protos.h (sh_fix_range): Declare.
6369         * config/sh/sh.c (sh_fix_range): New function.
6370         * config/sh/sh.h (sh_fixed_range_str): Declare.
6371         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6372         is not empty.
6373         * doc/invoke.texi (SH Options): Document -mfixed-range.
6374
6375 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6376
6377         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6378         it before the redeclaration.
6379
6380 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6381
6382         * config/avr/avr.c (get_sequence_length): Add new function.
6383         (expand_prologue, expand_epilogue): Remove duplicate code.
6384
6385 2008-05-22  Rafael Espindola  <espindola@google.com>
6386
6387         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6388         sharing.
6389
6390 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6391
6392         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6393         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6394
6395         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6396         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6397         (vect_update_misalignment_for_peel): Likewise.
6398         (vector_alignment_reachable_p): Likewise.
6399         * tree-vect-transform.c (vectorizable_load): Likewise.
6400         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6401         (get_vectype_for_scalar_type): Pass mode of scalar_type
6402         to UNITS_PER_SIMD_WORD.
6403
6404         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6405         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6406         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6407         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6408         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6409
6410 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6411
6412         PR tree-optimization/36293
6413         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6414         if the first load must be skipped because of a gap.
6415
6416 2008-05-22  Richard Guenther  <rguenther@suse.de>
6417
6418         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6419         more cases of offset disambiguation that is possible if
6420         strict-aliasing rules apply.
6421         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6422         for basic offset and type-based disambiguation.
6423
6424 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6425
6426         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6427         ix86_expand_vector_set on V16QImode for SSE4.1.
6428
6429 2008-05-21  Tom Tromey  <tromey@redhat.com>
6430
6431         * c.opt (Wimport): Mark as undocumented.
6432         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6433         -Wno-import.
6434         (Warning Options): Likewise.
6435         * doc/cppopts.texi: Don't mention -Wimport.
6436
6437 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6438
6439         PR tree-optimization/36287
6440         PR tree-optimization/36286
6441         * lambda-code.c (build_access_matrix): Do not use the loop->num
6442         for computing the number of induction variables: use the loop depth
6443         instead.
6444
6445 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6446
6447         PR/36280
6448         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6449         option -f(no-)leading-underscore.
6450
6451 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6452
6453         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6454         GET_MODE_NUNITS (mode).
6455
6456 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6457
6458         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6459         (-mmulhw): Add 464 to description.
6460         (-mdlmzb): Likewise.
6461         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6462         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6463         464fp entries.
6464         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6465         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6466         * config/rs6000/rs6000.md: Update comments for 464.
6467
6468 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6469
6470         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6471
6472 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6473
6474         * config/i386/sse.md (vec_extractv4sf): Removed.
6475         (vec_extractv2df): Likewise.
6476         (vec_extractv2di): Likewise.
6477         (vec_extractv4si): Likewise.
6478         (vec_extractv8hi): Likewise.
6479         (vec_extractv16qi): Likewise.
6480         (vec_extract<mode>): New.
6481
6482 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6483
6484         * config/i386/sse.md (vec_setv4sf): Removed.
6485         (vec_setv2df): Likewise.
6486         (vec_setv2di): Likewise.
6487         (vec_setv4si): Likewise.
6488         (vec_setv8hi): Likewise.
6489         (vec_setv16qi): Likewise.
6490         (vec_set<mode>): New.
6491
6492 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6493
6494         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6495         goto for vec_concat and vec_interleave.
6496
6497 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6498
6499         * config/i386/sse.md (vec_initv4sf): Removed.
6500         (vec_initv2df): Likewise.
6501         (vec_initv2di): Likewise.
6502         (vec_initv4si): Likewise.
6503         (vec_initv8hi): Likewise.
6504         (vec_initv16qi): Likewise.
6505         (vec_init<mode>): New.
6506
6507 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6508
6509         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6510
6511 2008-05-21  Tom Tromey  <tromey@redhat.com>
6512
6513         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6514         (zone_find_object_offset): Likewise.
6515         (gt_ggc_m_S): Likewise.
6516         (highest_bit): Likewise.
6517         * ggc-page.c (gt_ggc_m_S): New function.
6518         * stringpool.c (string_stack): Remove.
6519         (init_stringpool): Update.
6520         (ggc_alloc_string): Use ggc_alloc.
6521         (maybe_delete_ident): New function.
6522         (ggc_purge_stringpool): Likewise.
6523         (gt_ggc_m_S): Remove.
6524         * ggc-common.c (ggc_protect_identifiers): New global.
6525         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6526         ggc_protect_identifiers.
6527         * ggc.h (ggc_protect_identifiers): Declare.
6528         (gt_ggc_m_S): Update.
6529         (ggc_purge_stringpool): Declare.
6530         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6531         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6532         special case.
6533         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6534
6535 2008-05-21  David S. Miller  <davem@davemloft.net>
6536
6537         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6538         tmake_file.
6539
6540 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6541
6542         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6543         once finished.
6544
6545 2008-05-20  David Daney  <ddaney@avtrex.com>
6546
6547         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6548         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6549         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6550         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6551         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6552         (atomic_hiqi_op): New define_code_iterator.
6553         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6554         mips_expand_compare_and_swap_12.
6555         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6556         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6557         (sync_<optab><mode>, sync_old_<optab><mode>,
6558         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6559         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6560         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6561         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6562         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6563         (test_and_set_12): New insn.
6564         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6565         sync_new_<optab><mode>, sync_old_nand<mode>,
6566         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6567         clobber to operand 0 for SI and DI mode insns.
6568         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6569         mips_gen_fn_4): New typedefs.
6570         (mips_gen_fn_ptrs): Define new union type.
6571         (mips_expand_compare_and_swap_12): Remove declaration.
6572         (mips_expand_atomic_qihi): Declare function.
6573         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6574         (mips_expand_atomic_qihi): ... this.  Use new generator function
6575         parameter.
6576         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6577         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6578         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6579         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6580         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6581         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6582         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6583         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6584         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6585         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6586         New macros.
6587
6588 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6589
6590         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6591         the missing break.
6592
6593 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6594
6595         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6596         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6597         (avr_attribute_table): Add 'OS_main' function attribute.
6598         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6599         functions with 'OS_main' attribute.
6600
6601 2008-05-20  Richard Guenther  <rguenther@suse.de>
6602
6603         PR tree-optimization/35204
6604         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6605         helper, split out from ...
6606         (DFS): ... here.  Make the DFS walk non-recursive.
6607
6608 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6609             Jan Sjodin  <jan.sjodin@amd.com>
6610
6611         PR tree-optimization/36181
6612         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6613         (parallelize_loops): Don't parallelize when the loop has vector
6614         phi nodes.
6615
6616 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6617             Sebastian Pop  <sebastian.pop@amd.com>
6618
6619         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6620         matrix, and never look at the tree representation of the memory
6621         accesses.
6622         (linear_transform_loops): Computes parameters and access matrices.
6623         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6624         when fails.
6625         (access_matrix_get_index_for_parameter): New.
6626         * tree-data-ref.h (struct access_matrix): New.
6627         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6628         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6629         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6630         am_vector_index_for_loop): New.
6631         (struct data_reference): Add field access_matrix.
6632         (DR_ACCESS_MATRIX): New.
6633         (compute_data_dependences_for_loop): Update declaration.
6634         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6635         * lambda.h (lambda_vector_vec_p): Declared.
6636         * lambda-code.c: Depend on pointer-set.h.
6637         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6638         av_for_af_base, av_for_af, build_access_matrix,
6639         lambda_compute_access_matrices): New.
6640         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6641
6642 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6643
6644         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6645         $SOURCEDIR/include.
6646
6647 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6648             Sebastian Pop  <sebastian.pop@amd.com>
6649
6650         PR tree-optimization/36206
6651         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6652         FOLD_CONVERSIONS.
6653         (instantiate_scev_1): Rename flags to fold_conversions.
6654         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6655         outeside instantiation_loop.
6656         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6657         (evolution_function_is_affine_or_constant_p): Removed.
6658         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6659         instantiate_scev.
6660         (analyze_siv_subscript): Pass in the loop nest number.
6661         Call evolution_function_is_affine_in_loop instead of 
6662         evolution_function_is_affine_p.
6663         (analyze_overlapping_iterations): Pass in the loop nest number.
6664
6665 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6666             Sebastian Pop  <sebastian.pop@amd.com>
6667
6668         PR tree-optimization/36206
6669         * tree-chrec.h (chrec_fold_op): New.
6670         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6671         and other trees.
6672
6673 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6674
6675         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6676         (DIRS_EQ): New.
6677         (remove_duplicates): Do not set inode on non-inode systems.
6678         Use DIRS_EQ.
6679
6680 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6681
6682         * config.gcc (tm_file): Update comments about relative pathnames.
6683
6684 2008-05-20  Richard Guenther  <rguenther@suse.de>
6685
6686         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6687         * tree-ssa-sccvn.c (process_scc): Likewise.
6688         * tree-ssa-sink.c (execute_sink_code): Likewise.
6689         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6690         * tree-vrp.c (process_assert_insertions): Likewise.
6691         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6692         (perform_tree_ssa_dce): Likewise.
6693         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6694         (dump_dominator_optimization_stats): Likewise.
6695         * tree-vectorizer.c (vectorize_loops): Likewise.
6696
6697 2008-05-20  Richard Guenther  <rguenther@suse.de>
6698
6699         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6700
6701 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6702
6703         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6704         (ix86_i386elf_return_in_memory): Likewise.
6705         (ix86_i386interix_return_in_memory): Likewise.
6706         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6707         (SUBTARGET_RETURN_IN_MEMORY): New.
6708         * config/i386/i386elf.h: Likewise.
6709         * config/i386/ptx4-i.h: Likewise.
6710         * config/i386/sol2-10.h: Likewise.
6711         * config/i386/sysv4.h: Likewise.
6712         * config/i386/vx-common.h: Likewise.
6713         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6714         * config/i386/i386.c (ix86_return_in_memory): Made static and
6715         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6716         (ix86_i386elf_return_in_memory): Removed.
6717         (ix86_i386interix_return_in_memory): Removed.
6718         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6719         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6720
6721 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6722
6723         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6724
6725 2008-05-19  Xinliang David Li  <davidxl@google.com>
6726
6727         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
6728         * opts.c: Ditto.
6729         * common.opt: Ditto.
6730         * doc/invoke.texi: Ditto.
6731
6732 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6733
6734         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6735         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6736
6737 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6738
6739         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6740         sizes of operand array from 8/4 to 4/2.
6741         (ix86_expand_vector_init_general): Change size of operand array
6742         from 32 to 16.  Remove op0, op1 and half_mode.
6743
6744 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6745
6746         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6747         (ix86_expand_vector_init_interleave): Likewise.
6748         (ix86_expand_vector_init_general): Use them.  Assert
6749         word_mode == SImode when n_words == 4.
6750
6751 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6752
6753         * config/i386/i386.c (ix86_secondary_reload): New static function.
6754         (TARGET_SECONDARY_RELOAD): New define.
6755         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6756         * config/i386/i386.md (reload_outqi): Remove.
6757
6758 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6759
6760         PR middle-end/35509
6761         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6762         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6763         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6764         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6765         (fold_builtin_1): Likewise.
6766         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6767         c-common.c (check_builtin_function_arguments): Handle
6768         BUILT_IN_ISINF_SIGN.
6769         * doc/extend.texi: Document __builtin_isinf_sign.
6770         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6771
6772 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6773
6774         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6775         EH cleanup at the end of the pass, search for those that have been
6776         turned into forwarder blocks and do the cleanup on their successor.
6777
6778 2008-05-18  Richard Guenther  <rguenther@suse.de>
6779
6780         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6781         pointers to sizetype and vice versa.
6782
6783 2008-05-18 Xinliang David Li   <davidxl@google.com>
6784
6785         * gcc/tree-ssa-dce.c: Coding style fix.
6786         (check_pow): Documentation comment. 
6787         (check_log): Documenation comment. Coding style fix.
6788         (is_unnecessary_except_errno_call): Ditto.
6789         (gen_conditions_for_pow): Ditto.
6790         (gen_conditions_for_log): Ditto.
6791         (gen_shrink_wrap_conditions): Ditto.
6792         (shrink_wrap_one_built_in_calls): Ditto.
6793         * gcc/doc/invoke.texi: Better documentation string.
6794         * ChangeLog: Fix wrong change log entries from 
6795         May 17 checkin on function call DCE.
6796
6797 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6798
6799         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6800
6801 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6802
6803         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6804         * df-problems.c (simulation routines): Fixed block comment to
6805         properly say how to add forwards scanning functions.
6806         
6807 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6808
6809         * tree-inline.c (setup_one_parameter): Remove dead code.
6810
6811 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6812
6813         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6814         a BIT_AND_EXPR only for an INTEGER_TYPE.
6815
6816 2008-05-17 Xinliang David Li   <davidxl@google.com>
6817
6818         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6819         (check_pow, check_log, is_unnecessary_except_errno_call): New 
6820         functions to check for eliminating math functions that are pure 
6821         except for setting errno.
6822         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6823         general condition expressions for shrink-wrapping pow/log calls.
6824         (gen_shrink_wrap_conditions): Ditto.
6825         (shrink_wrap_one_built_in_call): Ditto.
6826         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6827         (mark_operand_necessary): If debugging, output if OP is necessary.
6828         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6829         unnecessary.
6830         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6831         opt level >= 2.
6832         * gcc/common.opt: New user flag -ftree-builtin-dce.
6833         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6834
6835 2008-05-16  David S. Miller  <davem@davemloft.net>
6836
6837         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6838         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6839
6840 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
6841
6842         PR target/36246
6843         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6844
6845 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6846
6847         * ifcvt.c (dead_or_predicable): Rename
6848         df_simulate_one_insn_backwards to df_simulate_one_insn.
6849         * recog.c (peephole2_optimize): Ditto.
6850         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6851         Ditto.
6852         * df.h: Rename df_simulate_one_insn_backwards to
6853         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
6854         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6855         scanning of defs and uses.
6856         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6857         (df_simulate_one_insn_forwards): Removed.
6858
6859 2008-05-16  Doug Kwan  <dougkwan@google.com>
6860
6861         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6862         QNaN & SNaN.
6863         (real_from_string): Handle NaNs and Inf as approriate.
6864
6865 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6866
6867         * doc/gty.texi (Source Files Containing Type Information): Note
6868         that headers should appear first in the gtfiles list.
6869
6870 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6871
6872         * tree.def (COND_EXEC): Properly documented this code.
6873
6874 2008-05-16  Diego Novillo  <dnovillo@google.com>
6875
6876         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6877         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6878         the new field.
6879
6880 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6881
6882         * tree-ssa-dse (max_stmt_uid): Removed.
6883         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
6884         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6885         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6886         * function.h (cfun.last_stmt_uid): New field.
6887         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6888         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6889         New functions.
6890         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6891         (create_stmt_ann): Initialize the ann->uid field.
6892         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6893         with new calls.
6894         * tree-flow.h (renumber_gimple_stmt_uids): New function.
6895
6896 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6897
6898         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6899         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6900         (init_empty_tree_cfg): Call it.
6901
6902 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6903
6904         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
6905         Update all users.
6906
6907 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6908
6909         * doc/invoke.text (-fdump-tree-*-verbose): New option.
6910         * tree-dump.c (dump_options): New verbose option.
6911         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6912         Add verbose dump.
6913         * tree-pass.h (TDF_VERBOSE): New dump flag.
6914         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6915         (tree-flow.h): Added include.
6916         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
6917
6918 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
6919
6920         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6921
6922         From Jie Zhang  <jie.zhang@analog.com>
6923         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6924         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6925         mcpu=bf561-none and mcpu=bf561-0.2.
6926         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6927         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6928         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6929         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6930         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6931         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6932         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
6933         option.
6934         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6935         (cputype_selected): Remove.
6936         (bfin_handle_option): Don't use cputype_selected.
6937         (override_options): When no mcpu option, enable all workarounds.
6938         Don't use bfin_workarounds.
6939         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6940         processor type.
6941         (DEFAULT_CPU_TYPE): Don't define.
6942
6943 2008-05-16  Richard Guenther  <rguenther@suse.de>
6944
6945         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6946         on deletion of the last stmt.
6947
6948 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6949
6950         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6951         V8HImode for SSE2 and V16QImode for SSE4.1.
6952
6953 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6954
6955         * cgraph.h (compute_inline_parameters): Made public.
6956         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6957         variable_generate_summary, function_write_summary,
6958         variable_write_summary, variable_read_summary.  Added generate_summary,
6959         write_summary, read_summary.
6960         * cgraphunit.c (cgraph_process_new_functions): Changed call from
6961         pass_ipa_inline.function_generate_summary, to
6962         compute_inline_parameters. 
6963         * ipa-inline.c (compute_inline_parameters): Made public and added
6964         node parameter.
6965         (compute_inline_parameters_for_current): New function.
6966         (pass_inline_param): Now calls compute_inline_parameters_for_current.
6967         (inline_generate_summary): Removed parameter and made to loop over
6968         all cgraph nodes.
6969         (pass_ipa_inline): Updated for new IPA_PASS structure.
6970         * passes.c (execute_ipa_summary_passes): Now is called once per
6971         pass rather than once per node*pass.
6972         
6973 2008-05-15  Anatoly Sokolov <aesok@post.ru>
6974
6975         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
6976         avr_have_mul_p, avr_asm_only_p): Remove variables.
6977         (avr_override_options): Remove initialization of removed variables.
6978         (avr_file_start):  Convert removed variables to fields of 
6979         'struct base_arch_s *avr_current_arch'. 
6980         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6981         (AVR_HAVE_MUL): (Ditto.).
6982         (AVR_HAVE_MOVW): (Ditto.).
6983         (AVR_HAVE_LPMX): (Ditto.). 
6984         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
6985         avr_asm_only_p): Remove declaration.
6986
6987 2008-05-15  Diego Novillo  <dnovillo@google.com>
6988
6989         * config/arm/arm.c (arm_return_in_memory): Fix return type.
6990         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6991
6992 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
6993
6994         PR middle-end/36194
6995         * combine.c (check_conversion): Rename back to check_promoted_subreg.
6996         Don't call record_truncated_value from here.
6997         (record_truncated_value): Turn it into a for_each_rtx callback.
6998         (record_truncated_values): New function.
6999         (combine_instructions): Call note_uses with record_truncated_values.
7000         Change name of check_conversion to check_promoted_subreg. 
7001
7002 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
7003
7004         * doc/sourcebuild.texi: Document support for torture tests.
7005
7006 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7007
7008         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7009         to alternative 4 of operand 2.
7010
7011 2008-05-15  Richard Guenther  <rguenther@suse.de>
7012
7013         * tree-pass.h (current_pass): Declare.
7014         (get_pass_for_id): Likewise.
7015         * passes.c (passes_by_id, passes_by_id_size): New globals.
7016         (set_pass_for_id): New function.
7017         (get_pass_for_id): Likewise.
7018         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7019         (execute_function_todo): Flush per function statistics.
7020         * toplev.c (compile_file): Init statistics.
7021         (general_init): Do early statistics initialization.
7022         (finalize): Finish statistics.
7023         * statistics.h (statistics_early_init): Declare.
7024         (statistics_init): Likewise.
7025         (statistics_fini): Likewise.
7026         (statistics_fini_pass): Likewise.
7027         (statistics_counter_event): Likewise.
7028         (statistics_histogram_event): Likewise.
7029         * statistics.c: New file.
7030         * Makefile.in (OBJS-common): Add statistics.o.
7031         (statistics.o): Add dependencies.
7032         * doc/invoke.texi (-fdump-statistics): Document.
7033
7034         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7035         (insert): Likewise.
7036         (execute_pre): Use statistics_counter_event.
7037         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7038         (substitute_and_fold): Increment it.  Use statistics_counter_event.
7039
7040 2008-05-15  Diego Novillo  <dnovillo@google.com>
7041
7042         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7043
7044         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7045         * tree-ssa-alias.c (new_type_alias): Remove references to
7046         sub-variables from comment.
7047         * tree-ssa-operands.c (swap_tree_operands): Likewise.
7048
7049 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7050
7051         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7052         attribute to 1 only for insertps alternative.
7053
7054 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7055
7056         * config/bfin/bfin.md (loadbytes): New pattern.
7057         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7058         (bfin_init_builtins): Initialize it.
7059         (bdesc_1arg): Add it.
7060
7061 2008-05-15  Sa Liu  <saliu@de.ibm.com>
7062
7063         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7064         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7065         * testsuite/lib/target-supports.exp: Add
7066         check_effective_target_fortran_integer_16.
7067
7068 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7069
7070         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7071         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7072         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
7073         (TARGET_RETURN_IN_MEMORY): Define.
7074
7075 2008-05-15  Richard Guenther  <rguenther@suse.de>
7076
7077         PR middle-end/36244
7078         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7079         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7080         represent unmodifiable vars.
7081
7082 2008-05-15  Richard Guenther  <rguenther@suse.de>
7083
7084         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7085         INDIRECT_REF and TARGET_MEM_REF.
7086         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7087         TARGET_MEM_REF.
7088
7089 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7090             H.J. Lu  <hongjiu.lu@intel.com>
7091
7092         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7093         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7094         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
7095         insn alternatives.  Add missing alternatives.
7096         (*vec_concatv2di_rex64_sse4_1): Likewise.
7097         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7098         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7099         Require TARGET_SSE.
7100
7101 2008-05-15  Richard Guenther  <rguenther@suse.de>
7102
7103         PR tree-optimization/36009
7104         PR tree-optimization/36204
7105         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7106         (determine_invariantness_stmt): Record the loop a store is
7107         always executed in.
7108         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7109         dependency.
7110
7111 2008-05-15  Richard Guenther  <rguenther@suse.de>
7112
7113         PR tree-optimization/34330
7114         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7115         through the pointer will alias the SMT.
7116
7117 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
7118
7119         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7120
7121 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7122
7123         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7124
7125 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7126             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7127
7128         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7129         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7130         (vashl_optab): New optab for vector/vector shifts.
7131         (vashr_optab): Ditto.
7132         (vlshr_optab): Ditto.
7133         (vrotl_optab): Ditto.
7134         (vrotr_optab): Ditto.
7135         (optab_subtype): New enum for optab_for_tree_code call.
7136         (optab_for_tree_code): Add enum optab_subtype argument.
7137
7138         * optabs.c (optab_for_tree_code): Take an additional argument to
7139         distinguish between a vector shift by a scalar and vector shift by
7140         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
7141         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
7142         vector shift by a vector.
7143         (expand_widen_pattern_expr): Pass additional argument to
7144         optab_for_tree_code.
7145
7146         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7147         vrotl_optab, vrotr_optab.
7148
7149         * expr.c (expand_expr_real_1): Update calls to
7150         optab_for_tree_code to distinguish between vector shifted by a
7151         scalar and vector shifted by a vector.
7152         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7153         (supportable_narrowing_operation): Ditto.
7154         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7155         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7156         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7157         (vect_create_epilog_for_reduction): Ditto.
7158         (vectorizable_reduction): Ditto.
7159         (vectorizable_operation): Ditto.
7160         (vect_strided_store_supported): Ditto.
7161         (vect_strided_load_supported): Ditto.
7162         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7163         * expmed.c (expand_shift): Ditto.
7164
7165         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7166         scalar type.
7167         (ashr@var{m}3): Ditto.
7168         (vashl@var{m}3): Document new vector/vector shift standard name.
7169         (vashr@var{m}3): Ditto.
7170         (vlshr@var{m}3): Ditto.
7171         (vrotl@var{m}3): Ditto.
7172         (vrotr@var{m}3): Ditto.
7173
7174         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7175         (PPERM_INVERT): Ditto.
7176         (PPERM_REVERSE): Ditto.
7177         (PPERM_REV_INV): Ditto.
7178         (PPERM_ZERO): Ditto.
7179         (PPERM_ONES): Ditto.
7180         (PPERM_SIGN): Ditto.
7181         (PPERM_INV_SIGN): Ditto.
7182         (PPERM_SRC1): Ditto.
7183         (PPERM_SRC2): Ditto.
7184
7185         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7186         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7187         allows a memory operand to be the value being added, and split it
7188         to improve vectorization.
7189         (sse5_pmacsdqh_mem): Ditto.
7190         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7191         (sse5_mulv2div2di3_high): Ditto.
7192         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7193         (vec_pack_trunc_v4si): Ditto.
7194         (vec_pack_trunc_v2di): Ditto.
7195         (sse5_pcmov_<mode>): Remove code that tried to use use
7196         andps/andnps instead of pcmov.
7197         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7198         pmacsdqh instructions.
7199         (vec_widen_smult_lo_v4si): Ditto.
7200
7201         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7202         (PPERM_INVERT): Ditto.
7203         (PPERM_REVERSE): Ditto.
7204         (PPERM_REV_INV): Ditto.
7205         (PPERM_ZERO): Ditto.
7206         (PPERM_ONES): Ditto.
7207         (PPERM_SIGN): Ditto.
7208         (PPERM_INV_SIGN): Ditto.
7209         (PPERM_SRC1): Ditto.
7210         (PPERM_SRC2): Ditto.
7211         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7212         true/false tests.
7213         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7214         comparisons.
7215         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7216         says ignore whether the last reference is a memory operand.
7217
7218 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7219             Paolo Bonzini <bonzini at gnu dot org>
7220
7221         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7222         shift patterns.
7223
7224         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7225         (vlshr<mode>3): Rename from vlshr<mode>3.
7226         (vashr<mode>3): Rename from vashr<mode>3.
7227         (mulv4sf3): Change the names of vector shift patterns.
7228         (mulv4si3): Ditto.
7229         (negv4sf2): Ditt.
7230
7231         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7232         shift insns.
7233
7234         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7235         (SI_SHLHI): Ditto.
7236         (SI_SHL): Ditto.
7237         (SI_SHLI): Ditto.
7238         (SI_ROTH): Ditto.
7239         (SI_ROTHI): Ditto.
7240         (SI_ROT): Ditto.
7241         (SI_ROTI): Ditto.
7242         (SPU_RL_0): Ditto.
7243         (SPU_RL_1): Ditto.
7244         (SPU_RL_2): Ditto.
7245         (SPU_RL_3): Ditto.
7246         (SPU_RL_4): Ditto.
7247         (SPU_RL_5): Ditto.
7248         (SPU_RL_6): Ditto.
7249         (SPU_RL_7): Ditto.
7250         (SPU_SL_0): Ditto.
7251         (SPU_SL_1): Ditto.
7252         (SPU_SL_2): Ditto.
7253         (SPU_SL_3): Ditto.
7254         (SPU_SL_4): Ditto.
7255         (SPU_SL_5): Ditto.
7256         (SPU_SL_6): Ditto.
7257         (SPU_SL_7): Ditto.
7258
7259         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7260         (floatunssidf2_internal): Change vector/vector shift names.
7261         (floatunsdidf2_internal): Ditto.
7262         (mulv8hi3): Ditto.
7263         (ashrdi3): Ditto.
7264         (ashrti3): Ditto.
7265         (cgt_df): Ditto.
7266         (cgt_v2df): Ditto.
7267         (dftsv): Ditto.
7268         (vashl<mode>3): Rename from ashl<mode>3.
7269         (vashr<mode>3): Rename from ashr<mode>3.
7270         (vlshr<mode>3): Rename from lshr<mode>3.
7271         (vrotl<mode>3): Rename from rotl<mode>3.
7272
7273 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7274
7275         PR target/36224
7276         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7277         multiply gives the wrong value when doing widening multiplies.
7278         (vec_widen_smult_lo_v4si): Ditto.
7279
7280 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7281
7282         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7283         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7284         emit_library_call_value. 
7285         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7286         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7287         * calls.c (initialize_argument_information, precompute_arguments, 
7288         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7289         (precompute_arguments): Removed flags parameter.
7290         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7291         
7292 2008-05-14  Richard Guenther  <rguenther@suse.de>
7293
7294         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7295         Make sure to register the store if the use is a PHI_NODE.
7296
7297 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7298
7299         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7300         memory if the component is to be referenced in BLKmode according
7301         to get_inner_reference.
7302
7303 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7304
7305         * calls.c (emit_library_call_value_1): Restore code clearing
7306         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7307
7308 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7309             Nicolas Roche  <roche@adacore.com>
7310
7311         * configure.ac: Add support for a "gcc_subdir" variable in
7312         config-lang.in, to denote a subdirectory where the language/GCC
7313         integration files are to be found.
7314         * configure: Regenerate.
7315
7316 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7317
7318         PR tree-optimization/36098
7319         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7320         value for the first load in the group in case of a gap.
7321         (vect_build_slp_tree): Check that there are no gaps in loads.
7322
7323 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7324
7325         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7326         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7327         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7328         emit_insn and remove unneeded code to construct extra args.
7329         (emit_no_conflict_block): Removed.
7330         * optabls.h: (emit_no_conflict_block): Removed.
7331         * cse.c (cse_extended_basic_block): Remove search for
7332         REG_NO_CONFLICT note.
7333         * global.c: Removed incorrect comment added in revision 117.
7334         * expr.c (convert_move): Change call to emit_no_conflict_block to
7335         emit_insn.
7336         * recog.c: Change comments so that they do not mention
7337         REG_NO_CONFLICT.
7338         * local_alloc.c (combine_regs): Removed last parameter.
7339         (no_conflict_p): Removed.
7340         (block_alloc): Removed note, no_conflict_combined_regno and set
7341         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7342         (combine_regs): Removed already_dead and code to look for
7343         REG_NO_CONFLICT notes.
7344         * lower_subreg (remove_retval_note): Removed code to look for
7345         REG_NO_CONFLICT block.
7346         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7347         (resolve_clobber): Remove code to process libcalls that have
7348         REG_NO_CONFLICT notes.
7349         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7350         case.
7351         * combine.c (can_combine_p, distribute_notes):  Removed
7352         REG_NO_CONFLICT case.
7353         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7354         to emit_insns.
7355         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7356         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7357         Ditto.
7358         * reg-notes.def (NO_CONFLICT): Removed.
7359
7360 2008-05-14  David S. Miller  <davem@davemloft.net>
7361
7362         * config/sparc/sparc.c (sparc_profile_hook): If
7363         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7364         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7365         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7366
7367 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7368
7369         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7370
7371 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7372
7373         PR target/36222
7374         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7375         and op1 expansion before vector concat to have less live pseudos.
7376
7377 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7378
7379         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7380         ix86_expand_vector_set if supported.
7381
7382 2008-05-13  Diego Novillo  <dnovillo@google.com>
7383             Kenneth Zadeck  <zadeck@naturalbridge.com>
7384
7385         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7386
7387         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7388         phinodes_print_statistics, init_ssanames, fini_ssanames,
7389         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7390         release_ssa_name, release_defs, replace_ssa_name_symbol,
7391         ssanames_print_statistics): Move ...
7392         * tree-flow.h: ... here.
7393         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7394         Use FN instead of cfun.
7395         (make_ssa_name_fn): Rename from make_ssa_name.
7396         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7397         * tree-flow-inline.h (make_ssa_name): Move from
7398         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7399         * omp-low.c (expand_omp_parallel):
7400         * tree-flow-inline.h (redirect_edge_var_map_result):
7401         * tree-ssa.c (init_tree_ssa): Add argument FN.
7402         Use it instead of cfun.  Update all users.
7403
7404 2008-05-13  Tom Tromey  <tromey@redhat.com>
7405
7406         PR preprocessor/22168:
7407         * doc/cpp.texi (Top): Update menu.
7408         (Alternatives to Wrapper #ifndef): New node.
7409         (Other Directives): Document deprecation.
7410         (Obsolete Features): Remove menu.
7411         (Assertions): Merge node into Obsolete Features.
7412         (Obsolete once-only headers): Move earlier; rename to Alternatives
7413         to Wrapper #ifndef.
7414         * doc/cppopts.texi: Update.
7415         * c.opt (Wdeprecated): Enable for C and ObjC.
7416         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7417         (C++ Dialect Options): Move -Wno-deprecated from here to...
7418         (Warning Options): ... here.
7419
7420 2008-05-13  Richard Guenther  <rguenther@suse.de>
7421
7422         PR middle-end/36227
7423         * fold-const.c (fold_sign_changed_comparison): Do not allow
7424         changes in pointer-ness.
7425
7426 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7427
7428         PR target/24713
7429         * config/sh/sh.c (sh_expand_prologue): Don't clear
7430         RTX_FRAME_RELATED_P for push insns.
7431
7432 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7433
7434         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7435
7436 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7437
7438         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7439         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7440         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7441
7442 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7443
7444         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7445         (*vec_concatv4sf_sse): This.
7446         (*sse2_concatv2si): Renamed to ...
7447         (*vec_concatv2si_sse2): This.
7448         (*sse1_concatv2si): Renamed to ...
7449         (*vec_concatv2si_sse): This.
7450         (*vec_concatv2di_rex): Renamed to ...
7451         (*vec_concatv2di_rex64): This.
7452         (*vec_concatv2si_sse4_1): New.
7453         (*vec_concatv2di_rex64_sse4_1): Likewise.
7454
7455 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7456
7457         PR rtl-optimization/36111
7458         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7459         that was created for swappable operands.
7460
7461 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7462
7463         PR ada/36001
7464         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7465         * configure.ac: Add call to ACX_PROG_GNAT.
7466
7467 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7468
7469         * optc-gen.awk: Fix comment typo.
7470
7471 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7472
7473         * pretty-print.c (pp_integer_with_precision): Use
7474         HOST_LONG_LONG_FORMAT.
7475
7476 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7477
7478         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7479                 
7480 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7481
7482         * config/i386/i386.c (bdesc_ptest): Removed.
7483         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7484         (bdesc_args): Add __builtin_ia32_ptestz128,
7485         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7486         (ix86_init_mmx_sse_builtins): Updated.
7487         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7488         (ix86_expand_builtin): Updated.
7489
7490 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7491
7492         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7493         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7494
7495 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7496
7497         * value-prof.c (interesting_stringop_to_profile): Do not
7498         return early for BUILT_IN_MEMPCPY.
7499
7500 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7501
7502         * calls.c (expand_call): Don't use callgraph to increase
7503         preferred_stack_boundary.
7504
7505         * cgraph.h (cgraph_rtl_info): Use unsigned on
7506         preferred_incoming_stack_boundary.
7507
7508         * final.c (rest_of_clean_state): Use unsigned on
7509         preferred_stack_boundary.
7510
7511 2008-05-09  Tom Tromey  <tromey@redhat.com>
7512
7513         PR preprocessor/22231:
7514         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7515         proceeding.
7516
7517 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7518
7519         PR tree-optimization/36129
7520         * tree-ssa-ccp.c: Include value-prof.h.
7521         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7522         built-in function was folded to a constant.
7523         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7524
7525 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7526             Sebastian Pop  <sebastian.pop@amd.com>
7527
7528         * tree-scalar-evolution.c: Document instantiate_scev.
7529         (instantiate_parameters_1): Renamed instantiate_scev_1.
7530         Don't use the same loop for instantiation_loop and evolution_loop.
7531         (instantiate_scev): New.
7532         (instantiate_parameters): Moved...
7533         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7534         same loop twice.  Maintains the semantics for this function.
7535         * tree-scalar-evolution.h (instantiate_scev): Declare.
7536         (instantiate_parameters): ...here.  Now static inline.
7537         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7538         instead of resolve_mixers.
7539
7540 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7541
7542         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7543
7544 2008-05-09  Tomas Bily  <tbily@suse.cz>
7545
7546         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7547         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7548         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7549         * c-common.c (c_common_truthvalue_conversion): Likewise.
7550         * tree-object-size.c (compute_object_offset): Likewise.
7551         * tree-inline.c (estimate_num_insns_1): Likewise.
7552         * varasm.c (const_hash_1, compare_constant, copy_constant)
7553         (compute_reloc_for_constant, output_addressed_constants)
7554         (initializer_constant_valid_p): Likewise.
7555         * c-omp.c (check_omp_for_incr_expr): Likewise.
7556         * gimplify.c (gimplify_expr): Likewise.
7557         * c-typeck.c (c_finish_return): Likewise.
7558         * tree-vectorizer.c (supportable_widening_operation)
7559         (supportable_narrowing_operation): Likewise.
7560         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7561         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7562         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7563         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7564         (descr_info_loc): Likewise.
7565         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7566         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7567         (fold_unary): Likewise.
7568         * builtins.c (get_pointer_alignment): Likewise.
7569         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7570         (instantiate_parameters_1): Likewise.
7571         * tree.c (expr_align, stabilize_reference): Likewise.
7572         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7573         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7574         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7575         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7576         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7577         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7578         Likewise.
7579         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7580         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7581         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7582         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7583         (forward_propagate_comparison)
7584         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7585         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7586         * emit-rtl.c (component_ref_for_mem_expr)
7587         (set_mem_attributes_minus_bitpos): Likewise.
7588         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7589         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7590         Likewise.
7591         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7592         (build_function_call, pointer_diff, build_compound_expr)
7593         (c_finish_return): Likewise.
7594         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7595         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7596         Likewise.
7597         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7598         * expr.c (is_aligning_offset): Likewise.
7599         * tree-ssa-alias.c (is_escape_site): Likewise.
7600         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7601         (check_all_va_list_escapes): Likewise.
7602         * tree-ssa-loop-ivopts.c (determine_base_object)
7603         (determine_common_wider_type): Likewise.
7604         * dojump.c (do_jump): Likewise.
7605         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7606         * tree-gimple.c (is_gimple_cast): Likewise.
7607         * fold-const.c (decode_field_reference, )
7608         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7609         (fold_binary): Likewise.
7610         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7611         (already_warned_in_frontend_p): Likewise.
7612         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7613         * tree.c (really_constant_p, get_unwidened): Likewise.
7614         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7615         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7616         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7617         Likewise.
7618         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7619         CONVERT_EXPR_P.
7620         (CONVERT_EXPR_P): Define.
7621         (CASE_CONVERT): Define.
7622         
7623 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7624
7625         PR middle-end/36117
7626         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7627         (delete_unmarked_insns): When deleting a call, call
7628         delete_unreachable_blocks.
7629         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7630         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7631
7632 2008-05-08  Richard Guenther  <rguenther@suse.de>
7633
7634         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7635         (-ftree-salias): Likewise.
7636         (salias-max-implicit-fields): Remove param documentation.
7637         (salias-max-array-elements): Likewise.
7638         * tree-pass.h (pass_create_structure_vars): Remove.
7639         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7640         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7641         * tree-ssa-alias.c (create_structure_vars): Remove.
7642         (gate_structure_vars): Likewise.
7643         (pass_create_structure_vars): Likewise.
7644         (gate_build_alias): Likewise.
7645         (pass_build_alias): Adjust to run always and dump the function.
7646         * common.opt (ftree-salias): Hide.
7647         * passes.c (init_optimization_passes): Remove
7648         pass_create_structure_vars, adjust comment.
7649         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7650         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7651         * opts.c (decode_options): Do not set flag_tree_salias.
7652         (common_handle_option): Add OPT_ftree_salias to the backward
7653         compatibility section.
7654
7655 2008-05-08  Richard Guenther  <rguenther@suse.de>
7656
7657         * tree-flow-inline.h (var_can_have_subvars): Move ...
7658         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7659         * tree-flow.h (var_can_have_subvars): Remove.
7660         (push_fields_onto_fieldstack): Remove.
7661         (sort_fieldstack): Likewise.
7662         (struct fieldoff): Move ...
7663         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7664         alias_set and base_for_components fields.
7665         (sort_fieldstack): Make static.
7666         (push_fields_onto_fieldstack): Likewise.  Remove code that
7667         handles anything but RECORD_TYPEs.  Remove alias_set and
7668         base_for_components handling.
7669         (create_variable_info_for): Adjust.
7670
7671 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7672
7673         * common.opt (Wframe-larger-than=): Shorten the help message
7674         to one line.
7675         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7676
7677 2008-05-08  Rafael Espindola  <espindola@google.com>
7678
7679         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7680         trap.
7681         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7682         trap and that both operands are gimple values.
7683         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7684         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7685         is a fp operation.
7686
7687 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7688
7689         * read-rtl.c (join_c_conditions): Return the first string if the
7690         two strings are equal.
7691
7692 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7693
7694         * gensupport.h (pred_data): Add a "num_codes" field.
7695         (add_predicate_code): Declare.
7696         * gensupport.c (add_predicate_code): New function.
7697         (std_pred_table): Add an "allows_const_p" field.
7698         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7699         Remove the (incomplete) list of such codes from the codes field.
7700         (init_predicate_table): Use add_predicate_code.  Add all
7701         RTX_CONST_OBJs if allows_const_p is true.
7702         * genrecog.c (process_define_predicate): Use add_predicate_code.
7703
7704 2008-05-08  David Daney  <ddaney@avtrex.com>
7705             Richard Sandiford  <rsandifo@nildram.co.uk>
7706         
7707         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7708         special case of constant zero operands.
7709         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7710         old and new values.  Special case constant zero values.
7711         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7712         fails.
7713         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7714         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7715
7716 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7717
7718         PR target/36090
7719         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7720         similar RTX_CONST_OBJ before CONST_INT.
7721
7722 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7723
7724         * stmt.c (expand_stack_restore): Change sa mode if needed.
7725
7726 2008-05-08  Richard Guenther  <rguenther@suse.de>
7727
7728         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7729         return type to bool.
7730         (ix86_sol10_return_in_memory): Likewise.
7731         (ix86_i386elf_return_in_memory): Likewise.
7732         (ix86_i386interix_return_in_memory): Likewise.
7733         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7734         (ix86_sol10_return_in_memory): Likewise.
7735         (ix86_i386elf_return_in_memory): Likewise.
7736         (ix86_i386interix_return_in_memory): Likewise.
7737
7738 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7739
7740         PR bootstrap/36180
7741         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7742         fndecl argument.
7743         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7744         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7745         declared in front.
7746
7747 2008-05-08  Richard Guenther  <rguenther@suse.de>
7748
7749         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7750         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7751         (DR_SUBVARS): Remove.
7752         * tree-dfa.c (dump_subvars_for): Remove.
7753         (debug_subvars_for): Likewise.
7754         (dump_variable): Do not dump subvars.
7755         (remove_referenced_var): Do not remove subvars.
7756         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7757         (lookup_subvars_for_var): Remove.
7758         (get_subvars_for_var): Likewise.
7759         (get_subvars_at): Likewise.
7760         (get_first_overlapping_subvar): Likewise.
7761         (overlap_subvar): Likewise.
7762         * tree-flow.h (subvar_t): Remove.
7763         (struct var_ann_d): Remove subvars field.
7764         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7765         argument.  Remove special handling of SFTs.
7766         (compute_tag_properties): Likewise.
7767         (set_initial_properties): Likewise.
7768         (compute_call_clobbered): Likewise.
7769         (count_mem_refs): Likewise.
7770         (compute_memory_partitions): Likewise.
7771         (compute_flow_insensitive_aliasing): Likewise.
7772         (setup_pointers_and_addressables): Likewise.
7773         (new_type_alias): Likewise.
7774         (struct used_part): Remove.
7775         (used_portions): Likewise.
7776         (struct used_part_map): Likewise.
7777         (used_part_map_eq): Likewise.
7778         (used_part_map_hash): Likewise.
7779         (free_used_part_map): Likewise.
7780         (up_lookup): Likewise.
7781         (up_insert): Likewise.
7782         (get_or_create_used_part_for): Likewise.
7783         (create_sft): Likewise.
7784         (create_overlap_variables_for): Likewise.
7785         (find_used_portions): Likewise.
7786         (create_structure_vars): Likewise.
7787         * tree.def (STRUCT_FIELD_TAG): Remove.
7788         * tree.h (MTAG_P): Adjust.
7789         (struct tree_memory_tag): Remove base_for_components and
7790         unpartitionable flags.
7791         (struct tree_struct_field_tag): Remove.
7792         (SFT_PARENT_VAR): Likewise.
7793         (SFT_OFFSET): Likewise.
7794         (SFT_SIZE): Likewise.
7795         (SFT_NONADDRESSABLE_P): Likewise.
7796         (SFT_ALIAS_SET): Likewise.
7797         (SFT_UNPARTITIONABLE_P): Likewise.
7798         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7799         (union tree_node): Remove sft field.
7800         * alias.c (get_alias_set): Remove special handling of SFTs.
7801         * print-tree.c (print_node): Remove handling of SFTs.
7802         * tree-dump.c (dequeue_and_dump): Likewise.
7803         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7804         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7805         * tree-predcom.c (set_alias_info): Do not set subvars.
7806         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7807         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7808         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7809         (add_vars_for_offset): Remove.
7810         (add_virtual_operand): Remove special handling of SFTs.
7811         (add_call_clobber_ops): Likewise.
7812         (add_call_read_ops): Likewise.
7813         (get_asm_expr_operands): Likewise.
7814         (get_modify_stmt_operands): Likewise.
7815         (get_expr_operands): Likewise.
7816         (add_to_addressable_set): Likewise.
7817         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7818         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7819         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7820         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7821         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7822         (tree_node_structure): Likewise.
7823         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7824         handling of SFTs.
7825         (find_what_p_points_to): Likewise.
7826
7827 2008-05-08  Sa Liu  <saliu@de.ibm.com>
7828
7829         * config/spu/spu.md: Fixed subti3 pattern.
7830
7831 2008-05-08  Richard Guenther  <rguenther@suse.de>
7832
7833         PR middle-end/36154
7834         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7835         sure to create a representative for trailing arrays for PTA.
7836
7837 2008-05-08  Richard Guenther  <rguenther@suse.de>
7838
7839         PR middle-end/36172
7840         * fold-const.c (operand_equal_p): Two objects which types
7841         differ in pointerness are not equal.
7842
7843 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7844
7845         * calls.c (compute_argument_block_size): Add argument tree fndecl.
7846         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7847         (emit_library_call_value_1): Add new variable fndecl initialized by
7848         NULL_TREE. It should be the decl type of orgfun, but this information
7849         seems not to be available here, so it uses the default calling abi.
7850         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7851         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7852         by TARGET_RETURN_IN_MEMORY.
7853         * config/i386/i386-interix.h: Likewise.
7854         * config/i386/i386.h: Likewise.
7855         * config/i386/i386elf.h: Likewise.
7856         * config/i386/ptx4-i.h: Likewise.
7857         * config/i386/sol2-10.h: Likewise.
7858         * config/i386/sysv4.h: Likewise.
7859         * config/i386/vx-common.h: Likewise.
7860         * config/cris/cris.h: Removed #if 0 clause.
7861         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7862         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7863         argument.
7864         (ix86_sol10_return_in_memory): Likewise.
7865         (ix86_i386elf_return_in_memory): New.
7866         (ix86_i386interix_return_in_memory): New.
7867         * config/mt/mt-protos.h (mt_return_in_memory): New.
7868         * config/mt/mt.c: Likewise.
7869         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7870         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
7871         * config/bfin/bfin.h: Likewise.
7872         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7873         argument.
7874         * config/bfin/bfin.c: Likewise.
7875         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7876         * config/alpha/unicosmk.h: Likewise.
7877         * config/i386/cygming.h: Likewise.
7878         * config/iq2000/iq2000.h: Likewise.
7879         * config/mips/mips.h: Likewise.
7880         * config/mn10300/mn10300.h: Likewise.
7881         * config/rs6000/rs6000.h: Likewise.
7882         * config/score/score.h: Likewise.
7883         * config/spu/spu.h: Likewise.
7884         * config/v850/v850.h: Likewise.
7885         * defaults.h: Likewise.
7886         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7887         * expr.c (emit_block_move): Adjust use of
7888         OUTGOING_REG_PARM_STACK_SPACE.
7889         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7890         OUTGOING_REG_PARM_STACK_SPACE.
7891         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7892
7893 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
7894
7895         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7896         on OMP_RETURN for OMP_FOR.
7897
7898         PR debug/35896
7899         * dwarf2out.c (dw_expand_expr, common_check): Removed.
7900         (fortran_common): New function.
7901         (gen_variable_die): Call fortran_common instead of common_check,
7902         adjust for it returning tree instead of rtx.  Formatting.
7903
7904 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
7905
7906         PR rtl/7335
7907         PR rtl/33826
7908         * see.c (see_copy_insn): Copy new pure const attributes for new call.
7909         * c-decl.c (merge_decls): Ditto.
7910         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7911         to RTL_CONST_OR_PURE_CALL_P.
7912         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7913         Initialized DECL_LOOPING_CONST_PURE.
7914         (process_call_operands): Set tree_side_effects properly.
7915         * tree.h (TREE_READONLY_DECL_P): Removed.
7916         (DECL_IS_PURE): Renamed to DECL_PURE_P.
7917         (DECL_LOOPING_OR_CONST_P): New macro.
7918         (struct tree_function_decl): Added looping_const_or_pure_p.
7919         (ECF_*) Renumbered.
7920         (ECF_LOOPING_OR_CONST_P): New macro.
7921         * rtlanal.c (pure_const_p): Removed.
7922         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7923         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7924         to RTL_CONST_CALL_P.
7925         * ipa-pure-const.c (pure_const_state_e): Added looping field.
7926         (check_decl, check_tree, check_call, scan_function): Initialize
7927         looping.
7928         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7929         (static_execute): Set looping true for recursive functions.
7930         Undo setting state to IPA_NEITHER for recursive functions.
7931         * cse.c (cse_insn): 
7932         * ifcvt.c (noce_can_store_speculate_p): Changed
7933         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
7934         RTL_CONST_OR_PURE_CALL_P.
7935         * dse.c (scan_insn): Ditto.
7936         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7937         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7938         RTL_CONST_OR_PURE_CALL_P.
7939         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7940         pure_call_p to RTL_CONST_CALL_P.
7941         * gimplify.c (gimplify_call_expr): Clear side effects for
7942         non-looping pure and constant calls.
7943         * calls.c (emit_call_1): Set rtl flags from ecf flags.
7944         (flags_from_decl_or_type): Set ecf flags from decl flags.
7945         (initialize_argument_information): Turn off
7946         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7947         Change const to pure if callee_copies is true rather than just
7948         turning off const.
7949         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7950         way of marking pure calls.
7951         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7952         Remove hack that was supposed to fix pr7335 and remove old
7953         way of marking pure calls.
7954         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7955         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7956         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7957         RTL_CONST_OR_PURE_CALL_P.
7958         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7959         * loop-invariant.c (find_exits, find_invariant_bb): Changed
7960         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7961         * sched-deps.c (schedule_analyze): Ditto.
7962         * rtl.h (struct rtx_def): Use call field, unchanging field, and
7963         return_val field of calls to represent pure and const function info.
7964         (CONST_OR_PURE_CALL_P): Deleted macro.
7965         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7966         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7967         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7968         TREE_READONLY.
7969         * tree-optimize.c (execute_fixup_cfg): Added test for
7970         ECF_LOOPING_CONST_OR_PURE.
7971         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7972         DECL_PURE_P.
7973         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7974         effects for looping pure or const calls.
7975         (verify_gimple_expr): Added verification code. 
7976         * config/alpha/alpha.c (alpha_legitimize_address,
7977         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7978         RTL_CONST_CALL_P.
7979         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7980         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7981         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7982         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7983         RTL_CONST_OR_PURE_CALL_P.
7984         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7985         and const calls to be deleted.
7986
7987 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7988
7989         PR target/35714
7990         * config/i386/mmx.md (mmx_subv2sf3): New expander.
7991         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7992         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7993         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7994         to handle nonimmediate operands.
7995         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7996         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
7997         to handle nonimmediate operands.
7998         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7999         (mmx_pmulhrwv4hi3): New expander.  Use
8000         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8001         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8002         (sse2_umulv1siv1di3): New expander.  Use
8003         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8004         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8005         (mmx_eq<mode>3): New expander.  Use
8006         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8007         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8008         (mmx_uavgv8qi3): New expander.  Use
8009         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8010         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8011         (mmx_uavgv4hi3): New expander.  Use
8012         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8013
8014         * config/i386/sse.md
8015         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
8016         to handle nonimmediate operands.
8017         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
8018         to handle nonimmediate operands.
8019         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
8020         to handle nonimmediate operands.
8021         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
8022         to handle nonimmediate operands.
8023         (sse2_unpckhpd_exp): New expander.  Use
8024         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8025         (sse2_unpcklpd_exp): New expander.  Use
8026         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8027         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
8028         to handle nonimmediate operands.
8029         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
8030         to handle nonimmediate operands.
8031         (*sse2_<plusminus_insn><mode>3): Rename from
8032         sse2_<plusminus_insn><mode>3 insn pattern.
8033         (sse2_<plusminus_insn><mode>3): New expander.  Use
8034         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8035         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8036         (sse2_umulv2siv2di3): New expander.  Use
8037         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8038         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8039         (sse4_1_mulv2siv2di3): New expander.  Use
8040         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8041         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8042         (sse2_pmaddwd): New expander.  Use
8043         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8044         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8045         (sse2_eq<mode>3): New expander.  Use
8046         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8047         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8048         (sse4_1_eqv2di3): New expander.  Use
8049         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8050         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8051         (sse2_uavgv16qi3): New expander.  Use
8052         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8053         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8054         (sse2_uavgv16qi3): New expander.  Use
8055         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8056         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8057         (sse2_uavgv8hi3): New expander.  Use
8058         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8059         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8060         (ssse3_pmulhrswv8hi3): New expander.  Use
8061         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8062         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8063         (ssse3_pmulhrswv4hi3): New expander.  Use
8064         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8065
8066         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8067         (<sse>_vmmul<mode>3): Ditto.
8068         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8069         (divv2df3): Ditto.
8070         (ssse3_pmaddubsw128): Use register_operand for operand 1.
8071         (ssse3_pmaddubsw): Ditto.
8072
8073         * config/i386/i386.c (struct_builtin_description)
8074         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8075         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8076         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8077         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8078         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8079         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8080         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8081         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8082         (ix86_fixup_binary_operands): Assert that src1
8083         and src2 must have the same mode when swapped.
8084         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8085         and ix86_binary_operator_ok.  Do not force operands in registers
8086         when optimizing.
8087
8088 2008-05-07  Jan Hubicka  <jh@suse.cz>
8089
8090         * cgraph.c (dump_cgraph_node): Update.
8091         * cgraph.h (cgraph_local_info): Break out inline summary.
8092         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8093         hook.
8094         * ipa-inline (inline_summary): New accestor function.
8095         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8096         cgraph_decide_inlining, compute_inline_parameters): Update.
8097         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8098
8099 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8100
8101         Cleanup ColdFire scheduling support and add V4 pipeline model.
8102
8103         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8104         (define_attr cpu): Add cfv4 value.
8105         (define_attr type, define_attr type1): Merge into a single 'type'
8106         attribute.  Update all uses.
8107         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8108         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
8109         Update all uses.
8110         (define_attr opx_mem, define_attr opy_mem): Remove.
8111         (define_attr op_mem): Clean up, update comment.
8112         (define_attr size): Use specific values instead of general int.
8113         (define_attr guess, define_attr split): Remove.  Update all uses.
8114         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8115         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8116         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8117         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8118         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8119         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8120         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8121         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8122         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8123         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8124         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8125         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8126         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8127         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8128         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8129         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8130         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8131         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8132         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8133         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8134         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8135         Update or set attributes.
8136         (stack_tie): New fake instruction.
8137
8138         * config/m68k/m68k.h (TUNE_CFV4): New macro.
8139         (m68k_sched_attr_size): Update declaration.
8140         (m68k_sched_attr_type2): Remove.
8141         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8142         Declare new bypass predicates.
8143
8144         * config/m68k/m68k.c (m68k_sched_issue_rate,
8145         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8146         implementations.
8147         (TARGET_SCHED_ISSUE_RATE,
8148         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8149         (override_options): Handle scheduling for ColdFire V4 core.
8150         (m68k_expand_prologue): Emit stack_tie.
8151         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8152         'OP_TYPE_FPN'.  Update all uses.
8153         (sched_guess_p): Remove.
8154         (sched_address_type): Handle symbolic addresses.
8155         (sched_get_operand): New static function.
8156         (sched_operand_type): Merge into sched_attr_op_type.
8157         (sched_attr_op_type): Handle FP registers, handle quick constants,
8158         update.
8159         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8160         (m68k_sched_attr_size): Update.  Move logic to ...
8161         (sched_get_attr_size_int): New static function.
8162         (sched_get_opxy_mem_type): New static function.
8163         (m68k_sched_attr_op_mem): Update.
8164         (m68k_sched_attr_type2): Remove.
8165         (sched_cfv4_bypass_data): New static variable.
8166         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8167         (m68k_sched_issue_rate): Implement scheduler hook.
8168         (struct _sched_ib: enabled_p): New field.
8169         (m68k_sched_variable_issue): Update.  Handle V4.
8170         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8171         sched_dump_class_func_t, sched_dump_split_class,
8172         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8173         sched_dump_dfa_class, m68k_sched_dump): Remove.
8174         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8175         hook.
8176         (m68k_sched_init_global): Remove statisctics dumping, introduce
8177         sanity check that all instructions have pipeline reservations.  Handle
8178         ColdFire V4 core.
8179         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8180         Handle ColdFire V4 core.
8181         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8182         New static functions.
8183         (m68k_sched_address_bypass_p): New bypass predicate.
8184         (sched_get_indexed_address_scale): New static function.
8185         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8186
8187         * cf.md: Update comments.
8188         (define_attr type2): Remove.  Use 'type' attribute instead.
8189         Update all uses.
8190         (cf_ib): Rename to cfv123_ib.  Update all uses.
8191         (cf_oep): Rename to cfv123_oep.  Update all uses.
8192         (cf_chr): Rename to cfv123_chr.  Update all uses.
8193         (cf_mem): Rename to cfv123_mem.  Update all uses.
8194         (cf_mac): Move to more appropriate place.
8195         (cfv123_guess): New automaton and cpu_unit.
8196         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8197         Update uses of 'size' attribute.  Handle before reload scheduling.
8198         (cfv123_guess): New dummy reservation for unhandled instructions.
8199         (cfv4_*): Pipeline description of ColdFire V4 core.
8200         (ignore): New reservation to handle 'ignore' type.
8201
8202 2008-05-07  Ian Lance Taylor  <iant@google.com>
8203
8204         PR middle-end/36013
8205         * gimplify.c (find_single_pointer_decl_1): Don't look through
8206         indirections.
8207         (find_single_pointer_decl): Adjust comments.
8208
8209 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8210
8211         PR middle-end/36137
8212         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8213         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8214
8215         PR middle-end/36106
8216         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8217         integral type rather than floating point, then VIEW_CONVERT_EXPR
8218         to the floating point type.
8219
8220 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8221
8222         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8223         TFmode op0 to register.
8224
8225 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8226
8227         * c-decl.c (grokdeclarator): Comment typo.
8228
8229 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8230
8231         * tree-flow.h: Remove prototype for computed_goto_p.
8232         * tree-cfg.c (computed_goto_p): Make static.
8233
8234 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8235
8236         PR target/35657
8237         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8238         (contains_aligned_value_p): This.  Handle _Decimal128.
8239         (ix86_function_arg_boundary): Only align _Decimal128 to its
8240         natural boundary and handle it properly.
8241
8242 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8243
8244         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8245         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8246         (ipcp_method_set_orig_node): Removed.
8247         (ipcp_cval_get_cvalue_type): Removed.
8248         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8249         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8250         (ipcp_cval_set_cvalue_type): Removed.
8251         (ipcp_cval_get_cvalue): Removed.
8252         (ipcp_cval_set_cvalue): Removed.
8253         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8254         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8255         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8256         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8257         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8258         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8259         (ipcp_get_ith_lattice): Changed parameters.
8260         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8261         (ipcp_lattice_from_jfunc): Changed parameters.
8262         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8263         (ipcp_method_cval_print): Added temporary variable info.
8264         (ipcp_redirect): Removed already unused local variable caller.
8265         (ipcp_redirect): New temporary variable orig_callee_info
8266         (ipcp_redirect): Removed newly unused local variable callee.
8267         (ipcp_redirect): Removed (a bit confusing) local variable type.
8268         (ipcp_insert_stage): Added local variable info.
8269         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
8270         renamed too
8271         (ipcp_formal_create): Removed.
8272         (ipcp_method_cval_set): Removed.
8273         (ipcp_propagate_stage): Renamed lattice variables.
8274         (ipcp_method_cval_set_cvalue_type): Removed.
8275         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8276         (ipcp_print_all_lattices): Changed printed strings to refer to 
8277         lattices rather than cvals.
8278         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8279         (ipcp_propagate_const): Changed formal parameters.
8280         (build_const_val): Changed formal parameters.
8281         (ipcp_insert_stage): Removed useless variable cvalue
8282         (build_const_val): Changed formal parameters.
8283         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8284         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8285         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8286         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8287         (ipcp_print_func_profile_counts): Changed string from "method" to 
8288         "function"
8289         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8290         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8291         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8292         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8293         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8294         (ipcp_lat_is_const): Changed parameters and made inline.
8295         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8296         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8297         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
8298         the predicate condition directly
8299         (ipcp_propagate_stage): Added local variable args. Removed local
8300         variable callee.  (Both are mere code simplifications.)
8301         (ipcp_method_dont_insert_const): Renamed to
8302         ipcp_node_not_modifiable_p.
8303         (ipcp_node_not_modifiable_p): Made inline.
8304         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8305         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8306         (ipcp_print_all_lattices): Removed variable cvalue
8307         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8308         Updated comments.
8309
8310 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8311
8312         * tree-sra.c (try_instantiate_multiple_fields): Early return
8313         if field has POINTER_TYPE.
8314
8315 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8316
8317         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8318         by using 'q' specifier for instruction.
8319         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8320
8321 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8322
8323         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8324         Change mode of zero_extract from QImode to HImode.
8325         (sign bit tests peepholes): (Ditto.).
8326
8327 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8328
8329         * config/i386/mmx.md: Remove double backslashes from asm templates.
8330         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8331         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8332         to handle nonimmediate operands.
8333         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8334         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8335         to handle nonimmediate operands.
8336         (*mmx_<code>v2sf3_finite): New insn pattern.
8337         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8338         (mmx_<code>v2sf3): New expander.  Use
8339         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8340         (mmx_<plusminus_insn><mode>3): New expander.  Use
8341         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8342         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8343         (mmx_add<mode>3): Removed.
8344         (mmx_ssadd<mode>3): Ditto.
8345         (mmx_usadd<mode>3): Ditto.
8346         (mmx_sub<mode>3): Ditto.
8347         (mmx_sssub<mode>3): Ditto.
8348         (mmx_ussub<mode>3): Ditto.
8349         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8350         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8351         to handle nonimmediate operands.
8352         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8353         insn pattern.
8354         (mmx_smulv4hi3_highpart): New expander.  Use
8355         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8356         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8357         insn pattern.
8358         (mmx_umulv4hi3_highpart): New expander.  Use
8359         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8360         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8361         (mmx_<code>v4hi3): New expander.  Use
8362         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8363         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8364         (mmx_<code>v8qi3): New expander.  Use
8365         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8366         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8367         (mmx_<code><mode>3): New expander.  Use
8368         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8369
8370 2008-05-05  Jan Hubicka  <jh@suse.cz>
8371
8372         PR tree-optimization/36118
8373         * passes.c (pass_init_dump_file): Fix dump header.
8374
8375 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8376
8377         PR middle-end/36141
8378         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8379         VCE for function decls.
8380
8381 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8382
8383         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8384
8385 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8386
8387         * config/i386/i386.md (sat_plusminus): New.
8388         (plusminus_insn): Likewise.
8389         (plusminus_mnemonic): Likewise.
8390         (addsub): Removed.
8391         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8392         (*<addsub><mode>3_cc_overflow): Renamed to ...
8393         (*<plusminus_insn><mode>3_cc_overflow): This.
8394         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8395         (*<plusminus_insn>si3_zext_cc_overflow): This.
8396
8397         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8398         (<plusminus_insn><mode>3): This.
8399         (*<addsub><mode>3): Renamed to ...
8400         (*<plusminus_insn><mode>3): This.
8401         (<sse>_vm<addsub><mode>3): Renamed to ...
8402         (<sse>_vm<plusminus_insn><mode>3): This.
8403         (sse3_h<addsub>v4sf3): Renamed to ...
8404         (sse3_h<plusminus_insn>v4sf3): This.
8405         (sse3_h<addsub>v2df3): Renamed to ...
8406         (sse3_h<plusminus_insn>v2df3): This.
8407         (<plusminus_insn><mode>3): New.
8408         (*<plusminus_insn><mode>3): Likewise.
8409         (sse2_<plusminus_insn><mode>3): Likewise.
8410         (add<mode>): Removed.
8411         (*add<mode>3): Likewise.
8412         (sse2_ssadd<mode>3): Likewise.
8413         (sse2_usadd<mode>3): Likewise.
8414         (sub<mode>3): Likewise.
8415         (*sub<mode>3): Likewise.
8416         (sse2_sssub<mode>3): Likewise.
8417         (sse2_ussub<mode>3): Likewise.
8418
8419 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8420
8421         * gthr-single.h: Add in required interface elements as per gthr.h.
8422         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8423         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8424         Generalize UNUSED macro. 
8425         (__gthread_once): Add.
8426         (__gthread_key_create): Add.
8427         (__gthread_key_delete): Add.
8428         (__gthread_getspecific): Add.
8429         (__gthread_setspecific): Add.
8430         
8431 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8432
8433         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8434         the same size types for the indirect reference on the rhs, then
8435         create a VCE.
8436
8437 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8438
8439         * config/i386/i386.md
8440         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8441         one insn template instead of template series.
8442         (*xordi_1_rex64): Ditto.
8443         (*xordi_2_rex64): Ditto.
8444
8445 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8446
8447         PR tree-optimization/36119
8448         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8449         in case of SLP.
8450
8451 2008-06-04  Jan Hubicka  <jh@suse.cz>
8452
8453         tree-optimization/36100
8454         * tree-pass.h (pass_O0_always_inline): Declare.
8455         * ipa-inline.c (inline_transform): Remove dead code.
8456         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8457         pass_O0_always_inline): New.
8458         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8459
8460 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8461
8462         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8463         mnemonic in this_param move for TARGET_64BIT.
8464
8465 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8466
8467         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8468         (*strmovsi_rex_1): Ditto.
8469         (*strsetsi_1): Ditto.
8470         (*strsetsi_rex_1): Ditto.
8471
8472         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8473         adddicc expanders using SWI mode iterator.
8474
8475 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8476
8477         PR target/36121
8478         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8479         argument handling.
8480
8481 2008-05-04  David S. Miller  <davem@davemloft.net>
8482
8483         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8484         (sparc*-*-linux*): Use linux.h in tm_file.
8485         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8486         compiler defaulting to 32-bit.
8487         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8488         no longer needed.
8489         * config/sparc/linux.h: Remove definitions now obtained
8490         properly from linux.h
8491         * config/sparc/linux64.h: Likewise.
8492         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8493         don't want this setting for 32-bit builds in a biarch compiler.
8494         * doc/install.texi: Add sparc-linux to list of targets
8495         supporting --enable-targets=all.
8496
8497 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8498
8499         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8500
8501 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8502
8503         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8504         after V4SI_FTYPE_V8HI.
8505         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8506         case V4SI_FTYPE_V2DF.
8507
8508 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8509
8510         * doc/invoke.texi (max-flow-memory-locations): Removed.
8511         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8512         
8513 2008-05-03  Richard Guenther  <rguenther@suse.de>
8514
8515         PR middle-end/34973
8516         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8517
8518 2008-05-02  David S. Miller  <davem@davemloft.net>
8519
8520         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8521
8522 2008-05-02  Simon Baldwin <simonb@google.com>
8523
8524         PR bootstrap/36108
8525         * c-common.h (warn_array_subscript_range): Removed.
8526         * c-common.c (warn_array_subscript_range): Ditto.
8527         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8528         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8529
8530 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8531
8532         * config/i386/i386.c (ix86_special_builtin_type): New.
8533         (bdesc_special_args): Likewise.
8534         (ix86_expand_special_args_builtin): Likewise.
8535         (ix86_init_mmx_sse_builtins): Updated.
8536         (ix86_expand_builtin): Updated.
8537         (ix86_expand_store_builtin): Removed.
8538         (ix86_expand_unop_builtin): Likewise.
8539
8540         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8541         * config/i386/mmintrin.h (__v2sf): Here.
8542
8543         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8544         const __v2sf.
8545         (_mm_loadl_pi): Likewise.
8546         (_mm_storeh_pi): Replace __v2si with __v2sf.
8547         (_mm_storel_pi): Likewise.
8548
8549         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8550         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8551         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8552         __builtin_ia32_loadlpd.
8553
8554 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8555
8556         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8557         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8558         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8559         (ix86_init_mmx_sse_builtins): Updated.
8560         (ix86_expand_args_builtin): Likewise.
8561         (ix86_expand_builtin): Likewise.
8562         (ix86_expand_unop1_builtin): Renamed to ...
8563         (ix86_expand_unop_vec_merge_builtin): This.
8564
8565 2008-05-01  Jan Hubicka  <jh@suse.cz>
8566
8567         PR bootstrap/36100
8568         * ipa-inline.c (inline_generate_summary): Make static.
8569         (inline_transform): Do not call inlining at -O0; make static.
8570         * passes.c (execute_todo): Add sanity check.
8571         (execute_one_ipa_transform_pass): Execute proper flags.
8572
8573 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8574
8575         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8576         (DECL_NONADDRESSABLE_P): Likewise.
8577         * alias.c (record_component_aliases): Fix comment.
8578
8579 2008-05-01  Simon Baldwin <simonb@google.com>
8580
8581         * c-common.h (warn_array_subscript_range): New function.
8582         * c-common.c (warn_array_subscript_range): Ditto.
8583         * tree-vrp.c (check_array_ref): Corrected code to agree with
8584         comment, ignoring only arrays of size 0 or size 1.
8585         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8586
8587 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8588
8589         * config/i386/i386.c (ix86_builtin_type): Replace
8590         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8591         (bdesc_args): Updated.
8592         (ix86_init_mmx_sse_builtins): Likewise.
8593         (ix86_expand_args_builtin): Likewise.
8594
8595         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8596         with __v1di.
8597
8598         * doc/extend.texi: Correct __builtin_ia32_palignr.
8599
8600 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8601
8602         PR target/36095
8603         * config/i386/i386.c (bdesc_crc32): Removed.
8604         (ix86_expand_crc32): Likewise.
8605         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8606         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8607         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8608         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8609         UINT_FTYPE_UINT_UCHAR.
8610         (bdesc_args): Updated. Add crc32 builtins.
8611         (ix86_init_mmx_sse_builtins): Updated.
8612         (ix86_expand_args_builtin): Updated to support subreg.
8613
8614         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8615
8616 2008-05-01  Jan Hubicka  <jh@suse.cz>
8617
8618         * tree-pass.h (opt_pass): Add IPA_PASS.
8619         (varpool_node, cgraph_node): Forward declare.
8620         (ipa_opt_pass): Define.
8621         (pass_ipa_inline): Turn into ipa_opt_pass.
8622         (pass_apply_inline): Remove.
8623         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8624         (apply_inline): Turn into ....
8625         (inline_transform): ... this one.
8626         (inline_generate_summary): New function.
8627         (pass_apply_inline): Remove.
8628         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8629         vector.
8630         (struct function): Add ipa_transforms_to_apply.
8631         * passes.c (register_one_dump_file): Work on IPA_PASS.
8632         (init_optimization_passes): Remove pass_inline_parameters and
8633         pass_apply_inline.
8634         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8635         (execute_one_pass) ... here; apply transforms when possible.
8636         (add_ipa_transform_pass, execute_ipa_summary_asses,
8637         execute_one_ipa_transform_pass): New.
8638         (execute_ipa_pass_list): Update for IPA_PASS type.
8639
8640 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8641
8642         * config/i386/i386.c (ix86_builtin_type): Add
8643         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8644         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8645         (bdesc_args): Add SSE4a builtins.
8646         (ix86_init_mmx_sse_builtins): Updated.
8647         (ix86_expand_args_builtin): Likewise.
8648         (ix86_expand_builtin): Likewise.
8649
8650 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8651
8652         * config/i386/i386.c (ix86_builtin_type): Add
8653         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8654         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8655         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8656         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8657         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8658         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8659         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8660         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8661         and DI_FTYPE_DI_DI_INT.
8662         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8663         (ix86_init_mmx_sse_builtins): Updated.
8664         (ix86_expand_args_builtin): Likewise.
8665         (ix86_expand_builtin): Likewise.
8666         (ix86_expand_binop_imm_builtin): Removed.
8667
8668         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8669
8670 2008-04-30  Richard Guenther  <rguenther@suse.de>
8671
8672         PR tree-optimization/32921
8673         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8674
8675 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8676
8677         * config/arm/arm.c (arm_unwind_emit): Use
8678         crtl->all_throwers_are_sibcalls instead of
8679         cfun->all_throwers_are_sibcalls.
8680         (arm_output_fn_unwind): Likewise.
8681         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8682         instead of cfun->uses_pic_offset_table.
8683         (frv_expand_prologue): Likewise.
8684         (frv_frame_pointer_required): Likewise.
8685         (frv_expand_fdpic_call): Likewise.
8686         (frv_emit_movsi): Likewise.
8687         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8688         cfun->returns_pcc_struct instead of
8689         current_function_returns_pcc_struct.
8690         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8691         instead of cfun->calls_eh_return.
8692         (m32c_pushm_popm): Likewise.
8693         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8694         "extern" declaration.
8695
8696 2008-04-30  Richard Guenther  <rguenther@suse.de>
8697
8698         PR tree-optimization/21636
8699         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8700         constant address.
8701         (evaluate_stmt): Print the likely value.
8702         (ccp_visit_stmt): Avoid excessive vertical spacing.
8703
8704 2008-04-30  Rafael Espindola  <espindola@google.com>
8705
8706         * builtins.c (fold_call_expr): Return realret.
8707         * tree-ssa-threadedge.c
8708         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8709         __builtin_object_size.
8710
8711 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8712
8713         * gcc.c (wrapper_string): New variable.
8714         (insert_wrapper): New function.
8715         (execute): New option -wrapper.
8716         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8717
8718 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8719
8720         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8721         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8722         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8723         from...
8724         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8725         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8726         config/rs6000/e500crtres64gprctr.asm,
8727         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8728         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8729         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8730         config/rs6000/e500crtsav64gprctr.asm,
8731         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8732         config/rs6000/e500crtsavg64gprctr.asm: New files.
8733         * config/rs6000/t-ppccomm: Add build rules for new files.
8734         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8735         * config/rs6000/t-netbsd: Add build rules for new files.
8736         (LIB2FUNCS_STATIC_EXTRA): New variable.
8737         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8738         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8739         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8740
8741 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8742
8743         * config/i386/i386.c (ix86_builtin_type): Add
8744         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8745         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8746         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8747         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8748         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8749         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8750         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8751         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8752         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8753         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8754         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8755         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8756         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8757         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8758         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8759         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8760         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8761         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8762         V1DI_FTYPE_V2SI_V2SI.
8763         (bdesc_2arg): Moved to ...
8764         (bdesc_args): Here.
8765         (ix86_init_mmx_sse_builtins): Updated.
8766         (ix86_expand_args_builtin): Updated.  Take a pointer
8767         to const struct builtin_description.  Handle comparison
8768         builtin functions.
8769         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8770         (ix86_expand_builtin): Updated.
8771
8772         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8773         (ssse3_pmaddubsw128): This.
8774         (ssse3_pmaddubswv4hi3): Renamed to ...
8775         (ssse3_pmaddubsw): This.
8776
8777         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8778         (__builtin_ia32_packssdw128): Likewise.
8779         (__builtin_ia32_packuswb128): Likewise.
8780         (__builtin_ia32_pmaddubsw): Likewise.
8781         (__builtin_ia32_pmaddubsw128): Likewise.
8782
8783 2008-04-30  Richard Guenther  <rguenther@suse.de>
8784
8785         PR tree-optimization/14847
8786         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8787         (recognize_bits_test): Use it.
8788         (recognize_single_bit_test): Likewise.
8789
8790 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8791
8792         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8793         instead of setting number of formal parameters to zero.
8794         (ipcp_init_stage): Do not set the number of actual parameters to zero 
8795         either.
8796         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8797         which are called with variable number of arguments.
8798         (ipcp_insert_stage): Explicitely skipping all nodes which are
8799         called with variable number of arguments.
8800         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
8801         number of parameters.
8802
8803         * ipa-prop.h (struct ipa_node_params): Added flag
8804         called_with_var_arguments
8805         (ipa_set_param_count): Added.  Changed sole setter to use it.
8806         (ipa_get_param_count): Added.  All readers of param_count
8807         converted to use it instead.
8808         (ipa_set_called_with_variable_arg): Added.
8809         (ipa_is_called_with_var_arguments): Added.
8810         (ipa_get_ith_param): Added.  All readers of param_decls converted
8811         to use it instead.
8812         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
8813         changed to use it. 
8814         (ipa_get_cs_argument_count): Added, all readers of argument_count
8815         changed to cal it.
8816         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
8817         to use it.
8818         
8819         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8820         (struct ipcp_lattice): Renamed cval_type to type
8821         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8822
8823         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8824         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8825         (ipcp_insert_stage): Changed the type of variable cvalue to tree
8826         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8827         (build_const_val): Changed the type of parameter cvalue to tree
8828         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8829         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8830         
8831         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
8832         constant 
8833
8834         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8835         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8836         (ipa_add_method): Renamed to ipa_push_func_to_list
8837         (ipa_remove_method): Renamed to ipa_pop_func_from_list
8838         (ipa_callsite_param_count): Removed.
8839         (ipa_callsite_param_count_set): Removed.
8840         (ipa_callsite_param): Removed.
8841         (ipa_callsite_callee): Removed.
8842         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8843         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8844         (ipa_method_formal_count): Removed.
8845         (ipa_method_formal_count_set): Removed.
8846         (ipa_method_get_tree): Removed.
8847         (ipa_method_tree_map_create): Removed.
8848         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8849         (ipa_create_param_decls_array): Creates the array itself
8850         (ipa_create_param_decls_array): Temporary variable info instead of 
8851         a few dereferences.
8852         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8853         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8854         (get_type): Removed.
8855         (ipa_jf_get_info_type): Removed.
8856         (ipa_node_create): Renamed to ipa_create_node_params
8857         (ipa_free): Renamed to ipa_free_all_node_params
8858         (ipa_nodes_create): Renamed to ipa_create_all_node_params
8859         (ipa_edges_create): Renamed to ipa_create_all_edge_args
8860         (ipa_edges_free): Renamed to ipa_free_all_edge_args
8861         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8862         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
8863         ipa_free_all_edge_args
8864         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8865         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8866         (ipa_create_methodlist_node): Removed.
8867         (ipa_methodlist_method): Removed.
8868         (ipa_methodlist_method_set): Removed.
8869         (ipa_methodlist_next_method): Removed.
8870         (ipa_methodlist_next_method_set): Removed.
8871         (ipa_method_is_modified): Removed.
8872         (ipa_method_modify_create): Removed.
8873         (ipa_method_modify_init): Temporary variable info instead of a few 
8874         dereferences.
8875         (ipa_detect_param_modifications): Temporary variable info instead of 
8876         a few dereferences.
8877         (ipa_compute_jump_functions): Temporary variable info instead of 
8878         a few dereferences.
8879         (ipa_method_modify_set): Removed.
8880         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8881         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
8882         than craph_node as the first parameter.
8883         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8884         (ipa_method_modify_init): Removed.
8885         (ipa_compute_jump_functions): Added a temp variable instead of 
8886         repeatadly dereferencing the cgraph_edge.aux pointer
8887         (ipa_callsite_param_set_type): Removed.
8888         (ipa_compute_jump_functions): i renamed to index and moved to 
8889         an inner block
8890         (ipa_callsite_param_set_info_type_formal): Removed.
8891         (ipa_callsite_param_set_info_type): Removed.
8892         (ipa_callsite_param_map_create): Removed.
8893         (ipa_callsite_tree): Removed.
8894         (ipa_callsite_caller): Removed.
8895         (ipa_pop_func_from_list): return_method removed to return_func
8896
8897         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8898         prefixed all values with IPA_. Changed all users.
8899         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
8900         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
8901         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
8902         (union parameter_info): Renamed to jump_func_value.
8903         (union jump_func_value): Renamed value to constant
8904         (struct ipa_jump_func): Renamed info_type to value
8905         (struct ipa_node): Renamed to ipa_node_params
8906         (struct ipa_node_params): Renamed ipa_arg_num to param_count
8907         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8908         (struct ipa_node_params): Renamed ipa_mod to modified_flags
8909         (struct ipa_edge): Renamed to ipa_edge_args
8910         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8911         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8912         (struct ipa_methodlist): Renamed to ipa_func_list
8913         (struct ipa_func_list): method_p renamed to node, next_method
8914         renamed to next
8915         (ipa_methodlist_p): Removed, switched all users to struct pointer
8916         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8917
8918 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
8919
8920         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8921         (rs6000_emit_epilogue): Use backchain to restore only when we
8922         have a large frame.  Make use of frame pointer to restore if we
8923         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8924
8925 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
8926
8927         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8928         Add mode to zero_extract.
8929         (sign bit tests peepholes): (Ditto.).
8930
8931 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8932
8933         * config/i386/i386.c (ix86_builtins): Replace Prescott New
8934         Instructions in comments with SSE3.
8935         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
8936         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8937         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8938         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8939         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8940         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8941         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8942         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8943         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8944         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8945         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8946         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8947         (bdesc_sse_args): Renamed to ...
8948         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8949         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8950         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8951         IX86_BUILTIN_FABSQ.
8952         (bdesc_1arg): Moved to ...
8953         (bdesc_args): Here.
8954         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
8955         Instructions in comments with SSE3.
8956         (ix86_expand_sse_operands_builtin): Renamed to ...
8957         (ix86_expand_args_builtin): This.  Updated.
8958         (ix86_expand_unop1_builtin): Update comments.
8959         (ix86_expand_builtin): Updated.
8960
8961 2008-04-29  Richard Guenther  <rguenther@suse.de>
8962
8963         PR tree-optimization/36078
8964         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8965         Update virtual SSA form after cleaning up the CFG.
8966
8967 2008-04-29  Richard Guenther  <rguenther@suse.de>
8968
8969         PR middle-end/15255
8970         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8971
8972 2008-04-29  Richard Guenther  <rguenther@suse.de>
8973
8974         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8975         (compute_may_aliases): Do not call finalize_ref_all_pointers.
8976         (compute_flow_insensitive_aliasing): Do not treat
8977         PTR_IS_REF_ALL pointers special.
8978         (get_smt_for): Likewise.
8979         (may_alias_p): Re-structure.
8980         (is_escape_site): A ref-all pointer conversion is not an escape site.
8981         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8982         PTR_IS_REF_ALL pointers special.
8983         * tree-ssa-structalias.h (struct alias_info): Remove
8984         ref_all_symbol_mem_tag field.
8985         (PTR_IS_REF_ALL): Remove.
8986
8987 2008-04-29  Richard Guenther  <rguenther@suse.de>
8988
8989         PR middle-end/36077
8990         * fold-const.c (extract_muldiv_1): In combining division constants
8991         make sure to never overflow.
8992
8993 2008-04-29  Nick Clifton  <nickc@redhat.com>
8994
8995         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8996
8997 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8998
8999         PR bootstrap/35169
9000         * optc-gen.awk: Work around HP-UX/IA awk bug.
9001
9002 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
9003
9004         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9005         2008-04-25 commit.
9006
9007 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9008
9009         PR target/36073
9010         * config/i386/i386.md
9011         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9012         Change operand 1 predicate to nonimmediate_operand.
9013
9014 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
9015
9016         PR debug/36060
9017         * dwarf2out.c (struct die_struct): Mark as chain_circular through
9018         die_sub field.
9019         * gengtype.c (walk_type, write_func_for_structure): Handle
9020         chain_circular.
9021         * doc/gty.texi: Document chain_circular.
9022
9023 2008-04-28  Richard Guenther  <rguenther@suse.de>
9024
9025         PR tree-optimization/36066
9026         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9027         SCEV and loop.
9028
9029 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9030
9031         PR target/36064
9032         * config/i386/i386.md
9033         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9034         Use match_scratch instead of match_operand for operands 3 and 4.
9035
9036 2008-04-27  Richard Guenther  <rguenther@suse.de>
9037
9038         PR tree-optimization/18754
9039         PR tree-optimization/34223
9040         * tree-pass.h (pass_complete_unrolli): Declare.
9041         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9042         loop size before and after unconditionally of UL_NO_GROWTH in effect.
9043         Rewrite loop into loop closed SSA form if it is not already.
9044         (tree_unroll_loops_completely): Re-structure to iterate over
9045         innermost loops with intermediate CFG cleanups.
9046         Unroll outermost loops only if requested or the code does not grow
9047         doing so.
9048         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9049         loops are available.
9050         (tree_vectorize): Instead do so here.
9051         (tree_complete_unroll): Also unroll outermost loops.
9052         (tree_complete_unroll_inner): New function.
9053         (gate_tree_complete_unroll_inner): Likewise.
9054         (pass_complete_unrolli): New pass.
9055         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9056         uses outside of the loop.
9057         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9058         form if it is available.  
9059         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9060         * passes.c (init_optimization_passes): Schedule complete inner
9061         loop unrolling pass before the first CCP pass after final inlining.
9062
9063 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
9064
9065         * targhooks.h (default_emutls_var_fields,
9066         default_emutls_var_init): Declare.
9067         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9068         * target.h (struct gcc_target): Add struct emutls member.
9069         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9070         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9071         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9072         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9073         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9074         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9075         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9076         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9077         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9078         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9079         emit debug information.
9080         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9081         * varasm.c: Include targhooks.h.
9082         (emutls_object_section, emutls_tmpl_section): New.
9083         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9084         (EMUTLS_SEPARATOR): New.
9085         (prefix_name): New.
9086         (get_emutls_object_name): New.
9087         (default_emutls_var_fields): New, broken out of ...
9088         (get_emutls_object_type): ... here.  Adjust to use target hooks.
9089         (get_emutls_init_templ_addr): Adjust to use target hooks.
9090         (emutls_decl): Adjust to use target hooks.
9091         (emutls_finish): Likewise.
9092         (default_emutls_var_init): New, broken out of ...
9093         (assemble_variable): ... here.  Adjust to use target hooks.
9094         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9095         SECCAT_EMUTLS_TMPL.
9096         * c-common.c (handle_section_attribute): Prevent overriding
9097         sections for emulated tls with special sections.
9098         * config/i386/i386.c (x86_64_elf_select_section): Add
9099         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9100         (x86_64_elf_unique_section): Likewise.
9101         * config/vxworks.c: Include tree.h.
9102         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9103         (vxworks_override_options): Set TLS scheme.
9104         * doc/tm.texi (Emulated TLS): New node.
9105
9106 2008-04-26  Simon Baldwin <simonb@google.com>
9107
9108         PR c/35652
9109         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9110         with propagated string constants.
9111
9112 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
9113
9114         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9115         constraint for operand 2 when operand 0 is memory operand.
9116         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9117         operand 0 is memory operand.
9118         (fix_trunc<mode>_i387_with_temp): Ditto.
9119         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9120         operand 2 when operand 1 is memory operand.
9121         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9122         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9123         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9124         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9125         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9126         operands 2,3 and 4 when operand 1 is memory operand.
9127         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9128         is memory operand.
9129         (fistdi2_floor_with_temp): Ditto.
9130         (fist<mode>2_floor_with_temp): Ditto.
9131         (fistdi2_ceil_with_temp): Ditto.
9132         (fist<mode>2_ceil_with_temp): Ditto.
9133         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9134
9135 2008-04-26  David Daney  <ddaney@avtrex.com>
9136
9137         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9138         unspec_volitile.
9139         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9140         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9141         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9142         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9143         (compare_and_swap_12): New insn.
9144         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9145         * config/mips/mips.c (mips_force_binary): New function.
9146         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9147         (mips_expand_compare_and_swap_12): New function.
9148         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9149
9150 2008-04-25  Jan Hubicka  <jh@suse.cz>
9151
9152         PR testsuite/35843
9153         * cfgexpand.c (pass_expand): Turn into RTL pass.
9154         * passes.c (execute_one_pass): Do pass typechecking after execution.
9155         * tree-pass.h (pass_expand): Turn into RTL pass.
9156
9157         * function.h (struct rtl_data): Move here fields
9158         accesses_prior_frames, calls_eh_return, saves_all_registers,
9159         has_nonlocal_goto, has_asm_statement, is_thunk,
9160         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9161         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9162         arg_pointer_save_area_init from struct function; turn into bool.
9163         (struct function): Move
9164         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9165         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9166         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9167         tail_call_emit, arg_pointer_save_area_init
9168         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9169         (current_function_returns_struct, current_function_returns_pcc_struct,
9170         current_function_calls_setjmp, current_function_calls_alloca,
9171         current_function_accesses_prior_frames,
9172         current_function_calls_eh_return, current_function_is_thunk,
9173         current_function_stdarg, current_function_profile,
9174         current_function_limit_stack, current_function_uses_pic_offset_table,
9175         current_function_uses_const_pool, current_function_has_nonlocal_label,
9176         current_function_saves_all_registers,
9177         current_function_has_nonlocal_goto,
9178         current_function_has_asm_statement): Remove accesor macros.
9179         * ra-conflict.c (global_conflicts): Update.
9180         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9181         (suitable_for_tail_call_opt_p): Update.
9182         * builtins.c (expand_builtin_return_addr): Update.
9183         (expand_builtin_setjmp_setup): Update.
9184         (expand_builtin_nonlocal_goto): Update.
9185         * final.c (final_start_function): Update.
9186         (profile_function): Update.
9187         (leaf_function_p): Update.
9188         (only_leaf_regs_used): Update.
9189         * df-scan.c (df_get_exit_block_use_set): Update.
9190         * dojump.c (clear_pending_stack_adjust): Update.
9191         * tree-stdarg.c (gate_optimize_stdarg): Update.
9192         * gimple-low.c (lower_function_body): Update.
9193         * global.c (compute_regsets): Update.
9194         (global_alloc): Update.
9195         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9196         * expr.c (expand_assignment): Update.
9197         * dse.c (dse_step0): Update.
9198         (dse_step1): Update.
9199         * c-decl.c (store_parm_decls): Update.
9200         * local-alloc.c (combine_regs): Update.
9201         (find_free_reg): Update.
9202         * function.c (assign_parms_augmented_arg_list): Update.
9203         (assign_parm_find_data_types): Update.
9204         (assign_parms): Update.
9205         (allocate_struct_function): Update.
9206         (expand_function_start): Update.
9207         (expand_function_end): Update.
9208         (get_arg_pointer_save_area): Update.
9209         (thread_prologue_and_epilogue_insns): Update.
9210         (rest_of_match_asm_constraints): Update.
9211         * stor-layout.c (variable_size): Update.
9212         * gcse.c (gcse_main): Update.
9213         (bypass_jumps): Update.
9214         * gimplify.c (gimplify_function_tree): Update.
9215         * calls.c (emit_call_1): Update.
9216         (expand_call): Update.
9217         * bt-load.c (compute_defs_uses_and_gen): Update.
9218         * except.c (sjlj_assign_call_site_values): Update.
9219         (sjlj_emit_function_enter): Update.
9220         (can_throw_external): Update.
9221         (set_nothrow_function_flags): Update.
9222         (expand_builtin_unwind_init): Update.
9223         (expand_eh_return): Update.
9224         (convert_to_eh_region_ranges): Update.
9225         (output_function_exception_table): Update.
9226         * emit-rtl.c (gen_tmp_stack_mem): Update.
9227         * cfgexpand.c (expand_used_vars): Update.
9228         (tree_expand_cfg): Update.
9229         * cfgcleanup.c (rest_of_handle_jump): Update.
9230         * explow.c (allocate_dynamic_stack_space): Update.
9231         * varasm.c (assemble_start_function): Update.
9232         (force_const_mem): Update.
9233         (mark_constant_pool): Update.
9234         * tree-optimize.c (tree_rest_of_compilation): Update.
9235         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9236         * tree-cfg.c (notice_special_calls): Update.
9237         (is_ctrl_altering_stmt): Update.
9238         (tree_can_make_abnormal_goto): Update.
9239         (tree_purge_dead_abnormal_call_edges): Update.
9240         * config/alpha/predicates.md: Update.
9241         * config/alpha/alpha.c (alpha_sa_mask): Update.
9242         (alpha_sa_size): Update.
9243         (alpha_does_function_need_gp): Update.
9244         (alpha_expand_prologue): Update.
9245         (alpha_start_function): Update.
9246         (alpha_output_function_end_prologue): Update.
9247         (alpha_expand_epilogue): Update.
9248         * config/frv/frv.c (frv_stack_info): Update.
9249         (frv_expand_epilogue): Update.
9250         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9251         (s390_register_info): Update.
9252         (s390_frame_info): Update.
9253         (s390_init_frame_layout): Update.
9254         (s390_can_eliminate): Update.
9255         (save_gprs): Update.
9256         * config/spu/spu.c (spu_split_immediate): Update.
9257         (need_to_save_reg): Update.
9258         (spu_expand_prologue): Update.
9259         (spu_expand_epilogue): Update.
9260         * config/sparc/sparc.md: Update.
9261         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9262         (sparc_tls_got): Update.
9263         (legitimize_pic_address): Update.
9264         (sparc_emit_call_insn): Update.
9265         (sparc_expand_prologue): Update.
9266         (output_return): Update.
9267         (print_operand): Update.
9268         (sparc_function_ok_for_sibcall): Update.
9269         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9270         * config/m32r/m32r.md: Update.
9271         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9272         (m32r_compute_frame_size): Update.
9273         (m32r_expand_prologue): Update.
9274         (m32r_expand_epilogue): Update.
9275         (m32r_legitimize_pic_address): Update.
9276         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9277         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9278         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9279         (gen_push): Update.
9280         (ix86_save_reg): Update.
9281         (ix86_compute_frame_layout): Update.
9282         (ix86_expand_prologue): Update.
9283         (ix86_expand_epilogue): Update.
9284         * config/sh/sh.c (output_stack_adjust): Update.
9285         (calc_live_regs): Update.
9286         (sh5_schedule_saves): Update.
9287         (sh_expand_prologue): Update.
9288         (sh_expand_epilogue): Update.
9289         (sh_setup_incoming_varargs): Update.
9290         (sh_allocate_initial_value): Update.
9291         (sh_get_pr_initial_val): Update.
9292         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9293         * config/sh/sh.md (label:): Update.
9294         * config/avr/avr.c (out_movhi_mr_r): Update.
9295         * config/crx/crx.h (enum): Update.
9296         * config/xtensa/xtensa.h (along): Update.
9297         * config/stormy16/stormy16.c Update.
9298         (xstormy16_compute_stack_layout): Update.
9299         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9300         (fr30_expand_prologue): Update.
9301         * config/cris/cris.c (cris_conditional_register_usage): Update.
9302         (cris_reg_saved_in_regsave_area): Update.
9303         (cris_initial_frame_pointer_offset): Update.
9304         (cris_simple_epilogue): Update.
9305         (cris_expand_prologue): Update.
9306         (cris_expand_epilogue): Update.
9307         (cris_expand_pic_call_address): Update.
9308         (cris_asm_output_symbol_ref): Update.
9309         (cris_asm_output_label_ref): Update.
9310         * config/cris/cris.md Update.
9311         * config/iq2000/iq2000.c (compute_frame_size): Update.
9312         (iq2000_expand_epilogue): Update.
9313         * config/mt/mt.h (save_direction): Update.
9314         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9315         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9316         (ia64_secondary_reload_class): Update.
9317         * config/m68k/m68k.c (m68k_save_reg): Update.
9318         (m68k_expand_prologue): Update.
9319         (m68k_expand_epilogue): Update.
9320         (legitimize_pic_address): Update.
9321         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9322         (first_reg_to_save): Update.
9323         (first_altivec_reg_to_save): Update.
9324         (compute_vrsave_mask): Update.
9325         (compute_save_world_info): Update.
9326         (rs6000_stack_info): Update.
9327         (spe_func_has_64bit_regs_p): Update.
9328         (rs6000_ra_ever_killed): Update.
9329         (rs6000_emit_eh_reg_restore): Update.
9330         (rs6000_emit_allocate_stack): Update.
9331         (rs6000_emit_prologue): Update.
9332         (rs6000_emit_epilogue): Update.
9333         (rs6000_output_function_epilogue): Update.
9334         (output_profile_hook): Update.
9335         (rs6000_elf_declare_function_name): Update.
9336         * config/rs6000/rs6000.h (rs6000_args): Update.
9337         * config/rs6000/rs6000.md: Update.
9338         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9339         * config/arc/arc.c (arc_output_function_epilogue): Update.
9340         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9341         * config/darwin.c (machopic_function_base_name): Update.
9342         * config/score/score3.c (score3_compute_frame_size): Update.
9343         (rpush): Update.
9344         (rpop): Update.
9345         (score3_epilogue): Update.
9346         * config/score/score7.c (score7_compute_frame_size): Update.
9347         (score7_prologue): Update.
9348         (score7_epilogue): Update.
9349         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9350         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9351         * config/arm/arm.c (use_return_insn): Update.
9352         (require_pic_register): Update.
9353         (arm_load_pic_register): Update.
9354         (arm_compute_save_reg0_reg12_mask): Update.
9355         (arm_compute_save_reg_mask): Update.
9356         (thumb1_compute_save_reg_mask): Update.
9357         (output_return_instruction): Update.
9358         (arm_output_function_prologue): Update.
9359         (arm_output_epilogue): Update.
9360         (arm_get_frame_offsets): Update.
9361         (arm_expand_prologue): Update.
9362         (thumb_pushpop): Update.
9363         (thumb_exit): Update.
9364         (thumb1_expand_prologue): Update.
9365         (thumb1_expand_epilogue): Update.
9366         (arm_unwind_emit): Update.
9367         (arm_output_fn_unwind): Update.
9368         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9369         * config/arm/arm.md: Update.
9370         * config/pa/pa.md: Update.
9371         * config/pa/pa.c (legitimize_pic_address): Update.
9372         (compute_frame_size): Update.
9373         (hppa_expand_prologue): Update.
9374         (hppa_expand_epilogue): Update.
9375         (borx_reg_operand): Update.
9376         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9377         (HARD_REGNO_RENAME_OK): Update.
9378         * config/mips/mips.c (mips_global_pointer): Update.
9379         (mips_save_reg_p): Update.
9380         (mips_compute_frame_info): Update.
9381         (mips_frame_pointer_required): Update.
9382         (mips_expand_prologue): Update.
9383         (mips_expand_epilogue): Update.
9384         (mips_can_use_return_insn): Update.
9385         (mips_reorg_process_insns): Update.
9386         * config/v850/v850.c (compute_register_save_size): Update.
9387         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9388         * config/mmix/mmix.c (along): Update.
9389         (mmix_expand_epilogue): Update.
9390         * config/bfin/bfin.c (legitimize_pic_address): Update.
9391         (must_save_p): Update.
9392         (stack_frame_needed_p): Update.
9393         (add_to_reg): Update.
9394         (bfin_expand_prologue): Update.
9395         * stmt.c (expand_asm_operands): Update.
9396         * reload1.c (reload): Update.
9397         (init_elim_table): Update.
9398
9399 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9400         
9401         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9402         
9403 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9404
9405         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9406         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9407         (mov<mode>): Removed.
9408         (*movv4sf_internal): Likewise.
9409         (*movv2df_internal): Likewise.
9410
9411 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9412
9413         * config.gcc (crx-*-elf): Remove deprecation.
9414
9415 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9416
9417         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9418         __gcc_deregister_frame with atexit.
9419         (deregister_frame_dtor): Remove.
9420
9421 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9422             Nathan Sidwell  <nathan@codesourcery.com>
9423
9424         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9425         (misel): Likewise.
9426         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9427         (rs6000_isel): Likewise.
9428         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9429         (rs6000_isel): New variable.
9430         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9431
9432 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9433
9434         PR c++/35758
9435         * c-common.c (handle_vector_size_attribute): Call
9436         lang_hooks.types.reconstruct_complex_type instead of
9437         reconstruct_complex_type.
9438         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9439         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9440         * langhooks.h (struct lang_hooks_for_types): Add
9441         reconstruct_complex_type hook.
9442         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9443         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9444
9445 2008-04-24  Richard Guenther  <rguenther@suse.de>
9446
9447         * c-common.h (check_builtin_function_arguments): Declare.
9448         * c-common.c (validate_nargs): New function.
9449         (check_builtin_function_arguments): Likewise.
9450         * c-typeck.c (build_function_call): Call
9451         check_builtin_function_arguments.
9452         * builtins.c (fold_builtin_classify): Remove error reporting code.
9453         (fold_builtin_unordered_cmp): Likewise.
9454         (fold_builtin_1): Likewise.
9455         (fold_builtin_n): Likewise.
9456
9457 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9458
9459         PR tree-optimization/36008
9460         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9461         the original op1, rather than delta by step.
9462
9463 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9464             Sebastian Pop  <sebastian.pop@amd.com>
9465
9466         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9467         eliminate_local_variables_stmt, eliminate_local_variables,
9468         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9469         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9470         of code delimited by two edges in the CFG.
9471         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9472         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9473         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
9474         the case of parallelisation of reductions.
9475         (expr_invariant_in_region_p): New.
9476
9477         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9478         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9479
9480 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9481             Richard Guenther  <rguenther@suse.de>
9482
9483         PR tree-optimization/36034
9484         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9485         incapable of dealing with loads with gaps.
9486
9487 2008-04-24  Rafael Espindola  <espindola@google.com>
9488
9489         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9490         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9491         vrp_evaluate_conditional.
9492         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9493         (vrp_evaluate_conditional): Split the cond argument.
9494         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9495         (simplify_stmt_for_jump_threading): Update call to
9496         vrp_evaluate_conditional.
9497
9498 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9499
9500         PR tree-optimization/35982
9501         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9502         interleaved data-refs are of the same type.
9503
9504 2008-04-24  Danny Smith  <dannysmith@users.net>
9505
9506         * c-format.c (check_format_info_main): Use strncmp rather than a
9507         magic prefix to handle multichar length specs.
9508         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9509         Don't prefix "I64" and "I32" with '\0'.
9510
9511 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9512
9513         PR target/36015
9514         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9515         in registers for -m32 only if stdarg_p (fntype).
9516
9517 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9518
9519         PR rtl-optimization/36006
9520         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9521         temp to op0 in order to avoid invalid rtx sharing.
9522
9523 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9524
9525         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9526         check TREE_INVARIANT.
9527         * tree-gimple.c (is_gimple_address): New.
9528         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9529         * tree-gimple.h (is_gimple_address): New.
9530         * tree.h (decl_address_invariant_p): New.
9531         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9532         (build_string): Likewise.
9533         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9534         (tree_invariant_p_1): Likewise.
9535         (save_expr): Use it.
9536         (tree_invariant_p): New.
9537         (skip_simple_arithmetic): Use it.
9538         (stabilize_reference_1): Use it.
9539         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9540         simplify.
9541         (build1_stat): Drop code to compute TREE_INVARIANT.
9542         (build2_stat): Drop code to compute TREE_INVARIANT.
9543         (build3_stat): Drop code to compute TREE_INVARIANT.
9544         (build4_stat): Drop code to compute TREE_INVARIANT.
9545         (build5_stat): Drop code to compute TREE_INVARIANT.
9546         (build7_stat): Drop code to compute TREE_INVARIANT.
9547         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9548         * tree.h (struct tree_base): Remove invariant_flag.
9549         (TREE_INVARIANT): Remove.
9550         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9551         (fold_builtin_expect): Check TREE_CONSTANT.
9552         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9553         * c-tree.h (c_expr_to_decl): Drop third parameter.
9554         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9555         (build_c_cast): Don't set TREE_INVARIANT.
9556         (pop_init_level): Don't set TREE_INVARIANT.
9557         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9558         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9559         TREE_CONSTANT.
9560         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9561         (gimplify_addr_expr): Adjust comment.
9562         * tree-mudflap.c (mf_build_string):
9563         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9564         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9565         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9566         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9567         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9568         * langhooks.h (struct lang_hooks): Drop third parameter from
9569         expr_to_decl.
9570
9571 2008-04-23  Richard Guenther  <rguenther@suse.de>
9572
9573         PR tree-optimization/27799
9574         PR tree-optimization/32921
9575         PR tree-optimization/32624
9576         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9577         SMTs aliases and the tag itself into the solution.
9578         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9579         merge the points-to solution back into the SMT aliases.
9580         (may_alias_p): Use alias_set_subset_of instead of
9581         aliases_conflict_p.  A pointer which points to
9582         memory with alias set zero may access any variable.
9583
9584 2008-04-23  Richard Guenther  <rguenther@suse.de>
9585
9586         * alias.c (alias_set_subset_of): Correctly handle asking
9587         if zero is a subset of an alias set with zero child.
9588         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9589         (compute_flow_insensitive_aliasing): Correctly walk all
9590         pointers.  Do not unnecessarily union sets.
9591
9592 2008-04-23  Richard Guenther  <rguenther@suse.de>
9593
9594         PR middle-end/36021
9595         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9596
9597 2008-04-22  Tomas Bily  <tbily@suse.cz>
9598
9599         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9600         unreachable case.
9601         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9602         NON_LVALUE_EXPR.
9603         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9604         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9605         * tree-inline.c (estimate_num_insns_1): Likewise.
9606         * varasm.c (const_hash_1, compare_constant, copy_constant)
9607         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9608         * emit-rtl.c (component_ref_for_mem_expr)
9609         (set_mem_attributes_minus_bitpos): Likewise.
9610         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9611         (is_aligning_offset): Likewise.
9612         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9613         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9614         * dojump.c (do_jump): Likewise.
9615         * builtins.c (get_pointer_alignment, get_memory_rtx)
9616         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9617         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9618
9619 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9620
9621         PR rtl-optimization/36017
9622         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9623         expanding the library call.
9624
9625 2008-04-22  Ian Lance Taylor  <iant@google.com>
9626
9627         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9628         than size_in_bytes.
9629
9630 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9631
9632         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9633         of LR/CTR moves for Power6.
9634
9635 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9636
9637         PR middle-end/36003
9638         * passes.c (init_optimization_passes): Remove
9639         pass_fast_rtl_byte_dce.
9640         
9641 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9642
9643         PR target/29096
9644         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9645         builtin functions to generate faster code.
9646         (_mm_cvtpu16_ps): Ditto.
9647         (_mm_cvtpi32x2_ps): Ditto.
9648
9649 2008-04-22  Nick Clifton  <nickc@redhat.com>
9650
9651         * common.opt (ftree-loop-distribution): Add Optimization
9652         attribute.
9653
9654         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9655         (frv_expand_builtin_va_start): Likewise.
9656
9657         * config/arm/arm.c (thumb_find_work_register): Fix location of
9658         argument register count.
9659
9660 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9661
9662         Support scheduling for ColdFire V1 and V3 microarchitecture.
9663         Improve scheduling of multiplication instructions.
9664
9665         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9666         (mac): New instruction attribute.
9667         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9668         (m68k_sched_mac): New variable.
9669         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9670         Handle cfv1 and cfv3.
9671         (max_insn_size): New static variable.
9672         (struct _sched_ib): New type.
9673         (sched_ib): New static variable.
9674         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9675         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9676         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9677         Update.
9678         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9679         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9680         new variables.  Update.
9681         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9682         Add modeling of cfv3 instruction buffer.  Update.
9683         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9684         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9685         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9686         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9687         a particular reservation applies to.
9688         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9689         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9690         to mul_l and mul_w.
9691         (cf_ib_*): Simplify description of instruction buffer.
9692         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9693         (cf_mem): Split into cf_mem1 and cf_mem2.
9694         (cf_v2_move_??): Rename to cfv12_alu_??.
9695         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9696         (cf_v2_mul_??): Remove reservations.
9697         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9698         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9699         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9700         appropriate place.
9701         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9702         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9703         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9704         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9705         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9706         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9707         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9708         expansions of the above reservations for instructions of sizes
9709         1, 2 and 3 words.
9710
9711 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9712
9713         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9714
9715 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9716
9717         * coverage.c: Include tree-pass.h.
9718         (coverage_counter_alloc): Print da_file_name to the dump file.
9719
9720 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9721
9722         * sbitmap.c (sbitmap_range_empty_p): New function.
9723         * sbitmap.h (sbitmap_range_empty_p): New function.
9724         * bitmap.h: Now includes obstack.h.
9725
9726 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9727             Kenneth Zadeck  <zadeck@naturalbridge.com>
9728
9729         * dbgcnt.def (ra_byte_scan): Added.
9730         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9731         when the last hit happens for a counter.  
9732         * timevar.def (TV_DF_BYTE_LR): New variable.
9733         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9734         * passes.c (pass_fast_rtl_byte_dce): New pass.
9735         * fwprop.c (update_df): Added mode to call df_ref_create.
9736         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9737         DF_REF_EXTRACT_OFFSET.
9738         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
9739         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9740         (df_mm): New enum.
9741         (df_ref_extract): Added mode field.
9742         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9743         DF_REF_EXTRACT_OFFSET.
9744         (DF_REF_EXTRACT_MODE): New macro.
9745         (df_byte_lr_bb_info): New structure.
9746         (df_print_byte_regset, df_compute_accessed_bytes, 
9747         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9748         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9749         df_byte_lr_simulate_uses,
9750         df_byte_lr_simulate_artificial_refs_at_top,
9751         df_byte_lr_simulate_artificial_refs_at_end,
9752         df_compute_accessed_bytes): New function.
9753         (df_ref_create): Add parameter.
9754         (df_byte_lr_get_bb_info): New inline function.
9755         * df-scan.c (df_ref_record, df_uses_record,
9756         df_ref_create_structure): Added mode parameter.
9757         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
9758         df_defs_record, df_uses_record, df_get_conditional_uses,
9759         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
9760         df_entry_block_defs_collect, df_exit_block_uses_collect):
9761         Added mode parameter to calls to df_ref_record, df_uses_record,
9762         df_ref_create_structure.
9763         (df_ref_equal_p, df_ref_compare): Added test for modes.
9764         (df_ref_create_structure): Added code to set mode.  Renamed
9765         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9766         DF_REF_EXTRACT_OFFSET.
9767         * df-core.c (df_print_byte_regset): New function.
9768         * df-byte-scan.c: New file.
9769         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9770         calls to BITMAP_FREE.  
9771         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9772         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9773         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
9774         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
9775         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9776         df_byte_lr_local_compute, df_byte_lr_init,
9777         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
9778         df_byte_lr_transfer_function, df_byte_lr_free, 
9779         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9780         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
9781         df_byte_lr_simulate_uses,
9782         df_byte_lr_simulate_artificial_refs_at_top,
9783         df_byte_lr_simulate_artificial_refs_at_end): New function.
9784         * dce.c (byte_dce_process_block): New function.
9785         (dce_process_block): au is now passed in rather than computed
9786         locally.  Changed loops that look at artificial defs to not look
9787         for conditional or partial ones, because there never are any.  
9788         (fast_dce): Now is able to drive byte_dce_process_block or 
9789         dce_process_block depending on the kind of dce being done.
9790         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9791         (rest_of_handle_fast_byte_dce): New function.
9792         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9793         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9794
9795 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9796
9797         PR fortran/35019
9798         * gcc.h: Added fortran options that take arguments to
9799         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9800         macros.
9801
9802 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9803
9804         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9805         scalarization if on the LHS and not a full access.
9806
9807 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9808
9809         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9810
9811 2008-04-18  Rafael Espindola  <espindola@google.com>
9812
9813         * tree-vrp.c (find_case_label_index): Fix the binary search.
9814         (find_case_label_range): New.
9815         (vrp_visit_switch_stmt): Use find_case_label_range.
9816         (simplify_switch_using_ranges): Use find_case_label_range.
9817
9818 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9819
9820         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9821         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9822
9823 2008-04-18  Tom Tromey  <tromey@redhat.com>
9824
9825         PR libcpp/15500:
9826         * doc/cpp.texi (Implementation-defined behavior): Mention
9827         -finput-charset.
9828
9829 2008-04-18  Ian Lance Taylor  <iant@google.com>
9830
9831         * fold-const.c (pointer_may_wrap_p): New static function.
9832         (fold_comparison): Add another test for pointer overflow.  Use
9833         pointer_may_wrap_p to disable some false positives.
9834
9835 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
9836           
9837         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9838         (fname_as_string): Match updated cpp_interpret_string prototype.
9839         (fix_string_type): Support char16_t* and char32_t*.
9840         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9841         derivative) nodes.  Register as builtin if C++0x.
9842         (c_parse_error): Support CPP_CHAR{16,32}.
9843         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
9844         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9845         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9846         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9847         CTI_CHAR32_ARRAY_TYPE>: New elements.
9848         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9849         char32_type_node, signed_char32_type_node, char16_array_type_node,
9850         char32_array_type_node): New defines.
9851         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9852         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9853         (lex_string): Support CPP_STRING{16,32}, match updated
9854         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9855         (lex_charconst): Support CPP_CHAR{16,32}.
9856         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9857         and CPP_STRING{16,32}.
9858
9859 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
9860
9861         PR bootstrap/35457
9862         * aclocal.m4: Regenerate.
9863         * configure: Regenerate.
9864
9865 2008-04-18  Jan Hubicka  <jh@suse.cz>
9866
9867         * except.c (dw2_size_of_call_site_table,
9868         sjlj_size_of_call_site_table): Use vector API for call_site_record.
9869
9870         * cgraphbuild.c (build_cgraph_edges): Update.
9871         * tree-pass.h: Update comment.
9872         * final.c (leaf_function_p): Update.
9873         (leaf_renumber_regs): Update.
9874         (rest_of_clean_state): Update.
9875         * omp-low.c (expand_omp_parallel): Update.
9876         * ipa-reference.c (analyze_function): Update.
9877         * reorg.c (find_end_label): Update.
9878         (optimize_skip): Update.
9879         (fill_simple_delay_slots): Update.
9880         (fill_simple_delay_slots): Update.
9881         (make_return_insns): Update.
9882         (dbr_schedule): Update.
9883         * gimple-low.c (record_vars_into): Update.
9884         * cfgbuild.c (make_edges): Update.
9885         * function.c (assign_stack_local): Update.
9886         (assign_parm_adjust_stack_rtl): Update.
9887         (locate_and_pad_parm): Update.
9888         (allocate_struct_function): Do not initialize stack_alignment_needed
9889         and preferred_stack_boundary here.
9890         (stack_protect_prologue): Update.
9891         (stack_protect_epilogue): Update.
9892         (expand_function_start): Initialize stack_alignment_needed,
9893         preferred_stack_boundary and max_jumptable_ents.
9894         (expand_function_end): Update.
9895         (free_after_compilation): Do not NULLify epilogue_delay_list.
9896         * function.h (struct rtl_data): Add stack_protect_guard,
9897         stack_alignment_needed,
9898         preferred_stack_boundary, epilogue_delay_list.
9899         (struct function): Remove value_histograms, stack_alignment_needed,
9900         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9901         last_label_uid,
9902         unexpanded_var_list, stack_protect_guard.
9903         (current_function_epilogue_delay_list): Remove.
9904         * ipa-type-escape.c (analyze_function): Update.
9905         * gimplify.c (pop_gimplify_context): Update comment.
9906         * calls.c (expand_call): Update.
9907         (emit_library_call_value_1): Update.
9908         * except.c (set_nothrow_function_flags): Update.
9909         * cfgexpand.c (get_decl_align_unit): Update.
9910         (create_stack_guard): Update.
9911         (estimated_stack_frame_size): Update.
9912         (expand_used_vars): Update.
9913         (tree_expand_cfg): Free histogram earliers, init expansion variables.
9914         * explow.c (allocate_dynamic_stack_space): Update.
9915         * tree-ssa-live.c (remove_unused_locals): Update.
9916         * varasm.c (mark_constant_pool): Update.
9917         * tree-inline.c (remap_decls): Update.
9918         (initialize_cfun): Update.
9919         (declare_return_variable): Update.
9920         (inline_forbidden_p): Update.
9921         (expand_call_inline): Update.
9922         (declare_inline_vars): Update.
9923         (tree_function_versioning): Update.
9924         * tree-flow.h (value_histograms): New.
9925         (VALUE_HISTOGRAMS): New macro.
9926         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9927         last_label_uid.
9928         * tree-cfg.c (set_bb_for_stmt): Update.
9929         (replace_by_duplicate_decl): Update.
9930         (move_block_to_fn): Update.
9931         (new_label_mapper): Update.
9932         (dump_function_to_file): Update.
9933         * ipa-struct-reorg.c (build_data_structure): Update.
9934         * cfgrtl.c (print_rtl_with_bb): Update.
9935         * reload1.c (reload): Update.
9936         (reload): Update.
9937         * config/i386/i386.c (setup_incoming_varargs_64,
9938         ix86_compute_frame_layout): Update.
9939         * config/arc/arc.c (arc_output_function_epilogue): Update.
9940
9941 2008-04-18  Marius Strobl <marius@FreeBSD.org>
9942
9943         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9944         for FreeBSD as well.
9945         * gthr-posix95.h: Likewise.
9946
9947 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
9948
9949         PR rtl-optimization/35838
9950         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9951         out the byte offset of the first subreg.
9952
9953 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
9954
9955         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9956         to split_ti instead of three separate calls with single member arrays.
9957         (subti3 splitter): Ditto.
9958         (adddi3 splitter): Ditto with split_di.
9959         (subdi3 splitter): Ditto.
9960         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9961         two separate calls with single member arrays.  Swap match_dup
9962         operands 1 and 2 to better fit into the array.
9963         (negdi2 splitter): Ditto with split_di.
9964         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
9965         two separate calls with single member arrays.  Swap match_dup operands
9966         6 and 7 to better fit into the array.
9967
9968 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9969
9970         * config/i386/i386.c (sse_builtin_type): New.
9971         (bdesc_sse_args): Likewise.
9972         (bdesc_sse_3arg): Removed.
9973         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9974         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9975         IX86_BUILTIN_ROUNDPS.
9976         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
9977         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
9978         IX86_BUILTIN_ROUNDPS.
9979         (ix86_expand_sse_4_operands_builtin): Removed.
9980         (ix86_expand_sse_operands_builtin): New.
9981         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9982         and CODE_FOR_sse4_1_roundps.
9983         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9984         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
9985
9986 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
9987
9988         PR target/35907
9989         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9990         regs before frame pop when needed.  If use_backchain_to_restore_sp
9991         then load backchain into a temp reg to restore vr and vrsave.  Add
9992         code to restore vr after frame pop if possible.
9993
9994 2008-04-17  Richard Guenther  <rguenther@suse.de>
9995
9996         * tree-vn.c (expressions_equal_p): Do not check type
9997         equality or compatibility before calling operand_equal_p.
9998         * fold-const.c (operand_equal_p): Check equivalence of
9999         integer constants before bailing out due to signedness or
10000         precision differences.
10001         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10002         spurious differences in type qualification.  Ignore types
10003         for COMPONENT_REFs at all.
10004
10005 2008-04-17  Christian Bruel  <christian.bruel@st.com>
10006
10007         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10008         msw_skip comparison.
10009         
10010 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
10011
10012         PR c/35739
10013         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10014         reg type.
10015
10016         PR tree-optimization/35899
10017         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10018         rather than TREE_OPERAND.
10019
10020 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
10021
10022         PR target/35944
10023         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10024         temporary registers.  Change operand predicate to general_operand.
10025         (remainderxf3): Ditto.
10026
10027 2008-04-16  Richard Guenther  <rguenther@suse.de>
10028
10029         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10030         * tree-affine.c (aff_combination_expand): Look through some
10031         conversions.
10032
10033 2008-04-15  Doug Kwan  <dougkwan@google.com>
10034
10035         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10036         for hex printing.
10037         * tree-pretty-print.c (dump_generic_node): Ditto.
10038         * final.c (output_addr_const): Ditto.
10039         * dwarf2out.c (output_cfi): Ditto.
10040         * c-pretty-print.c (pp_c_integer_constant): Ditto.
10041         * print-rtl.c (print_rtx): Ditto.
10042         * print-tree.c (print_node_brief, print_node): Ditto.
10043         * c-common.c (match_case_to_enum_1): Ditto.
10044         * sched-vis.c (print_value): Ditto.
10045         * config/i386/i386.c (print_operand): Cast to long unsigned int
10046         for hex printing.
10047
10048 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
10049         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
10050         MS Windows VirtualProtect function.
10051
10052 2008-04-15  Jan Hubicka  <jh@suse.cz>
10053
10054         * gengtype.c (write_root): Param_is argument is OK.
10055         * expr.c (expand_expr_real_1): Update call of get_exception_*.
10056         * function.h: Include varray.h
10057         (rtl_eh): New stucture based on except.c one.
10058         (call_site_record): New forward declaration and vector type.
10059         * calls.c (emit_call_1): Do not call
10060         note_current_region_may_contain_throw.
10061         * except.c (eh_status): Remove cur_region, try_region since they are
10062         unused.
10063         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10064         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10065         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
10066         Remove call_site_data_used, call_site_data_size.
10067         Turn call_site_record into vector in function.h.
10068         (note_current_region_may_contain_throw): Remove.
10069         (get_exception_pointer, get_exception_filter): Do not take struct
10070         function argument; update.
10071         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10072         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10073         build_post_landing_pads, dw2_build_landing_pads,
10074         sjlj_assign_call_site_values, sjlj_mark_call_sites,
10075         sjlj_emit_function_enter, sjlj_emit_function_enter, 
10076         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10077         sjlj_build_landing_pads, finish_eh_generation,
10078         remove_exception_handler_label, remove_eh_handler,
10079         maybe_remove_eh_handler, add_reachable_handler,
10080         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10081         add_action_record, collect_one_action_chain, add_call_site,
10082         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10083         sjlj_output_call_site_table, output_function_exception_table,
10084         * except.h (note_current_region_may_contain_throw): Remove
10085         (get_exception_pointer, get_exception_filter): Do not take struct
10086         function argument.
10087         * Makefile.in (GTFILES): Put varargs before struct function.
10088
10089 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10090
10091         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10092         punt for STRING_CST.
10093         (get_constraint_for): Deal with STRING_CST here instead.
10094
10095 2008-04-15  Richard Guenther  <rguenther@suse.de>
10096
10097         * tree-ssa-propagate.c (substitute_and_fold): Substitute
10098         statements in a basic-block with a backward walk.  Do not
10099         substitute into dead statements but instead remove those.
10100
10101 2008-04-15  Richard Guenther  <rguenther@suse.de>
10102
10103         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10104         to zero, thus disable creation of SFTs.
10105
10106 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10107
10108         * tree-predcom.c (suitable_reference_p): Return false if the
10109         reference can throw.
10110
10111 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
10112
10113         PR c/35751
10114         * c-decl.c (finish_decl): If extern or static var has variable
10115         size, set TREE_TYPE (decl) to error_mark_node.
10116
10117 2008-04-15  Rafael Espindola  <espindola@google.com>
10118
10119         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10120         variable arg1.
10121
10122 2008-04-15  Richard Guenther  <rguenther@suse.de>
10123
10124         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10125         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10126         (visit_reference_op_load): Do walk vuse-vdef chains on
10127         vn_reference_lookup.
10128         (visit_reference_op_store): But do not here.
10129         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10130         vn_reference_lookup.
10131         (vn_lookup_with_vuses): But do so here.
10132
10133 2008-04-14  Ian Lance Taylor  <iant@google.com>
10134
10135         * fold-const.c (fold_overflow_warning): Remove assertion.
10136
10137 2008-04-15  Ben Elliston  <bje@au.ibm.com>
10138
10139         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10140         temp1 local variables.
10141
10142 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
10143
10144         PR target/35661
10145         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10146         ".text.unlikely" section as executable.
10147
10148 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
10149
10150         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10151         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10152         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10153         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10154         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10155         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10156         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10157
10158 2008-04-14  Ian Lance Taylor  <iant@google.com>
10159
10160         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10161         * fold-const.c (fold_comparison): If appropriate, test
10162         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10163         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10164         reassociating a pointer type.
10165         * doc/invoke.texi (Optimize Options): Document that
10166         -fstrict-overflow applies to pointer wraparound.
10167
10168 2008-04-13  Jan Hubicka  <jh@suse.cz>
10169
10170         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10171
10172 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10173
10174         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10175         we are going to "save the world".
10176
10177 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10178
10179         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10180         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10181         operand 0 constraint, not "=".
10182
10183 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10184
10185         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10186
10187 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10188
10189         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10190         of size of positions_needed * CHAR_BIT.
10191
10192 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10193
10194         PR middle-end/35897
10195         * dse.c (store_info): Change positions_needed to unsigned
10196         HOST_WIDE_INT.
10197         (lowpart_bitmask): New.
10198         (record_store): Cast to unsigned HOST_WIDE_INT for
10199         positions_needed.  Assert width <= size of positions_needed *
10200         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10201         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10202         lowpart_bitmask to set mask.
10203
10204 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10205
10206         * config/bfin/constraints.md: New file.
10207         * config/bfin/bfin.md: Include it.
10208         (adddi3): Use satisfies_constraint functions instead of the old macros.
10209         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10210         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10211         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10212         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10213         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10214         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10215         EXTRA_CONSTRAINT): Delete.
10216         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10217         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10218         of the old macros.
10219         * config/bfin/bfin.c: Include "tm-constrs.h".
10220         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10221         Use satisfies_constraint functions instead of the old macros.
10222         * doc/md.texi (Blackfin Constraints): Update file name reference.
10223
10224 2008-04-11  Richard Guenther  <rguenther@suse.de>
10225
10226         PR tree-optimization/35869
10227         * tree-vrp.c (execute_vrp): Move switch statement update after
10228         jump threading.  Schedule another cfg cleanup run.
10229
10230 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10231
10232         PR c/35744
10233         * attribs.c (decl_attributes): Return early on errorneous node.
10234
10235 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10236
10237         * tree.h (struct tree_base): Added a new flag default_def_flag.
10238         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10239
10240 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10241
10242         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10243
10244 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10245
10246         PR target/35768
10247         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10248         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10249         (icacheflush): Likewise.
10250         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10251         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10252
10253 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10254
10255         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10256
10257 2008-04-10  Rafael Espindola  <espindola@google.com>
10258
10259         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10260         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10261         (extract_range_from_expr): The same.
10262
10263 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10264
10265         * config/mips/mips.md (GPR2): New mode iterator.
10266         (seq): Add comment.
10267         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10268         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10269         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10270         Rewrite these to take two modes, the mode of comparison and the
10271         mode of the destination.
10272         * config/mips/mips.c (mips_expand_scc): Instead of having
10273         paradoxical subreg as destination, expand "narrowing" scc if mode
10274         of comparison is SI and target is requested in DI mode.
10275         (mips_emit_int_order_test): Update comment.  Make mode of
10276         comparison match CMP0 rather than TARGET.  When creating inverse
10277         target use mode of TARGET.
10278
10279 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10280
10281         * gcov-dump.c (tag_summary): Only print summaries for the first
10282         GCOV_COUNTERS_SUMMABLE counters.
10283
10284 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10285
10286         * config/i386/i386.md (absneg): New code iterator.
10287         (absnegprefix): New code attribute.
10288         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10289         patterns using absneg code iterator.
10290         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10291         using absneg code iterator.
10292         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10293         *neg<mode>2 patterns using absneg code iterator.
10294         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10295         *negextendsfdf2 patterns using absneg code iterator.
10296         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10297         *negextendsfxf2 patterns using absneg code iterator.
10298         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10299         *negextendsfdf2 patterns using absneg code iterator.
10300         * config/i386/sse.md (<code><mode>2): Macroize expander from
10301         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
10302
10303 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10304
10305         * config/s390/s390.h: Remove the remains of the recent search
10306         & replace action of current_function_outgoing_args_size.
10307
10308 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10309
10310         PR tree-optimization/35821
10311         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10312         NEW_STMT_LIST is not NULL.
10313
10314 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10315
10316         PR libstdc++/35597
10317         * toplev.c (process_options): Remove -ffunction-sections debugging
10318         warning.
10319
10320 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10321
10322         PR middle-end/PR28690
10323         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10324         than gen_rtx_fmt_ee to perform more canonicalizations.
10325
10326 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10327
10328         PR driver/35665
10329         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10330
10331 2008-04-09  Richard Guenther  <rguenther@suse.de>
10332
10333         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10334         (dump_function_to_file): Dump function arguments with types.
10335
10336 2008-04-08  Richard Guenther  <rguenther@suse.de>
10337
10338         * fold-const.c (fold_widened_comparison): Do not allow
10339         sign-changes that change the result.
10340
10341 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10342
10343         PR target/35839
10344         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10345         kinds of indirect references.
10346
10347 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10348
10349         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10350         GNU Fortran language string.
10351
10352 2008-04-08  Rafael Espindola  <espindola@google.com>
10353
10354         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10355         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10356         * tree.h (tree_call_nonnegative_warnv_p): New.
10357
10358 2008-04-08  Jan Hubicka  <jh@suse.cz>
10359
10360         * function.c (free_after_compilation): Clear out regno_reg_rtx
10361         pointer.
10362
10363 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10364
10365         Revert
10366         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10367
10368         PR middle-end/PR28690
10369         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10370         same precedence as REG_POINTER and MEM_POINTER operands.
10371
10372 2008-04-08  Richard Guenther  <rguenther@suse.de>
10373
10374         PR middle-end/35834
10375         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10376         for adding index to base.
10377
10378 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10379
10380         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10381         (MINGW_ENABLE_EXECUTE_STACK): New.
10382         (IN_LIBGCC2): For libgcc include windows.h file for
10383         function declarations.
10384
10385 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10386
10387         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10388         and tem2 if tem1 is not a REG or MULT.
10389
10390 2008-04-08  Jan Hubicka  <jh@suse.cz>
10391
10392         * function.h (incomming_args): Break out of struct function.
10393         (function_subsections): Break out of struct function.
10394         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10395         return_rtx and hard_reg_initial_vals from struct function.
10396         Kill inl_max_label_num.
10397         (current_function_pops_args, current_function_args_info,
10398         current_function_args_size, current_function_args_size,
10399         current_function_pretend_args_size,
10400         current_function_outgoing_args_size,
10401         current_function_internal_arg_pointer, current_function_return_rtx):
10402         Kill compatibility accestor macros.
10403         * builtins.c (expand_builtin_apply_args_1): Update.
10404         (expand_builtin_next_arg): Update.
10405         * df-scan.c (df_get_call_refs): Update.
10406         * dbxout.c (dbxout_function_end): Update.
10407         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10408         (output_line_info): Update.
10409         (secname_for_decl): Update.
10410         (dwarf2out_var_location): Update.
10411         * function.c (free_after_compilation): Update.
10412         (assign_parm_find_stack_rtl): Update.
10413         (assign_parms): Update.
10414         (expand_dummy_function_end): Update.
10415         (expand_function_end): Update.
10416         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10417         (expand_call): Update.
10418         (emit_library_call_value_1): Update.
10419         (store_one_arg): Update.
10420         * varasm.c (initialize_cold_section_name): Update.
10421         (unlikely_text_section): Update.
10422         (unlikely_text_section_p): Update.
10423         (assemble_start_function): Update.
10424         (assemble_end_function): Update.
10425         (default_section_type_flags): Update.
10426         (switch_to_section): Update.
10427         * integrate.c (set_decl_abstract_flags): Update.
10428         (get_hard_reg_initial_val): Update.
10429         (has_hard_reg_initial_val): Update.
10430         (allocate_initial_values): Update.
10431         * resource.c (init_resource_info): Update.
10432         * config/alpha/alpha.c (NUM_ARGS): Update.
10433         (direct_return): Update.
10434         (alpha_va_start): Update.
10435         (alpha_sa_size): Update.
10436         (alpha_initial_elimination_offset): Update.
10437         (alpha_expand_prologue): Update.
10438         (alpha_start_function): Update.
10439         (alpha_expand_epilogue): Update.
10440         (unicosmk_initial_elimination_offset):
10441         * config/alpha/alpha.md (call expander): Update.
10442         * config/s390/s390.c (s390_register_info): Update.
10443         (s390_register_info): Update.
10444         (s390_frame_info): Update.
10445         (s390_initial_elimination_offset): Update.
10446         (s390_build_builtin_va_list): Update.
10447         (s390_va_start): Update.
10448         * config/spu/spu.c (direct_return): Update.
10449         (spu_expand_prologue): Update.
10450         (spu_initial_elimination_offset): Update.
10451         (spu_build_builtin_va_list): Update.
10452         (spu_va_start): Update.
10453         * config/sparc/sparc.c (sparc_init_modes): Update.
10454         (sparc_compute_frame_size): Update.
10455         (function_value): Update.
10456         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10457         * config/i386/i386.md (return expander): Update.
10458         * config/i386/i386.c (ix86_va_start): Update.
10459         (ix86_can_use_return_insn_p): Update.
10460         (ix86_compute_frame_layout): Update.
10461         (ix86_expand_epilogue): Update.
10462         * config/sh/sh.c (output_stack_adjust): Update.
10463         (calc_live_regs): Update.
10464         (sh_expand_prologue): Update.
10465         (sh_builtin_saveregs): Update.
10466         (sh_va_start): Update.
10467         (initial_elimination_offset): Update.
10468         (sh_allocate_initial_value): Update.
10469         (sh_function_ok_for_sibcall): Update.
10470         (sh_get_pr_initial_val): Update.
10471         * config/sh/sh.md (return expander): Update.
10472         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10473         * config/crx/crx.c (crx_compute_frame): UPdate.
10474         (crx_initial_elimination_offset): UPdate.
10475         * config/xtensa/xtensa.c (compute_frame_size): Update
10476         (xtensa_builtin_saveregs): Update.
10477         (xtensa_va_start): Update.
10478         (order_regs_for_local_alloc): Update.
10479         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10480         (xstormy16_expand_builtin_va_start): Update.
10481         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10482         * config/m68hc11/m68hc11.md (return expanders): Update.
10483         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10484         (expand_epilogue): Update.
10485         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10486         (cris_simple_epilogue): Update.
10487         (cris_expand_prologue): Update.
10488         (cris_expand_epilogue): Update.
10489         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10490         (compute_frame_size): Update.
10491         * config/mt/mt.c (mt_compute_frame_size): Update.
10492         * config/mn10300/mn10300.c (expand_prologue): Update.
10493         (expand_epilogue): Update.
10494         (initial_offset): Update.
10495         (mn10300_builtin_saveregs):
10496         * config/mn10300/mn10300.md (return expander): Update.
10497         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10498         (ia64_initial_elimination_offset): Update.
10499         (ia64_initial_elimination_offset): Update.
10500         (ia64_expand_prologue): Update.
10501         * config/m68k/m68k.md (return expander): Update.
10502         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10503         (rs6000_stack_info): Update.
10504         * config/mcore/mcore.c (layout_mcore_frame): Update.
10505         (mcore_expand_prolog): Update.
10506         * config/arc/arc.c (arc_compute_frame_size): Update.
10507         * config/score/score3.c (score3_compute_frame_size): Update.
10508         * config/score/score7.c (score7_compute_frame_size): Update.
10509         * config/arm/arm.c (use_return_insn): Update.
10510         (thumb_find_work_register): Update.
10511         (arm_compute_save_reg_mask): Update.
10512         (arm_output_function_prologue): Update.
10513         (arm_output_epilogue): Update.
10514         (arm_size_return_regs): Update.
10515         (arm_get_frame_offsets): Update.
10516         (arm_expand_prologue): Update.
10517         (thumb_exit): Update.
10518         (thumb_unexpanded_epilogue): Update.
10519         (thumb1_output_function_prologue): Update.
10520         * config/pa/pa.md (return expander): Update.
10521         * config/pa/pa.c (compute_frame_size): Update.
10522         (hppa_builtin_saveregs): Update.
10523         * config/mips/mips.c (mips_va_start): Update.
10524         (mips16_build_function_stub): Update.
10525         (mips_compute_frame_info): Update.
10526         (mips_restore_gp): Update.
10527         (mips_output_function_prologue): Update.
10528         (mips_expand_prologue): Update.
10529         * config/v850/v850.c (compute_frame_size): Update.
10530         (expand_prologue): * config/mmix/mmix.c (along): update.
10531         (mmix_initial_elimination_offset): update.
10532         (mmix_reorg): update.
10533         (mmix_use_simple_return): update.
10534         (mmix_expand_prologue): update.
10535         (mmix_expand_epilogue): Update.
10536         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10537         (emit_link_insn): Update.
10538
10539 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10540
10541         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
10542         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
10543         instructions.
10544         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
10545         atmega103 device.
10546
10547 2008-04-07  Jan Hubicka  <jh@suse.cz>
10548
10549         * function.h (rtl): Rename to x_rtl.
10550         (crtl): New define.
10551         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10552         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10553         used_temp_slots avail_temp_slots, temp_slot_level,
10554         nonlocal_goto_handler_labels): Update accesstors.
10555         (rtl): New global variable.
10556         (struct function): Move some fileds to rtl_data.
10557         (get_arg_pointer_save_area): Update prototype.
10558         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10559         get_arg_pointer_save_area.
10560         * expr.c (init_expr): Update
10561         * function.c (get_frame_size): Update
10562         (assign_stack_local): Update
10563         (expand_function_end): Update.
10564         (get_art_pointer_save_area): Update
10565         * function.h 
10566         * emit-rtl.c (rtl): Declare.
10567         (regno_reg_rtx): Declare.
10568         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10569         Update.
10570         (gen_reg_rtx): Update.
10571         * varasm.c (n_deferred_constatns): Update accestor.
10572         (init_varasm_status): Do not allocate varasm_status.
10573         (force_const_mem, get_pool_size, output_constant_pool): Update.
10574         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10575         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10576         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10577         * sparc/sparc.h (INIT_EXPANDERS): Update.
10578         * ia64/ia64.h (INIT_EXPANDERS): Update.
10579
10580 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10581
10582         * reload.c (push_secondary_reload): Add missing break to for loop.
10583
10584 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10585
10586         PR middle-end/PR28690
10587         * rtlanal.c: Update copyright years.
10588         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10589         as REG_POINTER and MEM_POINTER operands.
10590         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10591         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10592         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10593         * gcse.c: Update copyright years.
10594         (pre_delete): Call gen_reg_rtx_and_attrs.
10595         (hoist_code): Likewise.
10596         (build_store_vectors): Likewise.
10597         (delete_store): Likewise.
10598         * loop-invariant.c (move_invariant_reg): Likewise.
10599         Update copyright years.
10600
10601 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10602
10603         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10604         control string instead of quoted.
10605
10606 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10607
10608         * doc/rtl.texi: Rewrite of subreg section.
10609
10610 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10611
10612         PR/35842
10613         * config/i386/i386.c (legitimize_pic_address): Add treating
10614         of dllimport SYM_REF's.
10615         (legitimize_dllimport_symbol): Add prototype.
10616
10617 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10618
10619         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10620         reference in constructor with non self-referential type.
10621
10622 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10623
10624         Removal of Return with Depressed Stack Pointer support
10625         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10626         (ECF_SP_DEPRESSED): Likewise.
10627         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10628         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10629         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10630         (expand_call): Do not test ECF_SP_DEPRESSED.
10631         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10632         * function.c (keep_stack_depressed): Delete.
10633         (handle_epilogue_set): Likewise.
10634         (update_epilogue_consts): Likewise.
10635         (emit_equiv_load): Likewise.
10636         (thread_prologue_and_epilogue_insns): Remove support for Return with
10637         Depressed Stack Pointer.
10638         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10639
10640 2008-04-06  Richard Guenther  <rguenther@suse.de>
10641
10642         PR tree-optimization/35400
10643         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10644         information from SSA_NAMEs.
10645
10646 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10647
10648         * config/avr/avr.h (avr_mega_p): Remove declaration.
10649         (AVR_MEGA): Remove macro.
10650         * config/avr/avr.c (avr_mega_p): Remove variable.
10651         (avr_override_options): Remove inicializion of avr_mega_p.
10652         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10653         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10654         (avr_jump_mode): (Ditto.).
10655         (avr_output_progmem_section_asm_op): (Ditto.).
10656         (avr_asm_init_sections): (Ditto.).
10657         (avr_asm_init_sections): (Ditto.).
10658         (avr_rtx_costs): (Ditto.).
10659         * config/avr/avr.md: (Ditto.).
10660         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
10661         '__AVR_MEGA__'.
10662
10663 2008-04-06  Richard Guenther  <rguenther@suse.de>
10664
10665         PR tree-optimization/35842
10666         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10667         is_gimple_invariant_address.
10668
10669 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10670
10671         * gcc.c (default_compilers): Sync Fortran extensions list with
10672         that in fortran/lang-specs.h.
10673         * doc/invoke.texi: Likewise.
10674         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10675         * dwarf2out.c (gen_compile_unit_die): Likewise.
10676
10677 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10678
10679         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10680
10681 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10682
10683         PR target/12329
10684         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10685         attribute is used for nested functions.
10686
10687 2008-04-05  Jan Hubicka  <jh@suse.cz>
10688
10689         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10690
10691         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10692         letter argument.
10693         (dump_files): Update.
10694         (enable_rtl_dump_file): Do not accept letter argument.
10695         * tree-pass.h (dump_file_info): Remove letter argument.
10696         * toplev.c (decode_d_option): Update -da handling.
10697         * toplev.h (enable_rtl_dump_file): Update prototype.
10698         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10699         it out based on pass type.
10700         (register_dump_files_1): Likewise.
10701         (init_optimization_passes): Update register_one_dump_file calls.
10702         (execute_one_pass): Sanity check that IPA passes are called at IPA
10703         level and RTL passes at RTL level.
10704         (execute_pass_list): IPA pass can not be after or subpass of
10705         GIMPLE/RTL pass.
10706         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10707         disallov RTL subpasses of IPA subpasses.
10708
10709 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10710
10711         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10712         builtins that return exactly once and do not throw. Cache call to
10713         call_expr_flags.
10714
10715 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10716
10717         PR rtl-optimization/34916
10718         PR middle-end/35519
10719         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10720         between instruction pairs.
10721
10722 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10723
10724         * doc/invoke.texi: Document -mbitops for SH.
10725         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10726         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10727         * config/sh/sh.c (print_operand): Add %t operand code.
10728         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10729         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10730         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10731         (extendqihi2): Likewise.
10732         (movqi_i): Likewise.
10733         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10734         (extv): Use bld instruction for SH2A if possible.
10735         (extzv): Likewise.
10736         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10737         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10738         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10739         (bset.b, bclr.b): Define peepholes.
10740         * config/sh/sh.opt (mbitops): New option.
10741
10742 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10743
10744         PR target/35620
10745         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10746         and view convert expression.
10747
10748 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10749
10750         PR target/35364
10751         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10752
10753 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10754
10755         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10756
10757         * config/i386/cpuid.h (bit_AES): New.
10758         (bit_PCLMUL): Likewise.
10759
10760         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10761         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10762         SSE2 if AES or PCLMUL is enabled.
10763         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10764         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10765         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10766         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10767         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10768         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10769         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10770         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10771         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10772         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10773         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10774         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10775         __builtin_ia32_aeskeygenassist128 and
10776         __builtin_ia32_pclmulqdq128.
10777         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10778         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10779         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10780
10781         * config/i386/i386.h (TARGET_AES): New.
10782         (TARGET_PCLMUL): Likewise.
10783         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10784
10785         * config/i386/i386.md (UNSPEC_AESENC): New.
10786         (UNSPEC_AESENCLAST): Likewise.
10787         (UNSPEC_AESDEC): Likewise.
10788         (UNSPEC_AESDECLAST): Likewise.
10789         (UNSPEC_AESIMC): Likewise.
10790         (UNSPEC_AESKEYGENASSIST): Likewise.
10791         (UNSPEC_PCLMUL): Likewise.
10792
10793         * config/i386/i386.opt (maes): New.
10794         (mpclmul): Likewise.
10795
10796         * config/i386/sse.md (aesenc): New pattern.
10797         (aesenclast): Likewise.
10798         (aesdec): Likewise.
10799         (aesdeclast): Likewise.
10800         (aesimc): Likewise.
10801         (aeskeygenassist): Likewise.
10802         (pclmulqdq): Likewise.
10803
10804         * config/i386/wmmintrin.h: New.
10805
10806         * doc/extend.texi: Document AES and PCLMUL built-in function.
10807
10808         * doc/invoke.texi: Document -maes and -mpclmul.
10809
10810 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
10811
10812         * function.c (free_after_parsing): Replace with
10813         cxx_push_function_context from C++ front-end.
10814         (allocate_struct_function): Don't call langhook.
10815         * langhooks.h (struct lang_hooks_for_functions): Delete.
10816         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10817         member "function".
10818         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10819         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10820         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10821         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10822         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10823         remove LANG_HOOKS_FUNCTION_INITIALIZER.
10824         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10825
10826         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10827         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10828         
10829 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10830
10831         PR c/35440
10832         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10833         for all types.
10834
10835 2008-04-04  Richard Guenther  <rguenther@suse.de>
10836
10837         PR middle-end/35823
10838         * fold-const.c (optimize_minmax_comparison): Use the correct
10839         type for the constant in the simplified comparison.
10840
10841 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
10842
10843         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10844         Pass L2 size as "--param l2-cache-size" to the compiler.
10845         (decode_l2_cache): New function to decode L2 cache parameters using
10846         0x8000006 extended cpuid function.
10847         (detect_caches_amd): Determine parameters of L2 cache using
10848         decode_l2_caches function.
10849         (decode_caches_intel): Decode L2 cache parameters.
10850         (detect_caches_intel): Determine L2 cache parameters using
10851         decode_caches_intel and decode_l2_caches functions.
10852
10853 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
10854
10855         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10856         secondary input reload for subword loads from the constant pool.
10857
10858 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
10859
10860         PR target/35713
10861         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10862           constants of the appropriate size for runtime calculations.
10863
10864         PR c/35712
10865         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10866           decimal-float literal constant zero.
10867
10868 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
10869
10870         PR c/35738
10871         * c-parser.c (c_parser_omp_atomic): Call
10872         default_function_array_conversion on the RHS.
10873
10874         PR middle-end/35818
10875         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10876         call is_variable_sized if decl has incomplete type.
10877
10878 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
10879
10880         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10881
10882 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
10883
10884         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10885         iterators.
10886         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10887         (sgt<u>): Merge sgt and sgtu into new expander.
10888         (sgt, sgtu): Remove expanders.
10889         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10890         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10891         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10892         *sgtu_<mode>_mips16 into new pattern.
10893         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10894         (sge<u>): Merge sge and sgeu into new expander.
10895         (sge, sgeu): Remove expanders.
10896         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10897         new pattern.
10898         (*sge_<mode>, second *sge_<mode>): Remove patterns.
10899         (slt<u>): Merge slt and sltu into new expander.
10900         (slt, sltu): Remove expanders.
10901         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10902         (*slt_<mode>, *sltu_<mode>): Remove patterns.
10903         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10904         *sltu_<mode>_mips16 into new pattern.
10905         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10906         (sle<u>): Merge sle and sleu into new expander.
10907         (sle, sleu): Remove expanders.
10908         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10909         (*sle_<mode>, *sleu_<mode>): Remove patterns.
10910         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10911         *sleu_<mode>_mips16 into new pattern.
10912         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10913
10914 2008-04-03  Jan Hubicka  <jh@suse.cz>
10915
10916         PR tree-optimization/35795
10917         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10918         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10919         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10920         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10921         * score/score3.c (score3_output_mi_thunk): Likewise.
10922         * score/score7.c (score7_output_mi_thunk): Likewise.
10923         * mips/mips.c (mips_output_mi_thunk): Likewise.
10924
10925 2008-04-03  Richard Guenther  <rguenther@suse.de>
10926
10927         * tree-vrp.c (extract_range_from_unary_expr): Handle all
10928         conversions.  Simplify code.
10929
10930 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10931
10932         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10933
10934 2008-04-03  Tom Tromey  <tromey@redhat.com>
10935             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10936
10937         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10938         * config/bfin/t-bfin-linux (generated_files): Add
10939         linux-sysroot-suffix.h.
10940         * doc/install.texi (Prerequisites): Require make 3.80.
10941         * doc/sourcebuild.texi (Front End Directory): Document new
10942         variable.
10943         * Makefile.in (generated_files): New variable.
10944         (ALL_HOST_OBJS): New variable.
10945         ($(ALL_HOST_OBJS)): New target.
10946
10947 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10948
10949         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10950         (remap_block): Call id->transform_lang_insert_block instead
10951         of langhook.
10952         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10953         Set id.transform_lang_insert_block to NULL.
10954         (clone_body): Move to cp/optimize.c
10955         * tree-inline.h (struct copy_body_data): Change
10956         transform_lang_insert_block to function pointer.
10957         (copy_generic_body, copy_decl_no_change): Export.
10958         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10959         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10960         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10961
10962         * c-tree.h (insert_block): Kill.
10963         * c-decl.c (insert_block): Kill.
10964
10965 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10966
10967         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10968         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10969         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10970         argument.
10971         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10972         argument, call {push,pop}_function_context from here.
10973         * c-parser.c: Use c_{push,pop}_function_context.
10974
10975         * function.c (push_function_context_to): Move meat ...
10976         (push_function_context): ... here.  Simplify.
10977         * function.c (pop_function_context_from): Move meat ...
10978         (pop_function_context): ... here.  Simplify.
10979         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10980         leave_nested).
10981         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10982         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10983         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10984         * tree.h (push_function_context_to, pop_function_context_from): Remove.
10985
10986 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10987
10988         * expmed.c (extract_force_align_mem_bit_field): Remove.
10989
10990 2008-04-03  Richard Guenther  <rguenther@suse.de>
10991
10992         PR middle-end/35800
10993         * expr.h (try_casesi): Adjust prototype.
10994         * expr.c (try_casesi): Take fallback label as extra parameter.
10995         Use that for gen_casesi if default_label is NULL.
10996         * stmt.c (expand_case): Pass fallback label to try_casesi,
10997         make sure to fill gaps with a fallback label if default_label
10998         is not present.
10999
11000 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
11001
11002         PR target/35801
11003         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11004
11005 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11006
11007         * expmed.c (extract_split_bit_field): Remove if (0) code.
11008         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11009         (do_ds_constraint): Likewise.
11010
11011 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
11012
11013         * doc/cppopts.texi (-dU): Document.
11014         * c-common.h (flag_dump_macros): Update comment.
11015         * c-opts.c (handle_OPT_d): Handle -dU.
11016         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11017         dump_queued_macros, cb_used_define, cb_used_undef): New.
11018         (init_pp_output): Handle -dU.
11019         (cb_line_change): Call dump_queued_macros.
11020         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11021
11022 2008-04-02  Anatoly Sokolov <aesok@post.ru>
11023
11024         * config/avr/predicates.md (io_address_operand): New predicate. 
11025         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11026         * config/avr/avr.c (avr_io_address_p): Remove function.
11027         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
11028         'avr_io_address_p' function.
11029         (out_movhi_r_mr): (Ditto.).
11030         (out_movqi_mr_r): (Ditto.).
11031         (out_movhi_mr_r): (Ditto.).
11032         (avr_address_cost): (Ditto.).
11033
11034 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
11035
11036         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11037         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11038         in 32bit mode when XMM registers are available to avoid store
11039         forwarding stalls.
11040         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11041         corresponding post-reload splitters.
11042
11043 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11044
11045         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11046         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
11047         __builtin_ia32_roundss.
11048         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11049         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11050         __builtin_ia32_roundss.
11051         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11052         IX86_BUILTIN_SHUFPD here.
11053
11054 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11055
11056         * config/i386/i386.md (plogic): New.
11057         (plogicprefix): Likewise.
11058
11059         * config/i386/mmx.md (mmx_<code><mode>3): New.
11060         (mmx_and<mode>3): Removed.
11061         (mmx_ior<mode>3): Likewise.
11062         (mmx_xor<mode>3): Likewise.
11063
11064         * config/i386/sse.md (<code><mode>3): New.
11065         (*<code><mode>3): Likewise.
11066         (*<code><mode>3): Likewise.
11067         (<code><mode>3): Likewise.
11068         (*sse_<code><mode>3): Likewise.
11069         (*sse2_<code><mode>3): Likewise.
11070         (<code>tf3): Likewise.
11071         (*<code>tf3): Likewise.
11072         (and<mode>3): Likewise.
11073         (*and<mode>3): Likewise.
11074         (ior<mode>3): Removed.
11075         (*ior<mode>3): Likewise.
11076         (xor<mode>3): Likewise.
11077         (*xor<mode>3): Likewise.
11078         (*and<mode>3): Likewise.
11079         (*ior<mode>3): Likewise.
11080         (*xor<mode>3): Likewise.
11081         (and<mode>3): Likewise.
11082         (*sse_and<mode>3): Likewise.
11083         (*sse2_and<mode>3): Likewise.
11084         (andtf3): Likewise.
11085         (*andtf3): Likewise.
11086         (ior<mode>3): Likewise.
11087         (*sse_ior<mode>3): Likewise.
11088         (*sse2_ior<mode>3): Likewise.
11089         (iortf3): Likewise.
11090         (*iortf3): Likewise.
11091         (xor<mode>3): Likewise.
11092         (*sse_xor<mode>3): Likewise.
11093         (*sse2_xor<mode>3): Likewise.
11094         (xortf3): Likewise.
11095         (*xortf3): Likewise.
11096
11097 2008-04-02  Richard Guenther  <rguenther@suse.de>
11098
11099         PR tree-optimization/14495
11100         PR tree-optimization/34793
11101         * tree-vrp.c (struct switch_update): New structure.
11102         (to_remove_edges, to_update_switch_stmts): New VECs.
11103         (simplify_switch_using_ranges): New function.  Remove not taken
11104         case labels and edges.
11105         (simplify_stmt_using_ranges): Call it.
11106         (identify_jump_threads): Mark edges we have queued for removal
11107         so we don't thread them.
11108         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11109         case label vector.
11110         * tree-cfg.c (group_case_labels): Deal with missing default label.
11111         (tree_verify_flow_info): Allow missing default label.
11112         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11113         (emit_case_nodes): Likewise.
11114         (expand_case): Do not rely on the default label to be present.
11115         * expr.c (try_casesi): Deal with NULL default_label.
11116         (do_tablejump): Likewise.
11117
11118 2008-04-02  Richard Guenther  <rguenther@suse.de>
11119
11120         PR tree-optimization/14495
11121         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11122         SWITCH_EXPR here ...
11123         (vrp_visit_switch_stmt): ... but here (new function).
11124         (find_case_label_index): New helper function.
11125         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11126
11127 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11128
11129         * fwprop.c: Fix ISO-C99ism.
11130
11131 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11132
11133         PR bootstrap/35752
11134         * Makefile.in (objdir): Set it here.
11135         * configure.ac: Not here.  Find dynamic linker characteristics.
11136         * exec-tool.in: Use them.
11137         * aclocal.m4: Regenerate.
11138         * configure: Regenerate.
11139
11140 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11141
11142         * expr.c (expand_var): Delete it.
11143         * expr.h (expand_var): Delete prototype.
11144         * function.c (expand_function_start): Use expand_decl instead.
11145         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11146         langhook.
11147
11148 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
11149
11150         PR rtl-optimization/35542
11151         * fwprop.c (forward_propagate_and_simplify): Replace
11152         loc_reg_mentioned_in_p with reg_mentioned_p.
11153
11154 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11155
11156         PR rtl-optimization/35281
11157         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11158         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11159         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11160         (varying_mem_p): Move above propagate_rtx.
11161         (all_uses_available_at): Do not check MEMs.
11162
11163 2008-04-02  Rafael Espindola  <espindola@google.com>
11164
11165         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11166         (register_edge_assert_for_2): Split the cond argument.
11167         (register_edge_assert_for_1): Adjust for the change in
11168         register_edge_assert_for_2.
11169         (register_edge_assert_for): Split the cond argument.
11170         (find_switch_asserts): Adjust for the change in
11171         register_edge_assert_for.
11172
11173 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11174
11175         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11176         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11177         offsets for 64-bit mingw.
11178         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11179         abi for x86_64-pc-mingw.
11180
11181 2008-04-02  Richard Guenther  <rguenther@suse.de>
11182
11183         * tree-vrp.c (extract_range_from_assert): Make sure to not
11184         produce range min/max with TREE_OVERFOW set.
11185         If merging a anti-range and a range keep the anti-range if
11186         the range covers all values of the type.
11187         (register_edge_assert_for_2): Only allow sign-changing
11188         conversions in detecting canonical range checks.  Also
11189         register an assert for the unsigned name if useful.
11190
11191         PR tree-optimization/35787
11192         * tree-vrp.c (vrp_val_max): New function.
11193         (vrp_val_min): Likewise.
11194         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11195         (vrp_val_is_min): Likewise.
11196         (supports_overflow_infinity): Use vrp_val_{min,max}.
11197         (negative_overflow_infinity): Likewise.
11198         (positive_overflow_infinity): Likewise.
11199         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11200         (is_positive_overflow_infinity): Likewise.
11201         (is_overflow_infinity): Likewise.
11202         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11203         vrp_val_is_{min,max}.
11204         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11205         to ranges if possible.  Avoid empty ranges.
11206
11207 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11208
11209         PR middle-end/35705
11210         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11211         the expression is a function address.
11212
11213 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11214
11215         PR fortran/35154, fortran/23057
11216         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11217         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11218         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11219         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11220         in common.
11221         (dbxout_syms): Check for COMMON-based symbol and wrap in
11222         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11223         in bracket for efficiency.
11224
11225         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11226         using DW_TAG_common_block + member offset.
11227         (add_pubname_string): New function.
11228         (dw_expand_expr): New function to find block name and offset for
11229         COMMON var.
11230         (common_check): New function to check whether symbol in Fortran COMMON.
11231         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11232
11233 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11234
11235         PR c/35436
11236         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11237
11238 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11239
11240         * config/v850/v850.md (casesi): Remove if (0) code.
11241         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11242         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11243
11244 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11245
11246         * config/i386/i386.md (rex64suffix): New mode attribute.
11247         (floathi<mode>2): Disable expander for SSE math.
11248         (*floathi<mode>2_1): New insn insn_and_split pattern.
11249         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11250         corresponding post-reload splitters.
11251         (*floathi<mode>2_i387): New macroized insn pattern.
11252         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11253         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11254         insn_and_split pattern.
11255         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11256         New macroized instruction patterns and corresponding post-reload
11257         splitters.
11258         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11259         and corresponding post-reload splitters.
11260         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11261         New macroized instruction patterns.
11262         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11263         macroized instruction patterns and corresponding post-reload splitters.
11264         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11265         corresponding post-reload splitters.
11266         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11267         New macroized instruction patterns.
11268         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11269         corresponding post-reload splitters.
11270         (*floatsi<mode>2_i387): New macroized instruction patterns.
11271
11272 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11273
11274         * config/i386/i386.md (smaxmin): New.
11275         (umaxmin): Likewise.
11276         (maxminiprefix): Likewise.
11277         (maxminfprefix): Likewise.
11278         (<code><mode>3): Likewise.
11279         (smin<mode>3): Removed.
11280         (smax<mode>3): Likewise.
11281
11282         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11283         (mmx_<code>v4hi3): Likewise.
11284         (mmx_<code>v8qi3): Likewise.
11285         (mmx_smaxv2sf3): Removed.
11286         (mmx_sminv2sf3): Likewise.
11287         (mmx_umaxv8qi3): Likewise.
11288         (mmx_smaxv4hi3): Likewise.
11289         (mmx_uminv8qi3): Likewise.
11290         (mmx_sminv4hi3): Likewise.
11291
11292         * config/i386/sse.md (<addsub><mode>3): New.
11293         (*<addsub><mode>3): Likewise.
11294         (<sse>_vm<addsub><mode>3): Likewise.
11295         (<maxmin><mode>3): Likewise.
11296         (*<maxmin><mode>3_finite): Likewise.
11297         (*<maxmin><mode>3): Likewise.
11298         (<sse>_vm<maxmin><mode>3): Likewise.
11299         (sse3_h<addsub>v4sf3): Likewise.
11300         (sse3_h<addsub>v2df3): Likewise.
11301         (<maxmin>v16qi3): Likewise.
11302         (*<maxmin>v16qi3): Likewise.
11303         (<maxmin>v8hi3): Likewise.
11304         (*<maxmin>v8hi3): Likewise.
11305         (*sse4_1_<maxmin><mode>3): Likewise.
11306         (*sse4_1_<maxmin><mode>3): Likewise.
11307         (add<mode>3): Removed.
11308         (*add<mode>3): Likewise.
11309         (<sse>_vmadd<mode>3): Likewise.
11310         (sub<mode>3): Likewise.
11311         (*sub<mode>3): Likewise.
11312         (<sse>_vmsub<mode>3): Likewise.
11313         (smin<mode>3): Likewise.
11314         (*smin<mode>3_finite): Likewise.
11315         (*smin<mode>3): Likewise.
11316         (<sse>_vmsmin<mode>3): Likewise.
11317         (smax<mode>3): Likewise.
11318         (*smax<mode>3_finite): Likewise.
11319         (*smax<mode>3): Likewise.
11320         (<sse>_vmsmax<mode>3): Likewise.
11321         (sse3_haddv4sf3): Likewise.
11322         (sse3_haddv2df3): Likewise.
11323         (sse3_hsubv4sf3): Likewise.
11324         (sse3_hsubv2df3): Likewise.
11325         (umaxv16qi3): Likewise.
11326         (*umaxv16qi3): Likewise.
11327         (smaxv8hi3): Likewise.
11328         (*smaxv8hi3): Likewise.
11329         (*sse4_1_smax<mode>3): Likewise.
11330         (*sse4_1_umax<mode>3): Likewise.
11331         (uminv16qi3): Likewise.
11332         (*uminv16qi3): Likewise.
11333         (sminv8hi3): Likewise.
11334         (*sminv8hi3): Likewise.
11335         (*sse4_1_smin<mode>3): Likewise.
11336         (*sse4_1_umin<mode>3): Likewise.
11337
11338 2008-04-01  Rafael Espindola  <espindola@google.com>
11339
11340         * tree-cfg.c (verify_expr): remove in_phi.
11341         (verify_stmt): Don't call walk_tree with verify_expr. Use
11342         is_gimple_min_invariant instead of is_gimple_val.
11343
11344 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11345
11346         * doc/include/gpl_v3.texi: Update for manpage generation.
11347         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11348         gpl.texi.
11349         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11350         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11351         gpl_v3.texi instead of gpl.texi.
11352         (gpl.pod): New.
11353
11354 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11355
11356         PR pch/13675
11357         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11358
11359 2008-04-01  Rafael Espindola  <espindola@google.com>
11360
11361         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11362         (extract_code_and_val_from_cond): Use
11363         extract_code_and_val_from_cond_with_ops.
11364
11365 2008-04-01  Jan Hubicka  <jh@suse.cz>
11366
11367         * function.c (free_after_compilation): Free epilogue_delay_list.
11368         (prepare_function_start): Assert that previous compilation was freed.
11369
11370 2008-04-01  Jan Hubicka  <jh@suse.cz>
11371             Jim Wilson  <wilson@tuliptree.org>
11372             Andreas Tobler <andreast@gcc.gnu.org>
11373
11374         PR middle-end/35781
11375         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11376         rtl.emit instead cfun->emit.
11377         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11378         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11379
11380 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11381
11382         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11383
11384 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11385
11386         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11387         New options
11388         (fprofile-use): Add var flag_profile_use
11389         * coverage.c (coverage_begin_output): Do not open a gcno file for
11390         output only if -ftest-coverage is set.
11391         Do not add getpwd() to gcda file path.
11392         (build_gcov_info): Check the new flag
11393         flag_profile_datafile_relative_path.
11394         (coverage_init): Use profile_data_prefix.
11395         Read profile counter only if flag_profile_use is set.
11396         * opts.c (common_handle_option): New option fprofile-use=,
11397         fprofile-dir=, fprofile-generate=.
11398         * toplev.c (profile_data_prefix): New variable definition.
11399         * toplev.h (profile_data_prefix): New declaration.
11400         * doc/invoke.tex (Option Summary, Optimization Options):
11401         Add new options.
11402
11403 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11404
11405         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11406         use tmp consistently.
11407
11408         PR target/35695
11409         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11410         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11411         UNSPEC_FR_RECIP_APPROX_RES.
11412         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11413
11414 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11415
11416         PR c/35750
11417         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11418
11419 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11420
11421         PR middle-end/30186
11422         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11423         element of the vector via a pointer.
11424
11425 2008-03-31  Ian Lance Taylor  <iant@google.com>
11426
11427         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11428
11429 2008-03-31  Jan Hubicka  <jh@suse.cz>
11430
11431         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11432         get_arg_pointer_save_area.
11433         * expr.c (init_expr): Just clear out rtl.expr.
11434         * function.c (free_after_compilation): Clear out whole RTL structure.
11435         (get_func_frame_size): Merge into ...
11436         (get_frame_size): ... this one.
11437         (assign_stack_local_1): Merge into ...
11438         (assign_stack_local): ... this one.
11439         (expand_function_end): Update call of get_arg_pointer_save_area.
11440         (get_art_pointer_save_area): Remove cfun argument.
11441         * function.h (emit_status): regno_pointer_align does not need length
11442         attribute. Move x_regno_reg_rtx to ...
11443         (regno_reg_rtx): ... new global array.
11444         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11445         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11446         apply_args_value, forced_labels, stack_pointer_delta):
11447         Update accestors.
11448         (struct varasm_status): Move here from varasm.c
11449         (struct rtl_data): New. Move here some fields from struct function.
11450         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11451         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11452         used_temp_slots avail_temp_slots, temp_slot_level,
11453         nonlocal_goto_handler_labels): Update accesstors.
11454         (rtl): New global variable.
11455         (struct function): Move some fileds to rtl_data.
11456         (get_arg_pointer_save_area): Update prototype.
11457         * emit-rtl.c (rtl): Declare.
11458         (regno_reg_rtx): Declare.
11459         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11460         Update.
11461         (gen_reg_rtx): Update.
11462         (init_virtual_regs): Do not tate emit_status argument.
11463         (init_emit): Do not allocate emit.
11464         * varasm.c (varasm_statuc): Move to function.h.
11465         (n_deferred_constatns): Update accestor.
11466         (init_varasm_status): Do not allocate varasm_status.
11467         (force_const_mem, get_pool_size, output_constant_pool): Update.
11468         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11469         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11470
11471 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11472
11473         PR rtl-optimization/35729
11474         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11475         references.
11476
11477 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11478
11479         PR target/32000
11480         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11481         load/store if memory is unaligned.
11482         (*movti_rex64): Likewise.
11483
11484         * config/i386/predicates.md (misaligned_operand): New.
11485
11486 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11487
11488         PR tree-opt/35431
11489         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11490         complex types.
11491
11492 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11493
11494         * config/ia64/constraints.md: Add 'j' constraint.
11495         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11496         (movdi_internal): Likewise.
11497
11498 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11499
11500         PR c/35748
11501         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11502
11503 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11504
11505         PR target/35757
11506         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11507         proper error message for the third argument on blendpd and
11508         blendps.
11509
11510         * config/i386/sse.md (blendbits): New.
11511         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11512
11513 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11514
11515         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11516
11517 2008-03-30  Richard Guenther  <rguenther@suse.de>
11518
11519         PR middle-end/31023
11520         * fold-const.c (fold_sign_changed_comparison): Do leave
11521         conversions to base-types alone.
11522
11523 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11524
11525         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11526         the link register if one altivec register is be saved.
11527
11528 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11529
11530         * final.c (final_scan_insn): Remove if (0) code.
11531
11532 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11533
11534         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11535
11536 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11537
11538         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11539         of V4SFmode to ix86_binary_operator_ok.
11540
11541 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11542
11543         * config/i386/i386.c (override_options): Initialize
11544         ix86_veclib_handler to ix86_veclibabi_svml when
11545         -mveclibabi=svml is used.
11546         (ix86_veclibabi_svml): New function for SVML ABI style
11547         vectorization support.
11548         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11549
11550 2008-03-28  Rafael Espindola  <espindola@google.com>
11551
11552         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11553         (tree_binary_nonnegative_warnv_p): Make it public.
11554         (tree_single_nonnegative_warnv_p): Make it public.
11555         (tree_invalid_nonnegative_warnv_p): Make it public.
11556         (tree_unary_nonzero_warnv_p): Make it public.
11557         (tree_binary_nonzero_warnv_p): Make it public
11558         (tree_single_nonzero_warnv_p): Make it public.
11559         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11560         (extract_range_from_binary_expr): Split the expr argument.
11561         (extract_range_from_unary_expr): Split the expr argument.
11562         (extract_range_from_comparison): Split the expr argument.
11563         (extract_range_from_expr): Use the new aux functions.
11564         (vrp_evaluate_conditional_warnv): Use
11565         vrp_evaluate_conditional_warnv_with_ops.
11566         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11567         (tree_binary_nonzero_warnv_p): Declare.
11568         (tree_single_nonzero_warnv_p): Declare.
11569         (tree_expr_nonzero_warnv_p): Declare.
11570         (tree_unary_nonnegative_warnv_p): Declare.
11571         (tree_binary_nonnegative_warnv_p): Declare.
11572         (tree_single_nonnegative_warnv_p): Declare.
11573         (tree_invalid_nonnegative_warnv_p): Declare.
11574
11575 2008-03-28  Richard Guenther  <rguenther@suse.de>
11576
11577         PR tree-optimization/30317
11578         PR tree-optimization/30911
11579         PR tree-optimization/34793
11580         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11581         (struct assert_locus_d): New member EXPR.
11582         (register_new_assert_for): Add EXPR parameter to support
11583         ASSERT_EXPR <name, expr OP limit>.
11584         (register_edge_assert_for_1): Adjust callers.
11585         (find_assert_locations): Likewise.
11586         (process_assert_insertions_for): Build condition from expression.
11587         (extract_range_from_assert): Handle ASSERT_EXPRs
11588         of the form ASSERT_EXPR <name, expr OP limit>.
11589         (register_edge_assert_for_2): New helper registering
11590         asserts for comparisons.  Recognize range tests of the form
11591         (unsigned)i - CST1 OP CST2.
11592         (register_edge_assert_for_1): Use it.
11593         (register_edge_assert_for): Likewise.
11594         (needs_overflow_infinity): Integer sub-types
11595         do not need overflow infinities.
11596         (vrp_val_is_max): The extreme values of integer sub-types
11597         are those of the base type.
11598         (vrp_val_is_min): Likewise.
11599         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11600         expressions.
11601
11602 2008-03-28  Nick Clifton  <nickc@redhat.com>
11603
11604         PR target/31110
11605         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11606         Return GENERAL_REGS for stack adjustment reloads.
11607
11608 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11609
11610         PR target/31334
11611         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11612         const_vector when all the vectors are constant.
11613
11614 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11615
11616         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11617         comparisons.
11618         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11619         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11620         (scc_sf): New.
11621         (s<code>_sf): Use new scc_sf attribute for opcode names.
11622
11623 2008-03-27  Tom Tromey  <tromey@redhat.com>
11624
11625         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11626         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11627         config/spu/t-spu-elf, config/i386/t-interix,
11628         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11629         config/i386/x-darwin, config/i386/x-mingw32,
11630         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11631         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11632         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11633         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11634         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11635         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11636         config/score/t-score-elf, config/arm/t-strongarm-pe,
11637         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11638         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11639         Revert automatic dependency patch.
11640
11641 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11642
11643         PR target/35657
11644         * config/i386/i386.c (ix86_function_arg_boundary): Align
11645         decimal floating point to its natural boundary.
11646
11647 2008-03-27  Richard Guenther  <rguenther@suse.de>
11648
11649         PR middle-end/35716
11650         * fold-const.c (fold_comparison): Restrict distinct decl
11651         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11652         solely rely on operand_equal_p.
11653
11654 2008-03-27  Richard Guenther  <rguenther@suse.de>
11655
11656         PR c/32511
11657         * c-common.c (handle_weak_attribute): Reject combination of
11658         weak and inline.
11659
11660 2008-03-27  Richard Guenther  <rguenther@suse.de>
11661
11662         PR tree-optimization/32810
11663         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11664         conversions from DECL_INITIAL.
11665         (fold_const_aggregate_ref): Likewise from constructor elements.
11666
11667 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11668
11669         * tree-affine.h (aff_combination_expand): Declare.
11670         (get_inner_reference_aff): Likewise.
11671         * tree-affine.c (aff_combination_expand): Split out from
11672         tree_to_aff_combination_expand.
11673         (get_inner_reference_aff): New function.
11674         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11675         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11676         (struct lim_aux_data): sm_done field removed.
11677         (mem_ref_loc_p, mem_ref_locs_p): New types.
11678         (struct mem_ref): Added id, stored, accesses_in_loop,
11679         indep_loop, dep_loop, indep_ref, dep_ref fields.
11680         Removed is_stored, locs and next fields.
11681         (memory_accesses): New variable.
11682         (movement_possibility): Do not allow moving statements
11683         that store to memory.
11684         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11685         New functions.
11686         (determine_max_movement): For statements with memory references,
11687         find the outermost loop in that the reference is independent.
11688         (move_computations_stmt): Mark the virtual operands for renaming.
11689         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11690         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11691         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11692         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11693         create_vop_ref_mapping, analyze_memory_references,
11694         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11695         get_all_locs_in_loop, ref_always_accessed_p,
11696         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11697         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11698         store_motion_loop, store_motion): New functions.
11699         (struct vop_to_refs_elt): New type.
11700         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11701         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11702         (schedule_sm): Replaced by...
11703         (execute_sm): ... this.
11704         (determine_lsm_ref, hoist_memory_references,
11705         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11706         find_more_ref_vops, free_mem_ref, free_mem_refs,
11707         determine_lsm_loop, determine_lsm): Removed.
11708         (tree_ssa_lim_finalize): Free data structures used by store motion.
11709         (tree_ssa_lim): Call analyze_memory_references.  Use
11710         store_motion instead of determine_lsm.
11711
11712 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11713
11714         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11715         rename tmake_file to m68hc11/t-m68hc11.
11716         (mcore): Set inhibit_libc to true.
11717         * config.host (alpha*-dec-*vms*): Set extra_programs.
11718         (interix3*): Don't use host_xmake_file.
11719         * configure.ac: Let config.gcc override inhibit_libc.
11720         * configure: Regenerate.
11721
11722         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11723         * config/t-openbsd-thread: Remove commented out lines.
11724         
11725         * config/x-interix: Remove.
11726
11727         * config/m68hc11/t-m68hc11-gas: Rename to...
11728         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11729
11730         * config/mcore/t-mcore: Remove T_CFLAGS.
11731         * config/mcore/t-mcore-pe: Likewise.
11732
11733 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11734
11735         * configure.ac: Replace custom __GNU_SOURCE test with
11736         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11737         * aclocal.m4: Regenerate.
11738         * configure: Regenerate.
11739         * config.in: Regenerate.
11740
11741 2008-03-27  Richard Guenther  <rguenther@suse.de>
11742
11743         * fold-const.c (target.h): Include.
11744         (fold_comparison): Fold comparison of addresses of decls
11745         that bind locally or of constants.  Consolidate address folding code.
11746         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11747         results from fold_binary_to_constant.
11748         (compare_values_warnv): Likewise.
11749
11750 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11751
11752         PR middle-end/35429
11753         * fold-const.c (fold_truthop): Check for integeral types when folding
11754         a == 0 && b == 0 and a != 0 || b != 0 .
11755
11756 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11757
11758         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11759
11760 2008-03-26  Andreas Schwab  <schwab@suse.de>
11761
11762         * doc/invoke.texi: Fix use of @item vs. @itemx.
11763
11764 2008-03-26  Tom Tromey  <tromey@redhat.com>
11765
11766         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11767         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11768         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11769         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11770         build/genconstants.o, build/genemit.o, build/genextract.o,
11771         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11772         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11773         options.h.
11774
11775 2008-03-26  Richard Guenther  <rguenther@suse.de>
11776
11777         Revert
11778         2008-03-26  Richard Guenther  <rguenther@suse.de>
11779
11780         * fold-const.c (target.h): Include.
11781         (fold_comparison): Fold comparison of addresses of two decls
11782         that bind locally.  Consolidate address folding code.
11783
11784 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11785
11786         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11787         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11788         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11789         dconstsqrt2, dconstthird, dconste and/or dconst10.
11790         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11791         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11792         dconstsqrt2, dconste): Delete.
11793         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11794         Constify variable.
11795         * real.c (get_real_const): New.
11796         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11797         dconstsqrt2, dconste): Delete.
11798         (real_value_const, get_real_const): New.
11799
11800 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11801
11802         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11803
11804         * config/i386/i386.c (ix86_function_arg_boundary): Check
11805         BIGGEST_ALIGNMENT instead of 128.
11806         (setup_incoming_varargs_64): Likewise.
11807
11808 2008-03-26  Tom Tromey  <tromey@redhat.com>
11809
11810         * Makefile.in (DEPFILES): Add missing '/'.
11811
11812 2008-03-26  Richard Guenther  <rguenther@suse.de>
11813
11814         * fold-const.c (target.h): Include.
11815         (fold_comparison): Fold comparison of addresses of two decls
11816         that bind locally.  Consolidate address folding code.
11817
11818 2008-03-26  Nick Clifton  <nickc@redhat.com>
11819
11820         PR target/31232
11821         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11822         not allow INT+INT as a legitimate addressing mode.
11823
11824 2008-03-26  Richard Guenther  <rguenther@suse.de>
11825
11826         * tree-flow.h (widen_bitfield): Remove declaration.
11827         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11828         (widen_bitfield): Remove function.
11829         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11830         code.
11831
11832 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11833
11834         PR target/31558
11835         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11836         error_mark_node's.
11837
11838 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11839
11840         PR rtl-optimization/35232
11841         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11842         (forget_old_reloads_1, forget_marked_reloads): Don't clear
11843         reg_reloaded_call_part_clobbered here.
11844         (reload_regs_reach_end_p): New function.
11845         (reload_reg_rtx_for_input): New variable.
11846         (reload_reg_rtx_for_output): Likewise.
11847         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11848         when reassigning a pseudo register.  Load reloadreg from 
11849         reload_reg_rtx_for_input, moving the mode and register
11850         calculation to...
11851         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
11852         instead of the original when deciding whether an input reload
11853         would be a no-op or whether an output reload can be deleted.
11854         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11855         when setting up new_spill_reg_store.  Load it from
11856         reload_reg_rtx_for_output, moving the mode and register
11857         calculation to...
11858         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
11859         instead of the original when deciding whether an output reload
11860         would be a no-op.  Do the same when modifying insn notes.
11861         Use rtx_equal_p instead of == to compare the registers.
11862         (inherit_piecemeal_p): Take a mode and two register numbers
11863         as argument.
11864         (emit_reload_insns): Clear new_spill_reg_store for every hard
11865         register in the reload register.  Remove spill registers
11866         from reg_reloaded_valid before considering whether to record
11867         inheritance information for them.  Use reload_reg_rtx_for_output
11868         instead of reg_rtx when recording output reloads.  Use
11869         reload_reg_rtx_for_input instead of reg_rtx when recording
11870         input reloads.  Set or clear reg_reloaded_call_part_clobbered
11871         at the same time as setting reg_reloaded_valid.
11872         (delete_output_reload): Add a new_reload_reg parameter and use it
11873         instead of rld[j].reg_rtx.
11874         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11875         calls accordingly.
11876
11877 2008-03-25  Tom Tromey  <tromey@redhat.com>
11878
11879         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11880         (build/genattr.o): Likewise.
11881         (build/genattrtab.o): Likewise.
11882         (build/gencodes.o): Likewise.
11883         (build/genconfig.o): Likewise.
11884         (build/genconstants.o): Likewise.
11885         (build/genemit.o): Likewise.
11886         (build/genextract.o): Likewise.
11887         (build/genflags.o): Likewise.
11888
11889 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
11890         
11891         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11892         instead of size_int for integer types.
11893         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
11894         to match type of MINUS_EXPR.
11895         
11896 2008-03-25  Tom Tromey  <tromey@redhat.com>
11897
11898         * configure: Rebuilt.
11899         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11900         Makefile.
11901
11902 2008-03-25  Tom Tromey  <tromey@redhat.com>
11903
11904         * config/x-solaris (host-solaris.o): Update.
11905         * config/x-linux (host-linux.o): Update.
11906         * config/x-hpux (host-hpux.o): Update.
11907         * config/x-darwin (host-darwin.o): Update.
11908         * config/v850/t-v850e (v850-c.o): Update.
11909         * config/v850/t-v850 (v850-c.o): Update.
11910         * config/t-vxworks (vxworks.o): Update.
11911         * config/t-sol2 (sol2-c.o, sol2.o): Update.
11912         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11913         * config/spu/t-spu-elf (spu-c.o): Update.
11914         (spu.o): Remove.
11915         * config/sh/t-symbian (sh-c.o): Update.
11916         (symbian.o): Update.
11917         * config/sh/t-sh (sh-c.o): Update.
11918         * config/score/t-score-elf (score7.o, score3.o): Update.
11919         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11920         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11921         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11922         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11923         (rs6000.o): Remove.
11924         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11925         * config/m32c/t-m32c (m32c-pragma.o): Update.
11926         * config/ia64/t-ia64 (ia64-c.o): Update.
11927         * config/i386/x-mingw32 (host-mingw32.o): Update.
11928         * config/i386/x-i386 (driver-i386.o): Update.
11929         * config/i386/x-darwin (host-i386-darwin.o): Update.
11930         * config/i386/x-cygwin (host-cygwin.o): Update.
11931         * config/i386/t-nwld (nwld.o): Update.
11932         * config/i386/t-netware (netware.o): Update.
11933         * config/i386/t-interix (winnt.o): Update.
11934         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11935         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11936         msformat-c.o): Update.
11937         * config/bfin/t-bfin-linux (generated_files): Add
11938         linux-sysroot-suffix.h.
11939         * config/arm/t-wince-pe (pe.o): Update.
11940         * config/arm/t-strongarm-pe (pe.o): Update.
11941         * config/arm/t-pe (pe.o): Update.
11942         * config/arm/t-arm (arm-c.o): Update.
11943         * doc/install.texi (Prerequisites): Require make 3.80.
11944         * Makefile.in: Remove .o targets.
11945         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11946         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11947         (simple_generated_h, simple_generated_c): Move earlier.
11948         (generated_files): New variable.
11949         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11950         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11951         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11952         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11953         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11954         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11955         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11956         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11957         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11958         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11959         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11960         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11961         (.c.o): Remove.
11962         (COMPILE.base, COMPILE): New variables.
11963         (%.o): New pattern rule.
11964         (ALL_HOST_OBJS): New variable.
11965         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11966         (dummy-checksum.o, cc1-checksum.o): Remove.
11967         (DRIVER_SHLIB): New variable.
11968         (DRIVER_DEFINES): Use it.
11969         (gencondmd.c): Move out of build/.
11970         (s-conditions): Update.
11971         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11972         (ALL_BUILD_OBJS): Likewise.
11973         (build/%.o): Use BUILDCOMPILE.
11974         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11975         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11976         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11977         build/gencheck.o, build/gencodes.o, build/genconditions.o,
11978         build/genconfig.o, build/genconstants.o, build/genemit.o,
11979         build/genextract.o, build/genflags.o, build/genmddeps.o,
11980         build/genopinit.o, build/genoutput.o, build/genpeep.o,
11981         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11982         build/gen-protos.o, build/scan.o, build/fix-header.o,
11983         build/scan-decls.o): Simplify.
11984         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11985         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11986         prefix.o, toplev.o): Reduce to variable setting.
11987         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
11988         ($(out_object_file), gcc-options.o): New targets.
11989         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
11990         * configure: Rebuilt.
11991         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11992         * doc/sourcebuild.texi (Front End Directory): Document new variable.
11993
11994 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
11995
11996         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11997         complain when we hit an error, return ERROR_MARK_NODE.
11998
11999 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12000
12001         * config/sh/constraints.md (Pso, Psz): New constraints.
12002         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12003         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12004
12005 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12006
12007         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12008         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12009
12010 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12011
12012         * config/sh/sh.md (prefetch): Add condition for SH2A target.
12013         (prefetch_sh2a): New.   
12014
12015 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12016             Naveen.H.S  <naveen.hs@kpitcummins.com>
12017
12018         * config/sh/constraints.md (I28): New constraint.
12019         * config/sh/sh.c (broken_move): Add support for movi20s.
12020         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12021
12022 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
12023             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12024             Naveen.H.S  <naveen.hs@kpitcummins.com>
12025
12026         * config/sh/sh.c (SH_ATTRIBUTES): Define.
12027         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12028         (print_operand): Handle resbank in %@ operand code.
12029         (sh_encode_section_info): New.
12030         (push_regs): Add conditions for resbank.
12031         (sh_expand_epilogue): Likewise.
12032         (sh_insert_attributes): Likewise.
12033         (sh_attribute_table): Likewise.
12034         (sh_handle_resbank_handler_attribute): New.
12035         (sh2a_handle_function_vector_handler_attribute): New.
12036         (sh2a_is_function_vector_call): New.
12037         (sh2a_get_function_vector_number): New.
12038         (sh2a_function_vector_p): New.
12039         (sh_cfun_resbank_handler_p): New.
12040         * config/sh/sh.md (calli): Emit jsr/n if possible.
12041         (calli_tbr_rel): New.
12042         (calli_pcrel): Emit jsr/n if possible.
12043         (return_i): Emit rts/n if possible.
12044         (call_valuei_tbr_rel): New.
12045         (call_valuei_pcrel): Add condition for SH2A target.
12046         (call_value): Likewise.
12047         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12048         (sh2a_get_function_vector_number): Likewise.
12049         (sh2a_is_function_vector_call): Likewise.
12050         * doc/extend.texi: Document TBR relative addressing of SH2A.
12051         (resbank): Add description for SH2A.
12052
12053 2008-03-24  Richard Guenther  <rguenther@suse.de>
12054
12055         PR c/22371
12056         * gimplify.c (gimplify_modify_expr): For frontend type-correct
12057         pointer assignments change conversions according to middle-end rules.
12058         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12059         * configure.ac: Include type checking in yes.
12060         * configure: Regenerate.
12061
12062 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12063
12064         * diagnostic.c (diagnostic_count_diagnostic): Delete.
12065         (diagnostic_report_diagnostic): Update. Handle ICEs here.
12066         
12067 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12068
12069         * gthr-vxworks.h (UNUSED): Define.
12070
12071 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12072
12073         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12074
12075 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
12076
12077         * doc/extend.texi (Function Attributes): Add missing comma in the
12078         example of the "alloc_size" attribute.
12079         
12080 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
12081
12082         Revert:
12083         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12084
12085         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12086         32bit host.
12087
12088         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12089
12090         PR target/35496
12091         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12092         of the underlying type of a MS bitfield layout to the natural
12093         alignment of the type.
12094
12095         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12096
12097         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12098         to their natural alignment to avoid store forwarding stalls.
12099
12100 2008-03-22  Richard Guenther  <rguenther@suse.de>
12101
12102         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12103         For PHI nodes verify the address is invariant.
12104         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12105         (get_symbol_constant_value): Use is_gimple_min_invariant.
12106         (maybe_fold_stmt_indirect): Likewise.
12107
12108 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
12109
12110         PR rtl-optimization/33927
12111         * Makefile.in (dse.o): Depend on $(TM_P_H).
12112         * expr.h (extract_low_bits): Declare.
12113         * expmed.c (extract_low_bits): New function.
12114         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12115         * dse.c: Include tm_p.h.
12116         (find_shift_sequence): Remove the read_reg argument and return the
12117         read value.  Emit the instructions instead of returning them.
12118         Iterate on new_mode rather than calculating it each time.
12119         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
12120         source to NEW_MODE and extract_low_bits to convert the shifted
12121         value to READ_MODE.
12122         (replace_read): Allow the load and store to have different mode
12123         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
12124         or extraction instructions before trying the replacement.  Update
12125         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12126
12127 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12128
12129         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12130         to their natural alignment to avoid store forwarding stalls.
12131
12132 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12133
12134         PR target/27946
12135         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12136         encouraging but not allowing gprs for input;
12137         change the input constraint to !f#r.
12138         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12139         gprs for output;
12140         change the output constraint to !f#r.
12141
12142 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
12143
12144         PR target/13958
12145         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12146         corresponding post-reload splitters.
12147         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12148         when x87 FP math is selected.
12149         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12150         New function prototype.
12151         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12152         unreachable function to ease macroization of insn patterns.
12153
12154 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12155
12156         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12157         reference dumps if ddr is NULL or dependence is unknown.
12158
12159 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12160
12161         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12162         unsigned extension into account.
12163         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12164         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12165         Do computations on a scratch register.
12166
12167 2008-03-21  Richard Guenther  <rguenther@suse.de>
12168
12169         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12170         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12171         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12172         * tree-ssa-dom.c (record_equality): Likewise.
12173         * tree-inline.c (copy_body_r): Likewise.
12174         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12175         TREE_INVARIANT.
12176
12177 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12178
12179         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12180         as 'delete_unused' argument.
12181
12182 2008-03-20  Richard Guenther  <rguenther@suse.de>
12183
12184         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12185         special casing of constant qualifiers.
12186         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12187         care about them in general.
12188         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12189         regardless of their type.
12190         (fold_stmt_r): Forcefully fold *& if we end up with that.
12191
12192 2008-03-20  Paul Brook  <paul@codesourcery.com>
12193
12194         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12195         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12196         linker flags.
12197         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12198         definition.
12199         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12200         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12201
12202 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12203
12204         * common.opt (Wmudflap): New option.
12205         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12206         (mx_register_decls): Likewise.
12207         (mudflap_finish_file): Likewise.
12208         * doc/invoke.texi: Document -Wno-mudflap.
12209
12210 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12211
12212         * c-format.c (replace_format_name_to_system_name): New.
12213         (cmp_attribs): New.
12214         (convert_format_name_to_system_name): New.
12215         (decode_format_attr): Add use of convert_format_name_to_system_name.
12216         (format_types_orig): Add gnu_ prefix to names.
12217         (check_format_info_main): Special treating of \0 escaped names for
12218         supporting multi-character format specifiers as I32, I64.
12219         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12220         (gnu_target_overrides_format_attributes): New.
12221         * c-format.h: Add structure target_ovr_attr to hold
12222         system specific formatter names.
12223         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12224         msformat-c.o file to c_target_objs and cxx_target_objs.
12225         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12226         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12227         (TARGET_N_FORMAT_TYPES): New.
12228         * config/i386/msformat-c.c: New.
12229         * config/i386/t-cygming: Add build rule for msformat-c.o.
12230         * doc/extend.texi: Add new format names gnu_* and ms_* and
12231         further details.
12232         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12233
12234 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12235
12236         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12237         optimizations turned on under -O3.
12238         (ftree-vectorize): Add that the flag is turned on with -O3.
12239
12240 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12241
12242         * regmove.c (try_auto_increment): Fix spelling error in comment.
12243         * final.c (final_scan_insn): Likewise.
12244
12245 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12246
12247         PR target/14552
12248         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12249         allocator preferences for "y" and "r" class registers.
12250         ("*mov<mode>_internal"): Ditto.
12251         ("*movv2sf_internal_rex64"): Ditto.
12252         ("*movv2sf_internal"): Ditto.
12253
12254 2008-03-19  Michael Matz  <matz@suse.de>
12255
12256         PR middle-end/35616
12257         * calls.c (expand_call): Check overlap of arguments with call
12258         address for sibcalls.
12259
12260 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12261
12262         PR target/35496
12263         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12264         of the underlying type of a MS bitfield layout to the natural
12265         alignment of the type.
12266
12267 2008-03-19  Jan Hubicka  <jh@suse.cz>
12268
12269         PR other/35094
12270         * toplev.c (decode_d_option): Handle all CPP flags.
12271         * tree-vrp.c: Update tree_pass descriptors.
12272         * regrename.c: Update tree_pass descriptors.
12273         * fwprop.c: Update tree_pass descriptors.
12274         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12275         * tree-into-ssa.c: Update tree_pass descriptors.
12276         * tree-dump.c: Update tree_pass descriptors.
12277         * tree-complex.c: Update tree_pass descriptors.
12278         * tree-dump.h: Update tree_pass descriptors.
12279         * see.c: Update tree_pass descriptors.
12280         * cgraphbuild.c: Update tree_pass descriptors.
12281         * tracer.c: Update tree_pass descriptors.
12282         * tree-loop-distribution.c: Update tree_pass descriptors.
12283         * cgraph.c: Update tree_pass descriptors.
12284         * postreload-gcse.c: Update tree_pass descriptors.
12285         * postreload.c: Update tree_pass descriptors.
12286         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12287         * tree-tailcall.c: Update tree_pass descriptors.
12288         * tree-pass.h (tree_opt_pass): Rename to ...
12289         (opt_pass) ... this one; add "type" field and remove letter field.
12290         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12291         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12292         all_lowering_passes): Update declaration.
12293         * ipa-cp.c: Update tree_pass descriptors.
12294         * final.c: Update tree_pass descriptors.
12295         * omp-low.c: Update tree_pass descriptors.
12296         * tree-ssa-dse.c: Update tree_pass descriptors.
12297         * ipa-reference.c: Update tree_pass descriptors.
12298         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12299         * auto-inc-dec.c: Update tree_pass descriptors.
12300         * reorg.c: Update tree_pass descriptors.
12301         * cgraphunit.c: Update tree_pass descriptors.
12302         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12303         * tree-ssa-ccp.c: Update tree_pass descriptors.
12304         * df-core.c: Update tree_pass descriptors.
12305         * mode-switching.c: Update tree_pass descriptors.
12306         * tree-nomudflap.c: Update tree_pass descriptors.
12307         * modulo-sched.c: Update tree_pass descriptors.
12308         * ipa-pure-const.c: Update tree_pass descriptors.
12309         * cse.c: Update tree_pass descriptors.
12310         * web.c: Update tree_pass descriptors.
12311         * tree-stdarg.c: Update tree_pass descriptors.
12312         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12313         * tree-ssa-dom.c: Update tree_pass descriptors.
12314         * tree-nrv.c: Update tree_pass descriptors.
12315         * tree-ssa-alias.c: Update tree_pass descriptors.
12316         * loop-init.c: Update tree_pass descriptors.
12317         * gimple-low.c: Update tree_pass descriptors.
12318         * ipa-inline.c: Update tree_pass descriptors.
12319         * tree-ssa-sink.c: Update tree_pass descriptors.
12320         * global.c: Update tree_pass descriptors.
12321         * ifcvt.c: Update tree_pass descriptors.
12322         * jump.c: Update tree_pass descriptors.
12323         * predict.c: Update tree_pass descriptors.
12324         * tree-ssa-loop.c: Update tree_pass descriptors.
12325         * recog.c: Update tree_pass descriptors.
12326         * dse.c: Update tree_pass descriptors.
12327         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12328         * tree-eh.c: Update tree_pass descriptors.
12329         * regmove.c: Update tree_pass descriptors.
12330         * local-alloc.c
12331         * function.c: Update tree_pass descriptors.
12332         * tree-vectorizer.c: Update tree_pass descriptors.
12333         * gcse.c: Update tree_pass descriptors.
12334         * ipa-type-escape.c: Update tree_pass descriptors.
12335         * tree-if-conv.c: Update tree_pass descriptors.
12336         * init-regs.c: Update tree_pass descriptors.
12337         * ipa.c: Update tree_pass descriptors.
12338         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12339         * rtl-factoring.c: Update tree_pass descriptors.
12340         * lower-subreg.c: Update tree_pass descriptors.
12341         * bt-load.c: Update tree_pass descriptors.
12342         * tree-dfa.c: Update tree_pass descriptors.
12343         * except.c: Update tree_pass descriptors.
12344         * emit-rtl.c: Update tree_pass descriptors.
12345         * cfgexpand.c: Update tree_pass descriptors.
12346         * tree-cfgcleanup.c: Update tree_pass descriptors.
12347         * cfgcleanup.c: Update tree_pass descriptors.
12348         * tree-ssa-pre.c: Update tree_pass descriptors.
12349         * tree-sra.c: Update tree_pass descriptors.
12350         * tree-mudflap.c: Update tree_pass descriptors.
12351         * tree-ssa-copy.c: Update tree_pass descriptors.
12352         * cfglayout.c: Update tree_pass descriptors.
12353         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12354         * tree-ssa-dce.c: Update tree_pass descriptors.
12355         * tree-ssa.c: Update tree_pass descriptors.
12356         * regclass.c: Update tree_pass descriptors.
12357         * integrate.c: Update tree_pass descriptors.
12358         * tree-optimize.c: Update tree_pass descriptors.
12359         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12360         * tree-object-size.c: Update tree_pass descriptors.
12361         * combine.c: Update tree_pass descriptors.
12362         * tree-outof-ssa.c: Update tree_pass descriptors.
12363         * bb-reorder.c: Update tree_pass descriptors.
12364         * stack-ptr-mod.c: Update tree_pass descriptors.
12365         * var-tracking.c: Update tree_pass descriptors.
12366         * tree-profile.c: Update tree_pass descriptors.
12367         * tree-vect-generic.c: Update tree_pass descriptors.
12368         * reg-stack.c: Update tree_pass descriptors.
12369         * sched-rgn.c: Update tree_pass descriptors.
12370         * tree-ssa-structalias.c: Update tree_pass descriptors.
12371         * tree-cfg.c: Update tree_pass descriptors.
12372         * passes.c (current_pass): Update declaration.
12373         (finish_optimization_passes): Update.
12374         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12375         (register_one_dump_file, register_dump_files_1, next_pass_1):
12376         Update arguments.
12377         (init_optimization_passes): Update handling of new types.
12378         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12379         * ipa-struct-reorg.c: Update tree_pass descriptors.
12380         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12381         * combine-stack-adj.c: Update tree_pass descriptors.
12382         * cfgrtl.c: Update tree_pass descriptors.
12383         * dce.c: Update tree_pass descriptors.
12384         * tree-ssanames.c: Update tree_pass descriptors.
12385
12386 2008-03-19  Richard Guenther  <rguenther@suse.de>
12387
12388         PR middle-end/35609
12389         * tree-ssa.c (walk_data): New structure.
12390         (warn_uninitialized_var): If not always_executed warn with "maybe"
12391         instead of "is".
12392         (execute_early_warn_uninitialized): Compute post-dominators.
12393         Initialize always_executed before processing each basic block.
12394
12395 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12396
12397         PR target/35504
12398         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12399         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12400
12401 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12402
12403         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12404
12405 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12406
12407         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12408         is true.
12409         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12410         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12411         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12412         target after ignore has been set, and move there also the commputation
12413         of subtarget and original_target.
12414         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12415         (LANG_HOOKS_INITIALIZER): Remove it.
12416         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12417
12418 2008-03-18  Richard Guenther  <rguenther@suse.de>
12419
12420         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12421         found an expression with constants, note that in the VN for the lhs.
12422         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12423         fold them to constants if possible.  Run cleanup_cfg if done so.
12424         (execute_pre): Return todo.
12425         (do_pre): Likewise.
12426         (execute_fre): Likewise.
12427         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12428         of constants.
12429         (get_prop_source_stmt): Look through pointer conversions.
12430
12431 2008-03-18  Jan Hubicka  <jh@suse.cz>
12432
12433         * tree-pretty-print.c: Include predict.h.
12434         (dump_generic_node): Dump predictor.
12435         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12436         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12437         * gimple-low.c (lower_stmt): Likewise.
12438         * expr.c (expand_expr_real): Likewise.
12439         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12440         them.
12441         (build_predict_expr, build_predict_expr): New.
12442         * predict.h (predictor_name, build_predict_expr): Update.
12443         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12444         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12445         * predict.def (PRED_CONTINUE): Update hitrate.
12446         * tree.def (PREDICT_EXPR): Define.
12447         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12448         do not handle BIND_EXPR.
12449         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12450         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12451         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12452         operands.
12453
12454 2008-03-18  Michael Matz  <matz@suse.de>
12455
12456         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12457
12458 2008-03-18  Richard Guenther  <rguenther@suse.de>
12459
12460         * tree-gimple.h (is_gimple_invariant_address): Declare.
12461         (is_gimple_constant): Likewise.
12462         * tree-gimple.c (is_gimple_constant): New function.
12463         (is_gimple_invariant_address): Likewise.
12464         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12465         and is_gimple_invariant_address.
12466         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12467         previous change.
12468         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12469         an addressable base.
12470
12471 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12472
12473         PR middle-end/35611
12474         * gimplify.c (gimplify_expr): Gimplify second operand of
12475         OMP_ATOMIC_LOAD.
12476
12477 2008-03-17  Richard Guenther  <rguenther@suse.de>
12478
12479         PR tree-optimization/19637
12480         * fold-const.c (fold_unary): Remove restrictions of removing
12481         intermediate pointer-conversions (P2)(P1)P0.
12482         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12483         conversion to void pointer.
12484         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12485
12486 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12487
12488         PR debug/31510
12489         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12490         emulated thread local variables.
12491
12492 2008-03-16  Richard Guenther  <rguenther@suse.de>
12493
12494         PR middle-end/35607
12495         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12496         expand TREE_INVARIANT operations that are not gimple invariant.
12497
12498 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12499
12500         * doc/extend.texi (Alignment): Say that the ABI controls
12501         the __alignof__ for non-strict-alignment targets rather
12502         than being a recommendation.
12503
12504 2008-03-15  Paul Brook  <paul@codesourcery.com>
12505
12506         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12507         annotations.
12508         (arm_output_fn_unwind): Mark functions that can not be unwound.
12509
12510 2008-03-15  Paul Brook  <paul@codesourcery.com>
12511
12512         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12513         extension instructions.
12514
12515 2008-03-15  Richard Guenther  <rguenther@suse.de>
12516
12517         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12518         and fold constant aggregate refs.
12519         (fold_const_aggregate_ref): Handle string constants
12520         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12521         (evaluate_stmt): Simplify now that ccp_fold folds constant
12522         aggregate refs.
12523
12524 2008-03-15  Paul Brook  <paul@codesourcery.com>
12525
12526         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12527         (extzv): Use gen_extzv_t2.
12528         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12529
12530 2008-03-15  Richard Guenther  <rguenther@suse.de>
12531
12532         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12533         (fold_const_aggregate_ref): Likewise.
12534         (get_value): Return NULL if we don't have any values.
12535         (ccp_finalize): Set const_val to NULL after freeing it.
12536         * tree-flow.h (get_symbol_constant_value): Declare.
12537         (fold_const_aggregate_ref): Likewise.
12538         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12539
12540 2008-03-15  Richard Guenther  <rguenther@suse.de>
12541
12542         PR middle-end/35593
12543         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12544         to not produce negative array indices if not allowed.  Add
12545         parameter to indicate that.
12546         (maybe_fold_offset_to_component_ref): Allow negative array
12547         indices only for the first member of a structure.
12548         (maybe_fold_offset_to_reference): Allow negative array indices.
12549         (maybe_fold_stmt_addition): Likewise.
12550
12551 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12552             Anatoly Sokolov <aesok@post.ru>
12553
12554         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12555         (avr_arch): Add ARCH_AVR6.
12556         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12557         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
12558         instead of fixed value 2.
12559         (print_operand_address): Use gs() asm specifier instead of pm().
12560         (avr_assemble_integer): (Ditto.).
12561         (avr_output_addr_vec_elt): (Ditto.).
12562         (print_operand): Handle "!" code.
12563         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
12564         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12565         (AVR_HAVE_EIJMP_EICALL): Define.
12566         (AVR_3_BYTE_PC): Redefine.
12567         (AVR_2_BYTE_PC): (Ditto.).
12568         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12569         (LINK_SPEC): Add atmega2560 and atmega2561.
12570         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
12571         (crtm2561.o).
12572         * config/avr/avr.md (call_insn): Use eicall instead of icall 
12573         for 3 byte PC devices.
12574         (call_value_insn): (Ditto.).
12575         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12576         (indirect_jump): Use only for for 2 byte PC devices.
12577         (*tablejump): (Ditto.).
12578         (*indirect_jump_avr6): Add insn.
12579         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12580         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
12581         instead of ijmp for 3 byte PC devices.
12582         (__tablejump2__): (Ditto.).
12583         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12584         (MULITLIB_DIRNAMES): (Ditto.). 
12585         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12586
12587 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12588
12589         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12590         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12591         ("mmx_psadbw"): Use V1DI mode for operand 0.
12592         * config/i386/i386-modes.def (V1SI): New vector mode.
12593         * config/i386/i386.c (struct builtin_description)
12594         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12595         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12596         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12597         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12598         v1di_ftype_v8qi_v8qi type.
12599         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12600
12601         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12602         __builtin_ia32_pmuludq]: Fix the mode of return value.
12603
12604 2008-03-15  Richard Guenther  <rguenther@suse.de>
12605
12606         PR middle-end/35595
12607         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12608         being a PHI_NODE.
12609
12610 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12611         
12612         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12613         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12614         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12615         unless TARGET_SERIALIZE_VOLATILE is enabled.
12616         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12617         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12618         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12619
12620 2008-03-14  Richard Guenther  <rguenther@suse.de>
12621
12622         PR tree-optimization/34172
12623         * tree-flow.h (refs_may_alias_p): Declare.
12624         (get_single_def_stmt): Likewise.
12625         (get_single_def_stmt_from_phi): Likewise.
12626         (get_single_def_stmt_with_phi): Likewise.
12627         * tree-dfa.c (refs_may_alias_p): New function.
12628         (get_single_def_stmt): Likewise.
12629         (get_single_def_stmt_from_phi): Likewise.
12630         (get_single_def_stmt_with_phi): Likewise.
12631         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12632         (vn_reference_lookup_1): New helper function.
12633         (vn_reference_lookup): Walk the virtual use-def chain to
12634         continue searching for a match if the def does not alias the
12635         reference we are looking for.
12636
12637 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12638
12639         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12640         archive and Perzl.  Update The Written Word listing.
12641
12642 2008-03-14  Richard Guenther  <rguenther@suse.de>
12643
12644         PR tree-optimization/34043
12645         PR tree-optimization/33989
12646         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12647         when doing FRE.
12648         (bitmap_find_leader): Use extra argument to verify dominance
12649         relationship inside a basic-block.
12650         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12651         (find_leader_in_sets): Adjust.
12652         (create_component_ref_by_pieces): Take extra argument for
12653         dominance check, handle lookup failures.
12654         (find_or_generate_expression): Likewise.
12655         (create_expression_by_pieces): Likewise.
12656         (insert_into_preds_of_block): Adjust.
12657         (create_value_expr_from): If asked for, verify all operands
12658         are in the blocks AVAIL_OUT set.
12659         (make_values_for_stmt): Check for SSA_NAMEs that are life
12660         over an abnormal edge.
12661         (compute_avail): Remove such check.
12662         (do_SCCVN_insertion): New function.
12663         (eliminate): If we do not find a leader suitable for replacement
12664         insert a replacement expression from SCCVN if available.
12665         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12666         (struct vn_ssa_aux): Add needs_insertion flag.
12667         * tree-ssa-sccvn.c (may_insert): New global flag.
12668         (copy_reference_ops_from_ref): Value-number union member access
12669         based on its size, not type and member if insertion is allowed.
12670         (visit_reference_op_load): For a weak match from union type
12671         punning lookup a view-converted value and insert a SSA_NAME
12672         for that value if that is not found.
12673         (visit_use): Make dumps shorter.  Do not disallow value numbering
12674         SSA_NAMEs that are life over an abnormal edge to constants.
12675         (free_scc_vn): Release inserted SSA_NAMEs.
12676         (run_scc_vn): New flag to specify whether insertion is allowed.
12677         Process SSA_NAMEs in forward order.
12678         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12679         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12680         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12681         pointer type to/from integral types that do not change the
12682         precision to regular conversions.
12683
12684 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12685
12686         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12687         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12688         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12689         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12690         input arguments and the mode of return value.  Built-in functions
12691         that operate on whole 64-bit MMX register now use V1DI mode.
12692
12693 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12694             Olga Golovanevsky  <olga@il.ibm.com>
12695
12696         PR tree-optimization/35041
12697         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12698         to locate the right position in a statement.
12699
12700 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12701
12702         PR target/34000
12703         PR target/35553
12704         * config/i386/xmmintrin.h:  Change all static inline functions to
12705         extern inline and add __gnu_inline__ attribute.
12706         * config/i386/bmintrin.h: Ditto.
12707         * config/i386/smmintrin.h: Ditto.
12708         * config/i386/tmmintrin.h: Ditto.
12709         * config/i386/mmintrin-common.h: Ditto.
12710         * config/i386/ammintrin.h: Ditto.
12711         * config/i386/emmintrin.h: Ditto.
12712         * config/i386/pmmintrin.h: Ditto.
12713         * config/i386/mmintrin.h: Ditto.
12714         * config/i386/mm3dnow.h: Ditto.
12715
12716 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12717
12718         PR middle-end/35185
12719         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12720         (lower_omp_2): New function.
12721         (lower_omp_1, lower_omp): Rewritten.
12722
12723 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12724
12725         PR 35054
12726         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12727         with the phrase "Microsoft Windows compilers".
12728         (Push/Pop Macro Pragmas): New subsection. Document
12729         #pragma push_macro and pragma pop_macro.
12730
12731 2008-03-12  Paul Brook  <paul@codesourcery.com>
12732
12733         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12734
12735 2008-03-12  Paul Brook  <paul@codesourcery.com>
12736
12737         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12738         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12739         (thumb2_addsi_shortim): Rename ...
12740         (thumb2_addsi_short): ... to this.  Allow register operands.
12741         (thumb2_subsi_short): New pattern.
12742         (thumb2_one_cmplsi2_short,
12743         thumb2_negsi2_short): New patterns and peepholes.
12744
12745 2008-03-12  Paul Brook  <paul@codesourcery.com>
12746
12747         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12748
12749 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12750
12751         * config/i386/i386.md (int_cond): New code iterator.
12752         (fp_cond): Ditto.
12753         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12754         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12755         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12756         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12757         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12758         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12759         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12760         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12761
12762 2008-03-12  Paul Brook  <paul@codesourcery.com>
12763
12764         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12765         instead of {arm,thumb}_compute_save_reg_mask.
12766         (output_return_instruction): Ditto.
12767         (thumb_unexpanded_epilogue): Ditto.
12768         (thumb1_expand_prologue): Ditto.
12769         (thumb1_output_function_prologue): Ditto.
12770         (arm_set_return_address): Ditto.
12771         (thumb_set_return_address): Ditto.
12772         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12773         regs to achieve stack alignment.
12774         (thumb1_compute_save_reg_mask): Fix compiler warning.
12775         (arm_output_epilogue): Use offsets->saved_regs_mask.
12776         Adjust stack pointer by poping call clobered registers.
12777         (arm_expand_prologue): Use offsets->saved_regs_mask.
12778         Adjust stack pointer by pushing extra registers.
12779         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12780
12781 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12782
12783         PR tree-opt/35422
12784         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12785         conversion to the operands of a multiplication.
12786
12787 2008-03-12  Richard Guenther  <rguenther@suse.de>
12788
12789         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12790         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12791         * timevar.def (TV_TREE_PHIPROP): Add.
12792         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12793         pass description.  Use TV_TREE_PHIPROP.
12794         * tree-ssa-forwprop.c: Remove phiprop code.
12795
12796 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12797
12798         PR middle-end/35549
12799         * omp-low.c (maybe_lookup_decl): Constify first argument.
12800         (use_pointer_for_field): Change last argument from bool to
12801         omp_context *.  Disallow shared copy-in/out in nested
12802         parallel if decl is shared in outer parallel too.
12803         (build_outer_var_ref, scan_sharing_clauses,
12804         lower_rec_input_clauses, lower_copyprivate_clauses,
12805         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12806
12807 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12808             Ira Rosen  <irar@il.ibm.com>
12809
12810         * tree-vectorizer.c (free_stmt_vec_info): New function.
12811         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12812         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12813         * tree-vectorizer.h (free_stmt_vec_info): Declare.
12814         * tree-vect-transform.c (vectorizable_conversion): Free
12815         vec_oprnds0 if it was allocated.
12816         (vect_permute_store_chain): Remove unused VECs.
12817         (vectorizable_store): Free VECs that are allocated in the..
12818         function.
12819         (vect_transform_strided_load, vectorizable_load): Likewise.
12820         (vect_remove_stores): Simplify the code.
12821         (vect_transform_loop): Move code to vect_remove_stores().
12822         Call vect_remove_stores() and free_stmt_vec_info().
12823
12824 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12825
12826         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12827         TARGET_HPUX.  Revise comment.
12828         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12829         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12830         Use sr4 variant of `be' instruction when not generating PIC code.
12831         (attr_length_call): Adjust for above change.
12832
12833 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12834
12835         * ipa-reference.c (static_execute): Remove module_statics_const and
12836         associated setting code.
12837
12838 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12839
12840         PR target/35540
12841         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12842         predicate for operand 1.
12843         (paritysi2_cmp): Use register_operand predicate for operand 2.
12844         Use earlyclobber modifier for operand 1.  Remove support for
12845         memory operands.
12846         (paritydi2_cmp): Use register_operand predicate for operand 3.
12847         Use earlyclobber modifier for operand 1.  Remove support for
12848         memory operands.
12849
12850 2008-03-11  Paul Brook  <paul@codesourcery.com>
12851             Vladimir Prus  <vladimir@codesourcery.com>
12852
12853         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12854         (arm_compute_save_reg0_reg12_mask): Always
12855         check if register 11 must be saved.  Always safe hard frame pointer
12856         when frame_pointer_needeed.
12857         (arm_compute_save_reg_mask): Save IP and PC
12858         only with apcs frames.
12859         (arm_output_epilogue): Adjust Thumb2 codepath to
12860         be also invoked and work for ARM non-apcs frames.
12861         (arm_expand_prologue): Don't bother saving IP
12862         for non-apcs frame, since it's not clobbered by
12863         prologue code.  Implement non-apcs frame
12864         layout.
12865
12866 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12867
12868         PR rtl-optimization/35281
12869         * expr.c (convert_move): Use a new pseudo for the intermediate
12870         from_mode->word_mode result.
12871
12872 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12873
12874         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12875         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12876         * toplev.c (compile_file): Don't call it.
12877
12878 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12879
12880         PR middle-end/35526
12881         * expr.c (store_expr): Call emit_block_move if the mode
12882         of "temp" RTX is BLKmode.
12883
12884 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12885             Richard Guenther  <rguenther@suse.de>
12886
12887         PR tree-optimization/31358
12888         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12889         the step with a NULL_TREE.
12890         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12891         to sizetype if type is a pointer type.
12892         (add_candidate_1): Don't convert the base and step to
12893         the generic type if the orginal type is a pointer type.
12894         (add_iv_value_candidates): Use sizetype for the step
12895         if type is a pointer type.
12896         (cand_value_at): Likewise.
12897         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12898         for pointer types.
12899         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12900         Don't convert the tem affine to the type.
12901         (add_elt_to_tree): Use sizetype for the step if a pointer.
12902         Use POINTER_PLUS_EXPR for pointers.
12903         (aff_combination_to_tree): Use sizetype for the step if a
12904         pointer.
12905
12906 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
12907
12908         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12909         Remove commutativity hint.
12910
12911 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
12912
12913         PR c/35438
12914         PR c/35439
12915         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12916         errorneous type.  Check that v is a VAR_DECL.
12917
12918         PR middle-end/35099
12919         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12920
12921 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12922
12923         PR tree-optimization/35494
12924         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12925         may be overriden at link and run time.
12926
12927 2008-03-10  Richard Guenther  <rguenther@suse.de>
12928
12929         PR tree-optimization/34677
12930         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12931         (poolify_tree): Likewise.
12932         (modify_expr_template): Likewise.
12933         (poolify_modify_stmt): Likewise.
12934         (insert_fake_stores): Handle all component-ref style stores
12935         in addition to INDIRECT_REF.  Also handle complex types.
12936         Do not poolify the inserted load.
12937         (realify_fake_stores): Do not rebuild the tree but only
12938         make it a SSA_NAME copy.
12939         (init_pre): Remove initialzation of modify_expr_template.
12940         Do not allocate modify_expr_node_pool.
12941         (fini_pre): Do not free modify_expr_node_pool.
12942
12943 2008-03-10  Paul Brook  <paul@codesourcery.com>
12944
12945         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12946         to avoid conflicts.
12947
12948 2008-03-10  Paul Brook  <paul@codesourcery.com>
12949             Mark Shinwell  <shinwell@codesourcery.com>
12950
12951         * config/arm/cortex-r4.md: New.
12952         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12953         insn attributes.
12954         * config/arm/arm.md: Include cortex-r4.md.
12955         (insn): Add smmls, sdiv and udiv values.
12956         (generic_sched): Don't use generic scheduling for Cortex-R4.
12957         (arm_issue_rate): New function.
12958         (TARGET_SCHED_ISSUE_RATE): Define.
12959
12960 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
12961
12962         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12963
12964 2008-03-10  Richard Guenther  <rguenther@suse.de>
12965
12966         * tree-ssa-pre.c (get_sccvn_value): Simplify.
12967         (compute_avail): Do not add stmt uses to AVAIL_OUT.
12968
12969 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
12970
12971         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12972         Set default to true.
12973
12974 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12975
12976         * c.opt (Wsynth): Deprecate.
12977         * doc/invoke.texi (Option Summary, Warning Options): Document
12978         -Wno-format-contains-nul.
12979
12980 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
12981
12982         PR target/35496
12983         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12984         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12985
12986 2008-03-09  Ira Rosen  <irar@il.ibm.com>
12987
12988         * config/rs6000/rs6000.c (builtin_description): Rename vector
12989         left shift operations.
12990         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12991         (altivec_vsl<VI_char>): Rename to ...
12992         (ashl<mode>3): ... new name.
12993         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12994         gen_ashlv4si3.
12995         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12996
12997 2008-03-08  Richard Guenther  <rguenther@suse.de>
12998
12999         * coverage.h (tree_coverage_counter_addr): Declare.
13000         * coverage.c (tree_coverage_counter_addr): New function.
13001         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13002         before using again.
13003         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13004         (tree_gen_one_value_profiler): Likewise.
13005         (tree_gen_ic_profiler): Likewise.
13006         (tree_gen_average_profiler): Likewise.
13007         (tree_gen_ior_profiler): Likewise.
13008
13009 2008-03-08  Richard Guenther  <rguenther@suse.de>
13010
13011         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13012         (vn_binary_op_insert): Likewise.
13013         (vn_unary_op_lookup): Likewise.
13014         (vn_unary_op_insert): Likewise.
13015         (vn_nary_op_lookup): Declare.
13016         (vn_nary_op_insert): Likewise.
13017         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13018         and binary hashes, use a single obstack for unary_op_pool
13019         and binary_op_pool.
13020         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13021         a single struct vn_nary_op_s.  Store tree code length and
13022         a variable number of operands.
13023         (struct vn_reference_op_struct): Remove unused op2.
13024         (vn_reference_op_eq): Do not compare op2.
13025         (vn_reference_op_compute_hash): Do not compute hash of op2.
13026         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13027         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13028         with vn_nary_op_compute_hash.
13029         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13030         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13031         vn_nary_op_lookup.
13032         (vn_unary_op_insert, vn_binary_op_insert): Replace with
13033         vn_nary_op_insert.
13034         (visit_unary_op): Call nary functions.
13035         (visit_binary_op): Likewise.
13036         (process_scc): Adjust for struct vn_tables_s changes.
13037         (allocate_vn_table): Likewise.
13038         (free_vn_table): Likewise.
13039         * tree-vn.c (vn_add): Call nary functions.
13040         (vn_lookup): Likewise.
13041
13042 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
13043
13044         PR target/35498
13045         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13046         wdst back after sync_compare_and_swapqhi_internal.
13047
13048 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
13049
13050         PR target/22152
13051         * config/i386/i386-modes.def (V1DI): New vector mode.
13052         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13053         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13054         (MMXMODE248): Ditto.
13055         (MMXMODE): Add V1DI mode.
13056         (mmxvecsize): Change DI mode to V1DI mode.
13057         ("mov<mode>): Use MMXMODEI8 mode iterator.
13058         ("*mov<mode>_internal_rex64"): Ditto.
13059         ("*mov<mode>_internal"): Ditto.
13060         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
13061         ("mmx_sub<mode>3"): Ditto.
13062         ("mmx_adddi3"): Remove insn pattern.
13063         ("mmx_subdi3"): Ditto.
13064         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13065         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13066         ("mmx_ashl<mode>3"): Ditto.
13067         ("mmx_lshrdi3"): Remove insn pattern.
13068         ("mmx_ashldi3"): Ditto.
13069         * config/i386/i386.c (classify_argument): Handle V1DImode.
13070         (function_arg_advance_32): Ditto.
13071         (function_arg_32): Ditto.
13072         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13073         mmx_addv1di3 insn pattern.
13074         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13075         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13076         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13077         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13078         Remove definitions of built-in functions.
13079         (V1DI_type_node): New node.
13080         (v1di_ftype_v1di_int): Ditto.
13081         (v1di_ftype_v1di_v1di): Ditto.
13082         (v2si_ftype_v2si_si): Ditto.
13083         (v4hi_ftype_v4hi_di): Remove node.
13084         (v2si_ftype_v2si_di): Ditto.
13085         (ix86_init_mmx_sse_builtins): Handle V1DImode.
13086         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13087         Redefine builtins using def_builtin_const with *_ftype_*_int node.
13088         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13089         Add new builtins using def_builtin_const.
13090         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13091         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13092         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13093         * config/i386/mmintrin.h (__v1di): New typedef.
13094         (_mm_add_si64): Cast arguments to __v1di type.
13095         (_mm_sub_si64): Ditto.
13096         (_mm_sll_pi16): Cast __count to __v4hi type.
13097         (_mm_sll_pi32): Cast __count to __v2si type.
13098         (_mm_sll_si64): Cast arguments to __v1di type.
13099         (_mm_srl_pi16): Cast __count to __v4hi type.
13100         (_mm_srl_pi32): Cast __count to __v2si type.
13101         (_mm_srl_si64): Cast arguments to __v1di type.
13102         (_mm_sra_pi16): Cast __count to __v4hi type.
13103         (_mm_sra_pi32): Cast __count to __v2si type.
13104         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13105         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13106         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13107         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13108         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13109         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13110         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13111         (_mm_srai_pi32): Use __builtin_ia32_psradi.
13112         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13113         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13114         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13115         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13116
13117 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
13118
13119         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13120
13121 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
13122
13123         PR target/35373
13124         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13125         reg+const addressing for Altivec modes.  Don't generate reg+reg
13126         addressing for TFmode or TDmode quantities.
13127
13128 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
13129
13130         * c-common.c (vector_types_convertible_p): Call langhook
13131         instead of comptypes.
13132
13133 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13134
13135         PR tree-opt/35402
13136         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13137         integral and scalar float variables which have a
13138         NULL DECL_INITIAL.
13139
13140 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
13141
13142         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13143         dwarf_register_span hook when emitting unwind information for
13144         register-to-memory saves.
13145         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13146         (rs6000_frame_related): Remove call to spe_synthesize_frame.
13147
13148 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13149
13150         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13151         for the same VAR_DECL.
13152
13153 2008-03-06  Tom Tromey  <tromey@redhat.com>
13154
13155         * treelang: Delete.
13156         * doc/standards.texi (Standards): Don't mention treelang.
13157         * doc/invoke.texi (Overall Options): Don't mention treelang.
13158         * doc/install.texi (Prerequisites): Don't mention bison or
13159         treelang.
13160         (Configuration): Don't mention treelang.
13161         (Building): Likewise.
13162         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13163
13164 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13165
13166         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13167         word-extractions out of a multi-word object.
13168
13169 2008-03-06  Richard Guenther  <rguenther@suse.de>
13170
13171         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13172         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13173         result type and precision.
13174         * expr.c (get_inner_reference): Set unsignedp based on the result
13175         type of BIT_FIELD_REF.
13176         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13177         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13178         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13179         for BIT_FIELD_REF.
13180         (sra_build_assignment): Likewise.
13181         (sra_build_elt_assignment): Likewise.
13182         (sra_explode_bitfield_assignment): Likewise.
13183         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13184         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13185         set BIT_FIELD_REF_UNSIGNED.
13186         (vectorizable_load): Likewise.
13187
13188 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13189
13190         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13191         at bb start.
13192
13193 2008-03-06  Richard Guenther  <rguenther@suse.de>
13194
13195         * alias.c (struct alias_set_entry): Move has_zero_child field
13196         to pack with alias_set.
13197
13198 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13199
13200         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13201         32bit host.
13202
13203 2008-03-05  Ian Lance Taylor  <iant@google.com>
13204
13205         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13206
13207 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13208
13209         * fwprop.c (update_df): Support width and offset parameters of
13210         df_ref_create.
13211         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13212         global_conflicts): Change DF_REF_EXTRACT to either
13213         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13214         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13215         * df-scan.c (df_ref_record, df_defs_record,
13216         df_ref_create_structure, df_def_record_1, df_uses_record,
13217         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13218         df_bb_refs_collect, df_entry_block_defs_collect,
13219         df_exit_block_uses_collect): Support new width and offset fields.
13220         (ref_extract_pool): New storage pool.
13221         (df_free_ref): New function.
13222         (df_reg_chain_unlink, df_free_collection_rec,
13223         df_sort_and_compress_refs): Call df_free_ref.
13224         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13225         of df_ref_extract.
13226         (df_ref_create_structure): Allocate df_ref_extract if offset and
13227         width fields are used.
13228         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13229         (df_uses_record): Get offset and width from ZERO_EXTRACT 
13230         and SIGN_EXTRACT.
13231         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13232         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13233         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13234         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13235         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13236         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13237         (df_ref_extract): New structure.
13238         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13239         (df_ref_create): Add width and offset parameters.
13240         
13241 2008-03-05  Richard Guenther  <rguenther@suse.de>
13242
13243         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13244         Use ranges_overlap_p.
13245         (offset_overlaps_with_access): Rename
13246         to ranges_overlap_p and move ...
13247         * tree-flow-inline.h (ranges_overlap_p): ... here.
13248
13249         * tree.h (get_inner_reference, handled_component_p): Update
13250         comments.
13251
13252         * tree.h (record_component_aliases, get_alias_set,
13253         alias_sets_conflict_p, alias_sets_must_conflict_p,
13254         objects_must_conflict_p): Move declarations ...
13255         * alias.h (record_component_aliases, get_alias_set,
13256         alias_sets_conflict_p, alias_sets_must_conflict_p,
13257         objects_must_conflict_p): ... here.
13258         Include coretypes.h.
13259         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13260
13261 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13262
13263         * cfg.c: Include tree-flow.h.
13264         (remove_edge_raw): Call redirect_edge_var_map_clear.
13265         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13266         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13267         (redirect_edge_var_map_result): New.
13268         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13269         PENDING_STMT use with redirect_edge_var_map_*.
13270         * tree-ssa.c (edge_var_maps): New definition.
13271         (redirect_edge_var_map_add): New.
13272         (redirect_edge_var_map_clear): New.
13273         (redirect_edge_var_map_dup): New.
13274         (redirect_edge_var_map_vector): New.
13275         (redirect_edge_var_map_destroy): New.
13276         (ssa_redirect_edge): Replace PENDING_STMT use with
13277         redirect_edge_var_map_*.
13278         (flush_pending_stmts): Same.
13279         (delete_tree_ssa): Destroy edge var map.
13280         * tree-flow.h (struct _edge_var_map): New.
13281         Define edge_var_map vector type.
13282         Declare redirect_edge_var_map_* prototypes.
13283         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13284         * tree-cfg.c (reinstall_phi_args): Replace
13285         PENDING_STMT use with redirect_edge_var_map_*.
13286
13287 2008-03-05  Richard Guenther  <rguenther@suse.de>
13288
13289         PR tree-optimization/35472
13290         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13291         whose single use_stmt has a overlapping set of loaded and
13292         stored symbols as that use_stmt might be a noop assignment then.
13293
13294 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13295
13296         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13297
13298 2008-03-05  Richard Guenther  <rguenther@suse.de>
13299
13300         PR c++/35336
13301         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13302         should be constants.
13303         * tree-cfg.c (verify_expr): Verify it.
13304         * fold-const.c (fold_truthop): Remove code generating
13305         BIT_FIELD_REFs of structure bases.
13306         (fold_binary): Likewise.
13307         (fold_ternary): Position and size of BIT_FIELD_REFs are
13308         always host integers.
13309         (make_bit_field_ref): Remove.
13310         (optimize_bit_field_compare): Remove.
13311         (all_ones_mask_p): Remove.
13312
13313 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13314
13315         PR gcc/33009
13316         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13317         (split_block_and_df_analyze): New. Split basic block and rebuild
13318         dataflow.
13319         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13320         SPLIT_BLOCK.
13321         (split_pattern_seq): Likewise.
13322         (erase_matching_seqs): Likewise.
13323         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13324
13325 2008-03-04  Geoff Keating  <geoffk@apple.com>
13326
13327         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13328         declaration and code.
13329         (tree_invalid_nonnegative_warnv_p): Likewise.
13330
13331 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13332
13333         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13334         examples.  Truncate option-names then causing overfull hbox.
13335
13336 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13337
13338         PR target/35222
13339         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13340         on hpux10.
13341         * configure: Rebuilt.
13342
13343 2008-03-04  Rafael Espindola  <espindola@google.com>
13344
13345         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13346         (tree_unary_nonnegative_warnv_p): New.
13347         (tree_binary_nonnegative_warnv_p): New.
13348         (tree_single_nonnegative_warnv_p): New.
13349         (tree_invalid_nonnegative_warnv_p): New.
13350         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13351
13352 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13353
13354         PR 28322
13355         * opts.c (handle_option): Postpone 'unknown option' errors only for
13356         warning options.
13357
13358 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13359
13360         PR target/35453
13361         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13362         (_SIDD_XXX): This.
13363
13364 2008-03-04  Rafael Espindola  <espindola@google.com>
13365
13366         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13367         (tree_binary_nonzero_warnv_p): New.
13368         (tree_single_nonzero_warnv_p): New.
13369         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13370
13371 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13372
13373         PR middle-end/35456
13374         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13375         transformations for modes that have signed zeros.
13376         * ifcvt.c (noce_try_abs): Ditto.
13377
13378 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13379
13380         * config/i386/i386.c (override_options): Force
13381         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13382
13383 2008-03-04  Jan Hubicka  <jh@suse.cz>
13384
13385         PR c++/35262
13386         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13387         in last commit.
13388
13389 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13390
13391         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13392         label to probe the stack.
13393
13394 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13395
13396         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13397         (__gthr_win32_mutex_destroy): Declare.
13398         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13399         __gthr_win32_mutex_destroy.
13400         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13401
13402 2008-03-03  Jan Hubicka  <jh@suse.cz>
13403
13404         PR c++/35262
13405         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13406         aggressive on inlining cold calls.
13407
13408 2008-03-03  Richard Guenther  <rguenther@suse.de>
13409
13410         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13411         struct copies into the expression table.
13412         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13413         (try_to_simplify): Likewise.
13414         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13415         integral and pointer arguments which do not change the
13416         precision to NOP_EXPRs.
13417         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13418         VIEW_CONVERT_EXPR case.
13419
13420 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13421
13422         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13423         defined in a loop at depth 0 is invariant.
13424         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13425         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13426         be called at loop depth 0.
13427
13428 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13429
13430         PR driver/35420
13431         * gcc.c (process_command): Update copyright notice dates.
13432         * gcov.c (print_version): Likewise.
13433         * gcov-dump.c (print_version): Likewise.
13434         * mips-tfile.c (main): Likewise.
13435         * mips-tdump.c (main): Likewise.
13436
13437 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13438
13439         PR 24924
13440         * c-common.c (flag_permissive): Delete.
13441         (constant_expression_warnings): Check flags first.
13442         (constant_expression_error): New.
13443         * c-common.h (flag_permissive): Delete.
13444         (constant_expression_error): Declare.
13445         * flags.h (flag_permissive): Declare. Update description.
13446         * diagnostic.c (pedwarn): Update.
13447         (permerror): New.
13448         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13449         (permissive_error_kind): New.
13450         * toplev.c (flag_permissive): Define. Update description.
13451         * toplev.h (permissive_error_kind): Declare.
13452         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13453         (pedwarn_c90): Use pedantic_warning_kind.
13454         * c-opts.c (c_common_post_options): flag_permissive does not affect
13455         flag_pedantic_errors.
13456
13457 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13458
13459         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13460         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13461         __absvsi2, __absvDI2): Use unsigned arithmetic.
13462
13463 2008-03-02  Andi Kleen  <ak@suse.de>
13464             Richard Guenther  <rguenther@suse.de>
13465
13466         * struct-equiv.c: Remove file.
13467         * cfg_cleanup.c (condjump_equiv_p): Remove.
13468         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13469         (struct-equiv.o): Remove rule.
13470         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13471         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
13472         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13473
13474 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13475
13476         * ifcvt.c (noce_process_if_block): Try to handle only the then
13477         block if the else block exists but isn't suitable.
13478
13479 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13480
13481         PR gcc/35063
13482         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13483         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13484         regression from previous patch.
13485
13486 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13487
13488         PR gcc/35063
13489         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13490         implemented.
13491         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13492         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13493         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13494         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13495         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13496         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13497         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13498         (__gthread_mutex_destroy_function): Rename to
13499         __gthread_mutex_destroy.
13500         * gthr-dce.h (__gthread_mutex_destroy): Call
13501         pthread_mutex_destroy.
13502         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13503         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13504         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13505
13506 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13507
13508         * df-scan.c (df_ref_chain_change_bb): Simplify.
13509         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13510         set_block_for_insn if there's any change.
13511         * df.h ((df_insn_change_bb): Fix prototype.
13512         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13513         df_insn_change_bb, don't call set_block_for_insn.
13514         * emit-rtl.c (reorder_insns): Likewise.
13515         * haifa-sched.c (move_insn): Likewise.
13516
13517 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13518
13519         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13520
13521 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13522
13523         * tree-flow-inline.h (next_readonly_imm_use): Return
13524         NULL_USE_OPERAND_P after the end.
13525
13526 2008-03-01  Richard Guenther  <rguenther@suse.de>
13527
13528         PR tree-optimization/35411
13529         * tree-sra.c (sra_build_assignment): Split conversion to
13530         final type to a separate statement if we are not assigning
13531         to a register.
13532
13533 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13534
13535         * fold-const.c (fold_convertible_p): Correct the logic to follow
13536         that in fold_convert().
13537
13538 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13539
13540         PR c++/35315
13541         * tree-inline.c (build_duplicate_type): When we make a
13542         duplicate type, make it unique in the canonical types system.
13543
13544 2008-02-29  Tom Tromey  <tromey@redhat.com>
13545
13546         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13547         input_file_stack_history, input_file_stack_restored): Remove.
13548         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13549         * input.h (struct file_stack): Remove.
13550         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13551         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13552         Likewise.
13553         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13554         type.
13555         (diagnostic_last_module_changed): Add 'map' argument.
13556         (diagnostic_set_last_function): Likewise.
13557         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13558         line map, not input_file_stack.
13559         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13560
13561 2008-02-29  Paul Brook  <paul@codesourcery.com>
13562
13563         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13564
13565 2008-02-29  Paul Brook  <paul@codesourcery.com>
13566
13567         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13568
13569 2008-02-29  Richard Guenther  <rguenther@suse.de>
13570
13571         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13572         vn_lookup_or_add.
13573         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13574         value for comparing for a store match.
13575         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13576         (try_to_simplify): Do not do a full-blown reference lookup.
13577
13578 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13579
13580         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13581         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13582
13583         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13584
13585 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13586
13587         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13588         strides against cache sizes.
13589
13590 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13591
13592         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13593         constant to fpul.
13594
13595 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13596
13597         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13598         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13599         is smaller than the original promoted value.
13600         (simplify_subreg): If OP is a SUBREG, try to preserve its
13601         SUBREG_PROMOTED_VAR_P information.
13602
13603 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13604
13605         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13606         (VN_INFO_GET): Allocate new objects on the obstack.
13607         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13608         for rpo_numbers_temp, for consistency.
13609         (free_scc_vn): Free the obstack.
13610
13611 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13612
13613         * doc/invoke.texi: Document -ftree-loop-distribution.
13614         * tree-loop-distribution.c: New.
13615         * tree-pass.h (pass_loop_distribution): New.
13616         * graphds.h (struct graph): Add htab_t indices.
13617         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13618         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13619         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13620         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13621         * tree-data-ref.c (debug_data_dependence_relations): New.
13622         (dump_data_dependence_relation): Also print data references.
13623         (free_data_ref): Extern.
13624         (same_access_functions): Moved...
13625         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13626         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13627         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13628         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13629         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13630         (stmts_from_loop): Skip LABEL_EXPR.
13631         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13632         New.
13633         (build_rdg): Initialize rdg->indices htab.
13634         (free_rdg, stores_from_loop, ref_base_address,
13635         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13636         have_similar_memory_accesses_1, ref_base_address_1,
13637         remove_similar_memory_refs): New.
13638         * tree-data-ref.h: Depend on tree-chrec.h.
13639         (debug_data_dependence_relations, free_data_ref): Declared.
13640         (same_access_functions): ... here.
13641         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13642         New.
13643         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13644         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13645         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13646         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13647         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13648         rdg_vertex_for_stmt): Declared.
13649         (struct rdg_edge): Add level.
13650         (RDGE_LEVEL): New.
13651         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13652         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13653         Declared.
13654         (rdg_has_similar_memory_accesses): New.
13655         * tree-vect-analyze.c: Remove unused static decls.
13656         * lambda.h (dependence_level): New.
13657         * common.opt (ftree-loop-distribution): New.
13658         * tree-flow.h (mark_virtual_ops_in_bb, 
13659         slpeel_tree_duplicate_loop_to_edge_cfg,
13660         rename_variables_in_loop): Declared.
13661         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13662         (OBJS-common): Add tree-loop-distribution.o.
13663         (tree-loop-distribution.o): New rule.
13664         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13665         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13666         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13667
13668 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13669
13670         PR target/33963
13671         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13672         other than structures and unions.
13673
13674 2008-02-28  Richard Guenther  <rguenther@suse.de>
13675
13676         Revert:
13677         2008-02-26  Richard Guenther  <rguenther@suse.de>
13678
13679         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13680         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13681         (lookup_decl_from_uid): Declare.
13682         (remove_decl_from_map): Likewise.
13683         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13684         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13685         (decl_for_uid_map): New global hashtable mapping DECL_UID
13686         to the decl tree.
13687         (init_ttree): Allocate it.
13688         (insert_decl_to_uid_decl_map): New helper function.
13689         (make_node_stat): Insert new decls into the map.
13690         (copy_node_stat): Likewise.
13691         (lookup_decl_from_uid): New function.
13692         (remove_decl_from_map): Likewise.
13693         (print_decl_for_uid_map_statistics): New helper.
13694         (dump_tree_statistics): Call it.
13695
13696         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13697         (referenced_var_iterator): Adjust.
13698         (FOR_EACH_REFERENCED_VAR): Adjust.
13699         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13700         (num_referenced_vars): Adjust.
13701         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13702         (first_referenced_var): Remove.
13703         (end_referenced_vars_p): Likewise.
13704         (next_referenced_var): Likewise.
13705         (referenced_var_iterator_set): New helper function.
13706         * tree-dfa.c (referenced_var_lookup): Adjust.
13707         (referenced_var_check_and_insert): Likewise.
13708         (remove_referenced_var): Likewise.
13709         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13710         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13711         (verify_call_clobbering): Likewise.
13712         (verify_memory_partitions): Likewise.
13713         (init_tree_ssa): Allocate bitmap instead of hashtable for
13714         referenced_vars.
13715         (delete_tree_ssa): Adjust.
13716         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13717         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13718         (compute_tag_properties): Likewise.
13719         (set_initial_properties): Likewise.
13720         (find_partition_for): Likewise.
13721         (update_reference_counts): Likewise.
13722         (dump_may_aliases_for): Likewise.
13723         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13724         (add_call_clobber_ops): Likewise.
13725         (add_call_read_ops): Likewise.
13726         (get_asm_expr_operands): Likewise.
13727         * tree-into-ssa.c (dump_decl_set): Likewise.
13728         (update_ssa): Likewise.
13729         * tree-sra.c (scan_function): Likewise.
13730         (decide_instantiations): Likewise.
13731         (scalarize_parms): Likewise.
13732         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13733         (dsa_named_for): Likewise.
13734         * tree-ssa-structalias.c (update_alias_info): Likewise.
13735         (merge_smts_into): Likewise.
13736
13737 2008-02-27  David Daney  <ddaney@avtrex.com>
13738
13739         PR target/34409
13740         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13741         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13742         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13743         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13744         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13745
13746 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13747
13748         PR target/25477
13749         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13750         (BUILT_IN_NEXTTOWARD): Remove.
13751         (BUILT_IN_NEXTTOWARDF): Ditto.
13752         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13753         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13754
13755 2008-02-27  Tom Tromey  <tromey@redhat.com>
13756
13757         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13758         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13759
13760 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13761
13762         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13763         update the respective field on newdecl.
13764
13765 2008-02-27  Revital Eres  <eres@il.ibm.com>
13766
13767         PR rtl-optimization/34999
13768         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13769         crossing edges that ends with a call insn.
13770         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13771         call insn and clear the EDGE_CROSSING flag of the crossing edge
13772         when fixing fallthru edges.
13773
13774 2008-02-27  Richard Guenther  <rguenther@suse.de>
13775
13776         PR middle-end/35390
13777         * fold-const.c (fold_unary): Return the correct argument,
13778         converted to the result type.
13779
13780 2008-02-27  Richard Guenther  <rguenther@suse.de>
13781
13782         PR middle-end/34971
13783         * expr.c (expand_expr_real_1): Assert on rotates that operate
13784         on partial modes.
13785         * fold-const.c (fold_binary): Use the types precision, not the
13786         bitsize of the mode if folding rotate expressions.  Build rotates
13787         only for full modes.
13788
13789 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13790
13791         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13792         and CPP_PRAGMA_EOL.
13793         * c-pragma.c (pragma_ns_name): New typedef.
13794         (registered_pp_pragmas): New variable.
13795         (c_pp_lookup_pragma): New function.
13796         (c_register_pragma_1): If flag_preprocess_only, do nothing
13797         for non-expanded pragmas, for expanded ones push pragma's
13798         namespace and name into registered_pp_pragmas vector.
13799         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13800         flag_preprocess_only, don't register GCC pch_preprocess
13801         pragma if flag_preprocess_only.
13802         * c-opts.c (c_common_init): Call init_pragma even if
13803         flag_preprocess_only.
13804         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13805         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13806         cpp_register_pragma if flag_preprocess_only.
13807
13808 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13809
13810         PR c/28800
13811         * c-parser.c (c_parser_translation_unit): Warn for empty
13812         translation unit, not empty source file.
13813
13814 2008-02-26  Paul Brook  <paul@codesourcery.com>
13815
13816         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13817         operand for Thumb-2.
13818         * config/arm/arm.h (reg_class): Add CORE_REGS.
13819         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13820         (BASE_REG_CLASS): Use CORE_REGS.
13821         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13822         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13823         (REGNO_OK_FOR_INDEX_P): Exclude SP.
13824         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
13825         ARM_REGNO_OK_FOR_INDEX_P.
13826         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13827         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13828         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13829         (ldm/stm peepholes): Ditto.
13830         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13831         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13832         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13833         * config/arm/constraints.md: Enable "k" constraint on ARM.
13834
13835 2008-02-27  Ben Elliston  <bje@au.ibm.com>
13836
13837         * config/rs6000/rs6000.c: Annotate cache line size field in all
13838         instances of struct processor_costs.
13839
13840 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
13841
13842         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13843         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13844         jump_bypass): New counters.
13845         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13846         * dce.c (gate_ud_dce): Same.
13847         (gate_fast_dce): Same.
13848         * dse.c (gate_dse1): New function.
13849         (gate_dse2): New function.
13850         (gate_dse): Merge results of new gate functions.
13851         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13852         (gate_handle_jump_bypass): Add dbg_cnt.
13853         (gate_handle_gcse): Add dbg_cnt.
13854         * ifcvt.c (gate_handle_if_conversion): Same.
13855         (gate_handle_if_after_combine): Same.
13856         (gate_handle_if_after_reload): Same.
13857         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13858
13859 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
13860
13861         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13862         line sizes.
13863         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13864
13865 2008-02-26  Jason Merrill  <jason@redhat.com>
13866
13867         PR c++/35315
13868         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
13869         alone if it's the naming decl for the type's main variant.
13870
13871 2008-02-26  Tom Tromey  <tromey@redhat.com>
13872
13873         * system.h (USE_MAPPED_LOCATION): Poison.
13874         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13875         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13876         (make_goto_expr_edges): Likewise.
13877         (remove_bb): Likewise.
13878         (execute_warn_function_return): Likewise.
13879         * basic-block.h (struct edge_def) <goto_locus>: Change type to
13880         location_t.
13881         * c-common.c (fname_decl): Remove old location code.
13882         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13883         location code.
13884         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13885         variant.
13886         (ASM_INPUT_SOURCE_LOCATION): Likewise.
13887         (gen_rtx_ASM_INPUT): Likewise.
13888         (gen_rtx_ASM_INPUT_loc): Likewise.
13889         (get_rtx_asm_OPERANDS): Remove.
13890         * cfglayout.c (insn_locators_alloc): Remove old location code.
13891         (set_curr_insn_source_location): Likewise.
13892         (curr_insn_locator): Likewise.
13893         * print-tree.c (print_node): Remove old location code.
13894         * tree-mudflap.c (mf_varname_tree): Remove old location code.
13895         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13896         * cfgexpand.c (expand_gimple_cond_expr): Don't use
13897         location_from_locus.
13898         (construct_exit_block): Remove old location code.
13899         * emit-rtl.c (force_next_line_note): Remove old location code.
13900         * profile.c (branch_prob): Remove old location code.
13901         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13902         LOC_LINE): Remove old-location variants.
13903         * langhooks.c (lhd_print_error_function): Remove old location
13904         code.
13905         * configure, config.in: Rebuilt.
13906         * configure.ac (--enable-mapped-location): Remove.
13907         * c-decl.c (c_init_decl_processing): Remove old location code.
13908         (finish_function): Likewise.
13909         * recog.c (decode_asm_operands): Remove old location code.
13910         * c-pch.c (c_common_read_pch): Remove old location code.
13911         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13912         variants.
13913         * gimple-low.c (lower_function_body): Remove old location code.
13914         * toplev.c (unknown_location): Remove.
13915         (push_srcloc): Remove old-location variant.
13916         (process_options): Remove old location code.
13917         (lang_dependent_init): Likewise.
13918         * input.h (UNKNOWN_LOCATION): Move definition.
13919         (location_t): Undeprecate.
13920         (source_locus): Remove.
13921         (location_from_locus): Remove.
13922         (struct location_s): Remove.
13923         Remove all old-location code.
13924         (input_line, input_filename): Remove.
13925         * final.c (final_scan_insn): Remove old location code.
13926         * diagnostic.c (diagnostic_build_prefix): Remove
13927         USE_MAPPED_LOCATION test.
13928         * tree.h (gimple_stmt) <locus>: Now a location_t.
13929         (tree_exp) <locus>: Likewise.
13930         (DECL_IS_BUILTIN): Remove old-location variant.
13931         (annotate_with_file_line, annotate_with_locus): Likewise.
13932         (expr_locus, set_expr_locus): Update.
13933         * tree.c (build1_stat): Remove old location code.
13934         (last_annotated_node): Remove.
13935         (annotate_with_file_line): Remove old-location variant.
13936         (annotate_with_locus): Likewise.
13937         (expr_location): Remove old location code.
13938         (set_expr_location): Likewise.
13939         (expr_has_location): Likewise.
13940         (expr_locus): Likewise.
13941         (set_expr_locus): Likewise.
13942         (expr_filename): Don't use location_from_locus.
13943         (expr_lineno): Likewise.
13944         * rtl-error.c (location_for_asm): Remove old location code.
13945         * c-lex.c (cb_line_change): Remove old location code.
13946         (fe_file_change): Likewise.
13947         (cb_def_pragma): Likewise.
13948         (c_lex_with_flags): Likewise.
13949         * gengtype.c (do_typedef): Don't special-case location types.
13950         (define_location_structures): Remove.
13951         (main): Don't call define_location_structures.
13952         * tree-pretty-print.c (dump_implicit_edges): Remove old location
13953         code.
13954
13955 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13956
13957         PR 26264
13958         * builtins.def (BUILT_IN_STDARG_START): Remove.
13959         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13960         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13961         * tree-inline.c (inline_forbidden_p_1): Likewise.
13962         
13963 2008-02-26  Richard Guenther  <rguenther@suse.de>
13964
13965         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13966         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13967         (lookup_decl_from_uid): Declare.
13968         (remove_decl_from_map): Likewise.
13969         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13970         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13971         (decl_for_uid_map): New global hashtable mapping DECL_UID
13972         to the decl tree.
13973         (init_ttree): Allocate it.
13974         (insert_decl_to_uid_decl_map): New helper function.
13975         (make_node_stat): Insert new decls into the map.
13976         (copy_node_stat): Likewise.
13977         (lookup_decl_from_uid): New function.
13978         (remove_decl_from_map): Likewise.
13979         (print_decl_for_uid_map_statistics): New helper.
13980         (dump_tree_statistics): Call it.
13981
13982         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13983         (referenced_var_iterator): Adjust.
13984         (FOR_EACH_REFERENCED_VAR): Adjust.
13985         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13986         (num_referenced_vars): Adjust.
13987         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13988         (first_referenced_var): Remove.
13989         (end_referenced_vars_p): Likewise.
13990         (next_referenced_var): Likewise.
13991         (referenced_var_iterator_set): New helper function.
13992         * tree-dfa.c (referenced_var_lookup): Adjust.
13993         (referenced_var_check_and_insert): Likewise.
13994         (remove_referenced_var): Likewise.
13995         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13996         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13997         (verify_call_clobbering): Likewise.
13998         (verify_memory_partitions): Likewise.
13999         (init_tree_ssa): Allocate bitmap instead of hashtable for
14000         referenced_vars.
14001         (delete_tree_ssa): Adjust.
14002         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14003         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14004         (compute_tag_properties): Likewise.
14005         (set_initial_properties): Likewise.
14006         (find_partition_for): Likewise.
14007         (update_reference_counts): Likewise.
14008         (dump_may_aliases_for): Likewise.
14009         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14010         (add_call_clobber_ops): Likewise.
14011         (add_call_read_ops): Likewise.
14012         (get_asm_expr_operands): Likewise.
14013         * tree-into-ssa.c (dump_decl_set): Likewise.
14014         (update_ssa): Likewise.
14015         * tree-sra.c (scan_function): Likewise.
14016         (decide_instantiations): Likewise.
14017         (scalarize_parms): Likewise.
14018         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14019         (dsa_named_for): Likewise.
14020         * tree-ssa-structalias.c (update_alias_info): Likewise.
14021         (merge_smts_into): Likewise.
14022
14023 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14024
14025         PR 34351
14026         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14027         * c-opts.c (c_common_handle_option): Wall enables
14028         Wvolatile-register-var.
14029         * common.opt: Move Wvolatile-register-var to...
14030         * c.opt: ...here.
14031         
14032 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14033
14034         * common.opt (Wlarger-than=): New.
14035         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14036         -Wlarger-than=.
14037         * opts.c (common_handle_option): Handle -Wlarger-than=.
14038         * optc-gen.awk: Likewise.
14039         * opth-gen.awk: Likewise.
14040         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14041         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14042         
14043 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14044
14045         * c-common.c (match_case_to_enum_1): Add appropriate
14046         OPT_W* parameter to warning.
14047         (c_do_switch_warnings): Likewise.
14048         * c-typeck.c (warning_init): Add one more parameter following
14049         'warning' function.
14050         (push_init_level): Update call to warning_init.
14051         (pop_init_level): Likewise.
14052         (add_pending_init): Likewise.
14053         (output_init_element: Likewise.
14054
14055 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14056
14057         PR 28322
14058         * toplev.c (toplev_main): If there are warnings or error, print
14059         errors for ignored options.
14060         * opts.c (ignored_options): New static variable.
14061         (postpone_unknown_option_error): New.
14062         (print_ignored_options): New.
14063         (handle_option): Postpone errors for unknown -Wno-* options.
14064         * opts.h (print_ignored_options): Declare.
14065         
14066 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14067
14068         * config/mips/mips.md (loadgp_blockage, blockage): Change type
14069         to "ghost".
14070
14071 2008-02-25  Richard Guenther  <rguenther@suse.de>
14072
14073         Revert:
14074         2008-02-25  Richard Guenther  <rguenther@suse.de>
14075
14076         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14077         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14078         (lookup_decl_from_uid): Declare.
14079         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14080         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14081         (decl_for_uid_map): New global hashtable mapping DECL_UID
14082         to the decl tree.
14083         (init_ttree): Allocate it.
14084         (insert_decl_to_uid_decl_map): New helper function.
14085         (make_node_stat): Insert new decls into the map.
14086         (copy_node_stat): Likewise.
14087         (lookup_decl_from_uid): New function.
14088         (print_decl_for_uid_map_statistics): New helper.
14089         (dump_tree_statistics): Call it.
14090
14091         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14092         (referenced_var_iterator): Adjust.
14093         (FOR_EACH_REFERENCED_VAR): Adjust.
14094         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14095         (num_referenced_vars): Adjust.
14096         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14097         (first_referenced_var): Remove.
14098         (end_referenced_vars_p): Likewise.
14099         (next_referenced_var): Likewise.
14100         (referenced_var_iterator_set): New helper function.
14101         * tree-dfa.c (referenced_var_lookup): Adjust.
14102         (referenced_var_check_and_insert): Likewise.
14103         (remove_referenced_var): Likewise.
14104         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14105         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14106         (verify_call_clobbering): Likewise.
14107         (verify_memory_partitions): Likewise.
14108         (init_tree_ssa): Allocate bitmap instead of hashtable for
14109         referenced_vars.
14110         (delete_tree_ssa): Adjust.
14111         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14112         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14113         (compute_tag_properties): Likewise.
14114         (set_initial_properties): Likewise.
14115         (find_partition_for): Likewise.
14116         (update_reference_counts): Likewise.
14117         (dump_may_aliases_for): Likewise.
14118         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14119         (add_call_clobber_ops): Likewise.
14120         (add_call_read_ops): Likewise.
14121         (get_asm_expr_operands): Likewise.
14122         * tree-into-ssa.c (dump_decl_set): Likewise.
14123         (update_ssa): Likewise.
14124         * tree-sra.c (scan_function): Likewise.
14125         (decide_instantiations): Likewise.
14126         (scalarize_parms): Likewise.
14127         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14128         (dsa_named_for): Likewise.
14129         * tree-ssa-structalias.c (update_alias_info): Likewise.
14130         (merge_smts_into): Likewise.
14131
14132 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14133
14134         PR fortran/29549
14135         * doc/invoke.texi (-fcx-limited-range): Document new option.
14136         * toplev.c (process_options): Handle -fcx-fortran-rules.
14137         * common.opt: Add documentation for -fcx-fortran-rules.
14138
14139 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14140
14141         PR c/35162
14142         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14143         actual behaviour and C99.
14144         
14145 2008-02-26  Ben Elliston  <bje@au.ibm.com>
14146
14147         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14148         (ASM_CPU_POWER6_SPEC): Likewise.
14149         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14150         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14151         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14152
14153 2008-02-25  Richard Guenther  <rguenther@suse.de>
14154
14155         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14156         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14157         (lookup_decl_from_uid): Declare.
14158         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14159         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14160         (decl_for_uid_map): New global hashtable mapping DECL_UID
14161         to the decl tree.
14162         (init_ttree): Allocate it.
14163         (insert_decl_to_uid_decl_map): New helper function.
14164         (make_node_stat): Insert new decls into the map.
14165         (copy_node_stat): Likewise.
14166         (lookup_decl_from_uid): New function.
14167         (print_decl_for_uid_map_statistics): New helper.
14168         (dump_tree_statistics): Call it.
14169
14170         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14171         (referenced_var_iterator): Adjust.
14172         (FOR_EACH_REFERENCED_VAR): Adjust.
14173         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14174         (num_referenced_vars): Adjust.
14175         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14176         (first_referenced_var): Remove.
14177         (end_referenced_vars_p): Likewise.
14178         (next_referenced_var): Likewise.
14179         (referenced_var_iterator_set): New helper function.
14180         * tree-dfa.c (referenced_var_lookup): Adjust.
14181         (referenced_var_check_and_insert): Likewise.
14182         (remove_referenced_var): Likewise.
14183         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14184         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14185         (verify_call_clobbering): Likewise.
14186         (verify_memory_partitions): Likewise.
14187         (init_tree_ssa): Allocate bitmap instead of hashtable for
14188         referenced_vars.
14189         (delete_tree_ssa): Adjust.
14190         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14191         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14192         (compute_tag_properties): Likewise.
14193         (set_initial_properties): Likewise.
14194         (find_partition_for): Likewise.
14195         (update_reference_counts): Likewise.
14196         (dump_may_aliases_for): Likewise.
14197         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14198         (add_call_clobber_ops): Likewise.
14199         (add_call_read_ops): Likewise.
14200         (get_asm_expr_operands): Likewise.
14201         * tree-into-ssa.c (dump_decl_set): Likewise.
14202         (update_ssa): Likewise.
14203         * tree-sra.c (scan_function): Likewise.
14204         (decide_instantiations): Likewise.
14205         (scalarize_parms): Likewise.
14206         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14207         (dsa_named_for): Likewise.
14208         * tree-ssa-structalias.c (update_alias_info): Likewise.
14209         (merge_smts_into): Likewise.
14210
14211 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14212
14213         PR target/35258
14214         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14215         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14216         * alias.h (nonoverlapping_memrefs_p): Likewise.
14217
14218 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14219
14220         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14221         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14222         __emultls_get_address, __emultls_register_common,
14223         __floatundi?f, and _Unwind_GetIPInfo.
14224         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14225         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14226         (gen_regparm_prefix): Likewise.
14227         (i386_nlm_encode_section_info): Sync with
14228         config/i386/winnt.c:i386_pe_encode_section_info().
14229         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14230         i386_nlm_mangle_decl_assembler_name): New.
14231         (netware_override_options): New.
14232         * config/i386/netware.h (netware_override_options): Declare.
14233         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14234         (i386_nlm_mangle_decl_assembler_name): Declare.
14235         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14236
14237 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14238
14239         PR other/32948
14240         * c-decl.c (grokdeclarator): Remove unused local variables
14241         `typedef_type' and `type_as_written'.
14242         * bb-reorder.c
14243         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14244         unused local variable `has_hot_blocks'.
14245         (fix_crossing_conditional_branches): Remove unused local variable
14246         `prev_bb'.
14247         
14248 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14249
14250         PR middle-end/19984
14251         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14252         using DEF_C99_BUILTIN.
14253         (BUILT_IN_NANF): Ditto.
14254         (BUILT_IN_NANL): Ditto.
14255
14256 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14257             Revital Eres  <eres@il.ibm.com>
14258
14259         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14260         regarding the order of two dependent insns in the same row.
14261
14262 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14263
14264         * stor-layout.c (layout_decl): Do not bump the alignment of a
14265         bit-field to more than byte alignment if it is packed.
14266
14267 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14268
14269         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14270         e300c2 and e300c3.
14271
14272 2008-02-24  Diego Novillo  <dnovillo@google.com>
14273
14274         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14275
14276         PR 33738
14277         * tree-vrp.c (vrp_evaluate_conditional): With
14278         -Wtype-limits, emit a warning when comparing against a
14279         constant outside the natural range of OP0's type.
14280         * c.opt (Wtype-limits): Move ...
14281         * common.opt (Wtype-limits): ... here.
14282
14283 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14284
14285         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14286         * config/rs6000/e300c2c3.md: New file.
14287         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14288         e300c2 and e300c3.
14289         (rs6000_override_options): Add e300c2 and e300c3 cases to
14290         processor_target_table. Do not allow usage of Altivec or Spe
14291         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14292         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14293         * config/rs6000/rs6000.h (processor_type): Add
14294         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14295         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14296         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14297         and ppce300c3. Include e300c2c3.md.
14298
14299 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14300
14301         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14302         instead of TARGET_STRICT_ALIGN.
14303
14304 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14305
14306         * explow.c (memory_address): Assert that the generated address is
14307         valid.
14308
14309 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14310
14311         PR target/25477
14312         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14313         * config/darwin-ppc-ldouble-patch.def: New file.
14314         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14315         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14316         SUBTARGET_INIT_BUILTINS if defined.
14317         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14318         New functions.
14319
14320 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14321
14322         PR rtl-opt/33512
14323         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14324         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14325
14326 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14327
14328         PR pch/35027
14329         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14330         file" warning condtional on -Winvalid-PCH.
14331
14332 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14333
14334         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14335
14336 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14337
14338         PR target/22076
14339         PR target/34256 
14340         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14341         prevent reload from using MMX registers.
14342         (*mov<mode>_internal): Ditto.
14343         (*movv2sf_internal_rex64): Ditto.
14344         (*movv2sf_internal): Ditto.
14345
14346 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14347
14348         PR documentation/31569
14349         * doc/install.texi2html: Use makeinfo --no-number-sections.
14350
14351 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14352
14353         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14354         ensure that we can address an entire entity > 8 bytes.  Don't
14355         generate reg+reg addressing for such data.
14356
14357 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14358
14359         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14360         strings when optimizing for size, unless the target cares about
14361         alignment.
14362
14363 2008-02-22  Tom Tromey  <tromey@redhat.com>
14364
14365         * regclass.c (current_pass): Remove declaration.
14366
14367 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14368
14369         * config/avr/libgcc.S (__RAMPZ__): Define.
14370         (__do_copy_data): Add for devices with 128KB code memory.
14371
14372 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14373
14374         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14375         Use spe_abi.
14376         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14377
14378 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14379
14380         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14381         GENNONACR_REGS.
14382
14383 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14384
14385         PR c/19999
14386         * c-typeck.c (build_binary_op): Warn about floating point
14387         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14388
14389 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14390
14391         PR target/34526
14392         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14393         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14394         add vrsave.
14395         (rs6000_override_options): Set altivec_abi as default, not override,
14396         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14397         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14398         is used; use new member spe_abi.
14399         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14400         spe_abi and altivec_abi.
14401
14402 2008-02-22  Tomas Bily  <tbily@suse.cz>
14403
14404         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14405
14406 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14407
14408         PR bootstrap/35273
14409         * config.build (build_file_translate): Set to `CMD //c' only if
14410         it works.
14411         * Makefile.in (build_file_translate): Improve comment.
14412
14413 2008-02-21  Jan Hubicka  <jh@suse.cz>
14414
14415         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14416         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14417         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14418
14419 2008-02-21  Michael Matz  <matz@suse.de>
14420
14421         PR target/35264
14422         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14423
14424 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14425
14426         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14427         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14428         as insn constraint.
14429         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14430         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14431         SSE_VEC_FLOAT_MODE_P as insn constraint.
14432         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14433         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14434         sse4a_movntdf using MODEF mode iterator.
14435         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14436         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14437         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14438         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14439         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14440         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14441         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14442
14443 2008-02-21  Richard Guenther  <rguenther@suse.de>
14444
14445         * tree.def (PAREN_EXPR): New tree code.
14446         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14447         and PAREN_EXPR.
14448         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14449         * expr.c (expand_expr_real_1): Likewise.
14450         * tree-inline.c (estimate_num_insns_1): Likewise.
14451         * tree-complex.c (expand_complex_move): Likewise.
14452         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14453         as plain x.
14454
14455 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14456
14457         PR target/35225
14458         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14459
14460 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14461
14462         PR target/35190
14463         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14464
14465         * config/sh/sh.c (find_barrier): Don't go past
14466         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14467
14468 2008-02-20  DJ Delorie  <dj@redhat.com>
14469
14470         * config/h8300/h8300.md (insv): Force source operand to be a register.
14471
14472         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14473         as a jump, not as a plain insn.
14474         
14475 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14476
14477         * doc/invoke.texi (Warning Options): Add new option
14478         -Wframe-larger-than=.
14479         (-Wframe-larger-than): Document.
14480
14481         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14482         Add declarations for new option variables.
14483
14484         * final.c (final_start_function): Check the frame size
14485         before emission and issue a Wframe-larger-than warning.
14486
14487         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14488         Add definitions for new option variables.
14489         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14490
14491         * common.opt (Wframe-larger-than=): New option.
14492
14493 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14494
14495         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14496         (<sse>_div<mode>3): Ditto.
14497         (<sse>_vmdiv<mode>3): Ditto.
14498         (<sse>_vmsqrt<mode>2): Ditto.
14499         (*smax<mode>3): Ditto.
14500         (sse5_frcz<mode>2): Ditto.
14501         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14502         as insn constraint.
14503
14504 2008-02-20  Richard Guenther  <rguenther@suse.de>
14505
14506         PR middle-end/35265
14507         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14508         be happy with INTEGRAL_TYPE_P.
14509
14510 2008-02-20  Richard Guenther  <rguenther@suse.de>
14511
14512         * fold-const.c (split_tree): Associate floatig-point expressions
14513         if flag_associative_math is set.
14514
14515 2008-02-20  Richard Guenther  <rguenther@suse.de>
14516
14517         * tree.h (fold_real_zero_addition_p): Declare.
14518         * fold-const.c (fold_real_zero_addition_p): Export.
14519         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14520         floating-point operations with zero and one.
14521
14522 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14523
14524         * doc/install.texi: Correct references to CFLAGS, replacing them
14525         with BOOT_CFLAGS.  Document flags used during bootstrap for
14526         target libraries.
14527                                 
14528 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14529
14530         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14531         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14532         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14533         insn constraint.
14534         (smin<mode>3): Ditto from similar patterns.
14535         (smax<mode>3): Ditto.
14536         (*ieee_smin<mode>3): Ditto.
14537         (*ieee_smax<mode>3): Ditto.
14538         * config/i386/sse.md (sse): New mode attribute.
14539         (mov<mode>): Macroize expander from movv4sf and movv2df using
14540         SSEMODEF2P mode iterator.
14541         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14542         SSE_VEC_FLOAT_MODE_P as insn constraint.
14543         (storent<mode>): Ditto.
14544         (storent<mode>): Macroize expander from storentsf and storentdf using
14545         MODEF mode iterator.
14546         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14547         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14548         (abs<mode>2): Ditto from similar patterns.
14549         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14550         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14551         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14552         (<sse>_vmsqrt<mode>2): Ditto.
14553         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14554         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14555         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14556         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14557         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14558         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14559         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14560         insn constraint.
14561         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14562         iterator and SSE_FLOAT_MODE_P as insn constraint.
14563         (<sse>_ucomi): Ditto from similar patterns.
14564         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14565         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14566         SSE_VEC_FLOAT_MODE_P as insn constraint.
14567         (vcond<mode>): Ditto from similar patterns.
14568         (and<mode>3, *and<mode>3): Ditto.
14569         (<sse>_nand<mode>3): Ditto.
14570         (ior<mode>3, *ior<mode>3): Ditto.
14571         (xor<mode>3, *xor<mode>3): Ditto.
14572         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14573         iterator and SSE_FLOAT_MODE_P as insn constraint.
14574         (*nand<mode>3): Ditto from similar patterns.
14575         (*ior<mode>3): Ditto.
14576         (*xor<mode>3): Ditto.
14577
14578 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14579
14580         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14581         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14582         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14583
14584 2008-02-19  Jan Hubicka  <jh@suse.cz>
14585
14586         * predict.c (tree_bb_level_predictions): Remove variable next
14587         mistakely introduced by previous commit.
14588
14589 2008-02-19  Jan Hubicka  <jh@suse.cz>
14590
14591         * predict.c (predict_paths_leading_to): Rewrite.
14592         (predict_paths_for_bb): New.
14593         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14594
14595 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14596
14597         PR bootstrap/35218
14598         * Makefile.in (build_file_translate): New.
14599         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14600         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14601         * configure.ac (build_file_translate): Substitute it.
14602         * configure: Regenerate.
14603
14604 2008-02-19  Jan Hubicka  <jh@suse.cz>
14605
14606         PR rtl-optimization/34408
14607         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14608         invalid sharing.
14609
14610 2008-02-19  Jan Hubicka  <jh@suse.cz>
14611
14612         PR middle-end/28779
14613         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14614         call_expr.
14615
14616 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14617
14618         PR Ada/35186
14619         * config/i386/i386-modes.def: Revert the last DI alignment
14620         change until Ada people can look into it.
14621
14622 2008-02-19  Nick Clifton  <nickc@redhat.com>
14623
14624         * opts.c (print_specific_help): Fix typo in --help text.
14625
14626 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14627
14628         PR target/35239
14629         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14630         32-bit inline asm without asm alternatives for host GCC < 3.0.
14631
14632 2008-02-19  Richard Guenther  <rguenther@suse.de>
14633
14634         PR tree-optimization/34989
14635         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14636         Allow propagation to INDIRECT_REF if we can simplify only.
14637
14638 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14639
14640         * c-common.c (warn_for_collisions_1): Use appropriate option when
14641         warning.
14642
14643 2008-02-19  Nick Clifton  <nickc@redhat.com>
14644
14645         PR other/31349
14646         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14647         (handle_options): Fix indentation.
14648         (print_filtered_help): If no language-specific options were
14649         displayed tell the user how to list all the options supported by
14650         the language's front-end.
14651         (print_specific_help): Fix indentation and remove duplicate line.
14652         (common_handle_option): Handle the -v option.
14653         For --help enable the display of undocumented options if the -v
14654         switch has been included on the command line.
14655         For --help= check for overlaps in the arguments between the option
14656         classes and the language names and issue a warning when they
14657         cannot be disambiguated.
14658         * c.opt (v): Pass on to the common option handler.
14659
14660 2008-02-19  Revital Eres  <eres@il.ibm.com> 
14661
14662         * modulo-sched.c (sms_schedule): Change dump message when
14663         create_ddg function fails.
14664         (try_scheduling_node_in_cycle): Rename row to cycle.
14665         (print_partial_schedule): Rename CYCLE to ROW.
14666
14667 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14668             Zdenek Dvorak  <ook@ucw.cz>
14669
14670         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14671
14672 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14673
14674         PR target/33555
14675         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14676         (*x86_movdicc_0_m1_se): Ditto.
14677
14678 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14679
14680         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14681         (CMPtype): Define as __gcc_CMPtype.
14682         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14683         (CMPtype): Define as __gcc_CMPtype.
14684
14685 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14686
14687         Support valgrind 3.3 for --enable-checking=valgrind.
14688         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14689         here.
14690         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14691         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14692         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14693         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14694         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14695         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14696         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14697         respectively.
14698         * ggc-zone.c: Similar.
14699         * ggc-page.c: Similar.
14700
14701 2008-02-19  Paul Brook  <paul@codesourcery.com>
14702
14703         PR target/35071
14704         * config/arm/ieee754-df.S: Fix do_it typo.
14705         * config/arm/ieee754-sf.S: Fix do_it typo.
14706
14707 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14708
14709         PR target/35189
14710         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14711         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14712         (OPTION_MASK_ISA_SSE_SET): Likewise.
14713         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14714         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14715         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14716         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14717         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14718         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14719         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14720         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14721         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14722         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14723         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14724         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14725         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14726         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14727         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14728         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14729         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14730         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14731         (OPTION_MASK_ISA_SSE4): Removed.
14732         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14733         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14734         (override_options): Don't turn on implied SSE/MMX bits in
14735         ix86_isa_flags.
14736
14737 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14738
14739         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14740         32bit host.
14741
14742 2008-02-18  Joey Ye  <joey.ye@intel.com>
14743
14744         PR middle-end/34921
14745         * tree-nested.c (insert_field_into_struct): Set type alignment
14746         to field alignment if the former is less than the latter.
14747
14748 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14749
14750         * BASE-VER: Set to 4.4.0.
14751
14752 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14753
14754         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14755         * doc/cfg.texi: Likewise.
14756         * doc/extend.texi: Likewise.
14757         * doc/gty.texi: Likewise.
14758         * doc/invoke.texi: Likewise.
14759         * doc/loop.texi: Likewise.
14760         * doc/md.texi: Likewise.
14761         * doc/passes.texi: Likewise.
14762         * doc/rtl.texi: Likewise.
14763         * doc/sourcebuild.texi: Likewise.
14764         * doc/tm.texi: Likewise.
14765         * doc/tree-ssa.texi: Likewise.
14766
14767 2008-02-17  Richard Guenther  <rguenther@suse.de>
14768
14769         PR middle-end/35227
14770         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14771         without default definition.
14772
14773 2008-02-17  Richard Guenther  <rguenther@suse.de>
14774
14775         PR tree-optimization/35231
14776         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14777         if A | B != 1.
14778
14779 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14780
14781         Revert:
14782         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
14783         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14784         libgcc_cmp_return mode.
14785
14786 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14787
14788         PR c/28368
14789         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14790
14791 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14792
14793         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14794         multilibs.
14795
14796 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14797
14798         * doc/c-tree.texi: Use `@.' where appropriate.
14799         * doc/extend.texi: Likewise.
14800         * doc/install.texi: Likewise.
14801         * doc/invoke.texi: Likewise.
14802         * doc/loop.texi: Likewise.
14803         * doc/makefile.texi: Likewise.
14804         * doc/md.texi: Likewise.
14805         * doc/passes.texi: Likewise.
14806         * doc/standards.texi: Likewise.
14807         * doc/tm.texi: Likewise.
14808
14809 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14810
14811         PR middle-end/35196
14812         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14813         in entry_bb.
14814         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14815         rather than in entry_bb.
14816
14817 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14818
14819         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14820         libgcc_cmp_return mode.
14821
14822 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14823
14824         PR middle-end/35130
14825         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14826         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14827
14828 2008-02-15  Richard Guenther  <rguenther@suse.de>
14829             Zdenek Dvorak  <ook@ucw.cz>
14830
14831         PR tree-optimization/35164
14832         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14833         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14834         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14835         Only propagate addresses which do not have abnormal SSA_NAMEs
14836         in their operands.
14837
14838 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
14839
14840         PR target/35088
14841         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14842
14843 2008-02-15  Jan Hubicka  <jh@suse.cz>
14844
14845         PR middle-end/35149
14846         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14847
14848 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14849
14850         PR middle-end/34621
14851         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14852         when calculating alignment_pad.
14853
14854 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14855
14856         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14857         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14858         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14859         and STACK_BOUNDARY define.
14860
14861 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
14862
14863         PR preprocessor/35061
14864         * c-pragma.c (handle_pragma_pop_macro): Check that
14865         pushed_macro_table has been allocated.
14866
14867 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14868
14869         PR middle-end/35136
14870         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14871         (force_gimple_operand): Likewise.
14872         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14873         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14874         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14875         (find_interesting_uses_address): Check addressability and alignment
14876         of the base expression only after substituting bases of IVs into it.
14877
14878 2008-02-14  Michael Matz  <matz@suse.de>
14879
14880         PR target/34930
14881         * function.c (instantiate_virtual_regs_in_insn): Reload address
14882         before falling back to reloading the whole operand.
14883
14884 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
14885
14886         * config/s390/s390.c (s390_mainpool_start): Emit the pool
14887         before the first section switch note.
14888
14889 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14890
14891         * doc/bugreport.texi: Update copyright years.
14892         * doc/c-tree.texi: Likewise.
14893         * doc/cfg.texi: Likewise.
14894         * doc/cpp.texi: Likewise.
14895         * doc/cppinternals.texi: Likewise.
14896         * doc/fragments.texi: Likewise.
14897         * doc/frontends.texi: Likewise.
14898         * doc/gcc.texi: Likewise.
14899         * doc/gty.texi: Likewise.
14900         * doc/hostconfig.texi: Likewise.
14901         * doc/implement-c.texi: Likewise.
14902         * doc/libgcc.texi: Likewise.
14903         * doc/loop.texi: Likewise.
14904         * doc/makefile.texi: Likewise.
14905         * doc/options.texi: Likewise.
14906         * doc/passes.texi: Likewise.
14907         * doc/rtl.texi: Likewise.
14908         * doc/sourcebuild.texi: Likewise.
14909         * doc/standards.texi: Likewise.
14910         * doc/tree-ssa.texi: Likewise.
14911         * doc/trouble.texi: Likewise.
14912
14913         * doc/extend.texi: Use @: or add comma where appropriate.
14914         * doc/invoke.texi: Likewise.
14915         * doc/tm.texi: Likewise.
14916
14917 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
14918
14919         PR target/34393
14920         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14921         to a reg.
14922
14923 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
14924
14925         * doc/md.texi (clz, ctz): Add reference.
14926         * doc/rtl.texi (clz, ctz): Likewise.
14927
14928 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14929
14930         PR other/35148
14931         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14932         srcdir.
14933
14934 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
14935
14936         * config/s390/s390.c (struct constant_pool): New field
14937         emit_pool_after added.
14938         (s390_mainpool_start): Set the emit_pool_after flag according
14939         to the section switch notes.
14940         (s390_mainpool_finish): Consider emit_pool_after when emitting
14941         the literal pool at the end of the function.
14942         (s390_chunkify_start): Force literal pool splits at section
14943         switch notes.
14944
14945 2008-02-13  Michael Matz  <matz@suse.de>
14946
14947         PR debug/35065
14948         * var-tracking.c (clobber_variable_part): Correctly traverse the
14949         list.
14950
14951 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14952
14953         PR 29673
14954         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14955         Add -fdump-ipa-inline.
14956         * tree-dump.c (dump_files): Remove tree-inlined dump.
14957         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14958         
14959 2008-02-12  Richard Guenther  <rguenther@suse.de>
14960
14961         PR tree-optimization/35171
14962         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14963         default defs.
14964
14965 2008-02-12  Richard Guenther  <rguenther@suse.de>
14966
14967         PR middle-end/35163
14968         * fold-const.c (fold_widened_comparison): Use get_unwidened in
14969         value-preserving mode.  Disallow final truncation.
14970
14971 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14972
14973         PR middle-end/35136
14974         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14975         code from here to...
14976         (force_gimple_operand): ...here.
14977
14978 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
14979
14980         PR c++/35144
14981         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14982         non-compatible pointers.
14983         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14984         different FIELD_DECLs, try harder by comparing field offsets, sizes
14985         and types.
14986
14987         PR inline-asm/35160
14988         * function.c (match_asm_constraints_1): Don't replace the same input
14989         multiple times.
14990
14991 2008-02-12  Anatoly Sokolov <aesok@post.ru>
14992
14993         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14994         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14995         (expand_epilogue): Restore RAMPZ register.
14996         * config/avr/avr.md (RAMPZ_ADDR): New constant.
14997
14998 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
14999
15000         * config/i386/cygwin.asm: (__alloca): Correct calling
15001         convention and alignment.
15002         (__chkstk): Force 8 byte stack alignment.
15003
15004 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
15005             Richard Guenther  <rguenther@suse.de>
15006
15007         PR tree-optimization/33992
15008         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15009         the zero we compare against.
15010
15011 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
15012
15013         PR libfortran/35063
15014         * gthr-win32.h (__gthread_mutex_destroy_function): New function
15015         to CloseHandle after unlocking to prevent accumulation of handle
15016         count.
15017
15018 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15019
15020         PR middle_end/34150
15021         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15022         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
15023         and update LABEL_NUSES during and after reload.
15024
15025 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15026
15027         PR middle-end/34627
15028         * combine.c (simplify_if_then_else): Make sure the comparison is
15029         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15030
15031 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15032
15033         PR bootstrap/35051
15034         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15035         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15036         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15037         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15038         * tree.h (get_type_static_bounds): Likewise.
15039
15040 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15041
15042         * doc/invoke.texi (Option Summary, C++ Dialect Options)
15043         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15044         Make -Wfoo language annotations match what the compiler outputs.
15045
15046 2008-02-08  Sa Liu  <saliu@de.ibm.com>
15047
15048         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
15049         intrinsics spu_convts, spu_convtu, spu_convtf.
15050
15051 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
15052
15053         * doc/extend.texi (Function Attributes) <noinline>: Mention
15054         asm ("") as method to keep calls.
15055
15056 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15057
15058         PR other/32754
15059         * doc/options.texi (Options): Replace references to opts.sh with
15060         optc-gen.awk.
15061         * opts-common.c: Likewise.
15062         * optc-gen.awk: Likewise.
15063         
15064 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15065
15066         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15067
15068 2008-02-07  Richard Henderson  <rth@redhat.com>
15069
15070         PR rtl-opt/33410
15071         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15072         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
15073         funny mode.
15074
15075 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
15076
15077         PR tree-optimization/35085
15078         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15079         for operand entry oe2 in addition to operand entry oe3 in order to
15080         expose more opportunities for vectorizer sum reduction.
15081
15082 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15083
15084         PR other/35107
15085         * Makefile.in (LIBS): Remove $(GMPLIBS).
15086         (cc1-dummy, cc1): Add $(GMPLIBS).
15087
15088 2008-02-06  Jan Hubicka  <jh@suse.cz>
15089
15090         PR target/23322
15091         * i386.md (moddf_integer): Do not produce partial memory stalls for
15092         targets where it hurts.
15093
15094 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
15095
15096         PR target/35083
15097         * optabs.c (expand_float): Do not check for decimal modes when
15098         expanding unsigned integer through signed conversion.
15099
15100 2008-02-06  Nick Clifton  <nickc@redhat.com>
15101
15102         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15103         inside the clobber with a match_operand and duplicated operand
15104         number in the constraint.
15105         (ineqbranchsi): Delete redundant comment.
15106
15107 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
15108
15109         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
15110         builtin_define ("__USE_INIT_FINI__").
15111         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15112         -msx multilibs.
15113         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15114
15115 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15116
15117         PR documentation/30330
15118         * doc/invoke.texi (C++ Dialect Options)
15119         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15120         For each warning option -Wfoo that allows -Wno-foo, ensure both
15121         -Wfoo and -Wno-foo are listed in the option index.  Fix index
15122         entry of -Wswitch-default, index -Wnormalized= including the
15123         `=', and -Wlarger-than-@var{len} including @var{len}.
15124
15125 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15126
15127         * config/i386/i386.md (floatunssisf2): Use
15128         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15129         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15130         Macroize expander using MODEF mode iterator.
15131
15132 2008-02-05  Diego Novillo  <dnovillo@google.com>
15133
15134         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15135
15136         PR 33738
15137         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15138
15139 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15140
15141         PR other/35070
15142         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15143
15144 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
15145
15146         PR target/35084
15147         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15148         to indicate if a message should be generated.
15149         (init_cumulative_args): Updated.
15150         (function_value_32): Likewise.
15151
15152 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15153
15154         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15155
15156 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15157
15158         PR target/35083
15159         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15160         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15161
15162 2008-02-04  Diego Novillo  <dnovillo@google.com>
15163
15164         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15165
15166         PR 33738
15167         * tree-vrp.c (vrp_evaluate_conditional): With
15168         -Wtype-limits, emit a warning when comparing against a
15169         constant outside the natural range of OP0's type.
15170
15171 2008-02-04  Richard Guenther  <rguenther@suse.de>
15172
15173         PR middle-end/33631
15174         * expr.c (count_type_elements): Give for unions instead of
15175         guessing.
15176
15177 2008-02-04  Richard Guenther  <rguenther@suse.de>
15178
15179         PR middle-end/35043
15180         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15181         to TYPE_DOMAINs base type instead of using bitsizetype here.
15182
15183 2008-02-03  Jason Merrill  <jason@redhat.com>
15184
15185         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15186
15187 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15188
15189         PR other/29972
15190         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15191         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15192         (RS/6000 and PowerPC Options): Fix typos and markup.
15193         * doc/passes.texi (Tree-SSA passes): Likewise.
15194
15195 2008-02-02  Michael Matz  <matz@suse.de>
15196
15197         PR target/35045
15198         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15199         from record_last_reg_set_info.
15200         (record_last_reg_set_info): Take an RTX argument, iterate over all
15201         constituent hardregs.
15202         (record_last_set_info, record_opr_changes): Change calls to
15203         new signature or to record_last_reg_set_info_regno.
15204
15205 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15206
15207         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15208
15209 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15210
15211         PR rtl-optimization/34773
15212         * reg-notes.def (EQUAL): Mention significance of combination of
15213         REG_EQUAL and REG_RETVAL.
15214         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15215         insn that has a REG_RETVAL.
15216
15217 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15218
15219         PR bootstrap/33781
15220         * configure.ac (--enable-fixed-point): Disable unless explicitly
15221         requested on IRIX.
15222         * configure: Regenerate.
15223
15224 2008-02-01  Richard Guenther  <rguenther@suse.de>
15225
15226         PR other/35042
15227         * invoke.texi (-finline-limit): Remove no longer true parts
15228         of the documentation.  Note that there is no default value.
15229
15230 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15231             Mark Mitchell  <mark@codesourcery.com>
15232             Ben Elliston  <bje@au.ibm.com>
15233
15234         PR c/29326
15235         * doc/extend.texi (Other Builtins): Document.
15236
15237 2008-01-31  Tom Browder <tom.browder@gmail.com>
15238
15239         * doc/c-tree.texi (Types): Fix grammar.
15240         (Expression trees): Ditto.
15241         * doc/passes.texi (Tree-SSA passes): Ditto.
15242         
15243         * doc/configterms.texi (Configure Terms): Fix typo.
15244         * doc/cpp.texi (Common Predefined Macros): Ditto.
15245         * doc/md.texi (Machine Constraints): Ditto.
15246         
15247         * doc/makefile.texi (Makefile): Add comma.
15248
15249 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15250             Gerald Pfeifer  <gerald@pfeifer.com>
15251         
15252         * doc/sourcebuild.texi (Front End): Remove references to CVS
15253         and CVSROOT/modules.
15254         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15255         (Back End): Remove reference to CVS.
15256
15257 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15258
15259         PR target/34900
15260         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15261         comment from...
15262         (mips16_gp_pseudo_reg): ...here.
15263         * config/mips/mips.md (load_const_gp): Replace with...
15264         (load_const_gp_<mode>): ...this :P-based insn.
15265
15266 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15267
15268         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15269         options. Minor fixes.
15270         (-std): Move reference to standards closer to where language
15271         standards are first mentioned.
15272         
15273 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15274
15275         PR rtl-optimization/34995
15276         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15277         parameter and return a bool.  If the rtx parameter is nonnull,
15278         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15279         (find_reloads): Update call accordingly.  Pass the new operand
15280         if it needed no address reloads, otherwise pass null.
15281
15282 2008-01-30  Richard Henderson  <rth@redhat.com>
15283
15284         PR c/34993
15285         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15286         for unbounded arrays.
15287
15288 2008-01-30  Silvius Rus  <rus@google.com>
15289
15290         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15291
15292 2008-01-30  Jan Hubicka  <jh@suse.cz>
15293
15294         PR target/34982
15295         * i386.c (init_cumulative_args): Use real function declaration when
15296         calling locally.
15297
15298 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15299
15300         PR rtl-optimization/34998
15301         * global.c (build_insn_chain): Treat non-subreg_lowpart
15302         SUBREGs of pseudos as clobbering all the words covered by the
15303         SUBREG, not just all the bytes.
15304         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15305         original df_ref rather than an extract parameter.
15306         (global_conflicts): Update call accordingly.
15307
15308 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15309
15310         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15311         the overflow check to make it easier to read.
15312         (__fixtfdi): Change the type of the ll member in union
15313         long_double to UDItype_x.
15314
15315 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15316
15317         PR middle-end/34969
15318         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15319         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15320         * tree-inline.c (fold_marked_statements): Call
15321         cgraph_update_edges_for_call_stmt if folding a call statement.
15322         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15323         debug_generic_stmt calls, reset it back afterwards.
15324
15325         PR c/35017
15326         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15327         static decls.
15328         * c-typeck.c (build_external_ref): Don't pedwarn about
15329         static vars in current function's scope.
15330
15331 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15332
15333         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15334
15335 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15336
15337         PR c/35002
15338         * ipa-struct-reorg.c: Fix spelling.
15339         * params.def: Ditto.
15340
15341 2008-01-29  Richard Guenther  <rguenther@suse.de>
15342
15343         PR middle-end/35006
15344         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15345         field.
15346         * tree-inline.c (remap_type): Increment remapping_type_depth
15347         around remapping types.
15348         (copy_body_r): Only add referenced variables if they are referenced
15349         from code, not types.
15350
15351 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15352
15353         PR c++/34055
15354         PR c++/34103
15355         PR c++/34219
15356         PR c++/34606
15357         PR c++/34753
15358         PR c++/34754
15359         PR c++/34755
15360         PR c++/34919
15361         PR c++/34961
15362         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15363         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15364
15365 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15366
15367         PR target/34412
15368         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
15369         pointer for tiny stack.
15370
15371 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15372
15373         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15374
15375 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15376
15377         * config/vx-common.h: Fix typo in comment.
15378
15379 2008-01-28  Ian Lance Taylor  <iant@google.com>
15380
15381         PR c++/34862
15382         PR c++/33407
15383         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15384         coalesce pointers if they have different DECL_NO_TBAA_P values.
15385         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15386         between variables with different DECL_NO_TBAA_P values.
15387
15388 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15389
15390         PR 31535
15391         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15392         are not legitimate small data references on SPE targets.
15393
15394 2008-01-28  David Daney  <ddaney@avtrex.com>
15395
15396         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15397
15398 2008-01-28  David Daney  <ddaney@avtrex.com>
15399
15400         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15401
15402 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15403
15404         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15405         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15406         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15407         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15408         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15409         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15410         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15411         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15412
15413 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15414
15415         * basic-block.h (condjump_equiv_p): Fix comment.
15416
15417 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15418
15419         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15420         print_generic_stmt_indented): Fix comment.
15421
15422 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15423
15424         * configure.ac (__stack_chk_fail): Add detecion for availability
15425         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15426         * configure: Regenerate.
15427
15428 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15429
15430         PR middle-end/34688
15431         * final.c (output_addr_const): Handle TRUNCATE.
15432
15433 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15434
15435         PR target/34711
15436         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15437         (zero_cost, infinite_cost): New constants.
15438         (struct cost_pair): Change type of cost to comp_cost.
15439         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15440         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15441         New functions.
15442         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15443         split_address_cost, ptr_difference_cost, difference_cost,
15444         get_computation_cost_at, get_computation_cost,
15445         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15446         determine_use_iv_cost_condition, determine_use_iv_costs,
15447         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15448         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15449         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15450         Change type of cost to comp_cost.
15451         (determine_iv_cost): Increase cost of non-original ivs, instead
15452         of decreasing the cost of original ones.
15453         (get_address_cost): Indicate the complexity of the addressing mode 
15454         in comp_cost.
15455         (try_add_cand_for): Prefer using ivs not specific to some object.
15456         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15457
15458 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15459             Janis Johnson  <janis187@us.ibm.com>
15460
15461         PR target/34814
15462         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15463         (TARGET_INSTANTIATE_DECLS): Likewise.
15464         * target.h (expand_to_rtl_hook): New target hook.
15465         (instantiate_decls): Likewise.
15466         * function.c (instantiate_decl): Make non-static.  Rename to...
15467         (instantiate_decl_rtl): ... this.
15468         (instantiate_expr): Use instantiate_decl_rtl.
15469         (instantiate_decls_1): Likewise.
15470         (instantiate_decls): Likewise.
15471         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15472         * function.h (instantiate_decl_rtl): Add prototype.
15473         * cfgexpand.c (target.h): New include.
15474         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15475         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15476         (TARGET_INSTANTIATE_DECLS): Likewise.
15477         (TARGET_INITIALIZER): New target hooks added.
15478         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15479         New prototype.
15480         * config/rs6000/rs6000.c (tree-flow.h): New include.
15481         (machine_function): Add sdmode_stack_slot field.
15482         (rs6000_alloc_sdmode_stack_slot): New function.
15483         (rs6000_instantiate_decls): Likewise.
15484         (rs6000_secondary_memory_needed_rtx): Likewise.
15485         (rs6000_check_sdmode): Likewise.
15486         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15487         (TARGET_INSTANTIATE_DECLS): Likewise.
15488         (rs6000_hard_regno_mode_ok): Allow SDmode.
15489         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15490         (rs6000_emit_move): Handle SDmode.
15491         (function_arg_advance): Likewise.
15492         (function_arg): Likewise.
15493         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15494         SDmode var args for 32-bit compiles.
15495         (rs6000_secondary_reload_class): Handle SDmode.
15496         (rs6000_output_function_epilogue): Likewise.
15497         (rs6000_function_value): Simplify if statement.
15498         (rs6000_libcall_value): Likewise.
15499         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15500         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15501         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15502         (movsd_hardfloat): New define_insn.
15503         (movsd_softfloat): Likewise.
15504         (movsd_store): Likewise.
15505         (movsd_load): Likewise.
15506         (extendsddd2): Likewise.
15507         (extendsdtd2): Likewise.
15508         (truncddsd2): Likewise.
15509         (movdd_hardfloat64): Fixup comment.
15510         (UNSPEC_MOVSD_LOAD): New constant.
15511         (UNSPEC_MOVSD_STORE): Likewise.
15512
15513 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15514
15515         PR c++/34965
15516         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15517         TRUTH_XOR_EXPR.
15518         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15519         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15520         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15521         and TRUTH_XOR_EXPR.
15522
15523 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15524
15525         PR target/34794
15526         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15527         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15528         __LONGDOUBLE128 too.
15529         * config/rs6000/aix61.h: New file.
15530
15531 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15532
15533         PR rtl-optimization/34959
15534         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15535         popcount and parity rtxes the same mode as their operand.
15536         Truncate or extend the result to the return value's mode
15537         if necessary.
15538
15539 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15540
15541         PR target/34981
15542         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15543         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15544         to GOT_VERSION_REGNUM.
15545         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15546         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15547         * config/mips/mips.c (mips_emit_call_insn): New function.
15548         (mips_call_tls_get_addr): Call mips_expand_call directly.
15549         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15550         emit_call_insn.
15551         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15552         (mips_expand_call): Update the call to mips16_build_call_stub
15553         accordingly and a remove redundant condition.  Assert that MIPS16
15554         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15555         the call insn.
15556         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15557         TARGET_USE_GOT.
15558         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15559         (mips_avoid_hazard): Remove hazard_set handling.
15560         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15561         (UNSPEC_RESTORE_GP): ...this.
15562         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15563         (FAKE_CALL_REGNO): Rename to...
15564         (GOT_VERSION_REGNUM): ...this.
15565         (type): Add "ghost" value.  Add an associated insn reservation.
15566         (hazard_set): Remove.
15567         (exception_receiver): Rename to...
15568         (restore_gp): ...this and update the unspec identifier accordingly.
15569         (exception_receiver, nonlocal_got_receiver): New expanders.
15570         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15571         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15572         (set_got_version, update_got_version): New patterns.
15573
15574 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15575
15576         PR target/34970
15577         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15578
15579 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15580
15581         PR other/31955
15582         * doc/install.texi2html: Generate gcc-vers.texi.
15583
15584 2008-01-25  DJ Delorie  <dj@redhat.com>
15585
15586         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15587
15588 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15589
15590         * config/c4x: Remove directory.
15591         * config.gcc (crx-*, mt-*): Mark obsolete.
15592         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15593         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15594         sh-*-rtemscoff*): Remove cases.
15595         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15596         * real.c (encode_c4x_single, decode_c4x_single,
15597         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15598         c4x_extended_format): Remove.
15599         * real.h (c4x_single_format, c4x_extended_format): Remove.
15600         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15601         on C4x.
15602         (Pragmas): Remove comment about c4x pragmas.
15603         * doc/install.texi (c4x): Remove target-specific instructions.
15604         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15605         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15606         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15607         refer to C4x source files as examples.
15608         (C4X_FLOAT_FORMAT): Remove documentation.
15609
15610 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15611
15612         * config/bfin/bfin.c (override_options): Reorder tests so that
15613         flag_pic gets enabled for -msep-data.
15614
15615 2008-01-25  Richard Guenther  <rguenther@suse.de>
15616
15617         PR middle-end/32244
15618         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15619         to its bitfield precision if required.
15620
15621 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15622
15623         PR middle-end/33880
15624         * tree-nested.c (walk_omp_for): New function.
15625         (convert_nonlocal_reference, convert_local_reference): Call
15626         walk_omp_for on OMP_FOR.
15627         (convert_call_expr): Call walk_body on OMP_FOR's
15628         OMP_FOR_PRE_INIT_BODY.
15629
15630 2008-01-25  Richard Guenther  <rguenther@suse.de>
15631
15632         PR tree-optimization/34966
15633         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15634         default defs and PHI_NODEs we have to insert after the
15635         defining statement.
15636
15637 2008-01-24  Nick Clifton  <nickc@redhat.com>
15638
15639         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15640         Provide a default definition.
15641         (LIBGCC2_UNITS_PER_WORD): Likewise.
15642
15643         * config/stormy16/stormy16.c: Include df.h for the prototype
15644         for df_regs_ever_live_p.
15645         (xstormy16_expand_builtin_va_start): Convert the stack offset
15646         into a component_ref and then use POINTER_PLUS_EXPR to add it
15647         to the incoming_virtual_args_rtx.
15648         (xstormy16_gimplify_va_arg_expr): Rename to
15649         xstormy16_gimplify_va_arg_expr.
15650         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15651         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15652         xstormy16_gimplify_va_arg_expr.
15653         Fix up some formatting issues.
15654
15655         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15656         Move to predicates.md.
15657         (xs_hi_general_operand): Likewise.
15658         (xs_hi_nonmemory_operand): Likewise.
15659         * config/stormy16/predicates.md:
15660         (xstormy16_carry_plus_operand): New predicate.
15661         (xs_hi_general_operand): New predicate.
15662         (xs_hi_nonmemory_operand): New predicate.
15663         * config/stormy16/stormy16-protos.h:
15664         (xstormy16_carry_plus_operand): Delete prototype.
15665         (xs_hi_general_operand): Likewise.
15666         (xs_hi_nonmemory_operand): Likewise.
15667
15668         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15669         modifiers as they are no longer needed and they can trigger
15670         reload spill failures.
15671
15672         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15673         with a match_operand in order to help reload.
15674
15675         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15676         constraint with 'e' for the 8th alternative as this version of
15677         the mov.w instruction only accepts the lower 8 registers.
15678
15679 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15680
15681         PR target/34856
15682         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15683         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15684         vector elements.
15685
15686 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15687
15688         PR middle-end/33333
15689         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15690
15691 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15692
15693         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15694         New functions.
15695         (remove_structure): Update allocations list before removing structure.
15696         
15697 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15698
15699         * ipa-struct-reorg.c (is_safe_cond_expr, 
15700         create_new_stmts_for_cond_expr): Use integer_zerop function,
15701         that recognize not only zero-pointer, but zero-integer too.
15702
15703 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15704
15705         PR other/22232
15706         * fixproto: Escape "." in sed expression that strips leading "./".
15707
15708 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15709
15710         PR driver/34904
15711         * gcc.c (SWITCH_OK): Removed.
15712         (SWITCH_LIVE): Changed to bit.
15713         (SWITCH_FALSE): Likewise.
15714         (SWITCH_IGNORE): Likewise.
15715         (switchstr): Change live_cond to unsigned int.
15716         (process_command): Replace SWITCH_OK with 0.
15717         (do_self_spec): Likewise.
15718         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15719         (give_switch): Likewise.
15720         (used_arg): Likewise.
15721         (do_spec_1): Set the SWITCH_IGNORE bit.
15722         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15723         bits.  Set the SWITCH_LIVE bit.
15724
15725 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15726
15727         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15728
15729 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15730
15731         PR tree-optimization/34472
15732         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15733         parameter to a "bool *" and set *DATA to false if there is
15734         an unsafe access.  Do not delete the structure here.
15735         (check_cond_exprs): Delete it here instead.
15736         (check_cond_exprs, exclude_cold_structs): Do not increase
15737         I when removing a structure.
15738
15739 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15740
15741         PR target/34856
15742         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15743         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15744
15745 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15746
15747         PR middle-end/34934
15748         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15749         a fixed vector for stack.
15750
15751 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15752
15753         PR c++/25701
15754         * doc/gcc.texi (Software development): Add a direntry for g++.
15755         
15756 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15757
15758         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15759         stale and straggling -fforce-addr comments above.
15760
15761         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15762         define.
15763         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15764         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15765
15766 2008-01-23  Michael Matz  <matz@suse.de>
15767
15768         PR debug/34895
15769         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15770         gen_type_die.
15771
15772 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15773
15774         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15775         malloc result type.
15776
15777 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15778
15779         * config/avr/avr.c (avr_current_arch): New variable.
15780         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15781         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15782         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15783         (avr_override_options): Init 'avr_current_arch'. 
15784         (base_arch_s): Move from here...
15785         * config/avr/avr.h (base_arch_s): ... here. Add new members 
15786         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
15787         'mega' to 'have_jmp_call'.
15788         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
15789         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15790         macros.
15791         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
15792         architectures.
15793         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
15794         MULTILIB_MATCHES): (Ditto.).
15795
15796 2008-01-23  Richard Guenther  <rguenther@suse.de>
15797
15798         PR middle-end/31529
15799         * cgraphunit.c (cgraph_reset_node): Always mark the node
15800         not reachable if it is not queued already.
15801
15802 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15803
15804         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15805         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15806         (cputype_selected): New static variable.
15807         (bfin_handle_option): Set it if -mcpu is used.
15808         (override_option): Select default set of workarounds if no cpu type
15809         selected on the command line.
15810         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15811
15812         From  Michael Frysinger  <michael.frysinger@analog.com>
15813         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15814         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15815
15816         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15817         for bf547, bf523, bf524, and bf526.
15818         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
15819         bf526.
15820         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15821         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15822         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15823         __ADSPBF547__ and __ADSPBF54x__ for bf547.
15824         * doc/invoke.texi (Blackfin Options): Document that
15825         -mcpu now accept bf547, bf523, bf524, and bf526.
15826
15827 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15828
15829         PR rtl-optimization/34628
15830         * combine.c (try_combine): Stop and undo after the first combination
15831         if an autoincrement side-effect on the first insn has effectively
15832         been lost.
15833
15834 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
15835
15836         PR target/34529
15837         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15838         Offset addresses are not valid for Altivec or paired float modes.
15839
15840 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
15841
15842         PR c++/34607
15843         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15844         if DECL_INITIAL (decl) is error_mark_node.
15845
15846         PR c++/34914
15847         * c-common.c (handle_vector_size_attribute): Only allow
15848         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
15849         the same way as pointer, array etc. types.
15850         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15851
15852         PR c++/34917
15853         * tree.c (build_type_attribute_qual_variant): Call
15854         build_qualified_type if attributes are equal, but quals are not.
15855
15856 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15857
15858         PR 32102
15859         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15860         * flags.h (warn_strict_aliasing): Remove.
15861         (warn_strict_overflow): Remove.
15862         * opts.c (warn_strict_aliasing): Remove.
15863         (warn_strict_overflow): Remove.
15864         * c-opts.c (c_common_handle_option): -Wall only sets
15865         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15866         (c_common_post_options): Give default values to -Wstrict-aliasing
15867         and -Wstrict-overflow if they are uninitialized.
15868         * common.opt (Wstrict-aliasing): Specify Var and Init.
15869         (Wstrict-overflow): Likewise.
15870
15871 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15872
15873         PR rtl-optimization/26854
15874         PR rtl-optimization/34400
15875         PR rtl-optimization/34884
15876         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15877         DF_RD->gen.
15878         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15879         (df_rd_bb_info.expanded_lr_out): Deleted
15880         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15881         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
15882         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15883         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15884         Removed code to allocate, initialize or free expanded_lr_out.
15885         (df_rd_bb_local_compute_process_def): Restructured to make more
15886         understandable.
15887         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15888         sets if the sets are being trimmed.
15889
15890 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15891
15892         PR bootstrap/32287
15893         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15894         (as_vers): Likewise.
15895         * configure: Regenerated.
15896
15897 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15898
15899         PR middle-end/33092
15900         * tree-pass.h (pass_build_alias): New pass.
15901         * tree-ssa-alias.c (gate_build_alias): New.
15902         (pass_build_alias): New.
15903         * passes.c (init_optimization_passes): Add pass_build_alias after
15904         pass_create_structure_vars.
15905
15906 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
15907
15908         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15909         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15910         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15911         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15912         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15913         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15914         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15915         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15916         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15917         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15918         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15919         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15920         * config/s390/s390.md (FP_ALL): New mode iterator.
15921         (_d): New mode attribute.
15922         ("*signbit<mode>2>"): Changed mode of first operand.
15923         ("isinf<mode>2"): Changed mode of first operand.
15924         ("*TDC_insn"): Adaptation for DFP modes.
15925
15926 2008-01-22  Ben Elliston  <bje@au.ibm.com>
15927
15928         * tree.c (check_qualified_type): Improve function description.
15929
15930 2008-01-21  Jason Merrill  <jason@redhat.com>
15931
15932         PR c++/34196
15933         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15934         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15935         if it is set.
15936
15937 2008-01-21  DJ Delorie  <dj@redhat.com>
15938
15939         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15940         return zero.
15941
15942 2008-01-21  Richard Guenther  <rguenther@suse.de>
15943
15944         PR middle-end/34856
15945         * tree-cfg.c (verify_expr): Allow all invariant expressions
15946         instead of just constant class ones as reference argument.
15947         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15948         like any other constant.
15949         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15950
15951 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
15952
15953         * regmove.c (fixup_match_1): Update call crossed frequencies.
15954
15955 2008-01-21  Richard Guenther  <rguenther@suse.de>
15956
15957         PR c/34885
15958         * tree-inline.c (setup_one_parameter): Deal with mismatched
15959         types using a VIEW_CONVERT_EXPR.
15960
15961 2008-01-21  Alon Dayan  <alond@il.ibm.com>
15962             Olga Golovanevsky  <olga@il.ibm.com>
15963         
15964         PR tree-optimization/34701
15965         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15966         when the structure size is not a power of 2.
15967
15968 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15969
15970         * doc/install.texi: Add doc for --enable-checking=df.
15971         
15972 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15973
15974         PR rtl-optimization/34808
15975         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15976
15977 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15978
15979         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15980         input.
15981
15982 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
15983
15984         PR rtl-optimization/26854
15985         PR rtl-optimization/34400
15986         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15987         DF_RD->gen.
15988         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15989         (df_rd_bb_info.expanded_lr_out): New.
15990         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15991         * loop_iv.c (iv_analysis_loop_init): Ditto.
15992         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15993         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15994         Added code to allocate, initialize or free expanded_lr_out.
15995         (df_rd_bb_local_compute_process_def): Restructured to make
15996         more understandable.
15997         (df_rd_confluence_n): Add code to do nothing with fake edges and
15998         code to no apply invalidate_by_call sets if the sets are being trimmed.
15999         (df_lr_local_finalize): Renamed to df_lr_finalize.
16000         (df_live_local_finalize): Renamed to df_live_finalize.
16001
16002 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16003
16004         PR target/34831
16005         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16006         deciding whether to use reciprocal instructions.
16007
16008 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
16009
16010         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16011         dwarf2out_note_section_used if cold_text_section is NULL.
16012
16013 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
16014
16015         PR gcov-profile/34610
16016         * tree-cfg.c (make_edges): Mark both outgoing edges from
16017         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16018         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16019         from OMP_FOR and OMP_CONTINUE outgoing edges.
16020
16021         * tree-profile.c (tree_profiling): Return early if
16022         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
16023         at the end.
16024         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16025         from cfun to child_cfun.
16026         * function.h (struct function): Add after_tree_profile bit.
16027
16028 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16029
16030         * config/avr/avr.S (_exit): Disable interrupt.
16031
16032 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
16033             Steven Bosscher  <stevenb.gcc@gmail.com>
16034
16035         PR rtl-optimization/26854
16036         PR rtl-optimization/34400
16037         * df-problems.c (df_live_scratch): New scratch bitmap.
16038         (df_live_alloc): Allocate df_live_scratch when doing df_live.
16039         (df_live_reset): Clear the proper bitmaps.
16040         (df_live_bb_local_compute): Only process the artificial defs once
16041         since the order is not important.
16042         (df_live_init): Init the df_live sets only with the variables
16043         found live by df_lr.
16044         (df_live_transfer_function): Use the df_lr sets to prune the
16045         df_live sets as they are being computed.  
16046         (df_live_free): Free df_live_scratch.
16047
16048 2008-01-18  Ian Lance Taylor  <iant@google.com>
16049
16050         * common.opt: Add fmerge-debug-strings.
16051         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16052         flag_merge_debug_strings rather than flag_merge_constants.
16053         * doc/invoke.texi (Option Summary): Mention
16054         -fmerge-debug-strings.
16055         (Debugging Options): Document -fmerge-debug-strings.
16056
16057 2008-01-18  Ian Lance Taylor  <iant@google.com>
16058
16059         PR c++/33407
16060         * tree.h (DECL_IS_OPERATOR_NEW): Define.
16061         (struct tree_function_decl): Add new field operator_new_flag.
16062         * tree-inline.c (expand_call_inline): When inlining a call to
16063         operator new, force the return value to go into a variable, and
16064         set DECL_NO_TBAA_P on that variable.
16065         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16066
16067 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
16068
16069         PR debug/34484
16070         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16071         DWARF2_DEBUGGING_INFO.
16072         (dwarf2out_note_section_used): Ditto.  Add prototype.
16073         (have_multiple_function_sections, text_section_used,
16074         cold_text_section_used, *cold_text_sections): Move declarations
16075         before their uses.
16076
16077 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
16078
16079         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16080         field and add signal_ra.
16081         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16082         assignments to frame state pc.  Move end of stack check after
16083         MD_FALLBACK_FRAME_STATE_FOR.
16084         (uw_update_context_1): Use frame state signal_regs if set, instead
16085         of checking signal_frame flag.
16086         (uw_update_context): Use frame state signal_ra if set.
16087         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16088         * config/xtensa/linux-unwind.h: New file.
16089
16090 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
16091
16092         * modulo-sched.c (get_sched_window): Fix comment typo.
16093
16094 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
16095
16096         PR tree-optimization/34648
16097         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16098
16099 2008-01-17  Anatoly Sokolov <aesok@post.ru>
16100
16101         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16102         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16103
16104 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
16105
16106         PR rtl-optimization/34400
16107         * df-core.c (df_worklist_dataflow_overeager,
16108         df_worklist_dataflow_doublequeue): New functions.
16109         (df_worklist_dataflow): Two different worklist solvers.
16110         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16111         New param.
16112
16113 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16114
16115         PR testsuite/34821
16116         * doc/invoke.texi: Document the dependence on pthread for fopenmp
16117         and ftree-parallelize-loops.
16118
16119 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
16120
16121         PR rtl-optimization/34826
16122         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16123
16124 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16125
16126         * global.c (find_reg): Mark the eh regs as used if necessary.
16127         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16128         * ra.h (struct allocno): no_eh_reg field added.  Changed
16129         no_stack_reg type to bitfield.
16130
16131 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16132
16133         * tree.c (substitute_in_expr): Add missing 'break'.
16134
16135 2008-01-17  Richard Guenther  <rguenther@suse.de>
16136
16137         PR tree-optimization/34825
16138         * tree-ssa-math-opts.c (is_division_by): Do not recognize
16139         x / x as division to handle.
16140
16141 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16142
16143         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16144         "-pthread" is specified.
16145         * pa-hpux11.h (LIB_SPEC): Likewise.
16146
16147 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
16148             Peter Bergner  <bergner@vnet.ibm.com>
16149
16150         PR rtl-optimization/33796
16151         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16152
16153 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16154
16155         PR libgfortran/34699
16156         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16157         static links.
16158         * pa-hpux10.h (LINK_SPEC): Likewise.
16159         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16160
16161 2008-01-16  Richard Guenther  <rguenther@suse.de>
16162
16163         PR middle-end/32628
16164         * fold-const.c (fold_convert_const_int_from_int): Do not
16165         set overflow if that occured only because of a sign extension
16166         change when converting from/to a sizetype with the same
16167         precision and signedness.
16168
16169 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16170
16171         PR debug/34249
16172         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16173         location address to the correct place.  Update copyright year.
16174
16175 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16176
16177         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16178         no dependences in the dependence_relations vector.
16179
16180 2008-01-16  Jan Hubicka  <jh@suse.cz>
16181
16182         PR rtl-optimization/31396
16183         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16184         * cfg.c (dump_reg_info): Print it.
16185         * regs.h (struct reg_info_t): add freq_calls_crossed.
16186         (REG_FREQ_CALLS_CROSSED): New macro.
16187         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16188         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16189         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16190         regmove_optimize): Update call crossed frequencies.
16191         * local-alloc.c (struct qty): Add freq_calls_crossed.
16192         (alloc_qty): Copute freq_calls_crossed.
16193         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16194         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16195         * ra.h (struct allocno): Add freq_calls_crossed.
16196
16197 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16198
16199         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16200         libgomp when compiling with ftree-parallelize-loops.
16201         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16202
16203 2008-01-16  Richard Guenther  <rguenther@suse.de>
16204
16205         PR tree-optimization/34769
16206         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16207         * tree.c (int_cst_value): Instead make this function more
16208         permissive in what it accepts as valid input.  Document this
16209         function always sign-extends the value.
16210
16211 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16212             Richard Guenther  <rguenther@suse.de>
16213
16214         PR c/34668
16215         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16216         (gimple_fold_indirect_ref_rhs): ... this.
16217         (gimple_fold_indirect_ref): New function with foldings
16218         that preserve lvalueness.
16219         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16220         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16221         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16222         to fold an INDIRECT_REF, fall back to the old use of
16223         fold_indirect_ref_1.
16224
16225 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16226
16227         * tree-data-ref.c (subscript_dependence_tester_1): Call 
16228         free_conflict_function.
16229         (compute_self_dependence): Same.
16230
16231 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16232
16233         PR debug/34249
16234         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16235         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16236         function global.
16237         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16238         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16239         for DWARF2_UNWIND_INFO targets.
16240
16241 2008-01-16  Richard Guenther  <rguenther@suse.de>
16242
16243         PR c/34768
16244         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16245         type qualifiers for function types.
16246
16247 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16248
16249         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16250         loop_iterator li from previous commit.
16251
16252 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16253
16254         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16255
16256 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16257
16258         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16259         (parallelize_loops): Don't parallelize irreducible components.
16260
16261 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16262
16263         PR c++/24924
16264         * c-opts (c_common_post_options): Do not enable CPP
16265         flag_pedantic_errors by default.
16266         
16267 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16268
16269         PR rtl-optimization/31944
16270         * cse.c (remove_pseudo_from_table): New function.
16271         (merge_equiv_classes): Use above function to remove pseudo-registers.
16272         (invalidate): Likewise.
16273
16274 2008-01-13  Richard Guenther  <rguenther@suse.de>
16275
16276         PR middle-end/34601
16277         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16278         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16279
16280 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16281
16282         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16283         validate_change to unshare the source of the PC set.
16284
16285 2008-01-12  Jan Hubicka  <jh@suse.cz>
16286
16287         PR middle-end/32135
16288         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16289         references above array bounds.  This might trigger bounds checks for
16290         pointers to arrays.
16291
16292 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16293
16294         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16295         new_replaceable_dependencies.
16296
16297 2008-01-12  Doug Kwan  <dougkwan@google.com>
16298
16299         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16300         instead of OPT_Wreturn_type in warning due to ignored return type
16301         qualifiers.
16302         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16303         options included in -Wextra.
16304         * c.opt: New option -Wignored_qualifiers.
16305         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16306         -Wignore_qualifiers.
16307         (-Wignored-qualifiers): Document.
16308         (-Wreturn-type): Remove description of functionality now handled
16309         by -Wignored-qualifiers.
16310
16311 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16312
16313         PR ada/33788
16314         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16315         NOP_EXPR if it is between integral types with the same precision.
16316
16317 2008-01-12  Jan Hubicka  <jh@suse.cz>
16318
16319         PR other/28023
16320         * invoke.texi (max-inline-recursive-depth): Fix default value.
16321
16322 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16323
16324         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16325         correct type.
16326
16327 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16328         
16329         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16330         
16331 2008-01-11  James E. Wilson  <wilson@specifix.com>
16332
16333         PR target/26015
16334         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16335
16336 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16337
16338         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
16339         save/restore frame pointer register and don't use 'call-prologues' 
16340         optimization in function with "OS_task" attribute.
16341
16342 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16343
16344         PR middle-end/31309
16345         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16346         when copying to memory.
16347
16348 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16349
16350         PR rtl-optimization/30905
16351         * cfgcleanup.c: Include dce.h
16352         (crossjumps_occured): New global variable.
16353         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16354         If something changed, set crossjumps_occured to true.
16355         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16356         Don't add/remove fake edges to exit here...
16357         (cleanup_cfg): ...but do it here, when crossjumping.
16358         Run a fast DCE when successful crossjumps occured in the latest
16359         iteration of try_optimize_cfg.
16360
16361 2008-01-11  Richard Guenther  <rguenther@suse.de>
16362
16363         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16364         (struct vn_unary_op_s): Likewise.
16365         (vn_reference_insert): Free old reference on hash collision.
16366
16367 2008-01-10  Raksit Ashok  <raksit@google.com>
16368
16369         PR rtl-optimization/27971
16370         * combine.c (find_split_point): Split PLUS expressions which are
16371         inside a MEM rtx, and whose first operand is complex.
16372
16373 2008-01-10  DJ Delorie  <dj@redhat.com>
16374
16375         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16376         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16377         (m32c_hard_regno_ok): Call the underlying function.
16378
16379 2008-01-10  Richard Guenther  <rguenther@suse.de>
16380
16381         PR middle-end/34683
16382         * tree-cfg.c (tree_merge_blocks): Do not go through the
16383         full-blown folding and stmt updating path if we just deal
16384         with virtual operands.
16385         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16386         test for abnormal SSA_NAMEs.
16387
16388 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16389
16390         PR middle-end/34641
16391         * reload.c (push_reload): Add assertions.  All constants from
16392         reg_equiv_constant should have been used for replacing the respective
16393         pseudo earlier.
16394         (find_reloads_address): Invoke find_reloads_address_part for
16395         constant taken from the reg_equiv_constant array.
16396
16397 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16398
16399         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16400         field (valnum) the first in the struct.  Replace bools with
16401         unit bit fields.
16402
16403 2008-01-10  Richard Guenther  <rguenther@suse.de>
16404
16405         PR tree-optimization/34651
16406         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16407         types and ordering for masking and converting.
16408
16409 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16410
16411         PR tree-optimization/34017
16412         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16413         also for PHI_NODE expressions.
16414
16415 2008-01-09  Jan Hubicka  <jh@suse.cz>
16416
16417         PR tree-optimization/34708
16418         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16419         based on number of case labels.
16420         (init_inline_once): Remove switch_cost.
16421         * tree-inline.h (eni_weights_d): Remove switch_cost.
16422
16423 2008-01-09  Richard Guenther  <rguenther@suse.de>
16424         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16425
16426         PR middle-end/30132
16427         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16428         temporary if an rvalue is ok or an lvalue is not required.
16429
16430 2008-01-09  Richard Guenther  <rguenther@suse.de>
16431
16432         PR middle-end/34458
16433         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16434         adjust return type.
16435
16436 2008-01-09  Richard Guenther  <rguenther@suse.de>
16437
16438         PR middle-end/34679
16439         * tree.c (host_integerp): Check for sizetype only if the
16440         type is an integer type.
16441
16442 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16443
16444         PR debug/26364
16445         * opts.c (decode_options): Disable inlining of functions called
16446         once if not in unit-at-a-time mode.
16447
16448 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16449
16450         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16451
16452 2008-01-08  Richard Guenther  <rguenther@suse.de>
16453
16454         PR middle-end/31863
16455         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16456         out early if the result will be unused.
16457
16458 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16459
16460         PR target/34709
16461         Revert:
16462
16463         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16464         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16465         for TARGET_RECIP.       
16466         
16467 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16468         
16469         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16470         for vectorization tuned.
16471         
16472 2008-01-08  Richard Guenther  <rguenther@suse.de>
16473
16474         PR tree-optimization/34683
16475         * tree-ssa-operands.c (operand_build_cmp): Export.
16476         * tree-ssa-operands.h (operand_build_cmp): Declare.
16477         * tree-vn.c (vuses_compare): Remove.
16478         (sort_vuses): Use operand_build_cmp.
16479         (sort_vuses_heap): Likewise.
16480         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16481         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16482         (vdefs_to_vec): Do not sort already sorted VDEFs.
16483
16484 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16485
16486         PR middle-end/34694
16487         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16488
16489 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16490
16491         PR target/34702
16492         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16493         limitations of reciprocal sequences on x86 targets.
16494
16495 2008-01-08  Richard Guenther  <rguenther@suse.de>
16496
16497         PR tree-optimization/34683
16498         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16499
16500 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16501
16502         PR target/34622
16503         * config/darwin.c (darwin_mergeable_string_section): Don't use
16504         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16505
16506 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16507
16508         PR target/34682
16509         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16510         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16511         predicates of op0 and op1 to register_operand.
16512         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16513         expander using X87MODEF mode iterator.  Change predicates of
16514         op0 and op1 to register_operand.
16515         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16516         corresponding patterns and macroize using MODEF macro.  Change
16517         predicates of op0 and op1 to register_operand and remove
16518         "m" constraint. Disparage "r" alternative with "!".
16519         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16520         macroize using X87MODEF macro.  Change predicates of op0 and op1
16521         to register_operand and remove "m" constraint.  Disparage "r"
16522         alternative with "!".
16523         (absneg splitter with memory operands): Remove.
16524         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16525         patterns and macroize using X87MODEF mode iterator.
16526         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16527         Change predicate of op1 to register_operand.
16528         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16529         for memory operands.
16530
16531 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16532
16533         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16534
16535 2008-01-07  Richard Guenther  <rguenther@suse.de>
16536
16537         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16538         fields.
16539
16540 2008-01-07  Richard Guenther  <rguenther@suse.de>
16541
16542         PR tree-optimization/34683
16543         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16544         VOPs of the needed size to save memory.  Use VEC_quick_push
16545         to save compile-time.
16546         (vdefs_to_vec): Likewise.
16547
16548 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16549
16550         * config/spu/spu.md (divdf3): Genetate inline code for double
16551         division.  The implementation doesn't handle INF or NAN, therefore it
16552         only applies when -ffinite-math-only is given.
16553
16554 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16555
16556         PR libstdc++/34680
16557         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16558         * doc/cpp.texi ([Common Predefined Macros]): Document.
16559
16560 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16561
16562         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16563         order to use commutative addition instead of subtraction.
16564
16565 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16566             Mircea Namolaru  <namolaru@il.ibm.com>
16567             Vladimir Yanovsky  <yanov@il.ibm.com>
16568             Revital Eres  <eres@il.ibm.com>
16569
16570         PR tree-optimization/34263
16571         * tree-outof-ssa.c (process_single_block_loop_latch,
16572         contains_tree_r): New functions.
16573         (analyze_edges_for_bb): Call process_single_block_loop_latch
16574         function to empty single-basic-block latch block if possible.
16575
16576 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16577
16578         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16579         for TARGET_RECIP.
16580         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16581
16582 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16583
16584         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16585
16586 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16587
16588         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16589
16590 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16591
16592         PR tree-optimization/34618
16593         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16594         flag from T.
16595
16596 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16597
16598         PR target/34673
16599         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16600         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16601         Update copyright year.
16602
16603         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16604         Update copyright year.
16605         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16606         using NR fixup.
16607
16608 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16609
16610         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16611         edge does not point to current bb before changing need_assert.
16612
16613 2008-01-04  Richard Guenther  <rguenther@suse.de>
16614
16615         PR middle-end/34029
16616         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16617         for verifying purposes if they are is_gimple_min_invariant.
16618
16619 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16620
16621         PR tree-optimization/34448
16622         PR tree-optimization/34465
16623         * gimplify.c (gimplify_init_constructor): Add new parameter
16624         notify_temp_creation.  Use it.
16625         (gimplify_modify_expr_rhs): Take volatiles into account when
16626         optimizing constructors.
16627         Do not optimize constructors if gimplify_init_constructor will dump to
16628         memory.
16629         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16630         * gcc.c-torture/compile/pr34448.c: New.
16631
16632 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16633
16634         PR gcov-profile/34609
16635         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16636         return_slot if result is TREE_ADDRESSABLE.
16637
16638 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16639
16640         * config/mips/mips.md (sqrt_condition): Tweak comment.
16641         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16642
16643 2008-01-03  Tom Tromey  <tromey@redhat.com>
16644
16645         PR c/34457
16646         * c-common.c (c_type_hash): Handle VLAs.
16647
16648 2008-01-03  Jan Hubicka  <jh@suse.cz>
16649
16650         PR tree-optimization/31081
16651         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16652         0 when inlining and not inlining to first basic block.
16653         (remap_decl): When var is initialized to 0, don't set default_def.
16654         (expand_call_inline): Set entry_bb.
16655         * tree-inline.h (copy_body_data): Add entry_bb.
16656
16657 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16658
16659         PR c++/34619
16660         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16661         before returning.
16662
16663         PR tree-optimization/29484
16664         * tree-inline.c (inline_forbidden_p_2): New function.
16665         (inline_forbidden_p): Disallow inlining if some static var
16666         has an address of a local LABEL_DECL in its initializer.
16667         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16668         vs. inlining.
16669
16670 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16671
16672         PR tree-optimization/34635
16673         * tree-data-ref.c (add_other_self_distances): Make sure that the
16674         evolution step is constant.
16675
16676 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16677
16678         PR middle-end/34608
16679         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16680
16681 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16682
16683         * tree-sra.c (scalarize_init): Insert the generate_element_init
16684         statements after the generate_element_zero statements.
16685
16686 2008-01-02  Richard Guenther  <rguenther@suse.de>
16687
16688         PR middle-end/34093
16689         PR middle-end/31976
16690         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16691         for very large number of operands instead of ICEing.
16692
16693 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16694
16695         PR target/34013
16696         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16697         while stack probing.
16698
16699 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16700
16701         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16702         in C++0x mode.
16703
16704 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16705
16706         PR libmudflap/26442
16707         * tree-mudflap.c (mx_register_decls): Guard warning by
16708         !DECL_ARTIFICIAL check.
16709
16710 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16711
16712         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16713         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16714         sse5_perm<mode>): Fix constraints.