OSDN Git Service

* config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2
3         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
4         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
5         next_stack, lab_false and lab_over trees.
6
7 2008-07-28  Richard Guenther  <rguenther@suse.de>
8
9         PR tree-optimization/36957
10         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
11         (useless_type_conversion_p): Remove.
12         (types_compatible_p): Remove.
13         * gimple.h (tree_ssa_useless_type_conversion): Declare.
14         (useless_type_conversion_p): Declare.
15         (types_compatible_p): Declare.
16         (gimple_expr_type): Return the base type only if it is
17         trivially convertible to the subtype.
18
19 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
20
21         * configure.ac: Use the m4_do macro to concatenate the warnings into
22         one string in ACX_PROG_CC_WARNING_OPTS,
23         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
24         * configure: Regenerate.
25
26 2008-07-28  Richard Guenther  <rguenther@suse.de>
27
28         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
29         (insert_fake_stores): Remove.
30         (realify_fake_stores): Likewise.
31         (execute_pre): Remove dead code.
32         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
33         case.
34         (find_func_aliases): Deal with it here instead.
35         Re-enable gcc_unreachable call.
36
37 2008-07-28  Richard Guenther  <rguenther@suse.de>
38
39         Merge from gimple-tuples-branch.
40
41         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
42         * gimple.def: New file.
43         * gsstruct.def: Likewise.
44         * gimple-iterator.c: Likewise.
45         * gimple-pretty-print.c: Likewise.
46         * tree-gimple.c: Removed.  Merged into ...
47         * gimple.c: ... here.  New file.
48         * tree-gimple.h: Removed.  Merged into ...
49         * gimple.h: ... here.  New file.
50
51         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
52         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
53         --enable-checking=gimple flag.
54         * config.in: Likewise.
55         * configure: Regenerated.
56
57         * tree-ssa-operands.h: Tuplified.
58         * tree-vrp.c: Likewise.
59         * tree-loop-linear.c: Likewise.
60         * tree-into-ssa.c: Likewise.
61         * tree-ssa-loop-im.c: Likewise.
62         * tree-dump.c: Likewise.
63         * tree-complex.c: Likewise.
64         * cgraphbuild.c: Likewise.
65         * tree-ssa-threadupdate.c: Likewise.
66         * tree-ssa-loop-niter.c: Likewise.
67         * tree-pretty-print.c: Likewise.
68         * tracer.c: Likewise.
69         * gengtype.c: Likewise.
70         * tree-loop-distribution.c: Likewise.
71         * tree-ssa-loop-unswitch.c: Likewise.
72         * cgraph.c: Likewise.
73         * cgraph.h: Likewise.
74         * tree-ssa-loop-manip.c: Likewise.
75         * value-prof.c: Likewise.
76         * tree-ssa-loop-ch.c: Likewise.
77         * tree-tailcall.c: Likewise.
78         * value-prof.h: Likewise.
79         * tree.c: Likewise.
80         * tree.h: Likewise.
81         * tree-pass.h: Likewise.
82         * ipa-cp.c: Likewise.
83         * tree-scalar-evolution.c: Likewise.
84         * tree-scalar-evolution.h: Likewise.
85         * target.h: Likewise.
86         * lambda-mat.c: Likewise.
87         * tree-phinodes.c: Likewise.
88         * diagnostic.h: Likewise.
89         * builtins.c: Likewise.
90         * tree-ssa-alias-warnings.c: Likewise.
91         * cfghooks.c: Likewise.
92         * fold-const.c: Likewise.
93         * cfghooks.h: Likewise.
94         * omp-low.c: Likewise.
95         * tree-ssa-dse.c: Likewise.
96         * ipa-reference.c: Likewise.
97         * tree-ssa-uncprop.c: Likewise.
98         * toplev.c: Likewise.
99         * tree-gimple.c: Likewise.
100         * tree-gimple.h: Likewise.
101         * tree-chrec.c: Likewise.
102         * tree-chrec.h: Likewise.
103         * tree-ssa-sccvn.c: Likewise.
104         * tree-ssa-sccvn.h: Likewise.
105         * cgraphunit.c: Likewise.
106         * tree-ssa-copyrename.c: Likewise.
107         * tree-ssa-ccp.c: Likewise.
108         * tree-ssa-loop-ivopts.c: Likewise.
109         * tree-nomudflap.c: Likewise.
110         * tree-call-cdce.c: Likewise.
111         * ipa-pure-const.c: Likewise.
112         * c-format.c: Likewise.
113         * tree-stdarg.c: Likewise.
114         * tree-ssa-math-opts.c: Likewise.
115         * tree-ssa-dom.c: Likewise.
116         * tree-nrv.c: Likewise.
117         * tree-ssa-propagate.c: Likewise.
118         * ipa-utils.c: Likewise.
119         * tree-ssa-propagate.h: Likewise.
120         * tree-ssa-alias.c: Likewise.
121         * gimple-low.c: Likewise.
122         * tree-ssa-sink.c: Likewise.
123         * ipa-inline.c: Likewise.
124         * c-semantics.c: Likewise.
125         * dwarf2out.c: Likewise.
126         * expr.c: Likewise.
127         * tree-ssa-loop-ivcanon.c: Likewise.
128         * predict.c: Likewise.
129         * tree-ssa-loop.c: Likewise.
130         * tree-parloops.c: Likewise.
131         * tree-ssa-address.c: Likewise.
132         * tree-ssa-ifcombine.c: Likewise.
133         * matrix-reorg.c: Likewise.
134         * c-decl.c: Likewise.
135         * tree-eh.c: Likewise.
136         * c-pretty-print.c: Likewise.
137         * lambda-trans.c: Likewise.
138         * function.c: Likewise.
139         * langhooks.c: Likewise.
140         * ebitmap.h: Likewise.
141         * tree-vectorizer.c: Likewise.
142         * function.h: Likewise.
143         * langhooks.h: Likewise.
144         * tree-vectorizer.h: Likewise.
145         * ipa-type-escape.c: Likewise.
146         * ipa-type-escape.h: Likewise.
147         * domwalk.c: Likewise.
148         * tree-if-conv.c: Likewise.
149         * profile.c: Likewise.
150         * domwalk.h: Likewise.
151         * tree-data-ref.c: Likewise.
152         * tree-data-ref.h: Likewise.
153         * tree-flow-inline.h: Likewise.
154         * tree-affine.c: Likewise.
155         * tree-vect-analyze.c: Likewise.
156         * c-typeck.c: Likewise.
157         * gimplify.c: Likewise.
158         * coretypes.h: Likewise.
159         * tree-ssa-phiopt.c: Likewise.
160         * calls.c: Likewise.
161         * tree-ssa-coalesce.c: Likewise.
162         * tree.def: Likewise.
163         * tree-dfa.c: Likewise.
164         * except.c: Likewise.
165         * except.h: Likewise.
166         * cfgexpand.c: Likewise.
167         * tree-cfgcleanup.c: Likewise.
168         * tree-ssa-pre.c: Likewise.
169         * tree-ssa-live.c: Likewise.
170         * tree-sra.c: Likewise.
171         * tree-ssa-live.h: Likewise.
172         * tree-predcom.c: Likewise.
173         * lambda.h: Likewise.
174         * tree-mudflap.c: Likewise.
175         * ipa-prop.c: Likewise.
176         * print-tree.c: Likewise.
177         * tree-ssa-copy.c: Likewise.
178         * ipa-prop.h: Likewise.
179         * tree-ssa-forwprop.c: Likewise.
180         * ggc-page.c: Likewise.
181         * c-omp.c: Likewise.
182         * tree-ssa-dce.c: Likewise.
183         * tree-vect-patterns.c: Likewise.
184         * tree-ssa-ter.c: Likewise.
185         * tree-nested.c: Likewise.
186         * tree-ssa.c: Likewise.
187         * lambda-code.c: Likewise.
188         * tree-ssa-loop-prefetch.c: Likewise.
189         * tree-inline.c: Likewise.
190         * tree-inline.h: Likewise.
191         * tree-iterator.c: Likewise.
192         * tree-optimize.c: Likewise.
193         * tree-ssa-phiprop.c: Likewise.
194         * tree-vect-transform.c: Likewise.
195         * tree-object-size.c: Likewise.
196         * tree-outof-ssa.c: Likewise.
197         * cfgloop.c: Likewise.
198         * system.h: Likewise.
199         * tree-profile.c: Likewise.
200         * cfgloop.h: Likewise.
201         * c-gimplify.c: Likewise.
202         * c-common.c: Likewise.
203         * tree-vect-generic.c: Likewise.
204         * tree-flow.h: Likewise.
205         * c-common.h: Likewise.
206         * basic-block.h: Likewise.
207         * tree-ssa-structalias.c: Likewise.
208         * tree-switch-conversion.c: Likewise.
209         * tree-ssa-structalias.h: Likewise.
210         * tree-cfg.c: Likewise.
211         * passes.c: Likewise.
212         * ipa-struct-reorg.c: Likewise.
213         * ipa-struct-reorg.h: Likewise.
214         * tree-ssa-reassoc.c: Likewise.
215         * cfgrtl.c: Likewise.
216         * varpool.c: Likewise.
217         * stmt.c: Likewise.
218         * tree-ssanames.c: Likewise.
219         * tree-ssa-threadedge.c: Likewise.
220         * langhooks-def.h: Likewise.
221         * tree-ssa-operands.c: Likewise.
222         * config/alpha/alpha.c: Likewise.
223         * config/frv/frv.c: Likewise.
224         * config/s390/s390.c: Likewise.
225         * config/m32c/m32c.c: Likewise.
226         * config/m32c/m32c-protos.h: Likewise.
227         * config/spu/spu.c: Likewise.
228         * config/sparc/sparc.c: Likewise.
229         * config/i386/i386.c: Likewise.
230         * config/sh/sh.c: Likewise.
231         * config/xtensa/xtensa.c: Likewise.
232         * config/stormy16/stormy16.c: Likewise.
233         * config/ia64/ia64.c: Likewise.
234         * config/rs6000/rs6000.c: Likewise.
235         * config/pa/pa.c: Likewise.
236         * config/mips/mips.c: Likewise.
237
238 2008-07-28  Simon Baldwin  <simonb@google.com>
239
240         * c-pragma.c (handle_pragma_message): New function.
241         (init_pragma): Register handle_pragma_message.
242         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
243         documentation.
244
245 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
246
247         PR tree-optimization/35252
248         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
249         REALPART_EXPR to be considered as same load operation.
250
251 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
252
253         PR tree-optimization/36830
254         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
255         (expressions_equal_p): Return false if only one operand is null.
256
257 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
258
259         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
260         version requirements.
261
262 2008-07-26  Olivier Hainque  <hainque@adacore.com>
263
264         * collect2.c (symkind): New enum.  Symbol kinds we care about.
265         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
266         code and head comment accordingly.
267         (scan_prog_file): Use symkind names instead of bare integers.
268         
269 2008-07-25  Jan Hubicka  <jh@suse.cz>
270
271         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
272         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
273         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
274         * dojump.c (clear_pending_stack_adjust): Likewise.
275         * print-tree.c (print_node): Ignore DECL_INLINE.
276         * tree-inline.c (inlinable_function_p): Likewise.
277         
278 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
279
280         * doc/extend.texi (hot attribute): Document that the hot attribute
281         turns on -O3 for some ports.
282         (cold attribute): Document that the cold attribute turns on -Os
283         for some ports
284
285         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
286         reflect function specific option support.
287
288         * target.h (struct target_option_hooks): Add fields to say whether
289         the cold attribute implies -Os and the hot attribute implies -O3.
290
291         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
292         By default, do not turn on -Os for cold functions.
293         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
294         not turn on -O3 for hot functions.
295
296         * c-common.c (handle_hot_attribute): Use target hook to determine
297         if hot functions should enable -O3.
298         (handle_cold_attribute): Use target hook to determine if cold
299         functions should enable -Os.
300
301         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
302         (override_options): Move disable scheduling to
303         optimization_options.
304         (optimization_options): Disable scheduling here, not
305         override_options.
306         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
307         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
308
309         * config/ia64/ia64.c (ia64_override_options): Move setting
310         scheduling flags to ia64_optimization_options.
311         (ia64_optimization_options): Disable scheduling options here, and
312         not in ia64_override_options.
313         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
314         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
315
316 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
317
318         PR target/36936
319         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
320
321 2008-07-25  Martin Jambor  <mjambor@suse.cz>
322
323         PR tree-optimization/36926
324         * ipa-prop.c (ipa_analyze_call_uses): Call
325         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
326
327 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
328
329         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
330         movv2si_internal): Add mem = reg alternative.
331
332 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
333
334         PR bootstrap/36918
335         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
336         DEFAULT_PCC_STRUCT_RETURN to 127.
337
338 2008-07-24  Jan Hubicka  <jh@suse.cz>
339
340         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
341         (build_cgraph_edges): Likewise.
342         * cgraph.c (cgraph_node): Do not update assembler hash.
343         (cgraph_remove_node): Drop non-unit-at-a-time code.
344         * tree-pass.h (pass_O0_always_inline): Remove.
345         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
346         * toplev.c (process_options): Flag unit-at-a-time does not imply
347         no section anchors.
348         * cgraphunit.c: Update comments.
349         (decide_is_function_needed): Drop non-unit-at-a-time mode.
350         (cgraph_assemble_pending_functions): Remove.
351         (cgraph_reset_node): Drop non-unit-at-a-time code.
352         (cgraph_finalize_function): Likewise.
353         (cgraph_analyze_function): Likewise.
354         (cgraph_finalize_compilation_unit): Likewise.
355         (cgraph_expand_function): Likewise.
356         (cgraph_optimize): Likesise.
357         (save_inline_function_body): Likewise.
358         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
359         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
360         * ipa-inline.c: Update comments.
361         (enum inlining_mode): remove INLINE_SPEED.
362         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
363         (cgraph_mark_inline_edge): Likewise.
364         (try_inline): Likewise.
365         (cgraph_decide_inlining_incrementally): Likewise.
366         (cgraph_gate_inlining): Remove.
367         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
368         (cgraph_gate_early_inlining): Likewise.
369         (gate_inline_passes): Remove.
370         (pass_inline_parameters, pass_ipa_inline): Remove gates.
371         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline, 
372         pass_O0_always_inline): Remove.
373         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
374         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
375         * opts.c (no_unit_at_a_time_default): Remove.
376         (decode_options): Remove flag_unit_at_a_time reset and warning.
377         * opts.h (no_unit_at_a_time_default): Remove.
378         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
379         early in GNU dialect.
380         (merge_decls): Update comment; drop unit-at-a-time check.
381         (finish_decl): Likewise.
382         (grok_declaration): Remove flag_inline_trees code.
383         (finish_functions): Return on function returning non-void on all
384         statics.
385         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
386         * cfgexpand.c (expand_one_static_var): Remove.
387         (expand_one_var): Remove expand_one_static_var call.
388         (expand_used_vars_for_block): Remove flag_unit_a_time check.
389         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
390         and flag_unit_at_a-time compatibility checks.
391         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
392         * tree-inline.c (flag_inline_trees): Remove.
393         (inlinable_function_p): Don't check it.
394         (expand_call_inline): Remove non-unit-at-a-time code.
395         * tree-inline.h (flag_inline_trees): Remove.
396         * tree-optimize.c (execute_early_local_optimizations): Remove
397         unit-at-a-time checks.
398         (tree_rest_of_compilation): Likewise.
399         * combine.c (setup_incoming_promotions): Likewise.
400         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
401         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
402         * passes.c (pass_inline_parameters): Update comments; remove
403         O0_alwaysinline pass.
404         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
405         (execute_one_pass): Likewise.
406         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
407         (ix86_function_sseregparm): Likewise.
408         * arm.c (arm_function_in_section_p): Likewise.
409         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
410         * varpool.c: Update comments.
411         (decide_is_variable_needed): Remove unit-at-a-time checks.
412         (varpool_finalize_decl): Likewise.
413
414 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
415
416         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
417         to 2 instead of -1.
418         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
419         to 2.
420
421 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
422
423         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
424         imp symbol extension.
425
426         2008-07-23  Ian Lance Taylor  <iant@google.com>
427
428         * tree-vrp.c (infer_value_range): Ignore asm statements when
429         looking for memory accesses for -fdelete-null-pointer-checks.
430
431 2008-07-24  Ben Elliston  <bje@au.ibm.com>
432
433         * config/spu/spu-c.c (__vector_keyword): New variable.
434         (vector_keyword): Likewise.
435         (spu_categorize_keyword): New function.
436         (spu_macro_to_expand): Likewise.
437         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
438         compiling an ISO C dialect.
439
440 2008-07-24  Ben Elliston  <bje@au.ibm.com>
441
442         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
443         conventional usage.
444
445 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
446
447         * configure: Regenerate.
448         * configure.ac: Require texinfo 4.7.
449         * doc/install.texi: Document texinfo 4.7 requirement.
450
451 2008-07-23  Martin Jambor  <mjambor@suse.cz>
452
453         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
454         rather than for DECL_SAVED_TREE.
455         * ipa-prop.c: Include diagnostic.h.
456         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
457         thoroughly.
458         (ipa_detect_param_modifications): Function rewritten from scratch.
459         (ipa_compute_jump_functions): Changed accesses to modification flags.
460         (ipa_free_node_params_substructures): Update flags destruction.
461         (ipa_node_duplication_hook): Update flags duplication.
462         (ipa_print_all_params_modified): Updated flag access.
463         * ipa-prop.h (struct ipa_param_flags): New structure.
464         (struct ipa_node_params): New field modification_analysis_done,
465         modified_flags changed into param_flags.
466         (ipa_is_ith_param_modified): Changed to use new flags.
467         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
468
469         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
470         ipa-cp.c and split into two functions.
471         (ipa_print_node_jump_functions): New function.
472         (compute_scalar_jump_functions): New function.
473         (type_like_member_ptr_p): New function.
474         (compute_pass_through_member_ptrs): New function.
475         (fill_member_ptr_cst_jump_function): New function.
476         (determine_cst_member_ptr): New function.
477         (compute_cst_member_ptr_arguments): New function.
478         (ipa_compute_jump_functions): Complete rewrite.
479         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
480         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
481         (struct ipa_member_ptr_cst): New structure.
482         (union jump_func_value): New field member_cst.
483         * ipa-cp.c (ipcp_lat_is_insertable): New function.
484         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
485         jump function types.
486         (ipcp_print_all_lattices): Slight fprintf rearrangement.
487         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
488         instead of ipcp_print_all_jump_functions.
489         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
490         only for replacable scalars.
491
492         * doc/invoke.texi (Optimize options): Add description of
493         -findirect-inlining.
494         * common.opt (flag_indirect_inlining): New flag.
495         * opts.c (decode_options): Set flag_indirect_inlining when 
496         optimize >= 3.
497
498         * ipa-inline.c: Include ipa-prop.h.
499         (inline_indirect_intraprocedural_analysis): New function.
500         (inline_generate_summary): Allocate parameter and argument info
501         structures, call inline_indirect_intraprocedural_analysis on each
502         node when doing indirect inlining and deallocate indirect inlining 
503         data structures in the end.
504         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
505         (free_all_ipa_structures_after_iinln): New function.
506         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be 
507         done.
508         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
509
510         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
511         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
512         of computing the frequency separately.
513         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
514         of computing the frequency separately.
515         * ipa-cp.c (ipcp_print_all_structures): Replace a call to 
516         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
517         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
518         (ipa_get_stmt_member_ptr_load_param): New function.
519         (ipa_is_ssa_with_stmt_def): New function.
520         (ipa_note_param_call): New function.
521         (ipa_analyze_call_uses): New function.
522         (ipa_analyze_stmt_uses): New function.
523         (ipa_analyze_params_uses): New function.
524         (ipa_free_node_params_substructures): Also free the param_calls linked
525         list.
526         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
527         (ipa_print_node_param_flags): New function.
528         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
529         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
530         * ipa-prop.h (struct ipa_param_flags): New field called.
531         (struct ipa_param_call_note): New structure.
532         (struct ipa_node_params): New fields param_calls and
533         uses_analysis_done.
534         (ipa_is_ith_param_called): New function.
535         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
536         ipa_analyze_params_uses and dump parameter flags.
537
538         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
539         ipa_propagate_indirect_call_infos if performing indirect inlining,
540         pass a new parameter new_edges to it.
541         (add_new_edges_to_heap): New fucntion.
542         (cgraph_decide_inlining_of_small_functions): New vector
543         new_indirect_edges for newly found indirect edges , call
544         ipa_propagate_indirect_call_infos after inlining.
545         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
546         inlining if performing indirect inlining.  Call
547         free_all_ipa_structures_after_iinln when doing so too.
548         (inline_generate_summary): Do not call
549         free_all_ipa_structures_after_iinln here.
550         * ipa-prop.c (update_jump_functions_after_inlining): New function.
551         (print_edge_addition_message): New function.
552         (update_call_notes_after_inlining): New function.
553         (propagate_info_to_inlined_callees): New function.
554         (ipa_propagate_indirect_call_infos): New function.
555         * ipa-prop.h: Include cgraph.h
556         (struct ipa_param_call_note): Fields reordered, new field processed.
557         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
558         flag indirect_call.
559         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
560         rediscovered call statements.
561         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
562         (dump_cgraph_node): Dump also the indirect_call flag.
563         (cgraph_clone_edge): Copy also the indirect_call flag.
564         * tree-inline.c (copy_bb): Do not check for fndecls from call
565         expressions, check for edge availability when moving clones.
566         (get_indirect_callee_fndecl): New function.
567         (expand_call_inline): If callee declaration is not apprent from
568         the statement, try calling get_indirect_callee_fndecl.  Do not
569         issue warnings or call sorry when not inlinings an indirect edge.
570         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
571
572         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
573         bit more frandly to matching.
574         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
575         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
576         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
577         
578 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
579
580         PR 36907
581         * opth-gen.awk: Suppress function specific features when building
582         target libraries.
583         * optc-gen.awk: Ditto.
584
585 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
586
587         PR 35058
588         * diagnostic.c (pedwarn): Add opt parameter.
589         (pedwarn0): New.
590         * c-tree.h (pedwarn_init): Add opt parameter.
591         (pedwarn_c90): Likewise.
592         (pedwarn_c99): Likewise.
593         * c-errors.c (pedwarn_c99): Likewise.
594         (pedwarn_c90): Likewise.
595         * toplev.h (pedwarn): Update declaration.
596         (pedwarn0): Declare.
597         * c-lex.c: All calls to pedwarn changed.
598         * builtins.c: All calls to pedwarn changed.
599         * toplev.c: All calls to pedwarn changed.
600         * c-decl.c: All calls to pedwarn changed.
601         * c-typeck.c: All calls to pedwarn changed.
602         * c-common.c: All calls to pedwarn changed.
603         * c-parser.c: All calls to pedwarn changed.
604         
605 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
606             Karthik Kumar  <karthikkumar@gmail.com>
607
608         * attribs.c (file scope): Include c-common.h.
609         (decl_attributes): Add support for #pragma GCC optimize and
610         #pragma GCC option.
611
612         * targhooks.c (default_can_inline_p): New function that is the
613         default for the TARGET_CAN_INLINE_P target hook.
614
615         * targhooks.h (default_can_inline_p): Add declaration.
616
617         * tree.c (cl_optimization_node): New static tree for building
618         OPTIMIZATION_NODE tree.
619         (cl_target_option_node): New static tree for building
620         TARGET_OPTION_NODE tree.
621         (cl_option_hash_table): New hash table for hashing
622         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
623         (cl_option_hash_hash): New function to provide the hash value for
624         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
625         (cl_option_hash_eq): New function to provide an equality test for
626         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
627         (tree_code_size): Add support for OPTIMIZATION_NODE and
628         TARGET_OPTION_NODE trees.
629         (tree_code_structure): Add support for OPTIMIZATION_NODE and
630         TARGET_OPTION_NODE trees.
631         (build_optimization_node): Build a tree that has all of the
632         current optimization options.
633         (build_target_option_node): Build a tree that has the target
634         options that might be changed on a per function basis.
635
636         * tree.h (file scope): Include options.h.
637         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
638         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
639         (TREE_OPTIMIZATION): Ditto.
640         (TREE_TARGET_SPECIFIC): Ditto.
641         (struct tree_function_decl): Add fields for remembering the
642         current optimization options and target specific options.
643         (struct tree_optimization_option): New tree variant that remembers
644         the optimization options.
645         (struct tree_target_option): New tree variant that remembers the
646         target specific flags that might change for compiling a particular
647         function.
648         (union tree_node): Include tree_optimization_option and
649         tree_target_option fields.
650         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
651         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
652         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
653         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
654         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
655         optimization and target options.
656         (optimization_default_node): New macro to refer to global_trees
657         field.
658         (optimization_current_node): Ditto.
659         (optimization_cold_node): Ditto.
660         (optimization_hot_node): Ditto.
661         (target_option_default_node): Ditto.
662         (target_option_current_node): Ditto.
663         (current_option_pragma): Ditto.
664         (current_optimize_pragma): Ditto.
665
666         * target.h (struct gcc_target): Add valid_option_attribute_p,
667         target_option_save, target_option_restore, target_option_print,
668         target_option_pragma_parse, and can_inline_p hooks.
669
670         * toplev.h (parse_optimize_options): Add declaration.
671         (fast_math_flags_struct_set_p): Ditto.
672
673         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
674         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
675         optimize is used.
676
677         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
678         tree_can_inline_p hook to see if one function can inline another.
679         (cgraph_decide_inlining): Ditto.
680         (cgraph_decide_inlining_incrementally): Ditto.
681
682         * opts.c (decode_options): Add support for running multiple times
683         to allow functions with different target or optimization options
684         than was specified on the command line.
685         (fast_math_flags_struct_set_p): New function that is similar to
686         fast_math_flags_set_p, except it uses the values in the
687         cl_optimization structure instead of global variables.
688
689         * optc-gen.awk: Add support for TargetSave to allow a back end to
690         declare new fields that need to be saved when using function
691         specific options.  Include flags.h and target.h in the options.c
692         source.  Add support for Save to indicate which options can be set
693         for individual functions.  Generate cl_optimize_save,
694         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
695         cl_target_option_restore, cl_target_option_print functions to
696         allow functions to use different optimization or target options.
697
698         * opt-functions.awk (var_type_struct): Return the type used for
699         storing the field in a structure.
700
701         * opth-gen.awk: Add support for TargetSave to allow a back end to
702         declare new fields that need to be saved when using function
703         specific options.  Add support for Save to indicate which options
704         can be set for individual functions.  Only generate one extern for
705         Mask fields.  Generate cl_optimization and cl_target_option
706         structures to remember optimization and target options.
707
708         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
709         collecting new tree nodes.
710         (TS_TARGET_OPTION): Ditto.
711
712         * c-decl.c (merge_decls): Merge function specific target and
713         optimization options.
714
715         * function.c (invoke_set_current_function_hook): If the function
716         uses different optimization options, change the global variables
717         to reflect this.
718
719         * coretypes.h (struct cl_optimization): Add forward reference.
720         (struct cl_target_option): Ditto.
721
722         * c-pragma.c (option_stack): New static vector to remember the
723         current #pragma GCC option stack.
724         (handle_pragma_option): New function to support #pragma GCC option
725         to change target options.
726         (optimize_stack): New static vector to remember the current
727         #pragma GCC optimize stack.
728         (handle_pragma_optimize): New function to support #pragma GCC
729         optimize to change optimization options.
730         (init_pragma): Add support for #pragma GCC optimize and #pragma
731         GCC option.
732
733         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
734         optimization options.
735         (TARGET_OPTION_NODE): New tree code for remembering certain target
736         options.
737
738         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
739         TARGET_OPTION_NODE trees.
740
741         * common.opt (-O): Add Optimization flag.
742         (-Os): Ditto.
743         (-fmath-errno): Ditto.
744         (-falign-functions): Add UInteger flag to make sure flag gets full
745         int in cl_optimization structure.
746         (-falign-jumps): Ditto.
747         (-falign-labels): Ditto.
748         (-falign-loops): Ditto.
749         (-fsched-stalled-insns): Ditto.
750         (-fsched-stalled-insns-dep): Ditto.
751
752         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
753         definition.
754         (TARGET_OPTION_SAVE): Ditto.
755         (TARGET_OPTION_RESTORE): Ditto.
756         (TARGET_OPTION_PRINT): Ditto.
757         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
758         (TARGET_CAN_INLINE_P): Ditto.
759         (TARGET_INITIALIZER): Add new hooks.
760
761         * tree-inline.c (tree_can_inline_p): New function to determine
762         whether one function can inline another.  Check if the functions
763         use compatible optimization options, and also call the backend
764         can_inline_p hook.
765
766         * tree-inline.h (tree_can_inline_p): Add declaration.
767
768         * c-common.c (c_common_attribute): Add support for option and
769         optimize attributes.
770         (handle_option_attribute): Add support for the option attribute to
771         allow the user to specify different target options for compiling a
772         specific function.
773         (handle_optimize_attribute): Add support for the optimize
774         attribute to allow the user to specify different optimization
775         options for compiling a specific function.
776         (handle_hot_attribute): Turn on -O3 optimization for this one
777         function if it isn't the default optimization level.
778         (handle_cold_attribute): Turn on -Os optimization for this one
779         function if it insn't the default optimization.
780         (const_char_p): New const char * typedef.
781         (optimize_args): New static vector to remember the optimization
782         arguments.
783         (parse_optimize_options): New function to set up the optimization
784         arguments from either the optimize attribute or #pragma GCC
785         optimize.
786
787         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
788         (builtin_define_std): Ditto.
789
790         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
791         Add t-i386 Makefile fragment to add i386-c.o and i386.o
792         dependencies.
793         (x86_64-*-*): Ditto.
794
795         * Makefile.in (TREE_H): Add options.h.
796         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
797
798         * doc/extend.texi (option attribute): Document new attribute.
799         (optimize attribute): Ditto.
800         (hot attribute): Document hot attribute sets -O3.
801         (cold attribute): Document cold attribute sets -Os.
802         (#pragma GCC option): Document new pragma.
803         (#pragma GCC optimize): Ditto.
804
805         * doc/options.texi (TargetSave): Document TargetSave syntax.
806         (UInteger): Document UInteger must be used for certain flags.
807         (Save): Document Save option to create target specific options
808         that can be saved/restored on a function specific context.
809
810         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
811         macro.
812         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
813
814         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
815         hook.
816         (TARGET_OPTION_SAVE): Ditto.
817         (TARGET_OPTION_RESTORE): Ditto.
818         (TARGET_OPTION_PRINT): Ditto.
819         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
820         (TARGET_CAN_INLINE_P): Ditto.
821
822         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
823         -mfpmath=sse,387.
824         (-mfpmath=both): Ditto.
825
826 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
827             Karthik Kumar  <karthikkumar@gmail.com>
828
829         * config/i386/i386.h (TARGET_ABM): Move switch into
830         ix86_isa_flags.
831         (TARGET_POPCNT): Ditto.
832         (TARGET_SAHF): Ditto.
833         (TARGET_AES): Ditto.
834         (TARGET_PCLMUL): Ditto.
835         (TARGET_CMPXCHG16B): Ditto.
836         (TARGET_RECIP): Move switch into target_flags.
837         (TARGET_FUSED_MADD): Ditto.
838         (ix86_arch_features): Make an unsigned char type.
839         (ix86_tune_features): Ditto.
840         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
841         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
842         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
843
844         * config/i386/i386.opt (arch): New TargetSave field to define
845         fields that need to be saved for function specific option
846         support.
847         (tune): Ditto.
848         (fpmath): Ditto.
849         (branch_cost): Ditto.
850         (ix86_isa_flags_explicit): Ditto.
851         (tune_defaulted): Ditto.
852         (arch_specified): Ditto.
853         (-m128-long-double): Add Save flag to save option for target
854         specific option support.
855         (-m80387): Ditto.
856         (-maccumulate-outgoing-args): Ditto.
857         (-malign-double): Ditto.
858         (-malign-stringops): Ditto.
859         (-mfancy-math-387): Ditto.
860         (-mhard-float): Ditto.
861         (-mieee-fp): Ditto.
862         (-minline-all-stringops): Ditto.
863         (-minline-stringops-dynamically): Ditto.
864         (-mms-bitfields): Ditto.
865         (-mno-align-stringops): Ditto.
866         (-mno-fancy-math-387): Ditto.
867         (-mno-push-args): Ditto.
868         (-mno-red-zone): Ditto.
869         (-mpush-args): Ditto.
870         (-mred-zone): Ditto.
871         (-mrtd): Ditto.
872         (-msseregparm): Ditto.
873         (-mstack-arg-probe): Ditto.
874         (-m32): Ditto.
875         (-m64): Ditto.
876         (-mmmx): Ditto.
877         (-m3dnow): Ditto.
878         (-m3dnowa): Ditto.
879         (-msse): Ditto.
880         (-msse2): Ditto.
881         (-msse3): Ditto.
882         (-msse4.1): Ditto.
883         (-msse4.2): Ditto.
884         (-msse4): Ditto.
885         (-mno-sse4): Ditto.
886         (-msse4a): Ditto.
887         (-msse5): Ditto.
888         (-mrecip): Move flag into target_flags.
889         (-mcld): Ditto.
890         (-mno-fused-madd): Ditto.
891         (-mfused-madd): Ditto.
892         (-mabm): Move flag into ix86_isa_flags.
893         (-mcx16): Ditto.
894         (-mpopcnt): Ditto.
895         (-msahf): Ditto.
896         (-maes): Ditto.
897         (-mpclmul): Ditto.
898
899         * config/i386/i386-c.c: New file for #pragma support.
900         (ix86_target_macros_internal): New function to #define or #undef
901         target macros based when the user uses the #pragma GCC option to
902         change target options.
903         (ix86_pragma_option_parse): New function to add #pragma GCC option
904         support.
905         (ix86_target_macros): Move defining the target macros here from
906         TARGET_CPU_CPP_BUILTINS in i386.h.
907         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
908         defined, initialize any subtarget #pragmas.
909
910         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
911         REGISTER_TARGET_PRAGMAS.
912
913         * config/i386/t-i386: New file for x86 dependencies.
914         (i386.o): Make dependencies mirror the include files used.
915         (i386-c.o): New file, add dependencies.
916
917         * config/i386/i386-protos.h (override_options): Add bool
918         argument.
919         (ix86_valid_option_attribute_tree): Add declaration.
920         (ix86_target_macros): Ditto.
921         (ix86_register_macros): Ditto.
922
923         * config/i386/i386.c (ix86_tune_features): Move initialization of
924         the target masks to initial_ix86_tune_features to allow functions
925         to have different target options.  Make type unsigned char,
926         instead of unsigned int.
927         (initial_ix86_tune_features): New static vector to hold processor
928         masks for the tune variables.
929         (ix86_arch_features): Move initialization of the target masks to
930         initial_ix86_arch_features to allow functions to have different
931         target options.  Make type unsigned char, instead of unsigned
932         int.
933         (initial_ix86_arch_features): New static vector to hold processor
934         masks for the arch variables.
935         (enum ix86_function_specific_strings): New enum to describe the
936         string options used for attribute((option(...))).
937         (ix86_target_string): New function to return a string that
938         describes the target options.
939         (ix86_debug_options): New function to print the current options in
940         the debugger.
941         (ix86_function_specific_save): New function hook to save the
942         function specific global variables in the cl_target_option
943         structure.
944         (ix86_function_specific_restore): New function hook to restore the
945         function specific variables from the cl_target_option structure to
946         the global variables.
947         (ix86_function_specific_print): New function hook to print the
948         target specific options in the cl_target_option structure.
949         (ix86_valid_option_attribute_p): New function hook to validate
950         attribute((option(...))) arguments.
951         (ix86_valid_option_attribute_tree): New function that is common
952         code between attribute((option(...))) and #pragma GCC option
953         support that parses the options and returns a tree holding the
954         options.
955         (ix86_valid_option_attribute_inner_p): New helper function for
956         ix86_valid_option_attribute_tree.
957         (ix86_can_inline_p): New function hook to decide if one function
958         can inline another on a target specific basis.
959         (ix86_set_current_function); New function hook to switch target
960         options if the user used attribute((option(...))) or #pragma GCC
961         option.
962         (ix86_tune_defaulted): Move to static file scope from
963         override_options.
964         (ix86_arch_specified): Ditto.
965         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
966         ix86_isa_flags.
967         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
968         (OPTION_MASK_ISA_ABM_SET): Ditto.
969         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
970         (OPTION_MASK_ISA_CX16_SET): Ditto.
971         (OPTION_MASK_ISA_SAHF_SET): Ditto.
972         (OPTION_MASK_ISA_AES_UNSET): Ditto.
973         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
974         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
975         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
976         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
977         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
978         (struct ptt): Move to static file scope from override_options.
979         (processor_target_table): Ditto.
980         (cpu_names): Ditto.
981         (ix86_handle_option): Add support for options that are now isa
982         options.
983         (override_options): Add support for declaring functions that
984         support different target options than were specified on the
985         command line.  Move struct ptt, processor_target_table, cpu_names,
986         ix86_tune_defaulted, ix86_arch_specified to static file scope.
987         Add bool argument.  Fix up error messages so the appropriate error
988         is given for either command line or attribute.
989         (ix86_previous_fndecl): New static to remember previous function
990         declaration to see if we need to change target options.
991         (ix86_builtins_isa): New array to record the ISA of each builtin
992         function.
993         (def_builtin): Always create the builtin function, even if the
994         current ISA doesn't support it.
995         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
996         tests for those builtins.
997         (ix86_init_builtins): Remove TARGET_MMX test for calling
998         ix86_init_mmx_sse_builtins.
999         (ix86_expand_builtin): If the current ISA doesn't support a given
1000         builtin, signal an error.
1001         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1002         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1003         (TARGET_OPTION_SAVE): Ditto.
1004         (TARGET_OPTION_RESTORE): Ditto.
1005         (TARGET_OPTION_PRINT): Ditto.
1006         (TARGET_CAN_INLINE_P): Ditto.
1007
1008 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1009
1010        * c-typeck.c (build_external_ref): Don't call assemble_external.
1011        * final.c (output_operand): Call assemble_external.
1012
1013 2008-07-21  DJ Delorie  <dj@redhat.com>
1014
1015         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1016         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1017
1018 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1019
1020         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1021         original insn and splitter contents into ...
1022         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1023         flag_unsafe_math_optimizations.  Add dummy scratch register.
1024         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1025         !flag_unsafe_math_optimizations.  Returns number with next
1026         highest magnitude if this is still less or equal to the true
1027         quotient in magnitude.
1028
1029 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1030
1031         * Makefile.in: Replace toplev.h with TOPLEV_H.
1032         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1033         * c-lex.c (fe_file_change): Don't set in_system_header.
1034         * c-parser.c (c_token): Remove in_system_header.
1035         (c_lex_one_token): Don't set in_system_header.
1036         (c_parser_set_source_position_from_token): Don't set in_system_header.
1037         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1038         diagnostic_info.
1039         (warning_at): New.
1040         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1041         * flags.h (in_system_header): Remove.
1042         * function.c (saved_in_system_header): Remove.
1043         (push_cfun): Don't set in_system_header.
1044         (pop_cfun): Don't set in_system_header.
1045         (push_struct_function): Don't set in_system_header.
1046         * input.h (expanded_location): Add sysp.
1047         (in_system_header_at): New.
1048         (in_system_header): New.
1049         * toplev.c (in_system_header): Remove.
1050         * toplev.h: Include input.h
1051         (warning_at): New.
1052         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1053         * tree-ssa.c (warn_uninit): Call warning_at.
1054         (warn_uninitialized_var): Update calls to warn_uninit.
1055         (warn_uninitialized_phi): Update calls to warn_uninit.
1056         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1057         (expand_location): Initialize xloc.sysp.
1058         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1059         (tree_decl_with_vis): Remove in_system_header_flag.
1060
1061 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1062
1063         PR target/36822
1064         * recog.c (asm_operand_ok): Change the order of the extra
1065         memory constraint checks.
1066
1067 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1068
1069         PR tree-opt/36879
1070         * tree-switch-conversion.c (build_one_array): Call
1071         varpool_mark_needed_node and varpool_finalize_decl 
1072         instead of assemble_variable.
1073
1074 2008-07-19  Jan Hubicka  <jh@suse.cz>
1075
1076         * cgraph.c (cgraph_add_new_function): Do early local passes.
1077         * tree-nrv.c (gate_pass_return_slot): New gate.
1078         (pass_nrv): Add the gate.
1079         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1080         functions.
1081         (coalesce_ssa_name): Coalesce SSA names.
1082         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1083         not optimizing so unused user vars remains visible.
1084         * common.opt (flag_tree_ter): Always enable by default.
1085         * tree-ssa-ter.c: Include flags.h
1086         (is_replaceable_p): Check that locations match; when aliasing is missing
1087         be conservative about loads.
1088         * tree-optimize.c (gate_init_datastructures): Remove.
1089         (pass_init_datastructures): New.
1090         * passes.c: Reorder passes so we always go into SSA.
1091
1092 2008-07-19  Jan Hubicka  <jh@suse.cz>
1093
1094         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1095         * doc/invoke.texi (--combine): Likewise.
1096         (-finline-functions-called-once): Update levels when enabled.
1097         (-funit-at-a-time): Document new behaviour.
1098         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1099         -fno-section-anchors when disabled explicitly.
1100         (inline params): They are not ignored now.
1101         (precompiled headers): Remove unit-at-a-time as being incompatible.
1102         * opts.c (decode_options): Handle unit-at-a-time as alias;
1103         imply -fno-section-anchors when toplevel reorder is disabled
1104         explicitly.
1105         * common.opt (ftoplevel-reorder): Set default value to 2.
1106         (funit-at-a-time): Set default value to 1.
1107         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1108         to 2.
1109
1110 2008-07-19  Jan Hubicka  <jh@suse.cz>
1111
1112         * builtins.c (expand_builtin_int_roundingfn,
1113         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1114         it is not useful.
1115
1116 2008-07-19  Richard Guenther  <rguenther@suse.de>
1117
1118         PR bootstrap/36864
1119         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1120         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1121         * tree-ssa-pre.c (get_expr_value_id): For newly created
1122         constant value-ids make sure to add the expression to its
1123         expression-set.
1124
1125 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1126
1127         PR middle-end/36877
1128         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1129         return value of the builtin is ignored.
1130
1131 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1132
1133         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1134         bits, a C conformant malloc implementation has to provide.
1135         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1136
1137 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1138
1139         PR target/36780
1140         PR target/36827
1141         * reload.c (find_reloads_subreg_address): Only reload address if
1142         reloaded == 0, not for reloaded != 1.
1143
1144         Revert:
1145         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1146         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1147         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1148         m32c_legitimize_reload_address.
1149
1150         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1151         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1152         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1153
1154 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1155
1156         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1157         argument, saying whether nested array are to be collapsed
1158         into a single array type DIE with multiple subscripts.
1159         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1160         issues, centralize the nested array types collapsing control and
1161         disable the transformation for Ada.
1162         
1163 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1164
1165         PR target/36786
1166         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1167         x86_64_shift_adj.
1168         (x86_64_shift_adj_2): New expander.
1169         (x86_64_shift_adj_3): Ditto.
1170         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1171         to split TImode operands.
1172         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1173         (ix86_split_lshr): Ditto.
1174
1175 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1176
1177         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1178         and __CHAR32_TYPE__.
1179         * c-typeck.c (digest_init): Support char16_t and char32_t.
1180         (set_nonincremental_init_from_string): Idem.
1181
1182 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         PR middle-end/36859
1185         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1186         PREFERRED_STACK_BOUNDARY.
1187         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1188
1189 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1190
1191         PR middle-end/36858
1192         * function.c (locate_and_pad_parm): Cap boundary earlier.
1193
1194 2008-07-17  Julian Brown  <julian@codesourcery.com>
1195
1196         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1197         no-op for targets which don't use DLLs.
1198
1199 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1200
1201         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1202         that nodes are relevant by examining the node->analyzed flag.
1203         (ipcp_init_stage): Check which nodes are relevant, assert that the
1204         relevant ones are also required.
1205         (ipcp_propagate_stage): Check on the side arrays are properly
1206         allocated.
1207         (ipcp_print_all_jump_functions): Make sure not to touch any node
1208         that is not analyzed or an edge that does not have a corresponding
1209         entry in the on-the-side vectors.
1210         (ipcp_function_scale_print): Likewise.
1211         (ipcp_update_callgraph): Check that the node is relevant.
1212         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1213         an info for every node and edge.
1214         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1215         (ipa_print_all_tree_maps): Likewise and a new variable info.
1216         (ipa_print_all_params_modified): Likewise.
1217         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1218
1219 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1220
1221         PR target/25343
1222         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1223
1224 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1225
1226         PR rtl-optimization/36753
1227         * fwprop.c (use_killed_between): Don't shortcut
1228         single-definition global registers.
1229
1230 2008-07-16  Jan Hubicka  <jh@suse.cz>
1231
1232         * cgraph.h (varpool_empty_needed_queue): Declare.
1233         * cgraphunit.c (output_in_order): Mark all variables as needed;
1234         empty the queue.
1235         * varpool.c (varpool_assemble_node): Update debug queue.
1236         (varpool_assemble_pending_decls): Don't do it here.
1237         (varpool_empty_needed_queue):  New function.
1238
1239 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1240
1241         * recog.c (peephole2_optimize): Fix formatting.
1242
1243 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1244
1245         * c-pch.c (get_ident): Avoid C++ keywords.
1246         * combine-stack-adj.c (single_set_for_csa): Likewise.
1247         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1248         output_asm_insn): Likewise.
1249         * reload.c (push_secondary_reload, find_reusable_reload,
1250         push_reload, combine_reloads, find_reloads,
1251         debug_reload_to_stream): Likewise.
1252         * reload.h (struct reload): Likewise.
1253         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1254         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1255         emit_output_reload_insns): Likewise.
1256         * targhooks.c (default_secondary_reload): Likewise.
1257         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1258
1259 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1260
1261         * recog.c (validate_change_1, validate_change,
1262         validate_unshare_change, validate_replace_rtx_1, struct
1263         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1264         keywords.
1265         * reload.c (push_secondary_reload, secondary_reload_class,
1266         scratch_reload_class, find_valid_class, find_reusable_reload,
1267         push_reload, find_dummy_reload, find_reloads_address_1,
1268         find_reloads_address_part, find_equiv_reg): Likewise.
1269         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1270         choose_reload_regs): Likewise.
1271         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1272         Likewise.
1273         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1274         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1275         * sched-rgn.c (concat_INSN_LIST): Likewise.
1276         * stor-layout.c (mode_for_size, mode_for_size_tree,
1277         smallest_mode_for_size): Likewise.
1278
1279 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1280
1281         * cfg.c (dump_reg_info): Avoid C++ keywords.
1282         * dwarf2asm.c (dw2_force_const_mem,
1283         dw2_asm_output_encoded_addr_rtx): Likewise.
1284         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1285         * expmed.c (expand_shift): Likewise.
1286         * global.c (find_reg): Likewise.
1287         * graph.c (draw_edge): Likewise.
1288         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1289         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1290         widen_clz, widen_bswap, expand_parity, expand_unop,
1291         emit_cmp_and_jump_insn_1): Likewise.
1292         * postreload.c (reload_cse_simplify_operands): Likewise.
1293         * ra.h (add_neighbor): Likewise.
1294         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1295         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1296         record_reg_classes, copy_cost, record_address_regs,
1297         invalid_mode_change_p): Likewise.
1298         * regrename.c (regrename_optimize, scan_rtx_reg,
1299         dump_def_use_chain, find_oldest_value_reg,
1300         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1301
1302 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1303
1304         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1305         MASK_POWERPC64 for power4 in previous commit.
1306
1307 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1308
1309         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1310         instead of bare conversion to cast const-ness away.
1311
1312 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1313
1314         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1315         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1316         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1317         (TARGET_FUNCTION_VALUE): Define.
1318
1319 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1320
1321         * config/rs6000/rs6000.c (processor_target_table): Add
1322         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1323
1324 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1325
1326         PR target/36827
1327         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1328         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1329         m32c_legitimize_reload_address.
1330
1331 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1332
1333        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1334        DECL_IN_SYSTEM_HEADER in sync.
1335
1336 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1337
1338         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1339         * tree-ssa-pre.c (pre_expr_eq): Ditto
1340         (get_constant_for_value_id): Take a type as an argument.
1341         (fully_constant_expression): Pass in type.
1342         (find_or_generate_expression): Short circuit constant case.
1343         (create_expression_by_pieces): Remove special casing of
1344         pointer_plus.
1345         (do_regular_insertion): Short circuit constant case.
1346         (do_partial_partial_insertion): Ditto.
1347
1348 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1349
1350         PR target/36782
1351         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1352
1353 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1354         
1355         * config/xtensa/libgcc-xtensa.ver: New file.
1356         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1357         
1358 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1359
1360         * df-problems.c (df_set_note): Avoid C++ keywords.
1361         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1362         * dse.c (record_store, remove_useless_values): Likewise.
1363         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1364         gen_reg_rtx_offset, operand_subword, change_address_1,
1365         change_address, adjust_address_1, offset_address,
1366         widen_memory_access, emit_copy_of_insn_after): Likewise.
1367         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1368         * fwprop.c (should_replace_address, propagate_rtx_1,
1369         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1370         Likewise.
1371         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1372         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1373         * lcm.c (compute_insert_delete, pre_edge_lcm,
1374         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1375         * lower-subreg.c (resolve_reg_notes): Likewise.
1376         * mode-switching.c (optimize_mode_switching): Likewise.
1377
1378 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1379
1380         * bt-load.c (add_btr_def, migrate_btr_def,
1381         branch_target_load_optimize): Avoid C++ keywords.
1382         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1383         Likewise.
1384         * combine.c (subst, simplify_set, make_extraction,
1385         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1386         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1387         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1388
1389 2008-07-15  Richard Guenther  <rguenther@suse.de>
1390
1391         PR middle-end/36369
1392         * c-common.c (strict_aliasing_warning): Do not warn for
1393         TYPE_REF_CAN_ALIAS_ALL pointers.
1394         (c_common_get_alias_set): may_alias types are not special.
1395         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1396         attribute and set can_ref_all accordingly.
1397         (build_reference_type_for_mode): Likewise.
1398         * doc/extend.texi (may_alias): Clarify.
1399
1400 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1401
1402         PR target/36780
1403         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1404         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1405
1406 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1407
1408         PR target/31568
1409         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1410         gcc_assert, instead call output_operand_lossage.
1411
1412 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1413
1414         * builtins.c (std_canonical_va_list): Treat structure based
1415         va_list types.
1416
1417 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1418
1419         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1420
1421 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1422
1423         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1424         is set.
1425
1426 2008-07-14  Jan Hubicka  <jh@suse.cz>
1427
1428         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1429         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1430         fix predicates and constraints.
1431         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1432         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1433
1434 2008-07-14  Doug Kwan  <dougkwan@google.com>
1435
1436         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1437         additional option file arm/eabi.opt.
1438         * config/arm/eabi.h (File): New configuration file for EABI targets.
1439         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1440         SUBSUBTARGET_EXTRA_SPECS.
1441         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1442         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1443         from STARTFILE_SPEC so that it can be referenced in an override.
1444         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1445         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1446         can be referenced in an override.
1447         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1448         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1449         so that it can be referenced in an override.
1450         (LINK_SPEC): Use BPABI_LINK_SPEC.
1451         * config/arm/eabi.opt (File): New.
1452
1453 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1454
1455         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1456         (FIXED_VALUE_H): New variable.
1457         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1458         input.h, fixed-value.h.
1459         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1460         (BASIC_BLOCK_H): Use $(BITMAP_H).
1461         (FUNCTION_H): Add varray.h.
1462         (IPA_REFERENCE_H): Use $(BITMAP_H).
1463         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1464         (DF_H): Use $(BITMAP_H).
1465         (GGC_H): Add statistics.h.
1466         (INSN_ADDR_H): New.
1467         (INSN_ATTR_H): Use it.
1468         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1469         (INPUT_H): New.
1470         (SYMTAB_H): Add $(OBSTACK_H).
1471         (CPP_INTERNAL_H): New.
1472         (TREE_DUMP_H): Add tree-pass.h.
1473         (TREE_FLOW_H): Use $(BITMAP_H)
1474         (PRETTY_PRINT_H): Use $(INPUT_H).
1475         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1476         (GSTAB_H): New.
1477         (BITMAP_H): New.
1478         (many object files): Fix lots of header dependencies throughout.
1479
1480 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1481
1482         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1483         New macros.
1484         (s-gtyp-input): Use them to write tmp-gi.list.
1485         (echo_to_gi.list): Remove.
1486
1487 2008-07-14  Richard Guenther  <rguenther@suse.de>
1488
1489         * tree-ssa-sccvn.c (pre_info): Remove.
1490         (switch_to_PRE_table): Likewise.
1491         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1492         (set_hashtable_value_ids): Do not create value-ids for the
1493         optimistic tables.
1494         (run_scc_vn): Remove double test.  Remove bogus special-case
1495         in value-number printing.
1496         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1497         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1498         SSA_NAME_VALUE.
1499         * tree-flow-inline.h (get_value_handle): Remove.
1500         * tree-flow.h (get_value_handle): Remove.
1501
1502 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1503
1504         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1505         in which we generate arithmetics is not a subrange.
1506
1507 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1508
1509         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1510
1511 2008-07-14  Richard Guenther  <rguenther@suse.de>
1512
1513         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1514
1515 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1516
1517         PR target/36745
1518         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1519         reload for symbol refs moved to r0 with -fPIC.
1520         (legitimize_pic_address): Use the target register as temporary
1521         reg if possible.
1522         (emit_symbolic_move): Adjust comment.
1523         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1524         New expanders.
1525
1526 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1527
1528         * c-common.h (C_CPP_HASHNODE): New macro.
1529         * coretypes.h (struct cpp_token): Forward declare.
1530         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1531         the context-sensitive keyword method.
1532         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1533         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1534         expand_bool_pixel): New.
1535         (altivec_categorize_keyword): New function.
1536         (init_vector_keywords): New function.
1537         (rs6000_macro_to_expand): Likewise.
1538         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1539         compiling an ISO C dialect.
1540
1541 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1542
1543         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1544         (create_expression_by_pieces): Fix typo.
1545         (do_regular_insertion): Use debug counter here too.
1546
1547 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1548
1549         PR target/35492.
1550         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1551         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1552         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1553         implement Kp matching power-of-two.
1554         (CONSTRAINT_LEN): Define to match.
1555         * config/cris/cris.md: Replace all use of constraint K with Kc.
1556         ("*btst*): Use Kp for operand 0 of last alternative.
1557
1558 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1559
1560         PR testsuite/36440
1561         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1562         and quad formats.
1563
1564 2008-07-13  Jan Hubicka  <jh@suse.cz>
1565
1566         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1567         to be mangled too.
1568
1569 2008-07-13  Richard Guenther  <rguenther@suse.de>
1570
1571         PR middle-end/36811
1572         * langhooks.c (lhd_print_error_function): Deal with recursive
1573         BLOCK trees.
1574
1575 2008-07-12  Jan Hubicka  <jh@suse.cz>
1576
1577         * cgraph.c (assembler_name_hash): New static var.
1578         (hash_node_by_assembler_name, eq_assembler_name): New.
1579         (cgraph_node_for_asm): Use hashtable.
1580         (cgraph_remove_node): Maintain hashtable.
1581         (change_decl_assembler_name): Sanity check that names are not changing
1582         after aliasing was processed.
1583         * cgraph.h (varpoon_node): Add next GGC marker.
1584         * tree.c (decl_assembler_name_equal): Constify.
1585         (decl_assembler_name_hash): New.
1586         * tree.h (decl_assembler_name_equal): Constify.
1587         (decl_assembler_name_hash): Update.
1588
1589 2008-07-12  David Daney  <ddaney@avtrex.com>
1590
1591         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1592         sb1 and r5000 cpus.
1593
1594 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1595
1596         * doc/md.texi: Document the MIPS "v" constraint.
1597         * config/mips/mips.h (reg_class): Revert last change.
1598         (REG_CLASS_NAMES): Likewise.
1599         (REG_CLASS_CONTENTS): Likewise.
1600         * config/mips/mips.c (mips_regno_to_class): Likewise.
1601         * config/mips/constraints.md (v): Likewise, but add documentation.
1602         Add a comment to say that this constraint should not be used in
1603         gcc code.
1604
1605 2008-07-11  DJ Delorie  <dj@redhat.com>
1606
1607         * config/h8300/h8300.md (length): Fix branch offset limit.
1608
1609 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
1610
1611         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1612         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1613         (avr_hard_regno_scratch_ok): New function.
1614         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1615         * config/avr/avr.md (all peepholes that request a scratch register):
1616         Remove avr_peep2_scratch_safe use.
1617
1618 2008-07-11  Tom Tromey  <tromey@redhat.com>
1619             Ian Lance Taylor  <iant@google.com>
1620
1621         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1622         (struct c_common_resword): Define.
1623         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1624         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1625         (c_common_reswords, num_c_common_reswords): Declare.
1626         * c-common.c (c_common_reswords): New global const array.
1627         (num_c_common_reswords): New const int.
1628         * c-parser.c (struct resword, reswords): Don't define.
1629         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1630         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1631         than reswords.  If warning about C++ keywords, give them a special
1632         RID code.
1633         (c_lex_one_token): Warn about C++ keywords.  Call
1634         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1635         (c_parser_external_declaration): Look for RID_xxx rather than
1636         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1637         (c_parser_statement_after_labels): Likewise.
1638         (c_parser_objc_class_instance_variables): Likewise.
1639         (c_parser_objc_class_declaration): Likewise.
1640         (c_parser_objc_try_catch_statement): Likewise.
1641         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1642         (declspecs_add_type): Likewise.
1643
1644 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1645
1646         * ggc-page.c (alloc_page):
1647         Substituting xmalloc, xcalloc with
1648         XNEWVEC and XCNEWVAR macros which add the
1649         needed casts.
1650
1651 2008-07-11  Richard Guenther  <rguenther@suse.de>
1652
1653         PR tree-optimization/36765
1654         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1655         aliases from HEAP vars to SMTs.
1656
1657 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1658
1659         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1660         * configure.ac (loose_warn): Move -Wc++-compat from here...
1661         (strict_warn): ...to here.
1662         * configure: Regenerate.
1663
1664 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
1665
1666         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1667         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1668         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1669         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1670         excluding more specific h8300-*-* and sh-*-* targets.
1671
1672 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
1673
1674         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1675         (eliminate): Ditto.
1676         (execute_pre): Call loop_optimizer_finalize in early exit.
1677
1678 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
1679
1680         PR middle-end/36790
1681         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1682         uids in the bitmap, not just VAR_DECL uids.
1683
1684         PR rtl-optimization/36419
1685         * combine-stack-adj.c (adjust_frame_related_expr): New function.
1686         (combine_stack_adjustments_for_block): Call it if needed.  Delete
1687         correct insn.
1688         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1689         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1690         prologue sp adjustment.
1691
1692 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
1693
1694         PR other/28322
1695         * opts.c (print_ignored_options): Report postponed diagnostics for
1696         unknown -Wno-* options as warnings, not errors.
1697         (postpone_unknown_option_error): Renamed to...
1698         (postpone_unknown_option_warning): ... this.
1699
1700 2008-07-09  Doug Kwan  <dougkwan@google.com>
1701
1702         Revert:
1703         2008-07-08  Doug Kwan  <dougkwan@google.com>
1704
1705         * config/arm/arm.opt (mandroid): New option.
1706         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1707         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1708         (CC1_SPEC): Same.
1709         (CC1PLUS_SPEC): Same.
1710         (LIB_SPEC): Same.
1711         (STARTFILE_SPEC): Same.
1712         (ENDFILE_SPEC): Same.
1713         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1714         used.
1715
1716 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
1717
1718         PR target/35802
1719         * config/mips/mips.h (reg_class): Remove V1_REG.
1720         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1721         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1722         instead of V1_REGS.
1723         (mips_get_tp): New function.
1724         (mips_legitimize_tls_address): Use it.
1725         * config/mips/constraints.md (v): Delete.
1726         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1727         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1728         After reload, split into a move and ...
1729         (*tls_get_tp_<mode>_split): ...this new instruction.
1730
1731 2008-07-09  David Daney  <ddaney@avtrex.com>
1732
1733         * config/mips/driver-native.c: Include coretypes.h and tm.h.
1734
1735 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
1736
1737         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1738         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1739         Add c argument.
1740         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1741         htab_delete should be called.  Don't free c.
1742         (lookup_tmp_var): Create temp_htab lazily.
1743         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1744         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1745         callers.
1746         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1747         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1748         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
1749         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1750         * tree-sra.c (generate_element_init): Likewise.
1751         * tree-mudflap.c (execute_mudflap_function_ops,
1752         execute_mudflap_function_decls): Likewise.
1753         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1754         * tree-gimple.h (struct gimplify_ctx): New type.
1755         (push_gimplify_context): Adjust prototype.
1756
1757 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
1758
1759         * tree-ssa-pre.c (phi_translate_1): Update placement of
1760         add_to_value calls.
1761
1762 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
1763
1764         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1765         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1766         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1767         * targhooks.c (default_hard_regno_scratch_ok): New function.
1768         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1769         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1770         * recog.c:  Include "target.h".
1771         (peep2_find_free_register): Add check for global regs. Add target
1772         specific check.
1773         * Makefile.in (recog.o): Depend on target.h.
1774
1775 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1776
1777         * config/sh/sh.c (sh_canonical_va_list_type): New.
1778         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1779
1780 2008-07-09  Raksit Ashok <raksit@google.com>
1781
1782         * doc/invoke.texi (Option Summary): Mention new option
1783         -Wdisallowed-function-list=...
1784         (Warning Options): Document -Wdisallowed-function-list=...
1785         * common.opt (Wdisallowed-function-list=): New flag.
1786         * flags.h (warn_disallowed_functions): External definition of new
1787         boolean warning flag.
1788         (warn_if_disallowed_function_p): Declare new function.
1789         * opts.c (warning_disallowed_functions): New static variable.
1790         (warn_disallowed_functions): New boolean warning flag.
1791         (warn_if_disallowed_function_p): New function.
1792         (add_comma_separated_to_vector): Rename
1793         add_instrument_functions_exclude_list to this.
1794         (common_handle_option): Handle new option. Rename calls to
1795         add_instrument_functions_exclude_list into calls to
1796         add_comma_separated_to_vector.
1797         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1798         based on flag warn_disallowed_functions.
1799
1800 2008-07-09  Christian Bruel  <christian.bruel@st.com>
1801
1802         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1803          instead of get_attr_length.
1804
1805 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1806
1807         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1808         keywords.
1809         * genemit.c (gen_insn): Likewise.
1810         * gengtype.c (note_def_vec): Likewise.
1811         * gengtype.h (note_def_vec): Likewise.
1812         * genoutput.c (struct data, output_insn_data, process_template,
1813         gen_expand, gen_split, note_constraint): Likewise.
1814         * genrecog.c (new_decision, add_to_sequence, factor_tests,
1815         make_insn_sequence): Likewise.
1816         * gensupport.c (record_insn_name): Likewise.
1817
1818 2008-07-08  Doug Kwan  <dougkwan@google.com>
1819
1820         * config/arm/arm.opt (mandroid): New option.
1821         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1822         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1823         (CC1_SPEC): Same.
1824         (CC1PLUS_SPEC): Same.
1825         (LIB_SPEC): Same.
1826         (STARTFILE_SPEC): Same.
1827         (ENDFILE_SPEC): Same.
1828         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1829         used.
1830
1831 2008-07-08  Raksit Ashok  <raksit@google.com>
1832
1833         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1834         (set_storage_via_setmem): Fix expected_align parameter.
1835         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1836         missing from the list.
1837         * doc/md.texi (movmem): Explicitly state that expected alignment is
1838         to be expressed in bytes.
1839         (setmem): Explicitly state that expected alignment is to be expressed
1840         in bytes.
1841
1842 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
1843
1844         * reload.c (find_reloads_subreg_address): Do not require validity
1845         of address in original mode before reloading address.
1846
1847 2008-07-07  Tianwei Sheng  <tianweis@google.com>
1848
1849         * df-core.c (df_remove_problem): Adjust the access to avoid out of
1850         bounds array access.
1851
1852 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
1853
1854         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1855
1856 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
1857         
1858         Fix PR tree-optimization/23455
1859         Fix PR tree-optimization/35286
1860         Fix PR tree-optimization/35287
1861         * Makefile.in (OBJS-common): Remove tree-vn.o.
1862         (tree-vn.o): Remove.
1863         * dbgcnt.def: Add treepre_insert debug counter.
1864         * gcc/tree-flow.h (add_to_value): Updated for other changes.
1865         (debug_value_expressions): Ditto.
1866         (print_value_expressions): Ditto.
1867         * tree-pretty-print.c (dump_generic_node): Updated for
1868         VALUE_HANDLE removal.
1869         * tree-ssa-dom.c (record_equality): Ditto.
1870         (cprop_operand): Ditto.
1871         (lookup_avail_expr): Ditto.
1872         * tree-ssa-threadedge.c
1873         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1874         (simplify_control_stmt_condition): Ditto.
1875         * tree.c (tree_code_size): Ditto.
1876         (tree_node_structure): Ditto.
1877         (iterative_hash_expr): Ditto.
1878         * tree.def: Ditto.
1879         * tree.h (VALUE_HANDLE_ID): Ditto.
1880         (VALUE_HANDLE_EXPR_SET): Ditto.
1881         (struct tree_value_handle): Ditto.
1882         (union tree_node): Ditto.
1883         * treestruct.def: Ditto.
1884         * tree-vn.c: Removed.
1885         * tree-ssa-pre.c: Rewritten entirely.
1886         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1887         (constant_value_ids): Ditto.
1888         (vn_nary_op_t): Moved to header.
1889         (vn_phi_t): Ditto.
1890         (vn_reference_op_t): Ditto
1891         (vn_reference_t): Ditto.
1892         (next_value_id): New variable.
1893         (VN_INFO): Add an assert.
1894         (vn_constant_eq): New function.
1895         (vn_constant_hash): Ditto.
1896         (get_or_alloc_constant_value_id): Ditto.
1897         (value_id_constant_p): Ditto.
1898         (vn_reference_compute_hash): De-staticify.
1899         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1900         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
1901         (valueize_refs): Update opcode if it changes from ssa name to constant.
1902         (vn_reference_lookup_1): Add new argument.
1903         (vn_reference_lookup):  Ditto.
1904         (vn_reference_lookup_pieces): New function.
1905         (vn_reference_insert): Add return type. Modify to deal with value ids.
1906         (vn_reference_insert_pieces):  New function.
1907         (vn_nary_op_compute_hash): De-staticify.
1908         (vn_nary_op_eq): Ditto.
1909         (vn_nary_op_lookup_pieces): New function.
1910         (vn_nary_op_lookup): Add new argument.  
1911         (vn_nary_op_insert_pieces): New function.
1912         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1913         (vn_phi_insert): Ditto.
1914         (visit_unary_op): Update for callee changes.
1915         (visit_binary_op): Ditto.
1916         (visit_reference_op_load): Ditto.
1917         (visit_reference_op_store): Ditto.
1918         (init_scc_vn): Init next_value_id, constant_to_value_id and
1919         constant_value_ids. 
1920         (free_scc_vn): Free them.
1921         (set_hashtable_value_ids): New function.
1922         (run_scc_vn): Use it.
1923         (get_max_value_id): New function.
1924         (get_next_value_id): Ditto.
1925         (expressions_equal_p): Moved from tree-vn.c
1926         (sort_vuses): Ditto.
1927         (sort_vuses_heap): Ditto.
1928         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1929         above).
1930         * tree.c (iterative_hash_hashval_t): Made non-static
1931         * tree.h (iterative_hash_hashval_t): Declare it.
1932         
1933 2008-07-08  Martin Jambor  <mjambor@suse.cz>
1934
1935         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1936         instead of ipa_create_node_params.
1937         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1938         ipa_check_create_edge_args, free them with
1939         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1940
1941         * ipa-prop.c: Include flags.h and tree-inline.h.
1942         (ipa_node_params_vector): New variable.
1943         (ipa_edge_args_vector): New variable.
1944         (edge_removal_hook_holder): New variable.
1945         (node_removal_hook_holder): New variable.
1946         (edge_duplication_hook_holder): New variable.
1947         (node_duplication_hook_holder): New variable.
1948         (ipa_detect_param_modifications): Check for presence of modified flags.
1949         (ipa_compute_jump_functions): Check for presence of jump functions.
1950         (ipa_free_edge_args_substructures): New function.
1951         (ipa_create_node_params): Removed.
1952         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1953         (ipa_free_node_params_substructures): New function.
1954         (ipa_free_all_node_params): Changed to deallocate the on-the-side
1955         vector.
1956         (ipa_edge_removal_hook): New function.
1957         (ipa_node_removal_hook): New function.
1958         (duplicate_array): New function.
1959         (ipa_edge_duplication_hook): New function.
1960         (ipa_node_duplication_hook): New function.
1961         (ipa_register_cgraph_hooks): New function.
1962         (ipa_unregister_cgraph_hooks): New function.
1963         (free_all_ipa_structures_after_ipa_cp): New function.
1964         
1965         * ipa-prop.h: Include vec.h.
1966         (ipa_node_params_t): New typedef with vector types for it.
1967         (ipa_edge_args_t):  New typedef with vector types for it.
1968         (IPA_NODE_REF): Changed to access an on-the-side vector.
1969         (IPA_EDGE_REF): Changed to access an on-the-side vector.
1970         (ipa_check_create_node_params): New function.
1971         (ipa_check_create_edge_args): New function.
1972         
1973         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
1974         all users.
1975         
1976 2008-07-07  Tom Tromey  <tromey@redhat.com>
1977
1978         * configure, config.in: Rebuilt.
1979         * configure.ac: Don't check for scandir or alphasort.
1980
1981 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
1982
1983         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1984         types immediately after creating them.
1985
1986 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
1987
1988         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1989
1990 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
1991
1992         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1993         dump_constraint_graph.
1994         (dump_constraint_edge): New function.
1995         (dump_constraint_graph): New function.
1996         (debug_constraint_graph): New function.
1997         (dump_constraint): Removed useless comparison.
1998         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1999         (dump_constraint_graph): Declare.
2000         (debug_constraint_graph): Declare.
2001         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2002
2003 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2004
2005         * config/i386/i386.c (is_va_list_char_pointer): New.
2006         (ix86_va_start): Replace compare with ms_va_list_type_node
2007         by is_va_list_char_pointer.
2008         (ix86_gimplify_va_arg): Likewise.
2009
2010 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2011
2012         * cgraph.c (cgraph_edge_max_uid): New variable.
2013         (struct cgraph_edge_hook_list): New type.
2014         (struct cgraph_node_hook_list): New type.
2015         (struct cgraph_2edge_hook_list): New type.
2016         (struct cgraph_2node_hook_list): New type.
2017         (first_cgraph_edge_removal_hook): New variable.
2018         (first_cgraph_node_removal_hook): New variable.
2019         (first_cgraph_edge_duplicated_hook): New variable.
2020         (first_cgraph_node_duplicated_hook): New variable.
2021         (cgraph_add_edge_removal_hook): New function.
2022         (cgraph_remove_edge_removal_hook): New function.
2023         (cgraph_call_edge_removal_hooks):  New function.
2024         (cgraph_add_node_removal_hook):  New function.
2025         (cgraph_remove_node_removal_hook):  New function.
2026         (cgraph_call_node_removal_hooks):  New function.
2027         (cgraph_add_edge_duplication_hook):  New function.
2028         (cgraph_remove_edge_duplication_hook):  New function.
2029         (cgraph_call_edge_duplication_hooks):  New function.
2030         (cgraph_add_node_duplication_hook):  New function.
2031         (cgraph_remove_node_duplication_hook):  New function.
2032         (cgraph_call_node_duplication_hooks):  New function.
2033         (cgraph_create_edge): Assign to edge uid.
2034         (cgraph_remove_edge): Call edge removal hooks.
2035         (cgraph_node_remove_callees): Call edge removal hooks.
2036         (cgraph_node_remove_callers): Call edge removal hooks.
2037         (cgraph_remove_node): Call node removal hooks.
2038         (cgraph_clone_edge): Call edge duplication hooks.
2039         (cgraph_clone_node): Call node duplication hooks.
2040
2041         * cgraph.h (cgraph_edge): New field uid.
2042         (cgraph_edge_hook): New type.
2043         (cgraph_node_hook): New type.
2044         (cgraph_2edge_hook): New type.
2045         (cgraph_2node_hook): New type.
2046
2047 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2048
2049         * config.in: Regenerate.
2050
2051 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2052
2053         * gcc.c (print_sysroot): New.
2054         (option_map, display_help, process_command): Handle the
2055         -print-sysroot option.
2056         (main): Print the sysroot if requested.
2057         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2058         
2059 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2060
2061         PR target/34780
2062         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2063
2064 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2065
2066         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2067         (assign_parm_setup_block_p): Also check mode of entry_parm.
2068
2069 2008-07-07  Richard Guenther  <rguenther@suse.de>
2070
2071         * tree-ssa-structalias.h (set_used_smts): Remove.
2072         * tree-ssa-structalias.c (used_smts): Likewise.
2073         (set_used_smts): Likewise.
2074         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2075         call to set_used_smts.
2076
2077 2008-07-07  Richard Guenther  <rguenther@suse.de>
2078
2079         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2080         (new_var_info): Set it to false.
2081         (solution_set_add): Correctly handle pointers outside a var and
2082         inside a field.
2083         (type_safe): Treat variables with is_full_var properly.
2084         (do_sd_constraint): Likewise.
2085         (do_ds_constraint): Likewise.
2086         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2087         (get_constraint_for_ptr_offset): New function.
2088         (get_constraint_for_component_ref): For addresses at least include
2089         the last field of the variable.  Handle is_full_vars properly.
2090         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2091         (handle_ptr_arith): Remove.
2092         (find_func_aliases): Simplify assignment handling.
2093         (create_function_info_for): For parameter and result varinfos set
2094         is_full_var flag.
2095         (create_variable_info_for): Set is_full_var flag whenever we
2096         just created a single varinfo for a decl.
2097         (init_alias_vars): Initialize use_field_sensitive from
2098         max-fields-for-field-sensitive parameter.
2099
2100 2008-07-07  Richard Guenther  <rguenther@suse.de>
2101
2102         PR tree-optimization/36713
2103         * tree-flow-inline.h (is_call_used): New function.
2104         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2105         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2106         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2107
2108 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2109
2110         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2111         
2112 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2113
2114         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2115
2116 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2117             Nathan Sidwell  <nathan@codesourcery.com>
2118
2119         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2120         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2121         tmake_file.
2122         * config/m68k/t-linux: New.
2123         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2124         default.
2125
2126 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2127
2128         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2129         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2130         by MAC/EMAC.
2131
2132 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2133
2134         * gcc.c (execute): Fix -Wc++-compat warning.
2135
2136 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2137
2138         PR target/36720
2139         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2140         constant for little endian.
2141
2142 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2143
2144         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2145         mips_base_mips16 instead of TARGET_MIPS16.
2146         (mips_base_mips16): Declare.
2147         * config/mips/mips.c (mips_base_mips16): Make global.
2148         (was_mips16_p): Remove GTY marker.
2149         (was_mips16_pch_p): New variable.
2150         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2151         (mips_override_options): Force to non-MIPS16 mode initially.
2152         Do not complain about MIPS16 PIC incompatibilities here.
2153         Only allow -mgpopt if -mexplicit-relocs is in force for
2154         non-MIPS16 code.
2155
2156 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2157
2158         * configure.ac: Check for caddr_t, define to char * if not defined.
2159         * configure: Regenerate.
2160         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2161         (mmap_gt_pch_use_address): Likewise.
2162         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2163
2164 2008-07-06  Richard Guenther  <rguenther@suse.de>
2165
2166         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2167         (new_var_info): Deal with it.
2168         (solution_set_add): Likewise.
2169         (bitpos_of_field): Make signed, fix.
2170         (struct fieldoff): Remove type and decl fields.  Make size field
2171         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2172         flags.
2173         (fieldoff_compare): Deal with it.
2174         (push_fields_onto_fieldstack): Remove has_union argument, glob
2175         adjacent non-pointer fields together.
2176         (create_function_info_for): Do not set has_union.
2177         (create_variable_info_for): Simplify.
2178
2179 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2180
2181         * config.gcc (extra_headers): Add cross-stdarg.h for target
2182         x86_64-*-* and i?86-*-*.
2183         * config/i386/cross-stdarg.h: New.
2184         * builtins.c (std_fn_abi_va_list): New.
2185         (std_canonical_va_list_type): New.
2186         (stabilize_va_list): Replace va_list_type_node use by
2187         mtarget.canonical_va_list_type.
2188         (gimplify_va_arg_expr): Likewise.
2189         (expand_builtin_va_copy): Replace va_list_type_node use by
2190         mtarget.fn_abi_va_list.
2191         * tree-sra.c (is_va_list_type): New helper.
2192         (decl_can_be_decomposed_p): Replace
2193         va_list_type_node use by is_va_list_type.
2194         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2195         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2196         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2197         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2198         (ix86_enum_va_list): New.
2199         * config/i386/i386.c (sysv_va_list_type_node): New.
2200         (ms_va_list_type_node): New.
2201         (ix86_function_type_abi): Remove sorry.
2202         (ix86_build_builtin_va_list_abi): New.
2203         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2204         for 64-bit targets.
2205         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2206         (ix86_init_builtins_va_builtins_abi): New.
2207         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2208         for 64-bit targets.
2209         (ix86_handle_abi_attribute): New.
2210         (attribute_spec): Add sysv_abi and ms_abi.
2211         (ix86_fn_abi_va_list): New.
2212         (ix86_canonical_va_list_type): New.
2213         (ix86_enum_va_list): New.
2214         (TARGET_FN_ABI_VA_LIST): New.
2215         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2216         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2217         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2218         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2219         (TARGET_ENUM_VA_LIST): New.
2220         * expr.h (std_fn_abi_va_list): New.
2221         (std_canonical_va_list_type): New.
2222         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2223         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2224         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2225         TARGET_CANONICAL_VA_LIST_TYPE.
2226         * target.h (struct gcc_target): Add fn_abi_va_list hook
2227         and canonical_va_list_type hook.
2228
2229 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2230
2231         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2232         integral and pointer types.
2233
2234 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2235
2236         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2237         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2238
2239 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2240
2241         PR target/36684
2242         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2243
2244 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2245
2246         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2247         build_gimple_modify_stmt.
2248         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2249         gimple operand.  Use fold_build* instead of build*.
2250
2251 2008-07-04  Richard Guenther  <rguenther@suse.de>
2252
2253         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2254         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2255         properly to compute the reachability set if we do field-sensitive PTA.
2256         * invoke.texi (max-fields-for-field-sensitive): Document default.
2257         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2258         100 for optimize >= 2.
2259
2260 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2261
2262         * ggc-zone.c (lookup_page_table_if_allocated,
2263         set_page_table_entry, zone_find_object_size, alloc_small_page,
2264         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2265         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2266         -Wc++-compat and/or -Wcast-qual warnings.
2267
2268 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2269
2270         PR target/36634
2271         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2272         pic_offset_table_rtx to be marked as used here.
2273         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2274         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2275         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2276         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2277         !TARGET_SECURE_PLT.
2278
2279 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2280
2281         * alloc-pool.c (hash_descriptor, eq_descriptor,
2282         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2283         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2284         Likewise.
2285         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2286         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2287         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2288         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2289         Likewise.
2290
2291 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2292
2293         * tree-flow.h (loop_only_exit_p): Declare.
2294         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2295         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2296         the number of iterations if it is constant.  Otherwise, if this is the
2297         only possible exit of the loop, use the conservative estimate on the
2298         number of iterations of the entire loop if available.
2299
2300 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2301
2302         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2303         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2304         Add synchronization functions.
2305         * config/sync.c: New file.
2306         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2307         (LIBGCC_SYNC_CFLAGS): Likewise.
2308
2309 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2310
2311         PR target/36710
2312         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2313         (*pushtf_sse): New insn pattern.
2314         (pushtf splitters): New splitters.
2315
2316 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2317
2318         PR middle-end/35736
2319         * predict.c (build_predict_expr): Use void_type_node for the tree
2320         type, instead of NULL_TREE.
2321
2322 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2323
2324         * config/i386/i386.c (contains_aligned_value_p): Return true
2325         for TCmode.
2326         (ix86_data_alignment): Align TCmode to 128bits.
2327         (ix86_local_alignment): Likewise.
2328
2329 2008-07-03  Andrew Haley  <aph@redhat.com>
2330
2331         PR bootstrap/33304
2332         * vec.h (VEC_TA): New.
2333         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2334         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2335         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2336         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2337         (C_COMMON_FIXED_TYPES): Remove first arg.
2338         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2339         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2340         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2341         not to use empty macro arguments.
2342
2343 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2344
2345         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2346         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2347         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2348         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2349         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2350         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2351         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2352         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2353         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2354         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2355         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2356         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2357         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2358         config/rs6000/e500crtres64gpr.asm,
2359         config/rs6000/e500crtres64gprctr.asm,
2360         config/rs6000/e500crtrest32gpr.asm,
2361         config/rs6000/e500crtrest64gpr.asm,
2362         config/rs6000/e500crtresx32gpr.asm,
2363         config/rs6000/e500crtresx64gpr.asm,
2364         config/rs6000/e500crtsav32gpr.asm,
2365         config/rs6000/e500crtsav64gpr.asm,
2366         config/rs6000/e500crtsav64gprctr.asm,
2367         config/rs6000/e500crtsavg32gpr.asm,
2368         config/rs6000/e500crtsavg64gpr.asm,
2369         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2370         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2371         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2372         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2373         config/sparc/sol2-cn.asm: Remove .file directives.
2374
2375 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2376
2377         * resource.c (mark_referenced_resources): Look inside
2378         UNSPEC_VOLATILEs and ASM_INPUTs.
2379
2380 2008-07-02  Ian Lance Taylor  <iant@google.com>
2381
2382         * rtlanal.c (add_reg_note): New function.
2383         * rtl.h (add_reg_note): Declare.
2384         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2385         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2386         * builtins.c (expand_builtin_longjmp): Likewise.
2387         (expand_builtin_nonlocal_goto): Likewise.
2388         * calls.c (emit_call_1, expand_call): Likewise.
2389         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2390         * cfglayout.c (fixup_reorder_chain): Likewise.
2391         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2392         (commit_one_edge_insertion): Likewise.
2393         * combine.c (move_deaths, distribute_notes): Likewise.
2394         * df-problems.c (df_set_note): Likewise.
2395         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2396         (set_unique_reg_note): Likewise.
2397         (emit_copy_of_insn_after): Likewise.
2398         * expr.c (expand_expr_real): Likewise.
2399         * gcse.c (add_label_notes): Likewise.
2400         * haifa-sched.c (create_check_block_twin): Likewise.
2401         * jump.c (mark_jump_label_1): Likewise.
2402         * loop-doloop.c (add_test, doloop_modify): Likewise.
2403         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2404         * lower-subreg.c (move_eh_region_note): Likewise.
2405         * optabs.c (emit_libcall_block): Likewise.
2406         * predict.c (predict_insn): Likewise.
2407         (combine_predictions_for_insn): Likewise.
2408         * recog.c (peephole2_optimize): Likewise.
2409         * regmove.c (try_auto_increment): Likewise.
2410         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2411         * reload.c (find_reloads): Likewise.
2412         * reload1.c (fixup_eh_region_note): Likewise.
2413         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2414         * reorg.c (delete_prior_computation): Likewise.
2415         (delete_computation, dbr_schedule): Likewise.
2416         * config/pa/pa.c (legitimize_pic_address): Likewise.
2417         * config/sh/sh.c (sh_reorg): Likewise.
2418
2419 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2420
2421         PR target/36669
2422         * config/libgcc-glibc.ver: Add %exclude.
2423         * config/m32r/libgcc-glibc.ver: Likwise.
2424         * config/s390/libgcc-glibc.ver: Likwise.
2425         * config/sh/libgcc-glibc.ver: Likwise.
2426         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2427
2428         * config/i386/libgcc-glibc.ver: New.
2429
2430         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2431
2432 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2433
2434         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2435         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2436         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2437         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2438         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2439         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2440         i[34567]86-*-linux*, x86_64-*-linux*.
2441
2442         * libgcc-std.ver: Add empty GCC_4.4.0.
2443
2444         * mkmap-symver.awk: Support multiple versions per symbol.
2445
2446         * config/i386/i386.c (ix86_init_builtins): Always define
2447         __builtin_fabsq and __builtin_copysignq with fallbacks.
2448         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2449         and __builtin_copysignq if SSE2 isn't available.
2450
2451         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2452         (LIBGCC2_TF_CEXT): Likwise.
2453         (TF_SIZE): Likwise.
2454
2455         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2456
2457         * config/i386/sfp-machine.h: Moved to libgcc.
2458
2459         * config/i386/sfp-machine.h: New.
2460         * config/i386/t-linux: Likwise.
2461
2462         * config/i386/t-darwin: Remove softfp_wrap_start and
2463         softfp_wrap_end.
2464         * config/i386/t-darwin64: Likewise.
2465
2466         * config/i386/t-fprules-softfp64: Renamed to ...
2467         * config/i386/t-fprules-softfp: This.
2468
2469         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2470         and softfp_wrap_end.
2471
2472 2008-07-02  Jason Merrill  <jason@redhat.com>
2473
2474         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2475
2476         * tree.c (ctor_to_list): New fn.
2477         * tree.h: Declare it.
2478         (CONSTRUCTOR_ELT): New macro.
2479         (CONSTRUCTOR_NELTS): New macro.
2480
2481 2008-07-02  Richard Guenther  <rguenther@suse.de>
2482
2483         * tree-ssa-structalias.c (struct variable_info): Reorder
2484         to fill padding on 64bit hosts.  Make collapsed_to an int.
2485         (get_varinfo_fc): Deal with that.
2486         (new_var_info): Likewise.
2487         (collapse_rest_of_var): Likewise.
2488
2489 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2490
2491         * doc/install.texi (--enable-java-home): Document.
2492         (--enable-aot-compile-rpm): Likewise.
2493         (--with-arch-directory): Likewise.
2494         (--with-os-directory): Likewise.
2495         (--with-origin-name): Likewise.
2496         (--with-arch-suffix): Likewise.
2497         (--with-jvm-root-dir): Likewise.
2498         (--with-jvm-jar-dir): Likewise.
2499         (--with-python-dir): Likewise.
2500
2501 2008-07-02  Richard Guenther  <rguenther@suse.de>
2502
2503         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2504         from decls explicitly.  Merge operand checking from tuples.
2505
2506 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2507
2508         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2509         
2510 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2511
2512         * tree-switch-conversion.c: Included timevar.h
2513         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2514
2515         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2516
2517 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2518
2519         * tree-switch-conversion.c: Corrected various comments and
2520         whitespace issues
2521         (build_constructors): Fixed minor formatting mistakes.
2522
2523         * invoke.texi (Optimize Options): Corrected the
2524         switch-conversion-max-branch-ratio parameter.
2525
2526 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2527
2528         * final.c (asm_insn_count): Return zero for an empty asm body.
2529
2530 2008-07-02  Richard Guenther  <rguenther@suse.de>
2531
2532         * bitmap.h (bitmap_set_bit): Return bool.
2533         (bitmap_clear_bit): Likewise.
2534         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2535         write to the bitmap if it would.
2536         (bitmap_clear_bit): Likewise.
2537         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2538         bitmap_set_bit return value.
2539         (add_pred_graph_edge): Likewise.
2540         (add_graph_edge): Likewise.
2541         (do_sd_constraint): Likewise.
2542         (do_ds_constraint): Likewise.
2543
2544 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2545
2546         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2547         Fix -Wc++-compat and/or -Wcast-qual warnings.
2548         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2549         gen_regparm_prefix): Likewise.
2550         * vmsdbgout.c (write_modbeg, lookup_filename,
2551         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2552
2553 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2554
2555         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2556         defaults.h definition apply.
2557
2558 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2559
2560         * function.c (assign_parm_remove_parallels): New.
2561         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2562         PARALLELs.
2563         (assign_parm_setup_block): Do not handle them.
2564         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2565         assign_parm_remove_parallels.
2566
2567 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2568
2569         * c-typeck.c (convert_for_assignment): Use
2570         vector_targets_convertible_p.
2571         * c-common.c (vector_targets_convertible_p): New.
2572         * c-common.h (vector_targets_convertible_p): New prototype.
2573         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2574         opaque_p_V2SI_type_node.
2575
2576 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2577
2578         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2579         RFmode constants.
2580
2581 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2582
2583         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2584         TFmode constants via two element DImode vector for hosts with
2585         HOST_BITS_PER_WIDE_INT < 64.
2586         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2587         also for HOST_BITS_PER_WIDE_INT < 64.
2588
2589 2008-07-01  Richard Guenther  <rguenther@suse.de>
2590
2591         PR tree-optimization/36666
2592         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2593         (get_constraint_exp_from_ssa_var): Split into ...
2594         (get_constraint_exp_for_temp): ... this ...
2595         (get_constraint_for_ssa_var): ... and that.
2596         Return constraint expressions for all touched sub-fields
2597         if the results address is not taken.
2598         (process_constraint): Remove assertion that aggregate
2599         assignments do not happen at this place.
2600         (get_constraint_for_component_ref): Add address_p argument.
2601         Return constraint expressions for all touched sub-fields
2602         if the results address is not taken.
2603         (do_deref): Use get_constraint_exp_for_temp.
2604         (get_constraint_for_1): Rename from ...
2605         (get_constraint_for): ... this.  Add the old function as wrapper.
2606         (do_structure_copy): Use get_constraint_for_1.
2607
2608 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2609
2610         * Makefile.in (tree-switch-conversion.o): Add.
2611         (OBJS-common): Add tree-swtch-conversion.o.
2612         * passes.c (init_optimization_passes): Add pass_convert_switch.
2613         * tree-pass.h: (pass_convert_switch): Add.
2614         * tree-switch-conversion.c: New file.
2615         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2616         * common.opt (ftree-cswtch): New option.
2617         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2618         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2619         * opts.c (decode_options): Set flag_tree_switch_conversion when
2620         optimization level is >= 2.
2621         * doc/invoke.texi (Optimize Options): Added description of
2622         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2623
2624 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2625
2626         * config/darwin-driver.c (darwin_default_min_version): Fix
2627         -Wc++-compat warnings.
2628
2629 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2630
2631         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2632         of operand 0.
2633
2634 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2635
2636         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2637         
2638 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2639
2640         PR rtl-optimization/34744
2641         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2642         (df_scan_free_internal): Free data structures not
2643         allocated in storage pools.
2644         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2645         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2646         df_scan_free_mws_vec.
2647         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2648         unconditionally.
2649
2650 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2651
2652         * config/i386/i386.c (contains_aligned_value_p): Return true
2653         for __float128.
2654         (ix86_function_arg_boundary): Return its natural boundary
2655         for __float128.
2656         (return_in_memory_32): Don't check TDmode.
2657         (ix86_split_to_parts): Support splitting into 4 parts and
2658         support TFmode for 32bit target.
2659         (ix86_split_long_move): Support splitting into 4 parts.
2660         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2661         for SSE2.
2662         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2663         (ix86_init_builtins): Here.
2664         (ix86_scalar_mode_supported_p): Always return true for TFmode.
2665         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2666         'q' and 'w', respectively. 
2667
2668         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2669         TARGET_64BIT.
2670         (movtf_internal): Likewise.
2671         (<code>tf2): Likewise.
2672         (*absnegtf2_sse): Likewise.
2673         (copysign<mode>3): Likewise.
2674         (copysign<mode>3_const): Likewise.
2675         (copysign<mode>3_var): Likewise.
2676         (define_split UNSPEC_COPYSIGN): Likewise.
2677         * config/i386/sse.md (*nandtf3): Likewise.
2678         (<code>tf3): Likewise.
2679         (*<code>tf3): Likewise.
2680
2681 2008-06-30  Joey Ye  <joey.ye@intel.com>
2682             H.J. Lu  <hongjiu.lu@intel.com>
2683
2684         * global.c (compute_regsets): Set frame_pointer_needed here.
2685         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2686
2687 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2688
2689         * doc/install.texi (specific): Expand Windows build notes.
2690
2691 2008-06-30  Ira Rosen  <irar@il.ibm.com>
2692
2693         PR tree-optimization/36648
2694         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2695         number of prolog iterations by step. Fix the comment.
2696
2697 2008-06-30  Richard Guenther  <rguenther@suse.de>
2698
2699         PR middle-end/36671
2700         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2701         handle calls from ECF_MALLOC functions.
2702         (handle_pure_call): ECF_MALLOC functions do not return
2703         call-used memory.
2704         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2705
2706 2008-06-29  Andreas Schwab  <schwab@suse.de>
2707
2708         * config/m68k/m68k.c (print_operand): Always print a float
2709         constant in hex.
2710         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2711         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2712         Remove macros.
2713
2714         * config/rs6000/x-linux64: Remove never used file.
2715
2716 2008-06-29  Richard Guenther  <rguenther@suse.de>
2717
2718         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2719         prototype.
2720         (struct alias_info): Move ...
2721         * tree-ssa-alias.c: ... here.
2722         (update_alias_info): Declare.
2723         (compute_may_aliases): Call it.
2724         (update_alias_info): New function.
2725         * tree-ssa-structalias.c (update_alias_info): Move ...
2726         * tree-ssa-alias.c (update_alias_info_1): ... here.
2727         * tree-ssa-structalias.c (process_constraint_1): Remove
2728         unused from_call argument.  Rename to ...
2729         (process_constraint): ... this.  Delete old wrapper.
2730         (make_constraint_to): Adjust callers.
2731         (handle_const_call): Likewise.
2732         (handle_pure_call): Likewise.
2733         (init_base_vars): Likewise.
2734         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
2735         (find_func_aliases): We don't need structure copies for
2736         complex types.
2737         (make_constraint_from_anything): Remove.
2738         (create_variable_info_for): For globals make constraints
2739         from escaped, not from anything.
2740         (compute_points_to_sets): Do not call update_alias_info.
2741         (ipa_pta_execute): Use make_constraint_from.
2742
2743 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2744
2745         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2746         (bitmap.o-warn, dominance.o-warn): New.
2747         * configure.ac (cxx_compat_warn): Delete.
2748         (loose_warn): Add -Wcast-qual and -Wc++-compat.
2749         * system.h: Remove #pragma diagnostic for -Wcast-qual and
2750         -Wc++-compat.
2751         * configure: Regenerate.
2752
2753         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2754         warnings.
2755
2756 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2757
2758         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2759         * df-scan.c (df_notes_rescan): Likewise.
2760         * ggc-page.c (set_page_table_entry): Likewise.
2761         * intl.c (gcc_gettext_width): Likewise.
2762         * varasm.c (get_unnamed_section, get_noswitch_section,
2763         get_section): Likewise.
2764
2765 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
2766
2767         * regrename.c (build_def_use): Don't copy RTX.
2768
2769 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
2770
2771         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2772         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
2773         punctuation.  Use @ref instead of @xref.
2774         (Function Names): Remove stray @display/@end display.
2775         (C++ Attributes): Use @ref instead of @xref.
2776         (Deprecated Features): Fix punctuation around @xref.
2777         (Backwards Compatibility): Likewise.
2778         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2779
2780 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
2781
2782         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2783         constants for E500 double.
2784
2785 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2786
2787         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2788         element type of const_vector.
2789
2790 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
2791
2792         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2793         Remove FLAGS_REG clobber from expander pattern.
2794         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2795         (anddi3, andsi3, andhi3, andqi3): Ditto.
2796         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2797         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2798         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2799         (ashlsi3, ashlhi3, ashlqi3): Ditto.
2800         (ashrsi3, ashrhi3, ashrqi3): Ditto.
2801         (lshrsi3, lshrhi3, lshrqi3): Ditto.
2802         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2803         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2804
2805 2008-06-28  Richard Guenther  <rguenther@suse.de>
2806
2807         * tree-ssa-structalias.c (callused_id, var_callused,
2808         callused_tree): Add.
2809         (handle_pure_call): New function.
2810         (find_func_aliases): Call it.
2811         (find_what_p_points_to): Handle the call-used set.
2812         (clobber_what_escaped): Likewise.
2813         (compute_call_used_vars): New function.
2814         (init_base_vars): Init the call-used variable.
2815         (do_sd_constraint): Do not propagate the solution from CALLUSED
2816         but use CALLUSED as a placeholder.
2817         (solve_graph): Likewise.
2818         * tree-flow-inline.h (gimple_call_used_vars): New function.
2819         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2820         (compute_call_used_vars): Declare.
2821         * tree-ssa-alias.c (set_initial_properties): Call
2822         compute_call_used_vars.
2823         (reset_alias_info): Clear call-used variables.
2824         (add_call_clobber_ops): Assert we are not called for const/pure
2825         functions.  Remove handling of them.
2826         (add_call_read_ops): Handle pure functions by adding the
2827         call-used set of variables as VUSEs.
2828         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2829         (delete_tree_ssa): Free it.
2830         * tree-dfa.c (remove_referenced_var): Clear the var from the
2831         call-used bitmap.
2832
2833 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
2834
2835         * tree.c (build_varargs_function_type_list): New.
2836         (build_function_type_list_1): New.
2837         (build_function_type_list): Use build_function_type_list_1.
2838         * tree.h (build_varargs_function_type_list): New.
2839
2840 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2841
2842         PR target/34856
2843         * config/spu/spu.c (spu_builtin_splats): Do not generate
2844         invalid CONST_VECTOR expressions.
2845         (spu_expand_vector_init): Likewise.
2846
2847 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
2848
2849         * optabs.c (libfunc_decls): New variable.
2850         (libfunc_decl_hash, libfunc_decl_eq): New functions.
2851         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2852         for the same function twice.
2853
2854 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
2855
2856         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2857         ix86_expand_binary_operator directly.
2858         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
2859         for operand 2.
2860         (*ashrti3_1): Ditto.
2861         (*lshrti3_1): Ditto.
2862         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2863         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2864         using only one splitter.  Conditionaly execute splitter before or
2865         after peephole2 pass.
2866         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2867         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
2868         Use only one alternative in asm template.
2869         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2870         in asm template.
2871         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2872         "J" operand constraint for operand 2.
2873         (*ashldi3_cconly_rex64): Ditto.
2874         (*ashrdi3_cmp_rex64): Ditto.
2875         (*ashrdi3_cconly_rex64): Ditto.
2876         (*lshrdi3_cmp_rex64): Ditto.
2877         (*lshrdi3_cconly_rex64): Ditto.
2878         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2879         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2880         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2881         gen_x86_shrd_1.
2882
2883 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2884
2885         * gimplify.c (omp_is_private): Don't return true if decl is not
2886         already private on #pragma omp for or #pragma omp parallel for.
2887
2888         PR debug/36617
2889         * tree-cfg.c (struct move_stmt_d): Replace block field with
2890         orig_block and new_block fields.
2891         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2892         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2893         (move_block_to_fn): Replace vars_map and new_label_map arguments
2894         with struct move_stmt_d pointer.
2895         (replace_block_vars_by_duplicates): New function.
2896         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
2897         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
2898         all subblocks of ORIG_BLOCK to the new function.  Call
2899         replace_block_vars_by_duplicates.
2900         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2901         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2902         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
2903         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2904         (expand_omp): Temporarily set input_location to the location of
2905         region's controlling stmt.
2906         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2907         BIND_EXPR, push ctx->block_vars and gimplification vars into
2908         the BIND_EXPR and its block's BLOCK_VARS instead of directly
2909         into dest function.
2910         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2911         there are any BLOCK_VARS.
2912         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2913         OMP_PARALLEL or OMP_TASK stmt.
2914         (lower_omp): Save and restore input_location around the lower_omp_1
2915         call.
2916
2917 2008-06-27  Richard Guenther  <rguenther@suse.de>
2918
2919         PR tree-optimization/36400
2920         PR tree-optimization/36373
2921         PR tree-optimization/36344
2922         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2923         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2924         (update_alias_info): Remove call clobbering code.
2925         (make_constraint_to): New helper function.
2926         (make_escape_constraint): Likewise.
2927         (handle_rhs_call): Use it on all pointer containing arguments.
2928         Also mark the static chain escaped.
2929         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2930         instead of ANYTHING.
2931         (make_constraint_from): New helper split out from ...
2932         (make_constraint_from_anything): ... here.
2933         (find_func_aliases): Add constraints for escape sites.
2934         (intra_create_variable_infos): Make constraints from NONLOCAL
2935         for parameters.
2936         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2937         as ANYTHING.
2938         (clobber_what_p_points_to): Remove.
2939         (clobber_what_escaped): New function.
2940         (init_base_vars): Init NONLOCAL and ESCAPED.
2941         (do_sd_constraint): Do not propagate the solution from ESCAPED
2942         but use ESCAPED as a placeholder.
2943         (solve_graph): Likewise.
2944         * tree-flow.h (clobber_what_p_points_to): Remove.
2945         (clobber_what_escaped): Declare.
2946         * tree-ssa-alias.c (set_initial_properties): Call it.
2947         Remove code clobbering escaped pointers.
2948
2949 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
2950
2951         * function.c (allocate_struct_function): Only allocate a unique
2952         funcdef_no if the decl is nonzero.
2953
2954 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
2955
2956         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2957         * config/mips/mips.c (mips_split_const_insns): New function.
2958         * config/mips/mips.md (move_type): New attribute.
2959         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
2960         (dword_mode): New attribute.
2961         (type): Avoid long line.  Map "move_type"s to "type"s,
2962         choosing "multi" for doubleword moves if appropriate.
2963         Swap MTC/MFC comments to match their declaration order.
2964         (extended_mips16): Default to "yes" if "move_type" is "sll0",
2965         "type" is "branch" or "jal" is "direct".
2966         (length): Handle "extended_mips16" first.  Make the default
2967         "0" for "ghost" instructions.  Set the length from "move_type".
2968         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2969         of "type", with "sll0" for the register alternative.  Remove the
2970         "extended_mips16" attribute.
2971         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2972         of "type", with "shift_shift" for the register alternative.
2973         Remove the "length" attribute.
2974         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2975         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2976         of "type", with "andi" for the register alternative.
2977         (*zero_extendqihi2): Likewise.
2978         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2979         of "andi" instead of a "type" of "arith".
2980         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2981         instead of "type".
2982         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2983         (mov_<store>r, *mov<mode>_ra): Likewise.
2984         (extendsidi2): Use "move_type" instead of "type", with "move"
2985         for the register alternative.
2986         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2987         of "type", with "signext" for the register alternative.
2988         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2989         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2990         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2991         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2992         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2993         (unnamed branch insn): Likewise.
2994         (*movdi_gp32_fp64): Fold into...
2995         (*movdi_32bit): ...here.
2996         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2997         (*movdf_hardfloat): ...this new pattern.
2998         (*movdf_softfloat): Remove redundant FPR alternatives.
2999         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3000         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3001         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3002         the "move" attribute.
3003         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3004         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3005         and "store" for COP loads and stores.
3006         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3007         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3008         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3009         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3010         (*movtf_mips16, *movv2sf): Likewise.
3011         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3012         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3013         (mfhc1<mode>): Use "move_type" instead of "move".
3014         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3015         (loadgp_blockage): Remove the "length" attribute.
3016         (blockage, set_got_version, update_got_version): Likewise.
3017         (call_internal): Remove the "extended_mips16" attribute.
3018         (call_value_internal, call_value_multiple_internal): Likewise.
3019         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3020         instead of "move".
3021         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3022         the "length" attribute.
3023
3024 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3025
3026         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3027         -Wcast-qual warnings.
3028         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3029         handle_pragma_pop_macro): Likewise.
3030         * collect2.c (resolve_lib_name): Likewise.
3031         * config/arc/arc.c (arc_init): Likewise.
3032         * config/arm/arm.c (neon_builtin_compare,
3033         locate_neon_builtin_icode): Likewise.
3034         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3035         * config/bfin/bfin.c (bfin_init_machine_status,
3036         bfin_optimize_loop): Likewise.
3037         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3038         * config/cris/cris.c (cris_init_expanders): Likewise.
3039         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3040         * config/darwin.c (machopic_indirection_eq,
3041         machopic_indirection_name, machopic_output_indirection): Likewise.
3042         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3043         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3044         frv_optimize_membar): Likewise.
3045         * config/i386/cygwin.h (mingw_scan,
3046         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3047         * config/i386/cygwin1.c (mingw_scan): Likewise.
3048         * config/i386/i386.c (machopic_output_stub): Likewise.
3049         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3050         i386_pe_unique_section): Likewise.
3051         * config/ia64/ia64.c (ia64_init_machine_status,
3052         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3053         Likewise.
3054         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3055         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3056         * config/m68k/m68k.c (m68k_handle_option,
3057         m68k_sched_md_init_global): Likewise.
3058         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3059         mcore_unique_section): Likewise.
3060         * config/mips/mips.c (mips_block_move_straight,
3061         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3062         Likewise.
3063         * config/mmix/mmix.c (mmix_init_machine_status,
3064         mmix_encode_section_info): Likewise.
3065         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3066         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3067         print_operand_address, output_toc, redefine_groups,
3068         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3069         * config/s390/s390.c (s390_init_machine_status): Likewise.
3070         * config/score/score.c (score_block_move_straight,
3071         score_block_move_loop_body): Likewise.
3072         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3073         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3074         * emit-rtl.c (find_auto_inc): Likewise.
3075         * gcc.c (translate_options, process_command): Likewise.
3076         * reorg.c (dbr_schedule): Likewise.
3077         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3078         * xcoffout.c (xcoffout_declare_function): Likewise.
3079
3080 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3081
3082         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3083         ipa-pta working again.
3084
3085 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3086
3087         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3088         genautomata.
3089
3090 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3091
3092         * config.gcc (powerpc*-*-*): Add new core e500mc.
3093         * config/rs6000/e500mc.md: New file.
3094         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3095         e500mc.
3096         (rs6000_override_options): Add e500mc case to
3097         processor_target_table. Altivec and Spe options not allowed
3098         with e500mc. Add isel instruction to e500mc by
3099         default. Initialize rs6000_cost for e500mc.
3100         (rs6000_issue_rate): Set issue rate for e500mc.
3101         * config/rs6000/rs6000.h (processor_type): Add
3102         PROCESSOR_PPCE500MC.
3103         (ASM_CPU_SPEC): Add e500mc.
3104         Set TARGET_ISEL to rs6000_isel.
3105         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3106         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3107         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3108         Include e500mc.md.
3109         * doc/invoke.texi: Add e500mc to list of cpus.
3110
3111 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3112
3113         PR c/34867
3114         * c-lex.c (lex_charconst): Initialize unsignedp.
3115
3116 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3117
3118         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3119         documented assumptions.
3120
3121 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * dwarf2out.c: Remove trailing white spaces.  Break long line
3124         in comments.
3125
3126 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3127
3128         * libfuncs.h (LTI_synchronize): New libfunc_index.
3129         (synchronize_libfunc): Declare.
3130         * builtins.c (expand_builtin_synchronize): Consider using
3131         synchronize_libfunc before falling back on an asm blockage.
3132         * config/mips/mips.c: Include libfuncs.h
3133         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3134
3135 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3136
3137         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3138         parameter.  Copy stack_reg to r11 where appropriate.
3139         (no_global_regs_above): Add gpr parameter.
3140         (rs6000_stack_info): Only add padding for SPE save area if we
3141         are saving SPE GPRs and CR.
3142         (saveres_routine_syms): New variable.
3143         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3144         Define.
3145         (rs6000_savres_routine_sym): New function.
3146         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3147         split out of...
3148         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3149         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3150         Tweak FPR out-of-line saving.
3151         (rs6000_make_savres_rtx): New function.
3152         (rs6000_use_multiple_p): New function.
3153         (rs6000_savres_strategy): New function.
3154         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3155         out-of-line if appropriate.
3156         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3157         if we are optimizing for size.
3158         (GP_SAVE_INLINE): Define.
3159         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3160         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3161         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3162         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3163         (*save_fpregs_<mode>): Add use of r11.
3164         (*restore_gpregs_<mode>): New insn.
3165         (*return_and_restore_gpregs_<mode>): New insn.
3166         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3167         use r11.
3168         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3169         (*restore_gpregs_spe): New insn.
3170         (*return_and_restore_gpregs_spe): New insn.
3171         * config/rs6000/predicates.md (save_world_operation): Fix check.
3172
3173 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3174
3175         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3176         this point, so assert that.
3177
3178 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3179
3180         * cfganal.c: Include vec.h and vecprim.h.
3181         (compute_idf): Import from...
3182         * tree-into-ssa (compute_idf): ...here.
3183         * basic-block.h (compute_idf): Export.
3184
3185 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3186
3187         * c-decl.c (merge_decls): Use !current_function_decl to check for
3188         extern declaration of C99 inline function being at file scope.
3189
3190 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3191
3192         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3193
3194 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3195
3196         * alias.c (record_alias_subset, init_alias_analysis): Fix
3197         -Wc++-compat and/or -Wcast-qual warnings.
3198         * attribs.c (lookup_attribute_spec): Likewise.
3199         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3200         copy_bb, connect_traces,
3201         find_rarely_executed_basic_blocks_and_cr): Likewise.
3202         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3203         note_btr_set, migrate_btr_defs): Likewise.
3204         * builtins.c (result_vector, expand_builtin_memcpy,
3205         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3206         builtin_memset_read_str, expand_builtin_printf,
3207         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3208         Likewise.
3209         * caller-save.c (mark_set_regs): Likewise.
3210         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3211         * cgraph.c (cgraph_edge): Likewise.
3212         * combine.c (likely_spilled_retval_1): Likewise.
3213         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3214         htab_counts_entry_del, get_coverage_counts): Likewise.
3215         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3216         new_cselib_val): Likewise.
3217         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3218         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3219         Likewise.
3220         * df-core.c (df_compact_blocks): Likewise.
3221         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3222         * df-scan.c (df_grow_reg_info, df_ref_create,
3223         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3224         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3225         df_record_entry_block_defs, df_record_exit_block_uses,
3226         df_bb_verify): Likewise.
3227         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3228         DF_REF_EXTRACT_MODE_CONST): New.
3229         * dominance.c (get_immediate_dominator, get_dominated_by,
3230         nearest_common_dominator, root_of_dom_tree,
3231         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3232         -Wc++-compat and/or -Wcast-qual warnings.
3233         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3234         record_store, replace_read, check_mem_read_rtx, scan_insn,
3235         dse_step1, dse_record_singleton_alias_set): Likewise.
3236         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3237
3238 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3239
3240         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3241         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3242         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3243         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3244         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3245         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3246         file_name_acquire, output_file_names, add_const_value_attribute,
3247         premark_used_types_helper, file_table_eq, file_table_hash,
3248         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3249         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3250         -Wcast-qual warnings.
3251         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3252         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3253         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3254         gen_reg_rtx, start_sequence, init_emit): Likewise.
3255         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3256         * except.c (init_eh_for_function, gen_eh_region,
3257         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3258         arh_to_landing_pad, arh_to_label, add_action_record,
3259         add_call_site, switch_to_exception_section): Likewise.
3260         * expmed.c (synth_mult): Likewise.
3261         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3262         store_expr): Likewise.
3263         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3264         Likewise.
3265         * function.c (assign_stack_temp_for_type,
3266         allocate_struct_function, match_asm_constraints_1): Likewise.
3267         * gcov-io.c (gcov_allocate): Likewise.
3268         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3269         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3270         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3271         record_one_set, insert_expr_in_table, insert_set_in_table,
3272         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3273         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3274         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3275         -Wcast-qual warnings.
3276
3277 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3278
3279         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3280         -Wcast-qual warnings.
3281         * gcc.c (process_command): Likewise.
3282         * genattrtab.c (oballoc): Use XOBNEW.
3283         (oballocvec): Define.
3284         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3285         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3286         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3287         -Wc++-compat and/or -Wcast-qual warnings.
3288         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3289         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3290         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3291         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3292         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3293         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3294         add_excls, process_presence_absence_names,
3295         process_presence_absence_patterns, add_presence_absence,
3296         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3297         get_free_state, add_arc, get_free_automata_list_el,
3298         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3299         transform_3, cache_presence, create_ainsns, create_automata,
3300         create_state_ainsn_table, dfa_insn_code_enlarge,
3301         output_trans_func, output_min_issue_delay_func,
3302         output_dead_lock_func, output_reset_func,
3303         output_get_cpu_unit_code_func, output_dfa_start_func,
3304         expand_automata): Likewise.
3305         * genextract.c (gen_insn): Likewise.
3306         * gengtype-lex.l: Likewise.
3307         * gengtype.c (read_input_list, adjust_field_type,
3308         process_gc_options): Likewise.
3309         * genoutput.c (note_constraint): Likewise.
3310         * genpreds.c (mangle, add_constraint): Likewise.
3311         * genrecog.c (process_define_predicate, new_decision,
3312         add_to_sequence): Likewise.
3313         * gensupport.c (record_insn_name): Likewise.
3314
3315 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3316
3317         * config/i386/driver-i386.c (detect_caches_amd,
3318         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3319         and/or -Wcast-qual warnings.
3320         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3321         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3322         gt_pch_save): Likewise.
3323         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3324         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3325         * global.c (compute_regsets): Likewise.
3326         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3327         finish_graph_dump_file): Likewise.
3328         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3329         unlink_bb_notes): Likewise.
3330         * integrate.c (get_hard_reg_initial_val): Likewise.
3331         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3332         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3333         * local-alloc.c (update_equiv_regs): Likewise.
3334         * loop-invariant.c (check_invariant_table_size,
3335         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3336         Likewise.
3337         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3338         altered_reg_used, mark_altered): Likewise.
3339         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3340         insert_var_expansion_initialization,
3341         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3342         release_var_copies): Likewise.
3343         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3344         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3345         analyze_accesses_for_phi_node, check_var_notmodified_p,
3346         check_allocation_function, find_sites_in_func,
3347         record_all_accesses_in_func, transform_access_sites,
3348         transform_allocation_sites): Likewise.
3349         * omp-low.c (new_omp_region, create_omp_child_function_name,
3350         check_omp_nesting_restrictions, check_combined_parallel,
3351         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3352         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3353         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3354         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3355         Likewise.
3356         * opts-common.c (prune_options): Likewise.
3357         * opts.c (add_input_filename, print_filtered_help,
3358         get_option_state): Likewise.
3359         * params.c (add_params): Likewise.
3360         * passes.c (set_pass_for_id, next_pass_1,
3361         do_per_function_toporder, pass_fini_dump_file): Likewise.
3362         * postreload.c (reload_cse_simplify_operands): Likewise.
3363         * predict.c (tree_predicted_by_p, tree_predict_edge,
3364         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3365
3366 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3367
3368         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3369         warnings.
3370         * recog.c (check_asm_operands, validate_change_1): Likewise.
3371         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3372         subst_asm_stack_regs): Likewise.
3373         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3374         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3375         * regmove.c (reg_is_remote_constant_p): Likewise.
3376         * regrename.c (regrename_optimize, scan_rtx_reg,
3377         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3378         Likewise.
3379         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3380         regstat_compute_calls_crossed): Likewise.
3381         * reload1.c (init_reload, new_insn_chain,
3382         has_nonexceptional_receiver, reload, copy_reloads,
3383         calculate_needs_all_insns, init_elim_table): Likewise.
3384         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3385         * rtl.c (shallow_copy_rtx_stat): Likewise.
3386         * rtlanal.c (parms_set): Likewise.
3387         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3388         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3389         * sched-ebb.c (earliest_block_with_similiar_load,
3390         add_deps_for_risky_insns): Likewise.
3391         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3392         schedule_region): Likewise.
3393         * see.c (eq_descriptor_pre_extension,
3394         hash_descriptor_pre_extension, hash_del_pre_extension,
3395         eq_descriptor_properties, hash_descriptor_properties,
3396         hash_del_properties, see_seek_pre_extension_expr,
3397         see_initialize_data_structures, see_print_register_properties,
3398         see_print_pre_extension_expr, see_delete_merged_def_extension,
3399         see_delete_unmerged_def_extension, see_emit_use_extension,
3400         see_pre_delete_extension, see_map_extension, see_commit_changes,
3401         see_analyze_merged_def_local_prop,
3402         see_analyze_merged_def_local_prop,
3403         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3404         see_set_prop_merged_def, see_set_prop_unmerged_def,
3405         see_set_prop_unmerged_use, see_print_one_extension,
3406         see_merge_one_use_extension, see_merge_one_def_extension,
3407         see_store_reference_and_extension, see_update_uses_relevancy,
3408         see_update_defs_relevancy): Likewise.
3409         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3410         hash_statistics_free, curr_statistics_hash): Likewise.
3411         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3412         expand_asm_operands, expand_return, case_bit_test_cmp,
3413         expand_case): Likewise.
3414         * stor-layout.c (start_record_layout): Likewise.
3415         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3416         gt_pch_save_stringpool): Likewise.
3417         * tree-data-ref.c (hash_stmt_vertex_info,
3418         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3419         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3420
3421 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3422
3423         PR target/36627
3424         * config/i386/i386.md : Change constraints of HImode and QImode
3425         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3426         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3427         from const0_operand and const1_operand predicated operands.
3428         (i): Change QImode and HImode attribute from "i" to "n".
3429         (*subqi_2): Change HImode operands to QImode.
3430         (*subqi_3): Ditto.
3431
3432 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3433
3434         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3435         sed substitutions.
3436
3437 2008-06-25  Richard Guenther  <rguenther@suse.de>
3438
3439         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3440         not overflow the result type.
3441
3442 2008-06-25  Richard Guenther  <rguenther@suse.de>
3443
3444         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3445         (vn_lookup): Likewise.
3446
3447 2008-06-25  Richard Guenther  <rguenther@suse.de>
3448
3449         PR tree-optimization/35518
3450         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3451         * tree-sra.c (instantiate_element): Use fold_build3 to build
3452         BIT_FIELD_REFs.
3453         (try_instantiate_multiple_fields): Likewise.
3454
3455 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3456
3457         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3458         be early clobbers.
3459
3460 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3461
3462         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3463         use_backchain_to_restore_sp to true
3464         if the offset of the link register save area would go over the 32k - 1
3465         offset limit of the load
3466         instructions.
3467
3468 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3469
3470         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3471         anchor for the type-punning blurb.  Cross-reference "Structures
3472         unions enumerations and bit-fields implementation".  Provide a
3473         cast-through-pointer example.  Make final sentence self-contained.
3474         * doc/implement-c.texi (Structures unions enumerations and
3475         bit-fields implementation): Cross-reference the type-punning blurb
3476         in the -fstrict-aliasing documentation.
3477
3478 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3479
3480         PR middle-end/36594
3481         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3482         the memory instead of the memory itself for the save area.
3483
3484 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3485             Nicolas Roche  <roche@adacore.com>
3486
3487         * gengtype.c (srcdir_len): size_t instead of int.
3488         (get_file_realbasename): New function.  For F a filename, the real
3489         basename of F, with all the path components stripped.
3490         (get_file_srcdir_relative_path): New function.  For F a filename, the
3491         relative path to F from $(srcdir).
3492         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3493         get_file_realbasename.  Adjust the head comment.
3494         (get_prefix_langdir_index): New function. For F a filename, return the
3495         lang_dir_names[] relative index of the language directory that is
3496         a prefix in F.
3497         (get_file_langdir): For F a filename, return the name of the language
3498         directory where F is located.
3499         (get_file_gtfilename): New function. The gt- output file name for an
3500         input filename F.
3501         (get_output_file_with_visibility): Replace in-line computations with
3502         uses of get_file_gtfilename and get_prefix_langdir_index.
3503         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3504
3505 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3506
3507         PR tree-optimization/36504
3508         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3509         references without base address.
3510
3511 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3512
3513         PR middle-end/36584
3514         * calls.c (expand_call): Increase alignment for recursive functions.
3515
3516 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3517
3518         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3519         (TARGET_FUNCTION_VALUE): New define.
3520         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3521         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3522
3523 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3524
3525         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3526         (fmod<mode>3): Ditto.
3527         (remainderxf3): Ditto.
3528         (remainder<mode>3): Ditto.
3529
3530 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3531
3532         PR target/36533
3533         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3534         REG is a hard register.
3535
3536         PR tree-optimization/36508
3537         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3538         499, don't check it at all in release compilers.
3539
3540 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3541
3542         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3543         together with SSE_TARGET_MATH to disable insn pattern.
3544         (*fop_<MODEF:mode>_2_i387): Ditto.
3545         (*fop_<MODEF:mode>_3_i387): Ditto.
3546
3547 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3548
3549         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3550         
3551 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3552
3553         PR middle-end/34906
3554         * gimplify.c (gimplify_asm_expr): Check the return code of
3555         parse_output_constraint call, set function return and is_inout
3556         value if it failed.
3557
3558 2008-06-22  Ian Lance Taylor  <iant@google.com>
3559
3560         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3561         (narrowest_signed_type): Likewise.
3562         * c-typeck.c (c_common_type): Change local variable mclass to enum
3563         mode_class, twice.
3564         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3565         tcc_comparison, not the tree code itself.
3566         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3567         (c_expand_expr): Cast modifier to enum expand_modifier.
3568         * c-common.h (C_RID_CODE): Add casts.
3569         (C_SET_RID_CODE): Define.
3570         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3571         (c_lex_one_token): Add cast to avoid warning.
3572         (c_parser_objc_type_name): Rename local typename to type_name.
3573         (check_no_duplicate_clause): Change code parameter to enum
3574         omp_clause_code.
3575         (c_parser_omp_var_list_parens): Change kind parameter to enum
3576         omp_clause_code.
3577         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3578         c_parser_omp_list_var_parens.
3579         (c_parser_omp_threadprivate): Likewise.
3580         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3581         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3582         * c-format.c (NO_FMT): Define.
3583         (printf_length_specs): Use NO_FMT.
3584         (asm_fprintf_length_specs): Likewise.
3585         (gcc_diag_length_specs): Likewise.
3586         (scanf_length_specs): Likewise.
3587         (strfmon_length_specs): Likewise.
3588         (gcc_gfc_length_specs): Likewise.
3589         (printf_flag_specs): Change 0 to STD_C89.
3590         (asm_fprintf_flag_specs): Likewise.
3591         (gcc_diag_flag_specs): Likewise.
3592         (gcc_cxxdiag_flag_specs): Likewise.
3593         (scanf_flag_specs): Likewise.
3594         (strftime_flag_specs): Likewise.
3595         (strfmon_flag_specs): Likewise.
3596         (print_char_table): Likewise.
3597         (asm_fprintf_char_table): Likewise.
3598         (gcc_diag_char_table): Likewise.
3599         (gcc_tdiag_char_table): Likewise.
3600         (gcc_cdiag_char_table): Likewise.
3601         (gcc_cxxdiag_char_table): Likewise.
3602         (gcc_gfc_char_table): Likewise.
3603         (scan_char_table): Likewise.
3604         (time_char_table): Likewis.
3605         (monetary_char_table): Likewise.
3606         * c-format.h (BADLEN): Likewise.
3607
3608 2008-06-21  Ian Lance Taylor  <iant@google.com>
3609
3610         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3611         Define END_OF_BASE_TREE_CODES around inclusion.
3612         * tree.c (tree_code_type): New global array.
3613         (tree_code_length, tree_code_name): Likewise.
3614         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3615         $(lang_tree_files).
3616         (all-tree.def, s-alltree): New targets.
3617         (gencheck.h, s-gencheck): Remove.
3618         (tree.o): Depend upon all-tree.def.
3619         (build/gencheck.o): Remove gencheck.h dependency.
3620         (mostlyclean): Don't remove gencheck.h.
3621         * c-common.h (enum c_tree_code): Remove.
3622         * c-lang.c (tree_code_type): Remove.
3623         (tree_code_length, tree_code_name): Remove.
3624         * gencheck.c (tree_codes): Include all-tree.def, rather than
3625         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3626         after it is used.
3627         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3628         than tree.def.
3629         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3630         (operator_name_info): Size to MAX_TREE_CODES.
3631         (assignment_operator_name_info): Likewise.
3632         * cp/cp-lang.c (tree_code_type): Remove.
3633         (tree_code_length, tree_code_name): Remove.
3634         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3635         (assignment_operator_name_info): Likewise.
3636         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3637         MAX_TREE_CODES.
3638         * cp/mangle.c (write_expression): Likewise.
3639         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3640         * fortran/f95-lang.c (tree_code_type): Remove.
3641         (tree_code_length, tree_code_name): Remove.
3642         * java/java-tree.h (enum java_tree_code): Remove.
3643         * java/lang.c (tree_code_type): Remove.
3644         (tree_code_length, tree_code_name): Remove.
3645         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3646         * objc/objc-act.h (enum objc_tree_code): Remove.
3647         * objc/objc-lang.c (tree_code_type): Remove.
3648         (tree_code_length, tree_code_name): Remove.
3649         * objcp/objcp-lang.c (tree_code_type): Remove.
3650         (tree_code_length, tree_code_name): Remove.
3651         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3652         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3653         * ada/misc.c (tree_code_type): Remove.
3654         (tree_code_length, tree_code_name): Remove.
3655
3656 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3657
3658         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3659         the grand_bitmap_obstack.
3660
3661 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3662
3663         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3664         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3665         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3666         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3667         move_stmt_r, new_label_mapper): Likewise.
3668         * tree-complex.c (cvc_lookup): Likewise.
3669         * tree-dfa.c (create_function_ann): Likewise.
3670         * tree-dump.c (dump_register): Likewise.
3671         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3672         find_phi_replacement_condition): Likewise.
3673         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3674         tree_function_versioning): Likewise.
3675         * tree-into-ssa.c (cmp_dfsnum): Likewise.
3676         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3677         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3678         get_nonlocal_debug_decl, convert_nonlocal_reference,
3679         convert_nonlocal_omp_clauses, get_local_debug_decl,
3680         convert_local_reference, convert_local_omp_clauses,
3681         convert_nl_goto_reference, convert_nl_goto_receiver,
3682         convert_tramp_reference, convert_call_expr): Likewise.
3683         * tree-outof-ssa.c (contains_tree_r): Likewise.
3684         * tree-parloops.c (reduction_phi, initialize_reductions,
3685         eliminate_local_variables_1, add_field_for_reduction,
3686         add_field_for_name, create_phi_for_local_result,
3687         create_call_for_reduction_1, create_loads_for_reductions,
3688         create_stores_for_reduction, create_loads_and_stores_for_name):
3689         Likewise.
3690         * tree-phinodes.c (allocate_phi_node): Likewise.
3691         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3692         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3693         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3694         * tree-ssa-coalesce.c (compare_pairs): Likewise.
3695         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3696         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3697         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3698         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
3699         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3700         vn_nary_op_insert): Likewise.
3701         * tree-ssa.c (redirect_edge_var_map_add,
3702         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3703         * tree-vectorizer.c (vectorize_loops): Likewise.
3704         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3705         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3706         tree_cons_stat, build1_stat, build_variant_type_copy,
3707         decl_init_priority_lookup, decl_fini_priority_lookup,
3708         decl_priority_info, decl_restrict_base_lookup,
3709         decl_restrict_base_insert, decl_debug_expr_lookup,
3710         decl_debug_expr_insert, decl_value_expr_lookup,
3711         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3712         type_hash_add, get_file_function_name, tree_check_failed,
3713         tree_not_check_failed, tree_range_check_failed,
3714         omp_clause_range_check_failed, build_omp_clause,
3715         build_vl_exp_stat): Likewise.
3716         * value-prof.c (gimple_histogram_value,
3717         gimple_duplicate_stmt_histograms): Likewise.
3718         * var-tracking.c (attrs_list_insert, attrs_list_copy,
3719         unshare_variable, variable_union_info_cmp_pos, variable_union,
3720         dataflow_set_different_1, dataflow_set_different_2,
3721         vt_find_locations, variable_was_changed, set_variable_part,
3722         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3723         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3724         section_entry_hash, object_block_entry_eq,
3725         object_block_entry_hash, create_block_symbol,
3726         initialize_cold_section_name, default_function_rodata_section,
3727         strip_reg_name, set_user_assembler_name, const_desc_eq,
3728         build_constant_desc, output_constant_def, lookup_constant_def,
3729         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3730         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3731         default_internal_label): Likewise.
3732         * varray.c (varray_init, varray_grow): Likewise.
3733         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3734
3735 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
3736
3737         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3738         operators for "test" insn.  Macroize insn using SWI mode macro.
3739         (*jcc_fused_2): Ditto.
3740         (*jcc_fused_3): Macroize insn using SWI mode macro.
3741         (*jcc_fused_4): Ditto.
3742
3743 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
3744
3745         * tree-ssa-pre.c: Fix typo in comment.
3746         (init_antic, fini_antic): Add explicit funtions for
3747         initializing and deinitializing ANTIC and AVAIL sets.
3748         (create_expression_by_pieces): Fix typo in comment.
3749         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3750         (execute_pre): Eventually dump details about ANTIC_IN.
3751
3752 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3753
3754         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3755         * gcc.c (translate_options, init_spec, store_arg, read_specs,
3756         add_to_obstack, file_at_path, find_a_file, execute,
3757         add_preprocessor_option, add_assembler_option, add_linker_option,
3758         process_command, insert_wrapper, do_option_spec, do_self_spec,
3759         spec_path, do_spec_1, is_directory, main, used_arg,
3760         getenv_spec_function): Likewise.
3761         * tlink.c (symbol_hash_lookup, file_hash_lookup,
3762         demangled_hash_lookup, symbol_push, file_push, frob_extension):
3763         Likewise.
3764
3765 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3766
3767         * doc/rtl.texi: Updated subreg section.
3768
3769 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
3770
3771         PR c++/36523
3772         * cgraphunit.c (cgraph_process_new_functions): Don't clear
3773         node->needed and node->reachable.
3774         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3775         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3776         (expand_task_call): Don't call expand_task_copyfn.
3777         (expand_task_copyfn): Renamed to...
3778         (finalize_task_copyfn): ... this.
3779
3780 2008-06-19  Jan Hubicka  <jh@suse.cz>
3781
3782         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3783         clobbering framepointer.
3784
3785 2008-06-19  Jan Hubicka  <jh@suse.cz>
3786
3787         * tree-optimize.c (execute_early_local_optimizations): Set
3788         cgraph_state only at first invocation.
3789
3790 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3791
3792         * system.h (-Wc++-compat): Activate as a warning, no an error.
3793
3794 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3795
3796         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3797         instead of "#" in insn asm template.
3798         (*jcc_fused_2): Ditto.
3799
3800 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3801
3802         * config/i386/i386.h (ix86_tune_indices)
3803         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3804         (TARGET_FUSE_CMP_AND_BRANCH): New define.
3805         * config/i386/i386.md (*jcc_fused_1): New insn pattern
3806         (*jcc_fused_2): Ditto.
3807         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3808         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3809         (print operand): Handle 'E' and 'e' code.
3810
3811 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
3812
3813         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3814         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3815         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3816
3817 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
3818
3819         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3820         node->decl.
3821         (cgraph_expand_function): Use local copy of decl.
3822         (cgraph_expand_all_functions): Remove redundant initialization of
3823         order_pos.
3824         (cgraph_optimize): Reword internal_error message.
3825
3826 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
3827
3828         * arm-protos.h (arm_return_in_memory): Remove public
3829         arm_return_in_memory() prototype.
3830         * arm.c (arm_return_in_memory): Add static prototype, add target
3831         hook macro, change definition and comments.
3832         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3833
3834 2008-06-19  Ben Elliston  <bje@au.ibm.com>
3835
3836         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3837         real.c: Remove references to IEEE 754R.
3838         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3839         * doc/libgcc.texi (Decimal float library routines): Likewise.
3840
3841 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3842
3843         * targhooks.h (struct gcc_target): New member unwind_word_mode.
3844         (default_unwind_word_mode): Add prototype.
3845         * targhooks.c (default_unwind_word_mode): New function.
3846         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3847         instead of word_mode.
3848         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3849         (TARGET_INITIALIZER): Use it.
3850
3851         * c-common.c (handle_mode_attribute): Support "unwind_word"
3852         mode attribute.
3853         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3854
3855         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3856         word_mode to access SjLj_Function_Context member "data".
3857         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
3858         conversion from targetm.eh_return_filter_mode () to
3859         targetm.unwind_word_mode () if they differ.
3860
3861         * builtin-types.def (BT_UNWINDWORD): New primitive type.
3862         (BT_FN_UNWINDWORD_PTR): New function type.
3863         (BT_FN_WORD_PTR): Remove.
3864         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3865         * except.c (expand_builtin_extend_pointer): Convert pointer to
3866         targetm.unwind_word_mode () instead of word_mode.
3867
3868         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3869         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3870         (spu_unwind_word_mode): New function.
3871         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3872         (TARGET_UNWIND_WORD_MODE): Define.
3873         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3874
3875 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3876
3877         * config/spu/spu.c (reg_align): Remove.
3878         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3879         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3880         (spu_split_store): Likewise.
3881
3882 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
3883
3884         * gcc/tree-vn.c: Fix typo in comment.
3885
3886 2008-06-18  Jan Hubicka  <jh@suse.cz>
3887
3888         * cgraphunit.c (cgraph_optimize): Output debug info when doing
3889         toplevel reorder too.
3890
3891 2008-06-18  Jan Hubicka  <jh@suse.cz>
3892
3893         * c-opts.c (c_common_post_options): PCH is not compatible with
3894         no-unit-at-a-time.
3895         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3896         -fno-toplevel-reorder by default now.
3897
3898 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3899
3900         PR documentation/30739
3901         * doc/install.texi (Prerequisites): Document dependency on awk.
3902
3903 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
3904             Ian Lance Taylor  <iant@google.com>
3905
3906         PR rtl-optimization/35604
3907         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3908         only want to change jump destinations, not eventual label comparisons.
3909
3910 2008-06-16  Jan Hubicka  <jh@suse.cz>
3911
3912         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3913         syntax errors.
3914         (cgraph_analyze_function): Likewise.
3915
3916 2008-06-16  Jan Hubicka  <jh@suse.cz>
3917
3918         * cgraph.h (cgraph_mark_if_needed): New function.
3919         * cgraphunit.c (cgraph_mark_if_needed): New function.
3920         * c-decl.c (duplicate_decl): Use it.
3921
3922 2008-06-16  Jan Hubicka  <jh@suse.cz>
3923
3924         * cgraph.c (cgraph_add_new_function): When in expansion state, do
3925         lowering.
3926
3927 2008-06-16  Jan Hubicka  <jh@suse.cz>
3928
3929         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3930
3931 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
3932             Kazu Hirata  <kazu@codesourcery.com>
3933             Maxim Kuvyrkov  <maxim@codesourcery.com
3934
3935         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3936         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3937         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3938         EXTRA_SPEC_FUNCTIONS.
3939         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3940         (DRIVER_SELF_SPECS): Adjust.
3941         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3942         * config/mips/st.h, config/mips/t-st: New.
3943         * config/mips/driver-native.c, config/mips/x-native: New.
3944         * doc/invoke.texi (MIPS): Document 'native' value for -march and
3945         -mtune options.
3946
3947 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3948
3949         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3950         from it.
3951         (ISA_HAS_FP_CONDMOVE): New macro.
3952         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3953         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3954         (ISA_HAS_NMADD3_NMSUB3): New macro.
3955         * config/mips/mips.c (mips_rtx_costs): Update.
3956         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3957         compiling for ST Loongson 2E/2F.
3958         (madd<mode>): Rename to madd4<mode>.  Update.
3959         (madd3<mode>): New pattern.
3960         (msub<mode>): Rename to msub4<mode>.  Update.
3961         (msub3<mode>): New pattern.
3962         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
3963         (nmadd3<mode>): New pattern.
3964         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
3965         (nmadd3<mode>_fastmath): New pattern.
3966         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
3967         (nmsub3<mode>): New pattern.
3968         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
3969         (nmsub3<mode>_fastmath): New pattern.
3970         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3971
3972 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
3973
3974         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3975         (DF_REF_INSN_INFO): New.
3976         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3977         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3978         with a NULL DF_REF_INSN_INFO.
3979         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3980         DF_INSN_SET.
3981         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3982         DF_INSN_INFO_EQ_USES): New.
3983         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3984         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3985         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3986         * df-core.c: Update comment for above changes.
3987         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3988         DF_INSN_UID_* macros.
3989         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3990         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3991         insn rtx.  Update all callers.
3992         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3993         df_ref_create_structure, df_insn_refs_collect): Likewise.
3994         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3995         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3996         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3997         macros to access the insn refs.
3998         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3999         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4000         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4001         for accessing the refs.
4002         (try_fwprop_subst): Likewise.
4003         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4004         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4005         for accessing the refs.
4006         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4007         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4008         to look at the insn refs.
4009         (record_uses): Likewise.
4010         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4011         function anymore.
4012         (mark_artificial_uses): Don't mark_insn for artificial refs.
4013         (mark_reg_rependencies): Likewise.
4014
4015         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4016
4017 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4018
4019         * configure: Regenerate.
4020
4021 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4022
4023         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4024         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4025         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4026
4027 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4028
4029         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4030         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4031         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4032
4033 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4034
4035         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4036         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4037         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4038
4039 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4040
4041         * tree-ssa-sccvn.c: Fix format of comments.
4042
4043 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4044
4045         * cgraph.c: Remove unneeded forward declarations of eq_node()
4046         and hash_node().
4047
4048 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4049
4050         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4051         REG_RETVAL notes.
4052         (see_update_relevancy): Likewise.
4053         * fwprop.c (try_fwprop_subst): Likewise.
4054         * rtlanal.c (noop_move_p): Likewise.
4055         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4056         notes to non-existing libcall blocks.
4057         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4058         Remove orig_set.
4059         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4060         (dead_libcall_p): Remove.
4061         (delete_trivially_dead_insns): Don't use it.
4062         * web.c (union_defs): Remove comment about keeping nops.
4063         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4064         (compute_hash_table_work): Don't track libcall notes.
4065         (do_local_cprop): Don't take libcall pointers.  Don't update
4066         libcall notes.
4067         (adjust_libcall_notes): Deleted.
4068         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4069         ever have existed in the first place).
4070         (replace_store_insn): Don't try to remove libcall notes.
4071         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4072         (resolve_reg_notes): Don't call them.
4073         (resolve_simple_move): Likewise.
4074         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4075         Don't remove REG_RETVAL notes.
4076         * emit-rtl.c (try_split): Don't update libcall notes.
4077         (emit_copy_of_insn_after): Dito.
4078         * cselib.c (cselib_current_insn_in_libcall): Remove.
4079         (cselib_process_insn): Don't set/clear it.
4080         (new_elt_loc_list): Don't record it.
4081         (cselib_init): Don't initialize it.
4082         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4083         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4084         notes.
4085         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4086         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4087         (init_deps): Don't initialize it.
4088         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4089         * combine.c (delete_noop_moves): Don't update libcall notes.
4090         (can_combine_p): Remove now pointless #if 0 block.
4091         (try_combine): Remove another obsolete #if 0 block.
4092         (distribute_notes): Don't distribute libcall notes.
4093         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4094         * dce.c (libcall_dead_p): Remove.
4095         (delete_unmarked_insns): Don't handle libcall blocks.
4096         (preserve_libcall_for_dce): Remove.
4097         (prescan_insns_for_dce): Don't special-case libcall block insns.
4098         * reload1 (reload): Don't handle libcall notes. 
4099         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4100         documentation.
4101
4102 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4103
4104         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4105         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4106         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4107
4108 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4109
4110         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4111         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4112         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4113
4114 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4115
4116         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4117
4118 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4119
4120         PR tree-optimization/36493
4121         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4122         the arguments list. Use VECTYPE to create vector pointer.
4123         (vectorizable_store): Fail if accesses through a pointer to vectype
4124         do not alias the original memory reference operands.
4125         Call vect_create_data_ref_ptr without the removed argument.
4126         (vectorizable_load): Likewise.
4127         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4128         removed argument.
4129
4130 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4131
4132         PR target/36336
4133         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
4134         reg_equiv_constant.
4135
4136 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4137
4138         * config/mips/loongson2ef.md: New file.
4139         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4140         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4141         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4142         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4143         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4144         and loongson_2f.
4145         (loongson2ef.md): New include.
4146         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4147         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4148         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4149         (loongson_gt_<mode>, loongson_extract_halfword)
4150         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4151         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4152         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4153         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4154         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4155         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4156         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4157         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4158         (vec_interleave_low<mode>): Define type attribute.
4159         * config/mips/mips.c (mips_ls2): New static variable.
4160         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4161         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4162         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4163         Implement target scheduling hooks.
4164         (mips_multipass_dfa_lookahead): Update to handle tuning for
4165         Loongson 2E/2F.
4166         (mips_sched_init): Initialize data for Loongson scheduling.
4167         (mips_ls2_variable_issue): New static function.
4168         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4169         Add sanity check.
4170         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4171         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4172         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4173         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4174         Handle ST Loongson 2E/2F cores.
4175         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4176
4177 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4178
4179         * omp-low.c (extract_omp_for_data): Fix comment typo.
4180         * c.opt: Fix typo.
4181
4182 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4183
4184         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4185         FIXME note about gcc/config.guess.
4186         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4187         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4188         * doc/cppopts.texi: Likewise.
4189         * doc/extend.texi: Likewise.
4190         * doc/gcc.texi: Likewise.
4191         * doc/gccint.texi: Likewise.
4192         * doc/gcov.texi: Likewise.
4193         * doc/gty.texi: Likewise.
4194         * doc/hostconfig.texi: Likewise.
4195         * doc/install.texi: Likewise.
4196         * doc/invoke.texi: Likewise.
4197         * doc/loop.texi: Likewise.
4198         * doc/makefile.texi: Likewise.
4199         * doc/md.texi: Likewise.
4200         * doc/passes.texi: Likewise.
4201         * doc/tm.texi: Likewise.
4202         * doc/tree-ssa.texi: Likewise.
4203         * doc/trouble.texi: Likewise.
4204
4205 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4206             Nathan Sidwell  <nathan@codesourcery.com>
4207             Maxim Kuvyrkov  <maxim@codesourcery.com>
4208             Richard Sandiford  <rdsandiford@googlemail.com>
4209         
4210         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4211         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4212         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4213         builtins.
4214         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4215         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4216         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4217         V8QImode cases.
4218         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4219         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4220         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4221         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4222         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4223         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4224         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4225         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4226         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4227         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4228         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4229         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4230         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4231         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4232         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4233         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4234         (mips_builtins): Add Loongson builtins.
4235         (mips_loongson_2ef_bdesc): New.
4236         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4237         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4238         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4239         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4240         New.
4241         (mips_expand_vector_init): New.
4242         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4243         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4244         if appropriate.
4245         * config/mips/mips.md: Add unspec numbers for Loongson
4246         builtins.  Include loongson.md.
4247         (MOVE64): Include Loongson vector modes.
4248         (SPLITF): Include Loongson vector modes.
4249         (HALFMODE): Handle Loongson vector modes.
4250         * config/mips/loongson.md: New.
4251         * config/mips/loongson.h: New.
4252         * config.gcc: Add loongson.h header for mips*-*-* targets.
4253         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4254
4255 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4256
4257         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4258         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4259         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4260         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4261         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4262         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4263         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4264         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4265         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4266         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4267         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4268         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4269         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4270         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4271         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4272         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4273         Remove use_fixproto=yes.
4274         (ia64*-*-hpux*): Remove comment about using fixproto.
4275         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4276
4277 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4278
4279         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4280         library rebuilds.
4281         * configure: Regenerate.
4282
4283 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4284
4285         PR middle-end/36520
4286         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4287         before evaluating it.
4288
4289 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4290
4291         PR c/36507
4292         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4293         nested inline functions.
4294         (start_decl, start_function): Don't invert DECL_EXTERNAL
4295         for nested inline functions.
4296
4297 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4298
4299         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4300         splits that must be made for correctness.
4301
4302 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4303
4304         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4305         (AVAIL_NON_MIPS16): Likewise.
4306         (mips_builtin_description): Replace target_flags with a predicate.
4307         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4308         (dspr2_32): New availability predicates.
4309         (MIPS_BUILTIN): New macro.
4310         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4311         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4312         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4313         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4314         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4315         (mips_dsp_32only_bdesc): Merge into...
4316         (mips_builtins): ...this new array.
4317         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4318         (mips_init_builtins): Update after above changes.
4319         (mips_expand_builtin_1): Merge into...
4320         (mips_expand_builtin): ...here and update after above changes.
4321
4322 2008-06-12  Paul Brook  <paul@codesourcery.com>
4323
4324         * longlong.h (__arm__): Define count_leading_zeros.
4325         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4326         (clzsi2, clzdi2): New functions.
4327         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4328         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4329         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4330         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4331         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4332         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4333         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4334         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4335         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4336         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4337
4338 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4339
4340         * config/m68k/m68k.c (m68k_tune_flags): New.
4341         (override_options): Compute m68k_tune_flags.
4342         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4343         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4344
4345 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4346
4347         PR middle-end/36506
4348         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4349
4350 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4351
4352         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4353         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4354
4355 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4356
4357         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4358         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4359
4360 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4361
4362         PR middle-end/36506
4363         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4364         reductions.
4365
4366 2008-06-12  Richard Guenther  <rguenther@suse.de>
4367
4368         PR tree-optimization/36345
4369         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4370         add memory_tag_needed flag.
4371         (may_alias_p): Declare.
4372         * tree-ssa-alias.c (may_alias_p): Export.
4373         (set_initial_properties): Use memory_tag_needed flag.
4374         (update_reference_counts): Likewise.
4375         (reset_alias_info): Reset memory_tag_needed flag.
4376         (create_name_tags): Check memory_tag_needed flag.
4377         (dump_points_to_info_for): Dump it.
4378         * tree-ssa-structalias.c (struct variable_info): Remove
4379         directly_dereferenced flag.
4380         (new_var_info): Do not initialize it.
4381         (process_constraint_1): Do not set it.
4382         (update_alias_info): Set is_dereferenced flag.
4383         (set_uids_in_ptset): Use may_alias_p.
4384         (set_used_smts): Check memory_tag_needed flag.
4385         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4386         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4387         memory_tag_needed flag.
4388         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4389         from broken design.
4390
4391 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4392
4393         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4394         red zone for w64 abi.
4395         (ix86_expand_prologue): Likewise.
4396         (ix86_force_to_memory): Likewise.
4397         (ix86_free_from_memory): Likewise.
4398
4399 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4400
4401         PR target/36425
4402         * config/rs6000/rs6000.c (rs6000_override_options): Set
4403         rs6000_isel conditionally to the absence of comand line override.
4404         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4405         Remove duplicate rs6000_isel setting.
4406         * config/rs6000/eabispe.h: Ditto.
4407
4408 2008-06-11  Richard Guenther  <rguenther@suse.de>
4409
4410         * alias.c (get_alias_set): Use the element alias-set for arrays.
4411         (record_component_aliases): For arrays and vectors do nothing.
4412         * c-common.c (strict_aliasing_warning): Handle the cases
4413         of alias set zero explicitly.
4414         * Makefile.in (dfp.o-warn): Add -Wno-error.
4415
4416 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4417
4418         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4419         tune_32 tune_64.
4420         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4421         tune_32 tune_64 to supported_defaults.  Allow values not
4422         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4423         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4424         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4425         with_cpu_64 to generic for 64-bit-supporting configurations, not
4426         with_cpu.  Remove FIXMEs.
4427         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4428         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4429         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4430         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4431         arch_32 and arch_64.
4432
4433 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4434             Olivier Hainque  <hainque@adacore.com>
4435
4436         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4437         Use DECL_SIZE_UNIT to retrieve the size of the field.
4438
4439 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4440
4441         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4442         with function calls after declarations.  Lay out
4443         neon_float_type_node before further use.
4444
4445 2008-06-11  Richard Guenther  <rguenther@suse.de>
4446
4447         * tree-flow.h (may_point_to_global_var): Declare.
4448         * tree-ssa-alias.c (may_point_to_global_var): New function.
4449         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4450
4451 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4452
4453         * configure.ac: Teach that fido supports .debug_line.
4454         * configure: Regenerate.
4455
4456 2008-06-10  Tom Tromey  <tromey@redhat.com>
4457
4458         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4459         debug hook.
4460
4461 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4462
4463         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4464         (encode_decimal64, decode_decimal64, encode_decimal128,
4465         decode_decimal128): Reverse order of 32-bit parts of value if host
4466         and target endianness differ.
4467
4468 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4469
4470         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4471         Avoid division by 0.
4472         (tree_mod_pow2_value_transform): Likewise.
4473         (tree_ic_transform): Likewise.
4474         (tree_stringops_transform): Likewise.
4475         (tree_mod_subtract_transform): Likewise.
4476         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4477         (copy_edges_for_bb): Likewise.
4478         (initialize_cfun): Likewise.
4479
4480 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4481
4482         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4483         nonmemory_operand. Add "N" operand constraint.
4484         (*btsi): Ditto.
4485         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4486         (*jcc_btsi_mask): Ditto.
4487         (*jcc_btsi_mask_1): Ditto.
4488
4489 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4490
4491         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4492         TYPE_CANONICAL for copied element type.
4493
4494 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4495
4496         PR target/36473
4497         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4498         Add m_CORE2 and m_GENERIC.
4499         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4500         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4501         (*btsi): Ditto.
4502         (*jcc_btdi_rex64): New instruction and split pattern.
4503         (*jcc_btsi): Ditto.
4504         (*jcc_btsi_1): Ditto.
4505         (*btsq): Fix Intel asm dialect operand order.
4506         (*btrq): Ditto.
4507         (*btcq): Ditto.
4508
4509 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4510
4511         PR middle-end/36447
4512         * simplify-rtx.c (simplify_subreg): Add check for shift count 
4513         greater than size.
4514
4515 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4516
4517         * doc/md.texi: Synchronize with later constraints.md change.
4518         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4519         with a C implementation.
4520         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4521         MFLO handling.
4522         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4523         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4524         when moving to and from MD_REGNUM.
4525         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4526         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4527         Handle byte and halfword moves.
4528         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4529         separately.
4530         * config/mips/constraints.md (h): Turn into NO_REGS.
4531         (l, x): Update documentation.
4532         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4533         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4534         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4535         (HILO): New mode iterator.
4536         (MOVE128): Add TI.
4537         (any_div): New code iterator.
4538         (u): Extend code attribute to div and udiv.
4539         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4540         d_operand in the splitters.  Remove redundant CONST_INT checks.
4541         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4542         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4543         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4544         accordingly, using normal moves instead of unspecs to move LO into
4545         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4546         (<u>mulsidi3): Handle expansion in C code.
4547         (<u>mulsidi3_32bit_internal): Rename to...
4548         (<u>mulsidi3_32bit): ...this.
4549         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4550         (*<u>mulsidi3_64bit): Rename to...
4551         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4552         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4553         to set LO and HI to the multiplication result.  Use a normal move
4554         for MFLO and an unspec for MFHI.
4555         (*<u>mulsidi3_64bit_parts): Replace with...
4556         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4557         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4558         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4559         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4560         instead of HI.  Split the instruction into a separate multiplication
4561         and MFHI if !TARGET_FIX_R4000.
4562         (<su>muldi3_highpart): Likewise.
4563         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4564         and the "=h" clobber.
4565         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4566         (<u>mulditi3): New expander.
4567         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4568         (madsi): Remove "=h" clobber.
4569         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4570         Force the modulus result to be a GPR and split the instruction into
4571         a division followed by an MFHI after reload.
4572         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4573         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4574         the MIPS16 HIGH define_split.
4575         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4576         of acc<->gpr moves to "multi".
4577         (*movdi_64bit): Replace the single "x" alternative with
4578         alternatives for moving into and out of "a".
4579         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4580         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4581         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4582         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4583         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4584         (movti): New expander.
4585         (*movti, *movti_mips16): New insns.
4586         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4587         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4588         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4589         * config/mips/predicates.md (fpr_operand): Delete.
4590         (d_operand): New predicate.
4591
4592 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4593
4594         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4595         failure on some Bourne shells.
4596         (x86_64-*-*): Ditto.
4597
4598 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4599
4600         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4601
4602 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4603
4604         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4605         (sparc-sun-solaris2*): Likewise.
4606
4607 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4608
4609         * doc/install.texi: Update requirements to build the Ada compiler.
4610
4611 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4612
4613         * df-scan.c (struct df_scan_problem_data): Remove the
4614         mw_link_pool alloc pool.
4615         (df_scan_free_internal): Don't free it.
4616         (df_scan_alloc): Don't allocate it.
4617         * df.h (struct df_link): Update comment.
4618
4619 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4620
4621         * except.h: Correct checks for when SJLJ exceptions must be used.
4622
4623 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4624
4625         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4626         default.
4627         
4628 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4629
4630         PR tree-optimization/36218
4631         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4632         configure for the build system.
4633         (BUILD_LDFLAGS): Define.
4634         * configure: Regenerate.
4635         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4636
4637 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4638
4639         PR target/36424
4640         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4641         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
4642         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
4643
4644 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4645
4646         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4647
4648 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4649
4650         * config.gcc (Obsolete configurations): Remove list of
4651         configurations.
4652         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4653         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4654         targets matched by those patterns.
4655         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4656         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4657         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4658         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4659         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4660         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4661         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4662         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4663         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4664         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4665         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4666         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4667         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4668         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4669         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4670         Make code for Solaris 7 and greater unconditional for Solaris.
4671         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4672         Remove --with-* handling.
4673         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4674         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4675         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4676         LINK_OS_WINDISS_SPEC): Remove.
4677         * config/rs6000/sysv4.opt (mwindiss): Remove.
4678         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4679         * configure: Regenerate.
4680         * doc/cpp.texi: Don't mention BeOS.
4681         * doc/extend.texi (interrupt): Don't mention MS1.
4682         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4683         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4684         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4685         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4686         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4687         Remove.
4688         * doc/invoke.texi (MT Options): Remove.
4689         (-mwindiss): Remove.
4690         (CRIS Options): Remove cris-axis-aout references.
4691         (HPPA Options): Don't mention hppa1.1-*-pro.
4692         * doc/md.texi: (MorphoTech family): Remove.
4693         * libgcc2.c: Don't handle UWIN.
4694         * config/alpha/t-unicosmk: Remove.
4695         * config/alpha/unicosmk.h: Remove.
4696         * config/arm/kaos-arm.h: Remove.
4697         * config/arm/kaos-strongarm.h: Remove.
4698         * config/arm/strongarm-coff.h: Remove.
4699         * config/arm/strongarm-elf.h: Remove.
4700         * config/arm/strongarm-pe.h: Remove.
4701         * config/arm/t-strongarm-pe: Remove.
4702         * config/arm/t-xscale-coff: Remove.
4703         * config/arm/t-xscale-elf: Remove.
4704         * config/arm/xscale-coff.h: Remove.
4705         * config/arm/xscale-elf.h: Remove.
4706         * config/chorus.h: Remove.
4707         * config/cris/aout.h: Remove.
4708         * config/cris/aout.opt: Remove.
4709         * config/cris/t-aout: Remove.
4710         * config/i386/beos-elf.h: Remove.
4711         * config/i386/kaos-i386.h: Remove.
4712         * config/i386/ptx4-i.h: Remove.
4713         * config/i386/sco5.h: Remove.
4714         * config/i386/sco5.opt: Remove.
4715         * config/i386/sysv4-cpp.h: Remove.
4716         * config/i386/sysv5.h: Remove.
4717         * config/i386/t-beos: Remove.
4718         * config/i386/t-sco5: Remove.
4719         * config/i386/t-uwin: Remove.
4720         * config/i386/uwin.asm: Remove.
4721         * config/i386/uwin.h: Remove.
4722         * config/kaos.h: Remove.
4723         * config/mips/windiss.h: Remove.
4724         * config/mt: Remove directory.
4725         * config/pa/pa-osf.h: Remove.
4726         * config/pa/pa-pro-end.h: Remove.
4727         * config/pa/t-pro: Remove.
4728         * config/ptx4.h: Remove.
4729         * config/rs6000/beos.h: Remove.
4730         * config/rs6000/kaos-ppc.h: Remove.
4731         * config/rs6000/t-beos: Remove.
4732         * config/rs6000/windiss.h: Remove.
4733         * config/sh/kaos-sh.h: Remove.
4734         * config/sol2-6.h: Remove.
4735         * config/sparc/sol26-sld.h: Remove.
4736         * config/sparc/sysv4-only.h: Remove.
4737         * config/vax/bsd.h: Remove.
4738         * config/vax/t-memfuncs: Remove.
4739         * config/vax/ultrix.h: Remove.
4740         * config/vax/vaxv.h: Remove.
4741         * config/windiss.h: Remove.
4742
4743 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
4744
4745         PR rtl-optimization/36438
4746         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4747         for vector shifts with constant scalar shift operands.
4748
4749 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
4750
4751         * doc/invoke.texi: Document -march=xlr.
4752         * config/mips/xlr.md: New file.
4753         * config/mips/mips.md: Include it.
4754         (cpu): Add "xlr".
4755         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4756         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4757         (mips_rtx_cost_data): Likewise.
4758
4759 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
4760
4761         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4762         PRE_INC and PRE_DEC cases.
4763
4764 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4765
4766         PR rtl-optimization/36419
4767         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4768         the emitting jump insn.
4769
4770         PR target/36362
4771         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4772         is not bool, boolify the whole *expr_p and convert to the desired type.
4773
4774 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4775
4776         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4777         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4778         Add omp_private_outer_ref hook, add another argument to
4779         omp_clause_default_ctor hook.
4780         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4781         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4782         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4783         hook_tree_tree_tree_tree_null.
4784         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4785         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4786         * hooks.c (hook_tree_tree_tree_tree_null): New function.
4787         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4788         * tree.def (OMP_TASK): New tree code.
4789         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4790         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4791         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4792         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4793         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4794         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4795         OMP_CLAUSE_COLLAPSE_EXPR): Define.
4796         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4797         (OMP_DIRECTIVE_P): Add OMP_TASK.
4798         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4799         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4800         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4801         and OMP_CLAUSE_UNTIED entries.
4802         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
4803         num_ops to 2.
4804         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4805         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4806         * tree-pretty-print.c (dump_omp_clause): Handle
4807         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4808         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4809         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4810         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
4811         warning about unsigned iterators.  Change decl/init/cond/incr
4812         arguments to TREE_VECs, check arguments for all collapsed loops.
4813         (c_finish_omp_taskwait): New function.
4814         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4815         ws_clauses.
4816         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
4817         default_function_array_conversion on init.  Add par_clauses argument.
4818         If decl is present in parallel's lastprivate clause, change it to
4819         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4820         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
4821         collapse count in clauses.
4822         (c_parser_omp_for, c_parser_omp_parallel): Adjust
4823         c_parser_omp_for_loop callers.
4824         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4825         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4826         (c_parser_omp_clause_name): Handle collapse and untied clauses.
4827         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4828         functions.
4829         (c_parser_omp_clause_schedule): Handle schedule(auto).
4830         Include correct location in the error message.
4831         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4832         and PRAGMA_OMP_CLAUSE_UNTIED.
4833         (OMP_TASK_CLAUSE_MASK): Define.
4834         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4835         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4836         * tree-nested.c (convert_nonlocal_omp_clauses,
4837         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4838         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4839         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4840         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4841         OMP_CLAUSE_DECL.
4842         (conver_nonlocal_reference, convert_local_reference,
4843         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
4844         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4845         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4846         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4847         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4848         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4849         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4850         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4851         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4852         OMP_CLAUSE_UNTIED.
4853         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4854         * c-common.h (c_finish_omp_taskwait): New prototype.
4855         * gimple-low.c (lower_stmt): Handle OMP_TASK.
4856         * tree-parloops.c (create_parallel_loop): Create 1 entry
4857         vectors for OMP_FOR_{INIT,COND,INCR}.
4858         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4859         (make_edges): Handle OMP_TASK.
4860         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4861         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4862         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4863         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4864         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4865         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4866         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4867         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4868         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4869         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4870         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4871         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4872         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4873         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4874         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4875         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4876         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4877         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4878         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4879         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4880         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4881         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4882         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4883         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4884         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4885         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4886         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
4887         original iterator is present in lastprivate clause or if
4888         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
4889         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4890         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4891         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4892         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4893         if it is set, lookup var in outer contexts too.  Handle
4894         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
4895         to be implicitly determined firstprivate for task regions.
4896         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4897         if it is set, lookup var in outer contexts too.  Set
4898         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4899         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4900         OMP_CLAUSE_UNTIED.  Take region_type as last argument
4901         instead of in_parallel and in_combined_parallel.
4902         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4903         Adjust callers.
4904         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4905         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
4906         (new_omp_context): Set default_kind to
4907         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4908         (omp_region_type): New enum.
4909         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4910         fields, add region_type.
4911         (new_omp_context): Take region_type as argument instead of is_parallel
4912         and is_combined_parallel.
4913         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4914         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4915         ctx->is_combined_parallel checks.
4916         (gimplify_omp_task): New function.
4917         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4918         OMP_CLAUSE_UNTIED.
4919         * omp-low.c (extract_omp_for_data): Use schedule(static)
4920         for schedule(auto).  Handle pointer and unsigned iterators.
4921         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
4922         Add loops argument.  Extract data for collapsed OMP_FOR loops.
4923         (expand_parallel_call): Assert sched_kind isn't auto,
4924         map runtime schedule to index 3.
4925         (struct omp_for_data_loop): New type.
4926         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4927         Add loop, loops, collapse and iter_type fields.
4928         (workshare_safe_to_combine_p): Disallow combined for if
4929         iter_type is unsigned long long.  Don't combine collapse > 1 loops
4930         unless all bounds and steps are constant.  Adjust extract_omp_for_data
4931         caller.
4932         (expand_omp_for_generic): Handle pointer, unsigned and long long
4933         iterators.  Handle collapsed OMP_FOR loops.  Adjust
4934         for struct omp_for_data changes.  If libgomp function doesn't return
4935         boolean_type_node, add comparison of the return value with 0.
4936         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4937         pointer, unsigned and long long iterators.  Adjust for struct
4938         omp_for_data changes.
4939         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4940         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
4941         unsigned long long.  Allocate loops array, pass it to
4942         extract_omp_for_data.  For collapse > 1 loops use always
4943         expand_omp_for_generic.
4944         (omp_context): Add sfield_map and srecord_type fields.
4945         (is_task_ctx, lookup_sfield): New functions.
4946         (use_pointer_for_field): Use is_task_ctx helper.  Change first
4947         argument's type from const_tree to tree.  Clarify comment.
4948         In OMP_TASK disallow copy-in/out sharing.
4949         (build_sender_ref): Call lookup_sfield instead of lookup_field.
4950         (install_var_field): Add mask argument.  Populate both record_type
4951         and srecord_type if needed.
4952         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4953         in srecord_type.
4954         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4955         and DECL_FIELD_OFFSET.
4956         (scan_sharing_clauses): Adjust install_var_field callers.  For
4957         firstprivate clauses on explicit tasks allocate the var by value in
4958         record_type unconditionally, rather than by reference.
4959         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4960         Use is_taskreg_ctx instead of is_parallel_ctx.
4961         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4962         (create_omp_child_function_name): Add task_copy argument, use
4963         *_omp_cpyfn* names if it is true.
4964         (create_omp_child_function): Add task_copy argument, if true create
4965         *_omp_cpyfn* helper function.
4966         (scan_omp_parallel): Adjust create_omp_child_function callers.
4967         Rename parallel_nesting_level to taskreg_nesting_level.
4968         (scan_omp_task): New function.
4969         (lower_rec_input_clauses): Don't run constructors for firstprivate
4970         explicit task vars which are initialized by *_omp_cpyfn*.  
4971         Pass outer var ref to omp_clause_default_ctor hook if
4972         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4973         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4974         OMP_CLAUSE_REDUCTION_INIT.
4975         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4976         avoid duplicate setting of fields.  Handle
4977         OMP_CLAUSE_PRIVATE_OUTER_REF.
4978         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
4979         copy-out if TREE_READONLY, only copy-in.
4980         (expand_task_copyfn): New function.
4981         (expand_task_call): New function.
4982         (struct omp_taskcopy_context): New type.
4983         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4984         New functions.
4985         (lower_omp_parallel): Rename to...
4986         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
4987         Call create_task_copyfn if srecord_type is needed.  Adjust
4988         sender_decl type.
4989         (task_shared_vars): New variable.
4990         (check_omp_nesting_restrictions): Warn if work-sharing,
4991         barrier, master or ordered region is closely nested inside OMP_TASK.
4992         Add warnings for barrier if closely nested inside of work-sharing,
4993         ordered, or master region.
4994         (scan_omp_1): Call check_omp_nesting_restrictions even for
4995         GOMP_barrier calls.  Rename parallel_nesting_level to
4996         taskreg_nesting_level.  Handle OMP_TASK.
4997         (lower_lastprivate_clauses): Even if some lastprivate is found on a
4998         work-sharing construct, continue looking for them on parent parallel
4999         construct.
5000         (lower_omp_for_lastprivate): Add lastprivate clauses
5001         to the beginning of dlist rather than end.  Adjust for struct
5002         omp_for_data changes.
5003         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5004         not after it.  Handle collapsed OMP_FOR loops, adjust for
5005         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5006         (get_ws_args_for): Adjust extract_omp_for_data caller.
5007         (scan_omp_for): Handle collapsed OMP_FOR
5008         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5009         (lower_omp_single_simple): If libgomp function doesn't return
5010         boolean_type_node, add comparison of the return value with 0.
5011         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5012         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5013         (parallel_nesting_level): Rename to...
5014         (taskreg_nesting_level): ... this.
5015         (is_taskreg_ctx): New function.
5016         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5017         of is_parallel_ctx.
5018         (execute_lower_omp): Rename parallel_nesting_level to
5019         taskreg_nesting_level.
5020         (expand_omp_parallel): Rename to...
5021         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5022         Call omp_task_call for OMP_TASK regions.
5023         (expand_omp): Adjust caller, handle OMP_TASK.
5024         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5025
5026         * bitmap.c (bitmap_default_obstack_depth): New variable.
5027         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5028         if argument is NULL and bitmap_default_obstack is already initialized.
5029         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5030         at the end.
5031         * matrix-reorg.c (matrix_reorg): Likewise.
5032
5033 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5034
5035         * config/i386/i386.md (*indirect_jump): Macroize using P
5036         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5037         (*tablejump_1): Ditto.
5038         (*indirect_jump_rex64): Remove insn pattern.
5039         (*tablejump_1_rex64): Ditto.
5040         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5041         and eh_return_si insn patterns.
5042
5043 2008-06-06  Richard Guenther  <rguenther@suse.de>
5044
5045         * tree-ssa-structalias.c (merge_smts_into): Remove.
5046         (find_what_p_points_to): Do not bother to compute the
5047         points-to set for pt_anything pointers.
5048         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5049         for pt_anything pointers is ok.
5050
5051 2008-06-06  Jan Hubicka  <jh@suse.cz>
5052
5053         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5054
5055 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5056
5057         * cgraph.c: Fix typos in comments.
5058         (cgraph_availability_names): Fix string typo.
5059         * fold-const.c: Fix typos in comments.
5060         (fold_binary): Fix typo in warning.
5061         * genautomata.c: Fix typos in comments.
5062         (check_presence_pattern_sets): Fix typo in local variable.
5063         (output_description): Fix typo in output.
5064         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5065         * hwint.h: Likewise.
5066         * matrix-reorg.c (check_allocation_function): Likewise.
5067         * omega.c (smooth_weird_equations): Likewise.
5068         * auto-inc-dec.c: Fix typos in comments.
5069         * bb-reorder.c: Likewise.
5070         * builtins.c: Likewise.
5071         * c-common.c: Likewise.
5072         * c-cppbuiltin.c: Likewise.
5073         * c-parser.c: Likewise.
5074         * c-pretty-print.c: Likewise.
5075         * cfgcleanup.c: Likewise.
5076         * cfgexpand.c: Likewise.
5077         * cfghooks.c: Likewise.
5078         * cfglayout.c: Likewise.
5079         * cfgloopmanip.c: Likewise.
5080         * cgraphunit.c: Likewise.
5081         * coverage.c: Likewise.
5082         * dbxout.c: Likewise.
5083         * df-byte-scan.c: Likewise.
5084         * df-core.c: Likewise.
5085         * df-problems.c: Likewise.
5086         * df-scan.c: Likewise.
5087         * dfp.c: Likewise.
5088         * dominance.c: Likewise.
5089         * domwalk.c: Likewise.
5090         * dse.c: Likewise.
5091         * dwarf2out.c: Likewise.
5092         * emit-rtl.c: Likewise.
5093         * et-forest.c: Likewise.
5094         * function.c: Likewise.
5095         * function.h: Likewise.
5096         * gcc.c: Likewise.
5097         * gcov-io.c: Likewise.
5098         * gcov.c: Likewise.
5099         * gcse.c: Likewise.
5100         * genattrtab.c: Likewise.
5101         * ggc-page.c: Likewise.
5102         * gimplify.c: Likewise.
5103         * gthr-lynx.h: Likewise.
5104         * haifa-sched.c: Likewise.
5105         * ipa-cp.c: Likewise.
5106         * ipa-inline.c: Likewise.
5107         * ipa-prop.h: Likewise.
5108         * ipa-pure-const.c: Likewise.
5109         * ipa-struct-reorg.c: Likewise.
5110         * ipa-struct-reorg.h: Likewise.
5111         * ipa-type-escape.c: Likewise.
5112         * ipa.c: Likewise.
5113         * loop-doloop.c: Likewise.
5114         * mips-tfile.c: Likewise.
5115         * mkmap-flat.awk: Likewise.
5116         * mkmap-symver.awk: Likewise.
5117         * modulo-sched.c: Likewise.
5118         * omp-low.c: Likewise.
5119         * optabs.c: Likewise.
5120         * optabs.h: Likewise.
5121         * opts.c: Likewise.
5122         * passes.c: Likewise.
5123         * postreload-gcse.c: Likewise.
5124         * postreload.c: Likewise.
5125         * predict.c: Likewise.
5126         * pretty-print.h: Likewise.
5127         * profile.c: Likewise.
5128         * protoize.c: Likewise.
5129         * ra-conflict.c: Likewise.
5130         * real.c: Likewise.
5131         * recog.c: Likewise.
5132         * regclass.c: Likewise.
5133         * regs.h: Likewise.
5134         * reload.c: Likewise.
5135         * rtl-error.c: Likewise.
5136         * rtlanal.c: Likewise.
5137         * scan.h: Likewise.
5138         * sched-rgn.c: Likewise.
5139         * see.c: Likewise.
5140         * stmt.c: Likewise.
5141         * target.h: Likewise.
5142         * tree-dfa.c: Likewise.
5143         * tree-eh.c: Likewise.
5144         * tree-flow-inline.h: Likewise.
5145         * tree-inline.c: Likewise.
5146         * tree-into-ssa.c: Likewise.
5147         * tree-loop-distribution.c: Likewise.
5148         * tree-nested.c: Likewise.
5149         * tree-parloops.c: Likewise.
5150         * tree-pass.h: Likewise.
5151         * tree-pretty-print.c: Likewise.
5152         * tree-profile.c: Likewise.
5153         * tree-scalar-evolution.c: Likewise.
5154         * tree-sra.c: Likewise.
5155         * tree-ssa-alias-warnings.c: Likewise.
5156         * tree-ssa-ccp.c: Likewise.
5157         * tree-ssa-coalesce.c: Likewise.
5158         * tree-ssa-dom.c: Likewise.
5159         * tree-ssa-dse.c: Likewise.
5160         * tree-ssa-forwprop.c: Likewise.
5161         * tree-ssa-live.c: Likewise.
5162         * tree-ssa-live.h: Likewise.
5163         * tree-ssa-loop-im.c: Likewise.
5164         * tree-ssa-loop-ivopts.c: Likewise.
5165         * tree-ssa-loop-niter.c: Likewise.
5166         * tree-ssa-loop-prefetch.c: Likewise.
5167         * tree-ssa-phiopt.c: Likewise.
5168         * tree-ssa-phiprop.c: Likewise.
5169         * tree-ssa-sccvn.c: Likewise.
5170         * tree-ssa-ter.c: Likewise.
5171         * tree-ssa-threadupdate.c: Likewise.
5172         * tree-ssa.c: Likewise.
5173         * tree-vect-analyze.c: Likewise.
5174         * tree-vect-transform.c: Likewise.
5175         * tree-vectorizer.c: Likewise.
5176         * tree-vn.c: Likewise.
5177         * tree-vrp.c: Likewise.
5178         * tree.c: Likewise.
5179         * tree.def: Likewise.
5180         * tree.h: Likewise.
5181         * unwind-dw2-fde.c: Likewise.
5182         * unwind.inc: Likewise.
5183         * value-prof.c: Likewise.
5184         * vmsdbgout.c: Likewise.
5185
5186 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5187
5188         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5189         always place FP constants in the TOC for TARGET_POWERPC64.
5190         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5191
5192 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5193
5194         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5195         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5196         enable for TARGET_E500_DOUBLE.
5197         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5198         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5199         floating-point modes like integer modes for E500 double.
5200         (rs6000_legitimate_offset_address_p): Likewise.
5201         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5202         addressing for DDmode for E500 double.
5203         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5204         modes as using 64-bits of registers for E500 double.
5205         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5206         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5207         specially for E500 double.
5208         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5209         TDmode for E500 double.
5210         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5211         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5212         (rs6000_split_multireg_move): Do not handle TDmode specially for
5213         E500 double.
5214         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5215         using 64-bit registers for E500 double.
5216         (emit_frame_save): Do not handle DDmode specially for E500 double.
5217         (gen_frame_mem_offset): Likewise.
5218         (rs6000_function_value): Do not call spe_build_register_parallel
5219         for DDmode or TDmode.
5220         (rs6000_libcall_value): Likewise.
5221         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5222         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5223         for E500 double.
5224
5225 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5226
5227         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5228         in comments.
5229
5230 2008-06-04  Junjie Gu <jgu@tensilica.com>
5231
5232         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5233         comparison for frame pointers.
5234
5235 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5236
5237         PR target/27386
5238         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5239
5240 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5241
5242         PR target/30243
5243         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5244         register is already smaller or equal to required mode. 
5245
5246 2008-06-04  Xinliang David Li  <davidxl@google.com>
5247
5248         * tree-call-cdce.c: New file. 
5249         (cond_dead_built_in_calls): New static variable.
5250         (input_domain): New struct.
5251         (check_pow): New function.
5252         (check_builtin_call): Ditto.
5253         (check_target_format): Ditto.
5254         (is_call_dce_candidate): Ditto.
5255         (gen_one_condition): Ditto.
5256         (gen_conditions_for_domain): Ditto.
5257         (get_domain): Ditto.
5258         (gen_conditions_for_pow_cst_base): Ditto.
5259         (gen_conditions_for_pow_int_base): Ditto.
5260         (gen_conditions_for_pow): Ditto.
5261         (get_no_error_domain): Ditto.
5262         (gen_shrink_wrap_conditions): Ditto.
5263         (shrink_wrap_one_built_in_call): Ditto.
5264         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5265         (tree_call_cdce): Ditto.
5266         (gate_call_cdce): Ditto.
5267         (pass_call_cdce): New gimple pass.
5268         * passes.c: (init_optimization_passes): New pass.
5269         * tree-pass.h: New pass declaration.
5270         * opts.c (decode_options): New flag setting.
5271         * common.opt: Add -ftree-builtin-call-dce flag.
5272         * Makefile.in: Add new source file.
5273         * tempvar.def: New tv_id.
5274         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5275
5276 2008-06-04  Richard Guenther  <rguenther@suse.de>
5277
5278         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5279         (is_call_clobbered): Always check var_ann->call_clobbered.
5280         (mark_call_clobbered): Always set var_ann->call_clobbered.
5281         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5282         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5283         (reset_alias_info): Clear call clobbering info on MTAGs and
5284         globals as well.
5285         (set_pt_anything): Set pt_global_mem.
5286         (create_tag_raw): Adjust comment.
5287         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5288
5289 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5290             Maxim Kuvyrkov  <maxim@codesourcery.com>
5291
5292         * config/m68k/m68k.opt (mxgot): New option.
5293         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5294         (m68k_output_addr_const_extra): New.
5295         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5296         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5297         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5298         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5299
5300 2008-06-04  Richard Guenther  <rguenther@suse.de>
5301
5302         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5303         negative or non-representable offsets.
5304
5305 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5306
5307         * config/i386/i386.c (ix86_gen_leave): New.
5308         (ix86_gen_pop1): Likewise.
5309         (ix86_gen_add3): Likewise.
5310         (ix86_gen_sub3): Likewise.
5311         (ix86_gen_sub3_carry): Likewise.
5312         (ix86_gen_one_cmpl2): Likewise.
5313         (ix86_gen_monitor): Likewise.
5314         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5315         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5316         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5317         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5318         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5319         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5320         (ix86_expand_epilogue): Updated.
5321         (print_operand): Handle integer register operand for 'z'.
5322         (ix86_expand_strlensi_unroll_1): Likewise.
5323         (ix86_expand_strlen): Likewise.
5324         (ix86_expand_builtin): Likewise.
5325         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5326         mov{q}/mov{l} and add{q}/add{l}.
5327
5328 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5329
5330         * config/i386/i386.md (P): New mode iterator.
5331         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5332         using P mode iterator.
5333         (DFmode push_operand splitter): Ditto.
5334         (XFmode push_operand splitter): Ditto.
5335         (DFmode float_extend SFmode push_operand splitter): Ditto.
5336         (XFmode float_extend SFmode push_operand splitter): Do not generate
5337         SImode pushes for 64bit target.  Macroize Dimode and SImode
5338         pushes using P mode iterator.
5339         (XFmode float_extend DFmode push_operand splitter): Ditto.
5340
5341 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5342
5343         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5344         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5345         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5346         return type to int.
5347         (ix86_call_abi_override): Remove check for call_used_regs.
5348
5349 2008-06-03  Richard Guenther  <rguenther@suse.de>
5350
5351         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5352         for the lhs of calls if the return type contains pointers.
5353
5354 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5355
5356         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5357         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5358         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5359         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5360         of cfun and DEFAULT_ABI to deceide abi mode.
5361         (DEFAULT_ABI): New.
5362         (REG_PARM_STACK_SPACE): Removed.
5363         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5364         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5365         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5366         (ix86_function_abi): Likewise.
5367         (ix86_function_type_abi): Likewise.
5368         (ix86_call_abi_override): Likewise.
5369         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5370         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5371         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5372         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5373         specific defines.
5374         (X86_64_REGPARM_MAX): New.
5375         (X86_64_SSE_REGPARM_MAX): New.
5376         (X64_REGPARM_MAX): New.
5377         (X64_SSE_REGPARM_MAX): New.
5378         (X86_32_REGPARM_MAX): New.
5379         (X86_32_SSE_REGPARM_MAX): New.
5380         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5381         (ix86_function_regparm): Handle user calling abi.
5382         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5383         by DEFAULT_ABI versus SYSV_ABI check.
5384         (ix86_reg_parm_stack_space): New.
5385         (ix86_function_type_abi): New.
5386         (ix86_call_abi_override): New.
5387         (ix86_function_abi): New.
5388         (ix86_cfun_abi): New.
5389         (init_cumulative_args): Call abi specific initialization.
5390         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5391         (function_arg_64): Extend SSE_REGPARM_MAX check.
5392         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5393         (ix86_pass_by_reference): Likewise.
5394         (ix86_function_value_regno_p): Likewise.
5395         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5396         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5397         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5398         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5399         (setup_incoming_varargs_64): Adjust regparm for call abi.
5400         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5401         (ix86_va_start): Likewise.
5402         (ix86_gimplify_va_arg): Likewise.
5403         (ix86_expand_prologue): Likewise.
5404         (output_pic_addr_const): Likewise.
5405         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5406         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5407         (x86_output_mi_thunk): Likewise.
5408         (x86_function_profiler): Likewise.
5409         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5410         (SYSV_ABI, MS_ABI): New constants.
5411         (DEFAULT_ABI): New.
5412         (init_regs): Add prototype of function in regclass.c file.
5413         (OVERRIDE_ABI_FORMAT): New.
5414         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5415         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5416         (OUTGOING_REG_PARM_STACK_SPACE): New.
5417         (ix86_reg_parm_stack_space): New prototype.
5418         (CUMULATIVE_ARGS): Add call_abi member.
5419         (machine_function): Add call_abi member.
5420         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5421         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5422
5423 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
5424
5425         PR target/34879
5426         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5427         (avr_builtin_setjmp_frame_value): New function.
5428         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5429         (nonlocal_goto): Define.
5430
5431 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5432
5433         * config/mips/mips.c (mips_emit_loadgp): Return early if
5434         there is nothing do to, otherwise emit a blockage if
5435         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5436         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5437
5438 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5439
5440         * configure.ac: Drop unneeded backslash ending up in config.in.
5441         * acinclude.m4: Likewise.
5442         * config.in: Regenerate.
5443
5444 2008-05-26  Jan Hubicka  <jh@suse.cz>
5445
5446         * predict.c (maybe_hot_frequency_p): Break out of...
5447         (maybe_hot_bb_p): ... here.
5448         (maybe_hot_edge_p): New.
5449         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5450         * basic-block.h (maybe_hot_edge_p): Declare.
5451
5452 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5453
5454         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5455         (*cmpfp_<mode>_cc): Ditto.
5456         (*fp_jcc_8<mode>_387): Ditto.
5457         (*fop_<MODEF:mode>_2_i387): Ditto.
5458         (*fop_<MODEF:mode>_3_i387): Ditto.
5459         (*fop_xf_2_i387): Ditto.
5460         (*fop_xf_3_i387): Ditto.
5461
5462 2008-06-02  Tomas Bily  <tbily@suse.cz>
5463
5464         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5465
5466 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5467
5468         * config/mips/mips.c (mips_valid_offset_p): New function.
5469         (mips_valid_lo_sum_p): Likewise.
5470         (mips_classify_address): Use them.
5471         (mips_force_address): New function.
5472         (mips_legitimize_address): Use it.
5473         * config/mips/mips.md (MOVE128): New mode iterator.
5474         (movtf): Require TARGET_64BIT.  Remove empty strings.
5475         (*movtf_internal): Rename to...
5476         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5477         of "R" and use {,fp}{load,store} attributes instead of "multi".
5478         Use a separate define_split.
5479         (*movtf_mips16): New pattern.
5480
5481 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5482
5483         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5484         * config/mips/mips.c (mips_expand_before_return): New function.
5485         (mips_expand_epilogue): Call it.
5486         * config/mips/mips.md (return): Turn into a define_expand.
5487         (*return): New insn.
5488
5489 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5490
5491         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5492         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5493         functions.  Do not emit uses and clobbers of CONCATs; individually
5494         use and clobber their operands.
5495         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5496         gen_clobber, emit_use and gen_use.
5497         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5498         (expand_builtin_return): Likewise.
5499         * cfgbuild.c (count_basic_blocks): Likewise.
5500         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5501         * explow.c (emit_stack_restore): Likewise.
5502         * expmed.c (extract_bit_field_1): Likewise.
5503         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5504         (emit_move_multi_word, store_constructor): Likewise.
5505         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5506         (thread_prologue_and_epilogue_insns): Likewise.
5507         * lower-subreg.c (resolve_simple_move): Likewise.
5508         * optabs.c (widen_operand, expand_binop): Likewise.
5509         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5510         * reload.c (find_reloads): Likewise.
5511         * reload1.c (eliminate_regs_in_insn): Likewise.
5512         * stmt.c (expand_nl_goto_receiver): Likewise.
5513         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5514         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5515         * config/arm/arm.c (arm_load_pic_register): Likewise.
5516         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5517         * config/arm/arm.md (untyped_return): Likewise.
5518         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5519         * config/avr/avr.c (expand_prologue): Likewise.
5520         * config/bfin/bfin.c (do_unlink): Likewise.
5521         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5522         * config/cris/cris.c (cris_expand_prologue): Likewise.
5523         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5524         (machopic_legitimize_pic_address): Likewise.
5525         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5526         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5527         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5528         (ix86_expand_convert_uns_didf_sse): Likewise.
5529         (ix86_expand_vector_init_general): Likewise.
5530         * config/ia64/ia64.md (eh_epilogue): Likewise.
5531         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5532         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5533         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5534         (config/iq2000/iq2000.c): Likewise.
5535         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5536         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5537         (builtin_longjmp): Likewise.
5538         * config/mn10300/mn10300.md (call, call_value): Likewise.
5539         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5540         * config/pdp11/pdp11.md (abshi2): Likewise.
5541         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5542         * config/s390/s390.c (s390_emit_prologue): Likewise.
5543         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5544         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5545         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5546         * config/sh/sh.c (prepare_move_operands): Likewise.
5547         (output_stack_adjust, sh_expand_epilogue): Likewise.
5548         (sh_set_return_address, sh_expand_t_scc): Likewise.
5549         * config/sparc/sparc.c (load_pic_register): Likewise.
5550         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5551         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5552         * config/v850/v850.c (expand_epilogue): Likewise.
5553
5554 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5555
5556         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5557         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5558         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5559         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
5560         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
5561         stack pointer register.
5562         (output_movhi): Remove code for interrupt specific writing to the 
5563         stack pointer register.
5564
5565 2008-05-31  Richard Guenther  <rguenther@suse.de>
5566
5567         PR tree-optimization/34244
5568         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5569         (tree_expr_nonzero_warnv_p): Likewise.
5570         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5571         ssa_name_nonnegative_p.
5572         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5573         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5574         not tree_expr_nonzero_warnv_p.
5575
5576         PR tree-optimization/36262
5577         Revert
5578         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5579
5580         PR tree-optimization/34244
5581         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5582         (record_numbers_of_iterations): New function.
5583         (execute_vrp): Cache the numbers of iterations of loops.
5584         * tree-scalar-evolution.c (scev_reset_except_niters):
5585         New function.
5586         (scev_reset): Use scev_reset_except_niters.
5587         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5588
5589 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5590
5591         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5592         __WORKAROUND_RETS when appropriate.
5593
5594 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5595
5596         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5597         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5598         mode iterator.
5599         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5600         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5601         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5602         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5603         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5604         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5605         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5606         *fop_df_1_sse insn patterns using MODEF mode iterator.
5607         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5608         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5609         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5610         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5611         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5612         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5613         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5614         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5615         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5616         (*fop_xf_5_i387): Ditto.
5617         (*fop_xf_6_i387): Ditto.
5618
5619 2008-05-30  Richard Guenther  <rguenther@suse.de>
5620
5621         * builtins.c (build_string_literal): Avoid generating
5622         a non-gimple_val result.
5623
5624 2008-05-30  DJ Delorie  <dj@redhat.com>
5625
5626         * exec-tool.in: Use an environment variable (private) instead of a
5627         file (shared) as a semaphore, so as to not break parallel builds.
5628
5629 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5630
5631         * optabs.c (maybe_encapsulate_block): Remove.
5632         (emit_libcall_block): Adjust accordingly.
5633         * optabs.h (maybe_encapsulate_block): Remove prototype.
5634
5635         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5636         Don't use maybe_encapsulate_block.
5637
5638 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5639
5640         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5641         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5642         rtx is a SYMBOL_REF before calling get_pool_constant.
5643
5644 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5645
5646         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5647
5648 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5649
5650         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5651         rather than OS names to choose INO_T_EQ definition.
5652         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5653         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5654
5655 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5656
5657         PR target/36348
5658         * config/darwin-f.c: New.
5659         * config/t-darwin: Added rule to build darwin-f.o.
5660         * config.gcc: Defined new variable, fortran_target_objs.
5661         (*-*-darwin*): Set fortran_target_objs.
5662         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5663         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5664         * configure: Regenerated.
5665
5666 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5667
5668         PR target/35771
5669         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5670         canonical type if needed.
5671
5672 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
5673
5674         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5675
5676 2008-05-29  Richard Guenther  <rguenther@suse.de>
5677
5678         PR tree-optimization/36343
5679         PR tree-optimization/36346
5680         PR tree-optimization/36347
5681         * tree-flow.h (clobber_what_p_points_to): Declare.
5682         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5683         pointed-to variable is dereferenced is irrelevant to whether
5684         the pointer can access the pointed-to variable.
5685         (clobber_what_p_points_to): New function.
5686         * tree-ssa-alias.c (set_initial_properties): Use it.
5687         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5688         call clobber check for NMTs.
5689
5690 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5691         
5692         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5693         for printing gcov_type.
5694
5695 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5696
5697         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5698         and the eh region information.
5699         * value-prof.c (gimple_move_stmt_histograms): New function.
5700         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5701
5702 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
5703
5704         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5705
5706 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
5707
5708         * value-prof.c (tree_ic_transform): Print counts.
5709         * tree-profile.c (tree_gen_ic_func_profiler):
5710         Clear __gcov_indreict_call_callee variable to avoid misattribution
5711         of the profile.
5712
5713 2008-05-28  Rafael Espindola  <espindola@google.com>
5714
5715         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5716         invalid sharing.
5717
5718 2008-05-28  Richard Guenther  <rguenther@suse.de>
5719
5720         PR tree-optimization/36339
5721         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5722         and clobbering code out of the loop.
5723
5724 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5725
5726         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5727         letters defined.
5728
5729         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5730         s390_contiguous_bitmask_p, s390_symref_operand_p,
5731         s390_check_symref_alignment, s390_reload_larl_operand,
5732         s390_reload_symref_address): New functions.
5733         (s390_branch_condition_mnemonic): Support compare and branch
5734         instructions.
5735         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5736         and 'W' constraints.
5737         (s390_secondary_reload): Add secondary reloads for unaligned
5738         symbol refs or symbol refs to floating point or QI/TI mode
5739         integer values.
5740         (legitimate_address_p): Accept symbol references as addresses.
5741         (s390_expand_insv): Use rotate and insert selected bits
5742         instruction for insv when building for z10.
5743         (print_operand_address): Handle symbol ref addresses.
5744         (print_operand): Output modifier 'c' added for signed byte values.
5745         (s390_encode_section_info): Mark symbol refs with
5746         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5747
5748         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5749         (length attribute): RRF, RRR have 4 byte length.
5750         (FPALL, INTALL): New mode iterators added.
5751         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5752         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5753         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5754         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5755         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5756         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5757         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5758         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5759         instructions.
5760         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5761         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5762         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5763         reload<INTALL:mode><P:mode>_toreg_z10,
5764         reload<FPALL:mode><P:mode>_tomem_z10,
5765         reload<FPALL:mode><P:mode>_toreg_z10,
5766         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5767         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5768         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5769         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5770         definition.
5771         (movmem, clrmem, cmpmem): New splitters added.
5772
5773         * config/s390/predicates.md (larl_operand): Use
5774         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5775         SYMBOL_REF_ALIGN1_P.
5776         (s390_signed_integer_comparison,
5777         s390_unsigned_integer_comparison): New predicates.
5778
5779         * config/s390/s390-protos.h (s390_check_symref_alignment,
5780         s390_contiguous_bitmask_p, s390_reload_larl_operand,
5781         s390_reload_symref_address,
5782         s390_compare_and_branch_condition_mask): Prototypes added.
5783
5784         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5785         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5786         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5787
5788 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5789
5790         * config/s390/s390.c (z10_cost): New cost function for z10.
5791         (s390_handle_arch_option, override_options): Support -march=z10 switch.
5792         (s390_issue_rate): Adjust issue rate for z10.
5793         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5794         (processor_flags): Add PF_Z10.
5795         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5796         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5797         * gcc/config.gcc: Add z10.
5798
5799 2008-05-28  Richard Guenther  <rguenther@suse.de>
5800
5801         PR tree-optimization/36291
5802         * tree-flow. h (struct gimple_df): Remove var_anns member.
5803         * tree-flow-inline.h (gimple_var_anns): Remove.
5804         (var_ann): Simplify.
5805         * tree-dfa.c (create_var_ann): Simplify.
5806         (remove_referenced_var): Clear alias info from var_anns of globals.
5807         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5808         (delete_tree_ssa): Clear alias info from var_anns of globals.
5809         Do not free var_anns.
5810         (var_ann_eq): Remove.
5811         (var_ann_hash): Likewise.
5812
5813 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
5814
5815         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5816         and loongson2f entries.
5817         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5818         * config/mips/mips.h (processor_type): Add Loongson-2E
5819         and Loongson-2F entries.
5820         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5821         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5822         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5823         * doc/invoke.texi (MIPS Options): Document loongson2e
5824         and loongson2f processor names.
5825
5826 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5827
5828         PR target/35767
5829         PR target/35771
5830         * config/i386/i386.c (ix86_function_arg_boundary): Use
5831         alignment of canonical type.
5832         (ix86_expand_vector_move): Check unaligned memory access for
5833         all SSE modes.
5834
5835 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5836
5837         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5838         Moved to the front of file.
5839
5840 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
5841             H.J. Lu  <hongjiu.lu@intel.com>
5842
5843         * dwarf2out.c (current_fde): New.
5844         (add_cfi): Use it.
5845         (lookup_cfa:): Likewise.
5846         (dwarf2out_end_epilogue): Likewise.
5847         (dwarf2out_note_section_used): Likewise.
5848
5849 2008-05-27  Michael Matz  <matz@suse.de>
5850
5851         PR c++/27975
5852         * c.opt (Wenum-compare): New warning option.
5853         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
5854
5855 2008-05-27  Michael Matz  <matz@suse.de>
5856
5857         PR middle-end/36326
5858         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5859         non-BLKmode types.
5860         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5861         into memory as tail calls.
5862
5863 2008-05-27  Richard Guenther  <rguenther@suse.de>
5864
5865         PR tree-optimization/36339
5866         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5867         pointers cause all addressable variables to be call clobbered.
5868
5869 2008-05-27  Richard Guenther  <rguenther@suse.de>
5870
5871         PR tree-optimization/36245
5872         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5873
5874 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5875
5876         * config/s390/s390.md: Replace all occurences of the 'm'
5877         constraint with 'RT'.
5878
5879 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5880
5881         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5882         definitions added.
5883         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5884         "*movdi_64".
5885         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5886         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5887         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5888
5889 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5890
5891         * reload.c: (find_reloads): Skip alternatives according to the
5892         "enabled" attribute. Constify the constraint variable.
5893         * recog.c (get_attr_enabled): Add default implementation.
5894         (extract_insn): Set the alternative_enabled_p array
5895         in the recog_data struct.
5896         (preprocess_constraints, constrain_operands): Skip
5897         alternatives according to the "enabled" attribute
5898         * recog.h (struct recog_data): New field alternative_enabled_p.
5899         (skip_alternative): New inline function.
5900         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5901         (record_reg_classes): Skip alternative according to the
5902         "enabled" attribute.
5903
5904         * doc/md.texi: Add documention for the "enabled" attribute.
5905
5906 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5907
5908         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5909         * postreload.c (reload_cse_simplify_operands): Replace 'm'
5910         constraint with TARGET_MEM_CONSTRAINT.
5911         * recog.c (asm_operand_ok, preprocess_constraints,
5912         constrain_operands): Likewise.
5913         * regclass.c (record_reg_classes): Likewise.
5914         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5915         * reload1.c (maybe_fix_stack_asms): Likewise.
5916         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5917         * recog.h: Adjust comment.
5918         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5919         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5920         * doc/md.texi: Add a note to description of 'm' constraint.
5921         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5922
5923 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5924
5925         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5926         that the bitfield is of integral type before testing its precision.
5927
5928 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5929             Sa Liu  <saliu@de.ibm.com> 
5930
5931         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
5932         __modti3, __udivti3, __umodti3 and __udivmodti4.
5933         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5934         that implement TImode mul and div functions.
5935         * config/spu/multi3.c: New. Implement __multi3.
5936         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5937         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5938         functions on SPU.
5939
5940 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
5941
5942         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5943         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5944         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5945         tls_sysv_suffix): New mode and mode attribute iterators.
5946         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5947         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5948         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5949         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5950         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5951         iterators.
5952
5953 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5954
5955         PR tree-optimization/36329
5956         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5957         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5958         * cgraphbuild.c (initialize_inline_failed): Use the latter
5959         macro in lieu of the former.
5960         * ipa-inline.c (cgraph_mark_inline): Likewise.
5961         (cgraph_decide_inlining_of_small_function): Likewise.
5962         (cgraph_decide_inlining): Likewise.
5963         (cgraph_decide_inlining_incrementally): Likewise.
5964
5965 2008-05-26  Tristan Gingold  <gingold@adacore.com>
5966             Anatoly Sokolov  <aesok@post.ru>
5967
5968         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5969         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5970         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
5971         optimization for 'avr6' architecture.
5972
5973 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
5974
5975         PR target/34932
5976         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5977
5978 2008-05-26  Richard Guenther  <rguenther@suse.de>
5979
5980         * tree-ssa-sccvn.c (expr_has_constants): Declare.
5981         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5982
5983 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
5984
5985         PR middle-end/36253
5986         * caller-save.c (insert_restore): Verify alignment of spill space.
5987         (insert_save): Likewise.
5988         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5989         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5990         (STACK_SLOT_ALIGNMENT): Likewise.
5991         * function.c (LOCAL_ALIGNMENT): Removed.
5992         (get_stack_local_alignment): New.
5993         (assign_stack_local): Use it.  Set alignment on stack slot.
5994         (assign_stack_temp_for_type): Use get_stack_local_alignment.
5995         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5996         (STACK_SLOT_ALIGNMENT): New.
5997         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5998         stack slot in XFmode.
5999
6000         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6001
6002 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6003
6004         PR/36321
6005         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6006         argument operand in rax isn't removed.
6007
6008 2008-05-26  Richard Guenther  <rguenther@suse.de>
6009
6010         PR middle-end/36300
6011         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6012         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6013
6014 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6015
6016         PR bootstrap/36331
6017         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6018
6019 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6020
6021         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6022         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6023
6024 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6025
6026         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6027         build a trampoline if we don't want one.
6028         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6029         return zero for nested functions if we don't want a trampoline.
6030
6031 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6032
6033         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6034
6035 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6036
6037         PR fortran/18428
6038         * c.opt: Removed undocumented option '-lang-fortran'.
6039         * c-common.h: Removed global variable 'lang_fortran'.
6040         * c-opts.c (c_common_handle_option): Removed code to handle
6041         option '-lang-fortran'. Updated includes.
6042         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6043         definition of '__GFORTRAN__'.
6044         (define__GNUC__): Reimplemented to use BASEVER and
6045         cpp_define_formatted.
6046         (builtin_define_with_value_n): Removed.
6047         * c-incpath.h: Renamed to ...
6048         * incpath.h: ... this.
6049         * c-incpath.c: Renamed to ...
6050         * incpath.c: ... this. Updated includes.
6051         * fix-header.c: Updated includes.
6052         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6053         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6054         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6055
6056 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6057
6058         * tree.h: Update the table of flags used on tree nodes.
6059         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6060         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6061         (FORCED_LABEL): Add access check.
6062         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6063         (ASM_INPUT_P): Likewise.
6064         (ASM_VOLATILE_P): Likewise.
6065         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6066         (OMP_SECTION_LAST): Access private_flag directly.
6067         (OMP_RETURN_NOWAIT): Likewise.
6068         (OMP_PARALLEL_COMBINED): Likewise.
6069         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6070         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6071         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6072         deprecated_flag directly.
6073
6074 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6075
6076         * final.c (frame_pointer_needed): Removed.
6077         * flags.h (frame_pointer_needed): Likewise.
6078
6079         * function.h (rtl_data): Add frame_pointer_needed.
6080         (frame_pointer_needed): New.
6081
6082 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6083
6084         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6085
6086 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6087
6088         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6089         SRC is a REG.
6090
6091 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6092
6093         * c-common.c (strip_array_types): Move function to..
6094         * tree.c: ..here.
6095         (get_inner_array_type): Delete.
6096         * c-common.h (strip_array_types): Move declaration to..
6097         * tree.h: ..here.
6098         (get_inner_array_type): Delete.
6099         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6100         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6101         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6102         * config/pa/pa.c (emit_move_sequence): Likewise.
6103
6104 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6105
6106         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6107         attribute to 34.
6108
6109 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6110
6111         * function.c: Include target hook for nonlocal_goto frame value.
6112
6113 2008-05-24  Richard Guenther  <rguenther@suse.de>
6114
6115         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6116         variable can be only accessed through a pointer or a union.
6117
6118 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6119
6120         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6121         * doc/extend.texi: Likewise.
6122
6123 2008-05-23  DJ Delorie  <dj@redhat.com>
6124
6125         * config/m32c/jump.md (untyped_call): Add.
6126
6127         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6128         for A24 to PSImode.
6129         (m32c_address_cost): Detail costs for indirect offsets.
6130
6131 2008-05-23  Rafael Espindola  <espindola@google.com>
6132
6133         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6134         if a node is a SUBREG.
6135         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6136         is a SUBREG.
6137
6138 2008-05-23  Paul Brook  <paul@codesourcery.com>
6139             Carlos O'Donell  <carlos@codesourcery.com>
6140
6141         * doc/extend.texi: Clarify use of __attribute__((naked)).
6142         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6143         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6144         * function.c (use_register_for_decl): Use
6145         targetm.calls.allocate_stack_slots_for_args.
6146         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6147         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6148         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6149
6150 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6151
6152         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6153
6154 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6155
6156         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6157         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6158         is only rounded once.
6159
6160 2008-05-23  Richard Guenther  <rguenther@suse.de>
6161
6162         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6163
6164 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6165             Jakub Jelinek  <jakub@redhat.com>
6166
6167         PR target/36079
6168         * configure.ac: Handle --enable-cld.
6169         * configure: Regenerated.
6170         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6171         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6172         (ix86_current_function_needs_cld): New define.
6173         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6174         (cld): New isns pattern.
6175         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6176         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6177         * config/i386/i386.opt (mcld): New option.
6178         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6179         TARGET_CLD and ix86_current_function_needs_cld.
6180         (override_options): Use -mcld by default for 32-bit code if
6181         USE_IX86_CLD.
6182
6183         * doc/install.texi (Options specification): Document --enable-cld.
6184         * doc/invoke.texi (Machine Dependent Options)
6185         [i386 and x86-64 Options]: Add -mcld option.
6186         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6187
6188 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6189         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6190         (return_in_memory_64): Likewise.
6191         (return_in_memory_ms_64): Likewise.
6192
6193 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6194
6195         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6196         * builtins.c (fold_builtin_fpclassify): New.
6197         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6198         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6199         * c-common.c (handle_type_generic_attribute): Adjust to accept
6200         fixed arguments before an elipsis.
6201         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6202         * doc/extend.texi: Document __builtin_fpclassify.
6203
6204 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6205
6206         * omp-low.c (gate_expand_omp_ssa): Remove.
6207         (pass_expand_omp_ssa): Remove.
6208         (gate_expand_omp): Do not check for flag_openmp_ssa.
6209         * common.opt (-fopenmp-ssa): Remove.
6210         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6211
6212 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6213
6214         * config/sh/sh.opt (mfixed-range): New option.
6215         * config/sh/sh-protos.h (sh_fix_range): Declare.
6216         * config/sh/sh.c (sh_fix_range): New function.
6217         * config/sh/sh.h (sh_fixed_range_str): Declare.
6218         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6219         is not empty.
6220         * doc/invoke.texi (SH Options): Document -mfixed-range.
6221
6222 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6223
6224         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6225         it before the redeclaration.
6226
6227 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6228
6229         * config/avr/avr.c (get_sequence_length): Add new function.
6230         (expand_prologue, expand_epilogue): Remove duplicate code.
6231
6232 2008-05-22  Rafael Espindola  <espindola@google.com>
6233
6234         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6235         sharing.
6236
6237 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6238
6239         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6240         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6241
6242         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6243         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6244         (vect_update_misalignment_for_peel): Likewise.
6245         (vector_alignment_reachable_p): Likewise.
6246         * tree-vect-transform.c (vectorizable_load): Likewise.
6247         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6248         (get_vectype_for_scalar_type): Pass mode of scalar_type
6249         to UNITS_PER_SIMD_WORD.
6250
6251         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6252         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6253         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6254         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6255         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6256
6257 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6258
6259         PR tree-optimization/36293
6260         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6261         if the first load must be skipped because of a gap.
6262
6263 2008-05-22  Richard Guenther  <rguenther@suse.de>
6264
6265         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6266         more cases of offset disambiguation that is possible if
6267         strict-aliasing rules apply.
6268         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6269         for basic offset and type-based disambiguation.
6270
6271 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6272
6273         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6274         ix86_expand_vector_set on V16QImode for SSE4.1.
6275
6276 2008-05-21  Tom Tromey  <tromey@redhat.com>
6277
6278         * c.opt (Wimport): Mark as undocumented.
6279         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6280         -Wno-import.
6281         (Warning Options): Likewise.
6282         * doc/cppopts.texi: Don't mention -Wimport.
6283
6284 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6285
6286         PR tree-optimization/36287
6287         PR tree-optimization/36286
6288         * lambda-code.c (build_access_matrix): Do not use the loop->num
6289         for computing the number of induction variables: use the loop depth
6290         instead.
6291
6292 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6293
6294         PR/36280
6295         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6296         option -f(no-)leading-underscore.
6297
6298 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6299
6300         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6301         GET_MODE_NUNITS (mode).
6302
6303 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6304
6305         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6306         (-mmulhw): Add 464 to description.
6307         (-mdlmzb): Likewise.
6308         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6309         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6310         464fp entries.
6311         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6312         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6313         * config/rs6000/rs6000.md: Update comments for 464.
6314
6315 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6316
6317         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6318
6319 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6320
6321         * config/i386/sse.md (vec_extractv4sf): Removed.
6322         (vec_extractv2df): Likewise.
6323         (vec_extractv2di): Likewise.
6324         (vec_extractv4si): Likewise.
6325         (vec_extractv8hi): Likewise.
6326         (vec_extractv16qi): Likewise.
6327         (vec_extract<mode>): New.
6328
6329 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6330
6331         * config/i386/sse.md (vec_setv4sf): Removed.
6332         (vec_setv2df): Likewise.
6333         (vec_setv2di): Likewise.
6334         (vec_setv4si): Likewise.
6335         (vec_setv8hi): Likewise.
6336         (vec_setv16qi): Likewise.
6337         (vec_set<mode>): New.
6338
6339 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6340
6341         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6342         goto for vec_concat and vec_interleave.
6343
6344 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6345
6346         * config/i386/sse.md (vec_initv4sf): Removed.
6347         (vec_initv2df): Likewise.
6348         (vec_initv2di): Likewise.
6349         (vec_initv4si): Likewise.
6350         (vec_initv8hi): Likewise.
6351         (vec_initv16qi): Likewise.
6352         (vec_init<mode>): New.
6353
6354 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6355
6356         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6357
6358 2008-05-21  Tom Tromey  <tromey@redhat.com>
6359
6360         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6361         (zone_find_object_offset): Likewise.
6362         (gt_ggc_m_S): Likewise.
6363         (highest_bit): Likewise.
6364         * ggc-page.c (gt_ggc_m_S): New function.
6365         * stringpool.c (string_stack): Remove.
6366         (init_stringpool): Update.
6367         (ggc_alloc_string): Use ggc_alloc.
6368         (maybe_delete_ident): New function.
6369         (ggc_purge_stringpool): Likewise.
6370         (gt_ggc_m_S): Remove.
6371         * ggc-common.c (ggc_protect_identifiers): New global.
6372         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6373         ggc_protect_identifiers.
6374         * ggc.h (ggc_protect_identifiers): Declare.
6375         (gt_ggc_m_S): Update.
6376         (ggc_purge_stringpool): Declare.
6377         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6378         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6379         special case.
6380         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6381
6382 2008-05-21  David S. Miller  <davem@davemloft.net>
6383
6384         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6385         tmake_file.
6386
6387 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6388
6389         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6390         once finished.
6391
6392 2008-05-20  David Daney  <ddaney@avtrex.com>
6393
6394         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6395         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6396         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6397         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6398         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6399         (atomic_hiqi_op): New define_code_iterator.
6400         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6401         mips_expand_compare_and_swap_12.
6402         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6403         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6404         (sync_<optab><mode>, sync_old_<optab><mode>,
6405         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6406         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6407         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6408         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6409         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6410         (test_and_set_12): New insn.
6411         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6412         sync_new_<optab><mode>, sync_old_nand<mode>,
6413         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6414         clobber to operand 0 for SI and DI mode insns.
6415         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6416         mips_gen_fn_4): New typedefs.
6417         (mips_gen_fn_ptrs): Define new union type.
6418         (mips_expand_compare_and_swap_12): Remove declaration.
6419         (mips_expand_atomic_qihi): Declare function.
6420         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6421         (mips_expand_atomic_qihi): ... this.  Use new generator function
6422         parameter.
6423         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6424         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6425         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6426         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6427         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6428         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6429         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6430         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6431         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6432         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6433         New macros.
6434
6435 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6436
6437         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6438         the missing break.
6439
6440 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6441
6442         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6443         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6444         (avr_attribute_table): Add 'OS_main' function attribute.
6445         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6446         functions with 'OS_main' attribute.
6447
6448 2008-05-20  Richard Guenther  <rguenther@suse.de>
6449
6450         PR tree-optimization/35204
6451         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6452         helper, split out from ...
6453         (DFS): ... here.  Make the DFS walk non-recursive.
6454
6455 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6456             Jan Sjodin  <jan.sjodin@amd.com>
6457
6458         PR tree-optimization/36181
6459         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6460         (parallelize_loops): Don't parallelize when the loop has vector
6461         phi nodes.
6462
6463 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6464             Sebastian Pop  <sebastian.pop@amd.com>
6465
6466         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6467         matrix, and never look at the tree representation of the memory
6468         accesses.
6469         (linear_transform_loops): Computes parameters and access matrices.
6470         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6471         when fails.
6472         (access_matrix_get_index_for_parameter): New.
6473         * tree-data-ref.h (struct access_matrix): New.
6474         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6475         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6476         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6477         am_vector_index_for_loop): New.
6478         (struct data_reference): Add field access_matrix.
6479         (DR_ACCESS_MATRIX): New.
6480         (compute_data_dependences_for_loop): Update declaration.
6481         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6482         * lambda.h (lambda_vector_vec_p): Declared.
6483         * lambda-code.c: Depend on pointer-set.h.
6484         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6485         av_for_af_base, av_for_af, build_access_matrix,
6486         lambda_compute_access_matrices): New.
6487         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6488
6489 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6490
6491         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6492         $SOURCEDIR/include.
6493
6494 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6495             Sebastian Pop  <sebastian.pop@amd.com>
6496
6497         PR tree-optimization/36206
6498         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6499         FOLD_CONVERSIONS.
6500         (instantiate_scev_1): Rename flags to fold_conversions.
6501         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6502         outeside instantiation_loop.
6503         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6504         (evolution_function_is_affine_or_constant_p): Removed.
6505         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6506         instantiate_scev.
6507         (analyze_siv_subscript): Pass in the loop nest number.
6508         Call evolution_function_is_affine_in_loop instead of 
6509         evolution_function_is_affine_p.
6510         (analyze_overlapping_iterations): Pass in the loop nest number.
6511
6512 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6513             Sebastian Pop  <sebastian.pop@amd.com>
6514
6515         PR tree-optimization/36206
6516         * tree-chrec.h (chrec_fold_op): New.
6517         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6518         and other trees.
6519
6520 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6521
6522         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6523         (DIRS_EQ): New.
6524         (remove_duplicates): Do not set inode on non-inode systems.
6525         Use DIRS_EQ.
6526
6527 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6528
6529         * config.gcc (tm_file): Update comments about relative pathnames.
6530
6531 2008-05-20  Richard Guenther  <rguenther@suse.de>
6532
6533         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6534         * tree-ssa-sccvn.c (process_scc): Likewise.
6535         * tree-ssa-sink.c (execute_sink_code): Likewise.
6536         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6537         * tree-vrp.c (process_assert_insertions): Likewise.
6538         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6539         (perform_tree_ssa_dce): Likewise.
6540         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6541         (dump_dominator_optimization_stats): Likewise.
6542         * tree-vectorizer.c (vectorize_loops): Likewise.
6543
6544 2008-05-20  Richard Guenther  <rguenther@suse.de>
6545
6546         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6547
6548 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6549
6550         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6551         (ix86_i386elf_return_in_memory): Likewise.
6552         (ix86_i386interix_return_in_memory): Likewise.
6553         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6554         (SUBTARGET_RETURN_IN_MEMORY): New.
6555         * config/i386/i386elf.h: Likewise.
6556         * config/i386/ptx4-i.h: Likewise.
6557         * config/i386/sol2-10.h: Likewise.
6558         * config/i386/sysv4.h: Likewise.
6559         * config/i386/vx-common.h: Likewise.
6560         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6561         * config/i386/i386.c (ix86_return_in_memory): Made static and
6562         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6563         (ix86_i386elf_return_in_memory): Removed.
6564         (ix86_i386interix_return_in_memory): Removed.
6565         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6566         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6567
6568 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6569
6570         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6571
6572 2008-05-19  Xinliang David Li  <davidxl@google.com>
6573
6574         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
6575         * opts.c: Ditto.
6576         * common.opt: Ditto.
6577         * doc/invoke.texi: Ditto.
6578
6579 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6580
6581         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6582         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6583
6584 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6585
6586         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6587         sizes of operand array from 8/4 to 4/2.
6588         (ix86_expand_vector_init_general): Change size of operand array
6589         from 32 to 16.  Remove op0, op1 and half_mode.
6590
6591 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6592
6593         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6594         (ix86_expand_vector_init_interleave): Likewise.
6595         (ix86_expand_vector_init_general): Use them.  Assert
6596         word_mode == SImode when n_words == 4.
6597
6598 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6599
6600         * config/i386/i386.c (ix86_secondary_reload): New static function.
6601         (TARGET_SECONDARY_RELOAD): New define.
6602         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6603         * config/i386/i386.md (reload_outqi): Remove.
6604
6605 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6606
6607         PR middle-end/35509
6608         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6609         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6610         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6611         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6612         (fold_builtin_1): Likewise.
6613         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6614         c-common.c (check_builtin_function_arguments): Handle
6615         BUILT_IN_ISINF_SIGN.
6616         * doc/extend.texi: Document __builtin_isinf_sign.
6617         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6618
6619 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6620
6621         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6622         EH cleanup at the end of the pass, search for those that have been
6623         turned into forwarder blocks and do the cleanup on their successor.
6624
6625 2008-05-18  Richard Guenther  <rguenther@suse.de>
6626
6627         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6628         pointers to sizetype and vice versa.
6629
6630 2008-05-18 Xinliang David Li   <davidxl@google.com>
6631
6632         * gcc/tree-ssa-dce.c: Coding style fix.
6633         (check_pow): Documentation comment. 
6634         (check_log): Documenation comment. Coding style fix.
6635         (is_unnecessary_except_errno_call): Ditto.
6636         (gen_conditions_for_pow): Ditto.
6637         (gen_conditions_for_log): Ditto.
6638         (gen_shrink_wrap_conditions): Ditto.
6639         (shrink_wrap_one_built_in_calls): Ditto.
6640         * gcc/doc/invoke.texi: Better documentation string.
6641         * ChangeLog: Fix wrong change log entries from 
6642         May 17 checkin on function call DCE.
6643
6644 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6645
6646         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6647
6648 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6649
6650         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6651         * df-problems.c (simulation routines): Fixed block comment to
6652         properly say how to add forwards scanning functions.
6653         
6654 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6655
6656         * tree-inline.c (setup_one_parameter): Remove dead code.
6657
6658 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6659
6660         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6661         a BIT_AND_EXPR only for an INTEGER_TYPE.
6662
6663 2008-05-17 Xinliang David Li   <davidxl@google.com>
6664
6665         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6666         (check_pow, check_log, is_unnecessary_except_errno_call): New 
6667         functions to check for eliminating math functions that are pure 
6668         except for setting errno.
6669         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6670         general condition expressions for shrink-wrapping pow/log calls.
6671         (gen_shrink_wrap_conditions): Ditto.
6672         (shrink_wrap_one_built_in_call): Ditto.
6673         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6674         (mark_operand_necessary): If debugging, output if OP is necessary.
6675         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6676         unnecessary.
6677         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6678         opt level >= 2.
6679         * gcc/common.opt: New user flag -ftree-builtin-dce.
6680         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6681
6682 2008-05-16  David S. Miller  <davem@davemloft.net>
6683
6684         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6685         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6686
6687 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
6688
6689         PR target/36246
6690         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6691
6692 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6693
6694         * ifcvt.c (dead_or_predicable): Rename
6695         df_simulate_one_insn_backwards to df_simulate_one_insn.
6696         * recog.c (peephole2_optimize): Ditto.
6697         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6698         Ditto.
6699         * df.h: Rename df_simulate_one_insn_backwards to
6700         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
6701         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6702         scanning of defs and uses.
6703         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6704         (df_simulate_one_insn_forwards): Removed.
6705
6706 2008-05-16  Doug Kwan  <dougkwan@google.com>
6707
6708         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6709         QNaN & SNaN.
6710         (real_from_string): Handle NaNs and Inf as approriate.
6711
6712 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6713
6714         * doc/gty.texi (Source Files Containing Type Information): Note
6715         that headers should appear first in the gtfiles list.
6716
6717 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6718
6719         * tree.def (COND_EXEC): Properly documented this code.
6720
6721 2008-05-16  Diego Novillo  <dnovillo@google.com>
6722
6723         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6724         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6725         the new field.
6726
6727 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6728
6729         * tree-ssa-dse (max_stmt_uid): Removed.
6730         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
6731         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6732         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6733         * function.h (cfun.last_stmt_uid): New field.
6734         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6735         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6736         New functions.
6737         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6738         (create_stmt_ann): Initialize the ann->uid field.
6739         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6740         with new calls.
6741         * tree-flow.h (renumber_gimple_stmt_uids): New function.
6742
6743 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6744
6745         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6746         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6747         (init_empty_tree_cfg): Call it.
6748
6749 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6750
6751         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
6752         Update all users.
6753
6754 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6755
6756         * doc/invoke.text (-fdump-tree-*-verbose): New option.
6757         * tree-dump.c (dump_options): New verbose option.
6758         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6759         Add verbose dump.
6760         * tree-pass.h (TDF_VERBOSE): New dump flag.
6761         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6762         (tree-flow.h): Added include.
6763         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
6764
6765 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
6766
6767         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6768
6769         From Jie Zhang  <jie.zhang@analog.com>
6770         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6771         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6772         mcpu=bf561-none and mcpu=bf561-0.2.
6773         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6774         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6775         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6776         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6777         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6778         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6779         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
6780         option.
6781         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6782         (cputype_selected): Remove.
6783         (bfin_handle_option): Don't use cputype_selected.
6784         (override_options): When no mcpu option, enable all workarounds.
6785         Don't use bfin_workarounds.
6786         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6787         processor type.
6788         (DEFAULT_CPU_TYPE): Don't define.
6789
6790 2008-05-16  Richard Guenther  <rguenther@suse.de>
6791
6792         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6793         on deletion of the last stmt.
6794
6795 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6796
6797         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6798         V8HImode for SSE2 and V16QImode for SSE4.1.
6799
6800 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6801
6802         * cgraph.h (compute_inline_parameters): Made public.
6803         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6804         variable_generate_summary, function_write_summary,
6805         variable_write_summary, variable_read_summary.  Added generate_summary,
6806         write_summary, read_summary.
6807         * cgraphunit.c (cgraph_process_new_functions): Changed call from
6808         pass_ipa_inline.function_generate_summary, to
6809         compute_inline_parameters. 
6810         * ipa-inline.c (compute_inline_parameters): Made public and added
6811         node parameter.
6812         (compute_inline_parameters_for_current): New function.
6813         (pass_inline_param): Now calls compute_inline_parameters_for_current.
6814         (inline_generate_summary): Removed parameter and made to loop over
6815         all cgraph nodes.
6816         (pass_ipa_inline): Updated for new IPA_PASS structure.
6817         * passes.c (execute_ipa_summary_passes): Now is called once per
6818         pass rather than once per node*pass.
6819         
6820 2008-05-15  Anatoly Sokolov <aesok@post.ru>
6821
6822         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
6823         avr_have_mul_p, avr_asm_only_p): Remove variables.
6824         (avr_override_options): Remove initialization of removed variables.
6825         (avr_file_start):  Convert removed variables to fields of 
6826         'struct base_arch_s *avr_current_arch'. 
6827         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6828         (AVR_HAVE_MUL): (Ditto.).
6829         (AVR_HAVE_MOVW): (Ditto.).
6830         (AVR_HAVE_LPMX): (Ditto.). 
6831         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
6832         avr_asm_only_p): Remove declaration.
6833
6834 2008-05-15  Diego Novillo  <dnovillo@google.com>
6835
6836         * config/arm/arm.c (arm_return_in_memory): Fix return type.
6837         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6838
6839 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
6840
6841         PR middle-end/36194
6842         * combine.c (check_conversion): Rename back to check_promoted_subreg.
6843         Don't call record_truncated_value from here.
6844         (record_truncated_value): Turn it into a for_each_rtx callback.
6845         (record_truncated_values): New function.
6846         (combine_instructions): Call note_uses with record_truncated_values.
6847         Change name of check_conversion to check_promoted_subreg. 
6848
6849 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
6850
6851         * doc/sourcebuild.texi: Document support for torture tests.
6852
6853 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6854
6855         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6856         to alternative 4 of operand 2.
6857
6858 2008-05-15  Richard Guenther  <rguenther@suse.de>
6859
6860         * tree-pass.h (current_pass): Declare.
6861         (get_pass_for_id): Likewise.
6862         * passes.c (passes_by_id, passes_by_id_size): New globals.
6863         (set_pass_for_id): New function.
6864         (get_pass_for_id): Likewise.
6865         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6866         (execute_function_todo): Flush per function statistics.
6867         * toplev.c (compile_file): Init statistics.
6868         (general_init): Do early statistics initialization.
6869         (finalize): Finish statistics.
6870         * statistics.h (statistics_early_init): Declare.
6871         (statistics_init): Likewise.
6872         (statistics_fini): Likewise.
6873         (statistics_fini_pass): Likewise.
6874         (statistics_counter_event): Likewise.
6875         (statistics_histogram_event): Likewise.
6876         * statistics.c: New file.
6877         * Makefile.in (OBJS-common): Add statistics.o.
6878         (statistics.o): Add dependencies.
6879         * doc/invoke.texi (-fdump-statistics): Document.
6880
6881         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6882         (insert): Likewise.
6883         (execute_pre): Use statistics_counter_event.
6884         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6885         (substitute_and_fold): Increment it.  Use statistics_counter_event.
6886
6887 2008-05-15  Diego Novillo  <dnovillo@google.com>
6888
6889         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6890
6891         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6892         * tree-ssa-alias.c (new_type_alias): Remove references to
6893         sub-variables from comment.
6894         * tree-ssa-operands.c (swap_tree_operands): Likewise.
6895
6896 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6897
6898         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6899         attribute to 1 only for insertps alternative.
6900
6901 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
6902
6903         * config/bfin/bfin.md (loadbytes): New pattern.
6904         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6905         (bfin_init_builtins): Initialize it.
6906         (bdesc_1arg): Add it.
6907
6908 2008-05-15  Sa Liu  <saliu@de.ibm.com>
6909
6910         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6911         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6912         * testsuite/lib/target-supports.exp: Add
6913         check_effective_target_fortran_integer_16.
6914
6915 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
6916
6917         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6918         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6919         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
6920         (TARGET_RETURN_IN_MEMORY): Define.
6921
6922 2008-05-15  Richard Guenther  <rguenther@suse.de>
6923
6924         PR middle-end/36244
6925         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6926         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6927         represent unmodifiable vars.
6928
6929 2008-05-15  Richard Guenther  <rguenther@suse.de>
6930
6931         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6932         INDIRECT_REF and TARGET_MEM_REF.
6933         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6934         TARGET_MEM_REF.
6935
6936 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6937             H.J. Lu  <hongjiu.lu@intel.com>
6938
6939         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6940         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6941         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
6942         insn alternatives.  Add missing alternatives.
6943         (*vec_concatv2di_rex64_sse4_1): Likewise.
6944         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6945         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6946         Require TARGET_SSE.
6947
6948 2008-05-15  Richard Guenther  <rguenther@suse.de>
6949
6950         PR tree-optimization/36009
6951         PR tree-optimization/36204
6952         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6953         (determine_invariantness_stmt): Record the loop a store is
6954         always executed in.
6955         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6956         dependency.
6957
6958 2008-05-15  Richard Guenther  <rguenther@suse.de>
6959
6960         PR tree-optimization/34330
6961         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6962         through the pointer will alias the SMT.
6963
6964 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
6965
6966         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6967
6968 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6969
6970         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6971
6972 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6973             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6974
6975         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6976         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6977         (vashl_optab): New optab for vector/vector shifts.
6978         (vashr_optab): Ditto.
6979         (vlshr_optab): Ditto.
6980         (vrotl_optab): Ditto.
6981         (vrotr_optab): Ditto.
6982         (optab_subtype): New enum for optab_for_tree_code call.
6983         (optab_for_tree_code): Add enum optab_subtype argument.
6984
6985         * optabs.c (optab_for_tree_code): Take an additional argument to
6986         distinguish between a vector shift by a scalar and vector shift by
6987         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
6988         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
6989         vector shift by a vector.
6990         (expand_widen_pattern_expr): Pass additional argument to
6991         optab_for_tree_code.
6992
6993         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6994         vrotl_optab, vrotr_optab.
6995
6996         * expr.c (expand_expr_real_1): Update calls to
6997         optab_for_tree_code to distinguish between vector shifted by a
6998         scalar and vector shifted by a vector.
6999         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7000         (supportable_narrowing_operation): Ditto.
7001         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7002         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7003         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7004         (vect_create_epilog_for_reduction): Ditto.
7005         (vectorizable_reduction): Ditto.
7006         (vectorizable_operation): Ditto.
7007         (vect_strided_store_supported): Ditto.
7008         (vect_strided_load_supported): Ditto.
7009         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7010         * expmed.c (expand_shift): Ditto.
7011
7012         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7013         scalar type.
7014         (ashr@var{m}3): Ditto.
7015         (vashl@var{m}3): Document new vector/vector shift standard name.
7016         (vashr@var{m}3): Ditto.
7017         (vlshr@var{m}3): Ditto.
7018         (vrotl@var{m}3): Ditto.
7019         (vrotr@var{m}3): Ditto.
7020
7021         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7022         (PPERM_INVERT): Ditto.
7023         (PPERM_REVERSE): Ditto.
7024         (PPERM_REV_INV): Ditto.
7025         (PPERM_ZERO): Ditto.
7026         (PPERM_ONES): Ditto.
7027         (PPERM_SIGN): Ditto.
7028         (PPERM_INV_SIGN): Ditto.
7029         (PPERM_SRC1): Ditto.
7030         (PPERM_SRC2): Ditto.
7031
7032         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7033         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7034         allows a memory operand to be the value being added, and split it
7035         to improve vectorization.
7036         (sse5_pmacsdqh_mem): Ditto.
7037         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7038         (sse5_mulv2div2di3_high): Ditto.
7039         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7040         (vec_pack_trunc_v4si): Ditto.
7041         (vec_pack_trunc_v2di): Ditto.
7042         (sse5_pcmov_<mode>): Remove code that tried to use use
7043         andps/andnps instead of pcmov.
7044         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7045         pmacsdqh instructions.
7046         (vec_widen_smult_lo_v4si): Ditto.
7047
7048         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7049         (PPERM_INVERT): Ditto.
7050         (PPERM_REVERSE): Ditto.
7051         (PPERM_REV_INV): Ditto.
7052         (PPERM_ZERO): Ditto.
7053         (PPERM_ONES): Ditto.
7054         (PPERM_SIGN): Ditto.
7055         (PPERM_INV_SIGN): Ditto.
7056         (PPERM_SRC1): Ditto.
7057         (PPERM_SRC2): Ditto.
7058         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7059         true/false tests.
7060         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7061         comparisons.
7062         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7063         says ignore whether the last reference is a memory operand.
7064
7065 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7066             Paolo Bonzini <bonzini at gnu dot org>
7067
7068         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7069         shift patterns.
7070
7071         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7072         (vlshr<mode>3): Rename from vlshr<mode>3.
7073         (vashr<mode>3): Rename from vashr<mode>3.
7074         (mulv4sf3): Change the names of vector shift patterns.
7075         (mulv4si3): Ditto.
7076         (negv4sf2): Ditt.
7077
7078         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7079         shift insns.
7080
7081         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7082         (SI_SHLHI): Ditto.
7083         (SI_SHL): Ditto.
7084         (SI_SHLI): Ditto.
7085         (SI_ROTH): Ditto.
7086         (SI_ROTHI): Ditto.
7087         (SI_ROT): Ditto.
7088         (SI_ROTI): Ditto.
7089         (SPU_RL_0): Ditto.
7090         (SPU_RL_1): Ditto.
7091         (SPU_RL_2): Ditto.
7092         (SPU_RL_3): Ditto.
7093         (SPU_RL_4): Ditto.
7094         (SPU_RL_5): Ditto.
7095         (SPU_RL_6): Ditto.
7096         (SPU_RL_7): Ditto.
7097         (SPU_SL_0): Ditto.
7098         (SPU_SL_1): Ditto.
7099         (SPU_SL_2): Ditto.
7100         (SPU_SL_3): Ditto.
7101         (SPU_SL_4): Ditto.
7102         (SPU_SL_5): Ditto.
7103         (SPU_SL_6): Ditto.
7104         (SPU_SL_7): Ditto.
7105
7106         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7107         (floatunssidf2_internal): Change vector/vector shift names.
7108         (floatunsdidf2_internal): Ditto.
7109         (mulv8hi3): Ditto.
7110         (ashrdi3): Ditto.
7111         (ashrti3): Ditto.
7112         (cgt_df): Ditto.
7113         (cgt_v2df): Ditto.
7114         (dftsv): Ditto.
7115         (vashl<mode>3): Rename from ashl<mode>3.
7116         (vashr<mode>3): Rename from ashr<mode>3.
7117         (vlshr<mode>3): Rename from lshr<mode>3.
7118         (vrotl<mode>3): Rename from rotl<mode>3.
7119
7120 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7121
7122         PR target/36224
7123         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7124         multiply gives the wrong value when doing widening multiplies.
7125         (vec_widen_smult_lo_v4si): Ditto.
7126
7127 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7128
7129         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7130         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7131         emit_library_call_value. 
7132         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7133         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7134         * calls.c (initialize_argument_information, precompute_arguments, 
7135         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7136         (precompute_arguments): Removed flags parameter.
7137         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7138         
7139 2008-05-14  Richard Guenther  <rguenther@suse.de>
7140
7141         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7142         Make sure to register the store if the use is a PHI_NODE.
7143
7144 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7145
7146         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7147         memory if the component is to be referenced in BLKmode according
7148         to get_inner_reference.
7149
7150 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7151
7152         * calls.c (emit_library_call_value_1): Restore code clearing
7153         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7154
7155 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7156             Nicolas Roche  <roche@adacore.com>
7157
7158         * configure.ac: Add support for a "gcc_subdir" variable in
7159         config-lang.in, to denote a subdirectory where the language/GCC
7160         integration files are to be found.
7161         * configure: Regenerate.
7162
7163 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7164
7165         PR tree-optimization/36098
7166         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7167         value for the first load in the group in case of a gap.
7168         (vect_build_slp_tree): Check that there are no gaps in loads.
7169
7170 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7171
7172         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7173         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7174         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7175         emit_insn and remove unneeded code to construct extra args.
7176         (emit_no_conflict_block): Removed.
7177         * optabls.h: (emit_no_conflict_block): Removed.
7178         * cse.c (cse_extended_basic_block): Remove search for
7179         REG_NO_CONFLICT note.
7180         * global.c: Removed incorrect comment added in revision 117.
7181         * expr.c (convert_move): Change call to emit_no_conflict_block to
7182         emit_insn.
7183         * recog.c: Change comments so that they do not mention
7184         REG_NO_CONFLICT.
7185         * local_alloc.c (combine_regs): Removed last parameter.
7186         (no_conflict_p): Removed.
7187         (block_alloc): Removed note, no_conflict_combined_regno and set
7188         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7189         (combine_regs): Removed already_dead and code to look for
7190         REG_NO_CONFLICT notes.
7191         * lower_subreg (remove_retval_note): Removed code to look for
7192         REG_NO_CONFLICT block.
7193         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7194         (resolve_clobber): Remove code to process libcalls that have
7195         REG_NO_CONFLICT notes.
7196         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7197         case.
7198         * combine.c (can_combine_p, distribute_notes):  Removed
7199         REG_NO_CONFLICT case.
7200         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7201         to emit_insns.
7202         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7203         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7204         Ditto.
7205         * reg-notes.def (NO_CONFLICT): Removed.
7206
7207 2008-05-14  David S. Miller  <davem@davemloft.net>
7208
7209         * config/sparc/sparc.c (sparc_profile_hook): If
7210         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7211         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7212         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7213
7214 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7215
7216         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7217
7218 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7219
7220         PR target/36222
7221         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7222         and op1 expansion before vector concat to have less live pseudos.
7223
7224 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7225
7226         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7227         ix86_expand_vector_set if supported.
7228
7229 2008-05-13  Diego Novillo  <dnovillo@google.com>
7230             Kenneth Zadeck  <zadeck@naturalbridge.com>
7231
7232         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7233
7234         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7235         phinodes_print_statistics, init_ssanames, fini_ssanames,
7236         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7237         release_ssa_name, release_defs, replace_ssa_name_symbol,
7238         ssanames_print_statistics): Move ...
7239         * tree-flow.h: ... here.
7240         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7241         Use FN instead of cfun.
7242         (make_ssa_name_fn): Rename from make_ssa_name.
7243         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7244         * tree-flow-inline.h (make_ssa_name): Move from
7245         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7246         * omp-low.c (expand_omp_parallel):
7247         * tree-flow-inline.h (redirect_edge_var_map_result):
7248         * tree-ssa.c (init_tree_ssa): Add argument FN.
7249         Use it instead of cfun.  Update all users.
7250
7251 2008-05-13  Tom Tromey  <tromey@redhat.com>
7252
7253         PR preprocessor/22168:
7254         * doc/cpp.texi (Top): Update menu.
7255         (Alternatives to Wrapper #ifndef): New node.
7256         (Other Directives): Document deprecation.
7257         (Obsolete Features): Remove menu.
7258         (Assertions): Merge node into Obsolete Features.
7259         (Obsolete once-only headers): Move earlier; rename to Alternatives
7260         to Wrapper #ifndef.
7261         * doc/cppopts.texi: Update.
7262         * c.opt (Wdeprecated): Enable for C and ObjC.
7263         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7264         (C++ Dialect Options): Move -Wno-deprecated from here to...
7265         (Warning Options): ... here.
7266
7267 2008-05-13  Richard Guenther  <rguenther@suse.de>
7268
7269         PR middle-end/36227
7270         * fold-const.c (fold_sign_changed_comparison): Do not allow
7271         changes in pointer-ness.
7272
7273 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7274
7275         PR target/24713
7276         * config/sh/sh.c (sh_expand_prologue): Don't clear
7277         RTX_FRAME_RELATED_P for push insns.
7278
7279 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7280
7281         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7282
7283 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7284
7285         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7286         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7287         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7288
7289 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7290
7291         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7292         (*vec_concatv4sf_sse): This.
7293         (*sse2_concatv2si): Renamed to ...
7294         (*vec_concatv2si_sse2): This.
7295         (*sse1_concatv2si): Renamed to ...
7296         (*vec_concatv2si_sse): This.
7297         (*vec_concatv2di_rex): Renamed to ...
7298         (*vec_concatv2di_rex64): This.
7299         (*vec_concatv2si_sse4_1): New.
7300         (*vec_concatv2di_rex64_sse4_1): Likewise.
7301
7302 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7303
7304         PR rtl-optimization/36111
7305         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7306         that was created for swappable operands.
7307
7308 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7309
7310         PR ada/36001
7311         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7312         * configure.ac: Add call to ACX_PROG_GNAT.
7313
7314 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7315
7316         * optc-gen.awk: Fix comment typo.
7317
7318 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7319
7320         * pretty-print.c (pp_integer_with_precision): Use
7321         HOST_LONG_LONG_FORMAT.
7322
7323 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7324
7325         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7326                 
7327 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7328
7329         * config/i386/i386.c (bdesc_ptest): Removed.
7330         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7331         (bdesc_args): Add __builtin_ia32_ptestz128,
7332         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7333         (ix86_init_mmx_sse_builtins): Updated.
7334         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7335         (ix86_expand_builtin): Updated.
7336
7337 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7338
7339         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7340         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7341
7342 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7343
7344         * value-prof.c (interesting_stringop_to_profile): Do not
7345         return early for BUILT_IN_MEMPCPY.
7346
7347 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7348
7349         * calls.c (expand_call): Don't use callgraph to increase
7350         preferred_stack_boundary.
7351
7352         * cgraph.h (cgraph_rtl_info): Use unsigned on
7353         preferred_incoming_stack_boundary.
7354
7355         * final.c (rest_of_clean_state): Use unsigned on
7356         preferred_stack_boundary.
7357
7358 2008-05-09  Tom Tromey  <tromey@redhat.com>
7359
7360         PR preprocessor/22231:
7361         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7362         proceeding.
7363
7364 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7365
7366         PR tree-optimization/36129
7367         * tree-ssa-ccp.c: Include value-prof.h.
7368         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7369         built-in function was folded to a constant.
7370         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7371
7372 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7373             Sebastian Pop  <sebastian.pop@amd.com>
7374
7375         * tree-scalar-evolution.c: Document instantiate_scev.
7376         (instantiate_parameters_1): Renamed instantiate_scev_1.
7377         Don't use the same loop for instantiation_loop and evolution_loop.
7378         (instantiate_scev): New.
7379         (instantiate_parameters): Moved...
7380         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7381         same loop twice.  Maintains the semantics for this function.
7382         * tree-scalar-evolution.h (instantiate_scev): Declare.
7383         (instantiate_parameters): ...here.  Now static inline.
7384         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7385         instead of resolve_mixers.
7386
7387 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7388
7389         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7390
7391 2008-05-09  Tomas Bily  <tbily@suse.cz>
7392
7393         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7394         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7395         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7396         * c-common.c (c_common_truthvalue_conversion): Likewise.
7397         * tree-object-size.c (compute_object_offset): Likewise.
7398         * tree-inline.c (estimate_num_insns_1): Likewise.
7399         * varasm.c (const_hash_1, compare_constant, copy_constant)
7400         (compute_reloc_for_constant, output_addressed_constants)
7401         (initializer_constant_valid_p): Likewise.
7402         * c-omp.c (check_omp_for_incr_expr): Likewise.
7403         * gimplify.c (gimplify_expr): Likewise.
7404         * c-typeck.c (c_finish_return): Likewise.
7405         * tree-vectorizer.c (supportable_widening_operation)
7406         (supportable_narrowing_operation): Likewise.
7407         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7408         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7409         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7410         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7411         (descr_info_loc): Likewise.
7412         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7413         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7414         (fold_unary): Likewise.
7415         * builtins.c (get_pointer_alignment): Likewise.
7416         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7417         (instantiate_parameters_1): Likewise.
7418         * tree.c (expr_align, stabilize_reference): Likewise.
7419         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7420         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7421         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7422         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7423         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7424         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7425         Likewise.
7426         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7427         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7428         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7429         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7430         (forward_propagate_comparison)
7431         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7432         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7433         * emit-rtl.c (component_ref_for_mem_expr)
7434         (set_mem_attributes_minus_bitpos): Likewise.
7435         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7436         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7437         Likewise.
7438         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7439         (build_function_call, pointer_diff, build_compound_expr)
7440         (c_finish_return): Likewise.
7441         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7442         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7443         Likewise.
7444         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7445         * expr.c (is_aligning_offset): Likewise.
7446         * tree-ssa-alias.c (is_escape_site): Likewise.
7447         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7448         (check_all_va_list_escapes): Likewise.
7449         * tree-ssa-loop-ivopts.c (determine_base_object)
7450         (determine_common_wider_type): Likewise.
7451         * dojump.c (do_jump): Likewise.
7452         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7453         * tree-gimple.c (is_gimple_cast): Likewise.
7454         * fold-const.c (decode_field_reference, )
7455         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7456         (fold_binary): Likewise.
7457         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7458         (already_warned_in_frontend_p): Likewise.
7459         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7460         * tree.c (really_constant_p, get_unwidened): Likewise.
7461         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7462         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7463         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7464         Likewise.
7465         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7466         CONVERT_EXPR_P.
7467         (CONVERT_EXPR_P): Define.
7468         (CASE_CONVERT): Define.
7469         
7470 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7471
7472         PR middle-end/36117
7473         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7474         (delete_unmarked_insns): When deleting a call, call
7475         delete_unreachable_blocks.
7476         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7477         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7478
7479 2008-05-08  Richard Guenther  <rguenther@suse.de>
7480
7481         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7482         (-ftree-salias): Likewise.
7483         (salias-max-implicit-fields): Remove param documentation.
7484         (salias-max-array-elements): Likewise.
7485         * tree-pass.h (pass_create_structure_vars): Remove.
7486         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7487         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7488         * tree-ssa-alias.c (create_structure_vars): Remove.
7489         (gate_structure_vars): Likewise.
7490         (pass_create_structure_vars): Likewise.
7491         (gate_build_alias): Likewise.
7492         (pass_build_alias): Adjust to run always and dump the function.
7493         * common.opt (ftree-salias): Hide.
7494         * passes.c (init_optimization_passes): Remove
7495         pass_create_structure_vars, adjust comment.
7496         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7497         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7498         * opts.c (decode_options): Do not set flag_tree_salias.
7499         (common_handle_option): Add OPT_ftree_salias to the backward
7500         compatibility section.
7501
7502 2008-05-08  Richard Guenther  <rguenther@suse.de>
7503
7504         * tree-flow-inline.h (var_can_have_subvars): Move ...
7505         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7506         * tree-flow.h (var_can_have_subvars): Remove.
7507         (push_fields_onto_fieldstack): Remove.
7508         (sort_fieldstack): Likewise.
7509         (struct fieldoff): Move ...
7510         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7511         alias_set and base_for_components fields.
7512         (sort_fieldstack): Make static.
7513         (push_fields_onto_fieldstack): Likewise.  Remove code that
7514         handles anything but RECORD_TYPEs.  Remove alias_set and
7515         base_for_components handling.
7516         (create_variable_info_for): Adjust.
7517
7518 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7519
7520         * common.opt (Wframe-larger-than=): Shorten the help message
7521         to one line.
7522         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7523
7524 2008-05-08  Rafael Espindola  <espindola@google.com>
7525
7526         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7527         trap.
7528         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7529         trap and that both operands are gimple values.
7530         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7531         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7532         is a fp operation.
7533
7534 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7535
7536         * read-rtl.c (join_c_conditions): Return the first string if the
7537         two strings are equal.
7538
7539 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7540
7541         * gensupport.h (pred_data): Add a "num_codes" field.
7542         (add_predicate_code): Declare.
7543         * gensupport.c (add_predicate_code): New function.
7544         (std_pred_table): Add an "allows_const_p" field.
7545         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7546         Remove the (incomplete) list of such codes from the codes field.
7547         (init_predicate_table): Use add_predicate_code.  Add all
7548         RTX_CONST_OBJs if allows_const_p is true.
7549         * genrecog.c (process_define_predicate): Use add_predicate_code.
7550
7551 2008-05-08  David Daney  <ddaney@avtrex.com>
7552             Richard Sandiford  <rsandifo@nildram.co.uk>
7553         
7554         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7555         special case of constant zero operands.
7556         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7557         old and new values.  Special case constant zero values.
7558         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7559         fails.
7560         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7561         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7562
7563 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7564
7565         PR target/36090
7566         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7567         similar RTX_CONST_OBJ before CONST_INT.
7568
7569 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7570
7571         * stmt.c (expand_stack_restore): Change sa mode if needed.
7572
7573 2008-05-08  Richard Guenther  <rguenther@suse.de>
7574
7575         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7576         return type to bool.
7577         (ix86_sol10_return_in_memory): Likewise.
7578         (ix86_i386elf_return_in_memory): Likewise.
7579         (ix86_i386interix_return_in_memory): Likewise.
7580         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7581         (ix86_sol10_return_in_memory): Likewise.
7582         (ix86_i386elf_return_in_memory): Likewise.
7583         (ix86_i386interix_return_in_memory): Likewise.
7584
7585 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7586
7587         PR bootstrap/36180
7588         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7589         fndecl argument.
7590         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7591         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7592         declared in front.
7593
7594 2008-05-08  Richard Guenther  <rguenther@suse.de>
7595
7596         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7597         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7598         (DR_SUBVARS): Remove.
7599         * tree-dfa.c (dump_subvars_for): Remove.
7600         (debug_subvars_for): Likewise.
7601         (dump_variable): Do not dump subvars.
7602         (remove_referenced_var): Do not remove subvars.
7603         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7604         (lookup_subvars_for_var): Remove.
7605         (get_subvars_for_var): Likewise.
7606         (get_subvars_at): Likewise.
7607         (get_first_overlapping_subvar): Likewise.
7608         (overlap_subvar): Likewise.
7609         * tree-flow.h (subvar_t): Remove.
7610         (struct var_ann_d): Remove subvars field.
7611         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7612         argument.  Remove special handling of SFTs.
7613         (compute_tag_properties): Likewise.
7614         (set_initial_properties): Likewise.
7615         (compute_call_clobbered): Likewise.
7616         (count_mem_refs): Likewise.
7617         (compute_memory_partitions): Likewise.
7618         (compute_flow_insensitive_aliasing): Likewise.
7619         (setup_pointers_and_addressables): Likewise.
7620         (new_type_alias): Likewise.
7621         (struct used_part): Remove.
7622         (used_portions): Likewise.
7623         (struct used_part_map): Likewise.
7624         (used_part_map_eq): Likewise.
7625         (used_part_map_hash): Likewise.
7626         (free_used_part_map): Likewise.
7627         (up_lookup): Likewise.
7628         (up_insert): Likewise.
7629         (get_or_create_used_part_for): Likewise.
7630         (create_sft): Likewise.
7631         (create_overlap_variables_for): Likewise.
7632         (find_used_portions): Likewise.
7633         (create_structure_vars): Likewise.
7634         * tree.def (STRUCT_FIELD_TAG): Remove.
7635         * tree.h (MTAG_P): Adjust.
7636         (struct tree_memory_tag): Remove base_for_components and
7637         unpartitionable flags.
7638         (struct tree_struct_field_tag): Remove.
7639         (SFT_PARENT_VAR): Likewise.
7640         (SFT_OFFSET): Likewise.
7641         (SFT_SIZE): Likewise.
7642         (SFT_NONADDRESSABLE_P): Likewise.
7643         (SFT_ALIAS_SET): Likewise.
7644         (SFT_UNPARTITIONABLE_P): Likewise.
7645         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7646         (union tree_node): Remove sft field.
7647         * alias.c (get_alias_set): Remove special handling of SFTs.
7648         * print-tree.c (print_node): Remove handling of SFTs.
7649         * tree-dump.c (dequeue_and_dump): Likewise.
7650         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7651         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7652         * tree-predcom.c (set_alias_info): Do not set subvars.
7653         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7654         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7655         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7656         (add_vars_for_offset): Remove.
7657         (add_virtual_operand): Remove special handling of SFTs.
7658         (add_call_clobber_ops): Likewise.
7659         (add_call_read_ops): Likewise.
7660         (get_asm_expr_operands): Likewise.
7661         (get_modify_stmt_operands): Likewise.
7662         (get_expr_operands): Likewise.
7663         (add_to_addressable_set): Likewise.
7664         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7665         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7666         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7667         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7668         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7669         (tree_node_structure): Likewise.
7670         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7671         handling of SFTs.
7672         (find_what_p_points_to): Likewise.
7673
7674 2008-05-08  Sa Liu  <saliu@de.ibm.com>
7675
7676         * config/spu/spu.md: Fixed subti3 pattern.
7677
7678 2008-05-08  Richard Guenther  <rguenther@suse.de>
7679
7680         PR middle-end/36154
7681         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7682         sure to create a representative for trailing arrays for PTA.
7683
7684 2008-05-08  Richard Guenther  <rguenther@suse.de>
7685
7686         PR middle-end/36172
7687         * fold-const.c (operand_equal_p): Two objects which types
7688         differ in pointerness are not equal.
7689
7690 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7691
7692         * calls.c (compute_argument_block_size): Add argument tree fndecl.
7693         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7694         (emit_library_call_value_1): Add new variable fndecl initialized by
7695         NULL_TREE. It should be the decl type of orgfun, but this information
7696         seems not to be available here, so it uses the default calling abi.
7697         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7698         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7699         by TARGET_RETURN_IN_MEMORY.
7700         * config/i386/i386-interix.h: Likewise.
7701         * config/i386/i386.h: Likewise.
7702         * config/i386/i386elf.h: Likewise.
7703         * config/i386/ptx4-i.h: Likewise.
7704         * config/i386/sol2-10.h: Likewise.
7705         * config/i386/sysv4.h: Likewise.
7706         * config/i386/vx-common.h: Likewise.
7707         * config/cris/cris.h: Removed #if 0 clause.
7708         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7709         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7710         argument.
7711         (ix86_sol10_return_in_memory): Likewise.
7712         (ix86_i386elf_return_in_memory): New.
7713         (ix86_i386interix_return_in_memory): New.
7714         * config/mt/mt-protos.h (mt_return_in_memory): New.
7715         * config/mt/mt.c: Likewise.
7716         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7717         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
7718         * config/bfin/bfin.h: Likewise.
7719         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7720         argument.
7721         * config/bfin/bfin.c: Likewise.
7722         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7723         * config/alpha/unicosmk.h: Likewise.
7724         * config/i386/cygming.h: Likewise.
7725         * config/iq2000/iq2000.h: Likewise.
7726         * config/mips/mips.h: Likewise.
7727         * config/mn10300/mn10300.h: Likewise.
7728         * config/rs6000/rs6000.h: Likewise.
7729         * config/score/score.h: Likewise.
7730         * config/spu/spu.h: Likewise.
7731         * config/v850/v850.h: Likewise.
7732         * defaults.h: Likewise.
7733         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7734         * expr.c (emit_block_move): Adjust use of
7735         OUTGOING_REG_PARM_STACK_SPACE.
7736         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7737         OUTGOING_REG_PARM_STACK_SPACE.
7738         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7739
7740 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
7741
7742         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7743         on OMP_RETURN for OMP_FOR.
7744
7745         PR debug/35896
7746         * dwarf2out.c (dw_expand_expr, common_check): Removed.
7747         (fortran_common): New function.
7748         (gen_variable_die): Call fortran_common instead of common_check,
7749         adjust for it returning tree instead of rtx.  Formatting.
7750
7751 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
7752
7753         PR rtl/7335
7754         PR rtl/33826
7755         * see.c (see_copy_insn): Copy new pure const attributes for new call.
7756         * c-decl.c (merge_decls): Ditto.
7757         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7758         to RTL_CONST_OR_PURE_CALL_P.
7759         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7760         Initialized DECL_LOOPING_CONST_PURE.
7761         (process_call_operands): Set tree_side_effects properly.
7762         * tree.h (TREE_READONLY_DECL_P): Removed.
7763         (DECL_IS_PURE): Renamed to DECL_PURE_P.
7764         (DECL_LOOPING_OR_CONST_P): New macro.
7765         (struct tree_function_decl): Added looping_const_or_pure_p.
7766         (ECF_*) Renumbered.
7767         (ECF_LOOPING_OR_CONST_P): New macro.
7768         * rtlanal.c (pure_const_p): Removed.
7769         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7770         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7771         to RTL_CONST_CALL_P.
7772         * ipa-pure-const.c (pure_const_state_e): Added looping field.
7773         (check_decl, check_tree, check_call, scan_function): Initialize
7774         looping.
7775         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7776         (static_execute): Set looping true for recursive functions.
7777         Undo setting state to IPA_NEITHER for recursive functions.
7778         * cse.c (cse_insn): 
7779         * ifcvt.c (noce_can_store_speculate_p): Changed
7780         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
7781         RTL_CONST_OR_PURE_CALL_P.
7782         * dse.c (scan_insn): Ditto.
7783         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7784         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7785         RTL_CONST_OR_PURE_CALL_P.
7786         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7787         pure_call_p to RTL_CONST_CALL_P.
7788         * gimplify.c (gimplify_call_expr): Clear side effects for
7789         non-looping pure and constant calls.
7790         * calls.c (emit_call_1): Set rtl flags from ecf flags.
7791         (flags_from_decl_or_type): Set ecf flags from decl flags.
7792         (initialize_argument_information): Turn off
7793         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7794         Change const to pure if callee_copies is true rather than just
7795         turning off const.
7796         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7797         way of marking pure calls.
7798         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7799         Remove hack that was supposed to fix pr7335 and remove old
7800         way of marking pure calls.
7801         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7802         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7803         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7804         RTL_CONST_OR_PURE_CALL_P.
7805         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7806         * loop-invariant.c (find_exits, find_invariant_bb): Changed
7807         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7808         * sched-deps.c (schedule_analyze): Ditto.
7809         * rtl.h (struct rtx_def): Use call field, unchanging field, and
7810         return_val field of calls to represent pure and const function info.
7811         (CONST_OR_PURE_CALL_P): Deleted macro.
7812         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7813         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7814         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7815         TREE_READONLY.
7816         * tree-optimize.c (execute_fixup_cfg): Added test for
7817         ECF_LOOPING_CONST_OR_PURE.
7818         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7819         DECL_PURE_P.
7820         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7821         effects for looping pure or const calls.
7822         (verify_gimple_expr): Added verification code. 
7823         * config/alpha/alpha.c (alpha_legitimize_address,
7824         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7825         RTL_CONST_CALL_P.
7826         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7827         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7828         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7829         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7830         RTL_CONST_OR_PURE_CALL_P.
7831         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7832         and const calls to be deleted.
7833
7834 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7835
7836         PR target/35714
7837         * config/i386/mmx.md (mmx_subv2sf3): New expander.
7838         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7839         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7840         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7841         to handle nonimmediate operands.
7842         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7843         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
7844         to handle nonimmediate operands.
7845         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7846         (mmx_pmulhrwv4hi3): New expander.  Use
7847         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7848         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7849         (sse2_umulv1siv1di3): New expander.  Use
7850         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7851         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7852         (mmx_eq<mode>3): New expander.  Use
7853         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7854         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7855         (mmx_uavgv8qi3): New expander.  Use
7856         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7857         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7858         (mmx_uavgv4hi3): New expander.  Use
7859         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7860
7861         * config/i386/sse.md
7862         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
7863         to handle nonimmediate operands.
7864         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
7865         to handle nonimmediate operands.
7866         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
7867         to handle nonimmediate operands.
7868         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
7869         to handle nonimmediate operands.
7870         (sse2_unpckhpd_exp): New expander.  Use
7871         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7872         (sse2_unpcklpd_exp): New expander.  Use
7873         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7874         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
7875         to handle nonimmediate operands.
7876         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
7877         to handle nonimmediate operands.
7878         (*sse2_<plusminus_insn><mode>3): Rename from
7879         sse2_<plusminus_insn><mode>3 insn pattern.
7880         (sse2_<plusminus_insn><mode>3): New expander.  Use
7881         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7882         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7883         (sse2_umulv2siv2di3): New expander.  Use
7884         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7885         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7886         (sse4_1_mulv2siv2di3): New expander.  Use
7887         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7888         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7889         (sse2_pmaddwd): New expander.  Use
7890         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7891         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7892         (sse2_eq<mode>3): New expander.  Use
7893         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7894         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7895         (sse4_1_eqv2di3): New expander.  Use
7896         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7897         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7898         (sse2_uavgv16qi3): New expander.  Use
7899         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7900         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7901         (sse2_uavgv16qi3): New expander.  Use
7902         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7903         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7904         (sse2_uavgv8hi3): New expander.  Use
7905         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7906         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7907         (ssse3_pmulhrswv8hi3): New expander.  Use
7908         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7909         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7910         (ssse3_pmulhrswv4hi3): New expander.  Use
7911         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7912
7913         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7914         (<sse>_vmmul<mode>3): Ditto.
7915         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7916         (divv2df3): Ditto.
7917         (ssse3_pmaddubsw128): Use register_operand for operand 1.
7918         (ssse3_pmaddubsw): Ditto.
7919
7920         * config/i386/i386.c (struct_builtin_description)
7921         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7922         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7923         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7924         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7925         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7926         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7927         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7928         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7929         (ix86_fixup_binary_operands): Assert that src1
7930         and src2 must have the same mode when swapped.
7931         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7932         and ix86_binary_operator_ok.  Do not force operands in registers
7933         when optimizing.
7934
7935 2008-05-07  Jan Hubicka  <jh@suse.cz>
7936
7937         * cgraph.c (dump_cgraph_node): Update.
7938         * cgraph.h (cgraph_local_info): Break out inline summary.
7939         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7940         hook.
7941         * ipa-inline (inline_summary): New accestor function.
7942         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7943         cgraph_decide_inlining, compute_inline_parameters): Update.
7944         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7945
7946 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7947
7948         Cleanup ColdFire scheduling support and add V4 pipeline model.
7949
7950         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7951         (define_attr cpu): Add cfv4 value.
7952         (define_attr type, define_attr type1): Merge into a single 'type'
7953         attribute.  Update all uses.
7954         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7955         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
7956         Update all uses.
7957         (define_attr opx_mem, define_attr opy_mem): Remove.
7958         (define_attr op_mem): Clean up, update comment.
7959         (define_attr size): Use specific values instead of general int.
7960         (define_attr guess, define_attr split): Remove.  Update all uses.
7961         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7962         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7963         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7964         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7965         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7966         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7967         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7968         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7969         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7970         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7971         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7972         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7973         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7974         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7975         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7976         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7977         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7978         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7979         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7980         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7981         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7982         Update or set attributes.
7983         (stack_tie): New fake instruction.
7984
7985         * config/m68k/m68k.h (TUNE_CFV4): New macro.
7986         (m68k_sched_attr_size): Update declaration.
7987         (m68k_sched_attr_type2): Remove.
7988         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7989         Declare new bypass predicates.
7990
7991         * config/m68k/m68k.c (m68k_sched_issue_rate,
7992         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7993         implementations.
7994         (TARGET_SCHED_ISSUE_RATE,
7995         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7996         (override_options): Handle scheduling for ColdFire V4 core.
7997         (m68k_expand_prologue): Emit stack_tie.
7998         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7999         'OP_TYPE_FPN'.  Update all uses.
8000         (sched_guess_p): Remove.
8001         (sched_address_type): Handle symbolic addresses.
8002         (sched_get_operand): New static function.
8003         (sched_operand_type): Merge into sched_attr_op_type.
8004         (sched_attr_op_type): Handle FP registers, handle quick constants,
8005         update.
8006         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8007         (m68k_sched_attr_size): Update.  Move logic to ...
8008         (sched_get_attr_size_int): New static function.
8009         (sched_get_opxy_mem_type): New static function.
8010         (m68k_sched_attr_op_mem): Update.
8011         (m68k_sched_attr_type2): Remove.
8012         (sched_cfv4_bypass_data): New static variable.
8013         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8014         (m68k_sched_issue_rate): Implement scheduler hook.
8015         (struct _sched_ib: enabled_p): New field.
8016         (m68k_sched_variable_issue): Update.  Handle V4.
8017         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8018         sched_dump_class_func_t, sched_dump_split_class,
8019         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8020         sched_dump_dfa_class, m68k_sched_dump): Remove.
8021         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8022         hook.
8023         (m68k_sched_init_global): Remove statisctics dumping, introduce
8024         sanity check that all instructions have pipeline reservations.  Handle
8025         ColdFire V4 core.
8026         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8027         Handle ColdFire V4 core.
8028         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8029         New static functions.
8030         (m68k_sched_address_bypass_p): New bypass predicate.
8031         (sched_get_indexed_address_scale): New static function.
8032         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8033
8034         * cf.md: Update comments.
8035         (define_attr type2): Remove.  Use 'type' attribute instead.
8036         Update all uses.
8037         (cf_ib): Rename to cfv123_ib.  Update all uses.
8038         (cf_oep): Rename to cfv123_oep.  Update all uses.
8039         (cf_chr): Rename to cfv123_chr.  Update all uses.
8040         (cf_mem): Rename to cfv123_mem.  Update all uses.
8041         (cf_mac): Move to more appropriate place.
8042         (cfv123_guess): New automaton and cpu_unit.
8043         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8044         Update uses of 'size' attribute.  Handle before reload scheduling.
8045         (cfv123_guess): New dummy reservation for unhandled instructions.
8046         (cfv4_*): Pipeline description of ColdFire V4 core.
8047         (ignore): New reservation to handle 'ignore' type.
8048
8049 2008-05-07  Ian Lance Taylor  <iant@google.com>
8050
8051         PR middle-end/36013
8052         * gimplify.c (find_single_pointer_decl_1): Don't look through
8053         indirections.
8054         (find_single_pointer_decl): Adjust comments.
8055
8056 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8057
8058         PR middle-end/36137
8059         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8060         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8061
8062         PR middle-end/36106
8063         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8064         integral type rather than floating point, then VIEW_CONVERT_EXPR
8065         to the floating point type.
8066
8067 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8068
8069         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8070         TFmode op0 to register.
8071
8072 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8073
8074         * c-decl.c (grokdeclarator): Comment typo.
8075
8076 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8077
8078         * tree-flow.h: Remove prototype for computed_goto_p.
8079         * tree-cfg.c (computed_goto_p): Make static.
8080
8081 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8082
8083         PR target/35657
8084         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8085         (contains_aligned_value_p): This.  Handle _Decimal128.
8086         (ix86_function_arg_boundary): Only align _Decimal128 to its
8087         natural boundary and handle it properly.
8088
8089 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8090
8091         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8092         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8093         (ipcp_method_set_orig_node): Removed.
8094         (ipcp_cval_get_cvalue_type): Removed.
8095         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8096         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8097         (ipcp_cval_set_cvalue_type): Removed.
8098         (ipcp_cval_get_cvalue): Removed.
8099         (ipcp_cval_set_cvalue): Removed.
8100         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8101         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8102         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8103         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8104         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8105         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8106         (ipcp_get_ith_lattice): Changed parameters.
8107         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8108         (ipcp_lattice_from_jfunc): Changed parameters.
8109         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8110         (ipcp_method_cval_print): Added temporary variable info.
8111         (ipcp_redirect): Removed already unused local variable caller.
8112         (ipcp_redirect): New temporary variable orig_callee_info
8113         (ipcp_redirect): Removed newly unused local variable callee.
8114         (ipcp_redirect): Removed (a bit confusing) local variable type.
8115         (ipcp_insert_stage): Added local variable info.
8116         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
8117         renamed too
8118         (ipcp_formal_create): Removed.
8119         (ipcp_method_cval_set): Removed.
8120         (ipcp_propagate_stage): Renamed lattice variables.
8121         (ipcp_method_cval_set_cvalue_type): Removed.
8122         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8123         (ipcp_print_all_lattices): Changed printed strings to refer to 
8124         lattices rather than cvals.
8125         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8126         (ipcp_propagate_const): Changed formal parameters.
8127         (build_const_val): Changed formal parameters.
8128         (ipcp_insert_stage): Removed useless variable cvalue
8129         (build_const_val): Changed formal parameters.
8130         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8131         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8132         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8133         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8134         (ipcp_print_func_profile_counts): Changed string from "method" to 
8135         "function"
8136         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8137         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8138         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8139         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8140         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8141         (ipcp_lat_is_const): Changed parameters and made inline.
8142         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8143         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8144         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
8145         the predicate condition directly
8146         (ipcp_propagate_stage): Added local variable args. Removed local
8147         variable callee.  (Both are mere code simplifications.)
8148         (ipcp_method_dont_insert_const): Renamed to
8149         ipcp_node_not_modifiable_p.
8150         (ipcp_node_not_modifiable_p): Made inline.
8151         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8152         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8153         (ipcp_print_all_lattices): Removed variable cvalue
8154         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8155         Updated comments.
8156
8157 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8158
8159         * tree-sra.c (try_instantiate_multiple_fields): Early return
8160         if field has POINTER_TYPE.
8161
8162 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8163
8164         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8165         by using 'q' specifier for instruction.
8166         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8167
8168 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8169
8170         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8171         Change mode of zero_extract from QImode to HImode.
8172         (sign bit tests peepholes): (Ditto.).
8173
8174 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8175
8176         * config/i386/mmx.md: Remove double backslashes from asm templates.
8177         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8178         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8179         to handle nonimmediate operands.
8180         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8181         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8182         to handle nonimmediate operands.
8183         (*mmx_<code>v2sf3_finite): New insn pattern.
8184         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8185         (mmx_<code>v2sf3): New expander.  Use
8186         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8187         (mmx_<plusminus_insn><mode>3): New expander.  Use
8188         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8189         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8190         (mmx_add<mode>3): Removed.
8191         (mmx_ssadd<mode>3): Ditto.
8192         (mmx_usadd<mode>3): Ditto.
8193         (mmx_sub<mode>3): Ditto.
8194         (mmx_sssub<mode>3): Ditto.
8195         (mmx_ussub<mode>3): Ditto.
8196         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8197         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8198         to handle nonimmediate operands.
8199         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8200         insn pattern.
8201         (mmx_smulv4hi3_highpart): New expander.  Use
8202         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8203         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8204         insn pattern.
8205         (mmx_umulv4hi3_highpart): New expander.  Use
8206         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8207         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8208         (mmx_<code>v4hi3): New expander.  Use
8209         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8210         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8211         (mmx_<code>v8qi3): New expander.  Use
8212         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8213         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8214         (mmx_<code><mode>3): New expander.  Use
8215         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8216
8217 2008-05-05  Jan Hubicka  <jh@suse.cz>
8218
8219         PR tree-optimization/36118
8220         * passes.c (pass_init_dump_file): Fix dump header.
8221
8222 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8223
8224         PR middle-end/36141
8225         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8226         VCE for function decls.
8227
8228 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8229
8230         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8231
8232 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8233
8234         * config/i386/i386.md (sat_plusminus): New.
8235         (plusminus_insn): Likewise.
8236         (plusminus_mnemonic): Likewise.
8237         (addsub): Removed.
8238         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8239         (*<addsub><mode>3_cc_overflow): Renamed to ...
8240         (*<plusminus_insn><mode>3_cc_overflow): This.
8241         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8242         (*<plusminus_insn>si3_zext_cc_overflow): This.
8243
8244         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8245         (<plusminus_insn><mode>3): This.
8246         (*<addsub><mode>3): Renamed to ...
8247         (*<plusminus_insn><mode>3): This.
8248         (<sse>_vm<addsub><mode>3): Renamed to ...
8249         (<sse>_vm<plusminus_insn><mode>3): This.
8250         (sse3_h<addsub>v4sf3): Renamed to ...
8251         (sse3_h<plusminus_insn>v4sf3): This.
8252         (sse3_h<addsub>v2df3): Renamed to ...
8253         (sse3_h<plusminus_insn>v2df3): This.
8254         (<plusminus_insn><mode>3): New.
8255         (*<plusminus_insn><mode>3): Likewise.
8256         (sse2_<plusminus_insn><mode>3): Likewise.
8257         (add<mode>): Removed.
8258         (*add<mode>3): Likewise.
8259         (sse2_ssadd<mode>3): Likewise.
8260         (sse2_usadd<mode>3): Likewise.
8261         (sub<mode>3): Likewise.
8262         (*sub<mode>3): Likewise.
8263         (sse2_sssub<mode>3): Likewise.
8264         (sse2_ussub<mode>3): Likewise.
8265
8266 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8267
8268         * gthr-single.h: Add in required interface elements as per gthr.h.
8269         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8270         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8271         Generalize UNUSED macro. 
8272         (__gthread_once): Add.
8273         (__gthread_key_create): Add.
8274         (__gthread_key_delete): Add.
8275         (__gthread_getspecific): Add.
8276         (__gthread_setspecific): Add.
8277         
8278 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8279
8280         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8281         the same size types for the indirect reference on the rhs, then
8282         create a VCE.
8283
8284 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8285
8286         * config/i386/i386.md
8287         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8288         one insn template instead of template series.
8289         (*xordi_1_rex64): Ditto.
8290         (*xordi_2_rex64): Ditto.
8291
8292 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8293
8294         PR tree-optimization/36119
8295         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8296         in case of SLP.
8297
8298 2008-06-04  Jan Hubicka  <jh@suse.cz>
8299
8300         tree-optimization/36100
8301         * tree-pass.h (pass_O0_always_inline): Declare.
8302         * ipa-inline.c (inline_transform): Remove dead code.
8303         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8304         pass_O0_always_inline): New.
8305         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8306
8307 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8308
8309         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8310         mnemonic in this_param move for TARGET_64BIT.
8311
8312 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8313
8314         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8315         (*strmovsi_rex_1): Ditto.
8316         (*strsetsi_1): Ditto.
8317         (*strsetsi_rex_1): Ditto.
8318
8319         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8320         adddicc expanders using SWI mode iterator.
8321
8322 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8323
8324         PR target/36121
8325         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8326         argument handling.
8327
8328 2008-05-04  David S. Miller  <davem@davemloft.net>
8329
8330         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8331         (sparc*-*-linux*): Use linux.h in tm_file.
8332         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8333         compiler defaulting to 32-bit.
8334         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8335         no longer needed.
8336         * config/sparc/linux.h: Remove definitions now obtained
8337         properly from linux.h
8338         * config/sparc/linux64.h: Likewise.
8339         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8340         don't want this setting for 32-bit builds in a biarch compiler.
8341         * doc/install.texi: Add sparc-linux to list of targets
8342         supporting --enable-targets=all.
8343
8344 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8345
8346         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8347
8348 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8349
8350         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8351         after V4SI_FTYPE_V8HI.
8352         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8353         case V4SI_FTYPE_V2DF.
8354
8355 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8356
8357         * doc/invoke.texi (max-flow-memory-locations): Removed.
8358         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8359         
8360 2008-05-03  Richard Guenther  <rguenther@suse.de>
8361
8362         PR middle-end/34973
8363         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8364
8365 2008-05-02  David S. Miller  <davem@davemloft.net>
8366
8367         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8368
8369 2008-05-02  Simon Baldwin <simonb@google.com>
8370
8371         PR bootstrap/36108
8372         * c-common.h (warn_array_subscript_range): Removed.
8373         * c-common.c (warn_array_subscript_range): Ditto.
8374         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8375         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8376
8377 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8378
8379         * config/i386/i386.c (ix86_special_builtin_type): New.
8380         (bdesc_special_args): Likewise.
8381         (ix86_expand_special_args_builtin): Likewise.
8382         (ix86_init_mmx_sse_builtins): Updated.
8383         (ix86_expand_builtin): Updated.
8384         (ix86_expand_store_builtin): Removed.
8385         (ix86_expand_unop_builtin): Likewise.
8386
8387         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8388         * config/i386/mmintrin.h (__v2sf): Here.
8389
8390         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8391         const __v2sf.
8392         (_mm_loadl_pi): Likewise.
8393         (_mm_storeh_pi): Replace __v2si with __v2sf.
8394         (_mm_storel_pi): Likewise.
8395
8396         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8397         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8398         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8399         __builtin_ia32_loadlpd.
8400
8401 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8402
8403         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8404         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8405         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8406         (ix86_init_mmx_sse_builtins): Updated.
8407         (ix86_expand_args_builtin): Likewise.
8408         (ix86_expand_builtin): Likewise.
8409         (ix86_expand_unop1_builtin): Renamed to ...
8410         (ix86_expand_unop_vec_merge_builtin): This.
8411
8412 2008-05-01  Jan Hubicka  <jh@suse.cz>
8413
8414         PR bootstrap/36100
8415         * ipa-inline.c (inline_generate_summary): Make static.
8416         (inline_transform): Do not call inlining at -O0; make static.
8417         * passes.c (execute_todo): Add sanity check.
8418         (execute_one_ipa_transform_pass): Execute proper flags.
8419
8420 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8421
8422         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8423         (DECL_NONADDRESSABLE_P): Likewise.
8424         * alias.c (record_component_aliases): Fix comment.
8425
8426 2008-05-01  Simon Baldwin <simonb@google.com>
8427
8428         * c-common.h (warn_array_subscript_range): New function.
8429         * c-common.c (warn_array_subscript_range): Ditto.
8430         * tree-vrp.c (check_array_ref): Corrected code to agree with
8431         comment, ignoring only arrays of size 0 or size 1.
8432         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8433
8434 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8435
8436         * config/i386/i386.c (ix86_builtin_type): Replace
8437         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8438         (bdesc_args): Updated.
8439         (ix86_init_mmx_sse_builtins): Likewise.
8440         (ix86_expand_args_builtin): Likewise.
8441
8442         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8443         with __v1di.
8444
8445         * doc/extend.texi: Correct __builtin_ia32_palignr.
8446
8447 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8448
8449         PR target/36095
8450         * config/i386/i386.c (bdesc_crc32): Removed.
8451         (ix86_expand_crc32): Likewise.
8452         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8453         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8454         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8455         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8456         UINT_FTYPE_UINT_UCHAR.
8457         (bdesc_args): Updated. Add crc32 builtins.
8458         (ix86_init_mmx_sse_builtins): Updated.
8459         (ix86_expand_args_builtin): Updated to support subreg.
8460
8461         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8462
8463 2008-05-01  Jan Hubicka  <jh@suse.cz>
8464
8465         * tree-pass.h (opt_pass): Add IPA_PASS.
8466         (varpool_node, cgraph_node): Forward declare.
8467         (ipa_opt_pass): Define.
8468         (pass_ipa_inline): Turn into ipa_opt_pass.
8469         (pass_apply_inline): Remove.
8470         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8471         (apply_inline): Turn into ....
8472         (inline_transform): ... this one.
8473         (inline_generate_summary): New function.
8474         (pass_apply_inline): Remove.
8475         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8476         vector.
8477         (struct function): Add ipa_transforms_to_apply.
8478         * passes.c (register_one_dump_file): Work on IPA_PASS.
8479         (init_optimization_passes): Remove pass_inline_parameters and
8480         pass_apply_inline.
8481         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8482         (execute_one_pass) ... here; apply transforms when possible.
8483         (add_ipa_transform_pass, execute_ipa_summary_asses,
8484         execute_one_ipa_transform_pass): New.
8485         (execute_ipa_pass_list): Update for IPA_PASS type.
8486
8487 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8488
8489         * config/i386/i386.c (ix86_builtin_type): Add
8490         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8491         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8492         (bdesc_args): Add SSE4a builtins.
8493         (ix86_init_mmx_sse_builtins): Updated.
8494         (ix86_expand_args_builtin): Likewise.
8495         (ix86_expand_builtin): Likewise.
8496
8497 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8498
8499         * config/i386/i386.c (ix86_builtin_type): Add
8500         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8501         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8502         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8503         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8504         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8505         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8506         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8507         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8508         and DI_FTYPE_DI_DI_INT.
8509         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8510         (ix86_init_mmx_sse_builtins): Updated.
8511         (ix86_expand_args_builtin): Likewise.
8512         (ix86_expand_builtin): Likewise.
8513         (ix86_expand_binop_imm_builtin): Removed.
8514
8515         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8516
8517 2008-04-30  Richard Guenther  <rguenther@suse.de>
8518
8519         PR tree-optimization/32921
8520         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8521
8522 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8523
8524         * config/arm/arm.c (arm_unwind_emit): Use
8525         crtl->all_throwers_are_sibcalls instead of
8526         cfun->all_throwers_are_sibcalls.
8527         (arm_output_fn_unwind): Likewise.
8528         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8529         instead of cfun->uses_pic_offset_table.
8530         (frv_expand_prologue): Likewise.
8531         (frv_frame_pointer_required): Likewise.
8532         (frv_expand_fdpic_call): Likewise.
8533         (frv_emit_movsi): Likewise.
8534         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8535         cfun->returns_pcc_struct instead of
8536         current_function_returns_pcc_struct.
8537         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8538         instead of cfun->calls_eh_return.
8539         (m32c_pushm_popm): Likewise.
8540         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8541         "extern" declaration.
8542
8543 2008-04-30  Richard Guenther  <rguenther@suse.de>
8544
8545         PR tree-optimization/21636
8546         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8547         constant address.
8548         (evaluate_stmt): Print the likely value.
8549         (ccp_visit_stmt): Avoid excessive vertical spacing.
8550
8551 2008-04-30  Rafael Espindola  <espindola@google.com>
8552
8553         * builtins.c (fold_call_expr): Return realret.
8554         * tree-ssa-threadedge.c
8555         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8556         __builtin_object_size.
8557
8558 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8559
8560         * gcc.c (wrapper_string): New variable.
8561         (insert_wrapper): New function.
8562         (execute): New option -wrapper.
8563         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8564
8565 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8566
8567         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8568         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8569         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8570         from...
8571         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8572         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8573         config/rs6000/e500crtres64gprctr.asm,
8574         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8575         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8576         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8577         config/rs6000/e500crtsav64gprctr.asm,
8578         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8579         config/rs6000/e500crtsavg64gprctr.asm: New files.
8580         * config/rs6000/t-ppccomm: Add build rules for new files.
8581         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8582         * config/rs6000/t-netbsd: Add build rules for new files.
8583         (LIB2FUNCS_STATIC_EXTRA): New variable.
8584         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8585         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8586         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8587
8588 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8589
8590         * config/i386/i386.c (ix86_builtin_type): Add
8591         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8592         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8593         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8594         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8595         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8596         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8597         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8598         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8599         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8600         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8601         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8602         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8603         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8604         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8605         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8606         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8607         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8608         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8609         V1DI_FTYPE_V2SI_V2SI.
8610         (bdesc_2arg): Moved to ...
8611         (bdesc_args): Here.
8612         (ix86_init_mmx_sse_builtins): Updated.
8613         (ix86_expand_args_builtin): Updated.  Take a pointer
8614         to const struct builtin_description.  Handle comparison
8615         builtin functions.
8616         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8617         (ix86_expand_builtin): Updated.
8618
8619         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8620         (ssse3_pmaddubsw128): This.
8621         (ssse3_pmaddubswv4hi3): Renamed to ...
8622         (ssse3_pmaddubsw): This.
8623
8624         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8625         (__builtin_ia32_packssdw128): Likewise.
8626         (__builtin_ia32_packuswb128): Likewise.
8627         (__builtin_ia32_pmaddubsw): Likewise.
8628         (__builtin_ia32_pmaddubsw128): Likewise.
8629
8630 2008-04-30  Richard Guenther  <rguenther@suse.de>
8631
8632         PR tree-optimization/14847
8633         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8634         (recognize_bits_test): Use it.
8635         (recognize_single_bit_test): Likewise.
8636
8637 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8638
8639         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8640         instead of setting number of formal parameters to zero.
8641         (ipcp_init_stage): Do not set the number of actual parameters to zero 
8642         either.
8643         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8644         which are called with variable number of arguments.
8645         (ipcp_insert_stage): Explicitely skipping all nodes which are
8646         called with variable number of arguments.
8647         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
8648         number of parameters.
8649
8650         * ipa-prop.h (struct ipa_node_params): Added flag
8651         called_with_var_arguments
8652         (ipa_set_param_count): Added.  Changed sole setter to use it.
8653         (ipa_get_param_count): Added.  All readers of param_count
8654         converted to use it instead.
8655         (ipa_set_called_with_variable_arg): Added.
8656         (ipa_is_called_with_var_arguments): Added.
8657         (ipa_get_ith_param): Added.  All readers of param_decls converted
8658         to use it instead.
8659         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
8660         changed to use it. 
8661         (ipa_get_cs_argument_count): Added, all readers of argument_count
8662         changed to cal it.
8663         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
8664         to use it.
8665         
8666         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8667         (struct ipcp_lattice): Renamed cval_type to type
8668         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8669
8670         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8671         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8672         (ipcp_insert_stage): Changed the type of variable cvalue to tree
8673         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8674         (build_const_val): Changed the type of parameter cvalue to tree
8675         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8676         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8677         
8678         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
8679         constant 
8680
8681         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8682         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8683         (ipa_add_method): Renamed to ipa_push_func_to_list
8684         (ipa_remove_method): Renamed to ipa_pop_func_from_list
8685         (ipa_callsite_param_count): Removed.
8686         (ipa_callsite_param_count_set): Removed.
8687         (ipa_callsite_param): Removed.
8688         (ipa_callsite_callee): Removed.
8689         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8690         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8691         (ipa_method_formal_count): Removed.
8692         (ipa_method_formal_count_set): Removed.
8693         (ipa_method_get_tree): Removed.
8694         (ipa_method_tree_map_create): Removed.
8695         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8696         (ipa_create_param_decls_array): Creates the array itself
8697         (ipa_create_param_decls_array): Temporary variable info instead of 
8698         a few dereferences.
8699         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8700         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8701         (get_type): Removed.
8702         (ipa_jf_get_info_type): Removed.
8703         (ipa_node_create): Renamed to ipa_create_node_params
8704         (ipa_free): Renamed to ipa_free_all_node_params
8705         (ipa_nodes_create): Renamed to ipa_create_all_node_params
8706         (ipa_edges_create): Renamed to ipa_create_all_edge_args
8707         (ipa_edges_free): Renamed to ipa_free_all_edge_args
8708         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8709         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
8710         ipa_free_all_edge_args
8711         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8712         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8713         (ipa_create_methodlist_node): Removed.
8714         (ipa_methodlist_method): Removed.
8715         (ipa_methodlist_method_set): Removed.
8716         (ipa_methodlist_next_method): Removed.
8717         (ipa_methodlist_next_method_set): Removed.
8718         (ipa_method_is_modified): Removed.
8719         (ipa_method_modify_create): Removed.
8720         (ipa_method_modify_init): Temporary variable info instead of a few 
8721         dereferences.
8722         (ipa_detect_param_modifications): Temporary variable info instead of 
8723         a few dereferences.
8724         (ipa_compute_jump_functions): Temporary variable info instead of 
8725         a few dereferences.
8726         (ipa_method_modify_set): Removed.
8727         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8728         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
8729         than craph_node as the first parameter.
8730         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8731         (ipa_method_modify_init): Removed.
8732         (ipa_compute_jump_functions): Added a temp variable instead of 
8733         repeatadly dereferencing the cgraph_edge.aux pointer
8734         (ipa_callsite_param_set_type): Removed.
8735         (ipa_compute_jump_functions): i renamed to index and moved to 
8736         an inner block
8737         (ipa_callsite_param_set_info_type_formal): Removed.
8738         (ipa_callsite_param_set_info_type): Removed.
8739         (ipa_callsite_param_map_create): Removed.
8740         (ipa_callsite_tree): Removed.
8741         (ipa_callsite_caller): Removed.
8742         (ipa_pop_func_from_list): return_method removed to return_func
8743
8744         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8745         prefixed all values with IPA_. Changed all users.
8746         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
8747         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
8748         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
8749         (union parameter_info): Renamed to jump_func_value.
8750         (union jump_func_value): Renamed value to constant
8751         (struct ipa_jump_func): Renamed info_type to value
8752         (struct ipa_node): Renamed to ipa_node_params
8753         (struct ipa_node_params): Renamed ipa_arg_num to param_count
8754         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8755         (struct ipa_node_params): Renamed ipa_mod to modified_flags
8756         (struct ipa_edge): Renamed to ipa_edge_args
8757         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8758         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8759         (struct ipa_methodlist): Renamed to ipa_func_list
8760         (struct ipa_func_list): method_p renamed to node, next_method
8761         renamed to next
8762         (ipa_methodlist_p): Removed, switched all users to struct pointer
8763         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8764
8765 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
8766
8767         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8768         (rs6000_emit_epilogue): Use backchain to restore only when we
8769         have a large frame.  Make use of frame pointer to restore if we
8770         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8771
8772 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
8773
8774         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8775         Add mode to zero_extract.
8776         (sign bit tests peepholes): (Ditto.).
8777
8778 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8779
8780         * config/i386/i386.c (ix86_builtins): Replace Prescott New
8781         Instructions in comments with SSE3.
8782         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
8783         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8784         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8785         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8786         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8787         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8788         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8789         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8790         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8791         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8792         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8793         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8794         (bdesc_sse_args): Renamed to ...
8795         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8796         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8797         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8798         IX86_BUILTIN_FABSQ.
8799         (bdesc_1arg): Moved to ...
8800         (bdesc_args): Here.
8801         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
8802         Instructions in comments with SSE3.
8803         (ix86_expand_sse_operands_builtin): Renamed to ...
8804         (ix86_expand_args_builtin): This.  Updated.
8805         (ix86_expand_unop1_builtin): Update comments.
8806         (ix86_expand_builtin): Updated.
8807
8808 2008-04-29  Richard Guenther  <rguenther@suse.de>
8809
8810         PR tree-optimization/36078
8811         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8812         Update virtual SSA form after cleaning up the CFG.
8813
8814 2008-04-29  Richard Guenther  <rguenther@suse.de>
8815
8816         PR middle-end/15255
8817         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8818
8819 2008-04-29  Richard Guenther  <rguenther@suse.de>
8820
8821         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8822         (compute_may_aliases): Do not call finalize_ref_all_pointers.
8823         (compute_flow_insensitive_aliasing): Do not treat
8824         PTR_IS_REF_ALL pointers special.
8825         (get_smt_for): Likewise.
8826         (may_alias_p): Re-structure.
8827         (is_escape_site): A ref-all pointer conversion is not an escape site.
8828         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8829         PTR_IS_REF_ALL pointers special.
8830         * tree-ssa-structalias.h (struct alias_info): Remove
8831         ref_all_symbol_mem_tag field.
8832         (PTR_IS_REF_ALL): Remove.
8833
8834 2008-04-29  Richard Guenther  <rguenther@suse.de>
8835
8836         PR middle-end/36077
8837         * fold-const.c (extract_muldiv_1): In combining division constants
8838         make sure to never overflow.
8839
8840 2008-04-29  Nick Clifton  <nickc@redhat.com>
8841
8842         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8843
8844 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8845
8846         PR bootstrap/35169
8847         * optc-gen.awk: Work around HP-UX/IA awk bug.
8848
8849 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
8850
8851         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8852         2008-04-25 commit.
8853
8854 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8855
8856         PR target/36073
8857         * config/i386/i386.md
8858         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8859         Change operand 1 predicate to nonimmediate_operand.
8860
8861 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
8862
8863         PR debug/36060
8864         * dwarf2out.c (struct die_struct): Mark as chain_circular through
8865         die_sub field.
8866         * gengtype.c (walk_type, write_func_for_structure): Handle
8867         chain_circular.
8868         * doc/gty.texi: Document chain_circular.
8869
8870 2008-04-28  Richard Guenther  <rguenther@suse.de>
8871
8872         PR tree-optimization/36066
8873         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8874         SCEV and loop.
8875
8876 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8877
8878         PR target/36064
8879         * config/i386/i386.md
8880         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8881         Use match_scratch instead of match_operand for operands 3 and 4.
8882
8883 2008-04-27  Richard Guenther  <rguenther@suse.de>
8884
8885         PR tree-optimization/18754
8886         PR tree-optimization/34223
8887         * tree-pass.h (pass_complete_unrolli): Declare.
8888         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8889         loop size before and after unconditionally of UL_NO_GROWTH in effect.
8890         Rewrite loop into loop closed SSA form if it is not already.
8891         (tree_unroll_loops_completely): Re-structure to iterate over
8892         innermost loops with intermediate CFG cleanups.
8893         Unroll outermost loops only if requested or the code does not grow
8894         doing so.
8895         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8896         loops are available.
8897         (tree_vectorize): Instead do so here.
8898         (tree_complete_unroll): Also unroll outermost loops.
8899         (tree_complete_unroll_inner): New function.
8900         (gate_tree_complete_unroll_inner): Likewise.
8901         (pass_complete_unrolli): New pass.
8902         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8903         uses outside of the loop.
8904         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8905         form if it is available.  
8906         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8907         * passes.c (init_optimization_passes): Schedule complete inner
8908         loop unrolling pass before the first CCP pass after final inlining.
8909
8910 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8911
8912         * targhooks.h (default_emutls_var_fields,
8913         default_emutls_var_init): Declare.
8914         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8915         * target.h (struct gcc_target): Add struct emutls member.
8916         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8917         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8918         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8919         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8920         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8921         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8922         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8923         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8924         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8925         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8926         emit debug information.
8927         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8928         * varasm.c: Include targhooks.h.
8929         (emutls_object_section, emutls_tmpl_section): New.
8930         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8931         (EMUTLS_SEPARATOR): New.
8932         (prefix_name): New.
8933         (get_emutls_object_name): New.
8934         (default_emutls_var_fields): New, broken out of ...
8935         (get_emutls_object_type): ... here.  Adjust to use target hooks.
8936         (get_emutls_init_templ_addr): Adjust to use target hooks.
8937         (emutls_decl): Adjust to use target hooks.
8938         (emutls_finish): Likewise.
8939         (default_emutls_var_init): New, broken out of ...
8940         (assemble_variable): ... here.  Adjust to use target hooks.
8941         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8942         SECCAT_EMUTLS_TMPL.
8943         * c-common.c (handle_section_attribute): Prevent overriding
8944         sections for emulated tls with special sections.
8945         * config/i386/i386.c (x86_64_elf_select_section): Add
8946         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8947         (x86_64_elf_unique_section): Likewise.
8948         * config/vxworks.c: Include tree.h.
8949         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8950         (vxworks_override_options): Set TLS scheme.
8951         * doc/tm.texi (Emulated TLS): New node.
8952
8953 2008-04-26  Simon Baldwin <simonb@google.com>
8954
8955         PR c/35652
8956         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8957         with propagated string constants.
8958
8959 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
8960
8961         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8962         constraint for operand 2 when operand 0 is memory operand.
8963         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8964         operand 0 is memory operand.
8965         (fix_trunc<mode>_i387_with_temp): Ditto.
8966         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8967         operand 2 when operand 1 is memory operand.
8968         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8969         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8970         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8971         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8972         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8973         operands 2,3 and 4 when operand 1 is memory operand.
8974         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8975         is memory operand.
8976         (fistdi2_floor_with_temp): Ditto.
8977         (fist<mode>2_floor_with_temp): Ditto.
8978         (fistdi2_ceil_with_temp): Ditto.
8979         (fist<mode>2_ceil_with_temp): Ditto.
8980         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8981
8982 2008-04-26  David Daney  <ddaney@avtrex.com>
8983
8984         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8985         unspec_volitile.
8986         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8987         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8988         UNSPEC_UPDATE_GOT_VERSION): Renumber.
8989         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8990         (compare_and_swap_12): New insn.
8991         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8992         * config/mips/mips.c (mips_force_binary): New function.
8993         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8994         (mips_expand_compare_and_swap_12): New function.
8995         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8996
8997 2008-04-25  Jan Hubicka  <jh@suse.cz>
8998
8999         PR testsuite/35843
9000         * cfgexpand.c (pass_expand): Turn into RTL pass.
9001         * passes.c (execute_one_pass): Do pass typechecking after execution.
9002         * tree-pass.h (pass_expand): Turn into RTL pass.
9003
9004         * function.h (struct rtl_data): Move here fields
9005         accesses_prior_frames, calls_eh_return, saves_all_registers,
9006         has_nonlocal_goto, has_asm_statement, is_thunk,
9007         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9008         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9009         arg_pointer_save_area_init from struct function; turn into bool.
9010         (struct function): Move
9011         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9012         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9013         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9014         tail_call_emit, arg_pointer_save_area_init
9015         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9016         (current_function_returns_struct, current_function_returns_pcc_struct,
9017         current_function_calls_setjmp, current_function_calls_alloca,
9018         current_function_accesses_prior_frames,
9019         current_function_calls_eh_return, current_function_is_thunk,
9020         current_function_stdarg, current_function_profile,
9021         current_function_limit_stack, current_function_uses_pic_offset_table,
9022         current_function_uses_const_pool, current_function_has_nonlocal_label,
9023         current_function_saves_all_registers,
9024         current_function_has_nonlocal_goto,
9025         current_function_has_asm_statement): Remove accesor macros.
9026         * ra-conflict.c (global_conflicts): Update.
9027         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9028         (suitable_for_tail_call_opt_p): Update.
9029         * builtins.c (expand_builtin_return_addr): Update.
9030         (expand_builtin_setjmp_setup): Update.
9031         (expand_builtin_nonlocal_goto): Update.
9032         * final.c (final_start_function): Update.
9033         (profile_function): Update.
9034         (leaf_function_p): Update.
9035         (only_leaf_regs_used): Update.
9036         * df-scan.c (df_get_exit_block_use_set): Update.
9037         * dojump.c (clear_pending_stack_adjust): Update.
9038         * tree-stdarg.c (gate_optimize_stdarg): Update.
9039         * gimple-low.c (lower_function_body): Update.
9040         * global.c (compute_regsets): Update.
9041         (global_alloc): Update.
9042         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9043         * expr.c (expand_assignment): Update.
9044         * dse.c (dse_step0): Update.
9045         (dse_step1): Update.
9046         * c-decl.c (store_parm_decls): Update.
9047         * local-alloc.c (combine_regs): Update.
9048         (find_free_reg): Update.
9049         * function.c (assign_parms_augmented_arg_list): Update.
9050         (assign_parm_find_data_types): Update.
9051         (assign_parms): Update.
9052         (allocate_struct_function): Update.
9053         (expand_function_start): Update.
9054         (expand_function_end): Update.
9055         (get_arg_pointer_save_area): Update.
9056         (thread_prologue_and_epilogue_insns): Update.
9057         (rest_of_match_asm_constraints): Update.
9058         * stor-layout.c (variable_size): Update.
9059         * gcse.c (gcse_main): Update.
9060         (bypass_jumps): Update.
9061         * gimplify.c (gimplify_function_tree): Update.
9062         * calls.c (emit_call_1): Update.
9063         (expand_call): Update.
9064         * bt-load.c (compute_defs_uses_and_gen): Update.
9065         * except.c (sjlj_assign_call_site_values): Update.
9066         (sjlj_emit_function_enter): Update.
9067         (can_throw_external): Update.
9068         (set_nothrow_function_flags): Update.
9069         (expand_builtin_unwind_init): Update.
9070         (expand_eh_return): Update.
9071         (convert_to_eh_region_ranges): Update.
9072         (output_function_exception_table): Update.
9073         * emit-rtl.c (gen_tmp_stack_mem): Update.
9074         * cfgexpand.c (expand_used_vars): Update.
9075         (tree_expand_cfg): Update.
9076         * cfgcleanup.c (rest_of_handle_jump): Update.
9077         * explow.c (allocate_dynamic_stack_space): Update.
9078         * varasm.c (assemble_start_function): Update.
9079         (force_const_mem): Update.
9080         (mark_constant_pool): Update.
9081         * tree-optimize.c (tree_rest_of_compilation): Update.
9082         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9083         * tree-cfg.c (notice_special_calls): Update.
9084         (is_ctrl_altering_stmt): Update.
9085         (tree_can_make_abnormal_goto): Update.
9086         (tree_purge_dead_abnormal_call_edges): Update.
9087         * config/alpha/predicates.md: Update.
9088         * config/alpha/alpha.c (alpha_sa_mask): Update.
9089         (alpha_sa_size): Update.
9090         (alpha_does_function_need_gp): Update.
9091         (alpha_expand_prologue): Update.
9092         (alpha_start_function): Update.
9093         (alpha_output_function_end_prologue): Update.
9094         (alpha_expand_epilogue): Update.
9095         * config/frv/frv.c (frv_stack_info): Update.
9096         (frv_expand_epilogue): Update.
9097         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9098         (s390_register_info): Update.
9099         (s390_frame_info): Update.
9100         (s390_init_frame_layout): Update.
9101         (s390_can_eliminate): Update.
9102         (save_gprs): Update.
9103         * config/spu/spu.c (spu_split_immediate): Update.
9104         (need_to_save_reg): Update.
9105         (spu_expand_prologue): Update.
9106         (spu_expand_epilogue): Update.
9107         * config/sparc/sparc.md: Update.
9108         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9109         (sparc_tls_got): Update.
9110         (legitimize_pic_address): Update.
9111         (sparc_emit_call_insn): Update.
9112         (sparc_expand_prologue): Update.
9113         (output_return): Update.
9114         (print_operand): Update.
9115         (sparc_function_ok_for_sibcall): Update.
9116         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9117         * config/m32r/m32r.md: Update.
9118         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9119         (m32r_compute_frame_size): Update.
9120         (m32r_expand_prologue): Update.
9121         (m32r_expand_epilogue): Update.
9122         (m32r_legitimize_pic_address): Update.
9123         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9124         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9125         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9126         (gen_push): Update.
9127         (ix86_save_reg): Update.
9128         (ix86_compute_frame_layout): Update.
9129         (ix86_expand_prologue): Update.
9130         (ix86_expand_epilogue): Update.
9131         * config/sh/sh.c (output_stack_adjust): Update.
9132         (calc_live_regs): Update.
9133         (sh5_schedule_saves): Update.
9134         (sh_expand_prologue): Update.
9135         (sh_expand_epilogue): Update.
9136         (sh_setup_incoming_varargs): Update.
9137         (sh_allocate_initial_value): Update.
9138         (sh_get_pr_initial_val): Update.
9139         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9140         * config/sh/sh.md (label:): Update.
9141         * config/avr/avr.c (out_movhi_mr_r): Update.
9142         * config/crx/crx.h (enum): Update.
9143         * config/xtensa/xtensa.h (along): Update.
9144         * config/stormy16/stormy16.c Update.
9145         (xstormy16_compute_stack_layout): Update.
9146         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9147         (fr30_expand_prologue): Update.
9148         * config/cris/cris.c (cris_conditional_register_usage): Update.
9149         (cris_reg_saved_in_regsave_area): Update.
9150         (cris_initial_frame_pointer_offset): Update.
9151         (cris_simple_epilogue): Update.
9152         (cris_expand_prologue): Update.
9153         (cris_expand_epilogue): Update.
9154         (cris_expand_pic_call_address): Update.
9155         (cris_asm_output_symbol_ref): Update.
9156         (cris_asm_output_label_ref): Update.
9157         * config/cris/cris.md Update.
9158         * config/iq2000/iq2000.c (compute_frame_size): Update.
9159         (iq2000_expand_epilogue): Update.
9160         * config/mt/mt.h (save_direction): Update.
9161         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9162         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9163         (ia64_secondary_reload_class): Update.
9164         * config/m68k/m68k.c (m68k_save_reg): Update.
9165         (m68k_expand_prologue): Update.
9166         (m68k_expand_epilogue): Update.
9167         (legitimize_pic_address): Update.
9168         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9169         (first_reg_to_save): Update.
9170         (first_altivec_reg_to_save): Update.
9171         (compute_vrsave_mask): Update.
9172         (compute_save_world_info): Update.
9173         (rs6000_stack_info): Update.
9174         (spe_func_has_64bit_regs_p): Update.
9175         (rs6000_ra_ever_killed): Update.
9176         (rs6000_emit_eh_reg_restore): Update.
9177         (rs6000_emit_allocate_stack): Update.
9178         (rs6000_emit_prologue): Update.
9179         (rs6000_emit_epilogue): Update.
9180         (rs6000_output_function_epilogue): Update.
9181         (output_profile_hook): Update.
9182         (rs6000_elf_declare_function_name): Update.
9183         * config/rs6000/rs6000.h (rs6000_args): Update.
9184         * config/rs6000/rs6000.md: Update.
9185         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9186         * config/arc/arc.c (arc_output_function_epilogue): Update.
9187         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9188         * config/darwin.c (machopic_function_base_name): Update.
9189         * config/score/score3.c (score3_compute_frame_size): Update.
9190         (rpush): Update.
9191         (rpop): Update.
9192         (score3_epilogue): Update.
9193         * config/score/score7.c (score7_compute_frame_size): Update.
9194         (score7_prologue): Update.
9195         (score7_epilogue): Update.
9196         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9197         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9198         * config/arm/arm.c (use_return_insn): Update.
9199         (require_pic_register): Update.
9200         (arm_load_pic_register): Update.
9201         (arm_compute_save_reg0_reg12_mask): Update.
9202         (arm_compute_save_reg_mask): Update.
9203         (thumb1_compute_save_reg_mask): Update.
9204         (output_return_instruction): Update.
9205         (arm_output_function_prologue): Update.
9206         (arm_output_epilogue): Update.
9207         (arm_get_frame_offsets): Update.
9208         (arm_expand_prologue): Update.
9209         (thumb_pushpop): Update.
9210         (thumb_exit): Update.
9211         (thumb1_expand_prologue): Update.
9212         (thumb1_expand_epilogue): Update.
9213         (arm_unwind_emit): Update.
9214         (arm_output_fn_unwind): Update.
9215         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9216         * config/arm/arm.md: Update.
9217         * config/pa/pa.md: Update.
9218         * config/pa/pa.c (legitimize_pic_address): Update.
9219         (compute_frame_size): Update.
9220         (hppa_expand_prologue): Update.
9221         (hppa_expand_epilogue): Update.
9222         (borx_reg_operand): Update.
9223         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9224         (HARD_REGNO_RENAME_OK): Update.
9225         * config/mips/mips.c (mips_global_pointer): Update.
9226         (mips_save_reg_p): Update.
9227         (mips_compute_frame_info): Update.
9228         (mips_frame_pointer_required): Update.
9229         (mips_expand_prologue): Update.
9230         (mips_expand_epilogue): Update.
9231         (mips_can_use_return_insn): Update.
9232         (mips_reorg_process_insns): Update.
9233         * config/v850/v850.c (compute_register_save_size): Update.
9234         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9235         * config/mmix/mmix.c (along): Update.
9236         (mmix_expand_epilogue): Update.
9237         * config/bfin/bfin.c (legitimize_pic_address): Update.
9238         (must_save_p): Update.
9239         (stack_frame_needed_p): Update.
9240         (add_to_reg): Update.
9241         (bfin_expand_prologue): Update.
9242         * stmt.c (expand_asm_operands): Update.
9243         * reload1.c (reload): Update.
9244         (init_elim_table): Update.
9245
9246 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9247         
9248         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9249         
9250 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9251
9252         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9253         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9254         (mov<mode>): Removed.
9255         (*movv4sf_internal): Likewise.
9256         (*movv2df_internal): Likewise.
9257
9258 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9259
9260         * config.gcc (crx-*-elf): Remove deprecation.
9261
9262 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9263
9264         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9265         __gcc_deregister_frame with atexit.
9266         (deregister_frame_dtor): Remove.
9267
9268 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9269             Nathan Sidwell  <nathan@codesourcery.com>
9270
9271         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9272         (misel): Likewise.
9273         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9274         (rs6000_isel): Likewise.
9275         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9276         (rs6000_isel): New variable.
9277         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9278
9279 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9280
9281         PR c++/35758
9282         * c-common.c (handle_vector_size_attribute): Call
9283         lang_hooks.types.reconstruct_complex_type instead of
9284         reconstruct_complex_type.
9285         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9286         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9287         * langhooks.h (struct lang_hooks_for_types): Add
9288         reconstruct_complex_type hook.
9289         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9290         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9291
9292 2008-04-24  Richard Guenther  <rguenther@suse.de>
9293
9294         * c-common.h (check_builtin_function_arguments): Declare.
9295         * c-common.c (validate_nargs): New function.
9296         (check_builtin_function_arguments): Likewise.
9297         * c-typeck.c (build_function_call): Call
9298         check_builtin_function_arguments.
9299         * builtins.c (fold_builtin_classify): Remove error reporting code.
9300         (fold_builtin_unordered_cmp): Likewise.
9301         (fold_builtin_1): Likewise.
9302         (fold_builtin_n): Likewise.
9303
9304 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9305
9306         PR tree-optimization/36008
9307         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9308         the original op1, rather than delta by step.
9309
9310 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9311             Sebastian Pop  <sebastian.pop@amd.com>
9312
9313         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9314         eliminate_local_variables_stmt, eliminate_local_variables,
9315         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9316         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9317         of code delimited by two edges in the CFG.
9318         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9319         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9320         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
9321         the case of parallelisation of reductions.
9322         (expr_invariant_in_region_p): New.
9323
9324         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9325         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9326
9327 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9328             Richard Guenther  <rguenther@suse.de>
9329
9330         PR tree-optimization/36034
9331         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9332         incapable of dealing with loads with gaps.
9333
9334 2008-04-24  Rafael Espindola  <espindola@google.com>
9335
9336         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9337         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9338         vrp_evaluate_conditional.
9339         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9340         (vrp_evaluate_conditional): Split the cond argument.
9341         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9342         (simplify_stmt_for_jump_threading): Update call to
9343         vrp_evaluate_conditional.
9344
9345 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9346
9347         PR tree-optimization/35982
9348         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9349         interleaved data-refs are of the same type.
9350
9351 2008-04-24  Danny Smith  <dannysmith@users.net>
9352
9353         * c-format.c (check_format_info_main): Use strncmp rather than a
9354         magic prefix to handle multichar length specs.
9355         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9356         Don't prefix "I64" and "I32" with '\0'.
9357
9358 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9359
9360         PR target/36015
9361         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9362         in registers for -m32 only if stdarg_p (fntype).
9363
9364 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9365
9366         PR rtl-optimization/36006
9367         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9368         temp to op0 in order to avoid invalid rtx sharing.
9369
9370 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9371
9372         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9373         check TREE_INVARIANT.
9374         * tree-gimple.c (is_gimple_address): New.
9375         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9376         * tree-gimple.h (is_gimple_address): New.
9377         * tree.h (decl_address_invariant_p): New.
9378         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9379         (build_string): Likewise.
9380         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9381         (tree_invariant_p_1): Likewise.
9382         (save_expr): Use it.
9383         (tree_invariant_p): New.
9384         (skip_simple_arithmetic): Use it.
9385         (stabilize_reference_1): Use it.
9386         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9387         simplify.
9388         (build1_stat): Drop code to compute TREE_INVARIANT.
9389         (build2_stat): Drop code to compute TREE_INVARIANT.
9390         (build3_stat): Drop code to compute TREE_INVARIANT.
9391         (build4_stat): Drop code to compute TREE_INVARIANT.
9392         (build5_stat): Drop code to compute TREE_INVARIANT.
9393         (build7_stat): Drop code to compute TREE_INVARIANT.
9394         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9395         * tree.h (struct tree_base): Remove invariant_flag.
9396         (TREE_INVARIANT): Remove.
9397         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9398         (fold_builtin_expect): Check TREE_CONSTANT.
9399         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9400         * c-tree.h (c_expr_to_decl): Drop third parameter.
9401         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9402         (build_c_cast): Don't set TREE_INVARIANT.
9403         (pop_init_level): Don't set TREE_INVARIANT.
9404         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9405         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9406         TREE_CONSTANT.
9407         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9408         (gimplify_addr_expr): Adjust comment.
9409         * tree-mudflap.c (mf_build_string):
9410         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9411         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9412         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9413         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9414         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9415         * langhooks.h (struct lang_hooks): Drop third parameter from
9416         expr_to_decl.
9417
9418 2008-04-23  Richard Guenther  <rguenther@suse.de>
9419
9420         PR tree-optimization/27799
9421         PR tree-optimization/32921
9422         PR tree-optimization/32624
9423         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9424         SMTs aliases and the tag itself into the solution.
9425         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9426         merge the points-to solution back into the SMT aliases.
9427         (may_alias_p): Use alias_set_subset_of instead of
9428         aliases_conflict_p.  A pointer which points to
9429         memory with alias set zero may access any variable.
9430
9431 2008-04-23  Richard Guenther  <rguenther@suse.de>
9432
9433         * alias.c (alias_set_subset_of): Correctly handle asking
9434         if zero is a subset of an alias set with zero child.
9435         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9436         (compute_flow_insensitive_aliasing): Correctly walk all
9437         pointers.  Do not unnecessarily union sets.
9438
9439 2008-04-23  Richard Guenther  <rguenther@suse.de>
9440
9441         PR middle-end/36021
9442         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9443
9444 2008-04-22  Tomas Bily  <tbily@suse.cz>
9445
9446         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9447         unreachable case.
9448         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9449         NON_LVALUE_EXPR.
9450         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9451         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9452         * tree-inline.c (estimate_num_insns_1): Likewise.
9453         * varasm.c (const_hash_1, compare_constant, copy_constant)
9454         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9455         * emit-rtl.c (component_ref_for_mem_expr)
9456         (set_mem_attributes_minus_bitpos): Likewise.
9457         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9458         (is_aligning_offset): Likewise.
9459         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9460         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9461         * dojump.c (do_jump): Likewise.
9462         * builtins.c (get_pointer_alignment, get_memory_rtx)
9463         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9464         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9465
9466 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9467
9468         PR rtl-optimization/36017
9469         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9470         expanding the library call.
9471
9472 2008-04-22  Ian Lance Taylor  <iant@google.com>
9473
9474         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9475         than size_in_bytes.
9476
9477 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9478
9479         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9480         of LR/CTR moves for Power6.
9481
9482 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9483
9484         PR middle-end/36003
9485         * passes.c (init_optimization_passes): Remove
9486         pass_fast_rtl_byte_dce.
9487         
9488 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9489
9490         PR target/29096
9491         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9492         builtin functions to generate faster code.
9493         (_mm_cvtpu16_ps): Ditto.
9494         (_mm_cvtpi32x2_ps): Ditto.
9495
9496 2008-04-22  Nick Clifton  <nickc@redhat.com>
9497
9498         * common.opt (ftree-loop-distribution): Add Optimization
9499         attribute.
9500
9501         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9502         (frv_expand_builtin_va_start): Likewise.
9503
9504         * config/arm/arm.c (thumb_find_work_register): Fix location of
9505         argument register count.
9506
9507 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9508
9509         Support scheduling for ColdFire V1 and V3 microarchitecture.
9510         Improve scheduling of multiplication instructions.
9511
9512         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9513         (mac): New instruction attribute.
9514         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9515         (m68k_sched_mac): New variable.
9516         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9517         Handle cfv1 and cfv3.
9518         (max_insn_size): New static variable.
9519         (struct _sched_ib): New type.
9520         (sched_ib): New static variable.
9521         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9522         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9523         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9524         Update.
9525         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9526         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9527         new variables.  Update.
9528         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9529         Add modeling of cfv3 instruction buffer.  Update.
9530         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9531         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9532         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9533         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9534         a particular reservation applies to.
9535         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9536         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9537         to mul_l and mul_w.
9538         (cf_ib_*): Simplify description of instruction buffer.
9539         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9540         (cf_mem): Split into cf_mem1 and cf_mem2.
9541         (cf_v2_move_??): Rename to cfv12_alu_??.
9542         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9543         (cf_v2_mul_??): Remove reservations.
9544         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9545         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9546         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9547         appropriate place.
9548         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9549         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9550         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9551         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9552         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9553         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9554         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9555         expansions of the above reservations for instructions of sizes
9556         1, 2 and 3 words.
9557
9558 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9559
9560         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9561
9562 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9563
9564         * coverage.c: Include tree-pass.h.
9565         (coverage_counter_alloc): Print da_file_name to the dump file.
9566
9567 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9568
9569         * sbitmap.c (sbitmap_range_empty_p): New function.
9570         * sbitmap.h (sbitmap_range_empty_p): New function.
9571         * bitmap.h: Now includes obstack.h.
9572
9573 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9574             Kenneth Zadeck  <zadeck@naturalbridge.com>
9575
9576         * dbgcnt.def (ra_byte_scan): Added.
9577         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9578         when the last hit happens for a counter.  
9579         * timevar.def (TV_DF_BYTE_LR): New variable.
9580         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9581         * passes.c (pass_fast_rtl_byte_dce): New pass.
9582         * fwprop.c (update_df): Added mode to call df_ref_create.
9583         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9584         DF_REF_EXTRACT_OFFSET.
9585         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
9586         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9587         (df_mm): New enum.
9588         (df_ref_extract): Added mode field.
9589         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9590         DF_REF_EXTRACT_OFFSET.
9591         (DF_REF_EXTRACT_MODE): New macro.
9592         (df_byte_lr_bb_info): New structure.
9593         (df_print_byte_regset, df_compute_accessed_bytes, 
9594         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9595         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9596         df_byte_lr_simulate_uses,
9597         df_byte_lr_simulate_artificial_refs_at_top,
9598         df_byte_lr_simulate_artificial_refs_at_end,
9599         df_compute_accessed_bytes): New function.
9600         (df_ref_create): Add parameter.
9601         (df_byte_lr_get_bb_info): New inline function.
9602         * df-scan.c (df_ref_record, df_uses_record,
9603         df_ref_create_structure): Added mode parameter.
9604         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
9605         df_defs_record, df_uses_record, df_get_conditional_uses,
9606         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
9607         df_entry_block_defs_collect, df_exit_block_uses_collect):
9608         Added mode parameter to calls to df_ref_record, df_uses_record,
9609         df_ref_create_structure.
9610         (df_ref_equal_p, df_ref_compare): Added test for modes.
9611         (df_ref_create_structure): Added code to set mode.  Renamed
9612         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9613         DF_REF_EXTRACT_OFFSET.
9614         * df-core.c (df_print_byte_regset): New function.
9615         * df-byte-scan.c: New file.
9616         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9617         calls to BITMAP_FREE.  
9618         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9619         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9620         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
9621         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
9622         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9623         df_byte_lr_local_compute, df_byte_lr_init,
9624         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
9625         df_byte_lr_transfer_function, df_byte_lr_free, 
9626         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9627         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
9628         df_byte_lr_simulate_uses,
9629         df_byte_lr_simulate_artificial_refs_at_top,
9630         df_byte_lr_simulate_artificial_refs_at_end): New function.
9631         * dce.c (byte_dce_process_block): New function.
9632         (dce_process_block): au is now passed in rather than computed
9633         locally.  Changed loops that look at artificial defs to not look
9634         for conditional or partial ones, because there never are any.  
9635         (fast_dce): Now is able to drive byte_dce_process_block or 
9636         dce_process_block depending on the kind of dce being done.
9637         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9638         (rest_of_handle_fast_byte_dce): New function.
9639         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9640         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9641
9642 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9643
9644         PR fortran/35019
9645         * gcc.h: Added fortran options that take arguments to
9646         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9647         macros.
9648
9649 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9650
9651         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9652         scalarization if on the LHS and not a full access.
9653
9654 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9655
9656         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9657
9658 2008-04-18  Rafael Espindola  <espindola@google.com>
9659
9660         * tree-vrp.c (find_case_label_index): Fix the binary search.
9661         (find_case_label_range): New.
9662         (vrp_visit_switch_stmt): Use find_case_label_range.
9663         (simplify_switch_using_ranges): Use find_case_label_range.
9664
9665 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9666
9667         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9668         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9669
9670 2008-04-18  Tom Tromey  <tromey@redhat.com>
9671
9672         PR libcpp/15500:
9673         * doc/cpp.texi (Implementation-defined behavior): Mention
9674         -finput-charset.
9675
9676 2008-04-18  Ian Lance Taylor  <iant@google.com>
9677
9678         * fold-const.c (pointer_may_wrap_p): New static function.
9679         (fold_comparison): Add another test for pointer overflow.  Use
9680         pointer_may_wrap_p to disable some false positives.
9681
9682 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
9683           
9684         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9685         (fname_as_string): Match updated cpp_interpret_string prototype.
9686         (fix_string_type): Support char16_t* and char32_t*.
9687         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9688         derivative) nodes.  Register as builtin if C++0x.
9689         (c_parse_error): Support CPP_CHAR{16,32}.
9690         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
9691         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9692         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9693         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9694         CTI_CHAR32_ARRAY_TYPE>: New elements.
9695         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9696         char32_type_node, signed_char32_type_node, char16_array_type_node,
9697         char32_array_type_node): New defines.
9698         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9699         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9700         (lex_string): Support CPP_STRING{16,32}, match updated
9701         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9702         (lex_charconst): Support CPP_CHAR{16,32}.
9703         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9704         and CPP_STRING{16,32}.
9705
9706 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
9707
9708         PR bootstrap/35457
9709         * aclocal.m4: Regenerate.
9710         * configure: Regenerate.
9711
9712 2008-04-18  Jan Hubicka  <jh@suse.cz>
9713
9714         * except.c (dw2_size_of_call_site_table,
9715         sjlj_size_of_call_site_table): Use vector API for call_site_record.
9716
9717         * cgraphbuild.c (build_cgraph_edges): Update.
9718         * tree-pass.h: Update comment.
9719         * final.c (leaf_function_p): Update.
9720         (leaf_renumber_regs): Update.
9721         (rest_of_clean_state): Update.
9722         * omp-low.c (expand_omp_parallel): Update.
9723         * ipa-reference.c (analyze_function): Update.
9724         * reorg.c (find_end_label): Update.
9725         (optimize_skip): Update.
9726         (fill_simple_delay_slots): Update.
9727         (fill_simple_delay_slots): Update.
9728         (make_return_insns): Update.
9729         (dbr_schedule): Update.
9730         * gimple-low.c (record_vars_into): Update.
9731         * cfgbuild.c (make_edges): Update.
9732         * function.c (assign_stack_local): Update.
9733         (assign_parm_adjust_stack_rtl): Update.
9734         (locate_and_pad_parm): Update.
9735         (allocate_struct_function): Do not initialize stack_alignment_needed
9736         and preferred_stack_boundary here.
9737         (stack_protect_prologue): Update.
9738         (stack_protect_epilogue): Update.
9739         (expand_function_start): Initialize stack_alignment_needed,
9740         preferred_stack_boundary and max_jumptable_ents.
9741         (expand_function_end): Update.
9742         (free_after_compilation): Do not NULLify epilogue_delay_list.
9743         * function.h (struct rtl_data): Add stack_protect_guard,
9744         stack_alignment_needed,
9745         preferred_stack_boundary, epilogue_delay_list.
9746         (struct function): Remove value_histograms, stack_alignment_needed,
9747         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9748         last_label_uid,
9749         unexpanded_var_list, stack_protect_guard.
9750         (current_function_epilogue_delay_list): Remove.
9751         * ipa-type-escape.c (analyze_function): Update.
9752         * gimplify.c (pop_gimplify_context): Update comment.
9753         * calls.c (expand_call): Update.
9754         (emit_library_call_value_1): Update.
9755         * except.c (set_nothrow_function_flags): Update.
9756         * cfgexpand.c (get_decl_align_unit): Update.
9757         (create_stack_guard): Update.
9758         (estimated_stack_frame_size): Update.
9759         (expand_used_vars): Update.
9760         (tree_expand_cfg): Free histogram earliers, init expansion variables.
9761         * explow.c (allocate_dynamic_stack_space): Update.
9762         * tree-ssa-live.c (remove_unused_locals): Update.
9763         * varasm.c (mark_constant_pool): Update.
9764         * tree-inline.c (remap_decls): Update.
9765         (initialize_cfun): Update.
9766         (declare_return_variable): Update.
9767         (inline_forbidden_p): Update.
9768         (expand_call_inline): Update.
9769         (declare_inline_vars): Update.
9770         (tree_function_versioning): Update.
9771         * tree-flow.h (value_histograms): New.
9772         (VALUE_HISTOGRAMS): New macro.
9773         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9774         last_label_uid.
9775         * tree-cfg.c (set_bb_for_stmt): Update.
9776         (replace_by_duplicate_decl): Update.
9777         (move_block_to_fn): Update.
9778         (new_label_mapper): Update.
9779         (dump_function_to_file): Update.
9780         * ipa-struct-reorg.c (build_data_structure): Update.
9781         * cfgrtl.c (print_rtl_with_bb): Update.
9782         * reload1.c (reload): Update.
9783         (reload): Update.
9784         * config/i386/i386.c (setup_incoming_varargs_64,
9785         ix86_compute_frame_layout): Update.
9786         * config/arc/arc.c (arc_output_function_epilogue): Update.
9787
9788 2008-04-18  Marius Strobl <marius@FreeBSD.org>
9789
9790         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9791         for FreeBSD as well.
9792         * gthr-posix95.h: Likewise.
9793
9794 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
9795
9796         PR rtl-optimization/35838
9797         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9798         out the byte offset of the first subreg.
9799
9800 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
9801
9802         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9803         to split_ti instead of three separate calls with single member arrays.
9804         (subti3 splitter): Ditto.
9805         (adddi3 splitter): Ditto with split_di.
9806         (subdi3 splitter): Ditto.
9807         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9808         two separate calls with single member arrays.  Swap match_dup
9809         operands 1 and 2 to better fit into the array.
9810         (negdi2 splitter): Ditto with split_di.
9811         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
9812         two separate calls with single member arrays.  Swap match_dup operands
9813         6 and 7 to better fit into the array.
9814
9815 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9816
9817         * config/i386/i386.c (sse_builtin_type): New.
9818         (bdesc_sse_args): Likewise.
9819         (bdesc_sse_3arg): Removed.
9820         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9821         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9822         IX86_BUILTIN_ROUNDPS.
9823         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
9824         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
9825         IX86_BUILTIN_ROUNDPS.
9826         (ix86_expand_sse_4_operands_builtin): Removed.
9827         (ix86_expand_sse_operands_builtin): New.
9828         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9829         and CODE_FOR_sse4_1_roundps.
9830         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9831         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
9832
9833 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
9834
9835         PR target/35907
9836         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9837         regs before frame pop when needed.  If use_backchain_to_restore_sp
9838         then load backchain into a temp reg to restore vr and vrsave.  Add
9839         code to restore vr after frame pop if possible.
9840
9841 2008-04-17  Richard Guenther  <rguenther@suse.de>
9842
9843         * tree-vn.c (expressions_equal_p): Do not check type
9844         equality or compatibility before calling operand_equal_p.
9845         * fold-const.c (operand_equal_p): Check equivalence of
9846         integer constants before bailing out due to signedness or
9847         precision differences.
9848         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9849         spurious differences in type qualification.  Ignore types
9850         for COMPONENT_REFs at all.
9851
9852 2008-04-17  Christian Bruel  <christian.bruel@st.com>
9853
9854         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9855         msw_skip comparison.
9856         
9857 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
9858
9859         PR c/35739
9860         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9861         reg type.
9862
9863         PR tree-optimization/35899
9864         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9865         rather than TREE_OPERAND.
9866
9867 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
9868
9869         PR target/35944
9870         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9871         temporary registers.  Change operand predicate to general_operand.
9872         (remainderxf3): Ditto.
9873
9874 2008-04-16  Richard Guenther  <rguenther@suse.de>
9875
9876         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9877         * tree-affine.c (aff_combination_expand): Look through some
9878         conversions.
9879
9880 2008-04-15  Doug Kwan  <dougkwan@google.com>
9881
9882         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9883         for hex printing.
9884         * tree-pretty-print.c (dump_generic_node): Ditto.
9885         * final.c (output_addr_const): Ditto.
9886         * dwarf2out.c (output_cfi): Ditto.
9887         * c-pretty-print.c (pp_c_integer_constant): Ditto.
9888         * print-rtl.c (print_rtx): Ditto.
9889         * print-tree.c (print_node_brief, print_node): Ditto.
9890         * c-common.c (match_case_to_enum_1): Ditto.
9891         * sched-vis.c (print_value): Ditto.
9892         * config/i386/i386.c (print_operand): Cast to long unsigned int
9893         for hex printing.
9894
9895 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
9896         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
9897         MS Windows VirtualProtect function.
9898
9899 2008-04-15  Jan Hubicka  <jh@suse.cz>
9900
9901         * gengtype.c (write_root): Param_is argument is OK.
9902         * expr.c (expand_expr_real_1): Update call of get_exception_*.
9903         * function.h: Include varray.h
9904         (rtl_eh): New stucture based on except.c one.
9905         (call_site_record): New forward declaration and vector type.
9906         * calls.c (emit_call_1): Do not call
9907         note_current_region_may_contain_throw.
9908         * except.c (eh_status): Remove cur_region, try_region since they are
9909         unused.
9910         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9911         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9912         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
9913         Remove call_site_data_used, call_site_data_size.
9914         Turn call_site_record into vector in function.h.
9915         (note_current_region_may_contain_throw): Remove.
9916         (get_exception_pointer, get_exception_filter): Do not take struct
9917         function argument; update.
9918         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9919         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9920         build_post_landing_pads, dw2_build_landing_pads,
9921         sjlj_assign_call_site_values, sjlj_mark_call_sites,
9922         sjlj_emit_function_enter, sjlj_emit_function_enter, 
9923         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9924         sjlj_build_landing_pads, finish_eh_generation,
9925         remove_exception_handler_label, remove_eh_handler,
9926         maybe_remove_eh_handler, add_reachable_handler,
9927         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9928         add_action_record, collect_one_action_chain, add_call_site,
9929         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9930         sjlj_output_call_site_table, output_function_exception_table,
9931         * except.h (note_current_region_may_contain_throw): Remove
9932         (get_exception_pointer, get_exception_filter): Do not take struct
9933         function argument.
9934         * Makefile.in (GTFILES): Put varargs before struct function.
9935
9936 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9937
9938         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9939         punt for STRING_CST.
9940         (get_constraint_for): Deal with STRING_CST here instead.
9941
9942 2008-04-15  Richard Guenther  <rguenther@suse.de>
9943
9944         * tree-ssa-propagate.c (substitute_and_fold): Substitute
9945         statements in a basic-block with a backward walk.  Do not
9946         substitute into dead statements but instead remove those.
9947
9948 2008-04-15  Richard Guenther  <rguenther@suse.de>
9949
9950         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9951         to zero, thus disable creation of SFTs.
9952
9953 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9954
9955         * tree-predcom.c (suitable_reference_p): Return false if the
9956         reference can throw.
9957
9958 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
9959
9960         PR c/35751
9961         * c-decl.c (finish_decl): If extern or static var has variable
9962         size, set TREE_TYPE (decl) to error_mark_node.
9963
9964 2008-04-15  Rafael Espindola  <espindola@google.com>
9965
9966         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9967         variable arg1.
9968
9969 2008-04-15  Richard Guenther  <rguenther@suse.de>
9970
9971         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9972         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9973         (visit_reference_op_load): Do walk vuse-vdef chains on
9974         vn_reference_lookup.
9975         (visit_reference_op_store): But do not here.
9976         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9977         vn_reference_lookup.
9978         (vn_lookup_with_vuses): But do so here.
9979
9980 2008-04-14  Ian Lance Taylor  <iant@google.com>
9981
9982         * fold-const.c (fold_overflow_warning): Remove assertion.
9983
9984 2008-04-15  Ben Elliston  <bje@au.ibm.com>
9985
9986         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9987         temp1 local variables.
9988
9989 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
9990
9991         PR target/35661
9992         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9993         ".text.unlikely" section as executable.
9994
9995 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
9996
9997         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9998         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9999         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10000         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10001         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10002         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10003         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10004
10005 2008-04-14  Ian Lance Taylor  <iant@google.com>
10006
10007         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10008         * fold-const.c (fold_comparison): If appropriate, test
10009         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10010         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10011         reassociating a pointer type.
10012         * doc/invoke.texi (Optimize Options): Document that
10013         -fstrict-overflow applies to pointer wraparound.
10014
10015 2008-04-13  Jan Hubicka  <jh@suse.cz>
10016
10017         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10018
10019 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10020
10021         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10022         we are going to "save the world".
10023
10024 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10025
10026         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10027         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10028         operand 0 constraint, not "=".
10029
10030 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10031
10032         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10033
10034 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10035
10036         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10037         of size of positions_needed * CHAR_BIT.
10038
10039 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10040
10041         PR middle-end/35897
10042         * dse.c (store_info): Change positions_needed to unsigned
10043         HOST_WIDE_INT.
10044         (lowpart_bitmask): New.
10045         (record_store): Cast to unsigned HOST_WIDE_INT for
10046         positions_needed.  Assert width <= size of positions_needed *
10047         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10048         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10049         lowpart_bitmask to set mask.
10050
10051 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10052
10053         * config/bfin/constraints.md: New file.
10054         * config/bfin/bfin.md: Include it.
10055         (adddi3): Use satisfies_constraint functions instead of the old macros.
10056         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10057         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10058         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10059         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10060         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10061         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10062         EXTRA_CONSTRAINT): Delete.
10063         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10064         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10065         of the old macros.
10066         * config/bfin/bfin.c: Include "tm-constrs.h".
10067         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10068         Use satisfies_constraint functions instead of the old macros.
10069         * doc/md.texi (Blackfin Constraints): Update file name reference.
10070
10071 2008-04-11  Richard Guenther  <rguenther@suse.de>
10072
10073         PR tree-optimization/35869
10074         * tree-vrp.c (execute_vrp): Move switch statement update after
10075         jump threading.  Schedule another cfg cleanup run.
10076
10077 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10078
10079         PR c/35744
10080         * attribs.c (decl_attributes): Return early on errorneous node.
10081
10082 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10083
10084         * tree.h (struct tree_base): Added a new flag default_def_flag.
10085         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10086
10087 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10088
10089         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10090
10091 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10092
10093         PR target/35768
10094         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10095         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10096         (icacheflush): Likewise.
10097         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10098         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10099
10100 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10101
10102         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10103
10104 2008-04-10  Rafael Espindola  <espindola@google.com>
10105
10106         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10107         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10108         (extract_range_from_expr): The same.
10109
10110 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10111
10112         * config/mips/mips.md (GPR2): New mode iterator.
10113         (seq): Add comment.
10114         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10115         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10116         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10117         Rewrite these to take two modes, the mode of comparison and the
10118         mode of the destination.
10119         * config/mips/mips.c (mips_expand_scc): Instead of having
10120         paradoxical subreg as destination, expand "narrowing" scc if mode
10121         of comparison is SI and target is requested in DI mode.
10122         (mips_emit_int_order_test): Update comment.  Make mode of
10123         comparison match CMP0 rather than TARGET.  When creating inverse
10124         target use mode of TARGET.
10125
10126 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10127
10128         * gcov-dump.c (tag_summary): Only print summaries for the first
10129         GCOV_COUNTERS_SUMMABLE counters.
10130
10131 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10132
10133         * config/i386/i386.md (absneg): New code iterator.
10134         (absnegprefix): New code attribute.
10135         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10136         patterns using absneg code iterator.
10137         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10138         using absneg code iterator.
10139         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10140         *neg<mode>2 patterns using absneg code iterator.
10141         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10142         *negextendsfdf2 patterns using absneg code iterator.
10143         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10144         *negextendsfxf2 patterns using absneg code iterator.
10145         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10146         *negextendsfdf2 patterns using absneg code iterator.
10147         * config/i386/sse.md (<code><mode>2): Macroize expander from
10148         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
10149
10150 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10151
10152         * config/s390/s390.h: Remove the remains of the recent search
10153         & replace action of current_function_outgoing_args_size.
10154
10155 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10156
10157         PR tree-optimization/35821
10158         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10159         NEW_STMT_LIST is not NULL.
10160
10161 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10162
10163         PR libstdc++/35597
10164         * toplev.c (process_options): Remove -ffunction-sections debugging
10165         warning.
10166
10167 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10168
10169         PR middle-end/PR28690
10170         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10171         than gen_rtx_fmt_ee to perform more canonicalizations.
10172
10173 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10174
10175         PR driver/35665
10176         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10177
10178 2008-04-09  Richard Guenther  <rguenther@suse.de>
10179
10180         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10181         (dump_function_to_file): Dump function arguments with types.
10182
10183 2008-04-08  Richard Guenther  <rguenther@suse.de>
10184
10185         * fold-const.c (fold_widened_comparison): Do not allow
10186         sign-changes that change the result.
10187
10188 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10189
10190         PR target/35839
10191         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10192         kinds of indirect references.
10193
10194 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10195
10196         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10197         GNU Fortran language string.
10198
10199 2008-04-08  Rafael Espindola  <espindola@google.com>
10200
10201         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10202         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10203         * tree.h (tree_call_nonnegative_warnv_p): New.
10204
10205 2008-04-08  Jan Hubicka  <jh@suse.cz>
10206
10207         * function.c (free_after_compilation): Clear out regno_reg_rtx
10208         pointer.
10209
10210 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10211
10212         Revert
10213         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10214
10215         PR middle-end/PR28690
10216         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10217         same precedence as REG_POINTER and MEM_POINTER operands.
10218
10219 2008-04-08  Richard Guenther  <rguenther@suse.de>
10220
10221         PR middle-end/35834
10222         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10223         for adding index to base.
10224
10225 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10226
10227         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10228         (MINGW_ENABLE_EXECUTE_STACK): New.
10229         (IN_LIBGCC2): For libgcc include windows.h file for
10230         function declarations.
10231
10232 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10233
10234         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10235         and tem2 if tem1 is not a REG or MULT.
10236
10237 2008-04-08  Jan Hubicka  <jh@suse.cz>
10238
10239         * function.h (incomming_args): Break out of struct function.
10240         (function_subsections): Break out of struct function.
10241         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10242         return_rtx and hard_reg_initial_vals from struct function.
10243         Kill inl_max_label_num.
10244         (current_function_pops_args, current_function_args_info,
10245         current_function_args_size, current_function_args_size,
10246         current_function_pretend_args_size,
10247         current_function_outgoing_args_size,
10248         current_function_internal_arg_pointer, current_function_return_rtx):
10249         Kill compatibility accestor macros.
10250         * builtins.c (expand_builtin_apply_args_1): Update.
10251         (expand_builtin_next_arg): Update.
10252         * df-scan.c (df_get_call_refs): Update.
10253         * dbxout.c (dbxout_function_end): Update.
10254         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10255         (output_line_info): Update.
10256         (secname_for_decl): Update.
10257         (dwarf2out_var_location): Update.
10258         * function.c (free_after_compilation): Update.
10259         (assign_parm_find_stack_rtl): Update.
10260         (assign_parms): Update.
10261         (expand_dummy_function_end): Update.
10262         (expand_function_end): Update.
10263         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10264         (expand_call): Update.
10265         (emit_library_call_value_1): Update.
10266         (store_one_arg): Update.
10267         * varasm.c (initialize_cold_section_name): Update.
10268         (unlikely_text_section): Update.
10269         (unlikely_text_section_p): Update.
10270         (assemble_start_function): Update.
10271         (assemble_end_function): Update.
10272         (default_section_type_flags): Update.
10273         (switch_to_section): Update.
10274         * integrate.c (set_decl_abstract_flags): Update.
10275         (get_hard_reg_initial_val): Update.
10276         (has_hard_reg_initial_val): Update.
10277         (allocate_initial_values): Update.
10278         * resource.c (init_resource_info): Update.
10279         * config/alpha/alpha.c (NUM_ARGS): Update.
10280         (direct_return): Update.
10281         (alpha_va_start): Update.
10282         (alpha_sa_size): Update.
10283         (alpha_initial_elimination_offset): Update.
10284         (alpha_expand_prologue): Update.
10285         (alpha_start_function): Update.
10286         (alpha_expand_epilogue): Update.
10287         (unicosmk_initial_elimination_offset):
10288         * config/alpha/alpha.md (call expander): Update.
10289         * config/s390/s390.c (s390_register_info): Update.
10290         (s390_register_info): Update.
10291         (s390_frame_info): Update.
10292         (s390_initial_elimination_offset): Update.
10293         (s390_build_builtin_va_list): Update.
10294         (s390_va_start): Update.
10295         * config/spu/spu.c (direct_return): Update.
10296         (spu_expand_prologue): Update.
10297         (spu_initial_elimination_offset): Update.
10298         (spu_build_builtin_va_list): Update.
10299         (spu_va_start): Update.
10300         * config/sparc/sparc.c (sparc_init_modes): Update.
10301         (sparc_compute_frame_size): Update.
10302         (function_value): Update.
10303         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10304         * config/i386/i386.md (return expander): Update.
10305         * config/i386/i386.c (ix86_va_start): Update.
10306         (ix86_can_use_return_insn_p): Update.
10307         (ix86_compute_frame_layout): Update.
10308         (ix86_expand_epilogue): Update.
10309         * config/sh/sh.c (output_stack_adjust): Update.
10310         (calc_live_regs): Update.
10311         (sh_expand_prologue): Update.
10312         (sh_builtin_saveregs): Update.
10313         (sh_va_start): Update.
10314         (initial_elimination_offset): Update.
10315         (sh_allocate_initial_value): Update.
10316         (sh_function_ok_for_sibcall): Update.
10317         (sh_get_pr_initial_val): Update.
10318         * config/sh/sh.md (return expander): Update.
10319         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10320         * config/crx/crx.c (crx_compute_frame): UPdate.
10321         (crx_initial_elimination_offset): UPdate.
10322         * config/xtensa/xtensa.c (compute_frame_size): Update
10323         (xtensa_builtin_saveregs): Update.
10324         (xtensa_va_start): Update.
10325         (order_regs_for_local_alloc): Update.
10326         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10327         (xstormy16_expand_builtin_va_start): Update.
10328         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10329         * config/m68hc11/m68hc11.md (return expanders): Update.
10330         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10331         (expand_epilogue): Update.
10332         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10333         (cris_simple_epilogue): Update.
10334         (cris_expand_prologue): Update.
10335         (cris_expand_epilogue): Update.
10336         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10337         (compute_frame_size): Update.
10338         * config/mt/mt.c (mt_compute_frame_size): Update.
10339         * config/mn10300/mn10300.c (expand_prologue): Update.
10340         (expand_epilogue): Update.
10341         (initial_offset): Update.
10342         (mn10300_builtin_saveregs):
10343         * config/mn10300/mn10300.md (return expander): Update.
10344         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10345         (ia64_initial_elimination_offset): Update.
10346         (ia64_initial_elimination_offset): Update.
10347         (ia64_expand_prologue): Update.
10348         * config/m68k/m68k.md (return expander): Update.
10349         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10350         (rs6000_stack_info): Update.
10351         * config/mcore/mcore.c (layout_mcore_frame): Update.
10352         (mcore_expand_prolog): Update.
10353         * config/arc/arc.c (arc_compute_frame_size): Update.
10354         * config/score/score3.c (score3_compute_frame_size): Update.
10355         * config/score/score7.c (score7_compute_frame_size): Update.
10356         * config/arm/arm.c (use_return_insn): Update.
10357         (thumb_find_work_register): Update.
10358         (arm_compute_save_reg_mask): Update.
10359         (arm_output_function_prologue): Update.
10360         (arm_output_epilogue): Update.
10361         (arm_size_return_regs): Update.
10362         (arm_get_frame_offsets): Update.
10363         (arm_expand_prologue): Update.
10364         (thumb_exit): Update.
10365         (thumb_unexpanded_epilogue): Update.
10366         (thumb1_output_function_prologue): Update.
10367         * config/pa/pa.md (return expander): Update.
10368         * config/pa/pa.c (compute_frame_size): Update.
10369         (hppa_builtin_saveregs): Update.
10370         * config/mips/mips.c (mips_va_start): Update.
10371         (mips16_build_function_stub): Update.
10372         (mips_compute_frame_info): Update.
10373         (mips_restore_gp): Update.
10374         (mips_output_function_prologue): Update.
10375         (mips_expand_prologue): Update.
10376         * config/v850/v850.c (compute_frame_size): Update.
10377         (expand_prologue): * config/mmix/mmix.c (along): update.
10378         (mmix_initial_elimination_offset): update.
10379         (mmix_reorg): update.
10380         (mmix_use_simple_return): update.
10381         (mmix_expand_prologue): update.
10382         (mmix_expand_epilogue): Update.
10383         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10384         (emit_link_insn): Update.
10385
10386 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10387
10388         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
10389         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
10390         instructions.
10391         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
10392         atmega103 device.
10393
10394 2008-04-07  Jan Hubicka  <jh@suse.cz>
10395
10396         * function.h (rtl): Rename to x_rtl.
10397         (crtl): New define.
10398         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10399         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10400         used_temp_slots avail_temp_slots, temp_slot_level,
10401         nonlocal_goto_handler_labels): Update accesstors.
10402         (rtl): New global variable.
10403         (struct function): Move some fileds to rtl_data.
10404         (get_arg_pointer_save_area): Update prototype.
10405         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10406         get_arg_pointer_save_area.
10407         * expr.c (init_expr): Update
10408         * function.c (get_frame_size): Update
10409         (assign_stack_local): Update
10410         (expand_function_end): Update.
10411         (get_art_pointer_save_area): Update
10412         * function.h 
10413         * emit-rtl.c (rtl): Declare.
10414         (regno_reg_rtx): Declare.
10415         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10416         Update.
10417         (gen_reg_rtx): Update.
10418         * varasm.c (n_deferred_constatns): Update accestor.
10419         (init_varasm_status): Do not allocate varasm_status.
10420         (force_const_mem, get_pool_size, output_constant_pool): Update.
10421         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10422         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10423         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10424         * sparc/sparc.h (INIT_EXPANDERS): Update.
10425         * ia64/ia64.h (INIT_EXPANDERS): Update.
10426
10427 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10428
10429         * reload.c (push_secondary_reload): Add missing break to for loop.
10430
10431 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10432
10433         PR middle-end/PR28690
10434         * rtlanal.c: Update copyright years.
10435         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10436         as REG_POINTER and MEM_POINTER operands.
10437         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10438         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10439         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10440         * gcse.c: Update copyright years.
10441         (pre_delete): Call gen_reg_rtx_and_attrs.
10442         (hoist_code): Likewise.
10443         (build_store_vectors): Likewise.
10444         (delete_store): Likewise.
10445         * loop-invariant.c (move_invariant_reg): Likewise.
10446         Update copyright years.
10447
10448 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10449
10450         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10451         control string instead of quoted.
10452
10453 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10454
10455         * doc/rtl.texi: Rewrite of subreg section.
10456
10457 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10458
10459         PR/35842
10460         * config/i386/i386.c (legitimize_pic_address): Add treating
10461         of dllimport SYM_REF's.
10462         (legitimize_dllimport_symbol): Add prototype.
10463
10464 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10465
10466         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10467         reference in constructor with non self-referential type.
10468
10469 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10470
10471         Removal of Return with Depressed Stack Pointer support
10472         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10473         (ECF_SP_DEPRESSED): Likewise.
10474         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10475         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10476         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10477         (expand_call): Do not test ECF_SP_DEPRESSED.
10478         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10479         * function.c (keep_stack_depressed): Delete.
10480         (handle_epilogue_set): Likewise.
10481         (update_epilogue_consts): Likewise.
10482         (emit_equiv_load): Likewise.
10483         (thread_prologue_and_epilogue_insns): Remove support for Return with
10484         Depressed Stack Pointer.
10485         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10486
10487 2008-04-06  Richard Guenther  <rguenther@suse.de>
10488
10489         PR tree-optimization/35400
10490         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10491         information from SSA_NAMEs.
10492
10493 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10494
10495         * config/avr/avr.h (avr_mega_p): Remove declaration.
10496         (AVR_MEGA): Remove macro.
10497         * config/avr/avr.c (avr_mega_p): Remove variable.
10498         (avr_override_options): Remove inicializion of avr_mega_p.
10499         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10500         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10501         (avr_jump_mode): (Ditto.).
10502         (avr_output_progmem_section_asm_op): (Ditto.).
10503         (avr_asm_init_sections): (Ditto.).
10504         (avr_asm_init_sections): (Ditto.).
10505         (avr_rtx_costs): (Ditto.).
10506         * config/avr/avr.md: (Ditto.).
10507         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
10508         '__AVR_MEGA__'.
10509
10510 2008-04-06  Richard Guenther  <rguenther@suse.de>
10511
10512         PR tree-optimization/35842
10513         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10514         is_gimple_invariant_address.
10515
10516 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10517
10518         * gcc.c (default_compilers): Sync Fortran extensions list with
10519         that in fortran/lang-specs.h.
10520         * doc/invoke.texi: Likewise.
10521         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10522         * dwarf2out.c (gen_compile_unit_die): Likewise.
10523
10524 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10525
10526         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10527
10528 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10529
10530         PR target/12329
10531         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10532         attribute is used for nested functions.
10533
10534 2008-04-05  Jan Hubicka  <jh@suse.cz>
10535
10536         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10537
10538         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10539         letter argument.
10540         (dump_files): Update.
10541         (enable_rtl_dump_file): Do not accept letter argument.
10542         * tree-pass.h (dump_file_info): Remove letter argument.
10543         * toplev.c (decode_d_option): Update -da handling.
10544         * toplev.h (enable_rtl_dump_file): Update prototype.
10545         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10546         it out based on pass type.
10547         (register_dump_files_1): Likewise.
10548         (init_optimization_passes): Update register_one_dump_file calls.
10549         (execute_one_pass): Sanity check that IPA passes are called at IPA
10550         level and RTL passes at RTL level.
10551         (execute_pass_list): IPA pass can not be after or subpass of
10552         GIMPLE/RTL pass.
10553         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10554         disallov RTL subpasses of IPA subpasses.
10555
10556 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10557
10558         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10559         builtins that return exactly once and do not throw. Cache call to
10560         call_expr_flags.
10561
10562 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10563
10564         PR rtl-optimization/34916
10565         PR middle-end/35519
10566         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10567         between instruction pairs.
10568
10569 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10570
10571         * doc/invoke.texi: Document -mbitops for SH.
10572         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10573         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10574         * config/sh/sh.c (print_operand): Add %t operand code.
10575         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10576         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10577         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10578         (extendqihi2): Likewise.
10579         (movqi_i): Likewise.
10580         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10581         (extv): Use bld instruction for SH2A if possible.
10582         (extzv): Likewise.
10583         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10584         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10585         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10586         (bset.b, bclr.b): Define peepholes.
10587         * config/sh/sh.opt (mbitops): New option.
10588
10589 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10590
10591         PR target/35620
10592         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10593         and view convert expression.
10594
10595 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10596
10597         PR target/35364
10598         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10599
10600 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10601
10602         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10603
10604         * config/i386/cpuid.h (bit_AES): New.
10605         (bit_PCLMUL): Likewise.
10606
10607         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10608         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10609         SSE2 if AES or PCLMUL is enabled.
10610         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10611         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10612         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10613         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10614         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10615         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10616         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10617         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10618         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10619         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10620         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10621         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10622         __builtin_ia32_aeskeygenassist128 and
10623         __builtin_ia32_pclmulqdq128.
10624         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10625         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10626         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10627
10628         * config/i386/i386.h (TARGET_AES): New.
10629         (TARGET_PCLMUL): Likewise.
10630         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10631
10632         * config/i386/i386.md (UNSPEC_AESENC): New.
10633         (UNSPEC_AESENCLAST): Likewise.
10634         (UNSPEC_AESDEC): Likewise.
10635         (UNSPEC_AESDECLAST): Likewise.
10636         (UNSPEC_AESIMC): Likewise.
10637         (UNSPEC_AESKEYGENASSIST): Likewise.
10638         (UNSPEC_PCLMUL): Likewise.
10639
10640         * config/i386/i386.opt (maes): New.
10641         (mpclmul): Likewise.
10642
10643         * config/i386/sse.md (aesenc): New pattern.
10644         (aesenclast): Likewise.
10645         (aesdec): Likewise.
10646         (aesdeclast): Likewise.
10647         (aesimc): Likewise.
10648         (aeskeygenassist): Likewise.
10649         (pclmulqdq): Likewise.
10650
10651         * config/i386/wmmintrin.h: New.
10652
10653         * doc/extend.texi: Document AES and PCLMUL built-in function.
10654
10655         * doc/invoke.texi: Document -maes and -mpclmul.
10656
10657 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
10658
10659         * function.c (free_after_parsing): Replace with
10660         cxx_push_function_context from C++ front-end.
10661         (allocate_struct_function): Don't call langhook.
10662         * langhooks.h (struct lang_hooks_for_functions): Delete.
10663         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10664         member "function".
10665         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10666         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10667         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10668         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10669         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10670         remove LANG_HOOKS_FUNCTION_INITIALIZER.
10671         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10672
10673         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10674         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10675         
10676 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10677
10678         PR c/35440
10679         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10680         for all types.
10681
10682 2008-04-04  Richard Guenther  <rguenther@suse.de>
10683
10684         PR middle-end/35823
10685         * fold-const.c (optimize_minmax_comparison): Use the correct
10686         type for the constant in the simplified comparison.
10687
10688 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
10689
10690         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10691         Pass L2 size as "--param l2-cache-size" to the compiler.
10692         (decode_l2_cache): New function to decode L2 cache parameters using
10693         0x8000006 extended cpuid function.
10694         (detect_caches_amd): Determine parameters of L2 cache using
10695         decode_l2_caches function.
10696         (decode_caches_intel): Decode L2 cache parameters.
10697         (detect_caches_intel): Determine L2 cache parameters using
10698         decode_caches_intel and decode_l2_caches functions.
10699
10700 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
10701
10702         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10703         secondary input reload for subword loads from the constant pool.
10704
10705 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
10706
10707         PR target/35713
10708         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10709           constants of the appropriate size for runtime calculations.
10710
10711         PR c/35712
10712         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10713           decimal-float literal constant zero.
10714
10715 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
10716
10717         PR c/35738
10718         * c-parser.c (c_parser_omp_atomic): Call
10719         default_function_array_conversion on the RHS.
10720
10721         PR middle-end/35818
10722         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10723         call is_variable_sized if decl has incomplete type.
10724
10725 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
10726
10727         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10728
10729 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
10730
10731         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10732         iterators.
10733         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10734         (sgt<u>): Merge sgt and sgtu into new expander.
10735         (sgt, sgtu): Remove expanders.
10736         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10737         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10738         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10739         *sgtu_<mode>_mips16 into new pattern.
10740         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10741         (sge<u>): Merge sge and sgeu into new expander.
10742         (sge, sgeu): Remove expanders.
10743         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10744         new pattern.
10745         (*sge_<mode>, second *sge_<mode>): Remove patterns.
10746         (slt<u>): Merge slt and sltu into new expander.
10747         (slt, sltu): Remove expanders.
10748         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10749         (*slt_<mode>, *sltu_<mode>): Remove patterns.
10750         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10751         *sltu_<mode>_mips16 into new pattern.
10752         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10753         (sle<u>): Merge sle and sleu into new expander.
10754         (sle, sleu): Remove expanders.
10755         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10756         (*sle_<mode>, *sleu_<mode>): Remove patterns.
10757         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10758         *sleu_<mode>_mips16 into new pattern.
10759         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10760
10761 2008-04-03  Jan Hubicka  <jh@suse.cz>
10762
10763         PR tree-optimization/35795
10764         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10765         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10766         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10767         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10768         * score/score3.c (score3_output_mi_thunk): Likewise.
10769         * score/score7.c (score7_output_mi_thunk): Likewise.
10770         * mips/mips.c (mips_output_mi_thunk): Likewise.
10771
10772 2008-04-03  Richard Guenther  <rguenther@suse.de>
10773
10774         * tree-vrp.c (extract_range_from_unary_expr): Handle all
10775         conversions.  Simplify code.
10776
10777 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10778
10779         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10780
10781 2008-04-03  Tom Tromey  <tromey@redhat.com>
10782             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10783
10784         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10785         * config/bfin/t-bfin-linux (generated_files): Add
10786         linux-sysroot-suffix.h.
10787         * doc/install.texi (Prerequisites): Require make 3.80.
10788         * doc/sourcebuild.texi (Front End Directory): Document new
10789         variable.
10790         * Makefile.in (generated_files): New variable.
10791         (ALL_HOST_OBJS): New variable.
10792         ($(ALL_HOST_OBJS)): New target.
10793
10794 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10795
10796         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10797         (remap_block): Call id->transform_lang_insert_block instead
10798         of langhook.
10799         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10800         Set id.transform_lang_insert_block to NULL.
10801         (clone_body): Move to cp/optimize.c
10802         * tree-inline.h (struct copy_body_data): Change
10803         transform_lang_insert_block to function pointer.
10804         (copy_generic_body, copy_decl_no_change): Export.
10805         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10806         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10807         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10808
10809         * c-tree.h (insert_block): Kill.
10810         * c-decl.c (insert_block): Kill.
10811
10812 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10813
10814         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10815         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10816         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10817         argument.
10818         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10819         argument, call {push,pop}_function_context from here.
10820         * c-parser.c: Use c_{push,pop}_function_context.
10821
10822         * function.c (push_function_context_to): Move meat ...
10823         (push_function_context): ... here.  Simplify.
10824         * function.c (pop_function_context_from): Move meat ...
10825         (pop_function_context): ... here.  Simplify.
10826         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10827         leave_nested).
10828         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10829         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10830         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10831         * tree.h (push_function_context_to, pop_function_context_from): Remove.
10832
10833 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10834
10835         * expmed.c (extract_force_align_mem_bit_field): Remove.
10836
10837 2008-04-03  Richard Guenther  <rguenther@suse.de>
10838
10839         PR middle-end/35800
10840         * expr.h (try_casesi): Adjust prototype.
10841         * expr.c (try_casesi): Take fallback label as extra parameter.
10842         Use that for gen_casesi if default_label is NULL.
10843         * stmt.c (expand_case): Pass fallback label to try_casesi,
10844         make sure to fill gaps with a fallback label if default_label
10845         is not present.
10846
10847 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
10848
10849         PR target/35801
10850         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10851
10852 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10853
10854         * expmed.c (extract_split_bit_field): Remove if (0) code.
10855         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10856         (do_ds_constraint): Likewise.
10857
10858 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
10859
10860         * doc/cppopts.texi (-dU): Document.
10861         * c-common.h (flag_dump_macros): Update comment.
10862         * c-opts.c (handle_OPT_d): Handle -dU.
10863         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10864         dump_queued_macros, cb_used_define, cb_used_undef): New.
10865         (init_pp_output): Handle -dU.
10866         (cb_line_change): Call dump_queued_macros.
10867         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10868
10869 2008-04-02  Anatoly Sokolov <aesok@post.ru>
10870
10871         * config/avr/predicates.md (io_address_operand): New predicate. 
10872         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10873         * config/avr/avr.c (avr_io_address_p): Remove function.
10874         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
10875         'avr_io_address_p' function.
10876         (out_movhi_r_mr): (Ditto.).
10877         (out_movqi_mr_r): (Ditto.).
10878         (out_movhi_mr_r): (Ditto.).
10879         (avr_address_cost): (Ditto.).
10880
10881 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
10882
10883         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10884         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10885         in 32bit mode when XMM registers are available to avoid store
10886         forwarding stalls.
10887         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10888         corresponding post-reload splitters.
10889
10890 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10891
10892         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10893         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
10894         __builtin_ia32_roundss.
10895         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10896         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10897         __builtin_ia32_roundss.
10898         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10899         IX86_BUILTIN_SHUFPD here.
10900
10901 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10902
10903         * config/i386/i386.md (plogic): New.
10904         (plogicprefix): Likewise.
10905
10906         * config/i386/mmx.md (mmx_<code><mode>3): New.
10907         (mmx_and<mode>3): Removed.
10908         (mmx_ior<mode>3): Likewise.
10909         (mmx_xor<mode>3): Likewise.
10910
10911         * config/i386/sse.md (<code><mode>3): New.
10912         (*<code><mode>3): Likewise.
10913         (*<code><mode>3): Likewise.
10914         (<code><mode>3): Likewise.
10915         (*sse_<code><mode>3): Likewise.
10916         (*sse2_<code><mode>3): Likewise.
10917         (<code>tf3): Likewise.
10918         (*<code>tf3): Likewise.
10919         (and<mode>3): Likewise.
10920         (*and<mode>3): Likewise.
10921         (ior<mode>3): Removed.
10922         (*ior<mode>3): Likewise.
10923         (xor<mode>3): Likewise.
10924         (*xor<mode>3): Likewise.
10925         (*and<mode>3): Likewise.
10926         (*ior<mode>3): Likewise.
10927         (*xor<mode>3): Likewise.
10928         (and<mode>3): Likewise.
10929         (*sse_and<mode>3): Likewise.
10930         (*sse2_and<mode>3): Likewise.
10931         (andtf3): Likewise.
10932         (*andtf3): Likewise.
10933         (ior<mode>3): Likewise.
10934         (*sse_ior<mode>3): Likewise.
10935         (*sse2_ior<mode>3): Likewise.
10936         (iortf3): Likewise.
10937         (*iortf3): Likewise.
10938         (xor<mode>3): Likewise.
10939         (*sse_xor<mode>3): Likewise.
10940         (*sse2_xor<mode>3): Likewise.
10941         (xortf3): Likewise.
10942         (*xortf3): Likewise.
10943
10944 2008-04-02  Richard Guenther  <rguenther@suse.de>
10945
10946         PR tree-optimization/14495
10947         PR tree-optimization/34793
10948         * tree-vrp.c (struct switch_update): New structure.
10949         (to_remove_edges, to_update_switch_stmts): New VECs.
10950         (simplify_switch_using_ranges): New function.  Remove not taken
10951         case labels and edges.
10952         (simplify_stmt_using_ranges): Call it.
10953         (identify_jump_threads): Mark edges we have queued for removal
10954         so we don't thread them.
10955         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10956         case label vector.
10957         * tree-cfg.c (group_case_labels): Deal with missing default label.
10958         (tree_verify_flow_info): Allow missing default label.
10959         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10960         (emit_case_nodes): Likewise.
10961         (expand_case): Do not rely on the default label to be present.
10962         * expr.c (try_casesi): Deal with NULL default_label.
10963         (do_tablejump): Likewise.
10964
10965 2008-04-02  Richard Guenther  <rguenther@suse.de>
10966
10967         PR tree-optimization/14495
10968         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10969         SWITCH_EXPR here ...
10970         (vrp_visit_switch_stmt): ... but here (new function).
10971         (find_case_label_index): New helper function.
10972         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10973
10974 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10975
10976         * fwprop.c: Fix ISO-C99ism.
10977
10978 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10979
10980         PR bootstrap/35752
10981         * Makefile.in (objdir): Set it here.
10982         * configure.ac: Not here.  Find dynamic linker characteristics.
10983         * exec-tool.in: Use them.
10984         * aclocal.m4: Regenerate.
10985         * configure: Regenerate.
10986
10987 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10988
10989         * expr.c (expand_var): Delete it.
10990         * expr.h (expand_var): Delete prototype.
10991         * function.c (expand_function_start): Use expand_decl instead.
10992         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10993         langhook.
10994
10995 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
10996
10997         PR rtl-optimization/35542
10998         * fwprop.c (forward_propagate_and_simplify): Replace
10999         loc_reg_mentioned_in_p with reg_mentioned_p.
11000
11001 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11002
11003         PR rtl-optimization/35281
11004         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11005         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11006         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11007         (varying_mem_p): Move above propagate_rtx.
11008         (all_uses_available_at): Do not check MEMs.
11009
11010 2008-04-02  Rafael Espindola  <espindola@google.com>
11011
11012         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11013         (register_edge_assert_for_2): Split the cond argument.
11014         (register_edge_assert_for_1): Adjust for the change in
11015         register_edge_assert_for_2.
11016         (register_edge_assert_for): Split the cond argument.
11017         (find_switch_asserts): Adjust for the change in
11018         register_edge_assert_for.
11019
11020 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11021
11022         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11023         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11024         offsets for 64-bit mingw.
11025         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11026         abi for x86_64-pc-mingw.
11027
11028 2008-04-02  Richard Guenther  <rguenther@suse.de>
11029
11030         * tree-vrp.c (extract_range_from_assert): Make sure to not
11031         produce range min/max with TREE_OVERFOW set.
11032         If merging a anti-range and a range keep the anti-range if
11033         the range covers all values of the type.
11034         (register_edge_assert_for_2): Only allow sign-changing
11035         conversions in detecting canonical range checks.  Also
11036         register an assert for the unsigned name if useful.
11037
11038         PR tree-optimization/35787
11039         * tree-vrp.c (vrp_val_max): New function.
11040         (vrp_val_min): Likewise.
11041         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11042         (vrp_val_is_min): Likewise.
11043         (supports_overflow_infinity): Use vrp_val_{min,max}.
11044         (negative_overflow_infinity): Likewise.
11045         (positive_overflow_infinity): Likewise.
11046         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11047         (is_positive_overflow_infinity): Likewise.
11048         (is_overflow_infinity): Likewise.
11049         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11050         vrp_val_is_{min,max}.
11051         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11052         to ranges if possible.  Avoid empty ranges.
11053
11054 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11055
11056         PR middle-end/35705
11057         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11058         the expression is a function address.
11059
11060 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11061
11062         PR fortran/35154, fortran/23057
11063         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11064         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11065         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11066         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11067         in common.
11068         (dbxout_syms): Check for COMMON-based symbol and wrap in
11069         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11070         in bracket for efficiency.
11071
11072         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11073         using DW_TAG_common_block + member offset.
11074         (add_pubname_string): New function.
11075         (dw_expand_expr): New function to find block name and offset for
11076         COMMON var.
11077         (common_check): New function to check whether symbol in Fortran COMMON.
11078         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11079
11080 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11081
11082         PR c/35436
11083         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11084
11085 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11086
11087         * config/v850/v850.md (casesi): Remove if (0) code.
11088         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11089         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11090
11091 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11092
11093         * config/i386/i386.md (rex64suffix): New mode attribute.
11094         (floathi<mode>2): Disable expander for SSE math.
11095         (*floathi<mode>2_1): New insn insn_and_split pattern.
11096         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11097         corresponding post-reload splitters.
11098         (*floathi<mode>2_i387): New macroized insn pattern.
11099         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11100         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11101         insn_and_split pattern.
11102         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11103         New macroized instruction patterns and corresponding post-reload
11104         splitters.
11105         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11106         and corresponding post-reload splitters.
11107         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11108         New macroized instruction patterns.
11109         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11110         macroized instruction patterns and corresponding post-reload splitters.
11111         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11112         corresponding post-reload splitters.
11113         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11114         New macroized instruction patterns.
11115         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11116         corresponding post-reload splitters.
11117         (*floatsi<mode>2_i387): New macroized instruction patterns.
11118
11119 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11120
11121         * config/i386/i386.md (smaxmin): New.
11122         (umaxmin): Likewise.
11123         (maxminiprefix): Likewise.
11124         (maxminfprefix): Likewise.
11125         (<code><mode>3): Likewise.
11126         (smin<mode>3): Removed.
11127         (smax<mode>3): Likewise.
11128
11129         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11130         (mmx_<code>v4hi3): Likewise.
11131         (mmx_<code>v8qi3): Likewise.
11132         (mmx_smaxv2sf3): Removed.
11133         (mmx_sminv2sf3): Likewise.
11134         (mmx_umaxv8qi3): Likewise.
11135         (mmx_smaxv4hi3): Likewise.
11136         (mmx_uminv8qi3): Likewise.
11137         (mmx_sminv4hi3): Likewise.
11138
11139         * config/i386/sse.md (<addsub><mode>3): New.
11140         (*<addsub><mode>3): Likewise.
11141         (<sse>_vm<addsub><mode>3): Likewise.
11142         (<maxmin><mode>3): Likewise.
11143         (*<maxmin><mode>3_finite): Likewise.
11144         (*<maxmin><mode>3): Likewise.
11145         (<sse>_vm<maxmin><mode>3): Likewise.
11146         (sse3_h<addsub>v4sf3): Likewise.
11147         (sse3_h<addsub>v2df3): Likewise.
11148         (<maxmin>v16qi3): Likewise.
11149         (*<maxmin>v16qi3): Likewise.
11150         (<maxmin>v8hi3): Likewise.
11151         (*<maxmin>v8hi3): Likewise.
11152         (*sse4_1_<maxmin><mode>3): Likewise.
11153         (*sse4_1_<maxmin><mode>3): Likewise.
11154         (add<mode>3): Removed.
11155         (*add<mode>3): Likewise.
11156         (<sse>_vmadd<mode>3): Likewise.
11157         (sub<mode>3): Likewise.
11158         (*sub<mode>3): Likewise.
11159         (<sse>_vmsub<mode>3): Likewise.
11160         (smin<mode>3): Likewise.
11161         (*smin<mode>3_finite): Likewise.
11162         (*smin<mode>3): Likewise.
11163         (<sse>_vmsmin<mode>3): Likewise.
11164         (smax<mode>3): Likewise.
11165         (*smax<mode>3_finite): Likewise.
11166         (*smax<mode>3): Likewise.
11167         (<sse>_vmsmax<mode>3): Likewise.
11168         (sse3_haddv4sf3): Likewise.
11169         (sse3_haddv2df3): Likewise.
11170         (sse3_hsubv4sf3): Likewise.
11171         (sse3_hsubv2df3): Likewise.
11172         (umaxv16qi3): Likewise.
11173         (*umaxv16qi3): Likewise.
11174         (smaxv8hi3): Likewise.
11175         (*smaxv8hi3): Likewise.
11176         (*sse4_1_smax<mode>3): Likewise.
11177         (*sse4_1_umax<mode>3): Likewise.
11178         (uminv16qi3): Likewise.
11179         (*uminv16qi3): Likewise.
11180         (sminv8hi3): Likewise.
11181         (*sminv8hi3): Likewise.
11182         (*sse4_1_smin<mode>3): Likewise.
11183         (*sse4_1_umin<mode>3): Likewise.
11184
11185 2008-04-01  Rafael Espindola  <espindola@google.com>
11186
11187         * tree-cfg.c (verify_expr): remove in_phi.
11188         (verify_stmt): Don't call walk_tree with verify_expr. Use
11189         is_gimple_min_invariant instead of is_gimple_val.
11190
11191 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11192
11193         * doc/include/gpl_v3.texi: Update for manpage generation.
11194         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11195         gpl.texi.
11196         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11197         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11198         gpl_v3.texi instead of gpl.texi.
11199         (gpl.pod): New.
11200
11201 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11202
11203         PR pch/13675
11204         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11205
11206 2008-04-01  Rafael Espindola  <espindola@google.com>
11207
11208         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11209         (extract_code_and_val_from_cond): Use
11210         extract_code_and_val_from_cond_with_ops.
11211
11212 2008-04-01  Jan Hubicka  <jh@suse.cz>
11213
11214         * function.c (free_after_compilation): Free epilogue_delay_list.
11215         (prepare_function_start): Assert that previous compilation was freed.
11216
11217 2008-04-01  Jan Hubicka  <jh@suse.cz>
11218             Jim Wilson  <wilson@tuliptree.org>
11219             Andreas Tobler <andreast@gcc.gnu.org>
11220
11221         PR middle-end/35781
11222         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11223         rtl.emit instead cfun->emit.
11224         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11225         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11226
11227 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11228
11229         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11230
11231 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11232
11233         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11234         New options
11235         (fprofile-use): Add var flag_profile_use
11236         * coverage.c (coverage_begin_output): Do not open a gcno file for
11237         output only if -ftest-coverage is set.
11238         Do not add getpwd() to gcda file path.
11239         (build_gcov_info): Check the new flag
11240         flag_profile_datafile_relative_path.
11241         (coverage_init): Use profile_data_prefix.
11242         Read profile counter only if flag_profile_use is set.
11243         * opts.c (common_handle_option): New option fprofile-use=,
11244         fprofile-dir=, fprofile-generate=.
11245         * toplev.c (profile_data_prefix): New variable definition.
11246         * toplev.h (profile_data_prefix): New declaration.
11247         * doc/invoke.tex (Option Summary, Optimization Options):
11248         Add new options.
11249
11250 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11251
11252         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11253         use tmp consistently.
11254
11255         PR target/35695
11256         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11257         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11258         UNSPEC_FR_RECIP_APPROX_RES.
11259         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11260
11261 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11262
11263         PR c/35750
11264         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11265
11266 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11267
11268         PR middle-end/30186
11269         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11270         element of the vector via a pointer.
11271
11272 2008-03-31  Ian Lance Taylor  <iant@google.com>
11273
11274         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11275
11276 2008-03-31  Jan Hubicka  <jh@suse.cz>
11277
11278         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11279         get_arg_pointer_save_area.
11280         * expr.c (init_expr): Just clear out rtl.expr.
11281         * function.c (free_after_compilation): Clear out whole RTL structure.
11282         (get_func_frame_size): Merge into ...
11283         (get_frame_size): ... this one.
11284         (assign_stack_local_1): Merge into ...
11285         (assign_stack_local): ... this one.
11286         (expand_function_end): Update call of get_arg_pointer_save_area.
11287         (get_art_pointer_save_area): Remove cfun argument.
11288         * function.h (emit_status): regno_pointer_align does not need length
11289         attribute. Move x_regno_reg_rtx to ...
11290         (regno_reg_rtx): ... new global array.
11291         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11292         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11293         apply_args_value, forced_labels, stack_pointer_delta):
11294         Update accestors.
11295         (struct varasm_status): Move here from varasm.c
11296         (struct rtl_data): New. Move here some fields from struct function.
11297         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11298         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11299         used_temp_slots avail_temp_slots, temp_slot_level,
11300         nonlocal_goto_handler_labels): Update accesstors.
11301         (rtl): New global variable.
11302         (struct function): Move some fileds to rtl_data.
11303         (get_arg_pointer_save_area): Update prototype.
11304         * emit-rtl.c (rtl): Declare.
11305         (regno_reg_rtx): Declare.
11306         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11307         Update.
11308         (gen_reg_rtx): Update.
11309         (init_virtual_regs): Do not tate emit_status argument.
11310         (init_emit): Do not allocate emit.
11311         * varasm.c (varasm_statuc): Move to function.h.
11312         (n_deferred_constatns): Update accestor.
11313         (init_varasm_status): Do not allocate varasm_status.
11314         (force_const_mem, get_pool_size, output_constant_pool): Update.
11315         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11316         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11317
11318 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11319
11320         PR rtl-optimization/35729
11321         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11322         references.
11323
11324 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11325
11326         PR target/32000
11327         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11328         load/store if memory is unaligned.
11329         (*movti_rex64): Likewise.
11330
11331         * config/i386/predicates.md (misaligned_operand): New.
11332
11333 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11334
11335         PR tree-opt/35431
11336         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11337         complex types.
11338
11339 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11340
11341         * config/ia64/constraints.md: Add 'j' constraint.
11342         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11343         (movdi_internal): Likewise.
11344
11345 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11346
11347         PR c/35748
11348         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11349
11350 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11351
11352         PR target/35757
11353         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11354         proper error message for the third argument on blendpd and
11355         blendps.
11356
11357         * config/i386/sse.md (blendbits): New.
11358         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11359
11360 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11361
11362         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11363
11364 2008-03-30  Richard Guenther  <rguenther@suse.de>
11365
11366         PR middle-end/31023
11367         * fold-const.c (fold_sign_changed_comparison): Do leave
11368         conversions to base-types alone.
11369
11370 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11371
11372         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11373         the link register if one altivec register is be saved.
11374
11375 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11376
11377         * final.c (final_scan_insn): Remove if (0) code.
11378
11379 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11380
11381         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11382
11383 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11384
11385         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11386         of V4SFmode to ix86_binary_operator_ok.
11387
11388 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11389
11390         * config/i386/i386.c (override_options): Initialize
11391         ix86_veclib_handler to ix86_veclibabi_svml when
11392         -mveclibabi=svml is used.
11393         (ix86_veclibabi_svml): New function for SVML ABI style
11394         vectorization support.
11395         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11396
11397 2008-03-28  Rafael Espindola  <espindola@google.com>
11398
11399         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11400         (tree_binary_nonnegative_warnv_p): Make it public.
11401         (tree_single_nonnegative_warnv_p): Make it public.
11402         (tree_invalid_nonnegative_warnv_p): Make it public.
11403         (tree_unary_nonzero_warnv_p): Make it public.
11404         (tree_binary_nonzero_warnv_p): Make it public
11405         (tree_single_nonzero_warnv_p): Make it public.
11406         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11407         (extract_range_from_binary_expr): Split the expr argument.
11408         (extract_range_from_unary_expr): Split the expr argument.
11409         (extract_range_from_comparison): Split the expr argument.
11410         (extract_range_from_expr): Use the new aux functions.
11411         (vrp_evaluate_conditional_warnv): Use
11412         vrp_evaluate_conditional_warnv_with_ops.
11413         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11414         (tree_binary_nonzero_warnv_p): Declare.
11415         (tree_single_nonzero_warnv_p): Declare.
11416         (tree_expr_nonzero_warnv_p): Declare.
11417         (tree_unary_nonnegative_warnv_p): Declare.
11418         (tree_binary_nonnegative_warnv_p): Declare.
11419         (tree_single_nonnegative_warnv_p): Declare.
11420         (tree_invalid_nonnegative_warnv_p): Declare.
11421
11422 2008-03-28  Richard Guenther  <rguenther@suse.de>
11423
11424         PR tree-optimization/30317
11425         PR tree-optimization/30911
11426         PR tree-optimization/34793
11427         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11428         (struct assert_locus_d): New member EXPR.
11429         (register_new_assert_for): Add EXPR parameter to support
11430         ASSERT_EXPR <name, expr OP limit>.
11431         (register_edge_assert_for_1): Adjust callers.
11432         (find_assert_locations): Likewise.
11433         (process_assert_insertions_for): Build condition from expression.
11434         (extract_range_from_assert): Handle ASSERT_EXPRs
11435         of the form ASSERT_EXPR <name, expr OP limit>.
11436         (register_edge_assert_for_2): New helper registering
11437         asserts for comparisons.  Recognize range tests of the form
11438         (unsigned)i - CST1 OP CST2.
11439         (register_edge_assert_for_1): Use it.
11440         (register_edge_assert_for): Likewise.
11441         (needs_overflow_infinity): Integer sub-types
11442         do not need overflow infinities.
11443         (vrp_val_is_max): The extreme values of integer sub-types
11444         are those of the base type.
11445         (vrp_val_is_min): Likewise.
11446         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11447         expressions.
11448
11449 2008-03-28  Nick Clifton  <nickc@redhat.com>
11450
11451         PR target/31110
11452         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11453         Return GENERAL_REGS for stack adjustment reloads.
11454
11455 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11456
11457         PR target/31334
11458         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11459         const_vector when all the vectors are constant.
11460
11461 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11462
11463         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11464         comparisons.
11465         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11466         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11467         (scc_sf): New.
11468         (s<code>_sf): Use new scc_sf attribute for opcode names.
11469
11470 2008-03-27  Tom Tromey  <tromey@redhat.com>
11471
11472         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11473         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11474         config/spu/t-spu-elf, config/i386/t-interix,
11475         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11476         config/i386/x-darwin, config/i386/x-mingw32,
11477         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11478         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11479         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11480         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11481         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11482         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11483         config/score/t-score-elf, config/arm/t-strongarm-pe,
11484         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11485         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11486         Revert automatic dependency patch.
11487
11488 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11489
11490         PR target/35657
11491         * config/i386/i386.c (ix86_function_arg_boundary): Align
11492         decimal floating point to its natural boundary.
11493
11494 2008-03-27  Richard Guenther  <rguenther@suse.de>
11495
11496         PR middle-end/35716
11497         * fold-const.c (fold_comparison): Restrict distinct decl
11498         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11499         solely rely on operand_equal_p.
11500
11501 2008-03-27  Richard Guenther  <rguenther@suse.de>
11502
11503         PR c/32511
11504         * c-common.c (handle_weak_attribute): Reject combination of
11505         weak and inline.
11506
11507 2008-03-27  Richard Guenther  <rguenther@suse.de>
11508
11509         PR tree-optimization/32810
11510         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11511         conversions from DECL_INITIAL.
11512         (fold_const_aggregate_ref): Likewise from constructor elements.
11513
11514 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11515
11516         * tree-affine.h (aff_combination_expand): Declare.
11517         (get_inner_reference_aff): Likewise.
11518         * tree-affine.c (aff_combination_expand): Split out from
11519         tree_to_aff_combination_expand.
11520         (get_inner_reference_aff): New function.
11521         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11522         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11523         (struct lim_aux_data): sm_done field removed.
11524         (mem_ref_loc_p, mem_ref_locs_p): New types.
11525         (struct mem_ref): Added id, stored, accesses_in_loop,
11526         indep_loop, dep_loop, indep_ref, dep_ref fields.
11527         Removed is_stored, locs and next fields.
11528         (memory_accesses): New variable.
11529         (movement_possibility): Do not allow moving statements
11530         that store to memory.
11531         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11532         New functions.
11533         (determine_max_movement): For statements with memory references,
11534         find the outermost loop in that the reference is independent.
11535         (move_computations_stmt): Mark the virtual operands for renaming.
11536         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11537         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11538         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11539         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11540         create_vop_ref_mapping, analyze_memory_references,
11541         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11542         get_all_locs_in_loop, ref_always_accessed_p,
11543         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11544         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11545         store_motion_loop, store_motion): New functions.
11546         (struct vop_to_refs_elt): New type.
11547         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11548         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11549         (schedule_sm): Replaced by...
11550         (execute_sm): ... this.
11551         (determine_lsm_ref, hoist_memory_references,
11552         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11553         find_more_ref_vops, free_mem_ref, free_mem_refs,
11554         determine_lsm_loop, determine_lsm): Removed.
11555         (tree_ssa_lim_finalize): Free data structures used by store motion.
11556         (tree_ssa_lim): Call analyze_memory_references.  Use
11557         store_motion instead of determine_lsm.
11558
11559 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11560
11561         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11562         rename tmake_file to m68hc11/t-m68hc11.
11563         (mcore): Set inhibit_libc to true.
11564         * config.host (alpha*-dec-*vms*): Set extra_programs.
11565         (interix3*): Don't use host_xmake_file.
11566         * configure.ac: Let config.gcc override inhibit_libc.
11567         * configure: Regenerate.
11568
11569         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11570         * config/t-openbsd-thread: Remove commented out lines.
11571         
11572         * config/x-interix: Remove.
11573
11574         * config/m68hc11/t-m68hc11-gas: Rename to...
11575         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11576
11577         * config/mcore/t-mcore: Remove T_CFLAGS.
11578         * config/mcore/t-mcore-pe: Likewise.
11579
11580 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11581
11582         * configure.ac: Replace custom __GNU_SOURCE test with
11583         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11584         * aclocal.m4: Regenerate.
11585         * configure: Regenerate.
11586         * config.in: Regenerate.
11587
11588 2008-03-27  Richard Guenther  <rguenther@suse.de>
11589
11590         * fold-const.c (target.h): Include.
11591         (fold_comparison): Fold comparison of addresses of decls
11592         that bind locally or of constants.  Consolidate address folding code.
11593         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11594         results from fold_binary_to_constant.
11595         (compare_values_warnv): Likewise.
11596
11597 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11598
11599         PR middle-end/35429
11600         * fold-const.c (fold_truthop): Check for integeral types when folding
11601         a == 0 && b == 0 and a != 0 || b != 0 .
11602
11603 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11604
11605         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11606
11607 2008-03-26  Andreas Schwab  <schwab@suse.de>
11608
11609         * doc/invoke.texi: Fix use of @item vs. @itemx.
11610
11611 2008-03-26  Tom Tromey  <tromey@redhat.com>
11612
11613         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11614         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11615         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11616         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11617         build/genconstants.o, build/genemit.o, build/genextract.o,
11618         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11619         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11620         options.h.
11621
11622 2008-03-26  Richard Guenther  <rguenther@suse.de>
11623
11624         Revert
11625         2008-03-26  Richard Guenther  <rguenther@suse.de>
11626
11627         * fold-const.c (target.h): Include.
11628         (fold_comparison): Fold comparison of addresses of two decls
11629         that bind locally.  Consolidate address folding code.
11630
11631 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11632
11633         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11634         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11635         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11636         dconstsqrt2, dconstthird, dconste and/or dconst10.
11637         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11638         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11639         dconstsqrt2, dconste): Delete.
11640         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11641         Constify variable.
11642         * real.c (get_real_const): New.
11643         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11644         dconstsqrt2, dconste): Delete.
11645         (real_value_const, get_real_const): New.
11646
11647 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11648
11649         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11650
11651         * config/i386/i386.c (ix86_function_arg_boundary): Check
11652         BIGGEST_ALIGNMENT instead of 128.
11653         (setup_incoming_varargs_64): Likewise.
11654
11655 2008-03-26  Tom Tromey  <tromey@redhat.com>
11656
11657         * Makefile.in (DEPFILES): Add missing '/'.
11658
11659 2008-03-26  Richard Guenther  <rguenther@suse.de>
11660
11661         * fold-const.c (target.h): Include.
11662         (fold_comparison): Fold comparison of addresses of two decls
11663         that bind locally.  Consolidate address folding code.
11664
11665 2008-03-26  Nick Clifton  <nickc@redhat.com>
11666
11667         PR target/31232
11668         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11669         not allow INT+INT as a legitimate addressing mode.
11670
11671 2008-03-26  Richard Guenther  <rguenther@suse.de>
11672
11673         * tree-flow.h (widen_bitfield): Remove declaration.
11674         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11675         (widen_bitfield): Remove function.
11676         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11677         code.
11678
11679 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11680
11681         PR target/31558
11682         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11683         error_mark_node's.
11684
11685 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11686
11687         PR rtl-optimization/35232
11688         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11689         (forget_old_reloads_1, forget_marked_reloads): Don't clear
11690         reg_reloaded_call_part_clobbered here.
11691         (reload_regs_reach_end_p): New function.
11692         (reload_reg_rtx_for_input): New variable.
11693         (reload_reg_rtx_for_output): Likewise.
11694         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11695         when reassigning a pseudo register.  Load reloadreg from 
11696         reload_reg_rtx_for_input, moving the mode and register
11697         calculation to...
11698         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
11699         instead of the original when deciding whether an input reload
11700         would be a no-op or whether an output reload can be deleted.
11701         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11702         when setting up new_spill_reg_store.  Load it from
11703         reload_reg_rtx_for_output, moving the mode and register
11704         calculation to...
11705         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
11706         instead of the original when deciding whether an output reload
11707         would be a no-op.  Do the same when modifying insn notes.
11708         Use rtx_equal_p instead of == to compare the registers.
11709         (inherit_piecemeal_p): Take a mode and two register numbers
11710         as argument.
11711         (emit_reload_insns): Clear new_spill_reg_store for every hard
11712         register in the reload register.  Remove spill registers
11713         from reg_reloaded_valid before considering whether to record
11714         inheritance information for them.  Use reload_reg_rtx_for_output
11715         instead of reg_rtx when recording output reloads.  Use
11716         reload_reg_rtx_for_input instead of reg_rtx when recording
11717         input reloads.  Set or clear reg_reloaded_call_part_clobbered
11718         at the same time as setting reg_reloaded_valid.
11719         (delete_output_reload): Add a new_reload_reg parameter and use it
11720         instead of rld[j].reg_rtx.
11721         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11722         calls accordingly.
11723
11724 2008-03-25  Tom Tromey  <tromey@redhat.com>
11725
11726         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11727         (build/genattr.o): Likewise.
11728         (build/genattrtab.o): Likewise.
11729         (build/gencodes.o): Likewise.
11730         (build/genconfig.o): Likewise.
11731         (build/genconstants.o): Likewise.
11732         (build/genemit.o): Likewise.
11733         (build/genextract.o): Likewise.
11734         (build/genflags.o): Likewise.
11735
11736 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
11737         
11738         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11739         instead of size_int for integer types.
11740         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
11741         to match type of MINUS_EXPR.
11742         
11743 2008-03-25  Tom Tromey  <tromey@redhat.com>
11744
11745         * configure: Rebuilt.
11746         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11747         Makefile.
11748
11749 2008-03-25  Tom Tromey  <tromey@redhat.com>
11750
11751         * config/x-solaris (host-solaris.o): Update.
11752         * config/x-linux (host-linux.o): Update.
11753         * config/x-hpux (host-hpux.o): Update.
11754         * config/x-darwin (host-darwin.o): Update.
11755         * config/v850/t-v850e (v850-c.o): Update.
11756         * config/v850/t-v850 (v850-c.o): Update.
11757         * config/t-vxworks (vxworks.o): Update.
11758         * config/t-sol2 (sol2-c.o, sol2.o): Update.
11759         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11760         * config/spu/t-spu-elf (spu-c.o): Update.
11761         (spu.o): Remove.
11762         * config/sh/t-symbian (sh-c.o): Update.
11763         (symbian.o): Update.
11764         * config/sh/t-sh (sh-c.o): Update.
11765         * config/score/t-score-elf (score7.o, score3.o): Update.
11766         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11767         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11768         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11769         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11770         (rs6000.o): Remove.
11771         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11772         * config/m32c/t-m32c (m32c-pragma.o): Update.
11773         * config/ia64/t-ia64 (ia64-c.o): Update.
11774         * config/i386/x-mingw32 (host-mingw32.o): Update.
11775         * config/i386/x-i386 (driver-i386.o): Update.
11776         * config/i386/x-darwin (host-i386-darwin.o): Update.
11777         * config/i386/x-cygwin (host-cygwin.o): Update.
11778         * config/i386/t-nwld (nwld.o): Update.
11779         * config/i386/t-netware (netware.o): Update.
11780         * config/i386/t-interix (winnt.o): Update.
11781         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11782         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11783         msformat-c.o): Update.
11784         * config/bfin/t-bfin-linux (generated_files): Add
11785         linux-sysroot-suffix.h.
11786         * config/arm/t-wince-pe (pe.o): Update.
11787         * config/arm/t-strongarm-pe (pe.o): Update.
11788         * config/arm/t-pe (pe.o): Update.
11789         * config/arm/t-arm (arm-c.o): Update.
11790         * doc/install.texi (Prerequisites): Require make 3.80.
11791         * Makefile.in: Remove .o targets.
11792         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11793         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11794         (simple_generated_h, simple_generated_c): Move earlier.
11795         (generated_files): New variable.
11796         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11797         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11798         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11799         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11800         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11801         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11802         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11803         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11804         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11805         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11806         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11807         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11808         (.c.o): Remove.
11809         (COMPILE.base, COMPILE): New variables.
11810         (%.o): New pattern rule.
11811         (ALL_HOST_OBJS): New variable.
11812         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11813         (dummy-checksum.o, cc1-checksum.o): Remove.
11814         (DRIVER_SHLIB): New variable.
11815         (DRIVER_DEFINES): Use it.
11816         (gencondmd.c): Move out of build/.
11817         (s-conditions): Update.
11818         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11819         (ALL_BUILD_OBJS): Likewise.
11820         (build/%.o): Use BUILDCOMPILE.
11821         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11822         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11823         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11824         build/gencheck.o, build/gencodes.o, build/genconditions.o,
11825         build/genconfig.o, build/genconstants.o, build/genemit.o,
11826         build/genextract.o, build/genflags.o, build/genmddeps.o,
11827         build/genopinit.o, build/genoutput.o, build/genpeep.o,
11828         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11829         build/gen-protos.o, build/scan.o, build/fix-header.o,
11830         build/scan-decls.o): Simplify.
11831         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11832         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11833         prefix.o, toplev.o): Reduce to variable setting.
11834         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
11835         ($(out_object_file), gcc-options.o): New targets.
11836         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
11837         * configure: Rebuilt.
11838         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11839         * doc/sourcebuild.texi (Front End Directory): Document new variable.
11840
11841 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
11842
11843         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11844         complain when we hit an error, return ERROR_MARK_NODE.
11845
11846 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11847
11848         * config/sh/constraints.md (Pso, Psz): New constraints.
11849         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11850         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11851
11852 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11853
11854         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11855         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11856
11857 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11858
11859         * config/sh/sh.md (prefetch): Add condition for SH2A target.
11860         (prefetch_sh2a): New.   
11861
11862 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
11863             Naveen.H.S  <naveen.hs@kpitcummins.com>
11864
11865         * config/sh/constraints.md (I28): New constraint.
11866         * config/sh/sh.c (broken_move): Add support for movi20s.
11867         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11868
11869 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
11870             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
11871             Naveen.H.S  <naveen.hs@kpitcummins.com>
11872
11873         * config/sh/sh.c (SH_ATTRIBUTES): Define.
11874         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11875         (print_operand): Handle resbank in %@ operand code.
11876         (sh_encode_section_info): New.
11877         (push_regs): Add conditions for resbank.
11878         (sh_expand_epilogue): Likewise.
11879         (sh_insert_attributes): Likewise.
11880         (sh_attribute_table): Likewise.
11881         (sh_handle_resbank_handler_attribute): New.
11882         (sh2a_handle_function_vector_handler_attribute): New.
11883         (sh2a_is_function_vector_call): New.
11884         (sh2a_get_function_vector_number): New.
11885         (sh2a_function_vector_p): New.
11886         (sh_cfun_resbank_handler_p): New.
11887         * config/sh/sh.md (calli): Emit jsr/n if possible.
11888         (calli_tbr_rel): New.
11889         (calli_pcrel): Emit jsr/n if possible.
11890         (return_i): Emit rts/n if possible.
11891         (call_valuei_tbr_rel): New.
11892         (call_valuei_pcrel): Add condition for SH2A target.
11893         (call_value): Likewise.
11894         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11895         (sh2a_get_function_vector_number): Likewise.
11896         (sh2a_is_function_vector_call): Likewise.
11897         * doc/extend.texi: Document TBR relative addressing of SH2A.
11898         (resbank): Add description for SH2A.
11899
11900 2008-03-24  Richard Guenther  <rguenther@suse.de>
11901
11902         PR c/22371
11903         * gimplify.c (gimplify_modify_expr): For frontend type-correct
11904         pointer assignments change conversions according to middle-end rules.
11905         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11906         * configure.ac: Include type checking in yes.
11907         * configure: Regenerate.
11908
11909 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11910
11911         * diagnostic.c (diagnostic_count_diagnostic): Delete.
11912         (diagnostic_report_diagnostic): Update. Handle ICEs here.
11913         
11914 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
11915
11916         * gthr-vxworks.h (UNUSED): Define.
11917
11918 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11919
11920         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11921
11922 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
11923
11924         * doc/extend.texi (Function Attributes): Add missing comma in the
11925         example of the "alloc_size" attribute.
11926         
11927 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
11928
11929         Revert:
11930         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11931
11932         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11933         32bit host.
11934
11935         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
11936
11937         PR target/35496
11938         * stor-layout.c (update_alignment_for_field): Set minimum alignment
11939         of the underlying type of a MS bitfield layout to the natural
11940         alignment of the type.
11941
11942         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
11943
11944         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11945         to their natural alignment to avoid store forwarding stalls.
11946
11947 2008-03-22  Richard Guenther  <rguenther@suse.de>
11948
11949         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11950         For PHI nodes verify the address is invariant.
11951         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11952         (get_symbol_constant_value): Use is_gimple_min_invariant.
11953         (maybe_fold_stmt_indirect): Likewise.
11954
11955 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
11956
11957         PR rtl-optimization/33927
11958         * Makefile.in (dse.o): Depend on $(TM_P_H).
11959         * expr.h (extract_low_bits): Declare.
11960         * expmed.c (extract_low_bits): New function.
11961         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11962         * dse.c: Include tm_p.h.
11963         (find_shift_sequence): Remove the read_reg argument and return the
11964         read value.  Emit the instructions instead of returning them.
11965         Iterate on new_mode rather than calculating it each time.
11966         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
11967         source to NEW_MODE and extract_low_bits to convert the shifted
11968         value to READ_MODE.
11969         (replace_read): Allow the load and store to have different mode
11970         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
11971         or extraction instructions before trying the replacement.  Update
11972         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11973
11974 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
11975
11976         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11977         to their natural alignment to avoid store forwarding stalls.
11978
11979 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11980
11981         PR target/27946
11982         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11983         encouraging but not allowing gprs for input;
11984         change the input constraint to !f#r.
11985         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11986         gprs for output;
11987         change the output constraint to !f#r.
11988
11989 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
11990
11991         PR target/13958
11992         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11993         corresponding post-reload splitters.
11994         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11995         when x87 FP math is selected.
11996         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11997         New function prototype.
11998         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11999         unreachable function to ease macroization of insn patterns.
12000
12001 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12002
12003         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12004         reference dumps if ddr is NULL or dependence is unknown.
12005
12006 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12007
12008         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12009         unsigned extension into account.
12010         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12011         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12012         Do computations on a scratch register.
12013
12014 2008-03-21  Richard Guenther  <rguenther@suse.de>
12015
12016         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12017         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12018         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12019         * tree-ssa-dom.c (record_equality): Likewise.
12020         * tree-inline.c (copy_body_r): Likewise.
12021         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12022         TREE_INVARIANT.
12023
12024 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12025
12026         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12027         as 'delete_unused' argument.
12028
12029 2008-03-20  Richard Guenther  <rguenther@suse.de>
12030
12031         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12032         special casing of constant qualifiers.
12033         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12034         care about them in general.
12035         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12036         regardless of their type.
12037         (fold_stmt_r): Forcefully fold *& if we end up with that.
12038
12039 2008-03-20  Paul Brook  <paul@codesourcery.com>
12040
12041         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12042         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12043         linker flags.
12044         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12045         definition.
12046         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12047         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12048
12049 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12050
12051         * common.opt (Wmudflap): New option.
12052         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12053         (mx_register_decls): Likewise.
12054         (mudflap_finish_file): Likewise.
12055         * doc/invoke.texi: Document -Wno-mudflap.
12056
12057 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12058
12059         * c-format.c (replace_format_name_to_system_name): New.
12060         (cmp_attribs): New.
12061         (convert_format_name_to_system_name): New.
12062         (decode_format_attr): Add use of convert_format_name_to_system_name.
12063         (format_types_orig): Add gnu_ prefix to names.
12064         (check_format_info_main): Special treating of \0 escaped names for
12065         supporting multi-character format specifiers as I32, I64.
12066         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12067         (gnu_target_overrides_format_attributes): New.
12068         * c-format.h: Add structure target_ovr_attr to hold
12069         system specific formatter names.
12070         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12071         msformat-c.o file to c_target_objs and cxx_target_objs.
12072         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12073         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12074         (TARGET_N_FORMAT_TYPES): New.
12075         * config/i386/msformat-c.c: New.
12076         * config/i386/t-cygming: Add build rule for msformat-c.o.
12077         * doc/extend.texi: Add new format names gnu_* and ms_* and
12078         further details.
12079         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12080
12081 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12082
12083         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12084         optimizations turned on under -O3.
12085         (ftree-vectorize): Add that the flag is turned on with -O3.
12086
12087 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12088
12089         * regmove.c (try_auto_increment): Fix spelling error in comment.
12090         * final.c (final_scan_insn): Likewise.
12091
12092 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12093
12094         PR target/14552
12095         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12096         allocator preferences for "y" and "r" class registers.
12097         ("*mov<mode>_internal"): Ditto.
12098         ("*movv2sf_internal_rex64"): Ditto.
12099         ("*movv2sf_internal"): Ditto.
12100
12101 2008-03-19  Michael Matz  <matz@suse.de>
12102
12103         PR middle-end/35616
12104         * calls.c (expand_call): Check overlap of arguments with call
12105         address for sibcalls.
12106
12107 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12108
12109         PR target/35496
12110         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12111         of the underlying type of a MS bitfield layout to the natural
12112         alignment of the type.
12113
12114 2008-03-19  Jan Hubicka  <jh@suse.cz>
12115
12116         PR other/35094
12117         * toplev.c (decode_d_option): Handle all CPP flags.
12118         * tree-vrp.c: Update tree_pass descriptors.
12119         * regrename.c: Update tree_pass descriptors.
12120         * fwprop.c: Update tree_pass descriptors.
12121         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12122         * tree-into-ssa.c: Update tree_pass descriptors.
12123         * tree-dump.c: Update tree_pass descriptors.
12124         * tree-complex.c: Update tree_pass descriptors.
12125         * tree-dump.h: Update tree_pass descriptors.
12126         * see.c: Update tree_pass descriptors.
12127         * cgraphbuild.c: Update tree_pass descriptors.
12128         * tracer.c: Update tree_pass descriptors.
12129         * tree-loop-distribution.c: Update tree_pass descriptors.
12130         * cgraph.c: Update tree_pass descriptors.
12131         * postreload-gcse.c: Update tree_pass descriptors.
12132         * postreload.c: Update tree_pass descriptors.
12133         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12134         * tree-tailcall.c: Update tree_pass descriptors.
12135         * tree-pass.h (tree_opt_pass): Rename to ...
12136         (opt_pass) ... this one; add "type" field and remove letter field.
12137         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12138         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12139         all_lowering_passes): Update declaration.
12140         * ipa-cp.c: Update tree_pass descriptors.
12141         * final.c: Update tree_pass descriptors.
12142         * omp-low.c: Update tree_pass descriptors.
12143         * tree-ssa-dse.c: Update tree_pass descriptors.
12144         * ipa-reference.c: Update tree_pass descriptors.
12145         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12146         * auto-inc-dec.c: Update tree_pass descriptors.
12147         * reorg.c: Update tree_pass descriptors.
12148         * cgraphunit.c: Update tree_pass descriptors.
12149         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12150         * tree-ssa-ccp.c: Update tree_pass descriptors.
12151         * df-core.c: Update tree_pass descriptors.
12152         * mode-switching.c: Update tree_pass descriptors.
12153         * tree-nomudflap.c: Update tree_pass descriptors.
12154         * modulo-sched.c: Update tree_pass descriptors.
12155         * ipa-pure-const.c: Update tree_pass descriptors.
12156         * cse.c: Update tree_pass descriptors.
12157         * web.c: Update tree_pass descriptors.
12158         * tree-stdarg.c: Update tree_pass descriptors.
12159         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12160         * tree-ssa-dom.c: Update tree_pass descriptors.
12161         * tree-nrv.c: Update tree_pass descriptors.
12162         * tree-ssa-alias.c: Update tree_pass descriptors.
12163         * loop-init.c: Update tree_pass descriptors.
12164         * gimple-low.c: Update tree_pass descriptors.
12165         * ipa-inline.c: Update tree_pass descriptors.
12166         * tree-ssa-sink.c: Update tree_pass descriptors.
12167         * global.c: Update tree_pass descriptors.
12168         * ifcvt.c: Update tree_pass descriptors.
12169         * jump.c: Update tree_pass descriptors.
12170         * predict.c: Update tree_pass descriptors.
12171         * tree-ssa-loop.c: Update tree_pass descriptors.
12172         * recog.c: Update tree_pass descriptors.
12173         * dse.c: Update tree_pass descriptors.
12174         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12175         * tree-eh.c: Update tree_pass descriptors.
12176         * regmove.c: Update tree_pass descriptors.
12177         * local-alloc.c
12178         * function.c: Update tree_pass descriptors.
12179         * tree-vectorizer.c: Update tree_pass descriptors.
12180         * gcse.c: Update tree_pass descriptors.
12181         * ipa-type-escape.c: Update tree_pass descriptors.
12182         * tree-if-conv.c: Update tree_pass descriptors.
12183         * init-regs.c: Update tree_pass descriptors.
12184         * ipa.c: Update tree_pass descriptors.
12185         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12186         * rtl-factoring.c: Update tree_pass descriptors.
12187         * lower-subreg.c: Update tree_pass descriptors.
12188         * bt-load.c: Update tree_pass descriptors.
12189         * tree-dfa.c: Update tree_pass descriptors.
12190         * except.c: Update tree_pass descriptors.
12191         * emit-rtl.c: Update tree_pass descriptors.
12192         * cfgexpand.c: Update tree_pass descriptors.
12193         * tree-cfgcleanup.c: Update tree_pass descriptors.
12194         * cfgcleanup.c: Update tree_pass descriptors.
12195         * tree-ssa-pre.c: Update tree_pass descriptors.
12196         * tree-sra.c: Update tree_pass descriptors.
12197         * tree-mudflap.c: Update tree_pass descriptors.
12198         * tree-ssa-copy.c: Update tree_pass descriptors.
12199         * cfglayout.c: Update tree_pass descriptors.
12200         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12201         * tree-ssa-dce.c: Update tree_pass descriptors.
12202         * tree-ssa.c: Update tree_pass descriptors.
12203         * regclass.c: Update tree_pass descriptors.
12204         * integrate.c: Update tree_pass descriptors.
12205         * tree-optimize.c: Update tree_pass descriptors.
12206         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12207         * tree-object-size.c: Update tree_pass descriptors.
12208         * combine.c: Update tree_pass descriptors.
12209         * tree-outof-ssa.c: Update tree_pass descriptors.
12210         * bb-reorder.c: Update tree_pass descriptors.
12211         * stack-ptr-mod.c: Update tree_pass descriptors.
12212         * var-tracking.c: Update tree_pass descriptors.
12213         * tree-profile.c: Update tree_pass descriptors.
12214         * tree-vect-generic.c: Update tree_pass descriptors.
12215         * reg-stack.c: Update tree_pass descriptors.
12216         * sched-rgn.c: Update tree_pass descriptors.
12217         * tree-ssa-structalias.c: Update tree_pass descriptors.
12218         * tree-cfg.c: Update tree_pass descriptors.
12219         * passes.c (current_pass): Update declaration.
12220         (finish_optimization_passes): Update.
12221         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12222         (register_one_dump_file, register_dump_files_1, next_pass_1):
12223         Update arguments.
12224         (init_optimization_passes): Update handling of new types.
12225         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12226         * ipa-struct-reorg.c: Update tree_pass descriptors.
12227         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12228         * combine-stack-adj.c: Update tree_pass descriptors.
12229         * cfgrtl.c: Update tree_pass descriptors.
12230         * dce.c: Update tree_pass descriptors.
12231         * tree-ssanames.c: Update tree_pass descriptors.
12232
12233 2008-03-19  Richard Guenther  <rguenther@suse.de>
12234
12235         PR middle-end/35609
12236         * tree-ssa.c (walk_data): New structure.
12237         (warn_uninitialized_var): If not always_executed warn with "maybe"
12238         instead of "is".
12239         (execute_early_warn_uninitialized): Compute post-dominators.
12240         Initialize always_executed before processing each basic block.
12241
12242 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12243
12244         PR target/35504
12245         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12246         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12247
12248 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12249
12250         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12251
12252 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12253
12254         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12255         is true.
12256         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12257         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12258         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12259         target after ignore has been set, and move there also the commputation
12260         of subtarget and original_target.
12261         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12262         (LANG_HOOKS_INITIALIZER): Remove it.
12263         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12264
12265 2008-03-18  Richard Guenther  <rguenther@suse.de>
12266
12267         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12268         found an expression with constants, note that in the VN for the lhs.
12269         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12270         fold them to constants if possible.  Run cleanup_cfg if done so.
12271         (execute_pre): Return todo.
12272         (do_pre): Likewise.
12273         (execute_fre): Likewise.
12274         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12275         of constants.
12276         (get_prop_source_stmt): Look through pointer conversions.
12277
12278 2008-03-18  Jan Hubicka  <jh@suse.cz>
12279
12280         * tree-pretty-print.c: Include predict.h.
12281         (dump_generic_node): Dump predictor.
12282         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12283         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12284         * gimple-low.c (lower_stmt): Likewise.
12285         * expr.c (expand_expr_real): Likewise.
12286         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12287         them.
12288         (build_predict_expr, build_predict_expr): New.
12289         * predict.h (predictor_name, build_predict_expr): Update.
12290         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12291         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12292         * predict.def (PRED_CONTINUE): Update hitrate.
12293         * tree.def (PREDICT_EXPR): Define.
12294         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12295         do not handle BIND_EXPR.
12296         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12297         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12298         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12299         operands.
12300
12301 2008-03-18  Michael Matz  <matz@suse.de>
12302
12303         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12304
12305 2008-03-18  Richard Guenther  <rguenther@suse.de>
12306
12307         * tree-gimple.h (is_gimple_invariant_address): Declare.
12308         (is_gimple_constant): Likewise.
12309         * tree-gimple.c (is_gimple_constant): New function.
12310         (is_gimple_invariant_address): Likewise.
12311         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12312         and is_gimple_invariant_address.
12313         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12314         previous change.
12315         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12316         an addressable base.
12317
12318 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12319
12320         PR middle-end/35611
12321         * gimplify.c (gimplify_expr): Gimplify second operand of
12322         OMP_ATOMIC_LOAD.
12323
12324 2008-03-17  Richard Guenther  <rguenther@suse.de>
12325
12326         PR tree-optimization/19637
12327         * fold-const.c (fold_unary): Remove restrictions of removing
12328         intermediate pointer-conversions (P2)(P1)P0.
12329         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12330         conversion to void pointer.
12331         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12332
12333 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12334
12335         PR debug/31510
12336         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12337         emulated thread local variables.
12338
12339 2008-03-16  Richard Guenther  <rguenther@suse.de>
12340
12341         PR middle-end/35607
12342         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12343         expand TREE_INVARIANT operations that are not gimple invariant.
12344
12345 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12346
12347         * doc/extend.texi (Alignment): Say that the ABI controls
12348         the __alignof__ for non-strict-alignment targets rather
12349         than being a recommendation.
12350
12351 2008-03-15  Paul Brook  <paul@codesourcery.com>
12352
12353         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12354         annotations.
12355         (arm_output_fn_unwind): Mark functions that can not be unwound.
12356
12357 2008-03-15  Paul Brook  <paul@codesourcery.com>
12358
12359         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12360         extension instructions.
12361
12362 2008-03-15  Richard Guenther  <rguenther@suse.de>
12363
12364         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12365         and fold constant aggregate refs.
12366         (fold_const_aggregate_ref): Handle string constants
12367         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12368         (evaluate_stmt): Simplify now that ccp_fold folds constant
12369         aggregate refs.
12370
12371 2008-03-15  Paul Brook  <paul@codesourcery.com>
12372
12373         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12374         (extzv): Use gen_extzv_t2.
12375         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12376
12377 2008-03-15  Richard Guenther  <rguenther@suse.de>
12378
12379         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12380         (fold_const_aggregate_ref): Likewise.
12381         (get_value): Return NULL if we don't have any values.
12382         (ccp_finalize): Set const_val to NULL after freeing it.
12383         * tree-flow.h (get_symbol_constant_value): Declare.
12384         (fold_const_aggregate_ref): Likewise.
12385         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12386
12387 2008-03-15  Richard Guenther  <rguenther@suse.de>
12388
12389         PR middle-end/35593
12390         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12391         to not produce negative array indices if not allowed.  Add
12392         parameter to indicate that.
12393         (maybe_fold_offset_to_component_ref): Allow negative array
12394         indices only for the first member of a structure.
12395         (maybe_fold_offset_to_reference): Allow negative array indices.
12396         (maybe_fold_stmt_addition): Likewise.
12397
12398 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12399             Anatoly Sokolov <aesok@post.ru>
12400
12401         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12402         (avr_arch): Add ARCH_AVR6.
12403         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12404         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
12405         instead of fixed value 2.
12406         (print_operand_address): Use gs() asm specifier instead of pm().
12407         (avr_assemble_integer): (Ditto.).
12408         (avr_output_addr_vec_elt): (Ditto.).
12409         (print_operand): Handle "!" code.
12410         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
12411         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12412         (AVR_HAVE_EIJMP_EICALL): Define.
12413         (AVR_3_BYTE_PC): Redefine.
12414         (AVR_2_BYTE_PC): (Ditto.).
12415         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12416         (LINK_SPEC): Add atmega2560 and atmega2561.
12417         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
12418         (crtm2561.o).
12419         * config/avr/avr.md (call_insn): Use eicall instead of icall 
12420         for 3 byte PC devices.
12421         (call_value_insn): (Ditto.).
12422         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12423         (indirect_jump): Use only for for 2 byte PC devices.
12424         (*tablejump): (Ditto.).
12425         (*indirect_jump_avr6): Add insn.
12426         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12427         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
12428         instead of ijmp for 3 byte PC devices.
12429         (__tablejump2__): (Ditto.).
12430         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12431         (MULITLIB_DIRNAMES): (Ditto.). 
12432         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12433
12434 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12435
12436         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12437         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12438         ("mmx_psadbw"): Use V1DI mode for operand 0.
12439         * config/i386/i386-modes.def (V1SI): New vector mode.
12440         * config/i386/i386.c (struct builtin_description)
12441         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12442         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12443         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12444         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12445         v1di_ftype_v8qi_v8qi type.
12446         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12447
12448         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12449         __builtin_ia32_pmuludq]: Fix the mode of return value.
12450
12451 2008-03-15  Richard Guenther  <rguenther@suse.de>
12452
12453         PR middle-end/35595
12454         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12455         being a PHI_NODE.
12456
12457 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12458         
12459         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12460         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12461         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12462         unless TARGET_SERIALIZE_VOLATILE is enabled.
12463         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12464         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12465         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12466
12467 2008-03-14  Richard Guenther  <rguenther@suse.de>
12468
12469         PR tree-optimization/34172
12470         * tree-flow.h (refs_may_alias_p): Declare.
12471         (get_single_def_stmt): Likewise.
12472         (get_single_def_stmt_from_phi): Likewise.
12473         (get_single_def_stmt_with_phi): Likewise.
12474         * tree-dfa.c (refs_may_alias_p): New function.
12475         (get_single_def_stmt): Likewise.
12476         (get_single_def_stmt_from_phi): Likewise.
12477         (get_single_def_stmt_with_phi): Likewise.
12478         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12479         (vn_reference_lookup_1): New helper function.
12480         (vn_reference_lookup): Walk the virtual use-def chain to
12481         continue searching for a match if the def does not alias the
12482         reference we are looking for.
12483
12484 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12485
12486         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12487         archive and Perzl.  Update The Written Word listing.
12488
12489 2008-03-14  Richard Guenther  <rguenther@suse.de>
12490
12491         PR tree-optimization/34043
12492         PR tree-optimization/33989
12493         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12494         when doing FRE.
12495         (bitmap_find_leader): Use extra argument to verify dominance
12496         relationship inside a basic-block.
12497         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12498         (find_leader_in_sets): Adjust.
12499         (create_component_ref_by_pieces): Take extra argument for
12500         dominance check, handle lookup failures.
12501         (find_or_generate_expression): Likewise.
12502         (create_expression_by_pieces): Likewise.
12503         (insert_into_preds_of_block): Adjust.
12504         (create_value_expr_from): If asked for, verify all operands
12505         are in the blocks AVAIL_OUT set.
12506         (make_values_for_stmt): Check for SSA_NAMEs that are life
12507         over an abnormal edge.
12508         (compute_avail): Remove such check.
12509         (do_SCCVN_insertion): New function.
12510         (eliminate): If we do not find a leader suitable for replacement
12511         insert a replacement expression from SCCVN if available.
12512         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12513         (struct vn_ssa_aux): Add needs_insertion flag.
12514         * tree-ssa-sccvn.c (may_insert): New global flag.
12515         (copy_reference_ops_from_ref): Value-number union member access
12516         based on its size, not type and member if insertion is allowed.
12517         (visit_reference_op_load): For a weak match from union type
12518         punning lookup a view-converted value and insert a SSA_NAME
12519         for that value if that is not found.
12520         (visit_use): Make dumps shorter.  Do not disallow value numbering
12521         SSA_NAMEs that are life over an abnormal edge to constants.
12522         (free_scc_vn): Release inserted SSA_NAMEs.
12523         (run_scc_vn): New flag to specify whether insertion is allowed.
12524         Process SSA_NAMEs in forward order.
12525         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12526         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12527         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12528         pointer type to/from integral types that do not change the
12529         precision to regular conversions.
12530
12531 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12532
12533         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12534         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12535         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12536         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12537         input arguments and the mode of return value.  Built-in functions
12538         that operate on whole 64-bit MMX register now use V1DI mode.
12539
12540 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12541             Olga Golovanevsky  <olga@il.ibm.com>
12542
12543         PR tree-optimization/35041
12544         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12545         to locate the right position in a statement.
12546
12547 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12548
12549         PR target/34000
12550         PR target/35553
12551         * config/i386/xmmintrin.h:  Change all static inline functions to
12552         extern inline and add __gnu_inline__ attribute.
12553         * config/i386/bmintrin.h: Ditto.
12554         * config/i386/smmintrin.h: Ditto.
12555         * config/i386/tmmintrin.h: Ditto.
12556         * config/i386/mmintrin-common.h: Ditto.
12557         * config/i386/ammintrin.h: Ditto.
12558         * config/i386/emmintrin.h: Ditto.
12559         * config/i386/pmmintrin.h: Ditto.
12560         * config/i386/mmintrin.h: Ditto.
12561         * config/i386/mm3dnow.h: Ditto.
12562
12563 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12564
12565         PR middle-end/35185
12566         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12567         (lower_omp_2): New function.
12568         (lower_omp_1, lower_omp): Rewritten.
12569
12570 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12571
12572         PR 35054
12573         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12574         with the phrase "Microsoft Windows compilers".
12575         (Push/Pop Macro Pragmas): New subsection. Document
12576         #pragma push_macro and pragma pop_macro.
12577
12578 2008-03-12  Paul Brook  <paul@codesourcery.com>
12579
12580         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12581
12582 2008-03-12  Paul Brook  <paul@codesourcery.com>
12583
12584         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12585         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12586         (thumb2_addsi_shortim): Rename ...
12587         (thumb2_addsi_short): ... to this.  Allow register operands.
12588         (thumb2_subsi_short): New pattern.
12589         (thumb2_one_cmplsi2_short,
12590         thumb2_negsi2_short): New patterns and peepholes.
12591
12592 2008-03-12  Paul Brook  <paul@codesourcery.com>
12593
12594         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12595
12596 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12597
12598         * config/i386/i386.md (int_cond): New code iterator.
12599         (fp_cond): Ditto.
12600         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12601         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12602         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12603         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12604         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12605         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12606         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12607         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12608
12609 2008-03-12  Paul Brook  <paul@codesourcery.com>
12610
12611         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12612         instead of {arm,thumb}_compute_save_reg_mask.
12613         (output_return_instruction): Ditto.
12614         (thumb_unexpanded_epilogue): Ditto.
12615         (thumb1_expand_prologue): Ditto.
12616         (thumb1_output_function_prologue): Ditto.
12617         (arm_set_return_address): Ditto.
12618         (thumb_set_return_address): Ditto.
12619         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12620         regs to achieve stack alignment.
12621         (thumb1_compute_save_reg_mask): Fix compiler warning.
12622         (arm_output_epilogue): Use offsets->saved_regs_mask.
12623         Adjust stack pointer by poping call clobered registers.
12624         (arm_expand_prologue): Use offsets->saved_regs_mask.
12625         Adjust stack pointer by pushing extra registers.
12626         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12627
12628 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12629
12630         PR tree-opt/35422
12631         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12632         conversion to the operands of a multiplication.
12633
12634 2008-03-12  Richard Guenther  <rguenther@suse.de>
12635
12636         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12637         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12638         * timevar.def (TV_TREE_PHIPROP): Add.
12639         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12640         pass description.  Use TV_TREE_PHIPROP.
12641         * tree-ssa-forwprop.c: Remove phiprop code.
12642
12643 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12644
12645         PR middle-end/35549
12646         * omp-low.c (maybe_lookup_decl): Constify first argument.
12647         (use_pointer_for_field): Change last argument from bool to
12648         omp_context *.  Disallow shared copy-in/out in nested
12649         parallel if decl is shared in outer parallel too.
12650         (build_outer_var_ref, scan_sharing_clauses,
12651         lower_rec_input_clauses, lower_copyprivate_clauses,
12652         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12653
12654 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12655             Ira Rosen  <irar@il.ibm.com>
12656
12657         * tree-vectorizer.c (free_stmt_vec_info): New function.
12658         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12659         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12660         * tree-vectorizer.h (free_stmt_vec_info): Declare.
12661         * tree-vect-transform.c (vectorizable_conversion): Free
12662         vec_oprnds0 if it was allocated.
12663         (vect_permute_store_chain): Remove unused VECs.
12664         (vectorizable_store): Free VECs that are allocated in the..
12665         function.
12666         (vect_transform_strided_load, vectorizable_load): Likewise.
12667         (vect_remove_stores): Simplify the code.
12668         (vect_transform_loop): Move code to vect_remove_stores().
12669         Call vect_remove_stores() and free_stmt_vec_info().
12670
12671 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12672
12673         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12674         TARGET_HPUX.  Revise comment.
12675         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12676         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12677         Use sr4 variant of `be' instruction when not generating PIC code.
12678         (attr_length_call): Adjust for above change.
12679
12680 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12681
12682         * ipa-reference.c (static_execute): Remove module_statics_const and
12683         associated setting code.
12684
12685 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12686
12687         PR target/35540
12688         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12689         predicate for operand 1.
12690         (paritysi2_cmp): Use register_operand predicate for operand 2.
12691         Use earlyclobber modifier for operand 1.  Remove support for
12692         memory operands.
12693         (paritydi2_cmp): Use register_operand predicate for operand 3.
12694         Use earlyclobber modifier for operand 1.  Remove support for
12695         memory operands.
12696
12697 2008-03-11  Paul Brook  <paul@codesourcery.com>
12698             Vladimir Prus  <vladimir@codesourcery.com>
12699
12700         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12701         (arm_compute_save_reg0_reg12_mask): Always
12702         check if register 11 must be saved.  Always safe hard frame pointer
12703         when frame_pointer_needeed.
12704         (arm_compute_save_reg_mask): Save IP and PC
12705         only with apcs frames.
12706         (arm_output_epilogue): Adjust Thumb2 codepath to
12707         be also invoked and work for ARM non-apcs frames.
12708         (arm_expand_prologue): Don't bother saving IP
12709         for non-apcs frame, since it's not clobbered by
12710         prologue code.  Implement non-apcs frame
12711         layout.
12712
12713 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12714
12715         PR rtl-optimization/35281
12716         * expr.c (convert_move): Use a new pseudo for the intermediate
12717         from_mode->word_mode result.
12718
12719 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12720
12721         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12722         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12723         * toplev.c (compile_file): Don't call it.
12724
12725 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12726
12727         PR middle-end/35526
12728         * expr.c (store_expr): Call emit_block_move if the mode
12729         of "temp" RTX is BLKmode.
12730
12731 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12732             Richard Guenther  <rguenther@suse.de>
12733
12734         PR tree-optimization/31358
12735         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12736         the step with a NULL_TREE.
12737         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12738         to sizetype if type is a pointer type.
12739         (add_candidate_1): Don't convert the base and step to
12740         the generic type if the orginal type is a pointer type.
12741         (add_iv_value_candidates): Use sizetype for the step
12742         if type is a pointer type.
12743         (cand_value_at): Likewise.
12744         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12745         for pointer types.
12746         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12747         Don't convert the tem affine to the type.
12748         (add_elt_to_tree): Use sizetype for the step if a pointer.
12749         Use POINTER_PLUS_EXPR for pointers.
12750         (aff_combination_to_tree): Use sizetype for the step if a
12751         pointer.
12752
12753 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
12754
12755         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12756         Remove commutativity hint.
12757
12758 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
12759
12760         PR c/35438
12761         PR c/35439
12762         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12763         errorneous type.  Check that v is a VAR_DECL.
12764
12765         PR middle-end/35099
12766         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12767
12768 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12769
12770         PR tree-optimization/35494
12771         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12772         may be overriden at link and run time.
12773
12774 2008-03-10  Richard Guenther  <rguenther@suse.de>
12775
12776         PR tree-optimization/34677
12777         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12778         (poolify_tree): Likewise.
12779         (modify_expr_template): Likewise.
12780         (poolify_modify_stmt): Likewise.
12781         (insert_fake_stores): Handle all component-ref style stores
12782         in addition to INDIRECT_REF.  Also handle complex types.
12783         Do not poolify the inserted load.
12784         (realify_fake_stores): Do not rebuild the tree but only
12785         make it a SSA_NAME copy.
12786         (init_pre): Remove initialzation of modify_expr_template.
12787         Do not allocate modify_expr_node_pool.
12788         (fini_pre): Do not free modify_expr_node_pool.
12789
12790 2008-03-10  Paul Brook  <paul@codesourcery.com>
12791
12792         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12793         to avoid conflicts.
12794
12795 2008-03-10  Paul Brook  <paul@codesourcery.com>
12796             Mark Shinwell  <shinwell@codesourcery.com>
12797
12798         * config/arm/cortex-r4.md: New.
12799         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12800         insn attributes.
12801         * config/arm/arm.md: Include cortex-r4.md.
12802         (insn): Add smmls, sdiv and udiv values.
12803         (generic_sched): Don't use generic scheduling for Cortex-R4.
12804         (arm_issue_rate): New function.
12805         (TARGET_SCHED_ISSUE_RATE): Define.
12806
12807 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
12808
12809         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12810
12811 2008-03-10  Richard Guenther  <rguenther@suse.de>
12812
12813         * tree-ssa-pre.c (get_sccvn_value): Simplify.
12814         (compute_avail): Do not add stmt uses to AVAIL_OUT.
12815
12816 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
12817
12818         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12819         Set default to true.
12820
12821 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12822
12823         * c.opt (Wsynth): Deprecate.
12824         * doc/invoke.texi (Option Summary, Warning Options): Document
12825         -Wno-format-contains-nul.
12826
12827 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
12828
12829         PR target/35496
12830         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12831         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12832
12833 2008-03-09  Ira Rosen  <irar@il.ibm.com>
12834
12835         * config/rs6000/rs6000.c (builtin_description): Rename vector
12836         left shift operations.
12837         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12838         (altivec_vsl<VI_char>): Rename to ...
12839         (ashl<mode>3): ... new name.
12840         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12841         gen_ashlv4si3.
12842         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12843
12844 2008-03-08  Richard Guenther  <rguenther@suse.de>
12845
12846         * coverage.h (tree_coverage_counter_addr): Declare.
12847         * coverage.c (tree_coverage_counter_addr): New function.
12848         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12849         before using again.
12850         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12851         (tree_gen_one_value_profiler): Likewise.
12852         (tree_gen_ic_profiler): Likewise.
12853         (tree_gen_average_profiler): Likewise.
12854         (tree_gen_ior_profiler): Likewise.
12855
12856 2008-03-08  Richard Guenther  <rguenther@suse.de>
12857
12858         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12859         (vn_binary_op_insert): Likewise.
12860         (vn_unary_op_lookup): Likewise.
12861         (vn_unary_op_insert): Likewise.
12862         (vn_nary_op_lookup): Declare.
12863         (vn_nary_op_insert): Likewise.
12864         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12865         and binary hashes, use a single obstack for unary_op_pool
12866         and binary_op_pool.
12867         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12868         a single struct vn_nary_op_s.  Store tree code length and
12869         a variable number of operands.
12870         (struct vn_reference_op_struct): Remove unused op2.
12871         (vn_reference_op_eq): Do not compare op2.
12872         (vn_reference_op_compute_hash): Do not compute hash of op2.
12873         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12874         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12875         with vn_nary_op_compute_hash.
12876         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12877         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12878         vn_nary_op_lookup.
12879         (vn_unary_op_insert, vn_binary_op_insert): Replace with
12880         vn_nary_op_insert.
12881         (visit_unary_op): Call nary functions.
12882         (visit_binary_op): Likewise.
12883         (process_scc): Adjust for struct vn_tables_s changes.
12884         (allocate_vn_table): Likewise.
12885         (free_vn_table): Likewise.
12886         * tree-vn.c (vn_add): Call nary functions.
12887         (vn_lookup): Likewise.
12888
12889 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
12890
12891         PR target/35498
12892         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12893         wdst back after sync_compare_and_swapqhi_internal.
12894
12895 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
12896
12897         PR target/22152
12898         * config/i386/i386-modes.def (V1DI): New vector mode.
12899         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12900         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12901         (MMXMODE248): Ditto.
12902         (MMXMODE): Add V1DI mode.
12903         (mmxvecsize): Change DI mode to V1DI mode.
12904         ("mov<mode>): Use MMXMODEI8 mode iterator.
12905         ("*mov<mode>_internal_rex64"): Ditto.
12906         ("*mov<mode>_internal"): Ditto.
12907         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
12908         ("mmx_sub<mode>3"): Ditto.
12909         ("mmx_adddi3"): Remove insn pattern.
12910         ("mmx_subdi3"): Ditto.
12911         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12912         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12913         ("mmx_ashl<mode>3"): Ditto.
12914         ("mmx_lshrdi3"): Remove insn pattern.
12915         ("mmx_ashldi3"): Ditto.
12916         * config/i386/i386.c (classify_argument): Handle V1DImode.
12917         (function_arg_advance_32): Ditto.
12918         (function_arg_32): Ditto.
12919         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12920         mmx_addv1di3 insn pattern.
12921         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12922         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12923         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12924         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12925         Remove definitions of built-in functions.
12926         (V1DI_type_node): New node.
12927         (v1di_ftype_v1di_int): Ditto.
12928         (v1di_ftype_v1di_v1di): Ditto.
12929         (v2si_ftype_v2si_si): Ditto.
12930         (v4hi_ftype_v4hi_di): Remove node.
12931         (v2si_ftype_v2si_di): Ditto.
12932         (ix86_init_mmx_sse_builtins): Handle V1DImode.
12933         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12934         Redefine builtins using def_builtin_const with *_ftype_*_int node.
12935         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12936         Add new builtins using def_builtin_const.
12937         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12938         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12939         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12940         * config/i386/mmintrin.h (__v1di): New typedef.
12941         (_mm_add_si64): Cast arguments to __v1di type.
12942         (_mm_sub_si64): Ditto.
12943         (_mm_sll_pi16): Cast __count to __v4hi type.
12944         (_mm_sll_pi32): Cast __count to __v2si type.
12945         (_mm_sll_si64): Cast arguments to __v1di type.
12946         (_mm_srl_pi16): Cast __count to __v4hi type.
12947         (_mm_srl_pi32): Cast __count to __v2si type.
12948         (_mm_srl_si64): Cast arguments to __v1di type.
12949         (_mm_sra_pi16): Cast __count to __v4hi type.
12950         (_mm_sra_pi32): Cast __count to __v2si type.
12951         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12952         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12953         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12954         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12955         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12956         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12957         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12958         (_mm_srai_pi32): Use __builtin_ia32_psradi.
12959         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12960         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12961         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12962         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12963
12964 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
12965
12966         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12967
12968 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
12969
12970         PR target/35373
12971         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12972         reg+const addressing for Altivec modes.  Don't generate reg+reg
12973         addressing for TFmode or TDmode quantities.
12974
12975 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
12976
12977         * c-common.c (vector_types_convertible_p): Call langhook
12978         instead of comptypes.
12979
12980 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12981
12982         PR tree-opt/35402
12983         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12984         integral and scalar float variables which have a
12985         NULL DECL_INITIAL.
12986
12987 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
12988
12989         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12990         dwarf_register_span hook when emitting unwind information for
12991         register-to-memory saves.
12992         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12993         (rs6000_frame_related): Remove call to spe_synthesize_frame.
12994
12995 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
12996
12997         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12998         for the same VAR_DECL.
12999
13000 2008-03-06  Tom Tromey  <tromey@redhat.com>
13001
13002         * treelang: Delete.
13003         * doc/standards.texi (Standards): Don't mention treelang.
13004         * doc/invoke.texi (Overall Options): Don't mention treelang.
13005         * doc/install.texi (Prerequisites): Don't mention bison or
13006         treelang.
13007         (Configuration): Don't mention treelang.
13008         (Building): Likewise.
13009         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13010
13011 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13012
13013         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13014         word-extractions out of a multi-word object.
13015
13016 2008-03-06  Richard Guenther  <rguenther@suse.de>
13017
13018         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13019         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13020         result type and precision.
13021         * expr.c (get_inner_reference): Set unsignedp based on the result
13022         type of BIT_FIELD_REF.
13023         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13024         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13025         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13026         for BIT_FIELD_REF.
13027         (sra_build_assignment): Likewise.
13028         (sra_build_elt_assignment): Likewise.
13029         (sra_explode_bitfield_assignment): Likewise.
13030         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13031         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13032         set BIT_FIELD_REF_UNSIGNED.
13033         (vectorizable_load): Likewise.
13034
13035 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13036
13037         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13038         at bb start.
13039
13040 2008-03-06  Richard Guenther  <rguenther@suse.de>
13041
13042         * alias.c (struct alias_set_entry): Move has_zero_child field
13043         to pack with alias_set.
13044
13045 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13046
13047         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13048         32bit host.
13049
13050 2008-03-05  Ian Lance Taylor  <iant@google.com>
13051
13052         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13053
13054 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13055
13056         * fwprop.c (update_df): Support width and offset parameters of
13057         df_ref_create.
13058         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13059         global_conflicts): Change DF_REF_EXTRACT to either
13060         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13061         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13062         * df-scan.c (df_ref_record, df_defs_record,
13063         df_ref_create_structure, df_def_record_1, df_uses_record,
13064         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13065         df_bb_refs_collect, df_entry_block_defs_collect,
13066         df_exit_block_uses_collect): Support new width and offset fields.
13067         (ref_extract_pool): New storage pool.
13068         (df_free_ref): New function.
13069         (df_reg_chain_unlink, df_free_collection_rec,
13070         df_sort_and_compress_refs): Call df_free_ref.
13071         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13072         of df_ref_extract.
13073         (df_ref_create_structure): Allocate df_ref_extract if offset and
13074         width fields are used.
13075         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13076         (df_uses_record): Get offset and width from ZERO_EXTRACT 
13077         and SIGN_EXTRACT.
13078         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13079         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13080         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13081         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13082         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13083         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13084         (df_ref_extract): New structure.
13085         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13086         (df_ref_create): Add width and offset parameters.
13087         
13088 2008-03-05  Richard Guenther  <rguenther@suse.de>
13089
13090         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13091         Use ranges_overlap_p.
13092         (offset_overlaps_with_access): Rename
13093         to ranges_overlap_p and move ...
13094         * tree-flow-inline.h (ranges_overlap_p): ... here.
13095
13096         * tree.h (get_inner_reference, handled_component_p): Update
13097         comments.
13098
13099         * tree.h (record_component_aliases, get_alias_set,
13100         alias_sets_conflict_p, alias_sets_must_conflict_p,
13101         objects_must_conflict_p): Move declarations ...
13102         * alias.h (record_component_aliases, get_alias_set,
13103         alias_sets_conflict_p, alias_sets_must_conflict_p,
13104         objects_must_conflict_p): ... here.
13105         Include coretypes.h.
13106         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13107
13108 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13109
13110         * cfg.c: Include tree-flow.h.
13111         (remove_edge_raw): Call redirect_edge_var_map_clear.
13112         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13113         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13114         (redirect_edge_var_map_result): New.
13115         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13116         PENDING_STMT use with redirect_edge_var_map_*.
13117         * tree-ssa.c (edge_var_maps): New definition.
13118         (redirect_edge_var_map_add): New.
13119         (redirect_edge_var_map_clear): New.
13120         (redirect_edge_var_map_dup): New.
13121         (redirect_edge_var_map_vector): New.
13122         (redirect_edge_var_map_destroy): New.
13123         (ssa_redirect_edge): Replace PENDING_STMT use with
13124         redirect_edge_var_map_*.
13125         (flush_pending_stmts): Same.
13126         (delete_tree_ssa): Destroy edge var map.
13127         * tree-flow.h (struct _edge_var_map): New.
13128         Define edge_var_map vector type.
13129         Declare redirect_edge_var_map_* prototypes.
13130         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13131         * tree-cfg.c (reinstall_phi_args): Replace
13132         PENDING_STMT use with redirect_edge_var_map_*.
13133
13134 2008-03-05  Richard Guenther  <rguenther@suse.de>
13135
13136         PR tree-optimization/35472
13137         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13138         whose single use_stmt has a overlapping set of loaded and
13139         stored symbols as that use_stmt might be a noop assignment then.
13140
13141 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13142
13143         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13144
13145 2008-03-05  Richard Guenther  <rguenther@suse.de>
13146
13147         PR c++/35336
13148         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13149         should be constants.
13150         * tree-cfg.c (verify_expr): Verify it.
13151         * fold-const.c (fold_truthop): Remove code generating
13152         BIT_FIELD_REFs of structure bases.
13153         (fold_binary): Likewise.
13154         (fold_ternary): Position and size of BIT_FIELD_REFs are
13155         always host integers.
13156         (make_bit_field_ref): Remove.
13157         (optimize_bit_field_compare): Remove.
13158         (all_ones_mask_p): Remove.
13159
13160 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13161
13162         PR gcc/33009
13163         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13164         (split_block_and_df_analyze): New. Split basic block and rebuild
13165         dataflow.
13166         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13167         SPLIT_BLOCK.
13168         (split_pattern_seq): Likewise.
13169         (erase_matching_seqs): Likewise.
13170         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13171
13172 2008-03-04  Geoff Keating  <geoffk@apple.com>
13173
13174         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13175         declaration and code.
13176         (tree_invalid_nonnegative_warnv_p): Likewise.
13177
13178 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13179
13180         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13181         examples.  Truncate option-names then causing overfull hbox.
13182
13183 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13184
13185         PR target/35222
13186         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13187         on hpux10.
13188         * configure: Rebuilt.
13189
13190 2008-03-04  Rafael Espindola  <espindola@google.com>
13191
13192         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13193         (tree_unary_nonnegative_warnv_p): New.
13194         (tree_binary_nonnegative_warnv_p): New.
13195         (tree_single_nonnegative_warnv_p): New.
13196         (tree_invalid_nonnegative_warnv_p): New.
13197         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13198
13199 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13200
13201         PR 28322
13202         * opts.c (handle_option): Postpone 'unknown option' errors only for
13203         warning options.
13204
13205 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13206
13207         PR target/35453
13208         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13209         (_SIDD_XXX): This.
13210
13211 2008-03-04  Rafael Espindola  <espindola@google.com>
13212
13213         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13214         (tree_binary_nonzero_warnv_p): New.
13215         (tree_single_nonzero_warnv_p): New.
13216         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13217
13218 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13219
13220         PR middle-end/35456
13221         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13222         transformations for modes that have signed zeros.
13223         * ifcvt.c (noce_try_abs): Ditto.
13224
13225 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13226
13227         * config/i386/i386.c (override_options): Force
13228         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13229
13230 2008-03-04  Jan Hubicka  <jh@suse.cz>
13231
13232         PR c++/35262
13233         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13234         in last commit.
13235
13236 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13237
13238         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13239         label to probe the stack.
13240
13241 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13242
13243         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13244         (__gthr_win32_mutex_destroy): Declare.
13245         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13246         __gthr_win32_mutex_destroy.
13247         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13248
13249 2008-03-03  Jan Hubicka  <jh@suse.cz>
13250
13251         PR c++/35262
13252         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13253         aggressive on inlining cold calls.
13254
13255 2008-03-03  Richard Guenther  <rguenther@suse.de>
13256
13257         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13258         struct copies into the expression table.
13259         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13260         (try_to_simplify): Likewise.
13261         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13262         integral and pointer arguments which do not change the
13263         precision to NOP_EXPRs.
13264         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13265         VIEW_CONVERT_EXPR case.
13266
13267 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13268
13269         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13270         defined in a loop at depth 0 is invariant.
13271         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13272         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13273         be called at loop depth 0.
13274
13275 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13276
13277         PR driver/35420
13278         * gcc.c (process_command): Update copyright notice dates.
13279         * gcov.c (print_version): Likewise.
13280         * gcov-dump.c (print_version): Likewise.
13281         * mips-tfile.c (main): Likewise.
13282         * mips-tdump.c (main): Likewise.
13283
13284 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13285
13286         PR 24924
13287         * c-common.c (flag_permissive): Delete.
13288         (constant_expression_warnings): Check flags first.
13289         (constant_expression_error): New.
13290         * c-common.h (flag_permissive): Delete.
13291         (constant_expression_error): Declare.
13292         * flags.h (flag_permissive): Declare. Update description.
13293         * diagnostic.c (pedwarn): Update.
13294         (permerror): New.
13295         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13296         (permissive_error_kind): New.
13297         * toplev.c (flag_permissive): Define. Update description.
13298         * toplev.h (permissive_error_kind): Declare.
13299         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13300         (pedwarn_c90): Use pedantic_warning_kind.
13301         * c-opts.c (c_common_post_options): flag_permissive does not affect
13302         flag_pedantic_errors.
13303
13304 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13305
13306         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13307         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13308         __absvsi2, __absvDI2): Use unsigned arithmetic.
13309
13310 2008-03-02  Andi Kleen  <ak@suse.de>
13311             Richard Guenther  <rguenther@suse.de>
13312
13313         * struct-equiv.c: Remove file.
13314         * cfg_cleanup.c (condjump_equiv_p): Remove.
13315         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13316         (struct-equiv.o): Remove rule.
13317         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13318         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
13319         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13320
13321 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13322
13323         * ifcvt.c (noce_process_if_block): Try to handle only the then
13324         block if the else block exists but isn't suitable.
13325
13326 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13327
13328         PR gcc/35063
13329         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13330         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13331         regression from previous patch.
13332
13333 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13334
13335         PR gcc/35063
13336         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13337         implemented.
13338         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13339         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13340         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13341         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13342         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13343         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13344         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13345         (__gthread_mutex_destroy_function): Rename to
13346         __gthread_mutex_destroy.
13347         * gthr-dce.h (__gthread_mutex_destroy): Call
13348         pthread_mutex_destroy.
13349         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13350         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13351         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13352
13353 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13354
13355         * df-scan.c (df_ref_chain_change_bb): Simplify.
13356         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13357         set_block_for_insn if there's any change.
13358         * df.h ((df_insn_change_bb): Fix prototype.
13359         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13360         df_insn_change_bb, don't call set_block_for_insn.
13361         * emit-rtl.c (reorder_insns): Likewise.
13362         * haifa-sched.c (move_insn): Likewise.
13363
13364 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13365
13366         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13367
13368 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13369
13370         * tree-flow-inline.h (next_readonly_imm_use): Return
13371         NULL_USE_OPERAND_P after the end.
13372
13373 2008-03-01  Richard Guenther  <rguenther@suse.de>
13374
13375         PR tree-optimization/35411
13376         * tree-sra.c (sra_build_assignment): Split conversion to
13377         final type to a separate statement if we are not assigning
13378         to a register.
13379
13380 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13381
13382         * fold-const.c (fold_convertible_p): Correct the logic to follow
13383         that in fold_convert().
13384
13385 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13386
13387         PR c++/35315
13388         * tree-inline.c (build_duplicate_type): When we make a
13389         duplicate type, make it unique in the canonical types system.
13390
13391 2008-02-29  Tom Tromey  <tromey@redhat.com>
13392
13393         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13394         input_file_stack_history, input_file_stack_restored): Remove.
13395         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13396         * input.h (struct file_stack): Remove.
13397         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13398         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13399         Likewise.
13400         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13401         type.
13402         (diagnostic_last_module_changed): Add 'map' argument.
13403         (diagnostic_set_last_function): Likewise.
13404         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13405         line map, not input_file_stack.
13406         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13407
13408 2008-02-29  Paul Brook  <paul@codesourcery.com>
13409
13410         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13411
13412 2008-02-29  Paul Brook  <paul@codesourcery.com>
13413
13414         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13415
13416 2008-02-29  Richard Guenther  <rguenther@suse.de>
13417
13418         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13419         vn_lookup_or_add.
13420         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13421         value for comparing for a store match.
13422         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13423         (try_to_simplify): Do not do a full-blown reference lookup.
13424
13425 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13426
13427         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13428         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13429
13430         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13431
13432 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13433
13434         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13435         strides against cache sizes.
13436
13437 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13438
13439         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13440         constant to fpul.
13441
13442 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13443
13444         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13445         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13446         is smaller than the original promoted value.
13447         (simplify_subreg): If OP is a SUBREG, try to preserve its
13448         SUBREG_PROMOTED_VAR_P information.
13449
13450 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13451
13452         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13453         (VN_INFO_GET): Allocate new objects on the obstack.
13454         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13455         for rpo_numbers_temp, for consistency.
13456         (free_scc_vn): Free the obstack.
13457
13458 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13459
13460         * doc/invoke.texi: Document -ftree-loop-distribution.
13461         * tree-loop-distribution.c: New.
13462         * tree-pass.h (pass_loop_distribution): New.
13463         * graphds.h (struct graph): Add htab_t indices.
13464         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13465         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13466         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13467         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13468         * tree-data-ref.c (debug_data_dependence_relations): New.
13469         (dump_data_dependence_relation): Also print data references.
13470         (free_data_ref): Extern.
13471         (same_access_functions): Moved...
13472         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13473         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13474         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13475         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13476         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13477         (stmts_from_loop): Skip LABEL_EXPR.
13478         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13479         New.
13480         (build_rdg): Initialize rdg->indices htab.
13481         (free_rdg, stores_from_loop, ref_base_address,
13482         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13483         have_similar_memory_accesses_1, ref_base_address_1,
13484         remove_similar_memory_refs): New.
13485         * tree-data-ref.h: Depend on tree-chrec.h.
13486         (debug_data_dependence_relations, free_data_ref): Declared.
13487         (same_access_functions): ... here.
13488         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13489         New.
13490         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13491         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13492         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13493         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13494         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13495         rdg_vertex_for_stmt): Declared.
13496         (struct rdg_edge): Add level.
13497         (RDGE_LEVEL): New.
13498         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13499         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13500         Declared.
13501         (rdg_has_similar_memory_accesses): New.
13502         * tree-vect-analyze.c: Remove unused static decls.
13503         * lambda.h (dependence_level): New.
13504         * common.opt (ftree-loop-distribution): New.
13505         * tree-flow.h (mark_virtual_ops_in_bb, 
13506         slpeel_tree_duplicate_loop_to_edge_cfg,
13507         rename_variables_in_loop): Declared.
13508         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13509         (OBJS-common): Add tree-loop-distribution.o.
13510         (tree-loop-distribution.o): New rule.
13511         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13512         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13513         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13514
13515 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13516
13517         PR target/33963
13518         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13519         other than structures and unions.
13520
13521 2008-02-28  Richard Guenther  <rguenther@suse.de>
13522
13523         Revert:
13524         2008-02-26  Richard Guenther  <rguenther@suse.de>
13525
13526         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13527         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13528         (lookup_decl_from_uid): Declare.
13529         (remove_decl_from_map): Likewise.
13530         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13531         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13532         (decl_for_uid_map): New global hashtable mapping DECL_UID
13533         to the decl tree.
13534         (init_ttree): Allocate it.
13535         (insert_decl_to_uid_decl_map): New helper function.
13536         (make_node_stat): Insert new decls into the map.
13537         (copy_node_stat): Likewise.
13538         (lookup_decl_from_uid): New function.
13539         (remove_decl_from_map): Likewise.
13540         (print_decl_for_uid_map_statistics): New helper.
13541         (dump_tree_statistics): Call it.
13542
13543         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13544         (referenced_var_iterator): Adjust.
13545         (FOR_EACH_REFERENCED_VAR): Adjust.
13546         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13547         (num_referenced_vars): Adjust.
13548         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13549         (first_referenced_var): Remove.
13550         (end_referenced_vars_p): Likewise.
13551         (next_referenced_var): Likewise.
13552         (referenced_var_iterator_set): New helper function.
13553         * tree-dfa.c (referenced_var_lookup): Adjust.
13554         (referenced_var_check_and_insert): Likewise.
13555         (remove_referenced_var): Likewise.
13556         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13557         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13558         (verify_call_clobbering): Likewise.
13559         (verify_memory_partitions): Likewise.
13560         (init_tree_ssa): Allocate bitmap instead of hashtable for
13561         referenced_vars.
13562         (delete_tree_ssa): Adjust.
13563         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13564         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13565         (compute_tag_properties): Likewise.
13566         (set_initial_properties): Likewise.
13567         (find_partition_for): Likewise.
13568         (update_reference_counts): Likewise.
13569         (dump_may_aliases_for): Likewise.
13570         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13571         (add_call_clobber_ops): Likewise.
13572         (add_call_read_ops): Likewise.
13573         (get_asm_expr_operands): Likewise.
13574         * tree-into-ssa.c (dump_decl_set): Likewise.
13575         (update_ssa): Likewise.
13576         * tree-sra.c (scan_function): Likewise.
13577         (decide_instantiations): Likewise.
13578         (scalarize_parms): Likewise.
13579         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13580         (dsa_named_for): Likewise.
13581         * tree-ssa-structalias.c (update_alias_info): Likewise.
13582         (merge_smts_into): Likewise.
13583
13584 2008-02-27  David Daney  <ddaney@avtrex.com>
13585
13586         PR target/34409
13587         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13588         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13589         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13590         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13591         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13592
13593 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13594
13595         PR target/25477
13596         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13597         (BUILT_IN_NEXTTOWARD): Remove.
13598         (BUILT_IN_NEXTTOWARDF): Ditto.
13599         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13600         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13601
13602 2008-02-27  Tom Tromey  <tromey@redhat.com>
13603
13604         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13605         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13606
13607 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13608
13609         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13610         update the respective field on newdecl.
13611
13612 2008-02-27  Revital Eres  <eres@il.ibm.com>
13613
13614         PR rtl-optimization/34999
13615         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13616         crossing edges that ends with a call insn.
13617         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13618         call insn and clear the EDGE_CROSSING flag of the crossing edge
13619         when fixing fallthru edges.
13620
13621 2008-02-27  Richard Guenther  <rguenther@suse.de>
13622
13623         PR middle-end/35390
13624         * fold-const.c (fold_unary): Return the correct argument,
13625         converted to the result type.
13626
13627 2008-02-27  Richard Guenther  <rguenther@suse.de>
13628
13629         PR middle-end/34971
13630         * expr.c (expand_expr_real_1): Assert on rotates that operate
13631         on partial modes.
13632         * fold-const.c (fold_binary): Use the types precision, not the
13633         bitsize of the mode if folding rotate expressions.  Build rotates
13634         only for full modes.
13635
13636 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13637
13638         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13639         and CPP_PRAGMA_EOL.
13640         * c-pragma.c (pragma_ns_name): New typedef.
13641         (registered_pp_pragmas): New variable.
13642         (c_pp_lookup_pragma): New function.
13643         (c_register_pragma_1): If flag_preprocess_only, do nothing
13644         for non-expanded pragmas, for expanded ones push pragma's
13645         namespace and name into registered_pp_pragmas vector.
13646         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13647         flag_preprocess_only, don't register GCC pch_preprocess
13648         pragma if flag_preprocess_only.
13649         * c-opts.c (c_common_init): Call init_pragma even if
13650         flag_preprocess_only.
13651         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13652         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13653         cpp_register_pragma if flag_preprocess_only.
13654
13655 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13656
13657         PR c/28800
13658         * c-parser.c (c_parser_translation_unit): Warn for empty
13659         translation unit, not empty source file.
13660
13661 2008-02-26  Paul Brook  <paul@codesourcery.com>
13662
13663         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13664         operand for Thumb-2.
13665         * config/arm/arm.h (reg_class): Add CORE_REGS.
13666         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13667         (BASE_REG_CLASS): Use CORE_REGS.
13668         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13669         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13670         (REGNO_OK_FOR_INDEX_P): Exclude SP.
13671         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
13672         ARM_REGNO_OK_FOR_INDEX_P.
13673         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13674         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13675         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13676         (ldm/stm peepholes): Ditto.
13677         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13678         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13679         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13680         * config/arm/constraints.md: Enable "k" constraint on ARM.
13681
13682 2008-02-27  Ben Elliston  <bje@au.ibm.com>
13683
13684         * config/rs6000/rs6000.c: Annotate cache line size field in all
13685         instances of struct processor_costs.
13686
13687 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
13688
13689         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13690         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13691         jump_bypass): New counters.
13692         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13693         * dce.c (gate_ud_dce): Same.
13694         (gate_fast_dce): Same.
13695         * dse.c (gate_dse1): New function.
13696         (gate_dse2): New function.
13697         (gate_dse): Merge results of new gate functions.
13698         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13699         (gate_handle_jump_bypass): Add dbg_cnt.
13700         (gate_handle_gcse): Add dbg_cnt.
13701         * ifcvt.c (gate_handle_if_conversion): Same.
13702         (gate_handle_if_after_combine): Same.
13703         (gate_handle_if_after_reload): Same.
13704         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13705
13706 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
13707
13708         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13709         line sizes.
13710         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13711
13712 2008-02-26  Jason Merrill  <jason@redhat.com>
13713
13714         PR c++/35315
13715         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
13716         alone if it's the naming decl for the type's main variant.
13717
13718 2008-02-26  Tom Tromey  <tromey@redhat.com>
13719
13720         * system.h (USE_MAPPED_LOCATION): Poison.
13721         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13722         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13723         (make_goto_expr_edges): Likewise.
13724         (remove_bb): Likewise.
13725         (execute_warn_function_return): Likewise.
13726         * basic-block.h (struct edge_def) <goto_locus>: Change type to
13727         location_t.
13728         * c-common.c (fname_decl): Remove old location code.
13729         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13730         location code.
13731         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13732         variant.
13733         (ASM_INPUT_SOURCE_LOCATION): Likewise.
13734         (gen_rtx_ASM_INPUT): Likewise.
13735         (gen_rtx_ASM_INPUT_loc): Likewise.
13736         (get_rtx_asm_OPERANDS): Remove.
13737         * cfglayout.c (insn_locators_alloc): Remove old location code.
13738         (set_curr_insn_source_location): Likewise.
13739         (curr_insn_locator): Likewise.
13740         * print-tree.c (print_node): Remove old location code.
13741         * tree-mudflap.c (mf_varname_tree): Remove old location code.
13742         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13743         * cfgexpand.c (expand_gimple_cond_expr): Don't use
13744         location_from_locus.
13745         (construct_exit_block): Remove old location code.
13746         * emit-rtl.c (force_next_line_note): Remove old location code.
13747         * profile.c (branch_prob): Remove old location code.
13748         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13749         LOC_LINE): Remove old-location variants.
13750         * langhooks.c (lhd_print_error_function): Remove old location
13751         code.
13752         * configure, config.in: Rebuilt.
13753         * configure.ac (--enable-mapped-location): Remove.
13754         * c-decl.c (c_init_decl_processing): Remove old location code.
13755         (finish_function): Likewise.
13756         * recog.c (decode_asm_operands): Remove old location code.
13757         * c-pch.c (c_common_read_pch): Remove old location code.
13758         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13759         variants.
13760         * gimple-low.c (lower_function_body): Remove old location code.
13761         * toplev.c (unknown_location): Remove.
13762         (push_srcloc): Remove old-location variant.
13763         (process_options): Remove old location code.
13764         (lang_dependent_init): Likewise.
13765         * input.h (UNKNOWN_LOCATION): Move definition.
13766         (location_t): Undeprecate.
13767         (source_locus): Remove.
13768         (location_from_locus): Remove.
13769         (struct location_s): Remove.
13770         Remove all old-location code.
13771         (input_line, input_filename): Remove.
13772         * final.c (final_scan_insn): Remove old location code.
13773         * diagnostic.c (diagnostic_build_prefix): Remove
13774         USE_MAPPED_LOCATION test.
13775         * tree.h (gimple_stmt) <locus>: Now a location_t.
13776         (tree_exp) <locus>: Likewise.
13777         (DECL_IS_BUILTIN): Remove old-location variant.
13778         (annotate_with_file_line, annotate_with_locus): Likewise.
13779         (expr_locus, set_expr_locus): Update.
13780         * tree.c (build1_stat): Remove old location code.
13781         (last_annotated_node): Remove.
13782         (annotate_with_file_line): Remove old-location variant.
13783         (annotate_with_locus): Likewise.
13784         (expr_location): Remove old location code.
13785         (set_expr_location): Likewise.
13786         (expr_has_location): Likewise.
13787         (expr_locus): Likewise.
13788         (set_expr_locus): Likewise.
13789         (expr_filename): Don't use location_from_locus.
13790         (expr_lineno): Likewise.
13791         * rtl-error.c (location_for_asm): Remove old location code.
13792         * c-lex.c (cb_line_change): Remove old location code.
13793         (fe_file_change): Likewise.
13794         (cb_def_pragma): Likewise.
13795         (c_lex_with_flags): Likewise.
13796         * gengtype.c (do_typedef): Don't special-case location types.
13797         (define_location_structures): Remove.
13798         (main): Don't call define_location_structures.
13799         * tree-pretty-print.c (dump_implicit_edges): Remove old location
13800         code.
13801
13802 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13803
13804         PR 26264
13805         * builtins.def (BUILT_IN_STDARG_START): Remove.
13806         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13807         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13808         * tree-inline.c (inline_forbidden_p_1): Likewise.
13809         
13810 2008-02-26  Richard Guenther  <rguenther@suse.de>
13811
13812         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13813         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13814         (lookup_decl_from_uid): Declare.
13815         (remove_decl_from_map): Likewise.
13816         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13817         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13818         (decl_for_uid_map): New global hashtable mapping DECL_UID
13819         to the decl tree.
13820         (init_ttree): Allocate it.
13821         (insert_decl_to_uid_decl_map): New helper function.
13822         (make_node_stat): Insert new decls into the map.
13823         (copy_node_stat): Likewise.
13824         (lookup_decl_from_uid): New function.
13825         (remove_decl_from_map): Likewise.
13826         (print_decl_for_uid_map_statistics): New helper.
13827         (dump_tree_statistics): Call it.
13828
13829         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13830         (referenced_var_iterator): Adjust.
13831         (FOR_EACH_REFERENCED_VAR): Adjust.
13832         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13833         (num_referenced_vars): Adjust.
13834         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13835         (first_referenced_var): Remove.
13836         (end_referenced_vars_p): Likewise.
13837         (next_referenced_var): Likewise.
13838         (referenced_var_iterator_set): New helper function.
13839         * tree-dfa.c (referenced_var_lookup): Adjust.
13840         (referenced_var_check_and_insert): Likewise.
13841         (remove_referenced_var): Likewise.
13842         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13843         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13844         (verify_call_clobbering): Likewise.
13845         (verify_memory_partitions): Likewise.
13846         (init_tree_ssa): Allocate bitmap instead of hashtable for
13847         referenced_vars.
13848         (delete_tree_ssa): Adjust.
13849         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13850         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13851         (compute_tag_properties): Likewise.
13852         (set_initial_properties): Likewise.
13853         (find_partition_for): Likewise.
13854         (update_reference_counts): Likewise.
13855         (dump_may_aliases_for): Likewise.
13856         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13857         (add_call_clobber_ops): Likewise.
13858         (add_call_read_ops): Likewise.
13859         (get_asm_expr_operands): Likewise.
13860         * tree-into-ssa.c (dump_decl_set): Likewise.
13861         (update_ssa): Likewise.
13862         * tree-sra.c (scan_function): Likewise.
13863         (decide_instantiations): Likewise.
13864         (scalarize_parms): Likewise.
13865         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13866         (dsa_named_for): Likewise.
13867         * tree-ssa-structalias.c (update_alias_info): Likewise.
13868         (merge_smts_into): Likewise.
13869
13870 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13871
13872         PR 34351
13873         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13874         * c-opts.c (c_common_handle_option): Wall enables
13875         Wvolatile-register-var.
13876         * common.opt: Move Wvolatile-register-var to...
13877         * c.opt: ...here.
13878         
13879 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13880
13881         * common.opt (Wlarger-than=): New.
13882         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13883         -Wlarger-than=.
13884         * opts.c (common_handle_option): Handle -Wlarger-than=.
13885         * optc-gen.awk: Likewise.
13886         * opth-gen.awk: Likewise.
13887         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13888         * tree-optimize.c (tree_rest_of_compilation): Likewise.
13889         
13890 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13891
13892         * c-common.c (match_case_to_enum_1): Add appropriate
13893         OPT_W* parameter to warning.
13894         (c_do_switch_warnings): Likewise.
13895         * c-typeck.c (warning_init): Add one more parameter following
13896         'warning' function.
13897         (push_init_level): Update call to warning_init.
13898         (pop_init_level): Likewise.
13899         (add_pending_init): Likewise.
13900         (output_init_element: Likewise.
13901
13902 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13903
13904         PR 28322
13905         * toplev.c (toplev_main): If there are warnings or error, print
13906         errors for ignored options.
13907         * opts.c (ignored_options): New static variable.
13908         (postpone_unknown_option_error): New.
13909         (print_ignored_options): New.
13910         (handle_option): Postpone errors for unknown -Wno-* options.
13911         * opts.h (print_ignored_options): Declare.
13912         
13913 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
13914
13915         * config/mips/mips.md (loadgp_blockage, blockage): Change type
13916         to "ghost".
13917
13918 2008-02-25  Richard Guenther  <rguenther@suse.de>
13919
13920         Revert:
13921         2008-02-25  Richard Guenther  <rguenther@suse.de>
13922
13923         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13924         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13925         (lookup_decl_from_uid): Declare.
13926         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13927         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13928         (decl_for_uid_map): New global hashtable mapping DECL_UID
13929         to the decl tree.
13930         (init_ttree): Allocate it.
13931         (insert_decl_to_uid_decl_map): New helper function.
13932         (make_node_stat): Insert new decls into the map.
13933         (copy_node_stat): Likewise.
13934         (lookup_decl_from_uid): New function.
13935         (print_decl_for_uid_map_statistics): New helper.
13936         (dump_tree_statistics): Call it.
13937
13938         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13939         (referenced_var_iterator): Adjust.
13940         (FOR_EACH_REFERENCED_VAR): Adjust.
13941         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13942         (num_referenced_vars): Adjust.
13943         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13944         (first_referenced_var): Remove.
13945         (end_referenced_vars_p): Likewise.
13946         (next_referenced_var): Likewise.
13947         (referenced_var_iterator_set): New helper function.
13948         * tree-dfa.c (referenced_var_lookup): Adjust.
13949         (referenced_var_check_and_insert): Likewise.
13950         (remove_referenced_var): Likewise.
13951         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13952         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13953         (verify_call_clobbering): Likewise.
13954         (verify_memory_partitions): Likewise.
13955         (init_tree_ssa): Allocate bitmap instead of hashtable for
13956         referenced_vars.
13957         (delete_tree_ssa): Adjust.
13958         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13959         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13960         (compute_tag_properties): Likewise.
13961         (set_initial_properties): Likewise.
13962         (find_partition_for): Likewise.
13963         (update_reference_counts): Likewise.
13964         (dump_may_aliases_for): Likewise.
13965         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13966         (add_call_clobber_ops): Likewise.
13967         (add_call_read_ops): Likewise.
13968         (get_asm_expr_operands): Likewise.
13969         * tree-into-ssa.c (dump_decl_set): Likewise.
13970         (update_ssa): Likewise.
13971         * tree-sra.c (scan_function): Likewise.
13972         (decide_instantiations): Likewise.
13973         (scalarize_parms): Likewise.
13974         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13975         (dsa_named_for): Likewise.
13976         * tree-ssa-structalias.c (update_alias_info): Likewise.
13977         (merge_smts_into): Likewise.
13978
13979 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
13980
13981         PR fortran/29549
13982         * doc/invoke.texi (-fcx-limited-range): Document new option.
13983         * toplev.c (process_options): Handle -fcx-fortran-rules.
13984         * common.opt: Add documentation for -fcx-fortran-rules.
13985
13986 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
13987
13988         PR c/35162
13989         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13990         actual behaviour and C99.
13991         
13992 2008-02-26  Ben Elliston  <bje@au.ibm.com>
13993
13994         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13995         (ASM_CPU_POWER6_SPEC): Likewise.
13996         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13997         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13998         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13999
14000 2008-02-25  Richard Guenther  <rguenther@suse.de>
14001
14002         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14003         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14004         (lookup_decl_from_uid): Declare.
14005         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14006         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14007         (decl_for_uid_map): New global hashtable mapping DECL_UID
14008         to the decl tree.
14009         (init_ttree): Allocate it.
14010         (insert_decl_to_uid_decl_map): New helper function.
14011         (make_node_stat): Insert new decls into the map.
14012         (copy_node_stat): Likewise.
14013         (lookup_decl_from_uid): New function.
14014         (print_decl_for_uid_map_statistics): New helper.
14015         (dump_tree_statistics): Call it.
14016
14017         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14018         (referenced_var_iterator): Adjust.
14019         (FOR_EACH_REFERENCED_VAR): Adjust.
14020         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14021         (num_referenced_vars): Adjust.
14022         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14023         (first_referenced_var): Remove.
14024         (end_referenced_vars_p): Likewise.
14025         (next_referenced_var): Likewise.
14026         (referenced_var_iterator_set): New helper function.
14027         * tree-dfa.c (referenced_var_lookup): Adjust.
14028         (referenced_var_check_and_insert): Likewise.
14029         (remove_referenced_var): Likewise.
14030         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14031         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14032         (verify_call_clobbering): Likewise.
14033         (verify_memory_partitions): Likewise.
14034         (init_tree_ssa): Allocate bitmap instead of hashtable for
14035         referenced_vars.
14036         (delete_tree_ssa): Adjust.
14037         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14038         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14039         (compute_tag_properties): Likewise.
14040         (set_initial_properties): Likewise.
14041         (find_partition_for): Likewise.
14042         (update_reference_counts): Likewise.
14043         (dump_may_aliases_for): Likewise.
14044         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14045         (add_call_clobber_ops): Likewise.
14046         (add_call_read_ops): Likewise.
14047         (get_asm_expr_operands): Likewise.
14048         * tree-into-ssa.c (dump_decl_set): Likewise.
14049         (update_ssa): Likewise.
14050         * tree-sra.c (scan_function): Likewise.
14051         (decide_instantiations): Likewise.
14052         (scalarize_parms): Likewise.
14053         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14054         (dsa_named_for): Likewise.
14055         * tree-ssa-structalias.c (update_alias_info): Likewise.
14056         (merge_smts_into): Likewise.
14057
14058 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14059
14060         PR target/35258
14061         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14062         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14063         * alias.h (nonoverlapping_memrefs_p): Likewise.
14064
14065 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14066
14067         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14068         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14069         __emultls_get_address, __emultls_register_common,
14070         __floatundi?f, and _Unwind_GetIPInfo.
14071         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14072         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14073         (gen_regparm_prefix): Likewise.
14074         (i386_nlm_encode_section_info): Sync with
14075         config/i386/winnt.c:i386_pe_encode_section_info().
14076         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14077         i386_nlm_mangle_decl_assembler_name): New.
14078         (netware_override_options): New.
14079         * config/i386/netware.h (netware_override_options): Declare.
14080         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14081         (i386_nlm_mangle_decl_assembler_name): Declare.
14082         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14083
14084 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14085
14086         PR other/32948
14087         * c-decl.c (grokdeclarator): Remove unused local variables
14088         `typedef_type' and `type_as_written'.
14089         * bb-reorder.c
14090         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14091         unused local variable `has_hot_blocks'.
14092         (fix_crossing_conditional_branches): Remove unused local variable
14093         `prev_bb'.
14094         
14095 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14096
14097         PR middle-end/19984
14098         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14099         using DEF_C99_BUILTIN.
14100         (BUILT_IN_NANF): Ditto.
14101         (BUILT_IN_NANL): Ditto.
14102
14103 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14104             Revital Eres  <eres@il.ibm.com>
14105
14106         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14107         regarding the order of two dependent insns in the same row.
14108
14109 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14110
14111         * stor-layout.c (layout_decl): Do not bump the alignment of a
14112         bit-field to more than byte alignment if it is packed.
14113
14114 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14115
14116         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14117         e300c2 and e300c3.
14118
14119 2008-02-24  Diego Novillo  <dnovillo@google.com>
14120
14121         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14122
14123         PR 33738
14124         * tree-vrp.c (vrp_evaluate_conditional): With
14125         -Wtype-limits, emit a warning when comparing against a
14126         constant outside the natural range of OP0's type.
14127         * c.opt (Wtype-limits): Move ...
14128         * common.opt (Wtype-limits): ... here.
14129
14130 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14131
14132         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14133         * config/rs6000/e300c2c3.md: New file.
14134         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14135         e300c2 and e300c3.
14136         (rs6000_override_options): Add e300c2 and e300c3 cases to
14137         processor_target_table. Do not allow usage of Altivec or Spe
14138         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14139         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14140         * config/rs6000/rs6000.h (processor_type): Add
14141         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14142         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14143         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14144         and ppce300c3. Include e300c2c3.md.
14145
14146 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14147
14148         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14149         instead of TARGET_STRICT_ALIGN.
14150
14151 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14152
14153         * explow.c (memory_address): Assert that the generated address is
14154         valid.
14155
14156 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14157
14158         PR target/25477
14159         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14160         * config/darwin-ppc-ldouble-patch.def: New file.
14161         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14162         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14163         SUBTARGET_INIT_BUILTINS if defined.
14164         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14165         New functions.
14166
14167 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14168
14169         PR rtl-opt/33512
14170         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14171         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14172
14173 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14174
14175         PR pch/35027
14176         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14177         file" warning condtional on -Winvalid-PCH.
14178
14179 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14180
14181         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14182
14183 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14184
14185         PR target/22076
14186         PR target/34256 
14187         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14188         prevent reload from using MMX registers.
14189         (*mov<mode>_internal): Ditto.
14190         (*movv2sf_internal_rex64): Ditto.
14191         (*movv2sf_internal): Ditto.
14192
14193 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14194
14195         PR documentation/31569
14196         * doc/install.texi2html: Use makeinfo --no-number-sections.
14197
14198 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14199
14200         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14201         ensure that we can address an entire entity > 8 bytes.  Don't
14202         generate reg+reg addressing for such data.
14203
14204 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14205
14206         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14207         strings when optimizing for size, unless the target cares about
14208         alignment.
14209
14210 2008-02-22  Tom Tromey  <tromey@redhat.com>
14211
14212         * regclass.c (current_pass): Remove declaration.
14213
14214 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14215
14216         * config/avr/libgcc.S (__RAMPZ__): Define.
14217         (__do_copy_data): Add for devices with 128KB code memory.
14218
14219 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14220
14221         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14222         Use spe_abi.
14223         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14224
14225 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14226
14227         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14228         GENNONACR_REGS.
14229
14230 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14231
14232         PR c/19999
14233         * c-typeck.c (build_binary_op): Warn about floating point
14234         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14235
14236 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14237
14238         PR target/34526
14239         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14240         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14241         add vrsave.
14242         (rs6000_override_options): Set altivec_abi as default, not override,
14243         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14244         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14245         is used; use new member spe_abi.
14246         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14247         spe_abi and altivec_abi.
14248
14249 2008-02-22  Tomas Bily  <tbily@suse.cz>
14250
14251         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14252
14253 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14254
14255         PR bootstrap/35273
14256         * config.build (build_file_translate): Set to `CMD //c' only if
14257         it works.
14258         * Makefile.in (build_file_translate): Improve comment.
14259
14260 2008-02-21  Jan Hubicka  <jh@suse.cz>
14261
14262         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14263         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14264         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14265
14266 2008-02-21  Michael Matz  <matz@suse.de>
14267
14268         PR target/35264
14269         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14270
14271 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14272
14273         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14274         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14275         as insn constraint.
14276         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14277         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14278         SSE_VEC_FLOAT_MODE_P as insn constraint.
14279         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14280         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14281         sse4a_movntdf using MODEF mode iterator.
14282         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14283         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14284         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14285         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14286         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14287         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14288         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14289
14290 2008-02-21  Richard Guenther  <rguenther@suse.de>
14291
14292         * tree.def (PAREN_EXPR): New tree code.
14293         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14294         and PAREN_EXPR.
14295         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14296         * expr.c (expand_expr_real_1): Likewise.
14297         * tree-inline.c (estimate_num_insns_1): Likewise.
14298         * tree-complex.c (expand_complex_move): Likewise.
14299         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14300         as plain x.
14301
14302 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14303
14304         PR target/35225
14305         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14306
14307 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14308
14309         PR target/35190
14310         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14311
14312         * config/sh/sh.c (find_barrier): Don't go past
14313         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14314
14315 2008-02-20  DJ Delorie  <dj@redhat.com>
14316
14317         * config/h8300/h8300.md (insv): Force source operand to be a register.
14318
14319         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14320         as a jump, not as a plain insn.
14321         
14322 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14323
14324         * doc/invoke.texi (Warning Options): Add new option
14325         -Wframe-larger-than=.
14326         (-Wframe-larger-than): Document.
14327
14328         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14329         Add declarations for new option variables.
14330
14331         * final.c (final_start_function): Check the frame size
14332         before emission and issue a Wframe-larger-than warning.
14333
14334         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14335         Add definitions for new option variables.
14336         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14337
14338         * common.opt (Wframe-larger-than=): New option.
14339
14340 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14341
14342         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14343         (<sse>_div<mode>3): Ditto.
14344         (<sse>_vmdiv<mode>3): Ditto.
14345         (<sse>_vmsqrt<mode>2): Ditto.
14346         (*smax<mode>3): Ditto.
14347         (sse5_frcz<mode>2): Ditto.
14348         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14349         as insn constraint.
14350
14351 2008-02-20  Richard Guenther  <rguenther@suse.de>
14352
14353         PR middle-end/35265
14354         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14355         be happy with INTEGRAL_TYPE_P.
14356
14357 2008-02-20  Richard Guenther  <rguenther@suse.de>
14358
14359         * fold-const.c (split_tree): Associate floatig-point expressions
14360         if flag_associative_math is set.
14361
14362 2008-02-20  Richard Guenther  <rguenther@suse.de>
14363
14364         * tree.h (fold_real_zero_addition_p): Declare.
14365         * fold-const.c (fold_real_zero_addition_p): Export.
14366         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14367         floating-point operations with zero and one.
14368
14369 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14370
14371         * doc/install.texi: Correct references to CFLAGS, replacing them
14372         with BOOT_CFLAGS.  Document flags used during bootstrap for
14373         target libraries.
14374                                 
14375 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14376
14377         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14378         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14379         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14380         insn constraint.
14381         (smin<mode>3): Ditto from similar patterns.
14382         (smax<mode>3): Ditto.
14383         (*ieee_smin<mode>3): Ditto.
14384         (*ieee_smax<mode>3): Ditto.
14385         * config/i386/sse.md (sse): New mode attribute.
14386         (mov<mode>): Macroize expander from movv4sf and movv2df using
14387         SSEMODEF2P mode iterator.
14388         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14389         SSE_VEC_FLOAT_MODE_P as insn constraint.
14390         (storent<mode>): Ditto.
14391         (storent<mode>): Macroize expander from storentsf and storentdf using
14392         MODEF mode iterator.
14393         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14394         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14395         (abs<mode>2): Ditto from similar patterns.
14396         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14397         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14398         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14399         (<sse>_vmsqrt<mode>2): Ditto.
14400         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14401         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14402         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14403         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14404         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14405         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14406         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14407         insn constraint.
14408         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14409         iterator and SSE_FLOAT_MODE_P as insn constraint.
14410         (<sse>_ucomi): Ditto from similar patterns.
14411         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14412         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14413         SSE_VEC_FLOAT_MODE_P as insn constraint.
14414         (vcond<mode>): Ditto from similar patterns.
14415         (and<mode>3, *and<mode>3): Ditto.
14416         (<sse>_nand<mode>3): Ditto.
14417         (ior<mode>3, *ior<mode>3): Ditto.
14418         (xor<mode>3, *xor<mode>3): Ditto.
14419         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14420         iterator and SSE_FLOAT_MODE_P as insn constraint.
14421         (*nand<mode>3): Ditto from similar patterns.
14422         (*ior<mode>3): Ditto.
14423         (*xor<mode>3): Ditto.
14424
14425 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14426
14427         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14428         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14429         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14430
14431 2008-02-19  Jan Hubicka  <jh@suse.cz>
14432
14433         * predict.c (tree_bb_level_predictions): Remove variable next
14434         mistakely introduced by previous commit.
14435
14436 2008-02-19  Jan Hubicka  <jh@suse.cz>
14437
14438         * predict.c (predict_paths_leading_to): Rewrite.
14439         (predict_paths_for_bb): New.
14440         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14441
14442 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14443
14444         PR bootstrap/35218
14445         * Makefile.in (build_file_translate): New.
14446         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14447         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14448         * configure.ac (build_file_translate): Substitute it.
14449         * configure: Regenerate.
14450
14451 2008-02-19  Jan Hubicka  <jh@suse.cz>
14452
14453         PR rtl-optimization/34408
14454         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14455         invalid sharing.
14456
14457 2008-02-19  Jan Hubicka  <jh@suse.cz>
14458
14459         PR middle-end/28779
14460         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14461         call_expr.
14462
14463 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14464
14465         PR Ada/35186
14466         * config/i386/i386-modes.def: Revert the last DI alignment
14467         change until Ada people can look into it.
14468
14469 2008-02-19  Nick Clifton  <nickc@redhat.com>
14470
14471         * opts.c (print_specific_help): Fix typo in --help text.
14472
14473 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14474
14475         PR target/35239
14476         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14477         32-bit inline asm without asm alternatives for host GCC < 3.0.
14478
14479 2008-02-19  Richard Guenther  <rguenther@suse.de>
14480
14481         PR tree-optimization/34989
14482         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14483         Allow propagation to INDIRECT_REF if we can simplify only.
14484
14485 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14486
14487         * c-common.c (warn_for_collisions_1): Use appropriate option when
14488         warning.
14489
14490 2008-02-19  Nick Clifton  <nickc@redhat.com>
14491
14492         PR other/31349
14493         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14494         (handle_options): Fix indentation.
14495         (print_filtered_help): If no language-specific options were
14496         displayed tell the user how to list all the options supported by
14497         the language's front-end.
14498         (print_specific_help): Fix indentation and remove duplicate line.
14499         (common_handle_option): Handle the -v option.
14500         For --help enable the display of undocumented options if the -v
14501         switch has been included on the command line.
14502         For --help= check for overlaps in the arguments between the option
14503         classes and the language names and issue a warning when they
14504         cannot be disambiguated.
14505         * c.opt (v): Pass on to the common option handler.
14506
14507 2008-02-19  Revital Eres  <eres@il.ibm.com> 
14508
14509         * modulo-sched.c (sms_schedule): Change dump message when
14510         create_ddg function fails.
14511         (try_scheduling_node_in_cycle): Rename row to cycle.
14512         (print_partial_schedule): Rename CYCLE to ROW.
14513
14514 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14515             Zdenek Dvorak  <ook@ucw.cz>
14516
14517         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14518
14519 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14520
14521         PR target/33555
14522         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14523         (*x86_movdicc_0_m1_se): Ditto.
14524
14525 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14526
14527         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14528         (CMPtype): Define as __gcc_CMPtype.
14529         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14530         (CMPtype): Define as __gcc_CMPtype.
14531
14532 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14533
14534         Support valgrind 3.3 for --enable-checking=valgrind.
14535         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14536         here.
14537         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14538         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14539         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14540         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14541         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14542         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14543         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14544         respectively.
14545         * ggc-zone.c: Similar.
14546         * ggc-page.c: Similar.
14547
14548 2008-02-19  Paul Brook  <paul@codesourcery.com>
14549
14550         PR target/35071
14551         * config/arm/ieee754-df.S: Fix do_it typo.
14552         * config/arm/ieee754-sf.S: Fix do_it typo.
14553
14554 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14555
14556         PR target/35189
14557         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14558         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14559         (OPTION_MASK_ISA_SSE_SET): Likewise.
14560         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14561         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14562         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14563         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14564         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14565         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14566         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14567         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14568         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14569         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14570         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14571         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14572         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14573         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14574         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14575         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14576         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14577         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14578         (OPTION_MASK_ISA_SSE4): Removed.
14579         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14580         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14581         (override_options): Don't turn on implied SSE/MMX bits in
14582         ix86_isa_flags.
14583
14584 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14585
14586         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14587         32bit host.
14588
14589 2008-02-18  Joey Ye  <joey.ye@intel.com>
14590
14591         PR middle-end/34921
14592         * tree-nested.c (insert_field_into_struct): Set type alignment
14593         to field alignment if the former is less than the latter.
14594
14595 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14596
14597         * BASE-VER: Set to 4.4.0.
14598
14599 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14600
14601         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14602         * doc/cfg.texi: Likewise.
14603         * doc/extend.texi: Likewise.
14604         * doc/gty.texi: Likewise.
14605         * doc/invoke.texi: Likewise.
14606         * doc/loop.texi: Likewise.
14607         * doc/md.texi: Likewise.
14608         * doc/passes.texi: Likewise.
14609         * doc/rtl.texi: Likewise.
14610         * doc/sourcebuild.texi: Likewise.
14611         * doc/tm.texi: Likewise.
14612         * doc/tree-ssa.texi: Likewise.
14613
14614 2008-02-17  Richard Guenther  <rguenther@suse.de>
14615
14616         PR middle-end/35227
14617         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14618         without default definition.
14619
14620 2008-02-17  Richard Guenther  <rguenther@suse.de>
14621
14622         PR tree-optimization/35231
14623         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14624         if A | B != 1.
14625
14626 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14627
14628         Revert:
14629         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
14630         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14631         libgcc_cmp_return mode.
14632
14633 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14634
14635         PR c/28368
14636         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14637
14638 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14639
14640         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14641         multilibs.
14642
14643 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14644
14645         * doc/c-tree.texi: Use `@.' where appropriate.
14646         * doc/extend.texi: Likewise.
14647         * doc/install.texi: Likewise.
14648         * doc/invoke.texi: Likewise.
14649         * doc/loop.texi: Likewise.
14650         * doc/makefile.texi: Likewise.
14651         * doc/md.texi: Likewise.
14652         * doc/passes.texi: Likewise.
14653         * doc/standards.texi: Likewise.
14654         * doc/tm.texi: Likewise.
14655
14656 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14657
14658         PR middle-end/35196
14659         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14660         in entry_bb.
14661         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14662         rather than in entry_bb.
14663
14664 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14665
14666         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14667         libgcc_cmp_return mode.
14668
14669 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14670
14671         PR middle-end/35130
14672         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14673         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14674
14675 2008-02-15  Richard Guenther  <rguenther@suse.de>
14676             Zdenek Dvorak  <ook@ucw.cz>
14677
14678         PR tree-optimization/35164
14679         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14680         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14681         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14682         Only propagate addresses which do not have abnormal SSA_NAMEs
14683         in their operands.
14684
14685 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
14686
14687         PR target/35088
14688         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14689
14690 2008-02-15  Jan Hubicka  <jh@suse.cz>
14691
14692         PR middle-end/35149
14693         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14694
14695 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14696
14697         PR middle-end/34621
14698         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14699         when calculating alignment_pad.
14700
14701 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14702
14703         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14704         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14705         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14706         and STACK_BOUNDARY define.
14707
14708 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
14709
14710         PR preprocessor/35061
14711         * c-pragma.c (handle_pragma_pop_macro): Check that
14712         pushed_macro_table has been allocated.
14713
14714 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14715
14716         PR middle-end/35136
14717         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14718         (force_gimple_operand): Likewise.
14719         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14720         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14721         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14722         (find_interesting_uses_address): Check addressability and alignment
14723         of the base expression only after substituting bases of IVs into it.
14724
14725 2008-02-14  Michael Matz  <matz@suse.de>
14726
14727         PR target/34930
14728         * function.c (instantiate_virtual_regs_in_insn): Reload address
14729         before falling back to reloading the whole operand.
14730
14731 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
14732
14733         * config/s390/s390.c (s390_mainpool_start): Emit the pool
14734         before the first section switch note.
14735
14736 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14737
14738         * doc/bugreport.texi: Update copyright years.
14739         * doc/c-tree.texi: Likewise.
14740         * doc/cfg.texi: Likewise.
14741         * doc/cpp.texi: Likewise.
14742         * doc/cppinternals.texi: Likewise.
14743         * doc/fragments.texi: Likewise.
14744         * doc/frontends.texi: Likewise.
14745         * doc/gcc.texi: Likewise.
14746         * doc/gty.texi: Likewise.
14747         * doc/hostconfig.texi: Likewise.
14748         * doc/implement-c.texi: Likewise.
14749         * doc/libgcc.texi: Likewise.
14750         * doc/loop.texi: Likewise.
14751         * doc/makefile.texi: Likewise.
14752         * doc/options.texi: Likewise.
14753         * doc/passes.texi: Likewise.
14754         * doc/rtl.texi: Likewise.
14755         * doc/sourcebuild.texi: Likewise.
14756         * doc/standards.texi: Likewise.
14757         * doc/tree-ssa.texi: Likewise.
14758         * doc/trouble.texi: Likewise.
14759
14760         * doc/extend.texi: Use @: or add comma where appropriate.
14761         * doc/invoke.texi: Likewise.
14762         * doc/tm.texi: Likewise.
14763
14764 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
14765
14766         PR target/34393
14767         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14768         to a reg.
14769
14770 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
14771
14772         * doc/md.texi (clz, ctz): Add reference.
14773         * doc/rtl.texi (clz, ctz): Likewise.
14774
14775 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14776
14777         PR other/35148
14778         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14779         srcdir.
14780
14781 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
14782
14783         * config/s390/s390.c (struct constant_pool): New field
14784         emit_pool_after added.
14785         (s390_mainpool_start): Set the emit_pool_after flag according
14786         to the section switch notes.
14787         (s390_mainpool_finish): Consider emit_pool_after when emitting
14788         the literal pool at the end of the function.
14789         (s390_chunkify_start): Force literal pool splits at section
14790         switch notes.
14791
14792 2008-02-13  Michael Matz  <matz@suse.de>
14793
14794         PR debug/35065
14795         * var-tracking.c (clobber_variable_part): Correctly traverse the
14796         list.
14797
14798 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14799
14800         PR 29673
14801         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14802         Add -fdump-ipa-inline.
14803         * tree-dump.c (dump_files): Remove tree-inlined dump.
14804         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14805         
14806 2008-02-12  Richard Guenther  <rguenther@suse.de>
14807
14808         PR tree-optimization/35171
14809         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14810         default defs.
14811
14812 2008-02-12  Richard Guenther  <rguenther@suse.de>
14813
14814         PR middle-end/35163
14815         * fold-const.c (fold_widened_comparison): Use get_unwidened in
14816         value-preserving mode.  Disallow final truncation.
14817
14818 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14819
14820         PR middle-end/35136
14821         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14822         code from here to...
14823         (force_gimple_operand): ...here.
14824
14825 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
14826
14827         PR c++/35144
14828         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14829         non-compatible pointers.
14830         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14831         different FIELD_DECLs, try harder by comparing field offsets, sizes
14832         and types.
14833
14834         PR inline-asm/35160
14835         * function.c (match_asm_constraints_1): Don't replace the same input
14836         multiple times.
14837
14838 2008-02-12  Anatoly Sokolov <aesok@post.ru>
14839
14840         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14841         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14842         (expand_epilogue): Restore RAMPZ register.
14843         * config/avr/avr.md (RAMPZ_ADDR): New constant.
14844
14845 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
14846
14847         * config/i386/cygwin.asm: (__alloca): Correct calling
14848         convention and alignment.
14849         (__chkstk): Force 8 byte stack alignment.
14850
14851 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
14852             Richard Guenther  <rguenther@suse.de>
14853
14854         PR tree-optimization/33992
14855         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14856         the zero we compare against.
14857
14858 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
14859
14860         PR libfortran/35063
14861         * gthr-win32.h (__gthread_mutex_destroy_function): New function
14862         to CloseHandle after unlocking to prevent accumulation of handle
14863         count.
14864
14865 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14866
14867         PR middle_end/34150
14868         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14869         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
14870         and update LABEL_NUSES during and after reload.
14871
14872 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
14873
14874         PR middle-end/34627
14875         * combine.c (simplify_if_then_else): Make sure the comparison is
14876         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14877
14878 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14879
14880         PR bootstrap/35051
14881         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14882         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14883         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14884         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14885         * tree.h (get_type_static_bounds): Likewise.
14886
14887 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14888
14889         * doc/invoke.texi (Option Summary, C++ Dialect Options)
14890         (Objective-C and Objective-C++ Dialect Options, Warning Options):
14891         Make -Wfoo language annotations match what the compiler outputs.
14892
14893 2008-02-08  Sa Liu  <saliu@de.ibm.com>
14894
14895         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
14896         intrinsics spu_convts, spu_convtu, spu_convtf.
14897
14898 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
14899
14900         * doc/extend.texi (Function Attributes) <noinline>: Mention
14901         asm ("") as method to keep calls.
14902
14903 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14904
14905         PR other/32754
14906         * doc/options.texi (Options): Replace references to opts.sh with
14907         optc-gen.awk.
14908         * opts-common.c: Likewise.
14909         * optc-gen.awk: Likewise.
14910         
14911 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
14912
14913         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14914
14915 2008-02-07  Richard Henderson  <rth@redhat.com>
14916
14917         PR rtl-opt/33410
14918         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14919         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
14920         funny mode.
14921
14922 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
14923
14924         PR tree-optimization/35085
14925         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14926         for operand entry oe2 in addition to operand entry oe3 in order to
14927         expose more opportunities for vectorizer sum reduction.
14928
14929 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14930
14931         PR other/35107
14932         * Makefile.in (LIBS): Remove $(GMPLIBS).
14933         (cc1-dummy, cc1): Add $(GMPLIBS).
14934
14935 2008-02-06  Jan Hubicka  <jh@suse.cz>
14936
14937         PR target/23322
14938         * i386.md (moddf_integer): Do not produce partial memory stalls for
14939         targets where it hurts.
14940
14941 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
14942
14943         PR target/35083
14944         * optabs.c (expand_float): Do not check for decimal modes when
14945         expanding unsigned integer through signed conversion.
14946
14947 2008-02-06  Nick Clifton  <nickc@redhat.com>
14948
14949         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14950         inside the clobber with a match_operand and duplicated operand
14951         number in the constraint.
14952         (ineqbranchsi): Delete redundant comment.
14953
14954 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
14955
14956         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
14957         builtin_define ("__USE_INIT_FINI__").
14958         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14959         -msx multilibs.
14960         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14961
14962 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14963
14964         PR documentation/30330
14965         * doc/invoke.texi (C++ Dialect Options)
14966         (Objective-C and Objective-C++ Dialect Options, Warning Options):
14967         For each warning option -Wfoo that allows -Wno-foo, ensure both
14968         -Wfoo and -Wno-foo are listed in the option index.  Fix index
14969         entry of -Wswitch-default, index -Wnormalized= including the
14970         `=', and -Wlarger-than-@var{len} including @var{len}.
14971
14972 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
14973
14974         * config/i386/i386.md (floatunssisf2): Use
14975         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14976         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14977         Macroize expander using MODEF mode iterator.
14978
14979 2008-02-05  Diego Novillo  <dnovillo@google.com>
14980
14981         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14982
14983         PR 33738
14984         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14985
14986 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14987
14988         PR other/35070
14989         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14990
14991 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
14992
14993         PR target/35084
14994         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14995         to indicate if a message should be generated.
14996         (init_cumulative_args): Updated.
14997         (function_value_32): Likewise.
14998
14999 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15000
15001         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15002
15003 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15004
15005         PR target/35083
15006         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15007         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15008
15009 2008-02-04  Diego Novillo  <dnovillo@google.com>
15010
15011         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15012
15013         PR 33738
15014         * tree-vrp.c (vrp_evaluate_conditional): With
15015         -Wtype-limits, emit a warning when comparing against a
15016         constant outside the natural range of OP0's type.
15017
15018 2008-02-04  Richard Guenther  <rguenther@suse.de>
15019
15020         PR middle-end/33631
15021         * expr.c (count_type_elements): Give for unions instead of
15022         guessing.
15023
15024 2008-02-04  Richard Guenther  <rguenther@suse.de>
15025
15026         PR middle-end/35043
15027         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15028         to TYPE_DOMAINs base type instead of using bitsizetype here.
15029
15030 2008-02-03  Jason Merrill  <jason@redhat.com>
15031
15032         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15033
15034 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15035
15036         PR other/29972
15037         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15038         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15039         (RS/6000 and PowerPC Options): Fix typos and markup.
15040         * doc/passes.texi (Tree-SSA passes): Likewise.
15041
15042 2008-02-02  Michael Matz  <matz@suse.de>
15043
15044         PR target/35045
15045         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15046         from record_last_reg_set_info.
15047         (record_last_reg_set_info): Take an RTX argument, iterate over all
15048         constituent hardregs.
15049         (record_last_set_info, record_opr_changes): Change calls to
15050         new signature or to record_last_reg_set_info_regno.
15051
15052 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15053
15054         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15055
15056 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15057
15058         PR rtl-optimization/34773
15059         * reg-notes.def (EQUAL): Mention significance of combination of
15060         REG_EQUAL and REG_RETVAL.
15061         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15062         insn that has a REG_RETVAL.
15063
15064 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15065
15066         PR bootstrap/33781
15067         * configure.ac (--enable-fixed-point): Disable unless explicitly
15068         requested on IRIX.
15069         * configure: Regenerate.
15070
15071 2008-02-01  Richard Guenther  <rguenther@suse.de>
15072
15073         PR other/35042
15074         * invoke.texi (-finline-limit): Remove no longer true parts
15075         of the documentation.  Note that there is no default value.
15076
15077 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15078             Mark Mitchell  <mark@codesourcery.com>
15079             Ben Elliston  <bje@au.ibm.com>
15080
15081         PR c/29326
15082         * doc/extend.texi (Other Builtins): Document.
15083
15084 2008-01-31  Tom Browder <tom.browder@gmail.com>
15085
15086         * doc/c-tree.texi (Types): Fix grammar.
15087         (Expression trees): Ditto.
15088         * doc/passes.texi (Tree-SSA passes): Ditto.
15089         
15090         * doc/configterms.texi (Configure Terms): Fix typo.
15091         * doc/cpp.texi (Common Predefined Macros): Ditto.
15092         * doc/md.texi (Machine Constraints): Ditto.
15093         
15094         * doc/makefile.texi (Makefile): Add comma.
15095
15096 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15097             Gerald Pfeifer  <gerald@pfeifer.com>
15098         
15099         * doc/sourcebuild.texi (Front End): Remove references to CVS
15100         and CVSROOT/modules.
15101         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15102         (Back End): Remove reference to CVS.
15103
15104 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15105
15106         PR target/34900
15107         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15108         comment from...
15109         (mips16_gp_pseudo_reg): ...here.
15110         * config/mips/mips.md (load_const_gp): Replace with...
15111         (load_const_gp_<mode>): ...this :P-based insn.
15112
15113 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15114
15115         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15116         options. Minor fixes.
15117         (-std): Move reference to standards closer to where language
15118         standards are first mentioned.
15119         
15120 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15121
15122         PR rtl-optimization/34995
15123         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15124         parameter and return a bool.  If the rtx parameter is nonnull,
15125         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15126         (find_reloads): Update call accordingly.  Pass the new operand
15127         if it needed no address reloads, otherwise pass null.
15128
15129 2008-01-30  Richard Henderson  <rth@redhat.com>
15130
15131         PR c/34993
15132         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15133         for unbounded arrays.
15134
15135 2008-01-30  Silvius Rus  <rus@google.com>
15136
15137         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15138
15139 2008-01-30  Jan Hubicka  <jh@suse.cz>
15140
15141         PR target/34982
15142         * i386.c (init_cumulative_args): Use real function declaration when
15143         calling locally.
15144
15145 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15146
15147         PR rtl-optimization/34998
15148         * global.c (build_insn_chain): Treat non-subreg_lowpart
15149         SUBREGs of pseudos as clobbering all the words covered by the
15150         SUBREG, not just all the bytes.
15151         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15152         original df_ref rather than an extract parameter.
15153         (global_conflicts): Update call accordingly.
15154
15155 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15156
15157         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15158         the overflow check to make it easier to read.
15159         (__fixtfdi): Change the type of the ll member in union
15160         long_double to UDItype_x.
15161
15162 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15163
15164         PR middle-end/34969
15165         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15166         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15167         * tree-inline.c (fold_marked_statements): Call
15168         cgraph_update_edges_for_call_stmt if folding a call statement.
15169         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15170         debug_generic_stmt calls, reset it back afterwards.
15171
15172         PR c/35017
15173         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15174         static decls.
15175         * c-typeck.c (build_external_ref): Don't pedwarn about
15176         static vars in current function's scope.
15177
15178 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15179
15180         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15181
15182 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15183
15184         PR c/35002
15185         * ipa-struct-reorg.c: Fix spelling.
15186         * params.def: Ditto.
15187
15188 2008-01-29  Richard Guenther  <rguenther@suse.de>
15189
15190         PR middle-end/35006
15191         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15192         field.
15193         * tree-inline.c (remap_type): Increment remapping_type_depth
15194         around remapping types.
15195         (copy_body_r): Only add referenced variables if they are referenced
15196         from code, not types.
15197
15198 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15199
15200         PR c++/34055
15201         PR c++/34103
15202         PR c++/34219
15203         PR c++/34606
15204         PR c++/34753
15205         PR c++/34754
15206         PR c++/34755
15207         PR c++/34919
15208         PR c++/34961
15209         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15210         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15211
15212 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15213
15214         PR target/34412
15215         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
15216         pointer for tiny stack.
15217
15218 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15219
15220         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15221
15222 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15223
15224         * config/vx-common.h: Fix typo in comment.
15225
15226 2008-01-28  Ian Lance Taylor  <iant@google.com>
15227
15228         PR c++/34862
15229         PR c++/33407
15230         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15231         coalesce pointers if they have different DECL_NO_TBAA_P values.
15232         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15233         between variables with different DECL_NO_TBAA_P values.
15234
15235 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15236
15237         PR 31535
15238         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15239         are not legitimate small data references on SPE targets.
15240
15241 2008-01-28  David Daney  <ddaney@avtrex.com>
15242
15243         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15244
15245 2008-01-28  David Daney  <ddaney@avtrex.com>
15246
15247         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15248
15249 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15250
15251         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15252         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15253         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15254         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15255         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15256         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15257         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15258         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15259
15260 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15261
15262         * basic-block.h (condjump_equiv_p): Fix comment.
15263
15264 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15265
15266         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15267         print_generic_stmt_indented): Fix comment.
15268
15269 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15270
15271         * configure.ac (__stack_chk_fail): Add detecion for availability
15272         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15273         * configure: Regenerate.
15274
15275 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15276
15277         PR middle-end/34688
15278         * final.c (output_addr_const): Handle TRUNCATE.
15279
15280 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15281
15282         PR target/34711
15283         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15284         (zero_cost, infinite_cost): New constants.
15285         (struct cost_pair): Change type of cost to comp_cost.
15286         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15287         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15288         New functions.
15289         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15290         split_address_cost, ptr_difference_cost, difference_cost,
15291         get_computation_cost_at, get_computation_cost,
15292         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15293         determine_use_iv_cost_condition, determine_use_iv_costs,
15294         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15295         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15296         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15297         Change type of cost to comp_cost.
15298         (determine_iv_cost): Increase cost of non-original ivs, instead
15299         of decreasing the cost of original ones.
15300         (get_address_cost): Indicate the complexity of the addressing mode 
15301         in comp_cost.
15302         (try_add_cand_for): Prefer using ivs not specific to some object.
15303         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15304
15305 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15306             Janis Johnson  <janis187@us.ibm.com>
15307
15308         PR target/34814
15309         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15310         (TARGET_INSTANTIATE_DECLS): Likewise.
15311         * target.h (expand_to_rtl_hook): New target hook.
15312         (instantiate_decls): Likewise.
15313         * function.c (instantiate_decl): Make non-static.  Rename to...
15314         (instantiate_decl_rtl): ... this.
15315         (instantiate_expr): Use instantiate_decl_rtl.
15316         (instantiate_decls_1): Likewise.
15317         (instantiate_decls): Likewise.
15318         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15319         * function.h (instantiate_decl_rtl): Add prototype.
15320         * cfgexpand.c (target.h): New include.
15321         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15322         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15323         (TARGET_INSTANTIATE_DECLS): Likewise.
15324         (TARGET_INITIALIZER): New target hooks added.
15325         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15326         New prototype.
15327         * config/rs6000/rs6000.c (tree-flow.h): New include.
15328         (machine_function): Add sdmode_stack_slot field.
15329         (rs6000_alloc_sdmode_stack_slot): New function.
15330         (rs6000_instantiate_decls): Likewise.
15331         (rs6000_secondary_memory_needed_rtx): Likewise.
15332         (rs6000_check_sdmode): Likewise.
15333         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15334         (TARGET_INSTANTIATE_DECLS): Likewise.
15335         (rs6000_hard_regno_mode_ok): Allow SDmode.
15336         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15337         (rs6000_emit_move): Handle SDmode.
15338         (function_arg_advance): Likewise.
15339         (function_arg): Likewise.
15340         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15341         SDmode var args for 32-bit compiles.
15342         (rs6000_secondary_reload_class): Handle SDmode.
15343         (rs6000_output_function_epilogue): Likewise.
15344         (rs6000_function_value): Simplify if statement.
15345         (rs6000_libcall_value): Likewise.
15346         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15347         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15348         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15349         (movsd_hardfloat): New define_insn.
15350         (movsd_softfloat): Likewise.
15351         (movsd_store): Likewise.
15352         (movsd_load): Likewise.
15353         (extendsddd2): Likewise.
15354         (extendsdtd2): Likewise.
15355         (truncddsd2): Likewise.
15356         (movdd_hardfloat64): Fixup comment.
15357         (UNSPEC_MOVSD_LOAD): New constant.
15358         (UNSPEC_MOVSD_STORE): Likewise.
15359
15360 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15361
15362         PR c++/34965
15363         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15364         TRUTH_XOR_EXPR.
15365         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15366         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15367         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15368         and TRUTH_XOR_EXPR.
15369
15370 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15371
15372         PR target/34794
15373         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15374         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15375         __LONGDOUBLE128 too.
15376         * config/rs6000/aix61.h: New file.
15377
15378 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15379
15380         PR rtl-optimization/34959
15381         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15382         popcount and parity rtxes the same mode as their operand.
15383         Truncate or extend the result to the return value's mode
15384         if necessary.
15385
15386 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15387
15388         PR target/34981
15389         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15390         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15391         to GOT_VERSION_REGNUM.
15392         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15393         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15394         * config/mips/mips.c (mips_emit_call_insn): New function.
15395         (mips_call_tls_get_addr): Call mips_expand_call directly.
15396         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15397         emit_call_insn.
15398         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15399         (mips_expand_call): Update the call to mips16_build_call_stub
15400         accordingly and a remove redundant condition.  Assert that MIPS16
15401         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15402         the call insn.
15403         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15404         TARGET_USE_GOT.
15405         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15406         (mips_avoid_hazard): Remove hazard_set handling.
15407         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15408         (UNSPEC_RESTORE_GP): ...this.
15409         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15410         (FAKE_CALL_REGNO): Rename to...
15411         (GOT_VERSION_REGNUM): ...this.
15412         (type): Add "ghost" value.  Add an associated insn reservation.
15413         (hazard_set): Remove.
15414         (exception_receiver): Rename to...
15415         (restore_gp): ...this and update the unspec identifier accordingly.
15416         (exception_receiver, nonlocal_got_receiver): New expanders.
15417         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15418         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15419         (set_got_version, update_got_version): New patterns.
15420
15421 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15422
15423         PR target/34970
15424         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15425
15426 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15427
15428         PR other/31955
15429         * doc/install.texi2html: Generate gcc-vers.texi.
15430
15431 2008-01-25  DJ Delorie  <dj@redhat.com>
15432
15433         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15434
15435 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15436
15437         * config/c4x: Remove directory.
15438         * config.gcc (crx-*, mt-*): Mark obsolete.
15439         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15440         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15441         sh-*-rtemscoff*): Remove cases.
15442         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15443         * real.c (encode_c4x_single, decode_c4x_single,
15444         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15445         c4x_extended_format): Remove.
15446         * real.h (c4x_single_format, c4x_extended_format): Remove.
15447         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15448         on C4x.
15449         (Pragmas): Remove comment about c4x pragmas.
15450         * doc/install.texi (c4x): Remove target-specific instructions.
15451         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15452         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15453         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15454         refer to C4x source files as examples.
15455         (C4X_FLOAT_FORMAT): Remove documentation.
15456
15457 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15458
15459         * config/bfin/bfin.c (override_options): Reorder tests so that
15460         flag_pic gets enabled for -msep-data.
15461
15462 2008-01-25  Richard Guenther  <rguenther@suse.de>
15463
15464         PR middle-end/32244
15465         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15466         to its bitfield precision if required.
15467
15468 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15469
15470         PR middle-end/33880
15471         * tree-nested.c (walk_omp_for): New function.
15472         (convert_nonlocal_reference, convert_local_reference): Call
15473         walk_omp_for on OMP_FOR.
15474         (convert_call_expr): Call walk_body on OMP_FOR's
15475         OMP_FOR_PRE_INIT_BODY.
15476
15477 2008-01-25  Richard Guenther  <rguenther@suse.de>
15478
15479         PR tree-optimization/34966
15480         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15481         default defs and PHI_NODEs we have to insert after the
15482         defining statement.
15483
15484 2008-01-24  Nick Clifton  <nickc@redhat.com>
15485
15486         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15487         Provide a default definition.
15488         (LIBGCC2_UNITS_PER_WORD): Likewise.
15489
15490         * config/stormy16/stormy16.c: Include df.h for the prototype
15491         for df_regs_ever_live_p.
15492         (xstormy16_expand_builtin_va_start): Convert the stack offset
15493         into a component_ref and then use POINTER_PLUS_EXPR to add it
15494         to the incoming_virtual_args_rtx.
15495         (xstormy16_gimplify_va_arg_expr): Rename to
15496         xstormy16_gimplify_va_arg_expr.
15497         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15498         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15499         xstormy16_gimplify_va_arg_expr.
15500         Fix up some formatting issues.
15501
15502         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15503         Move to predicates.md.
15504         (xs_hi_general_operand): Likewise.
15505         (xs_hi_nonmemory_operand): Likewise.
15506         * config/stormy16/predicates.md:
15507         (xstormy16_carry_plus_operand): New predicate.
15508         (xs_hi_general_operand): New predicate.
15509         (xs_hi_nonmemory_operand): New predicate.
15510         * config/stormy16/stormy16-protos.h:
15511         (xstormy16_carry_plus_operand): Delete prototype.
15512         (xs_hi_general_operand): Likewise.
15513         (xs_hi_nonmemory_operand): Likewise.
15514
15515         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15516         modifiers as they are no longer needed and they can trigger
15517         reload spill failures.
15518
15519         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15520         with a match_operand in order to help reload.
15521
15522         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15523         constraint with 'e' for the 8th alternative as this version of
15524         the mov.w instruction only accepts the lower 8 registers.
15525
15526 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15527
15528         PR target/34856
15529         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15530         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15531         vector elements.
15532
15533 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15534
15535         PR middle-end/33333
15536         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15537
15538 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15539
15540         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15541         New functions.
15542         (remove_structure): Update allocations list before removing structure.
15543         
15544 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15545
15546         * ipa-struct-reorg.c (is_safe_cond_expr, 
15547         create_new_stmts_for_cond_expr): Use integer_zerop function,
15548         that recognize not only zero-pointer, but zero-integer too.
15549
15550 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15551
15552         PR other/22232
15553         * fixproto: Escape "." in sed expression that strips leading "./".
15554
15555 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15556
15557         PR driver/34904
15558         * gcc.c (SWITCH_OK): Removed.
15559         (SWITCH_LIVE): Changed to bit.
15560         (SWITCH_FALSE): Likewise.
15561         (SWITCH_IGNORE): Likewise.
15562         (switchstr): Change live_cond to unsigned int.
15563         (process_command): Replace SWITCH_OK with 0.
15564         (do_self_spec): Likewise.
15565         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15566         (give_switch): Likewise.
15567         (used_arg): Likewise.
15568         (do_spec_1): Set the SWITCH_IGNORE bit.
15569         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15570         bits.  Set the SWITCH_LIVE bit.
15571
15572 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15573
15574         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15575
15576 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15577
15578         PR tree-optimization/34472
15579         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15580         parameter to a "bool *" and set *DATA to false if there is
15581         an unsafe access.  Do not delete the structure here.
15582         (check_cond_exprs): Delete it here instead.
15583         (check_cond_exprs, exclude_cold_structs): Do not increase
15584         I when removing a structure.
15585
15586 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15587
15588         PR target/34856
15589         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15590         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15591
15592 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15593
15594         PR middle-end/34934
15595         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15596         a fixed vector for stack.
15597
15598 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15599
15600         PR c++/25701
15601         * doc/gcc.texi (Software development): Add a direntry for g++.
15602         
15603 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15604
15605         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15606         stale and straggling -fforce-addr comments above.
15607
15608         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15609         define.
15610         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15611         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15612
15613 2008-01-23  Michael Matz  <matz@suse.de>
15614
15615         PR debug/34895
15616         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15617         gen_type_die.
15618
15619 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15620
15621         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15622         malloc result type.
15623
15624 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15625
15626         * config/avr/avr.c (avr_current_arch): New variable.
15627         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15628         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15629         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15630         (avr_override_options): Init 'avr_current_arch'. 
15631         (base_arch_s): Move from here...
15632         * config/avr/avr.h (base_arch_s): ... here. Add new members 
15633         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
15634         'mega' to 'have_jmp_call'.
15635         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
15636         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15637         macros.
15638         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
15639         architectures.
15640         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
15641         MULTILIB_MATCHES): (Ditto.).
15642
15643 2008-01-23  Richard Guenther  <rguenther@suse.de>
15644
15645         PR middle-end/31529
15646         * cgraphunit.c (cgraph_reset_node): Always mark the node
15647         not reachable if it is not queued already.
15648
15649 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15650
15651         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15652         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15653         (cputype_selected): New static variable.
15654         (bfin_handle_option): Set it if -mcpu is used.
15655         (override_option): Select default set of workarounds if no cpu type
15656         selected on the command line.
15657         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15658
15659         From  Michael Frysinger  <michael.frysinger@analog.com>
15660         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15661         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15662
15663         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15664         for bf547, bf523, bf524, and bf526.
15665         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
15666         bf526.
15667         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15668         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15669         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15670         __ADSPBF547__ and __ADSPBF54x__ for bf547.
15671         * doc/invoke.texi (Blackfin Options): Document that
15672         -mcpu now accept bf547, bf523, bf524, and bf526.
15673
15674 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15675
15676         PR rtl-optimization/34628
15677         * combine.c (try_combine): Stop and undo after the first combination
15678         if an autoincrement side-effect on the first insn has effectively
15679         been lost.
15680
15681 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
15682
15683         PR target/34529
15684         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15685         Offset addresses are not valid for Altivec or paired float modes.
15686
15687 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
15688
15689         PR c++/34607
15690         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15691         if DECL_INITIAL (decl) is error_mark_node.
15692
15693         PR c++/34914
15694         * c-common.c (handle_vector_size_attribute): Only allow
15695         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
15696         the same way as pointer, array etc. types.
15697         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15698
15699         PR c++/34917
15700         * tree.c (build_type_attribute_qual_variant): Call
15701         build_qualified_type if attributes are equal, but quals are not.
15702
15703 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15704
15705         PR 32102
15706         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15707         * flags.h (warn_strict_aliasing): Remove.
15708         (warn_strict_overflow): Remove.
15709         * opts.c (warn_strict_aliasing): Remove.
15710         (warn_strict_overflow): Remove.
15711         * c-opts.c (c_common_handle_option): -Wall only sets
15712         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15713         (c_common_post_options): Give default values to -Wstrict-aliasing
15714         and -Wstrict-overflow if they are uninitialized.
15715         * common.opt (Wstrict-aliasing): Specify Var and Init.
15716         (Wstrict-overflow): Likewise.
15717
15718 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15719
15720         PR rtl-optimization/26854
15721         PR rtl-optimization/34400
15722         PR rtl-optimization/34884
15723         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15724         DF_RD->gen.
15725         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15726         (df_rd_bb_info.expanded_lr_out): Deleted
15727         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15728         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
15729         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15730         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15731         Removed code to allocate, initialize or free expanded_lr_out.
15732         (df_rd_bb_local_compute_process_def): Restructured to make more
15733         understandable.
15734         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15735         sets if the sets are being trimmed.
15736
15737 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15738
15739         PR bootstrap/32287
15740         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15741         (as_vers): Likewise.
15742         * configure: Regenerated.
15743
15744 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15745
15746         PR middle-end/33092
15747         * tree-pass.h (pass_build_alias): New pass.
15748         * tree-ssa-alias.c (gate_build_alias): New.
15749         (pass_build_alias): New.
15750         * passes.c (init_optimization_passes): Add pass_build_alias after
15751         pass_create_structure_vars.
15752
15753 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
15754
15755         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15756         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15757         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15758         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15759         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15760         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15761         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15762         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15763         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15764         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15765         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15766         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15767         * config/s390/s390.md (FP_ALL): New mode iterator.
15768         (_d): New mode attribute.
15769         ("*signbit<mode>2>"): Changed mode of first operand.
15770         ("isinf<mode>2"): Changed mode of first operand.
15771         ("*TDC_insn"): Adaptation for DFP modes.
15772
15773 2008-01-22  Ben Elliston  <bje@au.ibm.com>
15774
15775         * tree.c (check_qualified_type): Improve function description.
15776
15777 2008-01-21  Jason Merrill  <jason@redhat.com>
15778
15779         PR c++/34196
15780         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15781         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15782         if it is set.
15783
15784 2008-01-21  DJ Delorie  <dj@redhat.com>
15785
15786         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15787         return zero.
15788
15789 2008-01-21  Richard Guenther  <rguenther@suse.de>
15790
15791         PR middle-end/34856
15792         * tree-cfg.c (verify_expr): Allow all invariant expressions
15793         instead of just constant class ones as reference argument.
15794         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15795         like any other constant.
15796         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15797
15798 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
15799
15800         * regmove.c (fixup_match_1): Update call crossed frequencies.
15801
15802 2008-01-21  Richard Guenther  <rguenther@suse.de>
15803
15804         PR c/34885
15805         * tree-inline.c (setup_one_parameter): Deal with mismatched
15806         types using a VIEW_CONVERT_EXPR.
15807
15808 2008-01-21  Alon Dayan  <alond@il.ibm.com>
15809             Olga Golovanevsky  <olga@il.ibm.com>
15810         
15811         PR tree-optimization/34701
15812         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15813         when the structure size is not a power of 2.
15814
15815 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15816
15817         * doc/install.texi: Add doc for --enable-checking=df.
15818         
15819 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15820
15821         PR rtl-optimization/34808
15822         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15823
15824 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15825
15826         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15827         input.
15828
15829 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
15830
15831         PR rtl-optimization/26854
15832         PR rtl-optimization/34400
15833         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15834         DF_RD->gen.
15835         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15836         (df_rd_bb_info.expanded_lr_out): New.
15837         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15838         * loop_iv.c (iv_analysis_loop_init): Ditto.
15839         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15840         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15841         Added code to allocate, initialize or free expanded_lr_out.
15842         (df_rd_bb_local_compute_process_def): Restructured to make
15843         more understandable.
15844         (df_rd_confluence_n): Add code to do nothing with fake edges and
15845         code to no apply invalidate_by_call sets if the sets are being trimmed.
15846         (df_lr_local_finalize): Renamed to df_lr_finalize.
15847         (df_live_local_finalize): Renamed to df_live_finalize.
15848
15849 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15850
15851         PR target/34831
15852         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15853         deciding whether to use reciprocal instructions.
15854
15855 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
15856
15857         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15858         dwarf2out_note_section_used if cold_text_section is NULL.
15859
15860 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
15861
15862         PR gcov-profile/34610
15863         * tree-cfg.c (make_edges): Mark both outgoing edges from
15864         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15865         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15866         from OMP_FOR and OMP_CONTINUE outgoing edges.
15867
15868         * tree-profile.c (tree_profiling): Return early if
15869         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
15870         at the end.
15871         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15872         from cfun to child_cfun.
15873         * function.h (struct function): Add after_tree_profile bit.
15874
15875 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15876
15877         * config/avr/avr.S (_exit): Disable interrupt.
15878
15879 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
15880             Steven Bosscher  <stevenb.gcc@gmail.com>
15881
15882         PR rtl-optimization/26854
15883         PR rtl-optimization/34400
15884         * df-problems.c (df_live_scratch): New scratch bitmap.
15885         (df_live_alloc): Allocate df_live_scratch when doing df_live.
15886         (df_live_reset): Clear the proper bitmaps.
15887         (df_live_bb_local_compute): Only process the artificial defs once
15888         since the order is not important.
15889         (df_live_init): Init the df_live sets only with the variables
15890         found live by df_lr.
15891         (df_live_transfer_function): Use the df_lr sets to prune the
15892         df_live sets as they are being computed.  
15893         (df_live_free): Free df_live_scratch.
15894
15895 2008-01-18  Ian Lance Taylor  <iant@google.com>
15896
15897         * common.opt: Add fmerge-debug-strings.
15898         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15899         flag_merge_debug_strings rather than flag_merge_constants.
15900         * doc/invoke.texi (Option Summary): Mention
15901         -fmerge-debug-strings.
15902         (Debugging Options): Document -fmerge-debug-strings.
15903
15904 2008-01-18  Ian Lance Taylor  <iant@google.com>
15905
15906         PR c++/33407
15907         * tree.h (DECL_IS_OPERATOR_NEW): Define.
15908         (struct tree_function_decl): Add new field operator_new_flag.
15909         * tree-inline.c (expand_call_inline): When inlining a call to
15910         operator new, force the return value to go into a variable, and
15911         set DECL_NO_TBAA_P on that variable.
15912         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15913
15914 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
15915
15916         PR debug/34484
15917         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15918         DWARF2_DEBUGGING_INFO.
15919         (dwarf2out_note_section_used): Ditto.  Add prototype.
15920         (have_multiple_function_sections, text_section_used,
15921         cold_text_section_used, *cold_text_sections): Move declarations
15922         before their uses.
15923
15924 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
15925
15926         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15927         field and add signal_ra.
15928         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15929         assignments to frame state pc.  Move end of stack check after
15930         MD_FALLBACK_FRAME_STATE_FOR.
15931         (uw_update_context_1): Use frame state signal_regs if set, instead
15932         of checking signal_frame flag.
15933         (uw_update_context): Use frame state signal_ra if set.
15934         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15935         * config/xtensa/linux-unwind.h: New file.
15936
15937 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
15938
15939         * modulo-sched.c (get_sched_window): Fix comment typo.
15940
15941 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
15942
15943         PR tree-optimization/34648
15944         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15945
15946 2008-01-17  Anatoly Sokolov <aesok@post.ru>
15947
15948         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15949         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15950
15951 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
15952
15953         PR rtl-optimization/34400
15954         * df-core.c (df_worklist_dataflow_overeager,
15955         df_worklist_dataflow_doublequeue): New functions.
15956         (df_worklist_dataflow): Two different worklist solvers.
15957         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15958         New param.
15959
15960 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15961
15962         PR testsuite/34821
15963         * doc/invoke.texi: Document the dependence on pthread for fopenmp
15964         and ftree-parallelize-loops.
15965
15966 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
15967
15968         PR rtl-optimization/34826
15969         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15970
15971 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
15972
15973         * global.c (find_reg): Mark the eh regs as used if necessary.
15974         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15975         * ra.h (struct allocno): no_eh_reg field added.  Changed
15976         no_stack_reg type to bitfield.
15977
15978 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15979
15980         * tree.c (substitute_in_expr): Add missing 'break'.
15981
15982 2008-01-17  Richard Guenther  <rguenther@suse.de>
15983
15984         PR tree-optimization/34825
15985         * tree-ssa-math-opts.c (is_division_by): Do not recognize
15986         x / x as division to handle.
15987
15988 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15989
15990         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15991         "-pthread" is specified.
15992         * pa-hpux11.h (LIB_SPEC): Likewise.
15993
15994 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
15995             Peter Bergner  <bergner@vnet.ibm.com>
15996
15997         PR rtl-optimization/33796
15998         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15999
16000 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16001
16002         PR libgfortran/34699
16003         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16004         static links.
16005         * pa-hpux10.h (LINK_SPEC): Likewise.
16006         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16007
16008 2008-01-16  Richard Guenther  <rguenther@suse.de>
16009
16010         PR middle-end/32628
16011         * fold-const.c (fold_convert_const_int_from_int): Do not
16012         set overflow if that occured only because of a sign extension
16013         change when converting from/to a sizetype with the same
16014         precision and signedness.
16015
16016 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16017
16018         PR debug/34249
16019         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16020         location address to the correct place.  Update copyright year.
16021
16022 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16023
16024         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16025         no dependences in the dependence_relations vector.
16026
16027 2008-01-16  Jan Hubicka  <jh@suse.cz>
16028
16029         PR rtl-optimization/31396
16030         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16031         * cfg.c (dump_reg_info): Print it.
16032         * regs.h (struct reg_info_t): add freq_calls_crossed.
16033         (REG_FREQ_CALLS_CROSSED): New macro.
16034         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16035         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16036         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16037         regmove_optimize): Update call crossed frequencies.
16038         * local-alloc.c (struct qty): Add freq_calls_crossed.
16039         (alloc_qty): Copute freq_calls_crossed.
16040         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16041         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16042         * ra.h (struct allocno): Add freq_calls_crossed.
16043
16044 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16045
16046         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16047         libgomp when compiling with ftree-parallelize-loops.
16048         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16049
16050 2008-01-16  Richard Guenther  <rguenther@suse.de>
16051
16052         PR tree-optimization/34769
16053         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16054         * tree.c (int_cst_value): Instead make this function more
16055         permissive in what it accepts as valid input.  Document this
16056         function always sign-extends the value.
16057
16058 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16059             Richard Guenther  <rguenther@suse.de>
16060
16061         PR c/34668
16062         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16063         (gimple_fold_indirect_ref_rhs): ... this.
16064         (gimple_fold_indirect_ref): New function with foldings
16065         that preserve lvalueness.
16066         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16067         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16068         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16069         to fold an INDIRECT_REF, fall back to the old use of
16070         fold_indirect_ref_1.
16071
16072 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16073
16074         * tree-data-ref.c (subscript_dependence_tester_1): Call 
16075         free_conflict_function.
16076         (compute_self_dependence): Same.
16077
16078 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16079
16080         PR debug/34249
16081         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16082         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16083         function global.
16084         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16085         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16086         for DWARF2_UNWIND_INFO targets.
16087
16088 2008-01-16  Richard Guenther  <rguenther@suse.de>
16089
16090         PR c/34768
16091         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16092         type qualifiers for function types.
16093
16094 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16095
16096         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16097         loop_iterator li from previous commit.
16098
16099 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16100
16101         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16102
16103 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16104
16105         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16106         (parallelize_loops): Don't parallelize irreducible components.
16107
16108 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16109
16110         PR c++/24924
16111         * c-opts (c_common_post_options): Do not enable CPP
16112         flag_pedantic_errors by default.
16113         
16114 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16115
16116         PR rtl-optimization/31944
16117         * cse.c (remove_pseudo_from_table): New function.
16118         (merge_equiv_classes): Use above function to remove pseudo-registers.
16119         (invalidate): Likewise.
16120
16121 2008-01-13  Richard Guenther  <rguenther@suse.de>
16122
16123         PR middle-end/34601
16124         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16125         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16126
16127 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16128
16129         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16130         validate_change to unshare the source of the PC set.
16131
16132 2008-01-12  Jan Hubicka  <jh@suse.cz>
16133
16134         PR middle-end/32135
16135         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16136         references above array bounds.  This might trigger bounds checks for
16137         pointers to arrays.
16138
16139 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16140
16141         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16142         new_replaceable_dependencies.
16143
16144 2008-01-12  Doug Kwan  <dougkwan@google.com>
16145
16146         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16147         instead of OPT_Wreturn_type in warning due to ignored return type
16148         qualifiers.
16149         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16150         options included in -Wextra.
16151         * c.opt: New option -Wignored_qualifiers.
16152         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16153         -Wignore_qualifiers.
16154         (-Wignored-qualifiers): Document.
16155         (-Wreturn-type): Remove description of functionality now handled
16156         by -Wignored-qualifiers.
16157
16158 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16159
16160         PR ada/33788
16161         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16162         NOP_EXPR if it is between integral types with the same precision.
16163
16164 2008-01-12  Jan Hubicka  <jh@suse.cz>
16165
16166         PR other/28023
16167         * invoke.texi (max-inline-recursive-depth): Fix default value.
16168
16169 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16170
16171         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16172         correct type.
16173
16174 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16175         
16176         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16177         
16178 2008-01-11  James E. Wilson  <wilson@specifix.com>
16179
16180         PR target/26015
16181         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16182
16183 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16184
16185         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
16186         save/restore frame pointer register and don't use 'call-prologues' 
16187         optimization in function with "OS_task" attribute.
16188
16189 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16190
16191         PR middle-end/31309
16192         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16193         when copying to memory.
16194
16195 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16196
16197         PR rtl-optimization/30905
16198         * cfgcleanup.c: Include dce.h
16199         (crossjumps_occured): New global variable.
16200         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16201         If something changed, set crossjumps_occured to true.
16202         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16203         Don't add/remove fake edges to exit here...
16204         (cleanup_cfg): ...but do it here, when crossjumping.
16205         Run a fast DCE when successful crossjumps occured in the latest
16206         iteration of try_optimize_cfg.
16207
16208 2008-01-11  Richard Guenther  <rguenther@suse.de>
16209
16210         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16211         (struct vn_unary_op_s): Likewise.
16212         (vn_reference_insert): Free old reference on hash collision.
16213
16214 2008-01-10  Raksit Ashok  <raksit@google.com>
16215
16216         PR rtl-optimization/27971
16217         * combine.c (find_split_point): Split PLUS expressions which are
16218         inside a MEM rtx, and whose first operand is complex.
16219
16220 2008-01-10  DJ Delorie  <dj@redhat.com>
16221
16222         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16223         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16224         (m32c_hard_regno_ok): Call the underlying function.
16225
16226 2008-01-10  Richard Guenther  <rguenther@suse.de>
16227
16228         PR middle-end/34683
16229         * tree-cfg.c (tree_merge_blocks): Do not go through the
16230         full-blown folding and stmt updating path if we just deal
16231         with virtual operands.
16232         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16233         test for abnormal SSA_NAMEs.
16234
16235 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16236
16237         PR middle-end/34641
16238         * reload.c (push_reload): Add assertions.  All constants from
16239         reg_equiv_constant should have been used for replacing the respective
16240         pseudo earlier.
16241         (find_reloads_address): Invoke find_reloads_address_part for
16242         constant taken from the reg_equiv_constant array.
16243
16244 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16245
16246         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16247         field (valnum) the first in the struct.  Replace bools with
16248         unit bit fields.
16249
16250 2008-01-10  Richard Guenther  <rguenther@suse.de>
16251
16252         PR tree-optimization/34651
16253         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16254         types and ordering for masking and converting.
16255
16256 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16257
16258         PR tree-optimization/34017
16259         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16260         also for PHI_NODE expressions.
16261
16262 2008-01-09  Jan Hubicka  <jh@suse.cz>
16263
16264         PR tree-optimization/34708
16265         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16266         based on number of case labels.
16267         (init_inline_once): Remove switch_cost.
16268         * tree-inline.h (eni_weights_d): Remove switch_cost.
16269
16270 2008-01-09  Richard Guenther  <rguenther@suse.de>
16271         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16272
16273         PR middle-end/30132
16274         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16275         temporary if an rvalue is ok or an lvalue is not required.
16276
16277 2008-01-09  Richard Guenther  <rguenther@suse.de>
16278
16279         PR middle-end/34458
16280         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16281         adjust return type.
16282
16283 2008-01-09  Richard Guenther  <rguenther@suse.de>
16284
16285         PR middle-end/34679
16286         * tree.c (host_integerp): Check for sizetype only if the
16287         type is an integer type.
16288
16289 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16290
16291         PR debug/26364
16292         * opts.c (decode_options): Disable inlining of functions called
16293         once if not in unit-at-a-time mode.
16294
16295 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16296
16297         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16298
16299 2008-01-08  Richard Guenther  <rguenther@suse.de>
16300
16301         PR middle-end/31863
16302         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16303         out early if the result will be unused.
16304
16305 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16306
16307         PR target/34709
16308         Revert:
16309
16310         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16311         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16312         for TARGET_RECIP.       
16313         
16314 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16315         
16316         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16317         for vectorization tuned.
16318         
16319 2008-01-08  Richard Guenther  <rguenther@suse.de>
16320
16321         PR tree-optimization/34683
16322         * tree-ssa-operands.c (operand_build_cmp): Export.
16323         * tree-ssa-operands.h (operand_build_cmp): Declare.
16324         * tree-vn.c (vuses_compare): Remove.
16325         (sort_vuses): Use operand_build_cmp.
16326         (sort_vuses_heap): Likewise.
16327         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16328         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16329         (vdefs_to_vec): Do not sort already sorted VDEFs.
16330
16331 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16332
16333         PR middle-end/34694
16334         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16335
16336 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16337
16338         PR target/34702
16339         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16340         limitations of reciprocal sequences on x86 targets.
16341
16342 2008-01-08  Richard Guenther  <rguenther@suse.de>
16343
16344         PR tree-optimization/34683
16345         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16346
16347 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16348
16349         PR target/34622
16350         * config/darwin.c (darwin_mergeable_string_section): Don't use
16351         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16352
16353 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16354
16355         PR target/34682
16356         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16357         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16358         predicates of op0 and op1 to register_operand.
16359         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16360         expander using X87MODEF mode iterator.  Change predicates of
16361         op0 and op1 to register_operand.
16362         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16363         corresponding patterns and macroize using MODEF macro.  Change
16364         predicates of op0 and op1 to register_operand and remove
16365         "m" constraint. Disparage "r" alternative with "!".
16366         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16367         macroize using X87MODEF macro.  Change predicates of op0 and op1
16368         to register_operand and remove "m" constraint.  Disparage "r"
16369         alternative with "!".
16370         (absneg splitter with memory operands): Remove.
16371         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16372         patterns and macroize using X87MODEF mode iterator.
16373         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16374         Change predicate of op1 to register_operand.
16375         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16376         for memory operands.
16377
16378 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16379
16380         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16381
16382 2008-01-07  Richard Guenther  <rguenther@suse.de>
16383
16384         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16385         fields.
16386
16387 2008-01-07  Richard Guenther  <rguenther@suse.de>
16388
16389         PR tree-optimization/34683
16390         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16391         VOPs of the needed size to save memory.  Use VEC_quick_push
16392         to save compile-time.
16393         (vdefs_to_vec): Likewise.
16394
16395 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16396
16397         * config/spu/spu.md (divdf3): Genetate inline code for double
16398         division.  The implementation doesn't handle INF or NAN, therefore it
16399         only applies when -ffinite-math-only is given.
16400
16401 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16402
16403         PR libstdc++/34680
16404         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16405         * doc/cpp.texi ([Common Predefined Macros]): Document.
16406
16407 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16408
16409         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16410         order to use commutative addition instead of subtraction.
16411
16412 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16413             Mircea Namolaru  <namolaru@il.ibm.com>
16414             Vladimir Yanovsky  <yanov@il.ibm.com>
16415             Revital Eres  <eres@il.ibm.com>
16416
16417         PR tree-optimization/34263
16418         * tree-outof-ssa.c (process_single_block_loop_latch,
16419         contains_tree_r): New functions.
16420         (analyze_edges_for_bb): Call process_single_block_loop_latch
16421         function to empty single-basic-block latch block if possible.
16422
16423 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16424
16425         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16426         for TARGET_RECIP.
16427         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16428
16429 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16430
16431         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16432
16433 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16434
16435         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16436
16437 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16438
16439         PR tree-optimization/34618
16440         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16441         flag from T.
16442
16443 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16444
16445         PR target/34673
16446         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16447         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16448         Update copyright year.
16449
16450         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16451         Update copyright year.
16452         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16453         using NR fixup.
16454
16455 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16456
16457         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16458         edge does not point to current bb before changing need_assert.
16459
16460 2008-01-04  Richard Guenther  <rguenther@suse.de>
16461
16462         PR middle-end/34029
16463         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16464         for verifying purposes if they are is_gimple_min_invariant.
16465
16466 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16467
16468         PR tree-optimization/34448
16469         PR tree-optimization/34465
16470         * gimplify.c (gimplify_init_constructor): Add new parameter
16471         notify_temp_creation.  Use it.
16472         (gimplify_modify_expr_rhs): Take volatiles into account when
16473         optimizing constructors.
16474         Do not optimize constructors if gimplify_init_constructor will dump to
16475         memory.
16476         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16477         * gcc.c-torture/compile/pr34448.c: New.
16478
16479 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16480
16481         PR gcov-profile/34609
16482         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16483         return_slot if result is TREE_ADDRESSABLE.
16484
16485 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16486
16487         * config/mips/mips.md (sqrt_condition): Tweak comment.
16488         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16489
16490 2008-01-03  Tom Tromey  <tromey@redhat.com>
16491
16492         PR c/34457
16493         * c-common.c (c_type_hash): Handle VLAs.
16494
16495 2008-01-03  Jan Hubicka  <jh@suse.cz>
16496
16497         PR tree-optimization/31081
16498         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16499         0 when inlining and not inlining to first basic block.
16500         (remap_decl): When var is initialized to 0, don't set default_def.
16501         (expand_call_inline): Set entry_bb.
16502         * tree-inline.h (copy_body_data): Add entry_bb.
16503
16504 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16505
16506         PR c++/34619
16507         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16508         before returning.
16509
16510         PR tree-optimization/29484
16511         * tree-inline.c (inline_forbidden_p_2): New function.
16512         (inline_forbidden_p): Disallow inlining if some static var
16513         has an address of a local LABEL_DECL in its initializer.
16514         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16515         vs. inlining.
16516
16517 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16518
16519         PR tree-optimization/34635
16520         * tree-data-ref.c (add_other_self_distances): Make sure that the
16521         evolution step is constant.
16522
16523 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16524
16525         PR middle-end/34608
16526         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16527
16528 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16529
16530         * tree-sra.c (scalarize_init): Insert the generate_element_init
16531         statements after the generate_element_zero statements.
16532
16533 2008-01-02  Richard Guenther  <rguenther@suse.de>
16534
16535         PR middle-end/34093
16536         PR middle-end/31976
16537         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16538         for very large number of operands instead of ICEing.
16539
16540 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16541
16542         PR target/34013
16543         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16544         while stack probing.
16545
16546 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16547
16548         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16549         in C++0x mode.
16550
16551 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16552
16553         PR libmudflap/26442
16554         * tree-mudflap.c (mx_register_decls): Guard warning by
16555         !DECL_ARTIFICIAL check.
16556
16557 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16558
16559         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16560         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16561         sse5_perm<mode>): Fix constraints.