2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
[official-gcc.git] / gcc / ChangeLog
blob77face9d4be7077478de478c362a5e59a015cd5b
1 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
3         * configure.ac: Use the m4_do macro to concatenate the warnings into
4         one string in ACX_PROG_CC_WARNING_OPTS,
5         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6         * configure: Regenerate.
8 2008-07-28  Richard Guenther  <rguenther@suse.de>
10         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
11         (insert_fake_stores): Remove.
12         (realify_fake_stores): Likewise.
13         (execute_pre): Remove dead code.
14         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
15         case.
16         (find_func_aliases): Deal with it here instead.
17         Re-enable gcc_unreachable call.
19 2008-07-28  Richard Guenther  <rguenther@suse.de>
21         Merge from gimple-tuples-branch.
23         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
24         * gimple.def: New file.
25         * gsstruct.def: Likewise.
26         * gimple-iterator.c: Likewise.
27         * gimple-pretty-print.c: Likewise.
28         * tree-gimple.c: Removed.  Merged into ...
29         * gimple.c: ... here.  New file.
30         * tree-gimple.h: Removed.  Merged into ...
31         * gimple.h: ... here.  New file.
33         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
34         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
35         --enable-checking=gimple flag.
36         * config.in: Likewise.
37         * configure: Regenerated.
39         * tree-ssa-operands.h: Tuplified.
40         * tree-vrp.c: Likewise.
41         * tree-loop-linear.c: Likewise.
42         * tree-into-ssa.c: Likewise.
43         * tree-ssa-loop-im.c: Likewise.
44         * tree-dump.c: Likewise.
45         * tree-complex.c: Likewise.
46         * cgraphbuild.c: Likewise.
47         * tree-ssa-threadupdate.c: Likewise.
48         * tree-ssa-loop-niter.c: Likewise.
49         * tree-pretty-print.c: Likewise.
50         * tracer.c: Likewise.
51         * gengtype.c: Likewise.
52         * tree-loop-distribution.c: Likewise.
53         * tree-ssa-loop-unswitch.c: Likewise.
54         * cgraph.c: Likewise.
55         * cgraph.h: Likewise.
56         * tree-ssa-loop-manip.c: Likewise.
57         * value-prof.c: Likewise.
58         * tree-ssa-loop-ch.c: Likewise.
59         * tree-tailcall.c: Likewise.
60         * value-prof.h: Likewise.
61         * tree.c: Likewise.
62         * tree.h: Likewise.
63         * tree-pass.h: Likewise.
64         * ipa-cp.c: Likewise.
65         * tree-scalar-evolution.c: Likewise.
66         * tree-scalar-evolution.h: Likewise.
67         * target.h: Likewise.
68         * lambda-mat.c: Likewise.
69         * tree-phinodes.c: Likewise.
70         * diagnostic.h: Likewise.
71         * builtins.c: Likewise.
72         * tree-ssa-alias-warnings.c: Likewise.
73         * cfghooks.c: Likewise.
74         * fold-const.c: Likewise.
75         * cfghooks.h: Likewise.
76         * omp-low.c: Likewise.
77         * tree-ssa-dse.c: Likewise.
78         * ipa-reference.c: Likewise.
79         * tree-ssa-uncprop.c: Likewise.
80         * toplev.c: Likewise.
81         * tree-gimple.c: Likewise.
82         * tree-gimple.h: Likewise.
83         * tree-chrec.c: Likewise.
84         * tree-chrec.h: Likewise.
85         * tree-ssa-sccvn.c: Likewise.
86         * tree-ssa-sccvn.h: Likewise.
87         * cgraphunit.c: Likewise.
88         * tree-ssa-copyrename.c: Likewise.
89         * tree-ssa-ccp.c: Likewise.
90         * tree-ssa-loop-ivopts.c: Likewise.
91         * tree-nomudflap.c: Likewise.
92         * tree-call-cdce.c: Likewise.
93         * ipa-pure-const.c: Likewise.
94         * c-format.c: Likewise.
95         * tree-stdarg.c: Likewise.
96         * tree-ssa-math-opts.c: Likewise.
97         * tree-ssa-dom.c: Likewise.
98         * tree-nrv.c: Likewise.
99         * tree-ssa-propagate.c: Likewise.
100         * ipa-utils.c: Likewise.
101         * tree-ssa-propagate.h: Likewise.
102         * tree-ssa-alias.c: Likewise.
103         * gimple-low.c: Likewise.
104         * tree-ssa-sink.c: Likewise.
105         * ipa-inline.c: Likewise.
106         * c-semantics.c: Likewise.
107         * dwarf2out.c: Likewise.
108         * expr.c: Likewise.
109         * tree-ssa-loop-ivcanon.c: Likewise.
110         * predict.c: Likewise.
111         * tree-ssa-loop.c: Likewise.
112         * tree-parloops.c: Likewise.
113         * tree-ssa-address.c: Likewise.
114         * tree-ssa-ifcombine.c: Likewise.
115         * matrix-reorg.c: Likewise.
116         * c-decl.c: Likewise.
117         * tree-eh.c: Likewise.
118         * c-pretty-print.c: Likewise.
119         * lambda-trans.c: Likewise.
120         * function.c: Likewise.
121         * langhooks.c: Likewise.
122         * ebitmap.h: Likewise.
123         * tree-vectorizer.c: Likewise.
124         * function.h: Likewise.
125         * langhooks.h: Likewise.
126         * tree-vectorizer.h: Likewise.
127         * ipa-type-escape.c: Likewise.
128         * ipa-type-escape.h: Likewise.
129         * domwalk.c: Likewise.
130         * tree-if-conv.c: Likewise.
131         * profile.c: Likewise.
132         * domwalk.h: Likewise.
133         * tree-data-ref.c: Likewise.
134         * tree-data-ref.h: Likewise.
135         * tree-flow-inline.h: Likewise.
136         * tree-affine.c: Likewise.
137         * tree-vect-analyze.c: Likewise.
138         * c-typeck.c: Likewise.
139         * gimplify.c: Likewise.
140         * coretypes.h: Likewise.
141         * tree-ssa-phiopt.c: Likewise.
142         * calls.c: Likewise.
143         * tree-ssa-coalesce.c: Likewise.
144         * tree.def: Likewise.
145         * tree-dfa.c: Likewise.
146         * except.c: Likewise.
147         * except.h: Likewise.
148         * cfgexpand.c: Likewise.
149         * tree-cfgcleanup.c: Likewise.
150         * tree-ssa-pre.c: Likewise.
151         * tree-ssa-live.c: Likewise.
152         * tree-sra.c: Likewise.
153         * tree-ssa-live.h: Likewise.
154         * tree-predcom.c: Likewise.
155         * lambda.h: Likewise.
156         * tree-mudflap.c: Likewise.
157         * ipa-prop.c: Likewise.
158         * print-tree.c: Likewise.
159         * tree-ssa-copy.c: Likewise.
160         * ipa-prop.h: Likewise.
161         * tree-ssa-forwprop.c: Likewise.
162         * ggc-page.c: Likewise.
163         * c-omp.c: Likewise.
164         * tree-ssa-dce.c: Likewise.
165         * tree-vect-patterns.c: Likewise.
166         * tree-ssa-ter.c: Likewise.
167         * tree-nested.c: Likewise.
168         * tree-ssa.c: Likewise.
169         * lambda-code.c: Likewise.
170         * tree-ssa-loop-prefetch.c: Likewise.
171         * tree-inline.c: Likewise.
172         * tree-inline.h: Likewise.
173         * tree-iterator.c: Likewise.
174         * tree-optimize.c: Likewise.
175         * tree-ssa-phiprop.c: Likewise.
176         * tree-vect-transform.c: Likewise.
177         * tree-object-size.c: Likewise.
178         * tree-outof-ssa.c: Likewise.
179         * cfgloop.c: Likewise.
180         * system.h: Likewise.
181         * tree-profile.c: Likewise.
182         * cfgloop.h: Likewise.
183         * c-gimplify.c: Likewise.
184         * c-common.c: Likewise.
185         * tree-vect-generic.c: Likewise.
186         * tree-flow.h: Likewise.
187         * c-common.h: Likewise.
188         * basic-block.h: Likewise.
189         * tree-ssa-structalias.c: Likewise.
190         * tree-switch-conversion.c: Likewise.
191         * tree-ssa-structalias.h: Likewise.
192         * tree-cfg.c: Likewise.
193         * passes.c: Likewise.
194         * ipa-struct-reorg.c: Likewise.
195         * ipa-struct-reorg.h: Likewise.
196         * tree-ssa-reassoc.c: Likewise.
197         * cfgrtl.c: Likewise.
198         * varpool.c: Likewise.
199         * stmt.c: Likewise.
200         * tree-ssanames.c: Likewise.
201         * tree-ssa-threadedge.c: Likewise.
202         * langhooks-def.h: Likewise.
203         * tree-ssa-operands.c: Likewise.
204         * config/alpha/alpha.c: Likewise.
205         * config/frv/frv.c: Likewise.
206         * config/s390/s390.c: Likewise.
207         * config/m32c/m32c.c: Likewise.
208         * config/m32c/m32c-protos.h: Likewise.
209         * config/spu/spu.c: Likewise.
210         * config/sparc/sparc.c: Likewise.
211         * config/i386/i386.c: Likewise.
212         * config/sh/sh.c: Likewise.
213         * config/xtensa/xtensa.c: Likewise.
214         * config/stormy16/stormy16.c: Likewise.
215         * config/ia64/ia64.c: Likewise.
216         * config/rs6000/rs6000.c: Likewise.
217         * config/pa/pa.c: Likewise.
218         * config/mips/mips.c: Likewise.
220 2008-07-28  Simon Baldwin  <simonb@google.com>
222         * c-pragma.c (handle_pragma_message): New function.
223         (init_pragma): Register handle_pragma_message.
224         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
225         documentation.
227 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
229         PR tree-optimization/35252
230         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
231         REALPART_EXPR to be considered as same load operation.
233 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
235         PR tree-optimization/36830
236         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
237         (expressions_equal_p): Return false if only one operand is null.
239 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
241         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
242         version requirements.
244 2008-07-26  Olivier Hainque  <hainque@adacore.com>
246         * collect2.c (symkind): New enum.  Symbol kinds we care about.
247         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
248         code and head comment accordingly.
249         (scan_prog_file): Use symkind names instead of bare integers.
250         
251 2008-07-25  Jan Hubicka  <jh@suse.cz>
253         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
254         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
255         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
256         * dojump.c (clear_pending_stack_adjust): Likewise.
257         * print-tree.c (print_node): Ignore DECL_INLINE.
258         * tree-inline.c (inlinable_function_p): Likewise.
259         
260 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
262         * doc/extend.texi (hot attribute): Document that the hot attribute
263         turns on -O3 for some ports.
264         (cold attribute): Document that the cold attribute turns on -Os
265         for some ports
267         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
268         reflect function specific option support.
270         * target.h (struct target_option_hooks): Add fields to say whether
271         the cold attribute implies -Os and the hot attribute implies -O3.
273         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
274         By default, do not turn on -Os for cold functions.
275         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
276         not turn on -O3 for hot functions.
278         * c-common.c (handle_hot_attribute): Use target hook to determine
279         if hot functions should enable -O3.
280         (handle_cold_attribute): Use target hook to determine if cold
281         functions should enable -Os.
283         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
284         (override_options): Move disable scheduling to
285         optimization_options.
286         (optimization_options): Disable scheduling here, not
287         override_options.
288         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
289         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
291         * config/ia64/ia64.c (ia64_override_options): Move setting
292         scheduling flags to ia64_optimization_options.
293         (ia64_optimization_options): Disable scheduling options here, and
294         not in ia64_override_options.
295         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
296         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
298 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
300         PR target/36936
301         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
303 2008-07-25  Martin Jambor  <mjambor@suse.cz>
305         PR tree-optimization/36926
306         * ipa-prop.c (ipa_analyze_call_uses): Call
307         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
309 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
311         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
312         movv2si_internal): Add mem = reg alternative.
314 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
316         PR bootstrap/36918
317         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
318         DEFAULT_PCC_STRUCT_RETURN to 127.
320 2008-07-24  Jan Hubicka  <jh@suse.cz>
322         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
323         (build_cgraph_edges): Likewise.
324         * cgraph.c (cgraph_node): Do not update assembler hash.
325         (cgraph_remove_node): Drop non-unit-at-a-time code.
326         * tree-pass.h (pass_O0_always_inline): Remove.
327         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
328         * toplev.c (process_options): Flag unit-at-a-time does not imply
329         no section anchors.
330         * cgraphunit.c: Update comments.
331         (decide_is_function_needed): Drop non-unit-at-a-time mode.
332         (cgraph_assemble_pending_functions): Remove.
333         (cgraph_reset_node): Drop non-unit-at-a-time code.
334         (cgraph_finalize_function): Likewise.
335         (cgraph_analyze_function): Likewise.
336         (cgraph_finalize_compilation_unit): Likewise.
337         (cgraph_expand_function): Likewise.
338         (cgraph_optimize): Likesise.
339         (save_inline_function_body): Likewise.
340         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
341         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
342         * ipa-inline.c: Update comments.
343         (enum inlining_mode): remove INLINE_SPEED.
344         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
345         (cgraph_mark_inline_edge): Likewise.
346         (try_inline): Likewise.
347         (cgraph_decide_inlining_incrementally): Likewise.
348         (cgraph_gate_inlining): Remove.
349         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
350         (cgraph_gate_early_inlining): Likewise.
351         (gate_inline_passes): Remove.
352         (pass_inline_parameters, pass_ipa_inline): Remove gates.
353         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline, 
354         pass_O0_always_inline): Remove.
355         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
356         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
357         * opts.c (no_unit_at_a_time_default): Remove.
358         (decode_options): Remove flag_unit_at_a_time reset and warning.
359         * opts.h (no_unit_at_a_time_default): Remove.
360         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
361         early in GNU dialect.
362         (merge_decls): Update comment; drop unit-at-a-time check.
363         (finish_decl): Likewise.
364         (grok_declaration): Remove flag_inline_trees code.
365         (finish_functions): Return on function returning non-void on all
366         statics.
367         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
368         * cfgexpand.c (expand_one_static_var): Remove.
369         (expand_one_var): Remove expand_one_static_var call.
370         (expand_used_vars_for_block): Remove flag_unit_a_time check.
371         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
372         and flag_unit_at_a-time compatibility checks.
373         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
374         * tree-inline.c (flag_inline_trees): Remove.
375         (inlinable_function_p): Don't check it.
376         (expand_call_inline): Remove non-unit-at-a-time code.
377         * tree-inline.h (flag_inline_trees): Remove.
378         * tree-optimize.c (execute_early_local_optimizations): Remove
379         unit-at-a-time checks.
380         (tree_rest_of_compilation): Likewise.
381         * combine.c (setup_incoming_promotions): Likewise.
382         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
383         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
384         * passes.c (pass_inline_parameters): Update comments; remove
385         O0_alwaysinline pass.
386         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
387         (execute_one_pass): Likewise.
388         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
389         (ix86_function_sseregparm): Likewise.
390         * arm.c (arm_function_in_section_p): Likewise.
391         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
392         * varpool.c: Update comments.
393         (decide_is_variable_needed): Remove unit-at-a-time checks.
394         (varpool_finalize_decl): Likewise.
396 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
398         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
399         to 2 instead of -1.
400         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
401         to 2.
403 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
405         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
406         imp symbol extension.
408         2008-07-23  Ian Lance Taylor  <iant@google.com>
410         * tree-vrp.c (infer_value_range): Ignore asm statements when
411         looking for memory accesses for -fdelete-null-pointer-checks.
413 2008-07-24  Ben Elliston  <bje@au.ibm.com>
415         * config/spu/spu-c.c (__vector_keyword): New variable.
416         (vector_keyword): Likewise.
417         (spu_categorize_keyword): New function.
418         (spu_macro_to_expand): Likewise.
419         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
420         compiling an ISO C dialect.
422 2008-07-24  Ben Elliston  <bje@au.ibm.com>
424         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
425         conventional usage.
427 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
429         * configure: Regenerate.
430         * configure.ac: Require texinfo 4.7.
431         * doc/install.texi: Document texinfo 4.7 requirement.
433 2008-07-23  Martin Jambor  <mjambor@suse.cz>
435         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
436         rather than for DECL_SAVED_TREE.
437         * ipa-prop.c: Include diagnostic.h.
438         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
439         thoroughly.
440         (ipa_detect_param_modifications): Function rewritten from scratch.
441         (ipa_compute_jump_functions): Changed accesses to modification flags.
442         (ipa_free_node_params_substructures): Update flags destruction.
443         (ipa_node_duplication_hook): Update flags duplication.
444         (ipa_print_all_params_modified): Updated flag access.
445         * ipa-prop.h (struct ipa_param_flags): New structure.
446         (struct ipa_node_params): New field modification_analysis_done,
447         modified_flags changed into param_flags.
448         (ipa_is_ith_param_modified): Changed to use new flags.
449         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
451         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
452         ipa-cp.c and split into two functions.
453         (ipa_print_node_jump_functions): New function.
454         (compute_scalar_jump_functions): New function.
455         (type_like_member_ptr_p): New function.
456         (compute_pass_through_member_ptrs): New function.
457         (fill_member_ptr_cst_jump_function): New function.
458         (determine_cst_member_ptr): New function.
459         (compute_cst_member_ptr_arguments): New function.
460         (ipa_compute_jump_functions): Complete rewrite.
461         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
462         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
463         (struct ipa_member_ptr_cst): New structure.
464         (union jump_func_value): New field member_cst.
465         * ipa-cp.c (ipcp_lat_is_insertable): New function.
466         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
467         jump function types.
468         (ipcp_print_all_lattices): Slight fprintf rearrangement.
469         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
470         instead of ipcp_print_all_jump_functions.
471         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
472         only for replacable scalars.
474         * doc/invoke.texi (Optimize options): Add description of
475         -findirect-inlining.
476         * common.opt (flag_indirect_inlining): New flag.
477         * opts.c (decode_options): Set flag_indirect_inlining when 
478         optimize >= 3.
480         * ipa-inline.c: Include ipa-prop.h.
481         (inline_indirect_intraprocedural_analysis): New function.
482         (inline_generate_summary): Allocate parameter and argument info
483         structures, call inline_indirect_intraprocedural_analysis on each
484         node when doing indirect inlining and deallocate indirect inlining 
485         data structures in the end.
486         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
487         (free_all_ipa_structures_after_iinln): New function.
488         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be 
489         done.
490         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
492         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
493         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
494         of computing the frequency separately.
495         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
496         of computing the frequency separately.
497         * ipa-cp.c (ipcp_print_all_structures): Replace a call to 
498         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
499         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
500         (ipa_get_stmt_member_ptr_load_param): New function.
501         (ipa_is_ssa_with_stmt_def): New function.
502         (ipa_note_param_call): New function.
503         (ipa_analyze_call_uses): New function.
504         (ipa_analyze_stmt_uses): New function.
505         (ipa_analyze_params_uses): New function.
506         (ipa_free_node_params_substructures): Also free the param_calls linked
507         list.
508         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
509         (ipa_print_node_param_flags): New function.
510         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
511         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
512         * ipa-prop.h (struct ipa_param_flags): New field called.
513         (struct ipa_param_call_note): New structure.
514         (struct ipa_node_params): New fields param_calls and
515         uses_analysis_done.
516         (ipa_is_ith_param_called): New function.
517         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
518         ipa_analyze_params_uses and dump parameter flags.
520         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
521         ipa_propagate_indirect_call_infos if performing indirect inlining,
522         pass a new parameter new_edges to it.
523         (add_new_edges_to_heap): New fucntion.
524         (cgraph_decide_inlining_of_small_functions): New vector
525         new_indirect_edges for newly found indirect edges , call
526         ipa_propagate_indirect_call_infos after inlining.
527         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
528         inlining if performing indirect inlining.  Call
529         free_all_ipa_structures_after_iinln when doing so too.
530         (inline_generate_summary): Do not call
531         free_all_ipa_structures_after_iinln here.
532         * ipa-prop.c (update_jump_functions_after_inlining): New function.
533         (print_edge_addition_message): New function.
534         (update_call_notes_after_inlining): New function.
535         (propagate_info_to_inlined_callees): New function.
536         (ipa_propagate_indirect_call_infos): New function.
537         * ipa-prop.h: Include cgraph.h
538         (struct ipa_param_call_note): Fields reordered, new field processed.
539         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
540         flag indirect_call.
541         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
542         rediscovered call statements.
543         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
544         (dump_cgraph_node): Dump also the indirect_call flag.
545         (cgraph_clone_edge): Copy also the indirect_call flag.
546         * tree-inline.c (copy_bb): Do not check for fndecls from call
547         expressions, check for edge availability when moving clones.
548         (get_indirect_callee_fndecl): New function.
549         (expand_call_inline): If callee declaration is not apprent from
550         the statement, try calling get_indirect_callee_fndecl.  Do not
551         issue warnings or call sorry when not inlinings an indirect edge.
552         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
554         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
555         bit more frandly to matching.
556         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
557         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
558         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
559         
560 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
562         PR 36907
563         * opth-gen.awk: Suppress function specific features when building
564         target libraries.
565         * optc-gen.awk: Ditto.
567 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
569         PR 35058
570         * diagnostic.c (pedwarn): Add opt parameter.
571         (pedwarn0): New.
572         * c-tree.h (pedwarn_init): Add opt parameter.
573         (pedwarn_c90): Likewise.
574         (pedwarn_c99): Likewise.
575         * c-errors.c (pedwarn_c99): Likewise.
576         (pedwarn_c90): Likewise.
577         * toplev.h (pedwarn): Update declaration.
578         (pedwarn0): Declare.
579         * c-lex.c: All calls to pedwarn changed.
580         * builtins.c: All calls to pedwarn changed.
581         * toplev.c: All calls to pedwarn changed.
582         * c-decl.c: All calls to pedwarn changed.
583         * c-typeck.c: All calls to pedwarn changed.
584         * c-common.c: All calls to pedwarn changed.
585         * c-parser.c: All calls to pedwarn changed.
586         
587 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
588             Karthik Kumar  <karthikkumar@gmail.com>
590         * attribs.c (file scope): Include c-common.h.
591         (decl_attributes): Add support for #pragma GCC optimize and
592         #pragma GCC option.
594         * targhooks.c (default_can_inline_p): New function that is the
595         default for the TARGET_CAN_INLINE_P target hook.
597         * targhooks.h (default_can_inline_p): Add declaration.
599         * tree.c (cl_optimization_node): New static tree for building
600         OPTIMIZATION_NODE tree.
601         (cl_target_option_node): New static tree for building
602         TARGET_OPTION_NODE tree.
603         (cl_option_hash_table): New hash table for hashing
604         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
605         (cl_option_hash_hash): New function to provide the hash value for
606         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
607         (cl_option_hash_eq): New function to provide an equality test for
608         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
609         (tree_code_size): Add support for OPTIMIZATION_NODE and
610         TARGET_OPTION_NODE trees.
611         (tree_code_structure): Add support for OPTIMIZATION_NODE and
612         TARGET_OPTION_NODE trees.
613         (build_optimization_node): Build a tree that has all of the
614         current optimization options.
615         (build_target_option_node): Build a tree that has the target
616         options that might be changed on a per function basis.
618         * tree.h (file scope): Include options.h.
619         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
620         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
621         (TREE_OPTIMIZATION): Ditto.
622         (TREE_TARGET_SPECIFIC): Ditto.
623         (struct tree_function_decl): Add fields for remembering the
624         current optimization options and target specific options.
625         (struct tree_optimization_option): New tree variant that remembers
626         the optimization options.
627         (struct tree_target_option): New tree variant that remembers the
628         target specific flags that might change for compiling a particular
629         function.
630         (union tree_node): Include tree_optimization_option and
631         tree_target_option fields.
632         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
633         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
634         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
635         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
636         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
637         optimization and target options.
638         (optimization_default_node): New macro to refer to global_trees
639         field.
640         (optimization_current_node): Ditto.
641         (optimization_cold_node): Ditto.
642         (optimization_hot_node): Ditto.
643         (target_option_default_node): Ditto.
644         (target_option_current_node): Ditto.
645         (current_option_pragma): Ditto.
646         (current_optimize_pragma): Ditto.
648         * target.h (struct gcc_target): Add valid_option_attribute_p,
649         target_option_save, target_option_restore, target_option_print,
650         target_option_pragma_parse, and can_inline_p hooks.
652         * toplev.h (parse_optimize_options): Add declaration.
653         (fast_math_flags_struct_set_p): Ditto.
655         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
656         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
657         optimize is used.
659         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
660         tree_can_inline_p hook to see if one function can inline another.
661         (cgraph_decide_inlining): Ditto.
662         (cgraph_decide_inlining_incrementally): Ditto.
664         * opts.c (decode_options): Add support for running multiple times
665         to allow functions with different target or optimization options
666         than was specified on the command line.
667         (fast_math_flags_struct_set_p): New function that is similar to
668         fast_math_flags_set_p, except it uses the values in the
669         cl_optimization structure instead of global variables.
671         * optc-gen.awk: Add support for TargetSave to allow a back end to
672         declare new fields that need to be saved when using function
673         specific options.  Include flags.h and target.h in the options.c
674         source.  Add support for Save to indicate which options can be set
675         for individual functions.  Generate cl_optimize_save,
676         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
677         cl_target_option_restore, cl_target_option_print functions to
678         allow functions to use different optimization or target options.
680         * opt-functions.awk (var_type_struct): Return the type used for
681         storing the field in a structure.
683         * opth-gen.awk: Add support for TargetSave to allow a back end to
684         declare new fields that need to be saved when using function
685         specific options.  Add support for Save to indicate which options
686         can be set for individual functions.  Only generate one extern for
687         Mask fields.  Generate cl_optimization and cl_target_option
688         structures to remember optimization and target options.
690         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
691         collecting new tree nodes.
692         (TS_TARGET_OPTION): Ditto.
694         * c-decl.c (merge_decls): Merge function specific target and
695         optimization options.
697         * function.c (invoke_set_current_function_hook): If the function
698         uses different optimization options, change the global variables
699         to reflect this.
701         * coretypes.h (struct cl_optimization): Add forward reference.
702         (struct cl_target_option): Ditto.
704         * c-pragma.c (option_stack): New static vector to remember the
705         current #pragma GCC option stack.
706         (handle_pragma_option): New function to support #pragma GCC option
707         to change target options.
708         (optimize_stack): New static vector to remember the current
709         #pragma GCC optimize stack.
710         (handle_pragma_optimize): New function to support #pragma GCC
711         optimize to change optimization options.
712         (init_pragma): Add support for #pragma GCC optimize and #pragma
713         GCC option.
715         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
716         optimization options.
717         (TARGET_OPTION_NODE): New tree code for remembering certain target
718         options.
720         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
721         TARGET_OPTION_NODE trees.
723         * common.opt (-O): Add Optimization flag.
724         (-Os): Ditto.
725         (-fmath-errno): Ditto.
726         (-falign-functions): Add UInteger flag to make sure flag gets full
727         int in cl_optimization structure.
728         (-falign-jumps): Ditto.
729         (-falign-labels): Ditto.
730         (-falign-loops): Ditto.
731         (-fsched-stalled-insns): Ditto.
732         (-fsched-stalled-insns-dep): Ditto.
734         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
735         definition.
736         (TARGET_OPTION_SAVE): Ditto.
737         (TARGET_OPTION_RESTORE): Ditto.
738         (TARGET_OPTION_PRINT): Ditto.
739         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
740         (TARGET_CAN_INLINE_P): Ditto.
741         (TARGET_INITIALIZER): Add new hooks.
743         * tree-inline.c (tree_can_inline_p): New function to determine
744         whether one function can inline another.  Check if the functions
745         use compatible optimization options, and also call the backend
746         can_inline_p hook.
748         * tree-inline.h (tree_can_inline_p): Add declaration.
750         * c-common.c (c_common_attribute): Add support for option and
751         optimize attributes.
752         (handle_option_attribute): Add support for the option attribute to
753         allow the user to specify different target options for compiling a
754         specific function.
755         (handle_optimize_attribute): Add support for the optimize
756         attribute to allow the user to specify different optimization
757         options for compiling a specific function.
758         (handle_hot_attribute): Turn on -O3 optimization for this one
759         function if it isn't the default optimization level.
760         (handle_cold_attribute): Turn on -Os optimization for this one
761         function if it insn't the default optimization.
762         (const_char_p): New const char * typedef.
763         (optimize_args): New static vector to remember the optimization
764         arguments.
765         (parse_optimize_options): New function to set up the optimization
766         arguments from either the optimize attribute or #pragma GCC
767         optimize.
769         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
770         (builtin_define_std): Ditto.
772         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
773         Add t-i386 Makefile fragment to add i386-c.o and i386.o
774         dependencies.
775         (x86_64-*-*): Ditto.
777         * Makefile.in (TREE_H): Add options.h.
778         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
780         * doc/extend.texi (option attribute): Document new attribute.
781         (optimize attribute): Ditto.
782         (hot attribute): Document hot attribute sets -O3.
783         (cold attribute): Document cold attribute sets -Os.
784         (#pragma GCC option): Document new pragma.
785         (#pragma GCC optimize): Ditto.
787         * doc/options.texi (TargetSave): Document TargetSave syntax.
788         (UInteger): Document UInteger must be used for certain flags.
789         (Save): Document Save option to create target specific options
790         that can be saved/restored on a function specific context.
792         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
793         macro.
794         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
796         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
797         hook.
798         (TARGET_OPTION_SAVE): Ditto.
799         (TARGET_OPTION_RESTORE): Ditto.
800         (TARGET_OPTION_PRINT): Ditto.
801         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
802         (TARGET_CAN_INLINE_P): Ditto.
804         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
805         -mfpmath=sse,387.
806         (-mfpmath=both): Ditto.
808 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
809             Karthik Kumar  <karthikkumar@gmail.com>
811         * config/i386/i386.h (TARGET_ABM): Move switch into
812         ix86_isa_flags.
813         (TARGET_POPCNT): Ditto.
814         (TARGET_SAHF): Ditto.
815         (TARGET_AES): Ditto.
816         (TARGET_PCLMUL): Ditto.
817         (TARGET_CMPXCHG16B): Ditto.
818         (TARGET_RECIP): Move switch into target_flags.
819         (TARGET_FUSED_MADD): Ditto.
820         (ix86_arch_features): Make an unsigned char type.
821         (ix86_tune_features): Ditto.
822         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
823         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
824         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
826         * config/i386/i386.opt (arch): New TargetSave field to define
827         fields that need to be saved for function specific option
828         support.
829         (tune): Ditto.
830         (fpmath): Ditto.
831         (branch_cost): Ditto.
832         (ix86_isa_flags_explicit): Ditto.
833         (tune_defaulted): Ditto.
834         (arch_specified): Ditto.
835         (-m128-long-double): Add Save flag to save option for target
836         specific option support.
837         (-m80387): Ditto.
838         (-maccumulate-outgoing-args): Ditto.
839         (-malign-double): Ditto.
840         (-malign-stringops): Ditto.
841         (-mfancy-math-387): Ditto.
842         (-mhard-float): Ditto.
843         (-mieee-fp): Ditto.
844         (-minline-all-stringops): Ditto.
845         (-minline-stringops-dynamically): Ditto.
846         (-mms-bitfields): Ditto.
847         (-mno-align-stringops): Ditto.
848         (-mno-fancy-math-387): Ditto.
849         (-mno-push-args): Ditto.
850         (-mno-red-zone): Ditto.
851         (-mpush-args): Ditto.
852         (-mred-zone): Ditto.
853         (-mrtd): Ditto.
854         (-msseregparm): Ditto.
855         (-mstack-arg-probe): Ditto.
856         (-m32): Ditto.
857         (-m64): Ditto.
858         (-mmmx): Ditto.
859         (-m3dnow): Ditto.
860         (-m3dnowa): Ditto.
861         (-msse): Ditto.
862         (-msse2): Ditto.
863         (-msse3): Ditto.
864         (-msse4.1): Ditto.
865         (-msse4.2): Ditto.
866         (-msse4): Ditto.
867         (-mno-sse4): Ditto.
868         (-msse4a): Ditto.
869         (-msse5): Ditto.
870         (-mrecip): Move flag into target_flags.
871         (-mcld): Ditto.
872         (-mno-fused-madd): Ditto.
873         (-mfused-madd): Ditto.
874         (-mabm): Move flag into ix86_isa_flags.
875         (-mcx16): Ditto.
876         (-mpopcnt): Ditto.
877         (-msahf): Ditto.
878         (-maes): Ditto.
879         (-mpclmul): Ditto.
881         * config/i386/i386-c.c: New file for #pragma support.
882         (ix86_target_macros_internal): New function to #define or #undef
883         target macros based when the user uses the #pragma GCC option to
884         change target options.
885         (ix86_pragma_option_parse): New function to add #pragma GCC option
886         support.
887         (ix86_target_macros): Move defining the target macros here from
888         TARGET_CPU_CPP_BUILTINS in i386.h.
889         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
890         defined, initialize any subtarget #pragmas.
892         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
893         REGISTER_TARGET_PRAGMAS.
895         * config/i386/t-i386: New file for x86 dependencies.
896         (i386.o): Make dependencies mirror the include files used.
897         (i386-c.o): New file, add dependencies.
899         * config/i386/i386-protos.h (override_options): Add bool
900         argument.
901         (ix86_valid_option_attribute_tree): Add declaration.
902         (ix86_target_macros): Ditto.
903         (ix86_register_macros): Ditto.
905         * config/i386/i386.c (ix86_tune_features): Move initialization of
906         the target masks to initial_ix86_tune_features to allow functions
907         to have different target options.  Make type unsigned char,
908         instead of unsigned int.
909         (initial_ix86_tune_features): New static vector to hold processor
910         masks for the tune variables.
911         (ix86_arch_features): Move initialization of the target masks to
912         initial_ix86_arch_features to allow functions to have different
913         target options.  Make type unsigned char, instead of unsigned
914         int.
915         (initial_ix86_arch_features): New static vector to hold processor
916         masks for the arch variables.
917         (enum ix86_function_specific_strings): New enum to describe the
918         string options used for attribute((option(...))).
919         (ix86_target_string): New function to return a string that
920         describes the target options.
921         (ix86_debug_options): New function to print the current options in
922         the debugger.
923         (ix86_function_specific_save): New function hook to save the
924         function specific global variables in the cl_target_option
925         structure.
926         (ix86_function_specific_restore): New function hook to restore the
927         function specific variables from the cl_target_option structure to
928         the global variables.
929         (ix86_function_specific_print): New function hook to print the
930         target specific options in the cl_target_option structure.
931         (ix86_valid_option_attribute_p): New function hook to validate
932         attribute((option(...))) arguments.
933         (ix86_valid_option_attribute_tree): New function that is common
934         code between attribute((option(...))) and #pragma GCC option
935         support that parses the options and returns a tree holding the
936         options.
937         (ix86_valid_option_attribute_inner_p): New helper function for
938         ix86_valid_option_attribute_tree.
939         (ix86_can_inline_p): New function hook to decide if one function
940         can inline another on a target specific basis.
941         (ix86_set_current_function); New function hook to switch target
942         options if the user used attribute((option(...))) or #pragma GCC
943         option.
944         (ix86_tune_defaulted): Move to static file scope from
945         override_options.
946         (ix86_arch_specified): Ditto.
947         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
948         ix86_isa_flags.
949         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
950         (OPTION_MASK_ISA_ABM_SET): Ditto.
951         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
952         (OPTION_MASK_ISA_CX16_SET): Ditto.
953         (OPTION_MASK_ISA_SAHF_SET): Ditto.
954         (OPTION_MASK_ISA_AES_UNSET): Ditto.
955         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
956         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
957         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
958         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
959         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
960         (struct ptt): Move to static file scope from override_options.
961         (processor_target_table): Ditto.
962         (cpu_names): Ditto.
963         (ix86_handle_option): Add support for options that are now isa
964         options.
965         (override_options): Add support for declaring functions that
966         support different target options than were specified on the
967         command line.  Move struct ptt, processor_target_table, cpu_names,
968         ix86_tune_defaulted, ix86_arch_specified to static file scope.
969         Add bool argument.  Fix up error messages so the appropriate error
970         is given for either command line or attribute.
971         (ix86_previous_fndecl): New static to remember previous function
972         declaration to see if we need to change target options.
973         (ix86_builtins_isa): New array to record the ISA of each builtin
974         function.
975         (def_builtin): Always create the builtin function, even if the
976         current ISA doesn't support it.
977         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
978         tests for those builtins.
979         (ix86_init_builtins): Remove TARGET_MMX test for calling
980         ix86_init_mmx_sse_builtins.
981         (ix86_expand_builtin): If the current ISA doesn't support a given
982         builtin, signal an error.
983         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
984         (TARGET_SET_CURRENT_FUNCTION): Ditto.
985         (TARGET_OPTION_SAVE): Ditto.
986         (TARGET_OPTION_RESTORE): Ditto.
987         (TARGET_OPTION_PRINT): Ditto.
988         (TARGET_CAN_INLINE_P): Ditto.
990 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
992        * c-typeck.c (build_external_ref): Don't call assemble_external.
993        * final.c (output_operand): Call assemble_external.
995 2008-07-21  DJ Delorie  <dj@redhat.com>
997         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
998         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1000 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1002         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1003         original insn and splitter contents into ...
1004         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1005         flag_unsafe_math_optimizations.  Add dummy scratch register.
1006         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1007         !flag_unsafe_math_optimizations.  Returns number with next
1008         highest magnitude if this is still less or equal to the true
1009         quotient in magnitude.
1011 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1013         * Makefile.in: Replace toplev.h with TOPLEV_H.
1014         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1015         * c-lex.c (fe_file_change): Don't set in_system_header.
1016         * c-parser.c (c_token): Remove in_system_header.
1017         (c_lex_one_token): Don't set in_system_header.
1018         (c_parser_set_source_position_from_token): Don't set in_system_header.
1019         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1020         diagnostic_info.
1021         (warning_at): New.
1022         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1023         * flags.h (in_system_header): Remove.
1024         * function.c (saved_in_system_header): Remove.
1025         (push_cfun): Don't set in_system_header.
1026         (pop_cfun): Don't set in_system_header.
1027         (push_struct_function): Don't set in_system_header.
1028         * input.h (expanded_location): Add sysp.
1029         (in_system_header_at): New.
1030         (in_system_header): New.
1031         * toplev.c (in_system_header): Remove.
1032         * toplev.h: Include input.h
1033         (warning_at): New.
1034         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1035         * tree-ssa.c (warn_uninit): Call warning_at.
1036         (warn_uninitialized_var): Update calls to warn_uninit.
1037         (warn_uninitialized_phi): Update calls to warn_uninit.
1038         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1039         (expand_location): Initialize xloc.sysp.
1040         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1041         (tree_decl_with_vis): Remove in_system_header_flag.
1043 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1045         PR target/36822
1046         * recog.c (asm_operand_ok): Change the order of the extra
1047         memory constraint checks.
1049 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1051         PR tree-opt/36879
1052         * tree-switch-conversion.c (build_one_array): Call
1053         varpool_mark_needed_node and varpool_finalize_decl 
1054         instead of assemble_variable.
1056 2008-07-19  Jan Hubicka  <jh@suse.cz>
1058         * cgraph.c (cgraph_add_new_function): Do early local passes.
1059         * tree-nrv.c (gate_pass_return_slot): New gate.
1060         (pass_nrv): Add the gate.
1061         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1062         functions.
1063         (coalesce_ssa_name): Coalesce SSA names.
1064         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1065         not optimizing so unused user vars remains visible.
1066         * common.opt (flag_tree_ter): Always enable by default.
1067         * tree-ssa-ter.c: Include flags.h
1068         (is_replaceable_p): Check that locations match; when aliasing is missing
1069         be conservative about loads.
1070         * tree-optimize.c (gate_init_datastructures): Remove.
1071         (pass_init_datastructures): New.
1072         * passes.c: Reorder passes so we always go into SSA.
1074 2008-07-19  Jan Hubicka  <jh@suse.cz>
1076         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1077         * doc/invoke.texi (--combine): Likewise.
1078         (-finline-functions-called-once): Update levels when enabled.
1079         (-funit-at-a-time): Document new behaviour.
1080         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1081         -fno-section-anchors when disabled explicitly.
1082         (inline params): They are not ignored now.
1083         (precompiled headers): Remove unit-at-a-time as being incompatible.
1084         * opts.c (decode_options): Handle unit-at-a-time as alias;
1085         imply -fno-section-anchors when toplevel reorder is disabled
1086         explicitly.
1087         * common.opt (ftoplevel-reorder): Set default value to 2.
1088         (funit-at-a-time): Set default value to 1.
1089         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1090         to 2.
1092 2008-07-19  Jan Hubicka  <jh@suse.cz>
1094         * builtins.c (expand_builtin_int_roundingfn,
1095         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1096         it is not useful.
1098 2008-07-19  Richard Guenther  <rguenther@suse.de>
1100         PR bootstrap/36864
1101         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1102         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1103         * tree-ssa-pre.c (get_expr_value_id): For newly created
1104         constant value-ids make sure to add the expression to its
1105         expression-set.
1107 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1109         PR middle-end/36877
1110         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1111         return value of the builtin is ignored.
1113 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1115         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1116         bits, a C conformant malloc implementation has to provide.
1117         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1119 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1121         PR target/36780
1122         PR target/36827
1123         * reload.c (find_reloads_subreg_address): Only reload address if
1124         reloaded == 0, not for reloaded != 1.
1126         Revert:
1127         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1128         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1129         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1130         m32c_legitimize_reload_address.
1132         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1133         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1134         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1136 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1138         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1139         argument, saying whether nested array are to be collapsed
1140         into a single array type DIE with multiple subscripts.
1141         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1142         issues, centralize the nested array types collapsing control and
1143         disable the transformation for Ada.
1144         
1145 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1147         PR target/36786
1148         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1149         x86_64_shift_adj.
1150         (x86_64_shift_adj_2): New expander.
1151         (x86_64_shift_adj_3): Ditto.
1152         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1153         to split TImode operands.
1154         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1155         (ix86_split_lshr): Ditto.
1157 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1159         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1160         and __CHAR32_TYPE__.
1161         * c-typeck.c (digest_init): Support char16_t and char32_t.
1162         (set_nonincremental_init_from_string): Idem.
1164 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1166         PR middle-end/36859
1167         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1168         PREFERRED_STACK_BOUNDARY.
1169         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1171 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1173         PR middle-end/36858
1174         * function.c (locate_and_pad_parm): Cap boundary earlier.
1176 2008-07-17  Julian Brown  <julian@codesourcery.com>
1178         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1179         no-op for targets which don't use DLLs.
1181 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1183         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1184         that nodes are relevant by examining the node->analyzed flag.
1185         (ipcp_init_stage): Check which nodes are relevant, assert that the
1186         relevant ones are also required.
1187         (ipcp_propagate_stage): Check on the side arrays are properly
1188         allocated.
1189         (ipcp_print_all_jump_functions): Make sure not to touch any node
1190         that is not analyzed or an edge that does not have a corresponding
1191         entry in the on-the-side vectors.
1192         (ipcp_function_scale_print): Likewise.
1193         (ipcp_update_callgraph): Check that the node is relevant.
1194         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1195         an info for every node and edge.
1196         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1197         (ipa_print_all_tree_maps): Likewise and a new variable info.
1198         (ipa_print_all_params_modified): Likewise.
1199         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1201 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1203         PR target/25343
1204         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1206 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1208         PR rtl-optimization/36753
1209         * fwprop.c (use_killed_between): Don't shortcut
1210         single-definition global registers.
1212 2008-07-16  Jan Hubicka  <jh@suse.cz>
1214         * cgraph.h (varpool_empty_needed_queue): Declare.
1215         * cgraphunit.c (output_in_order): Mark all variables as needed;
1216         empty the queue.
1217         * varpool.c (varpool_assemble_node): Update debug queue.
1218         (varpool_assemble_pending_decls): Don't do it here.
1219         (varpool_empty_needed_queue):  New function.
1221 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1223         * recog.c (peephole2_optimize): Fix formatting.
1225 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1227         * c-pch.c (get_ident): Avoid C++ keywords.
1228         * combine-stack-adj.c (single_set_for_csa): Likewise.
1229         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1230         output_asm_insn): Likewise.
1231         * reload.c (push_secondary_reload, find_reusable_reload,
1232         push_reload, combine_reloads, find_reloads,
1233         debug_reload_to_stream): Likewise.
1234         * reload.h (struct reload): Likewise.
1235         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1236         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1237         emit_output_reload_insns): Likewise.
1238         * targhooks.c (default_secondary_reload): Likewise.
1239         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1241 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1243         * recog.c (validate_change_1, validate_change,
1244         validate_unshare_change, validate_replace_rtx_1, struct
1245         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1246         keywords.
1247         * reload.c (push_secondary_reload, secondary_reload_class,
1248         scratch_reload_class, find_valid_class, find_reusable_reload,
1249         push_reload, find_dummy_reload, find_reloads_address_1,
1250         find_reloads_address_part, find_equiv_reg): Likewise.
1251         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1252         choose_reload_regs): Likewise.
1253         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1254         Likewise.
1255         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1256         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1257         * sched-rgn.c (concat_INSN_LIST): Likewise.
1258         * stor-layout.c (mode_for_size, mode_for_size_tree,
1259         smallest_mode_for_size): Likewise.
1261 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1263         * cfg.c (dump_reg_info): Avoid C++ keywords.
1264         * dwarf2asm.c (dw2_force_const_mem,
1265         dw2_asm_output_encoded_addr_rtx): Likewise.
1266         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1267         * expmed.c (expand_shift): Likewise.
1268         * global.c (find_reg): Likewise.
1269         * graph.c (draw_edge): Likewise.
1270         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1271         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1272         widen_clz, widen_bswap, expand_parity, expand_unop,
1273         emit_cmp_and_jump_insn_1): Likewise.
1274         * postreload.c (reload_cse_simplify_operands): Likewise.
1275         * ra.h (add_neighbor): Likewise.
1276         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1277         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1278         record_reg_classes, copy_cost, record_address_regs,
1279         invalid_mode_change_p): Likewise.
1280         * regrename.c (regrename_optimize, scan_rtx_reg,
1281         dump_def_use_chain, find_oldest_value_reg,
1282         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1284 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1286         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1287         MASK_POWERPC64 for power4 in previous commit.
1289 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1291         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1292         instead of bare conversion to cast const-ness away.
1294 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1296         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1297         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1298         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1299         (TARGET_FUNCTION_VALUE): Define.
1301 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1303         * config/rs6000/rs6000.c (processor_target_table): Add
1304         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1306 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1308         PR target/36827
1309         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1310         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1311         m32c_legitimize_reload_address.
1313 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1315        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1316        DECL_IN_SYSTEM_HEADER in sync.
1318 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1320         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1321         * tree-ssa-pre.c (pre_expr_eq): Ditto
1322         (get_constant_for_value_id): Take a type as an argument.
1323         (fully_constant_expression): Pass in type.
1324         (find_or_generate_expression): Short circuit constant case.
1325         (create_expression_by_pieces): Remove special casing of
1326         pointer_plus.
1327         (do_regular_insertion): Short circuit constant case.
1328         (do_partial_partial_insertion): Ditto.
1330 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1332         PR target/36782
1333         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1335 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1336         
1337         * config/xtensa/libgcc-xtensa.ver: New file.
1338         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1339         
1340 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1342         * df-problems.c (df_set_note): Avoid C++ keywords.
1343         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1344         * dse.c (record_store, remove_useless_values): Likewise.
1345         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1346         gen_reg_rtx_offset, operand_subword, change_address_1,
1347         change_address, adjust_address_1, offset_address,
1348         widen_memory_access, emit_copy_of_insn_after): Likewise.
1349         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1350         * fwprop.c (should_replace_address, propagate_rtx_1,
1351         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1352         Likewise.
1353         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1354         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1355         * lcm.c (compute_insert_delete, pre_edge_lcm,
1356         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1357         * lower-subreg.c (resolve_reg_notes): Likewise.
1358         * mode-switching.c (optimize_mode_switching): Likewise.
1360 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1362         * bt-load.c (add_btr_def, migrate_btr_def,
1363         branch_target_load_optimize): Avoid C++ keywords.
1364         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1365         Likewise.
1366         * combine.c (subst, simplify_set, make_extraction,
1367         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1368         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1369         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1371 2008-07-15  Richard Guenther  <rguenther@suse.de>
1373         PR middle-end/36369
1374         * c-common.c (strict_aliasing_warning): Do not warn for
1375         TYPE_REF_CAN_ALIAS_ALL pointers.
1376         (c_common_get_alias_set): may_alias types are not special.
1377         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1378         attribute and set can_ref_all accordingly.
1379         (build_reference_type_for_mode): Likewise.
1380         * doc/extend.texi (may_alias): Clarify.
1382 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1384         PR target/36780
1385         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1386         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1388 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1390         PR target/31568
1391         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1392         gcc_assert, instead call output_operand_lossage.
1394 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1396         * builtins.c (std_canonical_va_list): Treat structure based
1397         va_list types.
1399 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1401         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1403 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1405         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1406         is set.
1408 2008-07-14  Jan Hubicka  <jh@suse.cz>
1410         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1411         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1412         fix predicates and constraints.
1413         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1414         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1416 2008-07-14  Doug Kwan  <dougkwan@google.com>
1418         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1419         additional option file arm/eabi.opt.
1420         * config/arm/eabi.h (File): New configuration file for EABI targets.
1421         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1422         SUBSUBTARGET_EXTRA_SPECS.
1423         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1424         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1425         from STARTFILE_SPEC so that it can be referenced in an override.
1426         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1427         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1428         can be referenced in an override.
1429         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1430         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1431         so that it can be referenced in an override.
1432         (LINK_SPEC): Use BPABI_LINK_SPEC.
1433         * config/arm/eabi.opt (File): New.
1435 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1437         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1438         (FIXED_VALUE_H): New variable.
1439         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1440         input.h, fixed-value.h.
1441         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1442         (BASIC_BLOCK_H): Use $(BITMAP_H).
1443         (FUNCTION_H): Add varray.h.
1444         (IPA_REFERENCE_H): Use $(BITMAP_H).
1445         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1446         (DF_H): Use $(BITMAP_H).
1447         (GGC_H): Add statistics.h.
1448         (INSN_ADDR_H): New.
1449         (INSN_ATTR_H): Use it.
1450         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1451         (INPUT_H): New.
1452         (SYMTAB_H): Add $(OBSTACK_H).
1453         (CPP_INTERNAL_H): New.
1454         (TREE_DUMP_H): Add tree-pass.h.
1455         (TREE_FLOW_H): Use $(BITMAP_H)
1456         (PRETTY_PRINT_H): Use $(INPUT_H).
1457         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1458         (GSTAB_H): New.
1459         (BITMAP_H): New.
1460         (many object files): Fix lots of header dependencies throughout.
1462 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1464         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1465         New macros.
1466         (s-gtyp-input): Use them to write tmp-gi.list.
1467         (echo_to_gi.list): Remove.
1469 2008-07-14  Richard Guenther  <rguenther@suse.de>
1471         * tree-ssa-sccvn.c (pre_info): Remove.
1472         (switch_to_PRE_table): Likewise.
1473         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1474         (set_hashtable_value_ids): Do not create value-ids for the
1475         optimistic tables.
1476         (run_scc_vn): Remove double test.  Remove bogus special-case
1477         in value-number printing.
1478         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1479         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1480         SSA_NAME_VALUE.
1481         * tree-flow-inline.h (get_value_handle): Remove.
1482         * tree-flow.h (get_value_handle): Remove.
1484 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1486         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1487         in which we generate arithmetics is not a subrange.
1489 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1491         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1493 2008-07-14  Richard Guenther  <rguenther@suse.de>
1495         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1497 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1499         PR target/36745
1500         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1501         reload for symbol refs moved to r0 with -fPIC.
1502         (legitimize_pic_address): Use the target register as temporary
1503         reg if possible.
1504         (emit_symbolic_move): Adjust comment.
1505         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1506         New expanders.
1508 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1510         * c-common.h (C_CPP_HASHNODE): New macro.
1511         * coretypes.h (struct cpp_token): Forward declare.
1512         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1513         the context-sensitive keyword method.
1514         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1515         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1516         expand_bool_pixel): New.
1517         (altivec_categorize_keyword): New function.
1518         (init_vector_keywords): New function.
1519         (rs6000_macro_to_expand): Likewise.
1520         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1521         compiling an ISO C dialect.
1523 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1525         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1526         (create_expression_by_pieces): Fix typo.
1527         (do_regular_insertion): Use debug counter here too.
1529 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1531         PR target/35492.
1532         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1533         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1534         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1535         implement Kp matching power-of-two.
1536         (CONSTRAINT_LEN): Define to match.
1537         * config/cris/cris.md: Replace all use of constraint K with Kc.
1538         ("*btst*): Use Kp for operand 0 of last alternative.
1540 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1542         PR testsuite/36440
1543         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1544         and quad formats.
1546 2008-07-13  Jan Hubicka  <jh@suse.cz>
1548         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1549         to be mangled too.
1551 2008-07-13  Richard Guenther  <rguenther@suse.de>
1553         PR middle-end/36811
1554         * langhooks.c (lhd_print_error_function): Deal with recursive
1555         BLOCK trees.
1557 2008-07-12  Jan Hubicka  <jh@suse.cz>
1559         * cgraph.c (assembler_name_hash): New static var.
1560         (hash_node_by_assembler_name, eq_assembler_name): New.
1561         (cgraph_node_for_asm): Use hashtable.
1562         (cgraph_remove_node): Maintain hashtable.
1563         (change_decl_assembler_name): Sanity check that names are not changing
1564         after aliasing was processed.
1565         * cgraph.h (varpoon_node): Add next GGC marker.
1566         * tree.c (decl_assembler_name_equal): Constify.
1567         (decl_assembler_name_hash): New.
1568         * tree.h (decl_assembler_name_equal): Constify.
1569         (decl_assembler_name_hash): Update.
1571 2008-07-12  David Daney  <ddaney@avtrex.com>
1573         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1574         sb1 and r5000 cpus.
1576 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1578         * doc/md.texi: Document the MIPS "v" constraint.
1579         * config/mips/mips.h (reg_class): Revert last change.
1580         (REG_CLASS_NAMES): Likewise.
1581         (REG_CLASS_CONTENTS): Likewise.
1582         * config/mips/mips.c (mips_regno_to_class): Likewise.
1583         * config/mips/constraints.md (v): Likewise, but add documentation.
1584         Add a comment to say that this constraint should not be used in
1585         gcc code.
1587 2008-07-11  DJ Delorie  <dj@redhat.com>
1589         * config/h8300/h8300.md (length): Fix branch offset limit.
1591 2008-07-11  Anatoly Sokolov  <aesok@post.ru>    
1593         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1594         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1595         (avr_hard_regno_scratch_ok): New function.
1596         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1597         * config/avr/avr.md (all peepholes that request a scratch register):
1598         Remove avr_peep2_scratch_safe use.
1600 2008-07-11  Tom Tromey  <tromey@redhat.com>
1601             Ian Lance Taylor  <iant@google.com>
1603         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1604         (struct c_common_resword): Define.
1605         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1606         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1607         (c_common_reswords, num_c_common_reswords): Declare.
1608         * c-common.c (c_common_reswords): New global const array.
1609         (num_c_common_reswords): New const int.
1610         * c-parser.c (struct resword, reswords): Don't define.
1611         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1612         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1613         than reswords.  If warning about C++ keywords, give them a special
1614         RID code.
1615         (c_lex_one_token): Warn about C++ keywords.  Call
1616         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1617         (c_parser_external_declaration): Look for RID_xxx rather than
1618         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1619         (c_parser_statement_after_labels): Likewise.
1620         (c_parser_objc_class_instance_variables): Likewise.
1621         (c_parser_objc_class_declaration): Likewise.
1622         (c_parser_objc_try_catch_statement): Likewise.
1623         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1624         (declspecs_add_type): Likewise.
1626 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1628         * ggc-page.c (alloc_page):
1629         Substituting xmalloc, xcalloc with
1630         XNEWVEC and XCNEWVAR macros which add the
1631         needed casts.
1633 2008-07-11  Richard Guenther  <rguenther@suse.de>
1635         PR tree-optimization/36765
1636         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1637         aliases from HEAP vars to SMTs.
1639 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1641         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1642         * configure.ac (loose_warn): Move -Wc++-compat from here...
1643         (strict_warn): ...to here.
1644         * configure: Regenerate.
1646 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
1648         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
1649         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
1650         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
1651         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
1652         excluding more specific h8300-*-* and sh-*-* targets.
1654 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
1656         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
1657         (eliminate): Ditto.
1658         (execute_pre): Call loop_optimizer_finalize in early exit.
1660 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
1662         PR middle-end/36790
1663         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
1664         uids in the bitmap, not just VAR_DECL uids.
1666         PR rtl-optimization/36419
1667         * combine-stack-adj.c (adjust_frame_related_expr): New function.
1668         (combine_stack_adjustments_for_block): Call it if needed.  Delete
1669         correct insn.
1670         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
1671         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
1672         prologue sp adjustment.
1674 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
1676         PR other/28322
1677         * opts.c (print_ignored_options): Report postponed diagnostics for
1678         unknown -Wno-* options as warnings, not errors.
1679         (postpone_unknown_option_error): Renamed to...
1680         (postpone_unknown_option_warning): ... this.
1682 2008-07-09  Doug Kwan  <dougkwan@google.com>
1684         Revert:
1685         2008-07-08  Doug Kwan  <dougkwan@google.com>
1687         * config/arm/arm.opt (mandroid): New option.
1688         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1689         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1690         (CC1_SPEC): Same.
1691         (CC1PLUS_SPEC): Same.
1692         (LIB_SPEC): Same.
1693         (STARTFILE_SPEC): Same.
1694         (ENDFILE_SPEC): Same.
1695         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1696         used.
1698 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
1700         PR target/35802
1701         * config/mips/mips.h (reg_class): Remove V1_REG.
1702         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1703         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
1704         instead of V1_REGS.
1705         (mips_get_tp): New function.
1706         (mips_legitimize_tls_address): Use it.
1707         * config/mips/constraints.md (v): Delete.
1708         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
1709         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
1710         After reload, split into a move and ...
1711         (*tls_get_tp_<mode>_split): ...this new instruction.
1713 2008-07-09  David Daney  <ddaney@avtrex.com>
1715         * config/mips/driver-native.c: Include coretypes.h and tm.h.
1717 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
1719         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
1720         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
1721         Add c argument.
1722         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
1723         htab_delete should be called.  Don't free c.
1724         (lookup_tmp_var): Create temp_htab lazily.
1725         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1726         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
1727         callers.
1728         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1729         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1730         create_task_copyfn, lower_omp_taskreg, execute_lower_omp): 
1731         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
1732         * tree-sra.c (generate_element_init): Likewise.
1733         * tree-mudflap.c (execute_mudflap_function_ops,
1734         execute_mudflap_function_decls): Likewise.
1735         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
1736         * tree-gimple.h (struct gimplify_ctx): New type.
1737         (push_gimplify_context): Adjust prototype.
1739 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
1741         * tree-ssa-pre.c (phi_translate_1): Update placement of
1742         add_to_value calls.
1744 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
1746         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
1747         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
1748         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
1749         * targhooks.c (default_hard_regno_scratch_ok): New function.
1750         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
1751         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
1752         * recog.c:  Include "target.h".
1753         (peep2_find_free_register): Add check for global regs. Add target
1754         specific check.
1755         * Makefile.in (recog.o): Depend on target.h.
1757 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1759         * config/sh/sh.c (sh_canonical_va_list_type): New.
1760         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
1762 2008-07-09  Raksit Ashok <raksit@google.com>
1764         * doc/invoke.texi (Option Summary): Mention new option
1765         -Wdisallowed-function-list=...
1766         (Warning Options): Document -Wdisallowed-function-list=...
1767         * common.opt (Wdisallowed-function-list=): New flag.
1768         * flags.h (warn_disallowed_functions): External definition of new
1769         boolean warning flag.
1770         (warn_if_disallowed_function_p): Declare new function.
1771         * opts.c (warning_disallowed_functions): New static variable.
1772         (warn_disallowed_functions): New boolean warning flag.
1773         (warn_if_disallowed_function_p): New function.
1774         (add_comma_separated_to_vector): Rename
1775         add_instrument_functions_exclude_list to this.
1776         (common_handle_option): Handle new option. Rename calls to
1777         add_instrument_functions_exclude_list into calls to
1778         add_comma_separated_to_vector.
1779         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
1780         based on flag warn_disallowed_functions.
1782 2008-07-09  Christian Bruel  <christian.bruel@st.com>
1784         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
1785          instead of get_attr_length.
1787 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1789         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
1790         keywords.
1791         * genemit.c (gen_insn): Likewise.
1792         * gengtype.c (note_def_vec): Likewise.
1793         * gengtype.h (note_def_vec): Likewise.
1794         * genoutput.c (struct data, output_insn_data, process_template,
1795         gen_expand, gen_split, note_constraint): Likewise.
1796         * genrecog.c (new_decision, add_to_sequence, factor_tests,
1797         make_insn_sequence): Likewise.
1798         * gensupport.c (record_insn_name): Likewise.
1800 2008-07-08  Doug Kwan  <dougkwan@google.com>
1802         * config/arm/arm.opt (mandroid): New option.
1803         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
1804         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
1805         (CC1_SPEC): Same.
1806         (CC1PLUS_SPEC): Same.
1807         (LIB_SPEC): Same.
1808         (STARTFILE_SPEC): Same.
1809         (ENDFILE_SPEC): Same.
1810         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
1811         used.
1813 2008-07-08  Raksit Ashok  <raksit@google.com>
1815         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
1816         (set_storage_via_setmem): Fix expected_align parameter.
1817         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
1818         missing from the list.
1819         * doc/md.texi (movmem): Explicitly state that expected alignment is
1820         to be expressed in bytes.
1821         (setmem): Explicitly state that expected alignment is to be expressed
1822         in bytes.
1824 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
1826         * reload.c (find_reloads_subreg_address): Do not require validity
1827         of address in original mode before reloading address.
1829 2008-07-07  Tianwei Sheng  <tianweis@google.com>
1831         * df-core.c (df_remove_problem): Adjust the access to avoid out of
1832         bounds array access.
1834 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
1836         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
1838 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
1839         
1840         Fix PR tree-optimization/23455
1841         Fix PR tree-optimization/35286
1842         Fix PR tree-optimization/35287
1843         * Makefile.in (OBJS-common): Remove tree-vn.o.
1844         (tree-vn.o): Remove.
1845         * dbgcnt.def: Add treepre_insert debug counter.
1846         * gcc/tree-flow.h (add_to_value): Updated for other changes.
1847         (debug_value_expressions): Ditto.
1848         (print_value_expressions): Ditto.
1849         * tree-pretty-print.c (dump_generic_node): Updated for
1850         VALUE_HANDLE removal.
1851         * tree-ssa-dom.c (record_equality): Ditto.
1852         (cprop_operand): Ditto.
1853         (lookup_avail_expr): Ditto.
1854         * tree-ssa-threadedge.c
1855         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
1856         (simplify_control_stmt_condition): Ditto.
1857         * tree.c (tree_code_size): Ditto.
1858         (tree_node_structure): Ditto.
1859         (iterative_hash_expr): Ditto.
1860         * tree.def: Ditto.
1861         * tree.h (VALUE_HANDLE_ID): Ditto.
1862         (VALUE_HANDLE_EXPR_SET): Ditto.
1863         (struct tree_value_handle): Ditto.
1864         (union tree_node): Ditto.
1865         * treestruct.def: Ditto.
1866         * tree-vn.c: Removed.
1867         * tree-ssa-pre.c: Rewritten entirely.
1868         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
1869         (constant_value_ids): Ditto.
1870         (vn_nary_op_t): Moved to header.
1871         (vn_phi_t): Ditto.
1872         (vn_reference_op_t): Ditto
1873         (vn_reference_t): Ditto.
1874         (next_value_id): New variable.
1875         (VN_INFO): Add an assert.
1876         (vn_constant_eq): New function.
1877         (vn_constant_hash): Ditto.
1878         (get_or_alloc_constant_value_id): Ditto.
1879         (value_id_constant_p): Ditto.
1880         (vn_reference_compute_hash): De-staticify.
1881         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
1882         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
1883         (valueize_refs): Update opcode if it changes from ssa name to constant.
1884         (vn_reference_lookup_1): Add new argument.
1885         (vn_reference_lookup):  Ditto.
1886         (vn_reference_lookup_pieces): New function.
1887         (vn_reference_insert): Add return type. Modify to deal with value ids.
1888         (vn_reference_insert_pieces):  New function.
1889         (vn_nary_op_compute_hash): De-staticify.
1890         (vn_nary_op_eq): Ditto.
1891         (vn_nary_op_lookup_pieces): New function.
1892         (vn_nary_op_lookup): Add new argument.  
1893         (vn_nary_op_insert_pieces): New function.
1894         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
1895         (vn_phi_insert): Ditto.
1896         (visit_unary_op): Update for callee changes.
1897         (visit_binary_op): Ditto.
1898         (visit_reference_op_load): Ditto.
1899         (visit_reference_op_store): Ditto.
1900         (init_scc_vn): Init next_value_id, constant_to_value_id and
1901         constant_value_ids. 
1902         (free_scc_vn): Free them.
1903         (set_hashtable_value_ids): New function.
1904         (run_scc_vn): Use it.
1905         (get_max_value_id): New function.
1906         (get_next_value_id): Ditto.
1907         (expressions_equal_p): Moved from tree-vn.c
1908         (sort_vuses): Ditto.
1909         (sort_vuses_heap): Ditto.
1910         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
1911         above).
1912         * tree.c (iterative_hash_hashval_t): Made non-static
1913         * tree.h (iterative_hash_hashval_t): Declare it.
1914         
1915 2008-07-08  Martin Jambor  <mjambor@suse.cz>
1917         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
1918         instead of ipa_create_node_params.
1919         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
1920         ipa_check_create_edge_args, free them with
1921         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
1923         * ipa-prop.c: Include flags.h and tree-inline.h.
1924         (ipa_node_params_vector): New variable.
1925         (ipa_edge_args_vector): New variable.
1926         (edge_removal_hook_holder): New variable.
1927         (node_removal_hook_holder): New variable.
1928         (edge_duplication_hook_holder): New variable.
1929         (node_duplication_hook_holder): New variable.
1930         (ipa_detect_param_modifications): Check for presence of modified flags.
1931         (ipa_compute_jump_functions): Check for presence of jump functions.
1932         (ipa_free_edge_args_substructures): New function.
1933         (ipa_create_node_params): Removed.
1934         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
1935         (ipa_free_node_params_substructures): New function.
1936         (ipa_free_all_node_params): Changed to deallocate the on-the-side
1937         vector.
1938         (ipa_edge_removal_hook): New function.
1939         (ipa_node_removal_hook): New function.
1940         (duplicate_array): New function.
1941         (ipa_edge_duplication_hook): New function.
1942         (ipa_node_duplication_hook): New function.
1943         (ipa_register_cgraph_hooks): New function.
1944         (ipa_unregister_cgraph_hooks): New function.
1945         (free_all_ipa_structures_after_ipa_cp): New function.
1946         
1947         * ipa-prop.h: Include vec.h.
1948         (ipa_node_params_t): New typedef with vector types for it.
1949         (ipa_edge_args_t):  New typedef with vector types for it.
1950         (IPA_NODE_REF): Changed to access an on-the-side vector.
1951         (IPA_EDGE_REF): Changed to access an on-the-side vector.
1952         (ipa_check_create_node_params): New function.
1953         (ipa_check_create_edge_args): New function.
1954         
1955         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
1956         all users.
1957         
1958 2008-07-07  Tom Tromey  <tromey@redhat.com>
1960         * configure, config.in: Rebuilt.
1961         * configure.ac: Don't check for scandir or alphasort.
1963 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
1965         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
1966         types immediately after creating them.
1968 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
1970         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
1972 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
1974         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
1975         dump_constraint_graph.
1976         (dump_constraint_edge): New function.
1977         (dump_constraint_graph): New function.
1978         (debug_constraint_graph): New function.
1979         (dump_constraint): Removed useless comparison.
1980         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
1981         (dump_constraint_graph): Declare.
1982         (debug_constraint_graph): Declare.
1983         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
1985 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
1987         * config/i386/i386.c (is_va_list_char_pointer): New.
1988         (ix86_va_start): Replace compare with ms_va_list_type_node
1989         by is_va_list_char_pointer.
1990         (ix86_gimplify_va_arg): Likewise.
1992 2008-07-07  Martin Jambor  <mjambor@suse.cz>
1994         * cgraph.c (cgraph_edge_max_uid): New variable.
1995         (struct cgraph_edge_hook_list): New type.
1996         (struct cgraph_node_hook_list): New type.
1997         (struct cgraph_2edge_hook_list): New type.
1998         (struct cgraph_2node_hook_list): New type.
1999         (first_cgraph_edge_removal_hook): New variable.
2000         (first_cgraph_node_removal_hook): New variable.
2001         (first_cgraph_edge_duplicated_hook): New variable.
2002         (first_cgraph_node_duplicated_hook): New variable.
2003         (cgraph_add_edge_removal_hook): New function.
2004         (cgraph_remove_edge_removal_hook): New function.
2005         (cgraph_call_edge_removal_hooks):  New function.
2006         (cgraph_add_node_removal_hook):  New function.
2007         (cgraph_remove_node_removal_hook):  New function.
2008         (cgraph_call_node_removal_hooks):  New function.
2009         (cgraph_add_edge_duplication_hook):  New function.
2010         (cgraph_remove_edge_duplication_hook):  New function.
2011         (cgraph_call_edge_duplication_hooks):  New function.
2012         (cgraph_add_node_duplication_hook):  New function.
2013         (cgraph_remove_node_duplication_hook):  New function.
2014         (cgraph_call_node_duplication_hooks):  New function.
2015         (cgraph_create_edge): Assign to edge uid.
2016         (cgraph_remove_edge): Call edge removal hooks.
2017         (cgraph_node_remove_callees): Call edge removal hooks.
2018         (cgraph_node_remove_callers): Call edge removal hooks.
2019         (cgraph_remove_node): Call node removal hooks.
2020         (cgraph_clone_edge): Call edge duplication hooks.
2021         (cgraph_clone_node): Call node duplication hooks.
2023         * cgraph.h (cgraph_edge): New field uid.
2024         (cgraph_edge_hook): New type.
2025         (cgraph_node_hook): New type.
2026         (cgraph_2edge_hook): New type.
2027         (cgraph_2node_hook): New type.
2029 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2031         * config.in: Regenerate.
2033 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2035         * gcc.c (print_sysroot): New.
2036         (option_map, display_help, process_command): Handle the
2037         -print-sysroot option.
2038         (main): Print the sysroot if requested.
2039         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2040         
2041 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2043         PR target/34780
2044         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2046 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2048         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2049         (assign_parm_setup_block_p): Also check mode of entry_parm.
2051 2008-07-07  Richard Guenther  <rguenther@suse.de>
2053         * tree-ssa-structalias.h (set_used_smts): Remove.
2054         * tree-ssa-structalias.c (used_smts): Likewise.
2055         (set_used_smts): Likewise.
2056         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2057         call to set_used_smts.
2059 2008-07-07  Richard Guenther  <rguenther@suse.de>
2061         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2062         (new_var_info): Set it to false.
2063         (solution_set_add): Correctly handle pointers outside a var and
2064         inside a field.
2065         (type_safe): Treat variables with is_full_var properly.
2066         (do_sd_constraint): Likewise.
2067         (do_ds_constraint): Likewise.
2068         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2069         (get_constraint_for_ptr_offset): New function.
2070         (get_constraint_for_component_ref): For addresses at least include
2071         the last field of the variable.  Handle is_full_vars properly.
2072         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2073         (handle_ptr_arith): Remove.
2074         (find_func_aliases): Simplify assignment handling.
2075         (create_function_info_for): For parameter and result varinfos set
2076         is_full_var flag.
2077         (create_variable_info_for): Set is_full_var flag whenever we
2078         just created a single varinfo for a decl.
2079         (init_alias_vars): Initialize use_field_sensitive from
2080         max-fields-for-field-sensitive parameter.
2082 2008-07-07  Richard Guenther  <rguenther@suse.de>
2084         PR tree-optimization/36713
2085         * tree-flow-inline.h (is_call_used): New function.
2086         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2087         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2088         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2090 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2092         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2093         
2094 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2096         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2098 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2099             Nathan Sidwell  <nathan@codesourcery.com>
2101         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2102         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2103         tmake_file.
2104         * config/m68k/t-linux: New.
2105         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2106         default.
2108 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2110         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2111         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2112         by MAC/EMAC.
2114 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2116         * gcc.c (execute): Fix -Wc++-compat warning.
2118 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2120         PR target/36720
2121         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2122         constant for little endian.
2124 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2126         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2127         mips_base_mips16 instead of TARGET_MIPS16.
2128         (mips_base_mips16): Declare.
2129         * config/mips/mips.c (mips_base_mips16): Make global.
2130         (was_mips16_p): Remove GTY marker.
2131         (was_mips16_pch_p): New variable.
2132         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2133         (mips_override_options): Force to non-MIPS16 mode initially.
2134         Do not complain about MIPS16 PIC incompatibilities here.
2135         Only allow -mgpopt if -mexplicit-relocs is in force for
2136         non-MIPS16 code.
2138 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2140         * configure.ac: Check for caddr_t, define to char * if not defined.
2141         * configure: Regenerate.
2142         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2143         (mmap_gt_pch_use_address): Likewise.
2144         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2146 2008-07-06  Richard Guenther  <rguenther@suse.de>
2148         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2149         (new_var_info): Deal with it.
2150         (solution_set_add): Likewise.
2151         (bitpos_of_field): Make signed, fix.
2152         (struct fieldoff): Remove type and decl fields.  Make size field
2153         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2154         flags.
2155         (fieldoff_compare): Deal with it.
2156         (push_fields_onto_fieldstack): Remove has_union argument, glob
2157         adjacent non-pointer fields together.
2158         (create_function_info_for): Do not set has_union.
2159         (create_variable_info_for): Simplify.
2161 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2163         * config.gcc (extra_headers): Add cross-stdarg.h for target
2164         x86_64-*-* and i?86-*-*.
2165         * config/i386/cross-stdarg.h: New.
2166         * builtins.c (std_fn_abi_va_list): New.
2167         (std_canonical_va_list_type): New.
2168         (stabilize_va_list): Replace va_list_type_node use by
2169         mtarget.canonical_va_list_type.
2170         (gimplify_va_arg_expr): Likewise.
2171         (expand_builtin_va_copy): Replace va_list_type_node use by
2172         mtarget.fn_abi_va_list.
2173         * tree-sra.c (is_va_list_type): New helper.
2174         (decl_can_be_decomposed_p): Replace
2175         va_list_type_node use by is_va_list_type.
2176         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2177         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2178         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2179         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2180         (ix86_enum_va_list): New.
2181         * config/i386/i386.c (sysv_va_list_type_node): New.
2182         (ms_va_list_type_node): New.
2183         (ix86_function_type_abi): Remove sorry.
2184         (ix86_build_builtin_va_list_abi): New.
2185         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2186         for 64-bit targets.
2187         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2188         (ix86_init_builtins_va_builtins_abi): New.
2189         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2190         for 64-bit targets.
2191         (ix86_handle_abi_attribute): New.
2192         (attribute_spec): Add sysv_abi and ms_abi.
2193         (ix86_fn_abi_va_list): New.
2194         (ix86_canonical_va_list_type): New.
2195         (ix86_enum_va_list): New.
2196         (TARGET_FN_ABI_VA_LIST): New.
2197         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2198         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2199         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2200         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2201         (TARGET_ENUM_VA_LIST): New.
2202         * expr.h (std_fn_abi_va_list): New.
2203         (std_canonical_va_list_type): New.
2204         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2205         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2206         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2207         TARGET_CANONICAL_VA_LIST_TYPE.
2208         * target.h (struct gcc_target): Add fn_abi_va_list hook
2209         and canonical_va_list_type hook.
2211 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2213         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2214         integral and pointer types.
2216 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2218         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2219         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2221 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2223         PR target/36684
2224         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2226 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2228         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2229         build_gimple_modify_stmt.
2230         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2231         gimple operand.  Use fold_build* instead of build*.
2233 2008-07-04  Richard Guenther  <rguenther@suse.de>
2235         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2236         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2237         properly to compute the reachability set if we do field-sensitive PTA.
2238         * invoke.texi (max-fields-for-field-sensitive): Document default.
2239         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2240         100 for optimize >= 2.
2242 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2244         * ggc-zone.c (lookup_page_table_if_allocated,
2245         set_page_table_entry, zone_find_object_size, alloc_small_page,
2246         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2247         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2248         -Wc++-compat and/or -Wcast-qual warnings.
2250 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2252         PR target/36634
2253         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2254         pic_offset_table_rtx to be marked as used here.
2255         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2256         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2257         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2258         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2259         !TARGET_SECURE_PLT.
2261 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2263         * alloc-pool.c (hash_descriptor, eq_descriptor,
2264         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2265         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2266         Likewise.
2267         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2268         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2269         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2270         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2271         Likewise.
2273 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2275         * tree-flow.h (loop_only_exit_p): Declare.
2276         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2277         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2278         the number of iterations if it is constant.  Otherwise, if this is the
2279         only possible exit of the loop, use the conservative estimate on the
2280         number of iterations of the entire loop if available.
2282 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2284         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2285         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2286         Add synchronization functions.
2287         * config/sync.c: New file.
2288         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2289         (LIBGCC_SYNC_CFLAGS): Likewise.
2291 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2293         PR target/36710
2294         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2295         (*pushtf_sse): New insn pattern.
2296         (pushtf splitters): New splitters.
2298 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2300         PR middle-end/35736
2301         * predict.c (build_predict_expr): Use void_type_node for the tree
2302         type, instead of NULL_TREE.
2304 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2306         * config/i386/i386.c (contains_aligned_value_p): Return true
2307         for TCmode.
2308         (ix86_data_alignment): Align TCmode to 128bits.
2309         (ix86_local_alignment): Likewise.
2311 2008-07-03  Andrew Haley  <aph@redhat.com>
2313         PR bootstrap/33304
2314         * vec.h (VEC_TA): New.
2315         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2316         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2317         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2318         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2319         (C_COMMON_FIXED_TYPES): Remove first arg.
2320         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2321         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2322         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2323         not to use empty macro arguments.
2325 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2327         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2328         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2329         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2330         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2331         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2332         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2333         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2334         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2335         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2336         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2337         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2338         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2339         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2340         config/rs6000/e500crtres64gpr.asm,
2341         config/rs6000/e500crtres64gprctr.asm,
2342         config/rs6000/e500crtrest32gpr.asm,
2343         config/rs6000/e500crtrest64gpr.asm,
2344         config/rs6000/e500crtresx32gpr.asm,
2345         config/rs6000/e500crtresx64gpr.asm,
2346         config/rs6000/e500crtsav32gpr.asm,
2347         config/rs6000/e500crtsav64gpr.asm,
2348         config/rs6000/e500crtsav64gprctr.asm,
2349         config/rs6000/e500crtsavg32gpr.asm,
2350         config/rs6000/e500crtsavg64gpr.asm,
2351         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2352         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2353         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2354         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2355         config/sparc/sol2-cn.asm: Remove .file directives.
2357 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2359         * resource.c (mark_referenced_resources): Look inside
2360         UNSPEC_VOLATILEs and ASM_INPUTs.
2362 2008-07-02  Ian Lance Taylor  <iant@google.com>
2364         * rtlanal.c (add_reg_note): New function.
2365         * rtl.h (add_reg_note): Declare.
2366         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2367         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2368         * builtins.c (expand_builtin_longjmp): Likewise.
2369         (expand_builtin_nonlocal_goto): Likewise.
2370         * calls.c (emit_call_1, expand_call): Likewise.
2371         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2372         * cfglayout.c (fixup_reorder_chain): Likewise.
2373         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2374         (commit_one_edge_insertion): Likewise.
2375         * combine.c (move_deaths, distribute_notes): Likewise.
2376         * df-problems.c (df_set_note): Likewise.
2377         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2378         (set_unique_reg_note): Likewise.
2379         (emit_copy_of_insn_after): Likewise.
2380         * expr.c (expand_expr_real): Likewise.
2381         * gcse.c (add_label_notes): Likewise.
2382         * haifa-sched.c (create_check_block_twin): Likewise.
2383         * jump.c (mark_jump_label_1): Likewise.
2384         * loop-doloop.c (add_test, doloop_modify): Likewise.
2385         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2386         * lower-subreg.c (move_eh_region_note): Likewise.
2387         * optabs.c (emit_libcall_block): Likewise.
2388         * predict.c (predict_insn): Likewise.
2389         (combine_predictions_for_insn): Likewise.
2390         * recog.c (peephole2_optimize): Likewise.
2391         * regmove.c (try_auto_increment): Likewise.
2392         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2393         * reload.c (find_reloads): Likewise.
2394         * reload1.c (fixup_eh_region_note): Likewise.
2395         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2396         * reorg.c (delete_prior_computation): Likewise.
2397         (delete_computation, dbr_schedule): Likewise.
2398         * config/pa/pa.c (legitimize_pic_address): Likewise.
2399         * config/sh/sh.c (sh_reorg): Likewise.
2401 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2403         PR target/36669
2404         * config/libgcc-glibc.ver: Add %exclude.
2405         * config/m32r/libgcc-glibc.ver: Likwise.
2406         * config/s390/libgcc-glibc.ver: Likwise.
2407         * config/sh/libgcc-glibc.ver: Likwise.
2408         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2410         * config/i386/libgcc-glibc.ver: New.
2412         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2414 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2416         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2417         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2418         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2419         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2420         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2421         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2422         i[34567]86-*-linux*, x86_64-*-linux*.
2424         * libgcc-std.ver: Add empty GCC_4.4.0.
2426         * mkmap-symver.awk: Support multiple versions per symbol.
2428         * config/i386/i386.c (ix86_init_builtins): Always define
2429         __builtin_fabsq and __builtin_copysignq with fallbacks.
2430         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2431         and __builtin_copysignq if SSE2 isn't available.
2433         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2434         (LIBGCC2_TF_CEXT): Likwise.
2435         (TF_SIZE): Likwise.
2437         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2439         * config/i386/sfp-machine.h: Moved to libgcc.
2441         * config/i386/sfp-machine.h: New.
2442         * config/i386/t-linux: Likwise.
2444         * config/i386/t-darwin: Remove softfp_wrap_start and
2445         softfp_wrap_end.
2446         * config/i386/t-darwin64: Likewise.
2448         * config/i386/t-fprules-softfp64: Renamed to ...
2449         * config/i386/t-fprules-softfp: This.
2451         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2452         and softfp_wrap_end.
2454 2008-07-02  Jason Merrill  <jason@redhat.com>
2456         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2458         * tree.c (ctor_to_list): New fn.
2459         * tree.h: Declare it.
2460         (CONSTRUCTOR_ELT): New macro.
2461         (CONSTRUCTOR_NELTS): New macro.
2463 2008-07-02  Richard Guenther  <rguenther@suse.de>
2465         * tree-ssa-structalias.c (struct variable_info): Reorder
2466         to fill padding on 64bit hosts.  Make collapsed_to an int.
2467         (get_varinfo_fc): Deal with that.
2468         (new_var_info): Likewise.
2469         (collapse_rest_of_var): Likewise.
2471 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2473         * doc/install.texi (--enable-java-home): Document.
2474         (--enable-aot-compile-rpm): Likewise.
2475         (--with-arch-directory): Likewise.
2476         (--with-os-directory): Likewise.
2477         (--with-origin-name): Likewise.
2478         (--with-arch-suffix): Likewise.
2479         (--with-jvm-root-dir): Likewise.
2480         (--with-jvm-jar-dir): Likewise.
2481         (--with-python-dir): Likewise.
2483 2008-07-02  Richard Guenther  <rguenther@suse.de>
2485         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2486         from decls explicitly.  Merge operand checking from tuples.
2488 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2490         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2491         
2492 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2494         * tree-switch-conversion.c: Included timevar.h
2495         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2497         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2499 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2501         * tree-switch-conversion.c: Corrected various comments and
2502         whitespace issues
2503         (build_constructors): Fixed minor formatting mistakes.
2505         * invoke.texi (Optimize Options): Corrected the
2506         switch-conversion-max-branch-ratio parameter.
2508 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2510         * final.c (asm_insn_count): Return zero for an empty asm body.
2512 2008-07-02  Richard Guenther  <rguenther@suse.de>
2514         * bitmap.h (bitmap_set_bit): Return bool.
2515         (bitmap_clear_bit): Likewise.
2516         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2517         write to the bitmap if it would.
2518         (bitmap_clear_bit): Likewise.
2519         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2520         bitmap_set_bit return value.
2521         (add_pred_graph_edge): Likewise.
2522         (add_graph_edge): Likewise.
2523         (do_sd_constraint): Likewise.
2524         (do_ds_constraint): Likewise.
2526 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2528         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2529         Fix -Wc++-compat and/or -Wcast-qual warnings.
2530         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2531         gen_regparm_prefix): Likewise.
2532         * vmsdbgout.c (write_modbeg, lookup_filename,
2533         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2535 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2537         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2538         defaults.h definition apply.
2540 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2542         * function.c (assign_parm_remove_parallels): New.
2543         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2544         PARALLELs.
2545         (assign_parm_setup_block): Do not handle them.
2546         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2547         assign_parm_remove_parallels.
2549 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2551         * c-typeck.c (convert_for_assignment): Use
2552         vector_targets_convertible_p.
2553         * c-common.c (vector_targets_convertible_p): New.
2554         * c-common.h (vector_targets_convertible_p): New prototype.
2555         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2556         opaque_p_V2SI_type_node.
2558 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2560         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2561         RFmode constants.
2563 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2565         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2566         TFmode constants via two element DImode vector for hosts with
2567         HOST_BITS_PER_WIDE_INT < 64.
2568         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2569         also for HOST_BITS_PER_WIDE_INT < 64.
2571 2008-07-01  Richard Guenther  <rguenther@suse.de>
2573         PR tree-optimization/36666
2574         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2575         (get_constraint_exp_from_ssa_var): Split into ...
2576         (get_constraint_exp_for_temp): ... this ...
2577         (get_constraint_for_ssa_var): ... and that.
2578         Return constraint expressions for all touched sub-fields
2579         if the results address is not taken.
2580         (process_constraint): Remove assertion that aggregate
2581         assignments do not happen at this place.
2582         (get_constraint_for_component_ref): Add address_p argument.
2583         Return constraint expressions for all touched sub-fields
2584         if the results address is not taken.
2585         (do_deref): Use get_constraint_exp_for_temp.
2586         (get_constraint_for_1): Rename from ...
2587         (get_constraint_for): ... this.  Add the old function as wrapper.
2588         (do_structure_copy): Use get_constraint_for_1.
2590 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2592         * Makefile.in (tree-switch-conversion.o): Add.
2593         (OBJS-common): Add tree-swtch-conversion.o.
2594         * passes.c (init_optimization_passes): Add pass_convert_switch.
2595         * tree-pass.h: (pass_convert_switch): Add.
2596         * tree-switch-conversion.c: New file.
2597         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2598         * common.opt (ftree-cswtch): New option.
2599         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2600         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2601         * opts.c (decode_options): Set flag_tree_switch_conversion when
2602         optimization level is >= 2.
2603         * doc/invoke.texi (Optimize Options): Added description of
2604         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2606 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2608         * config/darwin-driver.c (darwin_default_min_version): Fix
2609         -Wc++-compat warnings.
2611 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2613         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2614         of operand 0.
2616 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2618         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2619         
2620 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2622         PR rtl-optimization/34744
2623         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2624         (df_scan_free_internal): Free data structures not
2625         allocated in storage pools.
2626         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2627         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2628         df_scan_free_mws_vec.
2629         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2630         unconditionally.
2632 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2634         * config/i386/i386.c (contains_aligned_value_p): Return true
2635         for __float128.
2636         (ix86_function_arg_boundary): Return its natural boundary
2637         for __float128.
2638         (return_in_memory_32): Don't check TDmode.
2639         (ix86_split_to_parts): Support splitting into 4 parts and
2640         support TFmode for 32bit target.
2641         (ix86_split_long_move): Support splitting into 4 parts.
2642         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2643         for SSE2.
2644         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
2645         (ix86_init_builtins): Here.
2646         (ix86_scalar_mode_supported_p): Always return true for TFmode.
2647         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
2648         'q' and 'w', respectively. 
2650         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
2651         TARGET_64BIT.
2652         (movtf_internal): Likewise.
2653         (<code>tf2): Likewise.
2654         (*absnegtf2_sse): Likewise.
2655         (copysign<mode>3): Likewise.
2656         (copysign<mode>3_const): Likewise.
2657         (copysign<mode>3_var): Likewise.
2658         (define_split UNSPEC_COPYSIGN): Likewise.
2659         * config/i386/sse.md (*nandtf3): Likewise.
2660         (<code>tf3): Likewise.
2661         (*<code>tf3): Likewise.
2663 2008-06-30  Joey Ye  <joey.ye@intel.com>
2664             H.J. Lu  <hongjiu.lu@intel.com>
2666         * global.c (compute_regsets): Set frame_pointer_needed here.
2667         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
2669 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2671         * doc/install.texi (specific): Expand Windows build notes.
2673 2008-06-30  Ira Rosen  <irar@il.ibm.com>
2675         PR tree-optimization/36648
2676         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
2677         number of prolog iterations by step. Fix the comment.
2679 2008-06-30  Richard Guenther  <rguenther@suse.de>
2681         PR middle-end/36671
2682         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
2683         handle calls from ECF_MALLOC functions.
2684         (handle_pure_call): ECF_MALLOC functions do not return
2685         call-used memory.
2686         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
2688 2008-06-29  Andreas Schwab  <schwab@suse.de>
2690         * config/m68k/m68k.c (print_operand): Always print a float
2691         constant in hex.
2692         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
2693         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
2694         Remove macros.
2696         * config/rs6000/x-linux64: Remove never used file.
2698 2008-06-29  Richard Guenther  <rguenther@suse.de>
2700         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
2701         prototype.
2702         (struct alias_info): Move ...
2703         * tree-ssa-alias.c: ... here.
2704         (update_alias_info): Declare.
2705         (compute_may_aliases): Call it.
2706         (update_alias_info): New function.
2707         * tree-ssa-structalias.c (update_alias_info): Move ...
2708         * tree-ssa-alias.c (update_alias_info_1): ... here.
2709         * tree-ssa-structalias.c (process_constraint_1): Remove
2710         unused from_call argument.  Rename to ...
2711         (process_constraint): ... this.  Delete old wrapper.
2712         (make_constraint_to): Adjust callers.
2713         (handle_const_call): Likewise.
2714         (handle_pure_call): Likewise.
2715         (init_base_vars): Likewise.
2716         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
2717         (find_func_aliases): We don't need structure copies for
2718         complex types.
2719         (make_constraint_from_anything): Remove.
2720         (create_variable_info_for): For globals make constraints
2721         from escaped, not from anything.
2722         (compute_points_to_sets): Do not call update_alias_info.
2723         (ipa_pta_execute): Use make_constraint_from.
2725 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2727         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
2728         (bitmap.o-warn, dominance.o-warn): New.
2729         * configure.ac (cxx_compat_warn): Delete.
2730         (loose_warn): Add -Wcast-qual and -Wc++-compat.
2731         * system.h: Remove #pragma diagnostic for -Wcast-qual and
2732         -Wc++-compat.
2733         * configure: Regenerate.
2735         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
2736         warnings.
2738 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2740         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
2741         * df-scan.c (df_notes_rescan): Likewise.
2742         * ggc-page.c (set_page_table_entry): Likewise.
2743         * intl.c (gcc_gettext_width): Likewise.
2744         * varasm.c (get_unnamed_section, get_noswitch_section,
2745         get_section): Likewise.
2747 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
2749         * regrename.c (build_def_use): Don't copy RTX.
2751 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
2753         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
2754         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
2755         punctuation.  Use @ref instead of @xref.
2756         (Function Names): Remove stray @display/@end display.
2757         (C++ Attributes): Use @ref instead of @xref.
2758         (Deprecated Features): Fix punctuation around @xref.
2759         (Backwards Compatibility): Likewise.
2760         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
2762 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
2764         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
2765         constants for E500 double.
2767 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2769         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
2770         element type of const_vector.
2772 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
2774         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
2775         Remove FLAGS_REG clobber from expander pattern.
2776         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
2777         (anddi3, andsi3, andhi3, andqi3): Ditto.
2778         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
2779         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
2780         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
2781         (ashlsi3, ashlhi3, ashlqi3): Ditto.
2782         (ashrsi3, ashrhi3, ashrqi3): Ditto.
2783         (lshrsi3, lshrhi3, lshrqi3): Ditto.
2784         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
2785         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
2787 2008-06-28  Richard Guenther  <rguenther@suse.de>
2789         * tree-ssa-structalias.c (callused_id, var_callused,
2790         callused_tree): Add.
2791         (handle_pure_call): New function.
2792         (find_func_aliases): Call it.
2793         (find_what_p_points_to): Handle the call-used set.
2794         (clobber_what_escaped): Likewise.
2795         (compute_call_used_vars): New function.
2796         (init_base_vars): Init the call-used variable.
2797         (do_sd_constraint): Do not propagate the solution from CALLUSED
2798         but use CALLUSED as a placeholder.
2799         (solve_graph): Likewise.
2800         * tree-flow-inline.h (gimple_call_used_vars): New function.
2801         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
2802         (compute_call_used_vars): Declare.
2803         * tree-ssa-alias.c (set_initial_properties): Call
2804         compute_call_used_vars.
2805         (reset_alias_info): Clear call-used variables.
2806         (add_call_clobber_ops): Assert we are not called for const/pure
2807         functions.  Remove handling of them.
2808         (add_call_read_ops): Handle pure functions by adding the
2809         call-used set of variables as VUSEs.
2810         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
2811         (delete_tree_ssa): Free it.
2812         * tree-dfa.c (remove_referenced_var): Clear the var from the
2813         call-used bitmap.
2815 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
2817         * tree.c (build_varargs_function_type_list): New.
2818         (build_function_type_list_1): New.
2819         (build_function_type_list): Use build_function_type_list_1.
2820         * tree.h (build_varargs_function_type_list): New.
2822 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2824         PR target/34856
2825         * config/spu/spu.c (spu_builtin_splats): Do not generate
2826         invalid CONST_VECTOR expressions.
2827         (spu_expand_vector_init): Likewise.
2829 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
2831         * optabs.c (libfunc_decls): New variable.
2832         (libfunc_decl_hash, libfunc_decl_eq): New functions.
2833         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
2834         for the same function twice.
2836 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
2838         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
2839         ix86_expand_binary_operator directly.
2840         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
2841         for operand 2.
2842         (*ashrti3_1): Ditto.
2843         (*lshrti3_1): Ditto.
2844         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
2845         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
2846         using only one splitter.  Conditionaly execute splitter before or
2847         after peephole2 pass.
2848         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
2849         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
2850         Use only one alternative in asm template.
2851         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
2852         in asm template.
2853         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
2854         "J" operand constraint for operand 2.
2855         (*ashldi3_cconly_rex64): Ditto.
2856         (*ashrdi3_cmp_rex64): Ditto.
2857         (*ashrdi3_cconly_rex64): Ditto.
2858         (*lshrdi3_cmp_rex64): Ditto.
2859         (*lshrdi3_cconly_rex64): Ditto.
2860         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
2861         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
2862         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
2863         gen_x86_shrd_1.
2865 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2867         * gimplify.c (omp_is_private): Don't return true if decl is not
2868         already private on #pragma omp for or #pragma omp parallel for.
2870         PR debug/36617
2871         * tree-cfg.c (struct move_stmt_d): Replace block field with
2872         orig_block and new_block fields.
2873         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
2874         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
2875         (move_block_to_fn): Replace vars_map and new_label_map arguments
2876         with struct move_stmt_d pointer.
2877         (replace_block_vars_by_duplicates): New function.
2878         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
2879         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
2880         all subblocks of ORIG_BLOCK to the new function.  Call
2881         replace_block_vars_by_duplicates.
2882         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
2883         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
2884         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
2885         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
2886         (expand_omp): Temporarily set input_location to the location of
2887         region's controlling stmt.
2888         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
2889         BIND_EXPR, push ctx->block_vars and gimplification vars into
2890         the BIND_EXPR and its block's BLOCK_VARS instead of directly
2891         into dest function.
2892         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
2893         there are any BLOCK_VARS.
2894         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
2895         OMP_PARALLEL or OMP_TASK stmt.
2896         (lower_omp): Save and restore input_location around the lower_omp_1
2897         call.
2899 2008-06-27  Richard Guenther  <rguenther@suse.de>
2901         PR tree-optimization/36400
2902         PR tree-optimization/36373
2903         PR tree-optimization/36344
2904         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
2905         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
2906         (update_alias_info): Remove call clobbering code.
2907         (make_constraint_to): New helper function.
2908         (make_escape_constraint): Likewise.
2909         (handle_rhs_call): Use it on all pointer containing arguments.
2910         Also mark the static chain escaped.
2911         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
2912         instead of ANYTHING.
2913         (make_constraint_from): New helper split out from ...
2914         (make_constraint_from_anything): ... here.
2915         (find_func_aliases): Add constraints for escape sites.
2916         (intra_create_variable_infos): Make constraints from NONLOCAL
2917         for parameters.
2918         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
2919         as ANYTHING.
2920         (clobber_what_p_points_to): Remove.
2921         (clobber_what_escaped): New function.
2922         (init_base_vars): Init NONLOCAL and ESCAPED.
2923         (do_sd_constraint): Do not propagate the solution from ESCAPED
2924         but use ESCAPED as a placeholder.
2925         (solve_graph): Likewise.
2926         * tree-flow.h (clobber_what_p_points_to): Remove.
2927         (clobber_what_escaped): Declare.
2928         * tree-ssa-alias.c (set_initial_properties): Call it.
2929         Remove code clobbering escaped pointers.
2931 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
2933         * function.c (allocate_struct_function): Only allocate a unique
2934         funcdef_no if the decl is nonzero.
2936 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
2938         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
2939         * config/mips/mips.c (mips_split_const_insns): New function.
2940         * config/mips/mips.md (move_type): New attribute.
2941         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
2942         (dword_mode): New attribute.
2943         (type): Avoid long line.  Map "move_type"s to "type"s,
2944         choosing "multi" for doubleword moves if appropriate.
2945         Swap MTC/MFC comments to match their declaration order.
2946         (extended_mips16): Default to "yes" if "move_type" is "sll0",
2947         "type" is "branch" or "jal" is "direct".
2948         (length): Handle "extended_mips16" first.  Make the default
2949         "0" for "ghost" instructions.  Set the length from "move_type".
2950         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
2951         of "type", with "sll0" for the register alternative.  Remove the
2952         "extended_mips16" attribute.
2953         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
2954         of "type", with "shift_shift" for the register alternative.
2955         Remove the "length" attribute.
2956         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
2957         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
2958         of "type", with "andi" for the register alternative.
2959         (*zero_extendqihi2): Likewise.
2960         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
2961         of "andi" instead of a "type" of "arith".
2962         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
2963         instead of "type".
2964         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
2965         (mov_<store>r, *mov<mode>_ra): Likewise.
2966         (extendsidi2): Use "move_type" instead of "type", with "move"
2967         for the register alternative.
2968         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
2969         of "type", with "signext" for the register alternative.
2970         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
2971         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
2972         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
2973         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
2974         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
2975         (unnamed branch insn): Likewise.
2976         (*movdi_gp32_fp64): Fold into...
2977         (*movdi_32bit): ...here.
2978         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
2979         (*movdf_hardfloat): ...this new pattern.
2980         (*movdf_softfloat): Remove redundant FPR alternatives.
2981         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
2982         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
2983         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
2984         the "move" attribute.
2985         (*movdi_32bit): Use "move_type" instead of "type" and remove the
2986         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
2987         and "store" for COP loads and stores.
2988         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
2989         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
2990         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
2991         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
2992         (*movtf_mips16, *movv2sf): Likewise.
2993         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
2994         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
2995         (mfhc1<mode>): Use "move_type" instead of "move".
2996         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
2997         (loadgp_blockage): Remove the "length" attribute.
2998         (blockage, set_got_version, update_got_version): Likewise.
2999         (call_internal): Remove the "extended_mips16" attribute.
3000         (call_value_internal, call_value_multiple_internal): Likewise.
3001         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3002         instead of "move".
3003         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3004         the "length" attribute.
3006 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3008         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3009         -Wcast-qual warnings.
3010         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3011         handle_pragma_pop_macro): Likewise.
3012         * collect2.c (resolve_lib_name): Likewise.
3013         * config/arc/arc.c (arc_init): Likewise.
3014         * config/arm/arm.c (neon_builtin_compare,
3015         locate_neon_builtin_icode): Likewise.
3016         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3017         * config/bfin/bfin.c (bfin_init_machine_status,
3018         bfin_optimize_loop): Likewise.
3019         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3020         * config/cris/cris.c (cris_init_expanders): Likewise.
3021         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3022         * config/darwin.c (machopic_indirection_eq,
3023         machopic_indirection_name, machopic_output_indirection): Likewise.
3024         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3025         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3026         frv_optimize_membar): Likewise.
3027         * config/i386/cygwin.h (mingw_scan,
3028         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3029         * config/i386/cygwin1.c (mingw_scan): Likewise.
3030         * config/i386/i386.c (machopic_output_stub): Likewise.
3031         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3032         i386_pe_unique_section): Likewise.
3033         * config/ia64/ia64.c (ia64_init_machine_status,
3034         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3035         Likewise.
3036         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3037         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3038         * config/m68k/m68k.c (m68k_handle_option,
3039         m68k_sched_md_init_global): Likewise.
3040         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3041         mcore_unique_section): Likewise.
3042         * config/mips/mips.c (mips_block_move_straight,
3043         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3044         Likewise.
3045         * config/mmix/mmix.c (mmix_init_machine_status,
3046         mmix_encode_section_info): Likewise.
3047         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3048         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3049         print_operand_address, output_toc, redefine_groups,
3050         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3051         * config/s390/s390.c (s390_init_machine_status): Likewise.
3052         * config/score/score.c (score_block_move_straight,
3053         score_block_move_loop_body): Likewise.
3054         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3055         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3056         * emit-rtl.c (find_auto_inc): Likewise.
3057         * gcc.c (translate_options, process_command): Likewise.
3058         * reorg.c (dbr_schedule): Likewise.
3059         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3060         * xcoffout.c (xcoffout_declare_function): Likewise.
3062 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3064         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3065         ipa-pta working again.
3067 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3069         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3070         genautomata.
3072 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3074         * config.gcc (powerpc*-*-*): Add new core e500mc.
3075         * config/rs6000/e500mc.md: New file.
3076         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3077         e500mc.
3078         (rs6000_override_options): Add e500mc case to
3079         processor_target_table. Altivec and Spe options not allowed
3080         with e500mc. Add isel instruction to e500mc by
3081         default. Initialize rs6000_cost for e500mc.
3082         (rs6000_issue_rate): Set issue rate for e500mc.
3083         * config/rs6000/rs6000.h (processor_type): Add
3084         PROCESSOR_PPCE500MC.
3085         (ASM_CPU_SPEC): Add e500mc.
3086         Set TARGET_ISEL to rs6000_isel.
3087         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3088         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3089         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3090         Include e500mc.md.
3091         * doc/invoke.texi: Add e500mc to list of cpus.
3093 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3095         PR c/34867
3096         * c-lex.c (lex_charconst): Initialize unsignedp.
3098 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3100         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3101         documented assumptions.
3103 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3105         * dwarf2out.c: Remove trailing white spaces.  Break long line
3106         in comments.
3108 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3110         * libfuncs.h (LTI_synchronize): New libfunc_index.
3111         (synchronize_libfunc): Declare.
3112         * builtins.c (expand_builtin_synchronize): Consider using
3113         synchronize_libfunc before falling back on an asm blockage.
3114         * config/mips/mips.c: Include libfuncs.h
3115         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3117 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3119         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3120         parameter.  Copy stack_reg to r11 where appropriate.
3121         (no_global_regs_above): Add gpr parameter.
3122         (rs6000_stack_info): Only add padding for SPE save area if we
3123         are saving SPE GPRs and CR.
3124         (saveres_routine_syms): New variable.
3125         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3126         Define.
3127         (rs6000_savres_routine_sym): New function.
3128         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3129         split out of...
3130         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3131         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3132         Tweak FPR out-of-line saving.
3133         (rs6000_make_savres_rtx): New function.
3134         (rs6000_use_multiple_p): New function.
3135         (rs6000_savres_strategy): New function.
3136         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3137         out-of-line if appropriate.
3138         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3139         if we are optimizing for size.
3140         (GP_SAVE_INLINE): Define.
3141         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3142         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3143         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3144         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3145         (*save_fpregs_<mode>): Add use of r11.
3146         (*restore_gpregs_<mode>): New insn.
3147         (*return_and_restore_gpregs_<mode>): New insn.
3148         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3149         use r11.
3150         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3151         (*restore_gpregs_spe): New insn.
3152         (*return_and_restore_gpregs_spe): New insn.
3153         * config/rs6000/predicates.md (save_world_operation): Fix check.
3155 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3157         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3158         this point, so assert that.
3160 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3162         * cfganal.c: Include vec.h and vecprim.h.
3163         (compute_idf): Import from...
3164         * tree-into-ssa (compute_idf): ...here.
3165         * basic-block.h (compute_idf): Export.
3167 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3169         * c-decl.c (merge_decls): Use !current_function_decl to check for
3170         extern declaration of C99 inline function being at file scope.
3172 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3174         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3176 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3178         * alias.c (record_alias_subset, init_alias_analysis): Fix
3179         -Wc++-compat and/or -Wcast-qual warnings.
3180         * attribs.c (lookup_attribute_spec): Likewise.
3181         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3182         copy_bb, connect_traces,
3183         find_rarely_executed_basic_blocks_and_cr): Likewise.
3184         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3185         note_btr_set, migrate_btr_defs): Likewise.
3186         * builtins.c (result_vector, expand_builtin_memcpy,
3187         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3188         builtin_memset_read_str, expand_builtin_printf,
3189         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3190         Likewise.
3191         * caller-save.c (mark_set_regs): Likewise.
3192         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3193         * cgraph.c (cgraph_edge): Likewise.
3194         * combine.c (likely_spilled_retval_1): Likewise.
3195         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3196         htab_counts_entry_del, get_coverage_counts): Likewise.
3197         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3198         new_cselib_val): Likewise.
3199         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3200         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3201         Likewise.
3202         * df-core.c (df_compact_blocks): Likewise.
3203         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3204         * df-scan.c (df_grow_reg_info, df_ref_create,
3205         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3206         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3207         df_record_entry_block_defs, df_record_exit_block_uses,
3208         df_bb_verify): Likewise.
3209         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3210         DF_REF_EXTRACT_MODE_CONST): New.
3211         * dominance.c (get_immediate_dominator, get_dominated_by,
3212         nearest_common_dominator, root_of_dom_tree,
3213         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3214         -Wc++-compat and/or -Wcast-qual warnings.
3215         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3216         record_store, replace_read, check_mem_read_rtx, scan_insn,
3217         dse_step1, dse_record_singleton_alias_set): Likewise.
3218         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3220 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3222         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3223         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3224         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3225         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3226         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3227         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3228         file_name_acquire, output_file_names, add_const_value_attribute,
3229         premark_used_types_helper, file_table_eq, file_table_hash,
3230         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3231         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3232         -Wcast-qual warnings.
3233         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3234         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3235         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3236         gen_reg_rtx, start_sequence, init_emit): Likewise.
3237         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3238         * except.c (init_eh_for_function, gen_eh_region,
3239         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3240         arh_to_landing_pad, arh_to_label, add_action_record,
3241         add_call_site, switch_to_exception_section): Likewise.
3242         * expmed.c (synth_mult): Likewise.
3243         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3244         store_expr): Likewise.
3245         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3246         Likewise.
3247         * function.c (assign_stack_temp_for_type,
3248         allocate_struct_function, match_asm_constraints_1): Likewise.
3249         * gcov-io.c (gcov_allocate): Likewise.
3250         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3251         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3252         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3253         record_one_set, insert_expr_in_table, insert_set_in_table,
3254         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3255         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3256         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3257         -Wcast-qual warnings.
3259 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3261         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3262         -Wcast-qual warnings.
3263         * gcc.c (process_command): Likewise.
3264         * genattrtab.c (oballoc): Use XOBNEW.
3265         (oballocvec): Define.
3266         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3267         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3268         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3269         -Wc++-compat and/or -Wcast-qual warnings.
3270         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3271         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3272         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3273         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3274         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3275         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3276         add_excls, process_presence_absence_names,
3277         process_presence_absence_patterns, add_presence_absence,
3278         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3279         get_free_state, add_arc, get_free_automata_list_el,
3280         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3281         transform_3, cache_presence, create_ainsns, create_automata,
3282         create_state_ainsn_table, dfa_insn_code_enlarge,
3283         output_trans_func, output_min_issue_delay_func,
3284         output_dead_lock_func, output_reset_func,
3285         output_get_cpu_unit_code_func, output_dfa_start_func,
3286         expand_automata): Likewise.
3287         * genextract.c (gen_insn): Likewise.
3288         * gengtype-lex.l: Likewise.
3289         * gengtype.c (read_input_list, adjust_field_type,
3290         process_gc_options): Likewise.
3291         * genoutput.c (note_constraint): Likewise.
3292         * genpreds.c (mangle, add_constraint): Likewise.
3293         * genrecog.c (process_define_predicate, new_decision,
3294         add_to_sequence): Likewise.
3295         * gensupport.c (record_insn_name): Likewise.
3297 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3299         * config/i386/driver-i386.c (detect_caches_amd,
3300         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3301         and/or -Wcast-qual warnings.
3302         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3303         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3304         gt_pch_save): Likewise.
3305         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3306         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3307         * global.c (compute_regsets): Likewise.
3308         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3309         finish_graph_dump_file): Likewise.
3310         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3311         unlink_bb_notes): Likewise.
3312         * integrate.c (get_hard_reg_initial_val): Likewise.
3313         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3314         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3315         * local-alloc.c (update_equiv_regs): Likewise.
3316         * loop-invariant.c (check_invariant_table_size,
3317         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3318         Likewise.
3319         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3320         altered_reg_used, mark_altered): Likewise.
3321         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3322         insert_var_expansion_initialization,
3323         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3324         release_var_copies): Likewise.
3325         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3326         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3327         analyze_accesses_for_phi_node, check_var_notmodified_p,
3328         check_allocation_function, find_sites_in_func,
3329         record_all_accesses_in_func, transform_access_sites,
3330         transform_allocation_sites): Likewise.
3331         * omp-low.c (new_omp_region, create_omp_child_function_name,
3332         check_omp_nesting_restrictions, check_combined_parallel,
3333         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3334         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3335         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3336         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3337         Likewise.
3338         * opts-common.c (prune_options): Likewise.
3339         * opts.c (add_input_filename, print_filtered_help,
3340         get_option_state): Likewise.
3341         * params.c (add_params): Likewise.
3342         * passes.c (set_pass_for_id, next_pass_1,
3343         do_per_function_toporder, pass_fini_dump_file): Likewise.
3344         * postreload.c (reload_cse_simplify_operands): Likewise.
3345         * predict.c (tree_predicted_by_p, tree_predict_edge,
3346         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3348 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3350         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3351         warnings.
3352         * recog.c (check_asm_operands, validate_change_1): Likewise.
3353         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3354         subst_asm_stack_regs): Likewise.
3355         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3356         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3357         * regmove.c (reg_is_remote_constant_p): Likewise.
3358         * regrename.c (regrename_optimize, scan_rtx_reg,
3359         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3360         Likewise.
3361         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3362         regstat_compute_calls_crossed): Likewise.
3363         * reload1.c (init_reload, new_insn_chain,
3364         has_nonexceptional_receiver, reload, copy_reloads,
3365         calculate_needs_all_insns, init_elim_table): Likewise.
3366         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3367         * rtl.c (shallow_copy_rtx_stat): Likewise.
3368         * rtlanal.c (parms_set): Likewise.
3369         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3370         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3371         * sched-ebb.c (earliest_block_with_similiar_load,
3372         add_deps_for_risky_insns): Likewise.
3373         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3374         schedule_region): Likewise.
3375         * see.c (eq_descriptor_pre_extension,
3376         hash_descriptor_pre_extension, hash_del_pre_extension,
3377         eq_descriptor_properties, hash_descriptor_properties,
3378         hash_del_properties, see_seek_pre_extension_expr,
3379         see_initialize_data_structures, see_print_register_properties,
3380         see_print_pre_extension_expr, see_delete_merged_def_extension,
3381         see_delete_unmerged_def_extension, see_emit_use_extension,
3382         see_pre_delete_extension, see_map_extension, see_commit_changes,
3383         see_analyze_merged_def_local_prop,
3384         see_analyze_merged_def_local_prop,
3385         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3386         see_set_prop_merged_def, see_set_prop_unmerged_def,
3387         see_set_prop_unmerged_use, see_print_one_extension,
3388         see_merge_one_use_extension, see_merge_one_def_extension,
3389         see_store_reference_and_extension, see_update_uses_relevancy,
3390         see_update_defs_relevancy): Likewise.
3391         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3392         hash_statistics_free, curr_statistics_hash): Likewise.
3393         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3394         expand_asm_operands, expand_return, case_bit_test_cmp,
3395         expand_case): Likewise.
3396         * stor-layout.c (start_record_layout): Likewise.
3397         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3398         gt_pch_save_stringpool): Likewise.
3399         * tree-data-ref.c (hash_stmt_vertex_info,
3400         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3401         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3403 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3405         PR target/36627
3406         * config/i386/i386.md : Change constraints of HImode and QImode
3407         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3408         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3409         from const0_operand and const1_operand predicated operands.
3410         (i): Change QImode and HImode attribute from "i" to "n".
3411         (*subqi_2): Change HImode operands to QImode.
3412         (*subqi_3): Ditto.
3414 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3416         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3417         sed substitutions.
3419 2008-06-25  Richard Guenther  <rguenther@suse.de>
3421         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3422         not overflow the result type.
3424 2008-06-25  Richard Guenther  <rguenther@suse.de>
3426         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3427         (vn_lookup): Likewise.
3429 2008-06-25  Richard Guenther  <rguenther@suse.de>
3431         PR tree-optimization/35518
3432         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3433         * tree-sra.c (instantiate_element): Use fold_build3 to build
3434         BIT_FIELD_REFs.
3435         (try_instantiate_multiple_fields): Likewise.
3437 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3439         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3440         be early clobbers.
3442 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3444         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3445         use_backchain_to_restore_sp to true
3446         if the offset of the link register save area would go over the 32k - 1
3447         offset limit of the load
3448         instructions.
3450 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3452         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3453         anchor for the type-punning blurb.  Cross-reference "Structures
3454         unions enumerations and bit-fields implementation".  Provide a
3455         cast-through-pointer example.  Make final sentence self-contained.
3456         * doc/implement-c.texi (Structures unions enumerations and
3457         bit-fields implementation): Cross-reference the type-punning blurb
3458         in the -fstrict-aliasing documentation.
3460 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3462         PR middle-end/36594
3463         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3464         the memory instead of the memory itself for the save area.
3466 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3467             Nicolas Roche  <roche@adacore.com>
3469         * gengtype.c (srcdir_len): size_t instead of int.
3470         (get_file_realbasename): New function.  For F a filename, the real
3471         basename of F, with all the path components stripped.
3472         (get_file_srcdir_relative_path): New function.  For F a filename, the
3473         relative path to F from $(srcdir).
3474         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3475         get_file_realbasename.  Adjust the head comment.
3476         (get_prefix_langdir_index): New function. For F a filename, return the
3477         lang_dir_names[] relative index of the language directory that is
3478         a prefix in F.
3479         (get_file_langdir): For F a filename, return the name of the language
3480         directory where F is located.
3481         (get_file_gtfilename): New function. The gt- output file name for an
3482         input filename F.
3483         (get_output_file_with_visibility): Replace in-line computations with
3484         uses of get_file_gtfilename and get_prefix_langdir_index.
3485         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3487 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3489         PR tree-optimization/36504
3490         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3491         references without base address.
3493 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3495         PR middle-end/36584
3496         * calls.c (expand_call): Increase alignment for recursive functions.
3498 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3500         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3501         (TARGET_FUNCTION_VALUE): New define.
3502         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3503         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3505 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3507         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3508         (fmod<mode>3): Ditto.
3509         (remainderxf3): Ditto.
3510         (remainder<mode>3): Ditto.
3512 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3514         PR target/36533
3515         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3516         REG is a hard register.
3518         PR tree-optimization/36508
3519         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3520         499, don't check it at all in release compilers.
3522 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3524         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3525         together with SSE_TARGET_MATH to disable insn pattern.
3526         (*fop_<MODEF:mode>_2_i387): Ditto.
3527         (*fop_<MODEF:mode>_3_i387): Ditto.
3529 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3531         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3532         
3533 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3535         PR middle-end/34906
3536         * gimplify.c (gimplify_asm_expr): Check the return code of
3537         parse_output_constraint call, set function return and is_inout
3538         value if it failed.
3540 2008-06-22  Ian Lance Taylor  <iant@google.com>
3542         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3543         (narrowest_signed_type): Likewise.
3544         * c-typeck.c (c_common_type): Change local variable mclass to enum
3545         mode_class, twice.
3546         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3547         tcc_comparison, not the tree code itself.
3548         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3549         (c_expand_expr): Cast modifier to enum expand_modifier.
3550         * c-common.h (C_RID_CODE): Add casts.
3551         (C_SET_RID_CODE): Define.
3552         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3553         (c_lex_one_token): Add cast to avoid warning.
3554         (c_parser_objc_type_name): Rename local typename to type_name.
3555         (check_no_duplicate_clause): Change code parameter to enum
3556         omp_clause_code.
3557         (c_parser_omp_var_list_parens): Change kind parameter to enum
3558         omp_clause_code.
3559         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3560         c_parser_omp_list_var_parens.
3561         (c_parser_omp_threadprivate): Likewise.
3562         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3563         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3564         * c-format.c (NO_FMT): Define.
3565         (printf_length_specs): Use NO_FMT.
3566         (asm_fprintf_length_specs): Likewise.
3567         (gcc_diag_length_specs): Likewise.
3568         (scanf_length_specs): Likewise.
3569         (strfmon_length_specs): Likewise.
3570         (gcc_gfc_length_specs): Likewise.
3571         (printf_flag_specs): Change 0 to STD_C89.
3572         (asm_fprintf_flag_specs): Likewise.
3573         (gcc_diag_flag_specs): Likewise.
3574         (gcc_cxxdiag_flag_specs): Likewise.
3575         (scanf_flag_specs): Likewise.
3576         (strftime_flag_specs): Likewise.
3577         (strfmon_flag_specs): Likewise.
3578         (print_char_table): Likewise.
3579         (asm_fprintf_char_table): Likewise.
3580         (gcc_diag_char_table): Likewise.
3581         (gcc_tdiag_char_table): Likewise.
3582         (gcc_cdiag_char_table): Likewise.
3583         (gcc_cxxdiag_char_table): Likewise.
3584         (gcc_gfc_char_table): Likewise.
3585         (scan_char_table): Likewise.
3586         (time_char_table): Likewis.
3587         (monetary_char_table): Likewise.
3588         * c-format.h (BADLEN): Likewise.
3590 2008-06-21  Ian Lance Taylor  <iant@google.com>
3592         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3593         Define END_OF_BASE_TREE_CODES around inclusion.
3594         * tree.c (tree_code_type): New global array.
3595         (tree_code_length, tree_code_name): Likewise.
3596         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3597         $(lang_tree_files).
3598         (all-tree.def, s-alltree): New targets.
3599         (gencheck.h, s-gencheck): Remove.
3600         (tree.o): Depend upon all-tree.def.
3601         (build/gencheck.o): Remove gencheck.h dependency.
3602         (mostlyclean): Don't remove gencheck.h.
3603         * c-common.h (enum c_tree_code): Remove.
3604         * c-lang.c (tree_code_type): Remove.
3605         (tree_code_length, tree_code_name): Remove.
3606         * gencheck.c (tree_codes): Include all-tree.def, rather than
3607         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3608         after it is used.
3609         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3610         than tree.def.
3611         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3612         (operator_name_info): Size to MAX_TREE_CODES.
3613         (assignment_operator_name_info): Likewise.
3614         * cp/cp-lang.c (tree_code_type): Remove.
3615         (tree_code_length, tree_code_name): Remove.
3616         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3617         (assignment_operator_name_info): Likewise.
3618         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3619         MAX_TREE_CODES.
3620         * cp/mangle.c (write_expression): Likewise.
3621         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3622         * fortran/f95-lang.c (tree_code_type): Remove.
3623         (tree_code_length, tree_code_name): Remove.
3624         * java/java-tree.h (enum java_tree_code): Remove.
3625         * java/lang.c (tree_code_type): Remove.
3626         (tree_code_length, tree_code_name): Remove.
3627         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3628         * objc/objc-act.h (enum objc_tree_code): Remove.
3629         * objc/objc-lang.c (tree_code_type): Remove.
3630         (tree_code_length, tree_code_name): Remove.
3631         * objcp/objcp-lang.c (tree_code_type): Remove.
3632         (tree_code_length, tree_code_name): Remove.
3633         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3634         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3635         * ada/misc.c (tree_code_type): Remove.
3636         (tree_code_length, tree_code_name): Remove.
3638 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3640         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3641         the grand_bitmap_obstack.
3643 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3645         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
3646         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
3647         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
3648         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
3649         move_stmt_r, new_label_mapper): Likewise.
3650         * tree-complex.c (cvc_lookup): Likewise.
3651         * tree-dfa.c (create_function_ann): Likewise.
3652         * tree-dump.c (dump_register): Likewise.
3653         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
3654         find_phi_replacement_condition): Likewise.
3655         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
3656         tree_function_versioning): Likewise.
3657         * tree-into-ssa.c (cmp_dfsnum): Likewise.
3658         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
3659         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
3660         get_nonlocal_debug_decl, convert_nonlocal_reference,
3661         convert_nonlocal_omp_clauses, get_local_debug_decl,
3662         convert_local_reference, convert_local_omp_clauses,
3663         convert_nl_goto_reference, convert_nl_goto_receiver,
3664         convert_tramp_reference, convert_call_expr): Likewise.
3665         * tree-outof-ssa.c (contains_tree_r): Likewise.
3666         * tree-parloops.c (reduction_phi, initialize_reductions,
3667         eliminate_local_variables_1, add_field_for_reduction,
3668         add_field_for_name, create_phi_for_local_result,
3669         create_call_for_reduction_1, create_loads_for_reductions,
3670         create_stores_for_reduction, create_loads_and_stores_for_name):
3671         Likewise.
3672         * tree-phinodes.c (allocate_phi_node): Likewise.
3673         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
3674         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
3675         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
3676         * tree-ssa-coalesce.c (compare_pairs): Likewise.
3677         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
3678         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
3679         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
3680         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
3681         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
3682         vn_nary_op_insert): Likewise.
3683         * tree-ssa.c (redirect_edge_var_map_add,
3684         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
3685         * tree-vectorizer.c (vectorize_loops): Likewise.
3686         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
3687         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
3688         tree_cons_stat, build1_stat, build_variant_type_copy,
3689         decl_init_priority_lookup, decl_fini_priority_lookup,
3690         decl_priority_info, decl_restrict_base_lookup,
3691         decl_restrict_base_insert, decl_debug_expr_lookup,
3692         decl_debug_expr_insert, decl_value_expr_lookup,
3693         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
3694         type_hash_add, get_file_function_name, tree_check_failed,
3695         tree_not_check_failed, tree_range_check_failed,
3696         omp_clause_range_check_failed, build_omp_clause,
3697         build_vl_exp_stat): Likewise.
3698         * value-prof.c (gimple_histogram_value,
3699         gimple_duplicate_stmt_histograms): Likewise.
3700         * var-tracking.c (attrs_list_insert, attrs_list_copy,
3701         unshare_variable, variable_union_info_cmp_pos, variable_union,
3702         dataflow_set_different_1, dataflow_set_different_2,
3703         vt_find_locations, variable_was_changed, set_variable_part,
3704         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
3705         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
3706         section_entry_hash, object_block_entry_eq,
3707         object_block_entry_hash, create_block_symbol,
3708         initialize_cold_section_name, default_function_rodata_section,
3709         strip_reg_name, set_user_assembler_name, const_desc_eq,
3710         build_constant_desc, output_constant_def, lookup_constant_def,
3711         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
3712         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
3713         default_internal_label): Likewise.
3714         * varray.c (varray_init, varray_grow): Likewise.
3715         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
3717 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
3719         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
3720         operators for "test" insn.  Macroize insn using SWI mode macro.
3721         (*jcc_fused_2): Ditto.
3722         (*jcc_fused_3): Macroize insn using SWI mode macro.
3723         (*jcc_fused_4): Ditto.
3725 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
3727         * tree-ssa-pre.c: Fix typo in comment.
3728         (init_antic, fini_antic): Add explicit funtions for
3729         initializing and deinitializing ANTIC and AVAIL sets.
3730         (create_expression_by_pieces): Fix typo in comment.
3731         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
3732         (execute_pre): Eventually dump details about ANTIC_IN.
3734 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3736         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
3737         * gcc.c (translate_options, init_spec, store_arg, read_specs,
3738         add_to_obstack, file_at_path, find_a_file, execute,
3739         add_preprocessor_option, add_assembler_option, add_linker_option,
3740         process_command, insert_wrapper, do_option_spec, do_self_spec,
3741         spec_path, do_spec_1, is_directory, main, used_arg,
3742         getenv_spec_function): Likewise.
3743         * tlink.c (symbol_hash_lookup, file_hash_lookup,
3744         demangled_hash_lookup, symbol_push, file_push, frob_extension):
3745         Likewise.
3747 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3749         * doc/rtl.texi: Updated subreg section.
3751 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
3753         PR c++/36523
3754         * cgraphunit.c (cgraph_process_new_functions): Don't clear
3755         node->needed and node->reachable.
3756         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
3757         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
3758         (expand_task_call): Don't call expand_task_copyfn.
3759         (expand_task_copyfn): Renamed to...
3760         (finalize_task_copyfn): ... this.
3762 2008-06-19  Jan Hubicka  <jh@suse.cz>
3764         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
3765         clobbering framepointer.
3767 2008-06-19  Jan Hubicka  <jh@suse.cz>
3769         * tree-optimize.c (execute_early_local_optimizations): Set
3770         cgraph_state only at first invocation.
3772 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3774         * system.h (-Wc++-compat): Activate as a warning, no an error.
3776 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3778         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
3779         instead of "#" in insn asm template.
3780         (*jcc_fused_2): Ditto.
3782 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
3784         * config/i386/i386.h (ix86_tune_indices)
3785         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
3786         (TARGET_FUSE_CMP_AND_BRANCH): New define.
3787         * config/i386/i386.md (*jcc_fused_1): New insn pattern
3788         (*jcc_fused_2): Ditto.
3789         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
3790         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
3791         (print operand): Handle 'E' and 'e' code.
3793 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
3795         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
3796         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
3797         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
3799 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
3801         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
3802         node->decl.
3803         (cgraph_expand_function): Use local copy of decl.
3804         (cgraph_expand_all_functions): Remove redundant initialization of
3805         order_pos.
3806         (cgraph_optimize): Reword internal_error message.
3808 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
3810         * arm-protos.h (arm_return_in_memory): Remove public
3811         arm_return_in_memory() prototype.
3812         * arm.c (arm_return_in_memory): Add static prototype, add target
3813         hook macro, change definition and comments.
3814         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
3816 2008-06-19  Ben Elliston  <bje@au.ibm.com>
3818         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
3819         real.c: Remove references to IEEE 754R.
3820         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
3821         * doc/libgcc.texi (Decimal float library routines): Likewise.
3823 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3825         * targhooks.h (struct gcc_target): New member unwind_word_mode.
3826         (default_unwind_word_mode): Add prototype.
3827         * targhooks.c (default_unwind_word_mode): New function.
3828         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
3829         instead of word_mode.
3830         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
3831         (TARGET_INITIALIZER): Use it.
3833         * c-common.c (handle_mode_attribute): Support "unwind_word"
3834         mode attribute.
3835         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
3837         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
3838         word_mode to access SjLj_Function_Context member "data".
3839         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
3840         conversion from targetm.eh_return_filter_mode () to
3841         targetm.unwind_word_mode () if they differ.
3843         * builtin-types.def (BT_UNWINDWORD): New primitive type.
3844         (BT_FN_UNWINDWORD_PTR): New function type.
3845         (BT_FN_WORD_PTR): Remove.
3846         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
3847         * except.c (expand_builtin_extend_pointer): Convert pointer to
3848         targetm.unwind_word_mode () instead of word_mode.
3850         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
3851         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
3852         (spu_unwind_word_mode): New function.
3853         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
3854         (TARGET_UNWIND_WORD_MODE): Define.
3855         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
3857 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3859         * config/spu/spu.c (reg_align): Remove.
3860         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
3861         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
3862         (spu_split_store): Likewise.
3864 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
3866         * gcc/tree-vn.c: Fix typo in comment.
3868 2008-06-18  Jan Hubicka  <jh@suse.cz>
3870         * cgraphunit.c (cgraph_optimize): Output debug info when doing
3871         toplevel reorder too.
3873 2008-06-18  Jan Hubicka  <jh@suse.cz>
3875         * c-opts.c (c_common_post_options): PCH is not compatible with
3876         no-unit-at-a-time.
3877         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
3878         -fno-toplevel-reorder by default now.
3880 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3882         PR documentation/30739
3883         * doc/install.texi (Prerequisites): Document dependency on awk.
3885 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
3886             Ian Lance Taylor  <iant@google.com>
3888         PR rtl-optimization/35604
3889         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
3890         only want to change jump destinations, not eventual label comparisons.
3892 2008-06-16  Jan Hubicka  <jh@suse.cz>
3894         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
3895         syntax errors.
3896         (cgraph_analyze_function): Likewise.
3898 2008-06-16  Jan Hubicka  <jh@suse.cz>
3900         * cgraph.h (cgraph_mark_if_needed): New function.
3901         * cgraphunit.c (cgraph_mark_if_needed): New function.
3902         * c-decl.c (duplicate_decl): Use it.
3904 2008-06-16  Jan Hubicka  <jh@suse.cz>
3906         * cgraph.c (cgraph_add_new_function): When in expansion state, do
3907         lowering.
3909 2008-06-16  Jan Hubicka  <jh@suse.cz>
3911         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
3913 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
3914             Kazu Hirata  <kazu@codesourcery.com>
3915             Maxim Kuvyrkov  <maxim@codesourcery.com
3917         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
3918         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
3919         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
3920         EXTRA_SPEC_FUNCTIONS.
3921         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
3922         (DRIVER_SELF_SPECS): Adjust.
3923         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
3924         * config/mips/st.h, config/mips/t-st: New.
3925         * config/mips/driver-native.c, config/mips/x-native: New.
3926         * doc/invoke.texi (MIPS): Document 'native' value for -march and
3927         -mtune options.
3929 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3931         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
3932         from it.
3933         (ISA_HAS_FP_CONDMOVE): New macro.
3934         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
3935         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
3936         (ISA_HAS_NMADD3_NMSUB3): New macro.
3937         * config/mips/mips.c (mips_rtx_costs): Update.
3938         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
3939         compiling for ST Loongson 2E/2F.
3940         (madd<mode>): Rename to madd4<mode>.  Update.
3941         (madd3<mode>): New pattern.
3942         (msub<mode>): Rename to msub4<mode>.  Update.
3943         (msub3<mode>): New pattern.
3944         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
3945         (nmadd3<mode>): New pattern.
3946         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
3947         (nmadd3<mode>_fastmath): New pattern.
3948         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
3949         (nmsub3<mode>): New pattern.
3950         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
3951         (nmsub3<mode>_fastmath): New pattern.
3952         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
3954 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
3956         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
3957         (DF_REF_INSN_INFO): New.
3958         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
3959         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
3960         with a NULL DF_REF_INSN_INFO.
3961         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
3962         DF_INSN_SET.
3963         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
3964         DF_INSN_INFO_EQ_USES): New.
3965         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
3966         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
3967         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
3968         * df-core.c: Update comment for above changes.
3969         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
3970         DF_INSN_UID_* macros.
3971         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
3972         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
3973         insn rtx.  Update all callers.
3974         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
3975         df_ref_create_structure, df_insn_refs_collect): Likewise.
3976         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
3977         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
3978         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
3979         macros to access the insn refs.
3980         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
3981         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
3982         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
3983         for accessing the refs.
3984         (try_fwprop_subst): Likewise.
3985         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
3986         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
3987         for accessing the refs.
3988         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
3989         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
3990         to look at the insn refs.
3991         (record_uses): Likewise.
3992         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
3993         function anymore.
3994         (mark_artificial_uses): Don't mark_insn for artificial refs.
3995         (mark_reg_rependencies): Likewise.
3997         * doc/rtl.texi: Remove documentation of ADDRESSOF.
3999 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4001         * configure: Regenerate.
4003 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4005         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4006         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4007         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4009 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4011         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4012         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4013         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4015 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4017         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4018         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
4019         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4021 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4023         * tree-ssa-sccvn.c: Fix format of comments.
4025 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4027         * cgraph.c: Remove unneeded forward declarations of eq_node()
4028         and hash_node().
4030 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4032         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4033         REG_RETVAL notes.
4034         (see_update_relevancy): Likewise.
4035         * fwprop.c (try_fwprop_subst): Likewise.
4036         * rtlanal.c (noop_move_p): Likewise.
4037         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4038         notes to non-existing libcall blocks.
4039         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4040         Remove orig_set.
4041         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4042         (dead_libcall_p): Remove.
4043         (delete_trivially_dead_insns): Don't use it.
4044         * web.c (union_defs): Remove comment about keeping nops.
4045         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4046         (compute_hash_table_work): Don't track libcall notes.
4047         (do_local_cprop): Don't take libcall pointers.  Don't update
4048         libcall notes.
4049         (adjust_libcall_notes): Deleted.
4050         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4051         ever have existed in the first place).
4052         (replace_store_insn): Don't try to remove libcall notes.
4053         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4054         (resolve_reg_notes): Don't call them.
4055         (resolve_simple_move): Likewise.
4056         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4057         Don't remove REG_RETVAL notes.
4058         * emit-rtl.c (try_split): Don't update libcall notes.
4059         (emit_copy_of_insn_after): Dito.
4060         * cselib.c (cselib_current_insn_in_libcall): Remove.
4061         (cselib_process_insn): Don't set/clear it.
4062         (new_elt_loc_list): Don't record it.
4063         (cselib_init): Don't initialize it.
4064         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4065         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4066         notes.
4067         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4068         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4069         (init_deps): Don't initialize it.
4070         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4071         * combine.c (delete_noop_moves): Don't update libcall notes.
4072         (can_combine_p): Remove now pointless #if 0 block.
4073         (try_combine): Remove another obsolete #if 0 block.
4074         (distribute_notes): Don't distribute libcall notes.
4075         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4076         * dce.c (libcall_dead_p): Remove.
4077         (delete_unmarked_insns): Don't handle libcall blocks.
4078         (preserve_libcall_for_dce): Remove.
4079         (prescan_insns_for_dce): Don't special-case libcall block insns.
4080         * reload1 (reload): Don't handle libcall notes. 
4081         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4082         documentation.
4084 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4086         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4087         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4088         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4090 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4092         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4093         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4094         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
4096 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4098         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4100 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4102         PR tree-optimization/36493
4103         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4104         the arguments list. Use VECTYPE to create vector pointer.
4105         (vectorizable_store): Fail if accesses through a pointer to vectype
4106         do not alias the original memory reference operands.
4107         Call vect_create_data_ref_ptr without the removed argument.
4108         (vectorizable_load): Likewise.
4109         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4110         removed argument.
4112 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4114         PR target/36336
4115         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
4116         reg_equiv_constant.
4118 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4120         * config/mips/loongson2ef.md: New file.
4121         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4122         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4123         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4124         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4125         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4126         and loongson_2f.
4127         (loongson2ef.md): New include.
4128         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4129         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4130         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4131         (loongson_gt_<mode>, loongson_extract_halfword)
4132         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4133         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4134         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4135         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4136         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4137         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4138         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4139         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4140         (vec_interleave_low<mode>): Define type attribute.
4141         * config/mips/mips.c (mips_ls2): New static variable.
4142         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4143         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4144         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4145         Implement target scheduling hooks.
4146         (mips_multipass_dfa_lookahead): Update to handle tuning for
4147         Loongson 2E/2F.
4148         (mips_sched_init): Initialize data for Loongson scheduling.
4149         (mips_ls2_variable_issue): New static function.
4150         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4151         Add sanity check.
4152         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4153         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4154         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4155         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4156         Handle ST Loongson 2E/2F cores.
4157         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4159 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4161         * omp-low.c (extract_omp_for_data): Fix comment typo.
4162         * c.opt: Fix typo.
4164 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4166         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4167         FIXME note about gcc/config.guess.
4168         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4169         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4170         * doc/cppopts.texi: Likewise.
4171         * doc/extend.texi: Likewise.
4172         * doc/gcc.texi: Likewise.
4173         * doc/gccint.texi: Likewise.
4174         * doc/gcov.texi: Likewise.
4175         * doc/gty.texi: Likewise.
4176         * doc/hostconfig.texi: Likewise.
4177         * doc/install.texi: Likewise.
4178         * doc/invoke.texi: Likewise.
4179         * doc/loop.texi: Likewise.
4180         * doc/makefile.texi: Likewise.
4181         * doc/md.texi: Likewise.
4182         * doc/passes.texi: Likewise.
4183         * doc/tm.texi: Likewise.
4184         * doc/tree-ssa.texi: Likewise.
4185         * doc/trouble.texi: Likewise.
4187 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4188             Nathan Sidwell  <nathan@codesourcery.com>
4189             Maxim Kuvyrkov  <maxim@codesourcery.com>
4190             Richard Sandiford  <rdsandiford@googlemail.com>
4191         
4192         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4193         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4194         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4195         builtins.
4196         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4197         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4198         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4199         V8QImode cases.
4200         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4201         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4202         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4203         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4204         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4205         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4206         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4207         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4208         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4209         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4210         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4211         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4212         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4213         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4214         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4215         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4216         (mips_builtins): Add Loongson builtins.
4217         (mips_loongson_2ef_bdesc): New.
4218         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4219         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4220         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4221         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4222         New.
4223         (mips_expand_vector_init): New.
4224         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4225         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4226         if appropriate.
4227         * config/mips/mips.md: Add unspec numbers for Loongson
4228         builtins.  Include loongson.md.
4229         (MOVE64): Include Loongson vector modes.
4230         (SPLITF): Include Loongson vector modes.
4231         (HALFMODE): Handle Loongson vector modes.
4232         * config/mips/loongson.md: New.
4233         * config/mips/loongson.h: New.
4234         * config.gcc: Add loongson.h header for mips*-*-* targets.
4235         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4237 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4239         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4240         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4241         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4242         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4243         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4244         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4245         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4246         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4247         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4248         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4249         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4250         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4251         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4252         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4253         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4254         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4255         Remove use_fixproto=yes.
4256         (ia64*-*-hpux*): Remove comment about using fixproto.
4257         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4259 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4261         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4262         library rebuilds.
4263         * configure: Regenerate.
4265 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4267         PR middle-end/36520
4268         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4269         before evaluating it.
4271 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4273         PR c/36507
4274         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4275         nested inline functions.
4276         (start_decl, start_function): Don't invert DECL_EXTERNAL
4277         for nested inline functions.
4279 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4281         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4282         splits that must be made for correctness.
4284 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4286         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4287         (AVAIL_NON_MIPS16): Likewise.
4288         (mips_builtin_description): Replace target_flags with a predicate.
4289         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4290         (dspr2_32): New availability predicates.
4291         (MIPS_BUILTIN): New macro.
4292         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4293         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4294         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4295         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4296         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4297         (mips_dsp_32only_bdesc): Merge into...
4298         (mips_builtins): ...this new array.
4299         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4300         (mips_init_builtins): Update after above changes.
4301         (mips_expand_builtin_1): Merge into...
4302         (mips_expand_builtin): ...here and update after above changes.
4304 2008-06-12  Paul Brook  <paul@codesourcery.com>
4306         * longlong.h (__arm__): Define count_leading_zeros.
4307         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4308         (clzsi2, clzdi2): New functions.
4309         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4310         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4311         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4312         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4313         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4314         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4315         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4316         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4317         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4318         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4320 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4322         * config/m68k/m68k.c (m68k_tune_flags): New.
4323         (override_options): Compute m68k_tune_flags.
4324         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4325         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4327 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4329         PR middle-end/36506
4330         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4332 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4334         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4335         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4337 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4339         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4340         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4342 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4344         PR middle-end/36506
4345         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4346         reductions.
4348 2008-06-12  Richard Guenther  <rguenther@suse.de>
4350         PR tree-optimization/36345
4351         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4352         add memory_tag_needed flag.
4353         (may_alias_p): Declare.
4354         * tree-ssa-alias.c (may_alias_p): Export.
4355         (set_initial_properties): Use memory_tag_needed flag.
4356         (update_reference_counts): Likewise.
4357         (reset_alias_info): Reset memory_tag_needed flag.
4358         (create_name_tags): Check memory_tag_needed flag.
4359         (dump_points_to_info_for): Dump it.
4360         * tree-ssa-structalias.c (struct variable_info): Remove
4361         directly_dereferenced flag.
4362         (new_var_info): Do not initialize it.
4363         (process_constraint_1): Do not set it.
4364         (update_alias_info): Set is_dereferenced flag.
4365         (set_uids_in_ptset): Use may_alias_p.
4366         (set_used_smts): Check memory_tag_needed flag.
4367         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4368         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4369         memory_tag_needed flag.
4370         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4371         from broken design.
4373 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4375         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4376         red zone for w64 abi.
4377         (ix86_expand_prologue): Likewise.
4378         (ix86_force_to_memory): Likewise.
4379         (ix86_free_from_memory): Likewise.
4381 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4383         PR target/36425
4384         * config/rs6000/rs6000.c (rs6000_override_options): Set
4385         rs6000_isel conditionally to the absence of comand line override.
4386         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4387         Remove duplicate rs6000_isel setting.
4388         * config/rs6000/eabispe.h: Ditto.
4390 2008-06-11  Richard Guenther  <rguenther@suse.de>
4392         * alias.c (get_alias_set): Use the element alias-set for arrays.
4393         (record_component_aliases): For arrays and vectors do nothing.
4394         * c-common.c (strict_aliasing_warning): Handle the cases
4395         of alias set zero explicitly.
4396         * Makefile.in (dfp.o-warn): Add -Wno-error.
4398 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4400         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4401         tune_32 tune_64.
4402         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4403         tune_32 tune_64 to supported_defaults.  Allow values not
4404         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4405         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4406         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4407         with_cpu_64 to generic for 64-bit-supporting configurations, not
4408         with_cpu.  Remove FIXMEs.
4409         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4410         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4411         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4412         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4413         arch_32 and arch_64.
4415 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4416             Olivier Hainque  <hainque@adacore.com>
4418         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4419         Use DECL_SIZE_UNIT to retrieve the size of the field.
4421 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4423         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4424         with function calls after declarations.  Lay out
4425         neon_float_type_node before further use.
4427 2008-06-11  Richard Guenther  <rguenther@suse.de>
4429         * tree-flow.h (may_point_to_global_var): Declare.
4430         * tree-ssa-alias.c (may_point_to_global_var): New function.
4431         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4433 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4435         * configure.ac: Teach that fido supports .debug_line.
4436         * configure: Regenerate.
4438 2008-06-10  Tom Tromey  <tromey@redhat.com>
4440         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4441         debug hook.
4443 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4445         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4446         (encode_decimal64, decode_decimal64, encode_decimal128,
4447         decode_decimal128): Reverse order of 32-bit parts of value if host
4448         and target endianness differ.
4450 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4452         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4453         Avoid division by 0.
4454         (tree_mod_pow2_value_transform): Likewise.
4455         (tree_ic_transform): Likewise.
4456         (tree_stringops_transform): Likewise.
4457         (tree_mod_subtract_transform): Likewise.
4458         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4459         (copy_edges_for_bb): Likewise.
4460         (initialize_cfun): Likewise.
4462 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4464         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4465         nonmemory_operand. Add "N" operand constraint.
4466         (*btsi): Ditto.
4467         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4468         (*jcc_btsi_mask): Ditto.
4469         (*jcc_btsi_mask_1): Ditto.
4471 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4473         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4474         TYPE_CANONICAL for copied element type.
4476 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4478         PR target/36473
4479         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4480         Add m_CORE2 and m_GENERIC.
4481         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4482         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4483         (*btsi): Ditto.
4484         (*jcc_btdi_rex64): New instruction and split pattern.
4485         (*jcc_btsi): Ditto.
4486         (*jcc_btsi_1): Ditto.
4487         (*btsq): Fix Intel asm dialect operand order.
4488         (*btrq): Ditto.
4489         (*btcq): Ditto.
4491 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4493         PR middle-end/36447
4494         * simplify-rtx.c (simplify_subreg): Add check for shift count 
4495         greater than size.
4497 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4499         * doc/md.texi: Synchronize with later constraints.md change.
4500         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4501         with a C implementation.
4502         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4503         MFLO handling.
4504         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4505         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4506         when moving to and from MD_REGNUM.
4507         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4508         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4509         Handle byte and halfword moves.
4510         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4511         separately.
4512         * config/mips/constraints.md (h): Turn into NO_REGS.
4513         (l, x): Update documentation.
4514         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4515         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4516         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4517         (HILO): New mode iterator.
4518         (MOVE128): Add TI.
4519         (any_div): New code iterator.
4520         (u): Extend code attribute to div and udiv.
4521         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4522         d_operand in the splitters.  Remove redundant CONST_INT checks.
4523         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4524         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4525         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4526         accordingly, using normal moves instead of unspecs to move LO into
4527         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4528         (<u>mulsidi3): Handle expansion in C code.
4529         (<u>mulsidi3_32bit_internal): Rename to...
4530         (<u>mulsidi3_32bit): ...this.
4531         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4532         (*<u>mulsidi3_64bit): Rename to...
4533         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4534         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4535         to set LO and HI to the multiplication result.  Use a normal move
4536         for MFLO and an unspec for MFHI.
4537         (*<u>mulsidi3_64bit_parts): Replace with...
4538         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4539         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4540         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4541         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4542         instead of HI.  Split the instruction into a separate multiplication
4543         and MFHI if !TARGET_FIX_R4000.
4544         (<su>muldi3_highpart): Likewise.
4545         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4546         and the "=h" clobber.
4547         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4548         (<u>mulditi3): New expander.
4549         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4550         (madsi): Remove "=h" clobber.
4551         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4552         Force the modulus result to be a GPR and split the instruction into
4553         a division followed by an MFHI after reload.
4554         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4555         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4556         the MIPS16 HIGH define_split.
4557         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4558         of acc<->gpr moves to "multi".
4559         (*movdi_64bit): Replace the single "x" alternative with
4560         alternatives for moving into and out of "a".
4561         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4562         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4563         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4564         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4565         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4566         (movti): New expander.
4567         (*movti, *movti_mips16): New insns.
4568         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4569         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4570         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4571         * config/mips/predicates.md (fpr_operand): Delete.
4572         (d_operand): New predicate.
4574 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4576         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4577         failure on some Bourne shells.
4578         (x86_64-*-*): Ditto.
4580 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4582         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4584 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4586         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4587         (sparc-sun-solaris2*): Likewise.
4589 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4591         * doc/install.texi: Update requirements to build the Ada compiler.
4593 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4595         * df-scan.c (struct df_scan_problem_data): Remove the
4596         mw_link_pool alloc pool.
4597         (df_scan_free_internal): Don't free it.
4598         (df_scan_alloc): Don't allocate it.
4599         * df.h (struct df_link): Update comment.
4601 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4603         * except.h: Correct checks for when SJLJ exceptions must be used.
4605 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4607         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4608         default.
4609         
4610 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4612         PR tree-optimization/36218
4613         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4614         configure for the build system.
4615         (BUILD_LDFLAGS): Define.
4616         * configure: Regenerate.
4617         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4619 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4621         PR target/36424
4622         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4623         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
4624         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
4626 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4628         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4630 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4632         * config.gcc (Obsolete configurations): Remove list of
4633         configurations.
4634         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4635         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4636         targets matched by those patterns.
4637         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4638         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4639         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4640         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4641         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4642         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4643         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4644         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
4645         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
4646         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
4647         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
4648         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
4649         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
4650         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
4651         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
4652         Make code for Solaris 7 and greater unconditional for Solaris.
4653         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
4654         Remove --with-* handling.
4655         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
4656         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
4657         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
4658         LINK_OS_WINDISS_SPEC): Remove.
4659         * config/rs6000/sysv4.opt (mwindiss): Remove.
4660         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
4661         * configure: Regenerate.
4662         * doc/cpp.texi: Don't mention BeOS.
4663         * doc/extend.texi (interrupt): Don't mention MS1.
4664         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
4665         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
4666         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
4667         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
4668         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
4669         Remove.
4670         * doc/invoke.texi (MT Options): Remove.
4671         (-mwindiss): Remove.
4672         (CRIS Options): Remove cris-axis-aout references.
4673         (HPPA Options): Don't mention hppa1.1-*-pro.
4674         * doc/md.texi: (MorphoTech family): Remove.
4675         * libgcc2.c: Don't handle UWIN.
4676         * config/alpha/t-unicosmk: Remove.
4677         * config/alpha/unicosmk.h: Remove.
4678         * config/arm/kaos-arm.h: Remove.
4679         * config/arm/kaos-strongarm.h: Remove.
4680         * config/arm/strongarm-coff.h: Remove.
4681         * config/arm/strongarm-elf.h: Remove.
4682         * config/arm/strongarm-pe.h: Remove.
4683         * config/arm/t-strongarm-pe: Remove.
4684         * config/arm/t-xscale-coff: Remove.
4685         * config/arm/t-xscale-elf: Remove.
4686         * config/arm/xscale-coff.h: Remove.
4687         * config/arm/xscale-elf.h: Remove.
4688         * config/chorus.h: Remove.
4689         * config/cris/aout.h: Remove.
4690         * config/cris/aout.opt: Remove.
4691         * config/cris/t-aout: Remove.
4692         * config/i386/beos-elf.h: Remove.
4693         * config/i386/kaos-i386.h: Remove.
4694         * config/i386/ptx4-i.h: Remove.
4695         * config/i386/sco5.h: Remove.
4696         * config/i386/sco5.opt: Remove.
4697         * config/i386/sysv4-cpp.h: Remove.
4698         * config/i386/sysv5.h: Remove.
4699         * config/i386/t-beos: Remove.
4700         * config/i386/t-sco5: Remove.
4701         * config/i386/t-uwin: Remove.
4702         * config/i386/uwin.asm: Remove.
4703         * config/i386/uwin.h: Remove.
4704         * config/kaos.h: Remove.
4705         * config/mips/windiss.h: Remove.
4706         * config/mt: Remove directory.
4707         * config/pa/pa-osf.h: Remove.
4708         * config/pa/pa-pro-end.h: Remove.
4709         * config/pa/t-pro: Remove.
4710         * config/ptx4.h: Remove.
4711         * config/rs6000/beos.h: Remove.
4712         * config/rs6000/kaos-ppc.h: Remove.
4713         * config/rs6000/t-beos: Remove.
4714         * config/rs6000/windiss.h: Remove.
4715         * config/sh/kaos-sh.h: Remove.
4716         * config/sol2-6.h: Remove.
4717         * config/sparc/sol26-sld.h: Remove.
4718         * config/sparc/sysv4-only.h: Remove.
4719         * config/vax/bsd.h: Remove.
4720         * config/vax/t-memfuncs: Remove.
4721         * config/vax/ultrix.h: Remove.
4722         * config/vax/vaxv.h: Remove.
4723         * config/windiss.h: Remove.
4725 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
4727         PR rtl-optimization/36438
4728         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
4729         for vector shifts with constant scalar shift operands.
4731 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
4733         * doc/invoke.texi: Document -march=xlr.
4734         * config/mips/xlr.md: New file.
4735         * config/mips/mips.md: Include it.
4736         (cpu): Add "xlr".
4737         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
4738         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
4739         (mips_rtx_cost_data): Likewise.
4741 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
4743         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
4744         PRE_INC and PRE_DEC cases.
4746 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4748         PR rtl-optimization/36419
4749         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
4750         the emitting jump insn.
4752         PR target/36362
4753         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
4754         is not bool, boolify the whole *expr_p and convert to the desired type.
4756 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
4758         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
4759         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
4760         Add omp_private_outer_ref hook, add another argument to
4761         omp_clause_default_ctor hook.
4762         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
4763         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
4764         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
4765         hook_tree_tree_tree_tree_null.
4766         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
4767         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
4768         * hooks.c (hook_tree_tree_tree_tree_null): New function.
4769         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
4770         * tree.def (OMP_TASK): New tree code.
4771         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
4772         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
4773         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
4774         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
4775         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
4776         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
4777         OMP_CLAUSE_COLLAPSE_EXPR): Define.
4778         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4779         (OMP_DIRECTIVE_P): Add OMP_TASK.
4780         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
4781         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
4782         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
4783         and OMP_CLAUSE_UNTIED entries.
4784         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
4785         num_ops to 2.
4786         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4787         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
4788         * tree-pretty-print.c (dump_omp_clause): Handle
4789         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
4790         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
4791         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
4792         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
4793         warning about unsigned iterators.  Change decl/init/cond/incr
4794         arguments to TREE_VECs, check arguments for all collapsed loops.
4795         (c_finish_omp_taskwait): New function.
4796         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
4797         ws_clauses.
4798         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
4799         default_function_array_conversion on init.  Add par_clauses argument.
4800         If decl is present in parallel's lastprivate clause, change it to
4801         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
4802         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
4803         collapse count in clauses.
4804         (c_parser_omp_for, c_parser_omp_parallel): Adjust
4805         c_parser_omp_for_loop callers.
4806         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
4807         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
4808         (c_parser_omp_clause_name): Handle collapse and untied clauses.
4809         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
4810         functions.
4811         (c_parser_omp_clause_schedule): Handle schedule(auto).
4812         Include correct location in the error message.
4813         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
4814         and PRAGMA_OMP_CLAUSE_UNTIED.
4815         (OMP_TASK_CLAUSE_MASK): Define.
4816         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
4817         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
4818         * tree-nested.c (convert_nonlocal_omp_clauses,
4819         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
4820         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
4821         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4822         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
4823         OMP_CLAUSE_DECL.
4824         (conver_nonlocal_reference, convert_local_reference,
4825         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
4826         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
4827         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
4828         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
4829         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
4830         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
4831         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
4832         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
4833         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4834         OMP_CLAUSE_UNTIED.
4835         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
4836         * c-common.h (c_finish_omp_taskwait): New prototype.
4837         * gimple-low.c (lower_stmt): Handle OMP_TASK.
4838         * tree-parloops.c (create_parallel_loop): Create 1 entry
4839         vectors for OMP_FOR_{INIT,COND,INCR}.
4840         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
4841         (make_edges): Handle OMP_TASK.
4842         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
4843         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4844         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
4845         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
4846         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
4847         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4848         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
4849         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
4850         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
4851         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
4852         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
4853         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
4854         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
4855         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
4856         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
4857         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
4858         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
4859         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
4860         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
4861         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
4862         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
4863         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
4864         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
4865         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
4866         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
4867         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
4868         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
4869         original iterator is present in lastprivate clause or if
4870         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
4871         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4872         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
4873         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
4874         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
4875         if it is set, lookup var in outer contexts too.  Handle
4876         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
4877         to be implicitly determined firstprivate for task regions.
4878         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
4879         if it is set, lookup var in outer contexts too.  Set
4880         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
4881         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
4882         OMP_CLAUSE_UNTIED.  Take region_type as last argument
4883         instead of in_parallel and in_combined_parallel.
4884         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4885         Adjust callers.
4886         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
4887         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
4888         (new_omp_context): Set default_kind to
4889         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
4890         (omp_region_type): New enum.
4891         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
4892         fields, add region_type.
4893         (new_omp_context): Take region_type as argument instead of is_parallel
4894         and is_combined_parallel.
4895         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
4896         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
4897         ctx->is_combined_parallel checks.
4898         (gimplify_omp_task): New function.
4899         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
4900         OMP_CLAUSE_UNTIED.
4901         * omp-low.c (extract_omp_for_data): Use schedule(static)
4902         for schedule(auto).  Handle pointer and unsigned iterators.
4903         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
4904         Add loops argument.  Extract data for collapsed OMP_FOR loops.
4905         (expand_parallel_call): Assert sched_kind isn't auto,
4906         map runtime schedule to index 3.
4907         (struct omp_for_data_loop): New type.
4908         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
4909         Add loop, loops, collapse and iter_type fields.
4910         (workshare_safe_to_combine_p): Disallow combined for if
4911         iter_type is unsigned long long.  Don't combine collapse > 1 loops
4912         unless all bounds and steps are constant.  Adjust extract_omp_for_data
4913         caller.
4914         (expand_omp_for_generic): Handle pointer, unsigned and long long
4915         iterators.  Handle collapsed OMP_FOR loops.  Adjust
4916         for struct omp_for_data changes.  If libgomp function doesn't return
4917         boolean_type_node, add comparison of the return value with 0.
4918         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
4919         pointer, unsigned and long long iterators.  Adjust for struct
4920         omp_for_data changes.
4921         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
4922         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
4923         unsigned long long.  Allocate loops array, pass it to
4924         extract_omp_for_data.  For collapse > 1 loops use always
4925         expand_omp_for_generic.
4926         (omp_context): Add sfield_map and srecord_type fields.
4927         (is_task_ctx, lookup_sfield): New functions.
4928         (use_pointer_for_field): Use is_task_ctx helper.  Change first
4929         argument's type from const_tree to tree.  Clarify comment.
4930         In OMP_TASK disallow copy-in/out sharing.
4931         (build_sender_ref): Call lookup_sfield instead of lookup_field.
4932         (install_var_field): Add mask argument.  Populate both record_type
4933         and srecord_type if needed.
4934         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
4935         in srecord_type.
4936         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
4937         and DECL_FIELD_OFFSET.
4938         (scan_sharing_clauses): Adjust install_var_field callers.  For
4939         firstprivate clauses on explicit tasks allocate the var by value in
4940         record_type unconditionally, rather than by reference.
4941         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
4942         Use is_taskreg_ctx instead of is_parallel_ctx.
4943         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
4944         (create_omp_child_function_name): Add task_copy argument, use
4945         *_omp_cpyfn* names if it is true.
4946         (create_omp_child_function): Add task_copy argument, if true create
4947         *_omp_cpyfn* helper function.
4948         (scan_omp_parallel): Adjust create_omp_child_function callers.
4949         Rename parallel_nesting_level to taskreg_nesting_level.
4950         (scan_omp_task): New function.
4951         (lower_rec_input_clauses): Don't run constructors for firstprivate
4952         explicit task vars which are initialized by *_omp_cpyfn*.  
4953         Pass outer var ref to omp_clause_default_ctor hook if
4954         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
4955         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
4956         OMP_CLAUSE_REDUCTION_INIT.
4957         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
4958         avoid duplicate setting of fields.  Handle
4959         OMP_CLAUSE_PRIVATE_OUTER_REF.
4960         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
4961         copy-out if TREE_READONLY, only copy-in.
4962         (expand_task_copyfn): New function.
4963         (expand_task_call): New function.
4964         (struct omp_taskcopy_context): New type.
4965         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
4966         New functions.
4967         (lower_omp_parallel): Rename to...
4968         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
4969         Call create_task_copyfn if srecord_type is needed.  Adjust
4970         sender_decl type.
4971         (task_shared_vars): New variable.
4972         (check_omp_nesting_restrictions): Warn if work-sharing,
4973         barrier, master or ordered region is closely nested inside OMP_TASK.
4974         Add warnings for barrier if closely nested inside of work-sharing,
4975         ordered, or master region.
4976         (scan_omp_1): Call check_omp_nesting_restrictions even for
4977         GOMP_barrier calls.  Rename parallel_nesting_level to
4978         taskreg_nesting_level.  Handle OMP_TASK.
4979         (lower_lastprivate_clauses): Even if some lastprivate is found on a
4980         work-sharing construct, continue looking for them on parent parallel
4981         construct.
4982         (lower_omp_for_lastprivate): Add lastprivate clauses
4983         to the beginning of dlist rather than end.  Adjust for struct
4984         omp_for_data changes.
4985         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
4986         not after it.  Handle collapsed OMP_FOR loops, adjust for
4987         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
4988         (get_ws_args_for): Adjust extract_omp_for_data caller.
4989         (scan_omp_for): Handle collapsed OMP_FOR
4990         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
4991         (lower_omp_single_simple): If libgomp function doesn't return
4992         boolean_type_node, add comparison of the return value with 0.
4993         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
4994         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
4995         (parallel_nesting_level): Rename to...
4996         (taskreg_nesting_level): ... this.
4997         (is_taskreg_ctx): New function.
4998         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
4999         of is_parallel_ctx.
5000         (execute_lower_omp): Rename parallel_nesting_level to
5001         taskreg_nesting_level.
5002         (expand_omp_parallel): Rename to...
5003         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5004         Call omp_task_call for OMP_TASK regions.
5005         (expand_omp): Adjust caller, handle OMP_TASK.
5006         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5008         * bitmap.c (bitmap_default_obstack_depth): New variable.
5009         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5010         if argument is NULL and bitmap_default_obstack is already initialized.
5011         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5012         at the end.
5013         * matrix-reorg.c (matrix_reorg): Likewise.
5015 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5017         * config/i386/i386.md (*indirect_jump): Macroize using P
5018         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5019         (*tablejump_1): Ditto.
5020         (*indirect_jump_rex64): Remove insn pattern.
5021         (*tablejump_1_rex64): Ditto.
5022         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5023         and eh_return_si insn patterns.
5025 2008-06-06  Richard Guenther  <rguenther@suse.de>
5027         * tree-ssa-structalias.c (merge_smts_into): Remove.
5028         (find_what_p_points_to): Do not bother to compute the
5029         points-to set for pt_anything pointers.
5030         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5031         for pt_anything pointers is ok.
5033 2008-06-06  Jan Hubicka  <jh@suse.cz>
5035         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5037 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5039         * cgraph.c: Fix typos in comments.
5040         (cgraph_availability_names): Fix string typo.
5041         * fold-const.c: Fix typos in comments.
5042         (fold_binary): Fix typo in warning.
5043         * genautomata.c: Fix typos in comments.
5044         (check_presence_pattern_sets): Fix typo in local variable.
5045         (output_description): Fix typo in output.
5046         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5047         * hwint.h: Likewise.
5048         * matrix-reorg.c (check_allocation_function): Likewise.
5049         * omega.c (smooth_weird_equations): Likewise.
5050         * auto-inc-dec.c: Fix typos in comments.
5051         * bb-reorder.c: Likewise.
5052         * builtins.c: Likewise.
5053         * c-common.c: Likewise.
5054         * c-cppbuiltin.c: Likewise.
5055         * c-parser.c: Likewise.
5056         * c-pretty-print.c: Likewise.
5057         * cfgcleanup.c: Likewise.
5058         * cfgexpand.c: Likewise.
5059         * cfghooks.c: Likewise.
5060         * cfglayout.c: Likewise.
5061         * cfgloopmanip.c: Likewise.
5062         * cgraphunit.c: Likewise.
5063         * coverage.c: Likewise.
5064         * dbxout.c: Likewise.
5065         * df-byte-scan.c: Likewise.
5066         * df-core.c: Likewise.
5067         * df-problems.c: Likewise.
5068         * df-scan.c: Likewise.
5069         * dfp.c: Likewise.
5070         * dominance.c: Likewise.
5071         * domwalk.c: Likewise.
5072         * dse.c: Likewise.
5073         * dwarf2out.c: Likewise.
5074         * emit-rtl.c: Likewise.
5075         * et-forest.c: Likewise.
5076         * function.c: Likewise.
5077         * function.h: Likewise.
5078         * gcc.c: Likewise.
5079         * gcov-io.c: Likewise.
5080         * gcov.c: Likewise.
5081         * gcse.c: Likewise.
5082         * genattrtab.c: Likewise.
5083         * ggc-page.c: Likewise.
5084         * gimplify.c: Likewise.
5085         * gthr-lynx.h: Likewise.
5086         * haifa-sched.c: Likewise.
5087         * ipa-cp.c: Likewise.
5088         * ipa-inline.c: Likewise.
5089         * ipa-prop.h: Likewise.
5090         * ipa-pure-const.c: Likewise.
5091         * ipa-struct-reorg.c: Likewise.
5092         * ipa-struct-reorg.h: Likewise.
5093         * ipa-type-escape.c: Likewise.
5094         * ipa.c: Likewise.
5095         * loop-doloop.c: Likewise.
5096         * mips-tfile.c: Likewise.
5097         * mkmap-flat.awk: Likewise.
5098         * mkmap-symver.awk: Likewise.
5099         * modulo-sched.c: Likewise.
5100         * omp-low.c: Likewise.
5101         * optabs.c: Likewise.
5102         * optabs.h: Likewise.
5103         * opts.c: Likewise.
5104         * passes.c: Likewise.
5105         * postreload-gcse.c: Likewise.
5106         * postreload.c: Likewise.
5107         * predict.c: Likewise.
5108         * pretty-print.h: Likewise.
5109         * profile.c: Likewise.
5110         * protoize.c: Likewise.
5111         * ra-conflict.c: Likewise.
5112         * real.c: Likewise.
5113         * recog.c: Likewise.
5114         * regclass.c: Likewise.
5115         * regs.h: Likewise.
5116         * reload.c: Likewise.
5117         * rtl-error.c: Likewise.
5118         * rtlanal.c: Likewise.
5119         * scan.h: Likewise.
5120         * sched-rgn.c: Likewise.
5121         * see.c: Likewise.
5122         * stmt.c: Likewise.
5123         * target.h: Likewise.
5124         * tree-dfa.c: Likewise.
5125         * tree-eh.c: Likewise.
5126         * tree-flow-inline.h: Likewise.
5127         * tree-inline.c: Likewise.
5128         * tree-into-ssa.c: Likewise.
5129         * tree-loop-distribution.c: Likewise.
5130         * tree-nested.c: Likewise.
5131         * tree-parloops.c: Likewise.
5132         * tree-pass.h: Likewise.
5133         * tree-pretty-print.c: Likewise.
5134         * tree-profile.c: Likewise.
5135         * tree-scalar-evolution.c: Likewise.
5136         * tree-sra.c: Likewise.
5137         * tree-ssa-alias-warnings.c: Likewise.
5138         * tree-ssa-ccp.c: Likewise.
5139         * tree-ssa-coalesce.c: Likewise.
5140         * tree-ssa-dom.c: Likewise.
5141         * tree-ssa-dse.c: Likewise.
5142         * tree-ssa-forwprop.c: Likewise.
5143         * tree-ssa-live.c: Likewise.
5144         * tree-ssa-live.h: Likewise.
5145         * tree-ssa-loop-im.c: Likewise.
5146         * tree-ssa-loop-ivopts.c: Likewise.
5147         * tree-ssa-loop-niter.c: Likewise.
5148         * tree-ssa-loop-prefetch.c: Likewise.
5149         * tree-ssa-phiopt.c: Likewise.
5150         * tree-ssa-phiprop.c: Likewise.
5151         * tree-ssa-sccvn.c: Likewise.
5152         * tree-ssa-ter.c: Likewise.
5153         * tree-ssa-threadupdate.c: Likewise.
5154         * tree-ssa.c: Likewise.
5155         * tree-vect-analyze.c: Likewise.
5156         * tree-vect-transform.c: Likewise.
5157         * tree-vectorizer.c: Likewise.
5158         * tree-vn.c: Likewise.
5159         * tree-vrp.c: Likewise.
5160         * tree.c: Likewise.
5161         * tree.def: Likewise.
5162         * tree.h: Likewise.
5163         * unwind-dw2-fde.c: Likewise.
5164         * unwind.inc: Likewise.
5165         * value-prof.c: Likewise.
5166         * vmsdbgout.c: Likewise.
5168 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5170         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5171         always place FP constants in the TOC for TARGET_POWERPC64.
5172         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5174 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5176         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5177         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5178         enable for TARGET_E500_DOUBLE.
5179         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5180         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5181         floating-point modes like integer modes for E500 double.
5182         (rs6000_legitimate_offset_address_p): Likewise.
5183         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5184         addressing for DDmode for E500 double.
5185         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5186         modes as using 64-bits of registers for E500 double.
5187         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5188         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5189         specially for E500 double.
5190         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5191         TDmode for E500 double.
5192         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5193         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5194         (rs6000_split_multireg_move): Do not handle TDmode specially for
5195         E500 double.
5196         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5197         using 64-bit registers for E500 double.
5198         (emit_frame_save): Do not handle DDmode specially for E500 double.
5199         (gen_frame_mem_offset): Likewise.
5200         (rs6000_function_value): Do not call spe_build_register_parallel
5201         for DDmode or TDmode.
5202         (rs6000_libcall_value): Likewise.
5203         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5204         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5205         for E500 double.
5207 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5209         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5210         in comments.
5212 2008-06-04  Junjie Gu <jgu@tensilica.com>
5214         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5215         comparison for frame pointers.
5217 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5219         PR target/27386
5220         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5222 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5224         PR target/30243
5225         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5226         register is already smaller or equal to required mode. 
5228 2008-06-04  Xinliang David Li  <davidxl@google.com>
5230         * tree-call-cdce.c: New file. 
5231         (cond_dead_built_in_calls): New static variable.
5232         (input_domain): New struct.
5233         (check_pow): New function.
5234         (check_builtin_call): Ditto.
5235         (check_target_format): Ditto.
5236         (is_call_dce_candidate): Ditto.
5237         (gen_one_condition): Ditto.
5238         (gen_conditions_for_domain): Ditto.
5239         (get_domain): Ditto.
5240         (gen_conditions_for_pow_cst_base): Ditto.
5241         (gen_conditions_for_pow_int_base): Ditto.
5242         (gen_conditions_for_pow): Ditto.
5243         (get_no_error_domain): Ditto.
5244         (gen_shrink_wrap_conditions): Ditto.
5245         (shrink_wrap_one_built_in_call): Ditto.
5246         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5247         (tree_call_cdce): Ditto.
5248         (gate_call_cdce): Ditto.
5249         (pass_call_cdce): New gimple pass.
5250         * passes.c: (init_optimization_passes): New pass.
5251         * tree-pass.h: New pass declaration.
5252         * opts.c (decode_options): New flag setting.
5253         * common.opt: Add -ftree-builtin-call-dce flag.
5254         * Makefile.in: Add new source file.
5255         * tempvar.def: New tv_id.
5256         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5258 2008-06-04  Richard Guenther  <rguenther@suse.de>
5260         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5261         (is_call_clobbered): Always check var_ann->call_clobbered.
5262         (mark_call_clobbered): Always set var_ann->call_clobbered.
5263         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5264         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5265         (reset_alias_info): Clear call clobbering info on MTAGs and
5266         globals as well.
5267         (set_pt_anything): Set pt_global_mem.
5268         (create_tag_raw): Adjust comment.
5269         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5271 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5272             Maxim Kuvyrkov  <maxim@codesourcery.com>
5274         * config/m68k/m68k.opt (mxgot): New option.
5275         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5276         (m68k_output_addr_const_extra): New.
5277         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5278         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5279         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5280         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5282 2008-06-04  Richard Guenther  <rguenther@suse.de>
5284         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5285         negative or non-representable offsets.
5287 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5289         * config/i386/i386.c (ix86_gen_leave): New.
5290         (ix86_gen_pop1): Likewise.
5291         (ix86_gen_add3): Likewise.
5292         (ix86_gen_sub3): Likewise.
5293         (ix86_gen_sub3_carry): Likewise.
5294         (ix86_gen_one_cmpl2): Likewise.
5295         (ix86_gen_monitor): Likewise.
5296         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5297         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5298         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5299         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5300         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5301         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5302         (ix86_expand_epilogue): Updated.
5303         (print_operand): Handle integer register operand for 'z'.
5304         (ix86_expand_strlensi_unroll_1): Likewise.
5305         (ix86_expand_strlen): Likewise.
5306         (ix86_expand_builtin): Likewise.
5307         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5308         mov{q}/mov{l} and add{q}/add{l}.
5310 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5312         * config/i386/i386.md (P): New mode iterator.
5313         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5314         using P mode iterator.
5315         (DFmode push_operand splitter): Ditto.
5316         (XFmode push_operand splitter): Ditto.
5317         (DFmode float_extend SFmode push_operand splitter): Ditto.
5318         (XFmode float_extend SFmode push_operand splitter): Do not generate
5319         SImode pushes for 64bit target.  Macroize Dimode and SImode
5320         pushes using P mode iterator.
5321         (XFmode float_extend DFmode push_operand splitter): Ditto.
5323 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5325         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5326         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5327         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5328         return type to int.
5329         (ix86_call_abi_override): Remove check for call_used_regs.
5331 2008-06-03  Richard Guenther  <rguenther@suse.de>
5333         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5334         for the lhs of calls if the return type contains pointers.
5336 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5338         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5339         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5340         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5341         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5342         of cfun and DEFAULT_ABI to deceide abi mode.
5343         (DEFAULT_ABI): New.
5344         (REG_PARM_STACK_SPACE): Removed.
5345         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5346         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5347         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5348         (ix86_function_abi): Likewise.
5349         (ix86_function_type_abi): Likewise.
5350         (ix86_call_abi_override): Likewise.
5351         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5352         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5353         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5354         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5355         specific defines.
5356         (X86_64_REGPARM_MAX): New.
5357         (X86_64_SSE_REGPARM_MAX): New.
5358         (X64_REGPARM_MAX): New.
5359         (X64_SSE_REGPARM_MAX): New.
5360         (X86_32_REGPARM_MAX): New.
5361         (X86_32_SSE_REGPARM_MAX): New.
5362         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5363         (ix86_function_regparm): Handle user calling abi.
5364         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5365         by DEFAULT_ABI versus SYSV_ABI check.
5366         (ix86_reg_parm_stack_space): New.
5367         (ix86_function_type_abi): New.
5368         (ix86_call_abi_override): New.
5369         (ix86_function_abi): New.
5370         (ix86_cfun_abi): New.
5371         (init_cumulative_args): Call abi specific initialization.
5372         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5373         (function_arg_64): Extend SSE_REGPARM_MAX check.
5374         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5375         (ix86_pass_by_reference): Likewise.
5376         (ix86_function_value_regno_p): Likewise.
5377         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5378         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5379         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5380         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5381         (setup_incoming_varargs_64): Adjust regparm for call abi.
5382         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5383         (ix86_va_start): Likewise.
5384         (ix86_gimplify_va_arg): Likewise.
5385         (ix86_expand_prologue): Likewise.
5386         (output_pic_addr_const): Likewise.
5387         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5388         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5389         (x86_output_mi_thunk): Likewise.
5390         (x86_function_profiler): Likewise.
5391         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5392         (SYSV_ABI, MS_ABI): New constants.
5393         (DEFAULT_ABI): New.
5394         (init_regs): Add prototype of function in regclass.c file.
5395         (OVERRIDE_ABI_FORMAT): New.
5396         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5397         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5398         (OUTGOING_REG_PARM_STACK_SPACE): New.
5399         (ix86_reg_parm_stack_space): New prototype.
5400         (CUMULATIVE_ARGS): Add call_abi member.
5401         (machine_function): Add call_abi member.
5402         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5403         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5405 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
5407         PR target/34879
5408         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5409         (avr_builtin_setjmp_frame_value): New function.
5410         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5411         (nonlocal_goto): Define.
5413 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5415         * config/mips/mips.c (mips_emit_loadgp): Return early if
5416         there is nothing do to, otherwise emit a blockage if
5417         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5418         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5420 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5422         * configure.ac: Drop unneeded backslash ending up in config.in.
5423         * acinclude.m4: Likewise.
5424         * config.in: Regenerate.
5426 2008-05-26  Jan Hubicka  <jh@suse.cz>
5428         * predict.c (maybe_hot_frequency_p): Break out of...
5429         (maybe_hot_bb_p): ... here.
5430         (maybe_hot_edge_p): New.
5431         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5432         * basic-block.h (maybe_hot_edge_p): Declare.
5434 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5436         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5437         (*cmpfp_<mode>_cc): Ditto.
5438         (*fp_jcc_8<mode>_387): Ditto.
5439         (*fop_<MODEF:mode>_2_i387): Ditto.
5440         (*fop_<MODEF:mode>_3_i387): Ditto.
5441         (*fop_xf_2_i387): Ditto.
5442         (*fop_xf_3_i387): Ditto.
5444 2008-06-02  Tomas Bily  <tbily@suse.cz>
5446         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5448 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5450         * config/mips/mips.c (mips_valid_offset_p): New function.
5451         (mips_valid_lo_sum_p): Likewise.
5452         (mips_classify_address): Use them.
5453         (mips_force_address): New function.
5454         (mips_legitimize_address): Use it.
5455         * config/mips/mips.md (MOVE128): New mode iterator.
5456         (movtf): Require TARGET_64BIT.  Remove empty strings.
5457         (*movtf_internal): Rename to...
5458         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5459         of "R" and use {,fp}{load,store} attributes instead of "multi".
5460         Use a separate define_split.
5461         (*movtf_mips16): New pattern.
5463 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5465         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5466         * config/mips/mips.c (mips_expand_before_return): New function.
5467         (mips_expand_epilogue): Call it.
5468         * config/mips/mips.md (return): Turn into a define_expand.
5469         (*return): New insn.
5471 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5473         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5474         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5475         functions.  Do not emit uses and clobbers of CONCATs; individually
5476         use and clobber their operands.
5477         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5478         gen_clobber, emit_use and gen_use.
5479         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5480         (expand_builtin_return): Likewise.
5481         * cfgbuild.c (count_basic_blocks): Likewise.
5482         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5483         * explow.c (emit_stack_restore): Likewise.
5484         * expmed.c (extract_bit_field_1): Likewise.
5485         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5486         (emit_move_multi_word, store_constructor): Likewise.
5487         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5488         (thread_prologue_and_epilogue_insns): Likewise.
5489         * lower-subreg.c (resolve_simple_move): Likewise.
5490         * optabs.c (widen_operand, expand_binop): Likewise.
5491         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5492         * reload.c (find_reloads): Likewise.
5493         * reload1.c (eliminate_regs_in_insn): Likewise.
5494         * stmt.c (expand_nl_goto_receiver): Likewise.
5495         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5496         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5497         * config/arm/arm.c (arm_load_pic_register): Likewise.
5498         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5499         * config/arm/arm.md (untyped_return): Likewise.
5500         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5501         * config/avr/avr.c (expand_prologue): Likewise.
5502         * config/bfin/bfin.c (do_unlink): Likewise.
5503         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5504         * config/cris/cris.c (cris_expand_prologue): Likewise.
5505         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5506         (machopic_legitimize_pic_address): Likewise.
5507         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5508         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5509         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5510         (ix86_expand_convert_uns_didf_sse): Likewise.
5511         (ix86_expand_vector_init_general): Likewise.
5512         * config/ia64/ia64.md (eh_epilogue): Likewise.
5513         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5514         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5515         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5516         (config/iq2000/iq2000.c): Likewise.
5517         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5518         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5519         (builtin_longjmp): Likewise.
5520         * config/mn10300/mn10300.md (call, call_value): Likewise.
5521         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5522         * config/pdp11/pdp11.md (abshi2): Likewise.
5523         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5524         * config/s390/s390.c (s390_emit_prologue): Likewise.
5525         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5526         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5527         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5528         * config/sh/sh.c (prepare_move_operands): Likewise.
5529         (output_stack_adjust, sh_expand_epilogue): Likewise.
5530         (sh_set_return_address, sh_expand_t_scc): Likewise.
5531         * config/sparc/sparc.c (load_pic_register): Likewise.
5532         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5533         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5534         * config/v850/v850.c (expand_epilogue): Likewise.
5536 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5538         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5539         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5540         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5541         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
5542         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
5543         stack pointer register.
5544         (output_movhi): Remove code for interrupt specific writing to the 
5545         stack pointer register.
5547 2008-05-31  Richard Guenther  <rguenther@suse.de>
5549         PR tree-optimization/34244
5550         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5551         (tree_expr_nonzero_warnv_p): Likewise.
5552         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5553         ssa_name_nonnegative_p.
5554         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5555         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5556         not tree_expr_nonzero_warnv_p.
5558         PR tree-optimization/36262
5559         Revert
5560         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5562         PR tree-optimization/34244
5563         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5564         (record_numbers_of_iterations): New function.
5565         (execute_vrp): Cache the numbers of iterations of loops.
5566         * tree-scalar-evolution.c (scev_reset_except_niters):
5567         New function.
5568         (scev_reset): Use scev_reset_except_niters.
5569         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5571 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5573         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5574         __WORKAROUND_RETS when appropriate.
5576 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5578         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5579         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5580         mode iterator.
5581         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5582         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5583         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5584         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5585         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5586         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5587         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5588         *fop_df_1_sse insn patterns using MODEF mode iterator.
5589         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5590         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5591         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5592         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5593         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5594         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5595         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5596         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5597         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5598         (*fop_xf_5_i387): Ditto.
5599         (*fop_xf_6_i387): Ditto.
5601 2008-05-30  Richard Guenther  <rguenther@suse.de>
5603         * builtins.c (build_string_literal): Avoid generating
5604         a non-gimple_val result.
5606 2008-05-30  DJ Delorie  <dj@redhat.com>
5608         * exec-tool.in: Use an environment variable (private) instead of a
5609         file (shared) as a semaphore, so as to not break parallel builds.
5611 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5613         * optabs.c (maybe_encapsulate_block): Remove.
5614         (emit_libcall_block): Adjust accordingly.
5615         * optabs.h (maybe_encapsulate_block): Remove prototype.
5617         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5618         Don't use maybe_encapsulate_block.
5620 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5622         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5623         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5624         rtx is a SYMBOL_REF before calling get_pool_constant.
5626 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5628         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5630 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5632         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5633         rather than OS names to choose INO_T_EQ definition.
5634         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5635         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5637 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5639         PR target/36348
5640         * config/darwin-f.c: New.
5641         * config/t-darwin: Added rule to build darwin-f.o.
5642         * config.gcc: Defined new variable, fortran_target_objs.
5643         (*-*-darwin*): Set fortran_target_objs.
5644         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
5645         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
5646         * configure: Regenerated.
5648 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5650         PR target/35771
5651         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
5652         canonical type if needed.
5654 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
5656         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
5658 2008-05-29  Richard Guenther  <rguenther@suse.de>
5660         PR tree-optimization/36343
5661         PR tree-optimization/36346
5662         PR tree-optimization/36347
5663         * tree-flow.h (clobber_what_p_points_to): Declare.
5664         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
5665         pointed-to variable is dereferenced is irrelevant to whether
5666         the pointer can access the pointed-to variable.
5667         (clobber_what_p_points_to): New function.
5668         * tree-ssa-alias.c (set_initial_properties): Use it.
5669         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
5670         call clobber check for NMTs.
5672 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5673         
5674         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
5675         for printing gcov_type.
5677 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
5679         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
5680         and the eh region information.
5681         * value-prof.c (gimple_move_stmt_histograms): New function.
5682         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
5684 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
5686         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
5688 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
5690         * value-prof.c (tree_ic_transform): Print counts.
5691         * tree-profile.c (tree_gen_ic_func_profiler):
5692         Clear __gcov_indreict_call_callee variable to avoid misattribution
5693         of the profile.
5695 2008-05-28  Rafael Espindola  <espindola@google.com>
5697         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
5698         invalid sharing.
5700 2008-05-28  Richard Guenther  <rguenther@suse.de>
5702         PR tree-optimization/36339
5703         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
5704         and clobbering code out of the loop.
5706 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5708         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
5709         letters defined.
5711         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
5712         s390_contiguous_bitmask_p, s390_symref_operand_p,
5713         s390_check_symref_alignment, s390_reload_larl_operand,
5714         s390_reload_symref_address): New functions.
5715         (s390_branch_condition_mnemonic): Support compare and branch
5716         instructions.
5717         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
5718         and 'W' constraints.
5719         (s390_secondary_reload): Add secondary reloads for unaligned
5720         symbol refs or symbol refs to floating point or QI/TI mode
5721         integer values.
5722         (legitimate_address_p): Accept symbol references as addresses.
5723         (s390_expand_insv): Use rotate and insert selected bits
5724         instruction for insv when building for z10.
5725         (print_operand_address): Handle symbol ref addresses.
5726         (print_operand): Output modifier 'c' added for signed byte values.
5727         (s390_encode_section_info): Mark symbol refs with
5728         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
5730         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
5731         (length attribute): RRF, RRR have 4 byte length.
5732         (FPALL, INTALL): New mode iterators added.
5733         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
5734         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
5735         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
5736         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
5737         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
5738         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
5739         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
5740         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
5741         instructions.
5742         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
5743         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
5744         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
5745         reload<INTALL:mode><P:mode>_toreg_z10,
5746         reload<FPALL:mode><P:mode>_tomem_z10,
5747         reload<FPALL:mode><P:mode>_toreg_z10,
5748         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
5749         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
5750         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
5751         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
5752         definition.
5753         (movmem, clrmem, cmpmem): New splitters added.
5755         * config/s390/predicates.md (larl_operand): Use
5756         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
5757         SYMBOL_REF_ALIGN1_P.
5758         (s390_signed_integer_comparison,
5759         s390_unsigned_integer_comparison): New predicates.
5761         * config/s390/s390-protos.h (s390_check_symref_alignment,
5762         s390_contiguous_bitmask_p, s390_reload_larl_operand,
5763         s390_reload_symref_address,
5764         s390_compare_and_branch_condition_mask): Prototypes added.
5766         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
5767         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
5768         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
5770 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5772         * config/s390/s390.c (z10_cost): New cost function for z10.
5773         (s390_handle_arch_option, override_options): Support -march=z10 switch.
5774         (s390_issue_rate): Adjust issue rate for z10.
5775         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
5776         (processor_flags): Add PF_Z10.
5777         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
5778         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
5779         * gcc/config.gcc: Add z10.
5781 2008-05-28  Richard Guenther  <rguenther@suse.de>
5783         PR tree-optimization/36291
5784         * tree-flow. h (struct gimple_df): Remove var_anns member.
5785         * tree-flow-inline.h (gimple_var_anns): Remove.
5786         (var_ann): Simplify.
5787         * tree-dfa.c (create_var_ann): Simplify.
5788         (remove_referenced_var): Clear alias info from var_anns of globals.
5789         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
5790         (delete_tree_ssa): Clear alias info from var_anns of globals.
5791         Do not free var_anns.
5792         (var_ann_eq): Remove.
5793         (var_ann_hash): Likewise.
5795 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
5797         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
5798         and loongson2f entries.
5799         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
5800         * config/mips/mips.h (processor_type): Add Loongson-2E
5801         and Loongson-2F entries.
5802         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
5803         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
5804         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
5805         * doc/invoke.texi (MIPS Options): Document loongson2e
5806         and loongson2f processor names.
5808 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5810         PR target/35767
5811         PR target/35771
5812         * config/i386/i386.c (ix86_function_arg_boundary): Use
5813         alignment of canonical type.
5814         (ix86_expand_vector_move): Check unaligned memory access for
5815         all SSE modes.
5817 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5819         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
5820         Moved to the front of file.
5822 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
5823             H.J. Lu  <hongjiu.lu@intel.com>
5825         * dwarf2out.c (current_fde): New.
5826         (add_cfi): Use it.
5827         (lookup_cfa:): Likewise.
5828         (dwarf2out_end_epilogue): Likewise.
5829         (dwarf2out_note_section_used): Likewise.
5831 2008-05-27  Michael Matz  <matz@suse.de>
5833         PR c++/27975
5834         * c.opt (Wenum-compare): New warning option.
5835         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
5837 2008-05-27  Michael Matz  <matz@suse.de>
5839         PR middle-end/36326
5840         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
5841         non-BLKmode types.
5842         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
5843         into memory as tail calls.
5845 2008-05-27  Richard Guenther  <rguenther@suse.de>
5847         PR tree-optimization/36339
5848         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
5849         pointers cause all addressable variables to be call clobbered.
5851 2008-05-27  Richard Guenther  <rguenther@suse.de>
5853         PR tree-optimization/36245
5854         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
5856 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5858         * config/s390/s390.md: Replace all occurences of the 'm'
5859         constraint with 'RT'.
5861 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5863         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
5864         definitions added.
5865         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
5866         "*movdi_64".
5867         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
5868         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
5869         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
5871 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5873         * reload.c: (find_reloads): Skip alternatives according to the
5874         "enabled" attribute. Constify the constraint variable.
5875         * recog.c (get_attr_enabled): Add default implementation.
5876         (extract_insn): Set the alternative_enabled_p array
5877         in the recog_data struct.
5878         (preprocess_constraints, constrain_operands): Skip
5879         alternatives according to the "enabled" attribute
5880         * recog.h (struct recog_data): New field alternative_enabled_p.
5881         (skip_alternative): New inline function.
5882         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
5883         (record_reg_classes): Skip alternative according to the
5884         "enabled" attribute.
5886         * doc/md.texi: Add documention for the "enabled" attribute.
5888 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5890         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
5891         * postreload.c (reload_cse_simplify_operands): Replace 'm'
5892         constraint with TARGET_MEM_CONSTRAINT.
5893         * recog.c (asm_operand_ok, preprocess_constraints,
5894         constrain_operands): Likewise.
5895         * regclass.c (record_reg_classes): Likewise.
5896         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
5897         * reload1.c (maybe_fix_stack_asms): Likewise.
5898         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
5899         * recog.h: Adjust comment.
5900         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
5901         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
5902         * doc/md.texi: Add a note to description of 'm' constraint.
5903         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
5905 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
5907         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
5908         that the bitfield is of integral type before testing its precision.
5910 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5911             Sa Liu  <saliu@de.ibm.com> 
5913         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
5914         __modti3, __udivti3, __umodti3 and __udivmodti4.
5915         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
5916         that implement TImode mul and div functions.
5917         * config/spu/multi3.c: New. Implement __multi3.
5918         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
5919         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
5920         functions on SPU.
5922 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
5924         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
5925         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
5926         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
5927         tls_sysv_suffix): New mode and mode attribute iterators.
5928         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
5929         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
5930         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
5931         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
5932         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
5933         iterators.
5935 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
5937         PR tree-optimization/36329
5938         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
5939         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
5940         * cgraphbuild.c (initialize_inline_failed): Use the latter
5941         macro in lieu of the former.
5942         * ipa-inline.c (cgraph_mark_inline): Likewise.
5943         (cgraph_decide_inlining_of_small_function): Likewise.
5944         (cgraph_decide_inlining): Likewise.
5945         (cgraph_decide_inlining_incrementally): Likewise.
5947 2008-05-26  Tristan Gingold  <gingold@adacore.com>
5948             Anatoly Sokolov  <aesok@post.ru>
5950         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
5951         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
5952         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
5953         optimization for 'avr6' architecture.
5955 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
5957         PR target/34932
5958         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
5960 2008-05-26  Richard Guenther  <rguenther@suse.de>
5962         * tree-ssa-sccvn.c (expr_has_constants): Declare.
5963         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
5965 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
5967         PR middle-end/36253
5968         * caller-save.c (insert_restore): Verify alignment of spill space.
5969         (insert_save): Likewise.
5970         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
5971         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
5972         (STACK_SLOT_ALIGNMENT): Likewise.
5973         * function.c (LOCAL_ALIGNMENT): Removed.
5974         (get_stack_local_alignment): New.
5975         (assign_stack_local): Use it.  Set alignment on stack slot.
5976         (assign_stack_temp_for_type): Use get_stack_local_alignment.
5977         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
5978         (STACK_SLOT_ALIGNMENT): New.
5979         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
5980         stack slot in XFmode.
5982         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
5984 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
5986         PR/36321
5987         * config/i386/i386.md (allocate_stack_worker_64): Make sure
5988         argument operand in rax isn't removed.
5990 2008-05-26  Richard Guenther  <rguenther@suse.de>
5992         PR middle-end/36300
5993         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
5994         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
5996 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
5998         PR bootstrap/36331
5999         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6001 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6003         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6004         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6006 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6008         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6009         build a trampoline if we don't want one.
6010         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6011         return zero for nested functions if we don't want a trampoline.
6013 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6015         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6017 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6019         PR fortran/18428
6020         * c.opt: Removed undocumented option '-lang-fortran'.
6021         * c-common.h: Removed global variable 'lang_fortran'.
6022         * c-opts.c (c_common_handle_option): Removed code to handle
6023         option '-lang-fortran'. Updated includes.
6024         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6025         definition of '__GFORTRAN__'.
6026         (define__GNUC__): Reimplemented to use BASEVER and
6027         cpp_define_formatted.
6028         (builtin_define_with_value_n): Removed.
6029         * c-incpath.h: Renamed to ...
6030         * incpath.h: ... this.
6031         * c-incpath.c: Renamed to ...
6032         * incpath.c: ... this. Updated includes.
6033         * fix-header.c: Updated includes.
6034         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6035         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6036         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6038 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6040         * tree.h: Update the table of flags used on tree nodes.
6041         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6042         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6043         (FORCED_LABEL): Add access check.
6044         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6045         (ASM_INPUT_P): Likewise.
6046         (ASM_VOLATILE_P): Likewise.
6047         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6048         (OMP_SECTION_LAST): Access private_flag directly.
6049         (OMP_RETURN_NOWAIT): Likewise.
6050         (OMP_PARALLEL_COMBINED): Likewise.
6051         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6052         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6053         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6054         deprecated_flag directly.
6056 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6058         * final.c (frame_pointer_needed): Removed.
6059         * flags.h (frame_pointer_needed): Likewise.
6061         * function.h (rtl_data): Add frame_pointer_needed.
6062         (frame_pointer_needed): New.
6064 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6066         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6068 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6070         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6071         SRC is a REG.
6073 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6075         * c-common.c (strip_array_types): Move function to..
6076         * tree.c: ..here.
6077         (get_inner_array_type): Delete.
6078         * c-common.h (strip_array_types): Move declaration to..
6079         * tree.h: ..here.
6080         (get_inner_array_type): Delete.
6081         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6082         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6083         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6084         * config/pa/pa.c (emit_move_sequence): Likewise.
6086 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6088         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6089         attribute to 34.
6091 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6093         * function.c: Include target hook for nonlocal_goto frame value.
6095 2008-05-24  Richard Guenther  <rguenther@suse.de>
6097         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6098         variable can be only accessed through a pointer or a union.
6100 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6102         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6103         * doc/extend.texi: Likewise.
6105 2008-05-23  DJ Delorie  <dj@redhat.com>
6107         * config/m32c/jump.md (untyped_call): Add.
6109         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6110         for A24 to PSImode.
6111         (m32c_address_cost): Detail costs for indirect offsets.
6113 2008-05-23  Rafael Espindola  <espindola@google.com>
6115         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6116         if a node is a SUBREG.
6117         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6118         is a SUBREG.
6120 2008-05-23  Paul Brook  <paul@codesourcery.com>
6121             Carlos O'Donell  <carlos@codesourcery.com>
6123         * doc/extend.texi: Clarify use of __attribute__((naked)).
6124         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6125         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6126         * function.c (use_register_for_decl): Use
6127         targetm.calls.allocate_stack_slots_for_args.
6128         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6129         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6130         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6132 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6134         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6136 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6138         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6139         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6140         is only rounded once.
6142 2008-05-23  Richard Guenther  <rguenther@suse.de>
6144         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6146 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6147             Jakub Jelinek  <jakub@redhat.com>
6149         PR target/36079
6150         * configure.ac: Handle --enable-cld.
6151         * configure: Regenerated.
6152         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6153         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6154         (ix86_current_function_needs_cld): New define.
6155         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6156         (cld): New isns pattern.
6157         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6158         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6159         * config/i386/i386.opt (mcld): New option.
6160         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6161         TARGET_CLD and ix86_current_function_needs_cld.
6162         (override_options): Use -mcld by default for 32-bit code if
6163         USE_IX86_CLD.
6165         * doc/install.texi (Options specification): Document --enable-cld.
6166         * doc/invoke.texi (Machine Dependent Options)
6167         [i386 and x86-64 Options]: Add -mcld option.
6168         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6170 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6171         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6172         (return_in_memory_64): Likewise.
6173         (return_in_memory_ms_64): Likewise.
6175 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6177         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6178         * builtins.c (fold_builtin_fpclassify): New.
6179         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6180         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6181         * c-common.c (handle_type_generic_attribute): Adjust to accept
6182         fixed arguments before an elipsis.
6183         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6184         * doc/extend.texi: Document __builtin_fpclassify.
6186 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6188         * omp-low.c (gate_expand_omp_ssa): Remove.
6189         (pass_expand_omp_ssa): Remove.
6190         (gate_expand_omp): Do not check for flag_openmp_ssa.
6191         * common.opt (-fopenmp-ssa): Remove.
6192         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6194 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6196         * config/sh/sh.opt (mfixed-range): New option.
6197         * config/sh/sh-protos.h (sh_fix_range): Declare.
6198         * config/sh/sh.c (sh_fix_range): New function.
6199         * config/sh/sh.h (sh_fixed_range_str): Declare.
6200         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6201         is not empty.
6202         * doc/invoke.texi (SH Options): Document -mfixed-range.
6204 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6206         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6207         it before the redeclaration.
6209 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6211         * config/avr/avr.c (get_sequence_length): Add new function.
6212         (expand_prologue, expand_epilogue): Remove duplicate code.
6214 2008-05-22  Rafael Espindola  <espindola@google.com>
6216         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6217         sharing.
6219 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6221         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6222         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6224         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6225         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6226         (vect_update_misalignment_for_peel): Likewise.
6227         (vector_alignment_reachable_p): Likewise.
6228         * tree-vect-transform.c (vectorizable_load): Likewise.
6229         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6230         (get_vectype_for_scalar_type): Pass mode of scalar_type
6231         to UNITS_PER_SIMD_WORD.
6233         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6234         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6235         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6236         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6237         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6239 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6241         PR tree-optimization/36293
6242         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6243         if the first load must be skipped because of a gap.
6245 2008-05-22  Richard Guenther  <rguenther@suse.de>
6247         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6248         more cases of offset disambiguation that is possible if
6249         strict-aliasing rules apply.
6250         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6251         for basic offset and type-based disambiguation.
6253 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6255         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6256         ix86_expand_vector_set on V16QImode for SSE4.1.
6258 2008-05-21  Tom Tromey  <tromey@redhat.com>
6260         * c.opt (Wimport): Mark as undocumented.
6261         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6262         -Wno-import.
6263         (Warning Options): Likewise.
6264         * doc/cppopts.texi: Don't mention -Wimport.
6266 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6268         PR tree-optimization/36287
6269         PR tree-optimization/36286
6270         * lambda-code.c (build_access_matrix): Do not use the loop->num
6271         for computing the number of induction variables: use the loop depth
6272         instead.
6274 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6276         PR/36280
6277         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6278         option -f(no-)leading-underscore.
6280 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6282         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6283         GET_MODE_NUNITS (mode).
6285 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6287         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6288         (-mmulhw): Add 464 to description.
6289         (-mdlmzb): Likewise.
6290         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6291         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6292         464fp entries.
6293         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6294         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6295         * config/rs6000/rs6000.md: Update comments for 464.
6297 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6299         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6301 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6303         * config/i386/sse.md (vec_extractv4sf): Removed.
6304         (vec_extractv2df): Likewise.
6305         (vec_extractv2di): Likewise.
6306         (vec_extractv4si): Likewise.
6307         (vec_extractv8hi): Likewise.
6308         (vec_extractv16qi): Likewise.
6309         (vec_extract<mode>): New.
6311 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6313         * config/i386/sse.md (vec_setv4sf): Removed.
6314         (vec_setv2df): Likewise.
6315         (vec_setv2di): Likewise.
6316         (vec_setv4si): Likewise.
6317         (vec_setv8hi): Likewise.
6318         (vec_setv16qi): Likewise.
6319         (vec_set<mode>): New.
6321 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6323         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6324         goto for vec_concat and vec_interleave.
6326 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6328         * config/i386/sse.md (vec_initv4sf): Removed.
6329         (vec_initv2df): Likewise.
6330         (vec_initv2di): Likewise.
6331         (vec_initv4si): Likewise.
6332         (vec_initv8hi): Likewise.
6333         (vec_initv16qi): Likewise.
6334         (vec_init<mode>): New.
6336 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6338         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6340 2008-05-21  Tom Tromey  <tromey@redhat.com>
6342         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6343         (zone_find_object_offset): Likewise.
6344         (gt_ggc_m_S): Likewise.
6345         (highest_bit): Likewise.
6346         * ggc-page.c (gt_ggc_m_S): New function.
6347         * stringpool.c (string_stack): Remove.
6348         (init_stringpool): Update.
6349         (ggc_alloc_string): Use ggc_alloc.
6350         (maybe_delete_ident): New function.
6351         (ggc_purge_stringpool): Likewise.
6352         (gt_ggc_m_S): Remove.
6353         * ggc-common.c (ggc_protect_identifiers): New global.
6354         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6355         ggc_protect_identifiers.
6356         * ggc.h (ggc_protect_identifiers): Declare.
6357         (gt_ggc_m_S): Update.
6358         (ggc_purge_stringpool): Declare.
6359         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6360         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6361         special case.
6362         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6364 2008-05-21  David S. Miller  <davem@davemloft.net>
6366         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6367         tmake_file.
6369 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6371         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6372         once finished.
6374 2008-05-20  David Daney  <ddaney@avtrex.com>
6376         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6377         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6378         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6379         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6380         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6381         (atomic_hiqi_op): New define_code_iterator.
6382         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6383         mips_expand_compare_and_swap_12.
6384         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6385         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6386         (sync_<optab><mode>, sync_old_<optab><mode>,
6387         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6388         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6389         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6390         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6391         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6392         (test_and_set_12): New insn.
6393         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6394         sync_new_<optab><mode>, sync_old_nand<mode>,
6395         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6396         clobber to operand 0 for SI and DI mode insns.
6397         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6398         mips_gen_fn_4): New typedefs.
6399         (mips_gen_fn_ptrs): Define new union type.
6400         (mips_expand_compare_and_swap_12): Remove declaration.
6401         (mips_expand_atomic_qihi): Declare function.
6402         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6403         (mips_expand_atomic_qihi): ... this.  Use new generator function
6404         parameter.
6405         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6406         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6407         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6408         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6409         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6410         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6411         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6412         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6413         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6414         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6415         New macros.
6417 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6419         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6420         the missing break.
6422 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6424         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6425         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6426         (avr_attribute_table): Add 'OS_main' function attribute.
6427         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6428         functions with 'OS_main' attribute.
6430 2008-05-20  Richard Guenther  <rguenther@suse.de>
6432         PR tree-optimization/35204
6433         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6434         helper, split out from ...
6435         (DFS): ... here.  Make the DFS walk non-recursive.
6437 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6438             Jan Sjodin  <jan.sjodin@amd.com>
6440         PR tree-optimization/36181
6441         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6442         (parallelize_loops): Don't parallelize when the loop has vector
6443         phi nodes.
6445 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6446             Sebastian Pop  <sebastian.pop@amd.com>
6448         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6449         matrix, and never look at the tree representation of the memory
6450         accesses.
6451         (linear_transform_loops): Computes parameters and access matrices.
6452         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6453         when fails.
6454         (access_matrix_get_index_for_parameter): New.
6455         * tree-data-ref.h (struct access_matrix): New.
6456         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6457         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6458         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6459         am_vector_index_for_loop): New.
6460         (struct data_reference): Add field access_matrix.
6461         (DR_ACCESS_MATRIX): New.
6462         (compute_data_dependences_for_loop): Update declaration.
6463         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6464         * lambda.h (lambda_vector_vec_p): Declared.
6465         * lambda-code.c: Depend on pointer-set.h.
6466         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6467         av_for_af_base, av_for_af, build_access_matrix,
6468         lambda_compute_access_matrices): New.
6469         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6471 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6473         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6474         $SOURCEDIR/include.
6476 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6477             Sebastian Pop  <sebastian.pop@amd.com>
6479         PR tree-optimization/36206
6480         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6481         FOLD_CONVERSIONS.
6482         (instantiate_scev_1): Rename flags to fold_conversions.
6483         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6484         outeside instantiation_loop.
6485         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6486         (evolution_function_is_affine_or_constant_p): Removed.
6487         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6488         instantiate_scev.
6489         (analyze_siv_subscript): Pass in the loop nest number.
6490         Call evolution_function_is_affine_in_loop instead of 
6491         evolution_function_is_affine_p.
6492         (analyze_overlapping_iterations): Pass in the loop nest number.
6494 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6495             Sebastian Pop  <sebastian.pop@amd.com>
6497         PR tree-optimization/36206
6498         * tree-chrec.h (chrec_fold_op): New.
6499         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6500         and other trees.
6502 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6504         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6505         (DIRS_EQ): New.
6506         (remove_duplicates): Do not set inode on non-inode systems.
6507         Use DIRS_EQ.
6509 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6511         * config.gcc (tm_file): Update comments about relative pathnames.
6513 2008-05-20  Richard Guenther  <rguenther@suse.de>
6515         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6516         * tree-ssa-sccvn.c (process_scc): Likewise.
6517         * tree-ssa-sink.c (execute_sink_code): Likewise.
6518         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6519         * tree-vrp.c (process_assert_insertions): Likewise.
6520         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6521         (perform_tree_ssa_dce): Likewise.
6522         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6523         (dump_dominator_optimization_stats): Likewise.
6524         * tree-vectorizer.c (vectorize_loops): Likewise.
6526 2008-05-20  Richard Guenther  <rguenther@suse.de>
6528         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6530 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6532         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6533         (ix86_i386elf_return_in_memory): Likewise.
6534         (ix86_i386interix_return_in_memory): Likewise.
6535         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6536         (SUBTARGET_RETURN_IN_MEMORY): New.
6537         * config/i386/i386elf.h: Likewise.
6538         * config/i386/ptx4-i.h: Likewise.
6539         * config/i386/sol2-10.h: Likewise.
6540         * config/i386/sysv4.h: Likewise.
6541         * config/i386/vx-common.h: Likewise.
6542         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6543         * config/i386/i386.c (ix86_return_in_memory): Made static and
6544         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6545         (ix86_i386elf_return_in_memory): Removed.
6546         (ix86_i386interix_return_in_memory): Removed.
6547         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6548         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6550 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6552         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6554 2008-05-19  Xinliang David Li  <davidxl@google.com>
6556         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
6557         * opts.c: Ditto.
6558         * common.opt: Ditto.
6559         * doc/invoke.texi: Ditto.
6561 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6563         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6564         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6566 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6568         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6569         sizes of operand array from 8/4 to 4/2.
6570         (ix86_expand_vector_init_general): Change size of operand array
6571         from 32 to 16.  Remove op0, op1 and half_mode.
6573 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6575         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6576         (ix86_expand_vector_init_interleave): Likewise.
6577         (ix86_expand_vector_init_general): Use them.  Assert
6578         word_mode == SImode when n_words == 4.
6580 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6582         * config/i386/i386.c (ix86_secondary_reload): New static function.
6583         (TARGET_SECONDARY_RELOAD): New define.
6584         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6585         * config/i386/i386.md (reload_outqi): Remove.
6587 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6589         PR middle-end/35509
6590         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6591         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6592         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6593         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6594         (fold_builtin_1): Likewise.
6595         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6596         c-common.c (check_builtin_function_arguments): Handle
6597         BUILT_IN_ISINF_SIGN.
6598         * doc/extend.texi: Document __builtin_isinf_sign.
6599         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6601 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6603         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6604         EH cleanup at the end of the pass, search for those that have been
6605         turned into forwarder blocks and do the cleanup on their successor.
6607 2008-05-18  Richard Guenther  <rguenther@suse.de>
6609         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6610         pointers to sizetype and vice versa.
6612 2008-05-18 Xinliang David Li   <davidxl@google.com>
6614         * gcc/tree-ssa-dce.c: Coding style fix.
6615         (check_pow): Documentation comment. 
6616         (check_log): Documenation comment. Coding style fix.
6617         (is_unnecessary_except_errno_call): Ditto.
6618         (gen_conditions_for_pow): Ditto.
6619         (gen_conditions_for_log): Ditto.
6620         (gen_shrink_wrap_conditions): Ditto.
6621         (shrink_wrap_one_built_in_calls): Ditto.
6622         * gcc/doc/invoke.texi: Better documentation string.
6623         * ChangeLog: Fix wrong change log entries from 
6624         May 17 checkin on function call DCE.
6626 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6628         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6630 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6632         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6633         * df-problems.c (simulation routines): Fixed block comment to
6634         properly say how to add forwards scanning functions.
6635         
6636 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6638         * tree-inline.c (setup_one_parameter): Remove dead code.
6640 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6642         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6643         a BIT_AND_EXPR only for an INTEGER_TYPE.
6645 2008-05-17 Xinliang David Li   <davidxl@google.com>
6647         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
6648         (check_pow, check_log, is_unnecessary_except_errno_call): New 
6649         functions to check for eliminating math functions that are pure 
6650         except for setting errno.
6651         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
6652         general condition expressions for shrink-wrapping pow/log calls.
6653         (gen_shrink_wrap_conditions): Ditto.
6654         (shrink_wrap_one_built_in_call): Ditto.
6655         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
6656         (mark_operand_necessary): If debugging, output if OP is necessary.
6657         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
6658         unnecessary.
6659         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
6660         opt level >= 2.
6661         * gcc/common.opt: New user flag -ftree-builtin-dce.
6662         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
6664 2008-05-16  David S. Miller  <davem@davemloft.net>
6666         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
6667         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
6669 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
6671         PR target/36246
6672         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
6674 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6676         * ifcvt.c (dead_or_predicable): Rename
6677         df_simulate_one_insn_backwards to df_simulate_one_insn.
6678         * recog.c (peephole2_optimize): Ditto.
6679         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
6680         Ditto.
6681         * df.h: Rename df_simulate_one_insn_backwards to
6682         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
6683         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
6684         scanning of defs and uses.
6685         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
6686         (df_simulate_one_insn_forwards): Removed.
6688 2008-05-16  Doug Kwan  <dougkwan@google.com>
6690         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
6691         QNaN & SNaN.
6692         (real_from_string): Handle NaNs and Inf as approriate.
6694 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6696         * doc/gty.texi (Source Files Containing Type Information): Note
6697         that headers should appear first in the gtfiles list.
6699 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6701         * tree.def (COND_EXEC): Properly documented this code.
6703 2008-05-16  Diego Novillo  <dnovillo@google.com>
6705         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
6706         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
6707         the new field.
6709 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6711         * tree-ssa-dse (max_stmt_uid): Removed.
6712         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
6713         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
6714         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
6715         * function.h (cfun.last_stmt_uid): New field.
6716         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
6717         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
6718         New functions.
6719         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
6720         (create_stmt_ann): Initialize the ann->uid field.
6721         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
6722         with new calls.
6723         * tree-flow.h (renumber_gimple_stmt_uids): New function.
6725 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
6727         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
6728         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
6729         (init_empty_tree_cfg): Call it.
6731 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6733         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
6734         Update all users.
6736 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
6738         * doc/invoke.text (-fdump-tree-*-verbose): New option.
6739         * tree-dump.c (dump_options): New verbose option.
6740         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
6741         Add verbose dump.
6742         * tree-pass.h (TDF_VERBOSE): New dump flag.
6743         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
6744         (tree-flow.h): Added include.
6745         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
6747 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
6749         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
6751         From Jie Zhang  <jie.zhang@analog.com>
6752         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6753         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
6754         mcpu=bf561-none and mcpu=bf561-0.2.
6755         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6756         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6757         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6758         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
6759         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
6760         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
6761         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
6762         option.
6763         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
6764         (cputype_selected): Remove.
6765         (bfin_handle_option): Don't use cputype_selected.
6766         (override_options): When no mcpu option, enable all workarounds.
6767         Don't use bfin_workarounds.
6768         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
6769         processor type.
6770         (DEFAULT_CPU_TYPE): Don't define.
6772 2008-05-16  Richard Guenther  <rguenther@suse.de>
6774         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
6775         on deletion of the last stmt.
6777 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6779         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
6780         V8HImode for SSE2 and V16QImode for SSE4.1.
6782 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
6784         * cgraph.h (compute_inline_parameters): Made public.
6785         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
6786         variable_generate_summary, function_write_summary,
6787         variable_write_summary, variable_read_summary.  Added generate_summary,
6788         write_summary, read_summary.
6789         * cgraphunit.c (cgraph_process_new_functions): Changed call from
6790         pass_ipa_inline.function_generate_summary, to
6791         compute_inline_parameters. 
6792         * ipa-inline.c (compute_inline_parameters): Made public and added
6793         node parameter.
6794         (compute_inline_parameters_for_current): New function.
6795         (pass_inline_param): Now calls compute_inline_parameters_for_current.
6796         (inline_generate_summary): Removed parameter and made to loop over
6797         all cgraph nodes.
6798         (pass_ipa_inline): Updated for new IPA_PASS structure.
6799         * passes.c (execute_ipa_summary_passes): Now is called once per
6800         pass rather than once per node*pass.
6801         
6802 2008-05-15  Anatoly Sokolov <aesok@post.ru>
6804         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
6805         avr_have_mul_p, avr_asm_only_p): Remove variables.
6806         (avr_override_options): Remove initialization of removed variables.
6807         (avr_file_start):  Convert removed variables to fields of 
6808         'struct base_arch_s *avr_current_arch'. 
6809         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
6810         (AVR_HAVE_MUL): (Ditto.).
6811         (AVR_HAVE_MOVW): (Ditto.).
6812         (AVR_HAVE_LPMX): (Ditto.). 
6813         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
6814         avr_asm_only_p): Remove declaration.
6816 2008-05-15  Diego Novillo  <dnovillo@google.com>
6818         * config/arm/arm.c (arm_return_in_memory): Fix return type.
6819         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
6821 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
6823         PR middle-end/36194
6824         * combine.c (check_conversion): Rename back to check_promoted_subreg.
6825         Don't call record_truncated_value from here.
6826         (record_truncated_value): Turn it into a for_each_rtx callback.
6827         (record_truncated_values): New function.
6828         (combine_instructions): Call note_uses with record_truncated_values.
6829         Change name of check_conversion to check_promoted_subreg. 
6831 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
6833         * doc/sourcebuild.texi: Document support for torture tests.
6835 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6837         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
6838         to alternative 4 of operand 2.
6840 2008-05-15  Richard Guenther  <rguenther@suse.de>
6842         * tree-pass.h (current_pass): Declare.
6843         (get_pass_for_id): Likewise.
6844         * passes.c (passes_by_id, passes_by_id_size): New globals.
6845         (set_pass_for_id): New function.
6846         (get_pass_for_id): Likewise.
6847         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
6848         (execute_function_todo): Flush per function statistics.
6849         * toplev.c (compile_file): Init statistics.
6850         (general_init): Do early statistics initialization.
6851         (finalize): Finish statistics.
6852         * statistics.h (statistics_early_init): Declare.
6853         (statistics_init): Likewise.
6854         (statistics_fini): Likewise.
6855         (statistics_fini_pass): Likewise.
6856         (statistics_counter_event): Likewise.
6857         (statistics_histogram_event): Likewise.
6858         * statistics.c: New file.
6859         * Makefile.in (OBJS-common): Add statistics.o.
6860         (statistics.o): Add dependencies.
6861         * doc/invoke.texi (-fdump-statistics): Document.
6863         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
6864         (insert): Likewise.
6865         (execute_pre): Use statistics_counter_event.
6866         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
6867         (substitute_and_fold): Increment it.  Use statistics_counter_event.
6869 2008-05-15  Diego Novillo  <dnovillo@google.com>
6871         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
6873         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
6874         * tree-ssa-alias.c (new_type_alias): Remove references to
6875         sub-variables from comment.
6876         * tree-ssa-operands.c (swap_tree_operands): Likewise.
6878 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6880         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
6881         attribute to 1 only for insertps alternative.
6883 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
6885         * config/bfin/bfin.md (loadbytes): New pattern.
6886         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
6887         (bfin_init_builtins): Initialize it.
6888         (bdesc_1arg): Add it.
6890 2008-05-15  Sa Liu  <saliu@de.ibm.com>
6892         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
6893         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
6894         * testsuite/lib/target-supports.exp: Add
6895         check_effective_target_fortran_integer_16.
6897 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
6899         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
6900         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
6901         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
6902         (TARGET_RETURN_IN_MEMORY): Define.
6904 2008-05-15  Richard Guenther  <rguenther@suse.de>
6906         PR middle-end/36244
6907         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
6908         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
6909         represent unmodifiable vars.
6911 2008-05-15  Richard Guenther  <rguenther@suse.de>
6913         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
6914         INDIRECT_REF and TARGET_MEM_REF.
6915         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
6916         TARGET_MEM_REF.
6918 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
6919             H.J. Lu  <hongjiu.lu@intel.com>
6921         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
6922         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
6923         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
6924         insn alternatives.  Add missing alternatives.
6925         (*vec_concatv2di_rex64_sse4_1): Likewise.
6926         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
6927         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
6928         Require TARGET_SSE.
6930 2008-05-15  Richard Guenther  <rguenther@suse.de>
6932         PR tree-optimization/36009
6933         PR tree-optimization/36204
6934         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
6935         (determine_invariantness_stmt): Record the loop a store is
6936         always executed in.
6937         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
6938         dependency.
6940 2008-05-15  Richard Guenther  <rguenther@suse.de>
6942         PR tree-optimization/34330
6943         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
6944         through the pointer will alias the SMT.
6946 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
6948         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
6950 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6952         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
6954 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6955             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6957         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
6958         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
6959         (vashl_optab): New optab for vector/vector shifts.
6960         (vashr_optab): Ditto.
6961         (vlshr_optab): Ditto.
6962         (vrotl_optab): Ditto.
6963         (vrotr_optab): Ditto.
6964         (optab_subtype): New enum for optab_for_tree_code call.
6965         (optab_for_tree_code): Add enum optab_subtype argument.
6967         * optabs.c (optab_for_tree_code): Take an additional argument to
6968         distinguish between a vector shift by a scalar and vector shift by
6969         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
6970         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
6971         vector shift by a vector.
6972         (expand_widen_pattern_expr): Pass additional argument to
6973         optab_for_tree_code.
6975         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
6976         vrotl_optab, vrotr_optab.
6978         * expr.c (expand_expr_real_1): Update calls to
6979         optab_for_tree_code to distinguish between vector shifted by a
6980         scalar and vector shifted by a vector.
6981         * tree-vectorizer.c (supportable_widening_operation): Ditto.
6982         (supportable_narrowing_operation): Ditto.
6983         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
6984         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
6985         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
6986         (vect_create_epilog_for_reduction): Ditto.
6987         (vectorizable_reduction): Ditto.
6988         (vectorizable_operation): Ditto.
6989         (vect_strided_store_supported): Ditto.
6990         (vect_strided_load_supported): Ditto.
6991         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
6992         * expmed.c (expand_shift): Ditto.
6994         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
6995         scalar type.
6996         (ashr@var{m}3): Ditto.
6997         (vashl@var{m}3): Document new vector/vector shift standard name.
6998         (vashr@var{m}3): Ditto.
6999         (vlshr@var{m}3): Ditto.
7000         (vrotl@var{m}3): Ditto.
7001         (vrotr@var{m}3): Ditto.
7003         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7004         (PPERM_INVERT): Ditto.
7005         (PPERM_REVERSE): Ditto.
7006         (PPERM_REV_INV): Ditto.
7007         (PPERM_ZERO): Ditto.
7008         (PPERM_ONES): Ditto.
7009         (PPERM_SIGN): Ditto.
7010         (PPERM_INV_SIGN): Ditto.
7011         (PPERM_SRC1): Ditto.
7012         (PPERM_SRC2): Ditto.
7014         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7015         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7016         allows a memory operand to be the value being added, and split it
7017         to improve vectorization.
7018         (sse5_pmacsdqh_mem): Ditto.
7019         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7020         (sse5_mulv2div2di3_high): Ditto.
7021         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7022         (vec_pack_trunc_v4si): Ditto.
7023         (vec_pack_trunc_v2di): Ditto.
7024         (sse5_pcmov_<mode>): Remove code that tried to use use
7025         andps/andnps instead of pcmov.
7026         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7027         pmacsdqh instructions.
7028         (vec_widen_smult_lo_v4si): Ditto.
7030         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7031         (PPERM_INVERT): Ditto.
7032         (PPERM_REVERSE): Ditto.
7033         (PPERM_REV_INV): Ditto.
7034         (PPERM_ZERO): Ditto.
7035         (PPERM_ONES): Ditto.
7036         (PPERM_SIGN): Ditto.
7037         (PPERM_INV_SIGN): Ditto.
7038         (PPERM_SRC1): Ditto.
7039         (PPERM_SRC2): Ditto.
7040         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7041         true/false tests.
7042         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7043         comparisons.
7044         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7045         says ignore whether the last reference is a memory operand.
7047 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7048             Paolo Bonzini <bonzini at gnu dot org>
7050         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7051         shift patterns.
7053         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7054         (vlshr<mode>3): Rename from vlshr<mode>3.
7055         (vashr<mode>3): Rename from vashr<mode>3.
7056         (mulv4sf3): Change the names of vector shift patterns.
7057         (mulv4si3): Ditto.
7058         (negv4sf2): Ditt.
7060         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7061         shift insns.
7063         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7064         (SI_SHLHI): Ditto.
7065         (SI_SHL): Ditto.
7066         (SI_SHLI): Ditto.
7067         (SI_ROTH): Ditto.
7068         (SI_ROTHI): Ditto.
7069         (SI_ROT): Ditto.
7070         (SI_ROTI): Ditto.
7071         (SPU_RL_0): Ditto.
7072         (SPU_RL_1): Ditto.
7073         (SPU_RL_2): Ditto.
7074         (SPU_RL_3): Ditto.
7075         (SPU_RL_4): Ditto.
7076         (SPU_RL_5): Ditto.
7077         (SPU_RL_6): Ditto.
7078         (SPU_RL_7): Ditto.
7079         (SPU_SL_0): Ditto.
7080         (SPU_SL_1): Ditto.
7081         (SPU_SL_2): Ditto.
7082         (SPU_SL_3): Ditto.
7083         (SPU_SL_4): Ditto.
7084         (SPU_SL_5): Ditto.
7085         (SPU_SL_6): Ditto.
7086         (SPU_SL_7): Ditto.
7088         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7089         (floatunssidf2_internal): Change vector/vector shift names.
7090         (floatunsdidf2_internal): Ditto.
7091         (mulv8hi3): Ditto.
7092         (ashrdi3): Ditto.
7093         (ashrti3): Ditto.
7094         (cgt_df): Ditto.
7095         (cgt_v2df): Ditto.
7096         (dftsv): Ditto.
7097         (vashl<mode>3): Rename from ashl<mode>3.
7098         (vashr<mode>3): Rename from ashr<mode>3.
7099         (vlshr<mode>3): Rename from lshr<mode>3.
7100         (vrotl<mode>3): Rename from rotl<mode>3.
7102 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7104         PR target/36224
7105         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7106         multiply gives the wrong value when doing widening multiplies.
7107         (vec_widen_smult_lo_v4si): Ditto.
7109 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7111         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7112         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7113         emit_library_call_value. 
7114         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7115         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7116         * calls.c (initialize_argument_information, precompute_arguments, 
7117         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7118         (precompute_arguments): Removed flags parameter.
7119         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7120         
7121 2008-05-14  Richard Guenther  <rguenther@suse.de>
7123         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7124         Make sure to register the store if the use is a PHI_NODE.
7126 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7128         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7129         memory if the component is to be referenced in BLKmode according
7130         to get_inner_reference.
7132 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7134         * calls.c (emit_library_call_value_1): Restore code clearing
7135         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7137 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7138             Nicolas Roche  <roche@adacore.com>
7140         * configure.ac: Add support for a "gcc_subdir" variable in
7141         config-lang.in, to denote a subdirectory where the language/GCC
7142         integration files are to be found.
7143         * configure: Regenerate.
7145 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7147         PR tree-optimization/36098
7148         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7149         value for the first load in the group in case of a gap.
7150         (vect_build_slp_tree): Check that there are no gaps in loads.
7152 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7154         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7155         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7156         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7157         emit_insn and remove unneeded code to construct extra args.
7158         (emit_no_conflict_block): Removed.
7159         * optabls.h: (emit_no_conflict_block): Removed.
7160         * cse.c (cse_extended_basic_block): Remove search for
7161         REG_NO_CONFLICT note.
7162         * global.c: Removed incorrect comment added in revision 117.
7163         * expr.c (convert_move): Change call to emit_no_conflict_block to
7164         emit_insn.
7165         * recog.c: Change comments so that they do not mention
7166         REG_NO_CONFLICT.
7167         * local_alloc.c (combine_regs): Removed last parameter.
7168         (no_conflict_p): Removed.
7169         (block_alloc): Removed note, no_conflict_combined_regno and set
7170         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7171         (combine_regs): Removed already_dead and code to look for
7172         REG_NO_CONFLICT notes.
7173         * lower_subreg (remove_retval_note): Removed code to look for
7174         REG_NO_CONFLICT block.
7175         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7176         (resolve_clobber): Remove code to process libcalls that have
7177         REG_NO_CONFLICT notes.
7178         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7179         case.
7180         * combine.c (can_combine_p, distribute_notes):  Removed
7181         REG_NO_CONFLICT case.
7182         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7183         to emit_insns.
7184         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7185         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7186         Ditto.
7187         * reg-notes.def (NO_CONFLICT): Removed.
7189 2008-05-14  David S. Miller  <davem@davemloft.net>
7191         * config/sparc/sparc.c (sparc_profile_hook): If
7192         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7193         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7194         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7196 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7198         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7200 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7202         PR target/36222
7203         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7204         and op1 expansion before vector concat to have less live pseudos.
7206 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7208         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7209         ix86_expand_vector_set if supported.
7211 2008-05-13  Diego Novillo  <dnovillo@google.com>
7212             Kenneth Zadeck  <zadeck@naturalbridge.com>
7214         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7216         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7217         phinodes_print_statistics, init_ssanames, fini_ssanames,
7218         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7219         release_ssa_name, release_defs, replace_ssa_name_symbol,
7220         ssanames_print_statistics): Move ...
7221         * tree-flow.h: ... here.
7222         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7223         Use FN instead of cfun.
7224         (make_ssa_name_fn): Rename from make_ssa_name.
7225         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7226         * tree-flow-inline.h (make_ssa_name): Move from
7227         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7228         * omp-low.c (expand_omp_parallel):
7229         * tree-flow-inline.h (redirect_edge_var_map_result):
7230         * tree-ssa.c (init_tree_ssa): Add argument FN.
7231         Use it instead of cfun.  Update all users.
7233 2008-05-13  Tom Tromey  <tromey@redhat.com>
7235         PR preprocessor/22168:
7236         * doc/cpp.texi (Top): Update menu.
7237         (Alternatives to Wrapper #ifndef): New node.
7238         (Other Directives): Document deprecation.
7239         (Obsolete Features): Remove menu.
7240         (Assertions): Merge node into Obsolete Features.
7241         (Obsolete once-only headers): Move earlier; rename to Alternatives
7242         to Wrapper #ifndef.
7243         * doc/cppopts.texi: Update.
7244         * c.opt (Wdeprecated): Enable for C and ObjC.
7245         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7246         (C++ Dialect Options): Move -Wno-deprecated from here to...
7247         (Warning Options): ... here.
7249 2008-05-13  Richard Guenther  <rguenther@suse.de>
7251         PR middle-end/36227
7252         * fold-const.c (fold_sign_changed_comparison): Do not allow
7253         changes in pointer-ness.
7255 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7257         PR target/24713
7258         * config/sh/sh.c (sh_expand_prologue): Don't clear
7259         RTX_FRAME_RELATED_P for push insns.
7261 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7263         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7265 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7267         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7268         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7269         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7271 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7273         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7274         (*vec_concatv4sf_sse): This.
7275         (*sse2_concatv2si): Renamed to ...
7276         (*vec_concatv2si_sse2): This.
7277         (*sse1_concatv2si): Renamed to ...
7278         (*vec_concatv2si_sse): This.
7279         (*vec_concatv2di_rex): Renamed to ...
7280         (*vec_concatv2di_rex64): This.
7281         (*vec_concatv2si_sse4_1): New.
7282         (*vec_concatv2di_rex64_sse4_1): Likewise.
7284 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7286         PR rtl-optimization/36111
7287         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7288         that was created for swappable operands.
7290 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7292         PR ada/36001
7293         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7294         * configure.ac: Add call to ACX_PROG_GNAT.
7296 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7298         * optc-gen.awk: Fix comment typo.
7300 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7302         * pretty-print.c (pp_integer_with_precision): Use
7303         HOST_LONG_LONG_FORMAT.
7305 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7307         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7308                 
7309 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7311         * config/i386/i386.c (bdesc_ptest): Removed.
7312         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7313         (bdesc_args): Add __builtin_ia32_ptestz128,
7314         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7315         (ix86_init_mmx_sse_builtins): Updated.
7316         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7317         (ix86_expand_builtin): Updated.
7319 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7321         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7322         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7324 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7326         * value-prof.c (interesting_stringop_to_profile): Do not
7327         return early for BUILT_IN_MEMPCPY.
7329 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7331         * calls.c (expand_call): Don't use callgraph to increase
7332         preferred_stack_boundary.
7334         * cgraph.h (cgraph_rtl_info): Use unsigned on
7335         preferred_incoming_stack_boundary.
7337         * final.c (rest_of_clean_state): Use unsigned on
7338         preferred_stack_boundary.
7340 2008-05-09  Tom Tromey  <tromey@redhat.com>
7342         PR preprocessor/22231:
7343         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7344         proceeding.
7346 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7348         PR tree-optimization/36129
7349         * tree-ssa-ccp.c: Include value-prof.h.
7350         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7351         built-in function was folded to a constant.
7352         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7354 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7355             Sebastian Pop  <sebastian.pop@amd.com>
7357         * tree-scalar-evolution.c: Document instantiate_scev.
7358         (instantiate_parameters_1): Renamed instantiate_scev_1.
7359         Don't use the same loop for instantiation_loop and evolution_loop.
7360         (instantiate_scev): New.
7361         (instantiate_parameters): Moved...
7362         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7363         same loop twice.  Maintains the semantics for this function.
7364         * tree-scalar-evolution.h (instantiate_scev): Declare.
7365         (instantiate_parameters): ...here.  Now static inline.
7366         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7367         instead of resolve_mixers.
7369 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7371         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7373 2008-05-09  Tomas Bily  <tbily@suse.cz>
7375         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7376         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7377         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7378         * c-common.c (c_common_truthvalue_conversion): Likewise.
7379         * tree-object-size.c (compute_object_offset): Likewise.
7380         * tree-inline.c (estimate_num_insns_1): Likewise.
7381         * varasm.c (const_hash_1, compare_constant, copy_constant)
7382         (compute_reloc_for_constant, output_addressed_constants)
7383         (initializer_constant_valid_p): Likewise.
7384         * c-omp.c (check_omp_for_incr_expr): Likewise.
7385         * gimplify.c (gimplify_expr): Likewise.
7386         * c-typeck.c (c_finish_return): Likewise.
7387         * tree-vectorizer.c (supportable_widening_operation)
7388         (supportable_narrowing_operation): Likewise.
7389         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7390         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7391         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7392         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7393         (descr_info_loc): Likewise.
7394         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7395         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7396         (fold_unary): Likewise.
7397         * builtins.c (get_pointer_alignment): Likewise.
7398         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7399         (instantiate_parameters_1): Likewise.
7400         * tree.c (expr_align, stabilize_reference): Likewise.
7401         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7402         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7403         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7404         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7405         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7406         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7407         Likewise.
7408         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7409         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7410         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7411         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7412         (forward_propagate_comparison)
7413         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7414         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7415         * emit-rtl.c (component_ref_for_mem_expr)
7416         (set_mem_attributes_minus_bitpos): Likewise.
7417         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7418         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7419         Likewise.
7420         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7421         (build_function_call, pointer_diff, build_compound_expr)
7422         (c_finish_return): Likewise.
7423         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7424         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7425         Likewise.
7426         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7427         * expr.c (is_aligning_offset): Likewise.
7428         * tree-ssa-alias.c (is_escape_site): Likewise.
7429         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7430         (check_all_va_list_escapes): Likewise.
7431         * tree-ssa-loop-ivopts.c (determine_base_object)
7432         (determine_common_wider_type): Likewise.
7433         * dojump.c (do_jump): Likewise.
7434         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7435         * tree-gimple.c (is_gimple_cast): Likewise.
7436         * fold-const.c (decode_field_reference, )
7437         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7438         (fold_binary): Likewise.
7439         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7440         (already_warned_in_frontend_p): Likewise.
7441         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7442         * tree.c (really_constant_p, get_unwidened): Likewise.
7443         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7444         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7445         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7446         Likewise.
7447         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7448         CONVERT_EXPR_P.
7449         (CONVERT_EXPR_P): Define.
7450         (CASE_CONVERT): Define.
7451         
7452 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7454         PR middle-end/36117
7455         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7456         (delete_unmarked_insns): When deleting a call, call
7457         delete_unreachable_blocks.
7458         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7459         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7461 2008-05-08  Richard Guenther  <rguenther@suse.de>
7463         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7464         (-ftree-salias): Likewise.
7465         (salias-max-implicit-fields): Remove param documentation.
7466         (salias-max-array-elements): Likewise.
7467         * tree-pass.h (pass_create_structure_vars): Remove.
7468         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7469         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7470         * tree-ssa-alias.c (create_structure_vars): Remove.
7471         (gate_structure_vars): Likewise.
7472         (pass_create_structure_vars): Likewise.
7473         (gate_build_alias): Likewise.
7474         (pass_build_alias): Adjust to run always and dump the function.
7475         * common.opt (ftree-salias): Hide.
7476         * passes.c (init_optimization_passes): Remove
7477         pass_create_structure_vars, adjust comment.
7478         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7479         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7480         * opts.c (decode_options): Do not set flag_tree_salias.
7481         (common_handle_option): Add OPT_ftree_salias to the backward
7482         compatibility section.
7484 2008-05-08  Richard Guenther  <rguenther@suse.de>
7486         * tree-flow-inline.h (var_can_have_subvars): Move ...
7487         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7488         * tree-flow.h (var_can_have_subvars): Remove.
7489         (push_fields_onto_fieldstack): Remove.
7490         (sort_fieldstack): Likewise.
7491         (struct fieldoff): Move ...
7492         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7493         alias_set and base_for_components fields.
7494         (sort_fieldstack): Make static.
7495         (push_fields_onto_fieldstack): Likewise.  Remove code that
7496         handles anything but RECORD_TYPEs.  Remove alias_set and
7497         base_for_components handling.
7498         (create_variable_info_for): Adjust.
7500 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7502         * common.opt (Wframe-larger-than=): Shorten the help message
7503         to one line.
7504         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7506 2008-05-08  Rafael Espindola  <espindola@google.com>
7508         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7509         trap.
7510         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7511         trap and that both operands are gimple values.
7512         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7513         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7514         is a fp operation.
7516 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7518         * read-rtl.c (join_c_conditions): Return the first string if the
7519         two strings are equal.
7521 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7523         * gensupport.h (pred_data): Add a "num_codes" field.
7524         (add_predicate_code): Declare.
7525         * gensupport.c (add_predicate_code): New function.
7526         (std_pred_table): Add an "allows_const_p" field.
7527         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7528         Remove the (incomplete) list of such codes from the codes field.
7529         (init_predicate_table): Use add_predicate_code.  Add all
7530         RTX_CONST_OBJs if allows_const_p is true.
7531         * genrecog.c (process_define_predicate): Use add_predicate_code.
7533 2008-05-08  David Daney  <ddaney@avtrex.com>
7534             Richard Sandiford  <rsandifo@nildram.co.uk>
7535         
7536         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7537         special case of constant zero operands.
7538         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7539         old and new values.  Special case constant zero values.
7540         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7541         fails.
7542         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7543         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7545 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7547         PR target/36090
7548         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7549         similar RTX_CONST_OBJ before CONST_INT.
7551 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7553         * stmt.c (expand_stack_restore): Change sa mode if needed.
7555 2008-05-08  Richard Guenther  <rguenther@suse.de>
7557         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7558         return type to bool.
7559         (ix86_sol10_return_in_memory): Likewise.
7560         (ix86_i386elf_return_in_memory): Likewise.
7561         (ix86_i386interix_return_in_memory): Likewise.
7562         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7563         (ix86_sol10_return_in_memory): Likewise.
7564         (ix86_i386elf_return_in_memory): Likewise.
7565         (ix86_i386interix_return_in_memory): Likewise.
7567 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7569         PR bootstrap/36180
7570         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7571         fndecl argument.
7572         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7573         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7574         declared in front.
7576 2008-05-08  Richard Guenther  <rguenther@suse.de>
7578         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7579         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7580         (DR_SUBVARS): Remove.
7581         * tree-dfa.c (dump_subvars_for): Remove.
7582         (debug_subvars_for): Likewise.
7583         (dump_variable): Do not dump subvars.
7584         (remove_referenced_var): Do not remove subvars.
7585         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7586         (lookup_subvars_for_var): Remove.
7587         (get_subvars_for_var): Likewise.
7588         (get_subvars_at): Likewise.
7589         (get_first_overlapping_subvar): Likewise.
7590         (overlap_subvar): Likewise.
7591         * tree-flow.h (subvar_t): Remove.
7592         (struct var_ann_d): Remove subvars field.
7593         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7594         argument.  Remove special handling of SFTs.
7595         (compute_tag_properties): Likewise.
7596         (set_initial_properties): Likewise.
7597         (compute_call_clobbered): Likewise.
7598         (count_mem_refs): Likewise.
7599         (compute_memory_partitions): Likewise.
7600         (compute_flow_insensitive_aliasing): Likewise.
7601         (setup_pointers_and_addressables): Likewise.
7602         (new_type_alias): Likewise.
7603         (struct used_part): Remove.
7604         (used_portions): Likewise.
7605         (struct used_part_map): Likewise.
7606         (used_part_map_eq): Likewise.
7607         (used_part_map_hash): Likewise.
7608         (free_used_part_map): Likewise.
7609         (up_lookup): Likewise.
7610         (up_insert): Likewise.
7611         (get_or_create_used_part_for): Likewise.
7612         (create_sft): Likewise.
7613         (create_overlap_variables_for): Likewise.
7614         (find_used_portions): Likewise.
7615         (create_structure_vars): Likewise.
7616         * tree.def (STRUCT_FIELD_TAG): Remove.
7617         * tree.h (MTAG_P): Adjust.
7618         (struct tree_memory_tag): Remove base_for_components and
7619         unpartitionable flags.
7620         (struct tree_struct_field_tag): Remove.
7621         (SFT_PARENT_VAR): Likewise.
7622         (SFT_OFFSET): Likewise.
7623         (SFT_SIZE): Likewise.
7624         (SFT_NONADDRESSABLE_P): Likewise.
7625         (SFT_ALIAS_SET): Likewise.
7626         (SFT_UNPARTITIONABLE_P): Likewise.
7627         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7628         (union tree_node): Remove sft field.
7629         * alias.c (get_alias_set): Remove special handling of SFTs.
7630         * print-tree.c (print_node): Remove handling of SFTs.
7631         * tree-dump.c (dequeue_and_dump): Likewise.
7632         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7633         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7634         * tree-predcom.c (set_alias_info): Do not set subvars.
7635         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7636         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7637         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7638         (add_vars_for_offset): Remove.
7639         (add_virtual_operand): Remove special handling of SFTs.
7640         (add_call_clobber_ops): Likewise.
7641         (add_call_read_ops): Likewise.
7642         (get_asm_expr_operands): Likewise.
7643         (get_modify_stmt_operands): Likewise.
7644         (get_expr_operands): Likewise.
7645         (add_to_addressable_set): Likewise.
7646         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
7647         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7648         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
7649         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
7650         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
7651         (tree_node_structure): Likewise.
7652         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
7653         handling of SFTs.
7654         (find_what_p_points_to): Likewise.
7656 2008-05-08  Sa Liu  <saliu@de.ibm.com>
7658         * config/spu/spu.md: Fixed subti3 pattern.
7660 2008-05-08  Richard Guenther  <rguenther@suse.de>
7662         PR middle-end/36154
7663         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7664         sure to create a representative for trailing arrays for PTA.
7666 2008-05-08  Richard Guenther  <rguenther@suse.de>
7668         PR middle-end/36172
7669         * fold-const.c (operand_equal_p): Two objects which types
7670         differ in pointerness are not equal.
7672 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7674         * calls.c (compute_argument_block_size): Add argument tree fndecl.
7675         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
7676         (emit_library_call_value_1): Add new variable fndecl initialized by
7677         NULL_TREE. It should be the decl type of orgfun, but this information
7678         seems not to be available here, so it uses the default calling abi.
7679         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
7680         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
7681         by TARGET_RETURN_IN_MEMORY.
7682         * config/i386/i386-interix.h: Likewise.
7683         * config/i386/i386.h: Likewise.
7684         * config/i386/i386elf.h: Likewise.
7685         * config/i386/ptx4-i.h: Likewise.
7686         * config/i386/sol2-10.h: Likewise.
7687         * config/i386/sysv4.h: Likewise.
7688         * config/i386/vx-common.h: Likewise.
7689         * config/cris/cris.h: Removed #if 0 clause.
7690         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
7691         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
7692         argument.
7693         (ix86_sol10_return_in_memory): Likewise.
7694         (ix86_i386elf_return_in_memory): New.
7695         (ix86_i386interix_return_in_memory): New.
7696         * config/mt/mt-protos.h (mt_return_in_memory): New.
7697         * config/mt/mt.c: Likewise.
7698         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7699         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
7700         * config/bfin/bfin.h: Likewise.
7701         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
7702         argument.
7703         * config/bfin/bfin.c: Likewise.
7704         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
7705         * config/alpha/unicosmk.h: Likewise.
7706         * config/i386/cygming.h: Likewise.
7707         * config/iq2000/iq2000.h: Likewise.
7708         * config/mips/mips.h: Likewise.
7709         * config/mn10300/mn10300.h: Likewise.
7710         * config/rs6000/rs6000.h: Likewise.
7711         * config/score/score.h: Likewise.
7712         * config/spu/spu.h: Likewise.
7713         * config/v850/v850.h: Likewise.
7714         * defaults.h: Likewise.
7715         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
7716         * expr.c (emit_block_move): Adjust use of
7717         OUTGOING_REG_PARM_STACK_SPACE.
7718         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
7719         OUTGOING_REG_PARM_STACK_SPACE.
7720         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
7722 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
7724         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
7725         on OMP_RETURN for OMP_FOR.
7727         PR debug/35896
7728         * dwarf2out.c (dw_expand_expr, common_check): Removed.
7729         (fortran_common): New function.
7730         (gen_variable_die): Call fortran_common instead of common_check,
7731         adjust for it returning tree instead of rtx.  Formatting.
7733 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
7735         PR rtl/7335
7736         PR rtl/33826
7737         * see.c (see_copy_insn): Copy new pure const attributes for new call.
7738         * c-decl.c (merge_decls): Ditto.
7739         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
7740         to RTL_CONST_OR_PURE_CALL_P.
7741         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
7742         Initialized DECL_LOOPING_CONST_PURE.
7743         (process_call_operands): Set tree_side_effects properly.
7744         * tree.h (TREE_READONLY_DECL_P): Removed.
7745         (DECL_IS_PURE): Renamed to DECL_PURE_P.
7746         (DECL_LOOPING_OR_CONST_P): New macro.
7747         (struct tree_function_decl): Added looping_const_or_pure_p.
7748         (ECF_*) Renumbered.
7749         (ECF_LOOPING_OR_CONST_P): New macro.
7750         * rtlanal.c (pure_const_p): Removed.
7751         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
7752         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
7753         to RTL_CONST_CALL_P.
7754         * ipa-pure-const.c (pure_const_state_e): Added looping field.
7755         (check_decl, check_tree, check_call, scan_function): Initialize
7756         looping.
7757         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
7758         (static_execute): Set looping true for recursive functions.
7759         Undo setting state to IPA_NEITHER for recursive functions.
7760         * cse.c (cse_insn): 
7761         * ifcvt.c (noce_can_store_speculate_p): Changed
7762         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
7763         RTL_CONST_OR_PURE_CALL_P.
7764         * dse.c (scan_insn): Ditto.
7765         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
7766         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
7767         RTL_CONST_OR_PURE_CALL_P.
7768         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
7769         pure_call_p to RTL_CONST_CALL_P.
7770         * gimplify.c (gimplify_call_expr): Clear side effects for
7771         non-looping pure and constant calls.
7772         * calls.c (emit_call_1): Set rtl flags from ecf flags.
7773         (flags_from_decl_or_type): Set ecf flags from decl flags.
7774         (initialize_argument_information): Turn off
7775         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
7776         Change const to pure if callee_copies is true rather than just
7777         turning off const.
7778         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
7779         way of marking pure calls.
7780         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
7781         Remove hack that was supposed to fix pr7335 and remove old
7782         way of marking pure calls.
7783         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
7784         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
7785         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
7786         RTL_CONST_OR_PURE_CALL_P.
7787         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
7788         * loop-invariant.c (find_exits, find_invariant_bb): Changed
7789         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
7790         * sched-deps.c (schedule_analyze): Ditto.
7791         * rtl.h (struct rtx_def): Use call field, unchanging field, and
7792         return_val field of calls to represent pure and const function info.
7793         (CONST_OR_PURE_CALL_P): Deleted macro.
7794         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7795         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
7796         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
7797         TREE_READONLY.
7798         * tree-optimize.c (execute_fixup_cfg): Added test for
7799         ECF_LOOPING_CONST_OR_PURE.
7800         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
7801         DECL_PURE_P.
7802         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
7803         effects for looping pure or const calls.
7804         (verify_gimple_expr): Added verification code. 
7805         * config/alpha/alpha.c (alpha_legitimize_address,
7806         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
7807         RTL_CONST_CALL_P.
7808         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
7809         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
7810         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
7811         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
7812         RTL_CONST_OR_PURE_CALL_P.
7813         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
7814         and const calls to be deleted.
7816 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
7818         PR target/35714
7819         * config/i386/mmx.md (mmx_subv2sf3): New expander.
7820         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
7821         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
7822         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
7823         to handle nonimmediate operands.
7824         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
7825         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
7826         to handle nonimmediate operands.
7827         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
7828         (mmx_pmulhrwv4hi3): New expander.  Use
7829         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7830         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
7831         (sse2_umulv1siv1di3): New expander.  Use
7832         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7833         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
7834         (mmx_eq<mode>3): New expander.  Use
7835         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7836         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
7837         (mmx_uavgv8qi3): New expander.  Use
7838         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7839         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
7840         (mmx_uavgv4hi3): New expander.  Use
7841         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7843         * config/i386/sse.md
7844         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
7845         to handle nonimmediate operands.
7846         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
7847         to handle nonimmediate operands.
7848         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
7849         to handle nonimmediate operands.
7850         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
7851         to handle nonimmediate operands.
7852         (sse2_unpckhpd_exp): New expander.  Use
7853         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7854         (sse2_unpcklpd_exp): New expander.  Use
7855         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7856         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
7857         to handle nonimmediate operands.
7858         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
7859         to handle nonimmediate operands.
7860         (*sse2_<plusminus_insn><mode>3): Rename from
7861         sse2_<plusminus_insn><mode>3 insn pattern.
7862         (sse2_<plusminus_insn><mode>3): New expander.  Use
7863         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7864         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
7865         (sse2_umulv2siv2di3): New expander.  Use
7866         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7867         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
7868         (sse4_1_mulv2siv2di3): New expander.  Use
7869         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7870         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
7871         (sse2_pmaddwd): New expander.  Use
7872         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7873         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
7874         (sse2_eq<mode>3): New expander.  Use
7875         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7876         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
7877         (sse4_1_eqv2di3): New expander.  Use
7878         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7879         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7880         (sse2_uavgv16qi3): New expander.  Use
7881         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7882         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
7883         (sse2_uavgv16qi3): New expander.  Use
7884         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7885         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
7886         (sse2_uavgv8hi3): New expander.  Use
7887         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7888         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
7889         (ssse3_pmulhrswv8hi3): New expander.  Use
7890         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7891         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
7892         (ssse3_pmulhrswv4hi3): New expander.  Use
7893         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
7895         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
7896         (<sse>_vmmul<mode>3): Ditto.
7897         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
7898         (divv2df3): Ditto.
7899         (ssse3_pmaddubsw128): Use register_operand for operand 1.
7900         (ssse3_pmaddubsw): Ditto.
7902         * config/i386/i386.c (struct_builtin_description)
7903         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
7904         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
7905         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
7906         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
7907         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
7908         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
7909         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
7910         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
7911         (ix86_fixup_binary_operands): Assert that src1
7912         and src2 must have the same mode when swapped.
7913         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
7914         and ix86_binary_operator_ok.  Do not force operands in registers
7915         when optimizing.
7917 2008-05-07  Jan Hubicka  <jh@suse.cz>
7919         * cgraph.c (dump_cgraph_node): Update.
7920         * cgraph.h (cgraph_local_info): Break out inline summary.
7921         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
7922         hook.
7923         * ipa-inline (inline_summary): New accestor function.
7924         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
7925         cgraph_decide_inlining, compute_inline_parameters): Update.
7926         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
7928 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
7930         Cleanup ColdFire scheduling support and add V4 pipeline model.
7932         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
7933         (define_attr cpu): Add cfv4 value.
7934         (define_attr type, define_attr type1): Merge into a single 'type'
7935         attribute.  Update all uses.
7936         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
7937         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
7938         Update all uses.
7939         (define_attr opx_mem, define_attr opy_mem): Remove.
7940         (define_attr op_mem): Clean up, update comment.
7941         (define_attr size): Use specific values instead of general int.
7942         (define_attr guess, define_attr split): Remove.  Update all uses.
7943         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
7944         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
7945         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
7946         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
7947         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
7948         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
7949         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
7950         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
7951         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
7952         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
7953         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
7954         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
7955         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
7956         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
7957         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
7958         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
7959         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
7960         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
7961         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
7962         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
7963         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
7964         Update or set attributes.
7965         (stack_tie): New fake instruction.
7967         * config/m68k/m68k.h (TUNE_CFV4): New macro.
7968         (m68k_sched_attr_size): Update declaration.
7969         (m68k_sched_attr_type2): Remove.
7970         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
7971         Declare new bypass predicates.
7973         * config/m68k/m68k.c (m68k_sched_issue_rate,
7974         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
7975         implementations.
7976         (TARGET_SCHED_ISSUE_RATE,
7977         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
7978         (override_options): Handle scheduling for ColdFire V4 core.
7979         (m68k_expand_prologue): Emit stack_tie.
7980         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
7981         'OP_TYPE_FPN'.  Update all uses.
7982         (sched_guess_p): Remove.
7983         (sched_address_type): Handle symbolic addresses.
7984         (sched_get_operand): New static function.
7985         (sched_operand_type): Merge into sched_attr_op_type.
7986         (sched_attr_op_type): Handle FP registers, handle quick constants,
7987         update.
7988         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
7989         (m68k_sched_attr_size): Update.  Move logic to ...
7990         (sched_get_attr_size_int): New static function.
7991         (sched_get_opxy_mem_type): New static function.
7992         (m68k_sched_attr_op_mem): Update.
7993         (m68k_sched_attr_type2): Remove.
7994         (sched_cfv4_bypass_data): New static variable.
7995         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
7996         (m68k_sched_issue_rate): Implement scheduler hook.
7997         (struct _sched_ib: enabled_p): New field.
7998         (m68k_sched_variable_issue): Update.  Handle V4.
7999         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8000         sched_dump_class_func_t, sched_dump_split_class,
8001         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8002         sched_dump_dfa_class, m68k_sched_dump): Remove.
8003         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8004         hook.
8005         (m68k_sched_init_global): Remove statisctics dumping, introduce
8006         sanity check that all instructions have pipeline reservations.  Handle
8007         ColdFire V4 core.
8008         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8009         Handle ColdFire V4 core.
8010         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8011         New static functions.
8012         (m68k_sched_address_bypass_p): New bypass predicate.
8013         (sched_get_indexed_address_scale): New static function.
8014         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8016         * cf.md: Update comments.
8017         (define_attr type2): Remove.  Use 'type' attribute instead.
8018         Update all uses.
8019         (cf_ib): Rename to cfv123_ib.  Update all uses.
8020         (cf_oep): Rename to cfv123_oep.  Update all uses.
8021         (cf_chr): Rename to cfv123_chr.  Update all uses.
8022         (cf_mem): Rename to cfv123_mem.  Update all uses.
8023         (cf_mac): Move to more appropriate place.
8024         (cfv123_guess): New automaton and cpu_unit.
8025         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8026         Update uses of 'size' attribute.  Handle before reload scheduling.
8027         (cfv123_guess): New dummy reservation for unhandled instructions.
8028         (cfv4_*): Pipeline description of ColdFire V4 core.
8029         (ignore): New reservation to handle 'ignore' type.
8031 2008-05-07  Ian Lance Taylor  <iant@google.com>
8033         PR middle-end/36013
8034         * gimplify.c (find_single_pointer_decl_1): Don't look through
8035         indirections.
8036         (find_single_pointer_decl): Adjust comments.
8038 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8040         PR middle-end/36137
8041         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8042         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8044         PR middle-end/36106
8045         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8046         integral type rather than floating point, then VIEW_CONVERT_EXPR
8047         to the floating point type.
8049 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8051         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8052         TFmode op0 to register.
8054 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8056         * c-decl.c (grokdeclarator): Comment typo.
8058 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8060         * tree-flow.h: Remove prototype for computed_goto_p.
8061         * tree-cfg.c (computed_goto_p): Make static.
8063 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8065         PR target/35657
8066         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8067         (contains_aligned_value_p): This.  Handle _Decimal128.
8068         (ix86_function_arg_boundary): Only align _Decimal128 to its
8069         natural boundary and handle it properly.
8071 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8073         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8074         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8075         (ipcp_method_set_orig_node): Removed.
8076         (ipcp_cval_get_cvalue_type): Removed.
8077         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8078         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8079         (ipcp_cval_set_cvalue_type): Removed.
8080         (ipcp_cval_get_cvalue): Removed.
8081         (ipcp_cval_set_cvalue): Removed.
8082         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8083         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8084         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8085         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8086         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8087         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8088         (ipcp_get_ith_lattice): Changed parameters.
8089         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8090         (ipcp_lattice_from_jfunc): Changed parameters.
8091         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8092         (ipcp_method_cval_print): Added temporary variable info.
8093         (ipcp_redirect): Removed already unused local variable caller.
8094         (ipcp_redirect): New temporary variable orig_callee_info
8095         (ipcp_redirect): Removed newly unused local variable callee.
8096         (ipcp_redirect): Removed (a bit confusing) local variable type.
8097         (ipcp_insert_stage): Added local variable info.
8098         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
8099         renamed too
8100         (ipcp_formal_create): Removed.
8101         (ipcp_method_cval_set): Removed.
8102         (ipcp_propagate_stage): Renamed lattice variables.
8103         (ipcp_method_cval_set_cvalue_type): Removed.
8104         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8105         (ipcp_print_all_lattices): Changed printed strings to refer to 
8106         lattices rather than cvals.
8107         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8108         (ipcp_propagate_const): Changed formal parameters.
8109         (build_const_val): Changed formal parameters.
8110         (ipcp_insert_stage): Removed useless variable cvalue
8111         (build_const_val): Changed formal parameters.
8112         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8113         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8114         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8115         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8116         (ipcp_print_func_profile_counts): Changed string from "method" to 
8117         "function"
8118         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8119         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8120         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8121         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8122         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8123         (ipcp_lat_is_const): Changed parameters and made inline.
8124         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8125         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8126         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
8127         the predicate condition directly
8128         (ipcp_propagate_stage): Added local variable args. Removed local
8129         variable callee.  (Both are mere code simplifications.)
8130         (ipcp_method_dont_insert_const): Renamed to
8131         ipcp_node_not_modifiable_p.
8132         (ipcp_node_not_modifiable_p): Made inline.
8133         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8134         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8135         (ipcp_print_all_lattices): Removed variable cvalue
8136         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8137         Updated comments.
8139 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8141         * tree-sra.c (try_instantiate_multiple_fields): Early return
8142         if field has POINTER_TYPE.
8144 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8146         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8147         by using 'q' specifier for instruction.
8148         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8150 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8152         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8153         Change mode of zero_extract from QImode to HImode.
8154         (sign bit tests peepholes): (Ditto.).
8156 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8158         * config/i386/mmx.md: Remove double backslashes from asm templates.
8159         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8160         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8161         to handle nonimmediate operands.
8162         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8163         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8164         to handle nonimmediate operands.
8165         (*mmx_<code>v2sf3_finite): New insn pattern.
8166         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8167         (mmx_<code>v2sf3): New expander.  Use
8168         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8169         (mmx_<plusminus_insn><mode>3): New expander.  Use
8170         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8171         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8172         (mmx_add<mode>3): Removed.
8173         (mmx_ssadd<mode>3): Ditto.
8174         (mmx_usadd<mode>3): Ditto.
8175         (mmx_sub<mode>3): Ditto.
8176         (mmx_sssub<mode>3): Ditto.
8177         (mmx_ussub<mode>3): Ditto.
8178         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8179         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8180         to handle nonimmediate operands.
8181         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8182         insn pattern.
8183         (mmx_smulv4hi3_highpart): New expander.  Use
8184         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8185         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8186         insn pattern.
8187         (mmx_umulv4hi3_highpart): New expander.  Use
8188         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8189         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8190         (mmx_<code>v4hi3): New expander.  Use
8191         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8192         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8193         (mmx_<code>v8qi3): New expander.  Use
8194         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8195         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8196         (mmx_<code><mode>3): New expander.  Use
8197         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8199 2008-05-05  Jan Hubicka  <jh@suse.cz>
8201         PR tree-optimization/36118
8202         * passes.c (pass_init_dump_file): Fix dump header.
8204 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8206         PR middle-end/36141
8207         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8208         VCE for function decls.
8210 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8212         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8214 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8216         * config/i386/i386.md (sat_plusminus): New.
8217         (plusminus_insn): Likewise.
8218         (plusminus_mnemonic): Likewise.
8219         (addsub): Removed.
8220         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8221         (*<addsub><mode>3_cc_overflow): Renamed to ...
8222         (*<plusminus_insn><mode>3_cc_overflow): This.
8223         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8224         (*<plusminus_insn>si3_zext_cc_overflow): This.
8226         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8227         (<plusminus_insn><mode>3): This.
8228         (*<addsub><mode>3): Renamed to ...
8229         (*<plusminus_insn><mode>3): This.
8230         (<sse>_vm<addsub><mode>3): Renamed to ...
8231         (<sse>_vm<plusminus_insn><mode>3): This.
8232         (sse3_h<addsub>v4sf3): Renamed to ...
8233         (sse3_h<plusminus_insn>v4sf3): This.
8234         (sse3_h<addsub>v2df3): Renamed to ...
8235         (sse3_h<plusminus_insn>v2df3): This.
8236         (<plusminus_insn><mode>3): New.
8237         (*<plusminus_insn><mode>3): Likewise.
8238         (sse2_<plusminus_insn><mode>3): Likewise.
8239         (add<mode>): Removed.
8240         (*add<mode>3): Likewise.
8241         (sse2_ssadd<mode>3): Likewise.
8242         (sse2_usadd<mode>3): Likewise.
8243         (sub<mode>3): Likewise.
8244         (*sub<mode>3): Likewise.
8245         (sse2_sssub<mode>3): Likewise.
8246         (sse2_ussub<mode>3): Likewise.
8248 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8250         * gthr-single.h: Add in required interface elements as per gthr.h.
8251         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8252         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8253         Generalize UNUSED macro. 
8254         (__gthread_once): Add.
8255         (__gthread_key_create): Add.
8256         (__gthread_key_delete): Add.
8257         (__gthread_getspecific): Add.
8258         (__gthread_setspecific): Add.
8259         
8260 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8262         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8263         the same size types for the indirect reference on the rhs, then
8264         create a VCE.
8266 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8268         * config/i386/i386.md
8269         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8270         one insn template instead of template series.
8271         (*xordi_1_rex64): Ditto.
8272         (*xordi_2_rex64): Ditto.
8274 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8276         PR tree-optimization/36119
8277         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8278         in case of SLP.
8280 2008-06-04  Jan Hubicka  <jh@suse.cz>
8282         tree-optimization/36100
8283         * tree-pass.h (pass_O0_always_inline): Declare.
8284         * ipa-inline.c (inline_transform): Remove dead code.
8285         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8286         pass_O0_always_inline): New.
8287         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8289 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8291         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8292         mnemonic in this_param move for TARGET_64BIT.
8294 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8296         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8297         (*strmovsi_rex_1): Ditto.
8298         (*strsetsi_1): Ditto.
8299         (*strsetsi_rex_1): Ditto.
8301         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8302         adddicc expanders using SWI mode iterator.
8304 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8306         PR target/36121
8307         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8308         argument handling.
8310 2008-05-04  David S. Miller  <davem@davemloft.net>
8312         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8313         (sparc*-*-linux*): Use linux.h in tm_file.
8314         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8315         compiler defaulting to 32-bit.
8316         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8317         no longer needed.
8318         * config/sparc/linux.h: Remove definitions now obtained
8319         properly from linux.h
8320         * config/sparc/linux64.h: Likewise.
8321         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8322         don't want this setting for 32-bit builds in a biarch compiler.
8323         * doc/install.texi: Add sparc-linux to list of targets
8324         supporting --enable-targets=all.
8326 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8328         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8330 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8332         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8333         after V4SI_FTYPE_V8HI.
8334         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8335         case V4SI_FTYPE_V2DF.
8337 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8339         * doc/invoke.texi (max-flow-memory-locations): Removed.
8340         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8341         
8342 2008-05-03  Richard Guenther  <rguenther@suse.de>
8344         PR middle-end/34973
8345         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8347 2008-05-02  David S. Miller  <davem@davemloft.net>
8349         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8351 2008-05-02  Simon Baldwin <simonb@google.com>
8353         PR bootstrap/36108
8354         * c-common.h (warn_array_subscript_range): Removed.
8355         * c-common.c (warn_array_subscript_range): Ditto.
8356         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8357         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8359 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8361         * config/i386/i386.c (ix86_special_builtin_type): New.
8362         (bdesc_special_args): Likewise.
8363         (ix86_expand_special_args_builtin): Likewise.
8364         (ix86_init_mmx_sse_builtins): Updated.
8365         (ix86_expand_builtin): Updated.
8366         (ix86_expand_store_builtin): Removed.
8367         (ix86_expand_unop_builtin): Likewise.
8369         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8370         * config/i386/mmintrin.h (__v2sf): Here.
8372         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8373         const __v2sf.
8374         (_mm_loadl_pi): Likewise.
8375         (_mm_storeh_pi): Replace __v2si with __v2sf.
8376         (_mm_storel_pi): Likewise.
8378         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8379         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8380         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8381         __builtin_ia32_loadlpd.
8383 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8385         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8386         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8387         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8388         (ix86_init_mmx_sse_builtins): Updated.
8389         (ix86_expand_args_builtin): Likewise.
8390         (ix86_expand_builtin): Likewise.
8391         (ix86_expand_unop1_builtin): Renamed to ...
8392         (ix86_expand_unop_vec_merge_builtin): This.
8394 2008-05-01  Jan Hubicka  <jh@suse.cz>
8396         PR bootstrap/36100
8397         * ipa-inline.c (inline_generate_summary): Make static.
8398         (inline_transform): Do not call inlining at -O0; make static.
8399         * passes.c (execute_todo): Add sanity check.
8400         (execute_one_ipa_transform_pass): Execute proper flags.
8402 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8404         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8405         (DECL_NONADDRESSABLE_P): Likewise.
8406         * alias.c (record_component_aliases): Fix comment.
8408 2008-05-01  Simon Baldwin <simonb@google.com>
8410         * c-common.h (warn_array_subscript_range): New function.
8411         * c-common.c (warn_array_subscript_range): Ditto.
8412         * tree-vrp.c (check_array_ref): Corrected code to agree with
8413         comment, ignoring only arrays of size 0 or size 1.
8414         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8416 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8418         * config/i386/i386.c (ix86_builtin_type): Replace
8419         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8420         (bdesc_args): Updated.
8421         (ix86_init_mmx_sse_builtins): Likewise.
8422         (ix86_expand_args_builtin): Likewise.
8424         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8425         with __v1di.
8427         * doc/extend.texi: Correct __builtin_ia32_palignr.
8429 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8431         PR target/36095
8432         * config/i386/i386.c (bdesc_crc32): Removed.
8433         (ix86_expand_crc32): Likewise.
8434         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8435         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8436         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8437         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8438         UINT_FTYPE_UINT_UCHAR.
8439         (bdesc_args): Updated. Add crc32 builtins.
8440         (ix86_init_mmx_sse_builtins): Updated.
8441         (ix86_expand_args_builtin): Updated to support subreg.
8443         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8445 2008-05-01  Jan Hubicka  <jh@suse.cz>
8447         * tree-pass.h (opt_pass): Add IPA_PASS.
8448         (varpool_node, cgraph_node): Forward declare.
8449         (ipa_opt_pass): Define.
8450         (pass_ipa_inline): Turn into ipa_opt_pass.
8451         (pass_apply_inline): Remove.
8452         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8453         (apply_inline): Turn into ....
8454         (inline_transform): ... this one.
8455         (inline_generate_summary): New function.
8456         (pass_apply_inline): Remove.
8457         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8458         vector.
8459         (struct function): Add ipa_transforms_to_apply.
8460         * passes.c (register_one_dump_file): Work on IPA_PASS.
8461         (init_optimization_passes): Remove pass_inline_parameters and
8462         pass_apply_inline.
8463         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8464         (execute_one_pass) ... here; apply transforms when possible.
8465         (add_ipa_transform_pass, execute_ipa_summary_asses,
8466         execute_one_ipa_transform_pass): New.
8467         (execute_ipa_pass_list): Update for IPA_PASS type.
8469 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8471         * config/i386/i386.c (ix86_builtin_type): Add
8472         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8473         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8474         (bdesc_args): Add SSE4a builtins.
8475         (ix86_init_mmx_sse_builtins): Updated.
8476         (ix86_expand_args_builtin): Likewise.
8477         (ix86_expand_builtin): Likewise.
8479 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8481         * config/i386/i386.c (ix86_builtin_type): Add
8482         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8483         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8484         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8485         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8486         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8487         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8488         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8489         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8490         and DI_FTYPE_DI_DI_INT.
8491         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8492         (ix86_init_mmx_sse_builtins): Updated.
8493         (ix86_expand_args_builtin): Likewise.
8494         (ix86_expand_builtin): Likewise.
8495         (ix86_expand_binop_imm_builtin): Removed.
8497         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8499 2008-04-30  Richard Guenther  <rguenther@suse.de>
8501         PR tree-optimization/32921
8502         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8504 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8506         * config/arm/arm.c (arm_unwind_emit): Use
8507         crtl->all_throwers_are_sibcalls instead of
8508         cfun->all_throwers_are_sibcalls.
8509         (arm_output_fn_unwind): Likewise.
8510         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8511         instead of cfun->uses_pic_offset_table.
8512         (frv_expand_prologue): Likewise.
8513         (frv_frame_pointer_required): Likewise.
8514         (frv_expand_fdpic_call): Likewise.
8515         (frv_emit_movsi): Likewise.
8516         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8517         cfun->returns_pcc_struct instead of
8518         current_function_returns_pcc_struct.
8519         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8520         instead of cfun->calls_eh_return.
8521         (m32c_pushm_popm): Likewise.
8522         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8523         "extern" declaration.
8525 2008-04-30  Richard Guenther  <rguenther@suse.de>
8527         PR tree-optimization/21636
8528         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8529         constant address.
8530         (evaluate_stmt): Print the likely value.
8531         (ccp_visit_stmt): Avoid excessive vertical spacing.
8533 2008-04-30  Rafael Espindola  <espindola@google.com>
8535         * builtins.c (fold_call_expr): Return realret.
8536         * tree-ssa-threadedge.c
8537         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8538         __builtin_object_size.
8540 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8542         * gcc.c (wrapper_string): New variable.
8543         (insert_wrapper): New function.
8544         (execute): New option -wrapper.
8545         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8547 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8549         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8550         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8551         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8552         from...
8553         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8554         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8555         config/rs6000/e500crtres64gprctr.asm,
8556         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8557         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8558         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8559         config/rs6000/e500crtsav64gprctr.asm,
8560         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8561         config/rs6000/e500crtsavg64gprctr.asm: New files.
8562         * config/rs6000/t-ppccomm: Add build rules for new files.
8563         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8564         * config/rs6000/t-netbsd: Add build rules for new files.
8565         (LIB2FUNCS_STATIC_EXTRA): New variable.
8566         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8567         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8568         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8570 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8572         * config/i386/i386.c (ix86_builtin_type): Add
8573         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8574         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8575         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8576         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8577         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8578         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8579         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8580         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8581         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8582         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8583         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8584         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8585         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8586         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8587         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8588         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8589         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8590         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8591         V1DI_FTYPE_V2SI_V2SI.
8592         (bdesc_2arg): Moved to ...
8593         (bdesc_args): Here.
8594         (ix86_init_mmx_sse_builtins): Updated.
8595         (ix86_expand_args_builtin): Updated.  Take a pointer
8596         to const struct builtin_description.  Handle comparison
8597         builtin functions.
8598         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8599         (ix86_expand_builtin): Updated.
8601         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8602         (ssse3_pmaddubsw128): This.
8603         (ssse3_pmaddubswv4hi3): Renamed to ...
8604         (ssse3_pmaddubsw): This.
8606         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8607         (__builtin_ia32_packssdw128): Likewise.
8608         (__builtin_ia32_packuswb128): Likewise.
8609         (__builtin_ia32_pmaddubsw): Likewise.
8610         (__builtin_ia32_pmaddubsw128): Likewise.
8612 2008-04-30  Richard Guenther  <rguenther@suse.de>
8614         PR tree-optimization/14847
8615         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8616         (recognize_bits_test): Use it.
8617         (recognize_single_bit_test): Likewise.
8619 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8621         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8622         instead of setting number of formal parameters to zero.
8623         (ipcp_init_stage): Do not set the number of actual parameters to zero 
8624         either.
8625         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8626         which are called with variable number of arguments.
8627         (ipcp_insert_stage): Explicitely skipping all nodes which are
8628         called with variable number of arguments.
8629         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
8630         number of parameters.
8632         * ipa-prop.h (struct ipa_node_params): Added flag
8633         called_with_var_arguments
8634         (ipa_set_param_count): Added.  Changed sole setter to use it.
8635         (ipa_get_param_count): Added.  All readers of param_count
8636         converted to use it instead.
8637         (ipa_set_called_with_variable_arg): Added.
8638         (ipa_is_called_with_var_arguments): Added.
8639         (ipa_get_ith_param): Added.  All readers of param_decls converted
8640         to use it instead.
8641         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
8642         changed to use it. 
8643         (ipa_get_cs_argument_count): Added, all readers of argument_count
8644         changed to cal it.
8645         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
8646         to use it.
8647         
8648         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
8649         (struct ipcp_lattice): Renamed cval_type to type
8650         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
8652         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
8653         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
8654         (ipcp_insert_stage): Changed the type of variable cvalue to tree
8655         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
8656         (build_const_val): Changed the type of parameter cvalue to tree
8657         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
8658         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
8659         
8660         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
8661         constant 
8663         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
8664         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
8665         (ipa_add_method): Renamed to ipa_push_func_to_list
8666         (ipa_remove_method): Renamed to ipa_pop_func_from_list
8667         (ipa_callsite_param_count): Removed.
8668         (ipa_callsite_param_count_set): Removed.
8669         (ipa_callsite_param): Removed.
8670         (ipa_callsite_callee): Removed.
8671         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
8672         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
8673         (ipa_method_formal_count): Removed.
8674         (ipa_method_formal_count_set): Removed.
8675         (ipa_method_get_tree): Removed.
8676         (ipa_method_tree_map_create): Removed.
8677         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
8678         (ipa_create_param_decls_array): Creates the array itself
8679         (ipa_create_param_decls_array): Temporary variable info instead of 
8680         a few dereferences.
8681         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
8682         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
8683         (get_type): Removed.
8684         (ipa_jf_get_info_type): Removed.
8685         (ipa_node_create): Renamed to ipa_create_node_params
8686         (ipa_free): Renamed to ipa_free_all_node_params
8687         (ipa_nodes_create): Renamed to ipa_create_all_node_params
8688         (ipa_edges_create): Renamed to ipa_create_all_edge_args
8689         (ipa_edges_free): Renamed to ipa_free_all_edge_args
8690         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
8691         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
8692         ipa_free_all_edge_args
8693         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
8694         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
8695         (ipa_create_methodlist_node): Removed.
8696         (ipa_methodlist_method): Removed.
8697         (ipa_methodlist_method_set): Removed.
8698         (ipa_methodlist_next_method): Removed.
8699         (ipa_methodlist_next_method_set): Removed.
8700         (ipa_method_is_modified): Removed.
8701         (ipa_method_modify_create): Removed.
8702         (ipa_method_modify_init): Temporary variable info instead of a few 
8703         dereferences.
8704         (ipa_detect_param_modifications): Temporary variable info instead of 
8705         a few dereferences.
8706         (ipa_compute_jump_functions): Temporary variable info instead of 
8707         a few dereferences.
8708         (ipa_method_modify_set): Removed.
8709         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
8710         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
8711         than craph_node as the first parameter.
8712         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
8713         (ipa_method_modify_init): Removed.
8714         (ipa_compute_jump_functions): Added a temp variable instead of 
8715         repeatadly dereferencing the cgraph_edge.aux pointer
8716         (ipa_callsite_param_set_type): Removed.
8717         (ipa_compute_jump_functions): i renamed to index and moved to 
8718         an inner block
8719         (ipa_callsite_param_set_info_type_formal): Removed.
8720         (ipa_callsite_param_set_info_type): Removed.
8721         (ipa_callsite_param_map_create): Removed.
8722         (ipa_callsite_tree): Removed.
8723         (ipa_callsite_caller): Removed.
8724         (ipa_pop_func_from_list): return_method removed to return_func
8726         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
8727         prefixed all values with IPA_. Changed all users.
8728         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
8729         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
8730         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
8731         (union parameter_info): Renamed to jump_func_value.
8732         (union jump_func_value): Renamed value to constant
8733         (struct ipa_jump_func): Renamed info_type to value
8734         (struct ipa_node): Renamed to ipa_node_params
8735         (struct ipa_node_params): Renamed ipa_arg_num to param_count
8736         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
8737         (struct ipa_node_params): Renamed ipa_mod to modified_flags
8738         (struct ipa_edge): Renamed to ipa_edge_args
8739         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
8740         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
8741         (struct ipa_methodlist): Renamed to ipa_func_list
8742         (struct ipa_func_list): method_p renamed to node, next_method
8743         renamed to next
8744         (ipa_methodlist_p): Removed, switched all users to struct pointer
8745         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
8747 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
8749         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
8750         (rs6000_emit_epilogue): Use backchain to restore only when we
8751         have a large frame.  Make use of frame pointer to restore if we
8752         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
8754 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
8756         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8757         Add mode to zero_extract.
8758         (sign bit tests peepholes): (Ditto.).
8760 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
8762         * config/i386/i386.c (ix86_builtins): Replace Prescott New
8763         Instructions in comments with SSE3.
8764         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
8765         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
8766         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
8767         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
8768         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
8769         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
8770         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
8771         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
8772         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
8773         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
8774         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
8775         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
8776         (bdesc_sse_args): Renamed to ...
8777         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
8778         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
8779         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
8780         IX86_BUILTIN_FABSQ.
8781         (bdesc_1arg): Moved to ...
8782         (bdesc_args): Here.
8783         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
8784         Instructions in comments with SSE3.
8785         (ix86_expand_sse_operands_builtin): Renamed to ...
8786         (ix86_expand_args_builtin): This.  Updated.
8787         (ix86_expand_unop1_builtin): Update comments.
8788         (ix86_expand_builtin): Updated.
8790 2008-04-29  Richard Guenther  <rguenther@suse.de>
8792         PR tree-optimization/36078
8793         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8794         Update virtual SSA form after cleaning up the CFG.
8796 2008-04-29  Richard Guenther  <rguenther@suse.de>
8798         PR middle-end/15255
8799         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
8801 2008-04-29  Richard Guenther  <rguenther@suse.de>
8803         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
8804         (compute_may_aliases): Do not call finalize_ref_all_pointers.
8805         (compute_flow_insensitive_aliasing): Do not treat
8806         PTR_IS_REF_ALL pointers special.
8807         (get_smt_for): Likewise.
8808         (may_alias_p): Re-structure.
8809         (is_escape_site): A ref-all pointer conversion is not an escape site.
8810         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
8811         PTR_IS_REF_ALL pointers special.
8812         * tree-ssa-structalias.h (struct alias_info): Remove
8813         ref_all_symbol_mem_tag field.
8814         (PTR_IS_REF_ALL): Remove.
8816 2008-04-29  Richard Guenther  <rguenther@suse.de>
8818         PR middle-end/36077
8819         * fold-const.c (extract_muldiv_1): In combining division constants
8820         make sure to never overflow.
8822 2008-04-29  Nick Clifton  <nickc@redhat.com>
8824         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
8826 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8828         PR bootstrap/35169
8829         * optc-gen.awk: Work around HP-UX/IA awk bug.
8831 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
8833         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
8834         2008-04-25 commit.
8836 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8838         PR target/36073
8839         * config/i386/i386.md
8840         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
8841         Change operand 1 predicate to nonimmediate_operand.
8843 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
8845         PR debug/36060
8846         * dwarf2out.c (struct die_struct): Mark as chain_circular through
8847         die_sub field.
8848         * gengtype.c (walk_type, write_func_for_structure): Handle
8849         chain_circular.
8850         * doc/gty.texi: Document chain_circular.
8852 2008-04-28  Richard Guenther  <rguenther@suse.de>
8854         PR tree-optimization/36066
8855         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
8856         SCEV and loop.
8858 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
8860         PR target/36064
8861         * config/i386/i386.md
8862         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
8863         Use match_scratch instead of match_operand for operands 3 and 4.
8865 2008-04-27  Richard Guenther  <rguenther@suse.de>
8867         PR tree-optimization/18754
8868         PR tree-optimization/34223
8869         * tree-pass.h (pass_complete_unrolli): Declare.
8870         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
8871         loop size before and after unconditionally of UL_NO_GROWTH in effect.
8872         Rewrite loop into loop closed SSA form if it is not already.
8873         (tree_unroll_loops_completely): Re-structure to iterate over
8874         innermost loops with intermediate CFG cleanups.
8875         Unroll outermost loops only if requested or the code does not grow
8876         doing so.
8877         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
8878         loops are available.
8879         (tree_vectorize): Instead do so here.
8880         (tree_complete_unroll): Also unroll outermost loops.
8881         (tree_complete_unroll_inner): New function.
8882         (gate_tree_complete_unroll_inner): Likewise.
8883         (pass_complete_unrolli): New pass.
8884         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
8885         uses outside of the loop.
8886         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
8887         form if it is available.  
8888         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
8889         * passes.c (init_optimization_passes): Schedule complete inner
8890         loop unrolling pass before the first CCP pass after final inlining.
8892 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8894         * targhooks.h (default_emutls_var_fields,
8895         default_emutls_var_init): Declare.
8896         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
8897         * target.h (struct gcc_target): Add struct emutls member.
8898         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
8899         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
8900         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
8901         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
8902         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
8903         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
8904         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
8905         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
8906         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
8907         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
8908         emit debug information.
8909         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
8910         * varasm.c: Include targhooks.h.
8911         (emutls_object_section, emutls_tmpl_section): New.
8912         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
8913         (EMUTLS_SEPARATOR): New.
8914         (prefix_name): New.
8915         (get_emutls_object_name): New.
8916         (default_emutls_var_fields): New, broken out of ...
8917         (get_emutls_object_type): ... here.  Adjust to use target hooks.
8918         (get_emutls_init_templ_addr): Adjust to use target hooks.
8919         (emutls_decl): Adjust to use target hooks.
8920         (emutls_finish): Likewise.
8921         (default_emutls_var_init): New, broken out of ...
8922         (assemble_variable): ... here.  Adjust to use target hooks.
8923         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
8924         SECCAT_EMUTLS_TMPL.
8925         * c-common.c (handle_section_attribute): Prevent overriding
8926         sections for emulated tls with special sections.
8927         * config/i386/i386.c (x86_64_elf_select_section): Add
8928         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
8929         (x86_64_elf_unique_section): Likewise.
8930         * config/vxworks.c: Include tree.h.
8931         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
8932         (vxworks_override_options): Set TLS scheme.
8933         * doc/tm.texi (Emulated TLS): New node.
8935 2008-04-26  Simon Baldwin <simonb@google.com>
8937         PR c/35652
8938         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
8939         with propagated string constants.
8941 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
8943         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
8944         constraint for operand 2 when operand 0 is memory operand.
8945         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
8946         operand 0 is memory operand.
8947         (fix_trunc<mode>_i387_with_temp): Ditto.
8948         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
8949         operand 2 when operand 1 is memory operand.
8950         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
8951         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
8952         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
8953         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
8954         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
8955         operands 2,3 and 4 when operand 1 is memory operand.
8956         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
8957         is memory operand.
8958         (fistdi2_floor_with_temp): Ditto.
8959         (fist<mode>2_floor_with_temp): Ditto.
8960         (fistdi2_ceil_with_temp): Ditto.
8961         (fist<mode>2_ceil_with_temp): Ditto.
8962         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
8964 2008-04-26  David Daney  <ddaney@avtrex.com>
8966         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
8967         unspec_volitile.
8968         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
8969         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8970         UNSPEC_UPDATE_GOT_VERSION): Renumber.
8971         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
8972         (compare_and_swap_12): New insn.
8973         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
8974         * config/mips/mips.c (mips_force_binary): New function.
8975         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
8976         (mips_expand_compare_and_swap_12): New function.
8977         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
8979 2008-04-25  Jan Hubicka  <jh@suse.cz>
8981         PR testsuite/35843
8982         * cfgexpand.c (pass_expand): Turn into RTL pass.
8983         * passes.c (execute_one_pass): Do pass typechecking after execution.
8984         * tree-pass.h (pass_expand): Turn into RTL pass.
8986         * function.h (struct rtl_data): Move here fields
8987         accesses_prior_frames, calls_eh_return, saves_all_registers,
8988         has_nonlocal_goto, has_asm_statement, is_thunk,
8989         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
8990         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
8991         arg_pointer_save_area_init from struct function; turn into bool.
8992         (struct function): Move
8993         calls_eh_return, saves_all_registers, has_nonlocal_goto,
8994         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
8995         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
8996         tail_call_emit, arg_pointer_save_area_init
8997         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
8998         (current_function_returns_struct, current_function_returns_pcc_struct,
8999         current_function_calls_setjmp, current_function_calls_alloca,
9000         current_function_accesses_prior_frames,
9001         current_function_calls_eh_return, current_function_is_thunk,
9002         current_function_stdarg, current_function_profile,
9003         current_function_limit_stack, current_function_uses_pic_offset_table,
9004         current_function_uses_const_pool, current_function_has_nonlocal_label,
9005         current_function_saves_all_registers,
9006         current_function_has_nonlocal_goto,
9007         current_function_has_asm_statement): Remove accesor macros.
9008         * ra-conflict.c (global_conflicts): Update.
9009         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9010         (suitable_for_tail_call_opt_p): Update.
9011         * builtins.c (expand_builtin_return_addr): Update.
9012         (expand_builtin_setjmp_setup): Update.
9013         (expand_builtin_nonlocal_goto): Update.
9014         * final.c (final_start_function): Update.
9015         (profile_function): Update.
9016         (leaf_function_p): Update.
9017         (only_leaf_regs_used): Update.
9018         * df-scan.c (df_get_exit_block_use_set): Update.
9019         * dojump.c (clear_pending_stack_adjust): Update.
9020         * tree-stdarg.c (gate_optimize_stdarg): Update.
9021         * gimple-low.c (lower_function_body): Update.
9022         * global.c (compute_regsets): Update.
9023         (global_alloc): Update.
9024         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9025         * expr.c (expand_assignment): Update.
9026         * dse.c (dse_step0): Update.
9027         (dse_step1): Update.
9028         * c-decl.c (store_parm_decls): Update.
9029         * local-alloc.c (combine_regs): Update.
9030         (find_free_reg): Update.
9031         * function.c (assign_parms_augmented_arg_list): Update.
9032         (assign_parm_find_data_types): Update.
9033         (assign_parms): Update.
9034         (allocate_struct_function): Update.
9035         (expand_function_start): Update.
9036         (expand_function_end): Update.
9037         (get_arg_pointer_save_area): Update.
9038         (thread_prologue_and_epilogue_insns): Update.
9039         (rest_of_match_asm_constraints): Update.
9040         * stor-layout.c (variable_size): Update.
9041         * gcse.c (gcse_main): Update.
9042         (bypass_jumps): Update.
9043         * gimplify.c (gimplify_function_tree): Update.
9044         * calls.c (emit_call_1): Update.
9045         (expand_call): Update.
9046         * bt-load.c (compute_defs_uses_and_gen): Update.
9047         * except.c (sjlj_assign_call_site_values): Update.
9048         (sjlj_emit_function_enter): Update.
9049         (can_throw_external): Update.
9050         (set_nothrow_function_flags): Update.
9051         (expand_builtin_unwind_init): Update.
9052         (expand_eh_return): Update.
9053         (convert_to_eh_region_ranges): Update.
9054         (output_function_exception_table): Update.
9055         * emit-rtl.c (gen_tmp_stack_mem): Update.
9056         * cfgexpand.c (expand_used_vars): Update.
9057         (tree_expand_cfg): Update.
9058         * cfgcleanup.c (rest_of_handle_jump): Update.
9059         * explow.c (allocate_dynamic_stack_space): Update.
9060         * varasm.c (assemble_start_function): Update.
9061         (force_const_mem): Update.
9062         (mark_constant_pool): Update.
9063         * tree-optimize.c (tree_rest_of_compilation): Update.
9064         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9065         * tree-cfg.c (notice_special_calls): Update.
9066         (is_ctrl_altering_stmt): Update.
9067         (tree_can_make_abnormal_goto): Update.
9068         (tree_purge_dead_abnormal_call_edges): Update.
9069         * config/alpha/predicates.md: Update.
9070         * config/alpha/alpha.c (alpha_sa_mask): Update.
9071         (alpha_sa_size): Update.
9072         (alpha_does_function_need_gp): Update.
9073         (alpha_expand_prologue): Update.
9074         (alpha_start_function): Update.
9075         (alpha_output_function_end_prologue): Update.
9076         (alpha_expand_epilogue): Update.
9077         * config/frv/frv.c (frv_stack_info): Update.
9078         (frv_expand_epilogue): Update.
9079         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9080         (s390_register_info): Update.
9081         (s390_frame_info): Update.
9082         (s390_init_frame_layout): Update.
9083         (s390_can_eliminate): Update.
9084         (save_gprs): Update.
9085         * config/spu/spu.c (spu_split_immediate): Update.
9086         (need_to_save_reg): Update.
9087         (spu_expand_prologue): Update.
9088         (spu_expand_epilogue): Update.
9089         * config/sparc/sparc.md: Update.
9090         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9091         (sparc_tls_got): Update.
9092         (legitimize_pic_address): Update.
9093         (sparc_emit_call_insn): Update.
9094         (sparc_expand_prologue): Update.
9095         (output_return): Update.
9096         (print_operand): Update.
9097         (sparc_function_ok_for_sibcall): Update.
9098         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9099         * config/m32r/m32r.md: Update.
9100         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9101         (m32r_compute_frame_size): Update.
9102         (m32r_expand_prologue): Update.
9103         (m32r_expand_epilogue): Update.
9104         (m32r_legitimize_pic_address): Update.
9105         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9106         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9107         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9108         (gen_push): Update.
9109         (ix86_save_reg): Update.
9110         (ix86_compute_frame_layout): Update.
9111         (ix86_expand_prologue): Update.
9112         (ix86_expand_epilogue): Update.
9113         * config/sh/sh.c (output_stack_adjust): Update.
9114         (calc_live_regs): Update.
9115         (sh5_schedule_saves): Update.
9116         (sh_expand_prologue): Update.
9117         (sh_expand_epilogue): Update.
9118         (sh_setup_incoming_varargs): Update.
9119         (sh_allocate_initial_value): Update.
9120         (sh_get_pr_initial_val): Update.
9121         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9122         * config/sh/sh.md (label:): Update.
9123         * config/avr/avr.c (out_movhi_mr_r): Update.
9124         * config/crx/crx.h (enum): Update.
9125         * config/xtensa/xtensa.h (along): Update.
9126         * config/stormy16/stormy16.c Update.
9127         (xstormy16_compute_stack_layout): Update.
9128         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9129         (fr30_expand_prologue): Update.
9130         * config/cris/cris.c (cris_conditional_register_usage): Update.
9131         (cris_reg_saved_in_regsave_area): Update.
9132         (cris_initial_frame_pointer_offset): Update.
9133         (cris_simple_epilogue): Update.
9134         (cris_expand_prologue): Update.
9135         (cris_expand_epilogue): Update.
9136         (cris_expand_pic_call_address): Update.
9137         (cris_asm_output_symbol_ref): Update.
9138         (cris_asm_output_label_ref): Update.
9139         * config/cris/cris.md Update.
9140         * config/iq2000/iq2000.c (compute_frame_size): Update.
9141         (iq2000_expand_epilogue): Update.
9142         * config/mt/mt.h (save_direction): Update.
9143         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9144         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9145         (ia64_secondary_reload_class): Update.
9146         * config/m68k/m68k.c (m68k_save_reg): Update.
9147         (m68k_expand_prologue): Update.
9148         (m68k_expand_epilogue): Update.
9149         (legitimize_pic_address): Update.
9150         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9151         (first_reg_to_save): Update.
9152         (first_altivec_reg_to_save): Update.
9153         (compute_vrsave_mask): Update.
9154         (compute_save_world_info): Update.
9155         (rs6000_stack_info): Update.
9156         (spe_func_has_64bit_regs_p): Update.
9157         (rs6000_ra_ever_killed): Update.
9158         (rs6000_emit_eh_reg_restore): Update.
9159         (rs6000_emit_allocate_stack): Update.
9160         (rs6000_emit_prologue): Update.
9161         (rs6000_emit_epilogue): Update.
9162         (rs6000_output_function_epilogue): Update.
9163         (output_profile_hook): Update.
9164         (rs6000_elf_declare_function_name): Update.
9165         * config/rs6000/rs6000.h (rs6000_args): Update.
9166         * config/rs6000/rs6000.md: Update.
9167         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9168         * config/arc/arc.c (arc_output_function_epilogue): Update.
9169         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9170         * config/darwin.c (machopic_function_base_name): Update.
9171         * config/score/score3.c (score3_compute_frame_size): Update.
9172         (rpush): Update.
9173         (rpop): Update.
9174         (score3_epilogue): Update.
9175         * config/score/score7.c (score7_compute_frame_size): Update.
9176         (score7_prologue): Update.
9177         (score7_epilogue): Update.
9178         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9179         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9180         * config/arm/arm.c (use_return_insn): Update.
9181         (require_pic_register): Update.
9182         (arm_load_pic_register): Update.
9183         (arm_compute_save_reg0_reg12_mask): Update.
9184         (arm_compute_save_reg_mask): Update.
9185         (thumb1_compute_save_reg_mask): Update.
9186         (output_return_instruction): Update.
9187         (arm_output_function_prologue): Update.
9188         (arm_output_epilogue): Update.
9189         (arm_get_frame_offsets): Update.
9190         (arm_expand_prologue): Update.
9191         (thumb_pushpop): Update.
9192         (thumb_exit): Update.
9193         (thumb1_expand_prologue): Update.
9194         (thumb1_expand_epilogue): Update.
9195         (arm_unwind_emit): Update.
9196         (arm_output_fn_unwind): Update.
9197         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9198         * config/arm/arm.md: Update.
9199         * config/pa/pa.md: Update.
9200         * config/pa/pa.c (legitimize_pic_address): Update.
9201         (compute_frame_size): Update.
9202         (hppa_expand_prologue): Update.
9203         (hppa_expand_epilogue): Update.
9204         (borx_reg_operand): Update.
9205         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9206         (HARD_REGNO_RENAME_OK): Update.
9207         * config/mips/mips.c (mips_global_pointer): Update.
9208         (mips_save_reg_p): Update.
9209         (mips_compute_frame_info): Update.
9210         (mips_frame_pointer_required): Update.
9211         (mips_expand_prologue): Update.
9212         (mips_expand_epilogue): Update.
9213         (mips_can_use_return_insn): Update.
9214         (mips_reorg_process_insns): Update.
9215         * config/v850/v850.c (compute_register_save_size): Update.
9216         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9217         * config/mmix/mmix.c (along): Update.
9218         (mmix_expand_epilogue): Update.
9219         * config/bfin/bfin.c (legitimize_pic_address): Update.
9220         (must_save_p): Update.
9221         (stack_frame_needed_p): Update.
9222         (add_to_reg): Update.
9223         (bfin_expand_prologue): Update.
9224         * stmt.c (expand_asm_operands): Update.
9225         * reload1.c (reload): Update.
9226         (init_elim_table): Update.
9228 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9229         
9230         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9231         
9232 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9234         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9235         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9236         (mov<mode>): Removed.
9237         (*movv4sf_internal): Likewise.
9238         (*movv2df_internal): Likewise.
9240 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9242         * config.gcc (crx-*-elf): Remove deprecation.
9244 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9246         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9247         __gcc_deregister_frame with atexit.
9248         (deregister_frame_dtor): Remove.
9250 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9251             Nathan Sidwell  <nathan@codesourcery.com>
9253         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9254         (misel): Likewise.
9255         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9256         (rs6000_isel): Likewise.
9257         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9258         (rs6000_isel): New variable.
9259         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9261 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9263         PR c++/35758
9264         * c-common.c (handle_vector_size_attribute): Call
9265         lang_hooks.types.reconstruct_complex_type instead of
9266         reconstruct_complex_type.
9267         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9268         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9269         * langhooks.h (struct lang_hooks_for_types): Add
9270         reconstruct_complex_type hook.
9271         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9272         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9274 2008-04-24  Richard Guenther  <rguenther@suse.de>
9276         * c-common.h (check_builtin_function_arguments): Declare.
9277         * c-common.c (validate_nargs): New function.
9278         (check_builtin_function_arguments): Likewise.
9279         * c-typeck.c (build_function_call): Call
9280         check_builtin_function_arguments.
9281         * builtins.c (fold_builtin_classify): Remove error reporting code.
9282         (fold_builtin_unordered_cmp): Likewise.
9283         (fold_builtin_1): Likewise.
9284         (fold_builtin_n): Likewise.
9286 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9288         PR tree-optimization/36008
9289         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9290         the original op1, rather than delta by step.
9292 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9293             Sebastian Pop  <sebastian.pop@amd.com>
9295         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9296         eliminate_local_variables_stmt, eliminate_local_variables,
9297         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9298         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9299         of code delimited by two edges in the CFG.
9300         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9301         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9302         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
9303         the case of parallelisation of reductions.
9304         (expr_invariant_in_region_p): New.
9306         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9307         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9309 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9310             Richard Guenther  <rguenther@suse.de>
9312         PR tree-optimization/36034
9313         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9314         incapable of dealing with loads with gaps.
9316 2008-04-24  Rafael Espindola  <espindola@google.com>
9318         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9319         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9320         vrp_evaluate_conditional.
9321         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9322         (vrp_evaluate_conditional): Split the cond argument.
9323         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9324         (simplify_stmt_for_jump_threading): Update call to
9325         vrp_evaluate_conditional.
9327 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9329         PR tree-optimization/35982
9330         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9331         interleaved data-refs are of the same type.
9333 2008-04-24  Danny Smith  <dannysmith@users.net>
9335         * c-format.c (check_format_info_main): Use strncmp rather than a
9336         magic prefix to handle multichar length specs.
9337         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9338         Don't prefix "I64" and "I32" with '\0'.
9340 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9342         PR target/36015
9343         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9344         in registers for -m32 only if stdarg_p (fntype).
9346 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9348         PR rtl-optimization/36006
9349         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9350         temp to op0 in order to avoid invalid rtx sharing.
9352 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9354         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9355         check TREE_INVARIANT.
9356         * tree-gimple.c (is_gimple_address): New.
9357         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9358         * tree-gimple.h (is_gimple_address): New.
9359         * tree.h (decl_address_invariant_p): New.
9360         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9361         (build_string): Likewise.
9362         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9363         (tree_invariant_p_1): Likewise.
9364         (save_expr): Use it.
9365         (tree_invariant_p): New.
9366         (skip_simple_arithmetic): Use it.
9367         (stabilize_reference_1): Use it.
9368         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9369         simplify.
9370         (build1_stat): Drop code to compute TREE_INVARIANT.
9371         (build2_stat): Drop code to compute TREE_INVARIANT.
9372         (build3_stat): Drop code to compute TREE_INVARIANT.
9373         (build4_stat): Drop code to compute TREE_INVARIANT.
9374         (build5_stat): Drop code to compute TREE_INVARIANT.
9375         (build7_stat): Drop code to compute TREE_INVARIANT.
9376         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9377         * tree.h (struct tree_base): Remove invariant_flag.
9378         (TREE_INVARIANT): Remove.
9379         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9380         (fold_builtin_expect): Check TREE_CONSTANT.
9381         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9382         * c-tree.h (c_expr_to_decl): Drop third parameter.
9383         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9384         (build_c_cast): Don't set TREE_INVARIANT.
9385         (pop_init_level): Don't set TREE_INVARIANT.
9386         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9387         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9388         TREE_CONSTANT.
9389         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9390         (gimplify_addr_expr): Adjust comment.
9391         * tree-mudflap.c (mf_build_string):
9392         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9393         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9394         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9395         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9396         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9397         * langhooks.h (struct lang_hooks): Drop third parameter from
9398         expr_to_decl.
9400 2008-04-23  Richard Guenther  <rguenther@suse.de>
9402         PR tree-optimization/27799
9403         PR tree-optimization/32921
9404         PR tree-optimization/32624
9405         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9406         SMTs aliases and the tag itself into the solution.
9407         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9408         merge the points-to solution back into the SMT aliases.
9409         (may_alias_p): Use alias_set_subset_of instead of
9410         aliases_conflict_p.  A pointer which points to
9411         memory with alias set zero may access any variable.
9413 2008-04-23  Richard Guenther  <rguenther@suse.de>
9415         * alias.c (alias_set_subset_of): Correctly handle asking
9416         if zero is a subset of an alias set with zero child.
9417         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9418         (compute_flow_insensitive_aliasing): Correctly walk all
9419         pointers.  Do not unnecessarily union sets.
9421 2008-04-23  Richard Guenther  <rguenther@suse.de>
9423         PR middle-end/36021
9424         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9426 2008-04-22  Tomas Bily  <tbily@suse.cz>
9428         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9429         unreachable case.
9430         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9431         NON_LVALUE_EXPR.
9432         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9433         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9434         * tree-inline.c (estimate_num_insns_1): Likewise.
9435         * varasm.c (const_hash_1, compare_constant, copy_constant)
9436         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9437         * emit-rtl.c (component_ref_for_mem_expr)
9438         (set_mem_attributes_minus_bitpos): Likewise.
9439         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9440         (is_aligning_offset): Likewise.
9441         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9442         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9443         * dojump.c (do_jump): Likewise.
9444         * builtins.c (get_pointer_alignment, get_memory_rtx)
9445         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9446         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9448 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9450         PR rtl-optimization/36017
9451         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9452         expanding the library call.
9454 2008-04-22  Ian Lance Taylor  <iant@google.com>
9456         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9457         than size_in_bytes.
9459 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9461         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9462         of LR/CTR moves for Power6.
9464 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9466         PR middle-end/36003
9467         * passes.c (init_optimization_passes): Remove
9468         pass_fast_rtl_byte_dce.
9469         
9470 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9472         PR target/29096
9473         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9474         builtin functions to generate faster code.
9475         (_mm_cvtpu16_ps): Ditto.
9476         (_mm_cvtpi32x2_ps): Ditto.
9478 2008-04-22  Nick Clifton  <nickc@redhat.com>
9480         * common.opt (ftree-loop-distribution): Add Optimization
9481         attribute.
9483         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9484         (frv_expand_builtin_va_start): Likewise.
9486         * config/arm/arm.c (thumb_find_work_register): Fix location of
9487         argument register count.
9489 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9491         Support scheduling for ColdFire V1 and V3 microarchitecture.
9492         Improve scheduling of multiplication instructions.
9494         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9495         (mac): New instruction attribute.
9496         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9497         (m68k_sched_mac): New variable.
9498         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9499         Handle cfv1 and cfv3.
9500         (max_insn_size): New static variable.
9501         (struct _sched_ib): New type.
9502         (sched_ib): New static variable.
9503         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9504         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9505         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9506         Update.
9507         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9508         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9509         new variables.  Update.
9510         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9511         Add modeling of cfv3 instruction buffer.  Update.
9512         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9513         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9514         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9515         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9516         a particular reservation applies to.
9517         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9518         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9519         to mul_l and mul_w.
9520         (cf_ib_*): Simplify description of instruction buffer.
9521         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9522         (cf_mem): Split into cf_mem1 and cf_mem2.
9523         (cf_v2_move_??): Rename to cfv12_alu_??.
9524         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9525         (cf_v2_mul_??): Remove reservations.
9526         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9527         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9528         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9529         appropriate place.
9530         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9531         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9532         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9533         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9534         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9535         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9536         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9537         expansions of the above reservations for instructions of sizes
9538         1, 2 and 3 words.
9540 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9542         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9544 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9546         * coverage.c: Include tree-pass.h.
9547         (coverage_counter_alloc): Print da_file_name to the dump file.
9549 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9551         * sbitmap.c (sbitmap_range_empty_p): New function.
9552         * sbitmap.h (sbitmap_range_empty_p): New function.
9553         * bitmap.h: Now includes obstack.h.
9555 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9556             Kenneth Zadeck  <zadeck@naturalbridge.com>
9558         * dbgcnt.def (ra_byte_scan): Added.
9559         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9560         when the last hit happens for a counter.  
9561         * timevar.def (TV_DF_BYTE_LR): New variable.
9562         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9563         * passes.c (pass_fast_rtl_byte_dce): New pass.
9564         * fwprop.c (update_df): Added mode to call df_ref_create.
9565         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9566         DF_REF_EXTRACT_OFFSET.
9567         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
9568         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9569         (df_mm): New enum.
9570         (df_ref_extract): Added mode field.
9571         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9572         DF_REF_EXTRACT_OFFSET.
9573         (DF_REF_EXTRACT_MODE): New macro.
9574         (df_byte_lr_bb_info): New structure.
9575         (df_print_byte_regset, df_compute_accessed_bytes, 
9576         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9577         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9578         df_byte_lr_simulate_uses,
9579         df_byte_lr_simulate_artificial_refs_at_top,
9580         df_byte_lr_simulate_artificial_refs_at_end,
9581         df_compute_accessed_bytes): New function.
9582         (df_ref_create): Add parameter.
9583         (df_byte_lr_get_bb_info): New inline function.
9584         * df-scan.c (df_ref_record, df_uses_record,
9585         df_ref_create_structure): Added mode parameter.
9586         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
9587         df_defs_record, df_uses_record, df_get_conditional_uses,
9588         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
9589         df_entry_block_defs_collect, df_exit_block_uses_collect):
9590         Added mode parameter to calls to df_ref_record, df_uses_record,
9591         df_ref_create_structure.
9592         (df_ref_equal_p, df_ref_compare): Added test for modes.
9593         (df_ref_create_structure): Added code to set mode.  Renamed
9594         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9595         DF_REF_EXTRACT_OFFSET.
9596         * df-core.c (df_print_byte_regset): New function.
9597         * df-byte-scan.c: New file.
9598         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9599         calls to BITMAP_FREE.  
9600         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9601         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9602         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
9603         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
9604         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9605         df_byte_lr_local_compute, df_byte_lr_init,
9606         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
9607         df_byte_lr_transfer_function, df_byte_lr_free, 
9608         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9609         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
9610         df_byte_lr_simulate_uses,
9611         df_byte_lr_simulate_artificial_refs_at_top,
9612         df_byte_lr_simulate_artificial_refs_at_end): New function.
9613         * dce.c (byte_dce_process_block): New function.
9614         (dce_process_block): au is now passed in rather than computed
9615         locally.  Changed loops that look at artificial defs to not look
9616         for conditional or partial ones, because there never are any.  
9617         (fast_dce): Now is able to drive byte_dce_process_block or 
9618         dce_process_block depending on the kind of dce being done.
9619         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9620         (rest_of_handle_fast_byte_dce): New function.
9621         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9622         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9624 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9626         PR fortran/35019
9627         * gcc.h: Added fortran options that take arguments to
9628         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9629         macros.
9631 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9633         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9634         scalarization if on the LHS and not a full access.
9636 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9638         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9640 2008-04-18  Rafael Espindola  <espindola@google.com>
9642         * tree-vrp.c (find_case_label_index): Fix the binary search.
9643         (find_case_label_range): New.
9644         (vrp_visit_switch_stmt): Use find_case_label_range.
9645         (simplify_switch_using_ranges): Use find_case_label_range.
9647 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9649         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
9650         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
9652 2008-04-18  Tom Tromey  <tromey@redhat.com>
9654         PR libcpp/15500:
9655         * doc/cpp.texi (Implementation-defined behavior): Mention
9656         -finput-charset.
9658 2008-04-18  Ian Lance Taylor  <iant@google.com>
9660         * fold-const.c (pointer_may_wrap_p): New static function.
9661         (fold_comparison): Add another test for pointer overflow.  Use
9662         pointer_may_wrap_p to disable some false positives.
9664 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
9665           
9666         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
9667         (fname_as_string): Match updated cpp_interpret_string prototype.
9668         (fix_string_type): Support char16_t* and char32_t*.
9669         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
9670         derivative) nodes.  Register as builtin if C++0x.
9671         (c_parse_error): Support CPP_CHAR{16,32}.
9672         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
9673         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
9674         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
9675         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
9676         CTI_CHAR32_ARRAY_TYPE>: New elements.
9677         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
9678         char32_type_node, signed_char32_type_node, char16_array_type_node,
9679         char32_array_type_node): New defines.
9680         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
9681         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
9682         (lex_string): Support CPP_STRING{16,32}, match updated
9683         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
9684         (lex_charconst): Support CPP_CHAR{16,32}.
9685         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
9686         and CPP_STRING{16,32}.
9688 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
9690         PR bootstrap/35457
9691         * aclocal.m4: Regenerate.
9692         * configure: Regenerate.
9694 2008-04-18  Jan Hubicka  <jh@suse.cz>
9696         * except.c (dw2_size_of_call_site_table,
9697         sjlj_size_of_call_site_table): Use vector API for call_site_record.
9699         * cgraphbuild.c (build_cgraph_edges): Update.
9700         * tree-pass.h: Update comment.
9701         * final.c (leaf_function_p): Update.
9702         (leaf_renumber_regs): Update.
9703         (rest_of_clean_state): Update.
9704         * omp-low.c (expand_omp_parallel): Update.
9705         * ipa-reference.c (analyze_function): Update.
9706         * reorg.c (find_end_label): Update.
9707         (optimize_skip): Update.
9708         (fill_simple_delay_slots): Update.
9709         (fill_simple_delay_slots): Update.
9710         (make_return_insns): Update.
9711         (dbr_schedule): Update.
9712         * gimple-low.c (record_vars_into): Update.
9713         * cfgbuild.c (make_edges): Update.
9714         * function.c (assign_stack_local): Update.
9715         (assign_parm_adjust_stack_rtl): Update.
9716         (locate_and_pad_parm): Update.
9717         (allocate_struct_function): Do not initialize stack_alignment_needed
9718         and preferred_stack_boundary here.
9719         (stack_protect_prologue): Update.
9720         (stack_protect_epilogue): Update.
9721         (expand_function_start): Initialize stack_alignment_needed,
9722         preferred_stack_boundary and max_jumptable_ents.
9723         (expand_function_end): Update.
9724         (free_after_compilation): Do not NULLify epilogue_delay_list.
9725         * function.h (struct rtl_data): Add stack_protect_guard,
9726         stack_alignment_needed,
9727         preferred_stack_boundary, epilogue_delay_list.
9728         (struct function): Remove value_histograms, stack_alignment_needed,
9729         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
9730         last_label_uid,
9731         unexpanded_var_list, stack_protect_guard.
9732         (current_function_epilogue_delay_list): Remove.
9733         * ipa-type-escape.c (analyze_function): Update.
9734         * gimplify.c (pop_gimplify_context): Update comment.
9735         * calls.c (expand_call): Update.
9736         (emit_library_call_value_1): Update.
9737         * except.c (set_nothrow_function_flags): Update.
9738         * cfgexpand.c (get_decl_align_unit): Update.
9739         (create_stack_guard): Update.
9740         (estimated_stack_frame_size): Update.
9741         (expand_used_vars): Update.
9742         (tree_expand_cfg): Free histogram earliers, init expansion variables.
9743         * explow.c (allocate_dynamic_stack_space): Update.
9744         * tree-ssa-live.c (remove_unused_locals): Update.
9745         * varasm.c (mark_constant_pool): Update.
9746         * tree-inline.c (remap_decls): Update.
9747         (initialize_cfun): Update.
9748         (declare_return_variable): Update.
9749         (inline_forbidden_p): Update.
9750         (expand_call_inline): Update.
9751         (declare_inline_vars): Update.
9752         (tree_function_versioning): Update.
9753         * tree-flow.h (value_histograms): New.
9754         (VALUE_HISTOGRAMS): New macro.
9755         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
9756         last_label_uid.
9757         * tree-cfg.c (set_bb_for_stmt): Update.
9758         (replace_by_duplicate_decl): Update.
9759         (move_block_to_fn): Update.
9760         (new_label_mapper): Update.
9761         (dump_function_to_file): Update.
9762         * ipa-struct-reorg.c (build_data_structure): Update.
9763         * cfgrtl.c (print_rtl_with_bb): Update.
9764         * reload1.c (reload): Update.
9765         (reload): Update.
9766         * config/i386/i386.c (setup_incoming_varargs_64,
9767         ix86_compute_frame_layout): Update.
9768         * config/arc/arc.c (arc_output_function_epilogue): Update.
9770 2008-04-18  Marius Strobl <marius@FreeBSD.org>
9772         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
9773         for FreeBSD as well.
9774         * gthr-posix95.h: Likewise.
9776 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
9778         PR rtl-optimization/35838
9779         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
9780         out the byte offset of the first subreg.
9782 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
9784         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
9785         to split_ti instead of three separate calls with single member arrays.
9786         (subti3 splitter): Ditto.
9787         (adddi3 splitter): Ditto with split_di.
9788         (subdi3 splitter): Ditto.
9789         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
9790         two separate calls with single member arrays.  Swap match_dup
9791         operands 1 and 2 to better fit into the array.
9792         (negdi2 splitter): Ditto with split_di.
9793         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
9794         two separate calls with single member arrays.  Swap match_dup operands
9795         6 and 7 to better fit into the array.
9797 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9799         * config/i386/i386.c (sse_builtin_type): New.
9800         (bdesc_sse_args): Likewise.
9801         (bdesc_sse_3arg): Removed.
9802         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9803         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
9804         IX86_BUILTIN_ROUNDPS.
9805         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
9806         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
9807         IX86_BUILTIN_ROUNDPS.
9808         (ix86_expand_sse_4_operands_builtin): Removed.
9809         (ix86_expand_sse_operands_builtin): New.
9810         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
9811         and CODE_FOR_sse4_1_roundps.
9812         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
9813         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
9815 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
9817         PR target/35907
9818         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
9819         regs before frame pop when needed.  If use_backchain_to_restore_sp
9820         then load backchain into a temp reg to restore vr and vrsave.  Add
9821         code to restore vr after frame pop if possible.
9823 2008-04-17  Richard Guenther  <rguenther@suse.de>
9825         * tree-vn.c (expressions_equal_p): Do not check type
9826         equality or compatibility before calling operand_equal_p.
9827         * fold-const.c (operand_equal_p): Check equivalence of
9828         integer constants before bailing out due to signedness or
9829         precision differences.
9830         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
9831         spurious differences in type qualification.  Ignore types
9832         for COMPONENT_REFs at all.
9834 2008-04-17  Christian Bruel  <christian.bruel@st.com>
9836         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
9837         msw_skip comparison.
9838         
9839 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
9841         PR c/35739
9842         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
9843         reg type.
9845         PR tree-optimization/35899
9846         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
9847         rather than TREE_OPERAND.
9849 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
9851         PR target/35944
9852         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
9853         temporary registers.  Change operand predicate to general_operand.
9854         (remainderxf3): Ditto.
9856 2008-04-16  Richard Guenther  <rguenther@suse.de>
9858         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
9859         * tree-affine.c (aff_combination_expand): Look through some
9860         conversions.
9862 2008-04-15  Doug Kwan  <dougkwan@google.com>
9864         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
9865         for hex printing.
9866         * tree-pretty-print.c (dump_generic_node): Ditto.
9867         * final.c (output_addr_const): Ditto.
9868         * dwarf2out.c (output_cfi): Ditto.
9869         * c-pretty-print.c (pp_c_integer_constant): Ditto.
9870         * print-rtl.c (print_rtx): Ditto.
9871         * print-tree.c (print_node_brief, print_node): Ditto.
9872         * c-common.c (match_case_to_enum_1): Ditto.
9873         * sched-vis.c (print_value): Ditto.
9874         * config/i386/i386.c (print_operand): Cast to long unsigned int
9875         for hex printing.
9877 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
9878         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
9879         MS Windows VirtualProtect function.
9881 2008-04-15  Jan Hubicka  <jh@suse.cz>
9883         * gengtype.c (write_root): Param_is argument is OK.
9884         * expr.c (expand_expr_real_1): Update call of get_exception_*.
9885         * function.h: Include varray.h
9886         (rtl_eh): New stucture based on except.c one.
9887         (call_site_record): New forward declaration and vector type.
9888         * calls.c (emit_call_1): Do not call
9889         note_current_region_may_contain_throw.
9890         * except.c (eh_status): Remove cur_region, try_region since they are
9891         unused.
9892         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
9893         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
9894         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
9895         Remove call_site_data_used, call_site_data_size.
9896         Turn call_site_record into vector in function.h.
9897         (note_current_region_may_contain_throw): Remove.
9898         (get_exception_pointer, get_exception_filter): Do not take struct
9899         function argument; update.
9900         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
9901         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
9902         build_post_landing_pads, dw2_build_landing_pads,
9903         sjlj_assign_call_site_values, sjlj_mark_call_sites,
9904         sjlj_emit_function_enter, sjlj_emit_function_enter, 
9905         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
9906         sjlj_build_landing_pads, finish_eh_generation,
9907         remove_exception_handler_label, remove_eh_handler,
9908         maybe_remove_eh_handler, add_reachable_handler,
9909         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
9910         add_action_record, collect_one_action_chain, add_call_site,
9911         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
9912         sjlj_output_call_site_table, output_function_exception_table,
9913         * except.h (note_current_region_may_contain_throw): Remove
9914         (get_exception_pointer, get_exception_filter): Do not take struct
9915         function argument.
9916         * Makefile.in (GTFILES): Put varargs before struct function.
9918 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9920         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
9921         punt for STRING_CST.
9922         (get_constraint_for): Deal with STRING_CST here instead.
9924 2008-04-15  Richard Guenther  <rguenther@suse.de>
9926         * tree-ssa-propagate.c (substitute_and_fold): Substitute
9927         statements in a basic-block with a backward walk.  Do not
9928         substitute into dead statements but instead remove those.
9930 2008-04-15  Richard Guenther  <rguenther@suse.de>
9932         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
9933         to zero, thus disable creation of SFTs.
9935 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9937         * tree-predcom.c (suitable_reference_p): Return false if the
9938         reference can throw.
9940 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
9942         PR c/35751
9943         * c-decl.c (finish_decl): If extern or static var has variable
9944         size, set TREE_TYPE (decl) to error_mark_node.
9946 2008-04-15  Rafael Espindola  <espindola@google.com>
9948         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
9949         variable arg1.
9951 2008-04-15  Richard Guenther  <rguenther@suse.de>
9953         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9954         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
9955         (visit_reference_op_load): Do walk vuse-vdef chains on
9956         vn_reference_lookup.
9957         (visit_reference_op_store): But do not here.
9958         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
9959         vn_reference_lookup.
9960         (vn_lookup_with_vuses): But do so here.
9962 2008-04-14  Ian Lance Taylor  <iant@google.com>
9964         * fold-const.c (fold_overflow_warning): Remove assertion.
9966 2008-04-15  Ben Elliston  <bje@au.ibm.com>
9968         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
9969         temp1 local variables.
9971 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
9973         PR target/35661
9974         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
9975         ".text.unlikely" section as executable.
9977 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
9979         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9980         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
9981         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
9982         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
9983         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
9984         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
9985         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
9987 2008-04-14  Ian Lance Taylor  <iant@google.com>
9989         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
9990         * fold-const.c (fold_comparison): If appropriate, test
9991         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
9992         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
9993         reassociating a pointer type.
9994         * doc/invoke.texi (Optimize Options): Document that
9995         -fstrict-overflow applies to pointer wraparound.
9997 2008-04-13  Jan Hubicka  <jh@suse.cz>
9999         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10001 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10003         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10004         we are going to "save the world".
10006 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10008         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10009         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10010         operand 0 constraint, not "=".
10012 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10014         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10016 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10018         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10019         of size of positions_needed * CHAR_BIT.
10021 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10023         PR middle-end/35897
10024         * dse.c (store_info): Change positions_needed to unsigned
10025         HOST_WIDE_INT.
10026         (lowpart_bitmask): New.
10027         (record_store): Cast to unsigned HOST_WIDE_INT for
10028         positions_needed.  Assert width <= size of positions_needed *
10029         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10030         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10031         lowpart_bitmask to set mask.
10033 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10035         * config/bfin/constraints.md: New file.
10036         * config/bfin/bfin.md: Include it.
10037         (adddi3): Use satisfies_constraint functions instead of the old macros.
10038         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10039         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10040         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10041         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10042         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10043         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10044         EXTRA_CONSTRAINT): Delete.
10045         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10046         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10047         of the old macros.
10048         * config/bfin/bfin.c: Include "tm-constrs.h".
10049         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10050         Use satisfies_constraint functions instead of the old macros.
10051         * doc/md.texi (Blackfin Constraints): Update file name reference.
10053 2008-04-11  Richard Guenther  <rguenther@suse.de>
10055         PR tree-optimization/35869
10056         * tree-vrp.c (execute_vrp): Move switch statement update after
10057         jump threading.  Schedule another cfg cleanup run.
10059 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10061         PR c/35744
10062         * attribs.c (decl_attributes): Return early on errorneous node.
10064 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10066         * tree.h (struct tree_base): Added a new flag default_def_flag.
10067         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10069 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10071         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10073 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10075         PR target/35768
10076         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10077         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10078         (icacheflush): Likewise.
10079         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10080         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10082 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10084         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10086 2008-04-10  Rafael Espindola  <espindola@google.com>
10088         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10089         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10090         (extract_range_from_expr): The same.
10092 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10094         * config/mips/mips.md (GPR2): New mode iterator.
10095         (seq): Add comment.
10096         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10097         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10098         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10099         Rewrite these to take two modes, the mode of comparison and the
10100         mode of the destination.
10101         * config/mips/mips.c (mips_expand_scc): Instead of having
10102         paradoxical subreg as destination, expand "narrowing" scc if mode
10103         of comparison is SI and target is requested in DI mode.
10104         (mips_emit_int_order_test): Update comment.  Make mode of
10105         comparison match CMP0 rather than TARGET.  When creating inverse
10106         target use mode of TARGET.
10108 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10110         * gcov-dump.c (tag_summary): Only print summaries for the first
10111         GCOV_COUNTERS_SUMMABLE counters.
10113 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10115         * config/i386/i386.md (absneg): New code iterator.
10116         (absnegprefix): New code attribute.
10117         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10118         patterns using absneg code iterator.
10119         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10120         using absneg code iterator.
10121         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10122         *neg<mode>2 patterns using absneg code iterator.
10123         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10124         *negextendsfdf2 patterns using absneg code iterator.
10125         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10126         *negextendsfxf2 patterns using absneg code iterator.
10127         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10128         *negextendsfdf2 patterns using absneg code iterator.
10129         * config/i386/sse.md (<code><mode>2): Macroize expander from
10130         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
10132 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10134         * config/s390/s390.h: Remove the remains of the recent search
10135         & replace action of current_function_outgoing_args_size.
10137 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10139         PR tree-optimization/35821
10140         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10141         NEW_STMT_LIST is not NULL.
10143 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10145         PR libstdc++/35597
10146         * toplev.c (process_options): Remove -ffunction-sections debugging
10147         warning.
10149 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10151         PR middle-end/PR28690
10152         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10153         than gen_rtx_fmt_ee to perform more canonicalizations.
10155 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10157         PR driver/35665
10158         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10160 2008-04-09  Richard Guenther  <rguenther@suse.de>
10162         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10163         (dump_function_to_file): Dump function arguments with types.
10165 2008-04-08  Richard Guenther  <rguenther@suse.de>
10167         * fold-const.c (fold_widened_comparison): Do not allow
10168         sign-changes that change the result.
10170 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10172         PR target/35839
10173         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10174         kinds of indirect references.
10176 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10178         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10179         GNU Fortran language string.
10181 2008-04-08  Rafael Espindola  <espindola@google.com>
10183         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10184         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10185         * tree.h (tree_call_nonnegative_warnv_p): New.
10187 2008-04-08  Jan Hubicka  <jh@suse.cz>
10189         * function.c (free_after_compilation): Clear out regno_reg_rtx
10190         pointer.
10192 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10194         Revert
10195         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10197         PR middle-end/PR28690
10198         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10199         same precedence as REG_POINTER and MEM_POINTER operands.
10201 2008-04-08  Richard Guenther  <rguenther@suse.de>
10203         PR middle-end/35834
10204         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10205         for adding index to base.
10207 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10209         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10210         (MINGW_ENABLE_EXECUTE_STACK): New.
10211         (IN_LIBGCC2): For libgcc include windows.h file for
10212         function declarations.
10214 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10216         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10217         and tem2 if tem1 is not a REG or MULT.
10219 2008-04-08  Jan Hubicka  <jh@suse.cz>
10221         * function.h (incomming_args): Break out of struct function.
10222         (function_subsections): Break out of struct function.
10223         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10224         return_rtx and hard_reg_initial_vals from struct function.
10225         Kill inl_max_label_num.
10226         (current_function_pops_args, current_function_args_info,
10227         current_function_args_size, current_function_args_size,
10228         current_function_pretend_args_size,
10229         current_function_outgoing_args_size,
10230         current_function_internal_arg_pointer, current_function_return_rtx):
10231         Kill compatibility accestor macros.
10232         * builtins.c (expand_builtin_apply_args_1): Update.
10233         (expand_builtin_next_arg): Update.
10234         * df-scan.c (df_get_call_refs): Update.
10235         * dbxout.c (dbxout_function_end): Update.
10236         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10237         (output_line_info): Update.
10238         (secname_for_decl): Update.
10239         (dwarf2out_var_location): Update.
10240         * function.c (free_after_compilation): Update.
10241         (assign_parm_find_stack_rtl): Update.
10242         (assign_parms): Update.
10243         (expand_dummy_function_end): Update.
10244         (expand_function_end): Update.
10245         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10246         (expand_call): Update.
10247         (emit_library_call_value_1): Update.
10248         (store_one_arg): Update.
10249         * varasm.c (initialize_cold_section_name): Update.
10250         (unlikely_text_section): Update.
10251         (unlikely_text_section_p): Update.
10252         (assemble_start_function): Update.
10253         (assemble_end_function): Update.
10254         (default_section_type_flags): Update.
10255         (switch_to_section): Update.
10256         * integrate.c (set_decl_abstract_flags): Update.
10257         (get_hard_reg_initial_val): Update.
10258         (has_hard_reg_initial_val): Update.
10259         (allocate_initial_values): Update.
10260         * resource.c (init_resource_info): Update.
10261         * config/alpha/alpha.c (NUM_ARGS): Update.
10262         (direct_return): Update.
10263         (alpha_va_start): Update.
10264         (alpha_sa_size): Update.
10265         (alpha_initial_elimination_offset): Update.
10266         (alpha_expand_prologue): Update.
10267         (alpha_start_function): Update.
10268         (alpha_expand_epilogue): Update.
10269         (unicosmk_initial_elimination_offset):
10270         * config/alpha/alpha.md (call expander): Update.
10271         * config/s390/s390.c (s390_register_info): Update.
10272         (s390_register_info): Update.
10273         (s390_frame_info): Update.
10274         (s390_initial_elimination_offset): Update.
10275         (s390_build_builtin_va_list): Update.
10276         (s390_va_start): Update.
10277         * config/spu/spu.c (direct_return): Update.
10278         (spu_expand_prologue): Update.
10279         (spu_initial_elimination_offset): Update.
10280         (spu_build_builtin_va_list): Update.
10281         (spu_va_start): Update.
10282         * config/sparc/sparc.c (sparc_init_modes): Update.
10283         (sparc_compute_frame_size): Update.
10284         (function_value): Update.
10285         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10286         * config/i386/i386.md (return expander): Update.
10287         * config/i386/i386.c (ix86_va_start): Update.
10288         (ix86_can_use_return_insn_p): Update.
10289         (ix86_compute_frame_layout): Update.
10290         (ix86_expand_epilogue): Update.
10291         * config/sh/sh.c (output_stack_adjust): Update.
10292         (calc_live_regs): Update.
10293         (sh_expand_prologue): Update.
10294         (sh_builtin_saveregs): Update.
10295         (sh_va_start): Update.
10296         (initial_elimination_offset): Update.
10297         (sh_allocate_initial_value): Update.
10298         (sh_function_ok_for_sibcall): Update.
10299         (sh_get_pr_initial_val): Update.
10300         * config/sh/sh.md (return expander): Update.
10301         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10302         * config/crx/crx.c (crx_compute_frame): UPdate.
10303         (crx_initial_elimination_offset): UPdate.
10304         * config/xtensa/xtensa.c (compute_frame_size): Update
10305         (xtensa_builtin_saveregs): Update.
10306         (xtensa_va_start): Update.
10307         (order_regs_for_local_alloc): Update.
10308         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10309         (xstormy16_expand_builtin_va_start): Update.
10310         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10311         * config/m68hc11/m68hc11.md (return expanders): Update.
10312         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10313         (expand_epilogue): Update.
10314         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10315         (cris_simple_epilogue): Update.
10316         (cris_expand_prologue): Update.
10317         (cris_expand_epilogue): Update.
10318         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10319         (compute_frame_size): Update.
10320         * config/mt/mt.c (mt_compute_frame_size): Update.
10321         * config/mn10300/mn10300.c (expand_prologue): Update.
10322         (expand_epilogue): Update.
10323         (initial_offset): Update.
10324         (mn10300_builtin_saveregs):
10325         * config/mn10300/mn10300.md (return expander): Update.
10326         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10327         (ia64_initial_elimination_offset): Update.
10328         (ia64_initial_elimination_offset): Update.
10329         (ia64_expand_prologue): Update.
10330         * config/m68k/m68k.md (return expander): Update.
10331         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10332         (rs6000_stack_info): Update.
10333         * config/mcore/mcore.c (layout_mcore_frame): Update.
10334         (mcore_expand_prolog): Update.
10335         * config/arc/arc.c (arc_compute_frame_size): Update.
10336         * config/score/score3.c (score3_compute_frame_size): Update.
10337         * config/score/score7.c (score7_compute_frame_size): Update.
10338         * config/arm/arm.c (use_return_insn): Update.
10339         (thumb_find_work_register): Update.
10340         (arm_compute_save_reg_mask): Update.
10341         (arm_output_function_prologue): Update.
10342         (arm_output_epilogue): Update.
10343         (arm_size_return_regs): Update.
10344         (arm_get_frame_offsets): Update.
10345         (arm_expand_prologue): Update.
10346         (thumb_exit): Update.
10347         (thumb_unexpanded_epilogue): Update.
10348         (thumb1_output_function_prologue): Update.
10349         * config/pa/pa.md (return expander): Update.
10350         * config/pa/pa.c (compute_frame_size): Update.
10351         (hppa_builtin_saveregs): Update.
10352         * config/mips/mips.c (mips_va_start): Update.
10353         (mips16_build_function_stub): Update.
10354         (mips_compute_frame_info): Update.
10355         (mips_restore_gp): Update.
10356         (mips_output_function_prologue): Update.
10357         (mips_expand_prologue): Update.
10358         * config/v850/v850.c (compute_frame_size): Update.
10359         (expand_prologue): * config/mmix/mmix.c (along): update.
10360         (mmix_initial_elimination_offset): update.
10361         (mmix_reorg): update.
10362         (mmix_use_simple_return): update.
10363         (mmix_expand_prologue): update.
10364         (mmix_expand_epilogue): Update.
10365         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10366         (emit_link_insn): Update.
10368 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10370         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
10371         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
10372         instructions.
10373         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
10374         atmega103 device.
10376 2008-04-07  Jan Hubicka  <jh@suse.cz>
10378         * function.h (rtl): Rename to x_rtl.
10379         (crtl): New define.
10380         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10381         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10382         used_temp_slots avail_temp_slots, temp_slot_level,
10383         nonlocal_goto_handler_labels): Update accesstors.
10384         (rtl): New global variable.
10385         (struct function): Move some fileds to rtl_data.
10386         (get_arg_pointer_save_area): Update prototype.
10387         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10388         get_arg_pointer_save_area.
10389         * expr.c (init_expr): Update
10390         * function.c (get_frame_size): Update
10391         (assign_stack_local): Update
10392         (expand_function_end): Update.
10393         (get_art_pointer_save_area): Update
10394         * function.h 
10395         * emit-rtl.c (rtl): Declare.
10396         (regno_reg_rtx): Declare.
10397         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10398         Update.
10399         (gen_reg_rtx): Update.
10400         * varasm.c (n_deferred_constatns): Update accestor.
10401         (init_varasm_status): Do not allocate varasm_status.
10402         (force_const_mem, get_pool_size, output_constant_pool): Update.
10403         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10404         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10405         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10406         * sparc/sparc.h (INIT_EXPANDERS): Update.
10407         * ia64/ia64.h (INIT_EXPANDERS): Update.
10409 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10411         * reload.c (push_secondary_reload): Add missing break to for loop.
10413 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10415         PR middle-end/PR28690
10416         * rtlanal.c: Update copyright years.
10417         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10418         as REG_POINTER and MEM_POINTER operands.
10419         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10420         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10421         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10422         * gcse.c: Update copyright years.
10423         (pre_delete): Call gen_reg_rtx_and_attrs.
10424         (hoist_code): Likewise.
10425         (build_store_vectors): Likewise.
10426         (delete_store): Likewise.
10427         * loop-invariant.c (move_invariant_reg): Likewise.
10428         Update copyright years.
10430 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10432         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10433         control string instead of quoted.
10435 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10437         * doc/rtl.texi: Rewrite of subreg section.
10439 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10441         PR/35842
10442         * config/i386/i386.c (legitimize_pic_address): Add treating
10443         of dllimport SYM_REF's.
10444         (legitimize_dllimport_symbol): Add prototype.
10446 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10448         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10449         reference in constructor with non self-referential type.
10451 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10453         Removal of Return with Depressed Stack Pointer support
10454         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10455         (ECF_SP_DEPRESSED): Likewise.
10456         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10457         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10458         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10459         (expand_call): Do not test ECF_SP_DEPRESSED.
10460         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10461         * function.c (keep_stack_depressed): Delete.
10462         (handle_epilogue_set): Likewise.
10463         (update_epilogue_consts): Likewise.
10464         (emit_equiv_load): Likewise.
10465         (thread_prologue_and_epilogue_insns): Remove support for Return with
10466         Depressed Stack Pointer.
10467         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10469 2008-04-06  Richard Guenther  <rguenther@suse.de>
10471         PR tree-optimization/35400
10472         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10473         information from SSA_NAMEs.
10475 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10477         * config/avr/avr.h (avr_mega_p): Remove declaration.
10478         (AVR_MEGA): Remove macro.
10479         * config/avr/avr.c (avr_mega_p): Remove variable.
10480         (avr_override_options): Remove inicializion of avr_mega_p.
10481         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10482         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10483         (avr_jump_mode): (Ditto.).
10484         (avr_output_progmem_section_asm_op): (Ditto.).
10485         (avr_asm_init_sections): (Ditto.).
10486         (avr_asm_init_sections): (Ditto.).
10487         (avr_rtx_costs): (Ditto.).
10488         * config/avr/avr.md: (Ditto.).
10489         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
10490         '__AVR_MEGA__'.
10492 2008-04-06  Richard Guenther  <rguenther@suse.de>
10494         PR tree-optimization/35842
10495         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10496         is_gimple_invariant_address.
10498 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10500         * gcc.c (default_compilers): Sync Fortran extensions list with
10501         that in fortran/lang-specs.h.
10502         * doc/invoke.texi: Likewise.
10503         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10504         * dwarf2out.c (gen_compile_unit_die): Likewise.
10506 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10508         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10510 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10512         PR target/12329
10513         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10514         attribute is used for nested functions.
10516 2008-04-05  Jan Hubicka  <jh@suse.cz>
10518         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10520         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10521         letter argument.
10522         (dump_files): Update.
10523         (enable_rtl_dump_file): Do not accept letter argument.
10524         * tree-pass.h (dump_file_info): Remove letter argument.
10525         * toplev.c (decode_d_option): Update -da handling.
10526         * toplev.h (enable_rtl_dump_file): Update prototype.
10527         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10528         it out based on pass type.
10529         (register_dump_files_1): Likewise.
10530         (init_optimization_passes): Update register_one_dump_file calls.
10531         (execute_one_pass): Sanity check that IPA passes are called at IPA
10532         level and RTL passes at RTL level.
10533         (execute_pass_list): IPA pass can not be after or subpass of
10534         GIMPLE/RTL pass.
10535         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10536         disallov RTL subpasses of IPA subpasses.
10538 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10540         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10541         builtins that return exactly once and do not throw. Cache call to
10542         call_expr_flags.
10544 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10546         PR rtl-optimization/34916
10547         PR middle-end/35519
10548         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10549         between instruction pairs.
10551 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10553         * doc/invoke.texi: Document -mbitops for SH.
10554         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10555         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10556         * config/sh/sh.c (print_operand): Add %t operand code.
10557         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10558         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10559         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10560         (extendqihi2): Likewise.
10561         (movqi_i): Likewise.
10562         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10563         (extv): Use bld instruction for SH2A if possible.
10564         (extzv): Likewise.
10565         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10566         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10567         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10568         (bset.b, bclr.b): Define peepholes.
10569         * config/sh/sh.opt (mbitops): New option.
10571 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10573         PR target/35620
10574         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10575         and view convert expression.
10577 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10579         PR target/35364
10580         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10582 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10584         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10586         * config/i386/cpuid.h (bit_AES): New.
10587         (bit_PCLMUL): Likewise.
10589         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10590         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10591         SSE2 if AES or PCLMUL is enabled.
10592         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10593         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10594         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10595         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10596         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10597         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10598         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10599         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10600         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10601         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10602         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10603         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10604         __builtin_ia32_aeskeygenassist128 and
10605         __builtin_ia32_pclmulqdq128.
10606         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10607         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10608         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10610         * config/i386/i386.h (TARGET_AES): New.
10611         (TARGET_PCLMUL): Likewise.
10612         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10614         * config/i386/i386.md (UNSPEC_AESENC): New.
10615         (UNSPEC_AESENCLAST): Likewise.
10616         (UNSPEC_AESDEC): Likewise.
10617         (UNSPEC_AESDECLAST): Likewise.
10618         (UNSPEC_AESIMC): Likewise.
10619         (UNSPEC_AESKEYGENASSIST): Likewise.
10620         (UNSPEC_PCLMUL): Likewise.
10622         * config/i386/i386.opt (maes): New.
10623         (mpclmul): Likewise.
10625         * config/i386/sse.md (aesenc): New pattern.
10626         (aesenclast): Likewise.
10627         (aesdec): Likewise.
10628         (aesdeclast): Likewise.
10629         (aesimc): Likewise.
10630         (aeskeygenassist): Likewise.
10631         (pclmulqdq): Likewise.
10633         * config/i386/wmmintrin.h: New.
10635         * doc/extend.texi: Document AES and PCLMUL built-in function.
10637         * doc/invoke.texi: Document -maes and -mpclmul.
10639 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
10641         * function.c (free_after_parsing): Replace with
10642         cxx_push_function_context from C++ front-end.
10643         (allocate_struct_function): Don't call langhook.
10644         * langhooks.h (struct lang_hooks_for_functions): Delete.
10645         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
10646         member "function".
10647         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
10648         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
10649         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
10650         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
10651         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
10652         remove LANG_HOOKS_FUNCTION_INITIALIZER.
10653         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
10655         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
10656         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
10657         
10658 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10660         PR c/35440
10661         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
10662         for all types.
10664 2008-04-04  Richard Guenther  <rguenther@suse.de>
10666         PR middle-end/35823
10667         * fold-const.c (optimize_minmax_comparison): Use the correct
10668         type for the constant in the simplified comparison.
10670 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
10672         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
10673         Pass L2 size as "--param l2-cache-size" to the compiler.
10674         (decode_l2_cache): New function to decode L2 cache parameters using
10675         0x8000006 extended cpuid function.
10676         (detect_caches_amd): Determine parameters of L2 cache using
10677         decode_l2_caches function.
10678         (decode_caches_intel): Decode L2 cache parameters.
10679         (detect_caches_intel): Determine L2 cache parameters using
10680         decode_caches_intel and decode_l2_caches functions.
10682 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
10684         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
10685         secondary input reload for subword loads from the constant pool.
10687 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
10689         PR target/35713
10690         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
10691           constants of the appropriate size for runtime calculations.
10693         PR c/35712
10694         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
10695           decimal-float literal constant zero.
10697 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
10699         PR c/35738
10700         * c-parser.c (c_parser_omp_atomic): Call
10701         default_function_array_conversion on the RHS.
10703         PR middle-end/35818
10704         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
10705         call is_variable_sized if decl has incomplete type.
10707 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
10709         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
10711 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
10713         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
10714         iterators.
10715         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
10716         (sgt<u>): Merge sgt and sgtu into new expander.
10717         (sgt, sgtu): Remove expanders.
10718         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
10719         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
10720         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
10721         *sgtu_<mode>_mips16 into new pattern.
10722         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
10723         (sge<u>): Merge sge and sgeu into new expander.
10724         (sge, sgeu): Remove expanders.
10725         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
10726         new pattern.
10727         (*sge_<mode>, second *sge_<mode>): Remove patterns.
10728         (slt<u>): Merge slt and sltu into new expander.
10729         (slt, sltu): Remove expanders.
10730         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
10731         (*slt_<mode>, *sltu_<mode>): Remove patterns.
10732         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
10733         *sltu_<mode>_mips16 into new pattern.
10734         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
10735         (sle<u>): Merge sle and sleu into new expander.
10736         (sle, sleu): Remove expanders.
10737         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
10738         (*sle_<mode>, *sleu_<mode>): Remove patterns.
10739         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
10740         *sleu_<mode>_mips16 into new pattern.
10741         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
10743 2008-04-03  Jan Hubicka  <jh@suse.cz>
10745         PR tree-optimization/35795
10746         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
10747         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10748         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10749         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
10750         * score/score3.c (score3_output_mi_thunk): Likewise.
10751         * score/score7.c (score7_output_mi_thunk): Likewise.
10752         * mips/mips.c (mips_output_mi_thunk): Likewise.
10754 2008-04-03  Richard Guenther  <rguenther@suse.de>
10756         * tree-vrp.c (extract_range_from_unary_expr): Handle all
10757         conversions.  Simplify code.
10759 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
10761         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
10763 2008-04-03  Tom Tromey  <tromey@redhat.com>
10764             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10766         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
10767         * config/bfin/t-bfin-linux (generated_files): Add
10768         linux-sysroot-suffix.h.
10769         * doc/install.texi (Prerequisites): Require make 3.80.
10770         * doc/sourcebuild.texi (Front End Directory): Document new
10771         variable.
10772         * Makefile.in (generated_files): New variable.
10773         (ALL_HOST_OBJS): New variable.
10774         ($(ALL_HOST_OBJS)): New target.
10776 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10778         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
10779         (remap_block): Call id->transform_lang_insert_block instead
10780         of langhook.
10781         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
10782         Set id.transform_lang_insert_block to NULL.
10783         (clone_body): Move to cp/optimize.c
10784         * tree-inline.h (struct copy_body_data): Change
10785         transform_lang_insert_block to function pointer.
10786         (copy_generic_body, copy_decl_no_change): Export.
10787         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
10788         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
10789         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
10791         * c-tree.h (insert_block): Kill.
10792         * c-decl.c (insert_block): Kill.
10794 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
10796         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10797         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10798         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
10799         argument.
10800         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
10801         argument, call {push,pop}_function_context from here.
10802         * c-parser.c: Use c_{push,pop}_function_context.
10804         * function.c (push_function_context_to): Move meat ...
10805         (push_function_context): ... here.  Simplify.
10806         * function.c (pop_function_context_from): Move meat ...
10807         (pop_function_context): ... here.  Simplify.
10808         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
10809         leave_nested).
10810         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
10811         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
10812         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
10813         * tree.h (push_function_context_to, pop_function_context_from): Remove.
10815 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10817         * expmed.c (extract_force_align_mem_bit_field): Remove.
10819 2008-04-03  Richard Guenther  <rguenther@suse.de>
10821         PR middle-end/35800
10822         * expr.h (try_casesi): Adjust prototype.
10823         * expr.c (try_casesi): Take fallback label as extra parameter.
10824         Use that for gen_casesi if default_label is NULL.
10825         * stmt.c (expand_case): Pass fallback label to try_casesi,
10826         make sure to fill gaps with a fallback label if default_label
10827         is not present.
10829 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
10831         PR target/35801
10832         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
10834 2008-04-03  Ben Elliston  <bje@au.ibm.com>
10836         * expmed.c (extract_split_bit_field): Remove if (0) code.
10837         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
10838         (do_ds_constraint): Likewise.
10840 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
10842         * doc/cppopts.texi (-dU): Document.
10843         * c-common.h (flag_dump_macros): Update comment.
10844         * c-opts.c (handle_OPT_d): Handle -dU.
10845         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
10846         dump_queued_macros, cb_used_define, cb_used_undef): New.
10847         (init_pp_output): Handle -dU.
10848         (cb_line_change): Call dump_queued_macros.
10849         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
10851 2008-04-02  Anatoly Sokolov <aesok@post.ru>
10853         * config/avr/predicates.md (io_address_operand): New predicate. 
10854         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
10855         * config/avr/avr.c (avr_io_address_p): Remove function.
10856         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
10857         'avr_io_address_p' function.
10858         (out_movhi_r_mr): (Ditto.).
10859         (out_movqi_mr_r): (Ditto.).
10860         (out_movhi_mr_r): (Ditto.).
10861         (avr_address_cost): (Ditto.).
10863 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
10865         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
10866         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
10867         in 32bit mode when XMM registers are available to avoid store
10868         forwarding stalls.
10869         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
10870         corresponding post-reload splitters.
10872 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10874         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
10875         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
10876         __builtin_ia32_roundss.
10877         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
10878         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
10879         __builtin_ia32_roundss.
10880         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
10881         IX86_BUILTIN_SHUFPD here.
10883 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
10885         * config/i386/i386.md (plogic): New.
10886         (plogicprefix): Likewise.
10888         * config/i386/mmx.md (mmx_<code><mode>3): New.
10889         (mmx_and<mode>3): Removed.
10890         (mmx_ior<mode>3): Likewise.
10891         (mmx_xor<mode>3): Likewise.
10893         * config/i386/sse.md (<code><mode>3): New.
10894         (*<code><mode>3): Likewise.
10895         (*<code><mode>3): Likewise.
10896         (<code><mode>3): Likewise.
10897         (*sse_<code><mode>3): Likewise.
10898         (*sse2_<code><mode>3): Likewise.
10899         (<code>tf3): Likewise.
10900         (*<code>tf3): Likewise.
10901         (and<mode>3): Likewise.
10902         (*and<mode>3): Likewise.
10903         (ior<mode>3): Removed.
10904         (*ior<mode>3): Likewise.
10905         (xor<mode>3): Likewise.
10906         (*xor<mode>3): Likewise.
10907         (*and<mode>3): Likewise.
10908         (*ior<mode>3): Likewise.
10909         (*xor<mode>3): Likewise.
10910         (and<mode>3): Likewise.
10911         (*sse_and<mode>3): Likewise.
10912         (*sse2_and<mode>3): Likewise.
10913         (andtf3): Likewise.
10914         (*andtf3): Likewise.
10915         (ior<mode>3): Likewise.
10916         (*sse_ior<mode>3): Likewise.
10917         (*sse2_ior<mode>3): Likewise.
10918         (iortf3): Likewise.
10919         (*iortf3): Likewise.
10920         (xor<mode>3): Likewise.
10921         (*sse_xor<mode>3): Likewise.
10922         (*sse2_xor<mode>3): Likewise.
10923         (xortf3): Likewise.
10924         (*xortf3): Likewise.
10926 2008-04-02  Richard Guenther  <rguenther@suse.de>
10928         PR tree-optimization/14495
10929         PR tree-optimization/34793
10930         * tree-vrp.c (struct switch_update): New structure.
10931         (to_remove_edges, to_update_switch_stmts): New VECs.
10932         (simplify_switch_using_ranges): New function.  Remove not taken
10933         case labels and edges.
10934         (simplify_stmt_using_ranges): Call it.
10935         (identify_jump_threads): Mark edges we have queued for removal
10936         so we don't thread them.
10937         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
10938         case label vector.
10939         * tree-cfg.c (group_case_labels): Deal with missing default label.
10940         (tree_verify_flow_info): Allow missing default label.
10941         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
10942         (emit_case_nodes): Likewise.
10943         (expand_case): Do not rely on the default label to be present.
10944         * expr.c (try_casesi): Deal with NULL default_label.
10945         (do_tablejump): Likewise.
10947 2008-04-02  Richard Guenther  <rguenther@suse.de>
10949         PR tree-optimization/14495
10950         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
10951         SWITCH_EXPR here ...
10952         (vrp_visit_switch_stmt): ... but here (new function).
10953         (find_case_label_index): New helper function.
10954         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
10956 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10958         * fwprop.c: Fix ISO-C99ism.
10960 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10962         PR bootstrap/35752
10963         * Makefile.in (objdir): Set it here.
10964         * configure.ac: Not here.  Find dynamic linker characteristics.
10965         * exec-tool.in: Use them.
10966         * aclocal.m4: Regenerate.
10967         * configure: Regenerate.
10969 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10971         * expr.c (expand_var): Delete it.
10972         * expr.h (expand_var): Delete prototype.
10973         * function.c (expand_function_start): Use expand_decl instead.
10974         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
10975         langhook.
10977 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
10979         PR rtl-optimization/35542
10980         * fwprop.c (forward_propagate_and_simplify): Replace
10981         loc_reg_mentioned_in_p with reg_mentioned_p.
10983 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
10985         PR rtl-optimization/35281
10986         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
10987         (propagate_rtx_1): Handle PR_HANDLE_MEM.
10988         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
10989         (varying_mem_p): Move above propagate_rtx.
10990         (all_uses_available_at): Do not check MEMs.
10992 2008-04-02  Rafael Espindola  <espindola@google.com>
10994         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
10995         (register_edge_assert_for_2): Split the cond argument.
10996         (register_edge_assert_for_1): Adjust for the change in
10997         register_edge_assert_for_2.
10998         (register_edge_assert_for): Split the cond argument.
10999         (find_switch_asserts): Adjust for the change in
11000         register_edge_assert_for.
11002 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11004         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11005         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11006         offsets for 64-bit mingw.
11007         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11008         abi for x86_64-pc-mingw.
11010 2008-04-02  Richard Guenther  <rguenther@suse.de>
11012         * tree-vrp.c (extract_range_from_assert): Make sure to not
11013         produce range min/max with TREE_OVERFOW set.
11014         If merging a anti-range and a range keep the anti-range if
11015         the range covers all values of the type.
11016         (register_edge_assert_for_2): Only allow sign-changing
11017         conversions in detecting canonical range checks.  Also
11018         register an assert for the unsigned name if useful.
11020         PR tree-optimization/35787
11021         * tree-vrp.c (vrp_val_max): New function.
11022         (vrp_val_min): Likewise.
11023         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11024         (vrp_val_is_min): Likewise.
11025         (supports_overflow_infinity): Use vrp_val_{min,max}.
11026         (negative_overflow_infinity): Likewise.
11027         (positive_overflow_infinity): Likewise.
11028         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11029         (is_positive_overflow_infinity): Likewise.
11030         (is_overflow_infinity): Likewise.
11031         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11032         vrp_val_is_{min,max}.
11033         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11034         to ranges if possible.  Avoid empty ranges.
11036 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11038         PR middle-end/35705
11039         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11040         the expression is a function address.
11042 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11044         PR fortran/35154, fortran/23057
11045         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11046         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11047         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11048         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11049         in common.
11050         (dbxout_syms): Check for COMMON-based symbol and wrap in
11051         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11052         in bracket for efficiency.
11054         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11055         using DW_TAG_common_block + member offset.
11056         (add_pubname_string): New function.
11057         (dw_expand_expr): New function to find block name and offset for
11058         COMMON var.
11059         (common_check): New function to check whether symbol in Fortran COMMON.
11060         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11062 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11064         PR c/35436
11065         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11067 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11069         * config/v850/v850.md (casesi): Remove if (0) code.
11070         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11071         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11073 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11075         * config/i386/i386.md (rex64suffix): New mode attribute.
11076         (floathi<mode>2): Disable expander for SSE math.
11077         (*floathi<mode>2_1): New insn insn_and_split pattern.
11078         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11079         corresponding post-reload splitters.
11080         (*floathi<mode>2_i387): New macroized insn pattern.
11081         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11082         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11083         insn_and_split pattern.
11084         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11085         New macroized instruction patterns and corresponding post-reload
11086         splitters.
11087         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11088         and corresponding post-reload splitters.
11089         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11090         New macroized instruction patterns.
11091         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11092         macroized instruction patterns and corresponding post-reload splitters.
11093         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11094         corresponding post-reload splitters.
11095         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11096         New macroized instruction patterns.
11097         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11098         corresponding post-reload splitters.
11099         (*floatsi<mode>2_i387): New macroized instruction patterns.
11101 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11103         * config/i386/i386.md (smaxmin): New.
11104         (umaxmin): Likewise.
11105         (maxminiprefix): Likewise.
11106         (maxminfprefix): Likewise.
11107         (<code><mode>3): Likewise.
11108         (smin<mode>3): Removed.
11109         (smax<mode>3): Likewise.
11111         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11112         (mmx_<code>v4hi3): Likewise.
11113         (mmx_<code>v8qi3): Likewise.
11114         (mmx_smaxv2sf3): Removed.
11115         (mmx_sminv2sf3): Likewise.
11116         (mmx_umaxv8qi3): Likewise.
11117         (mmx_smaxv4hi3): Likewise.
11118         (mmx_uminv8qi3): Likewise.
11119         (mmx_sminv4hi3): Likewise.
11121         * config/i386/sse.md (<addsub><mode>3): New.
11122         (*<addsub><mode>3): Likewise.
11123         (<sse>_vm<addsub><mode>3): Likewise.
11124         (<maxmin><mode>3): Likewise.
11125         (*<maxmin><mode>3_finite): Likewise.
11126         (*<maxmin><mode>3): Likewise.
11127         (<sse>_vm<maxmin><mode>3): Likewise.
11128         (sse3_h<addsub>v4sf3): Likewise.
11129         (sse3_h<addsub>v2df3): Likewise.
11130         (<maxmin>v16qi3): Likewise.
11131         (*<maxmin>v16qi3): Likewise.
11132         (<maxmin>v8hi3): Likewise.
11133         (*<maxmin>v8hi3): Likewise.
11134         (*sse4_1_<maxmin><mode>3): Likewise.
11135         (*sse4_1_<maxmin><mode>3): Likewise.
11136         (add<mode>3): Removed.
11137         (*add<mode>3): Likewise.
11138         (<sse>_vmadd<mode>3): Likewise.
11139         (sub<mode>3): Likewise.
11140         (*sub<mode>3): Likewise.
11141         (<sse>_vmsub<mode>3): Likewise.
11142         (smin<mode>3): Likewise.
11143         (*smin<mode>3_finite): Likewise.
11144         (*smin<mode>3): Likewise.
11145         (<sse>_vmsmin<mode>3): Likewise.
11146         (smax<mode>3): Likewise.
11147         (*smax<mode>3_finite): Likewise.
11148         (*smax<mode>3): Likewise.
11149         (<sse>_vmsmax<mode>3): Likewise.
11150         (sse3_haddv4sf3): Likewise.
11151         (sse3_haddv2df3): Likewise.
11152         (sse3_hsubv4sf3): Likewise.
11153         (sse3_hsubv2df3): Likewise.
11154         (umaxv16qi3): Likewise.
11155         (*umaxv16qi3): Likewise.
11156         (smaxv8hi3): Likewise.
11157         (*smaxv8hi3): Likewise.
11158         (*sse4_1_smax<mode>3): Likewise.
11159         (*sse4_1_umax<mode>3): Likewise.
11160         (uminv16qi3): Likewise.
11161         (*uminv16qi3): Likewise.
11162         (sminv8hi3): Likewise.
11163         (*sminv8hi3): Likewise.
11164         (*sse4_1_smin<mode>3): Likewise.
11165         (*sse4_1_umin<mode>3): Likewise.
11167 2008-04-01  Rafael Espindola  <espindola@google.com>
11169         * tree-cfg.c (verify_expr): remove in_phi.
11170         (verify_stmt): Don't call walk_tree with verify_expr. Use
11171         is_gimple_min_invariant instead of is_gimple_val.
11173 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11175         * doc/include/gpl_v3.texi: Update for manpage generation.
11176         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11177         gpl.texi.
11178         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11179         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11180         gpl_v3.texi instead of gpl.texi.
11181         (gpl.pod): New.
11183 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11185         PR pch/13675
11186         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11188 2008-04-01  Rafael Espindola  <espindola@google.com>
11190         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11191         (extract_code_and_val_from_cond): Use
11192         extract_code_and_val_from_cond_with_ops.
11194 2008-04-01  Jan Hubicka  <jh@suse.cz>
11196         * function.c (free_after_compilation): Free epilogue_delay_list.
11197         (prepare_function_start): Assert that previous compilation was freed.
11199 2008-04-01  Jan Hubicka  <jh@suse.cz>
11200             Jim Wilson  <wilson@tuliptree.org>
11201             Andreas Tobler <andreast@gcc.gnu.org>
11203         PR middle-end/35781
11204         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11205         rtl.emit instead cfun->emit.
11206         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11207         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11209 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11211         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11213 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11215         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11216         New options
11217         (fprofile-use): Add var flag_profile_use
11218         * coverage.c (coverage_begin_output): Do not open a gcno file for
11219         output only if -ftest-coverage is set.
11220         Do not add getpwd() to gcda file path.
11221         (build_gcov_info): Check the new flag
11222         flag_profile_datafile_relative_path.
11223         (coverage_init): Use profile_data_prefix.
11224         Read profile counter only if flag_profile_use is set.
11225         * opts.c (common_handle_option): New option fprofile-use=,
11226         fprofile-dir=, fprofile-generate=.
11227         * toplev.c (profile_data_prefix): New variable definition.
11228         * toplev.h (profile_data_prefix): New declaration.
11229         * doc/invoke.tex (Option Summary, Optimization Options):
11230         Add new options.
11232 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11234         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11235         use tmp consistently.
11237         PR target/35695
11238         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11239         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11240         UNSPEC_FR_RECIP_APPROX_RES.
11241         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11243 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11245         PR c/35750
11246         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11248 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11250         PR middle-end/30186
11251         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11252         element of the vector via a pointer.
11254 2008-03-31  Ian Lance Taylor  <iant@google.com>
11256         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11258 2008-03-31  Jan Hubicka  <jh@suse.cz>
11260         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11261         get_arg_pointer_save_area.
11262         * expr.c (init_expr): Just clear out rtl.expr.
11263         * function.c (free_after_compilation): Clear out whole RTL structure.
11264         (get_func_frame_size): Merge into ...
11265         (get_frame_size): ... this one.
11266         (assign_stack_local_1): Merge into ...
11267         (assign_stack_local): ... this one.
11268         (expand_function_end): Update call of get_arg_pointer_save_area.
11269         (get_art_pointer_save_area): Remove cfun argument.
11270         * function.h (emit_status): regno_pointer_align does not need length
11271         attribute. Move x_regno_reg_rtx to ...
11272         (regno_reg_rtx): ... new global array.
11273         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11274         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11275         apply_args_value, forced_labels, stack_pointer_delta):
11276         Update accestors.
11277         (struct varasm_status): Move here from varasm.c
11278         (struct rtl_data): New. Move here some fields from struct function.
11279         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11280         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11281         used_temp_slots avail_temp_slots, temp_slot_level,
11282         nonlocal_goto_handler_labels): Update accesstors.
11283         (rtl): New global variable.
11284         (struct function): Move some fileds to rtl_data.
11285         (get_arg_pointer_save_area): Update prototype.
11286         * emit-rtl.c (rtl): Declare.
11287         (regno_reg_rtx): Declare.
11288         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11289         Update.
11290         (gen_reg_rtx): Update.
11291         (init_virtual_regs): Do not tate emit_status argument.
11292         (init_emit): Do not allocate emit.
11293         * varasm.c (varasm_statuc): Move to function.h.
11294         (n_deferred_constatns): Update accestor.
11295         (init_varasm_status): Do not allocate varasm_status.
11296         (force_const_mem, get_pool_size, output_constant_pool): Update.
11297         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11298         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11300 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11302         PR rtl-optimization/35729
11303         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11304         references.
11306 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11308         PR target/32000
11309         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11310         load/store if memory is unaligned.
11311         (*movti_rex64): Likewise.
11313         * config/i386/predicates.md (misaligned_operand): New.
11315 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11317         PR tree-opt/35431
11318         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11319         complex types.
11321 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11323         * config/ia64/constraints.md: Add 'j' constraint.
11324         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11325         (movdi_internal): Likewise.
11327 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11329         PR c/35748
11330         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11332 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11334         PR target/35757
11335         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11336         proper error message for the third argument on blendpd and
11337         blendps.
11339         * config/i386/sse.md (blendbits): New.
11340         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11342 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11344         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11346 2008-03-30  Richard Guenther  <rguenther@suse.de>
11348         PR middle-end/31023
11349         * fold-const.c (fold_sign_changed_comparison): Do leave
11350         conversions to base-types alone.
11352 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11354         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11355         the link register if one altivec register is be saved.
11357 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11359         * final.c (final_scan_insn): Remove if (0) code.
11361 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11363         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11365 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11367         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11368         of V4SFmode to ix86_binary_operator_ok.
11370 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11372         * config/i386/i386.c (override_options): Initialize
11373         ix86_veclib_handler to ix86_veclibabi_svml when
11374         -mveclibabi=svml is used.
11375         (ix86_veclibabi_svml): New function for SVML ABI style
11376         vectorization support.
11377         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11379 2008-03-28  Rafael Espindola  <espindola@google.com>
11381         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11382         (tree_binary_nonnegative_warnv_p): Make it public.
11383         (tree_single_nonnegative_warnv_p): Make it public.
11384         (tree_invalid_nonnegative_warnv_p): Make it public.
11385         (tree_unary_nonzero_warnv_p): Make it public.
11386         (tree_binary_nonzero_warnv_p): Make it public
11387         (tree_single_nonzero_warnv_p): Make it public.
11388         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11389         (extract_range_from_binary_expr): Split the expr argument.
11390         (extract_range_from_unary_expr): Split the expr argument.
11391         (extract_range_from_comparison): Split the expr argument.
11392         (extract_range_from_expr): Use the new aux functions.
11393         (vrp_evaluate_conditional_warnv): Use
11394         vrp_evaluate_conditional_warnv_with_ops.
11395         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11396         (tree_binary_nonzero_warnv_p): Declare.
11397         (tree_single_nonzero_warnv_p): Declare.
11398         (tree_expr_nonzero_warnv_p): Declare.
11399         (tree_unary_nonnegative_warnv_p): Declare.
11400         (tree_binary_nonnegative_warnv_p): Declare.
11401         (tree_single_nonnegative_warnv_p): Declare.
11402         (tree_invalid_nonnegative_warnv_p): Declare.
11404 2008-03-28  Richard Guenther  <rguenther@suse.de>
11406         PR tree-optimization/30317
11407         PR tree-optimization/30911
11408         PR tree-optimization/34793
11409         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11410         (struct assert_locus_d): New member EXPR.
11411         (register_new_assert_for): Add EXPR parameter to support
11412         ASSERT_EXPR <name, expr OP limit>.
11413         (register_edge_assert_for_1): Adjust callers.
11414         (find_assert_locations): Likewise.
11415         (process_assert_insertions_for): Build condition from expression.
11416         (extract_range_from_assert): Handle ASSERT_EXPRs
11417         of the form ASSERT_EXPR <name, expr OP limit>.
11418         (register_edge_assert_for_2): New helper registering
11419         asserts for comparisons.  Recognize range tests of the form
11420         (unsigned)i - CST1 OP CST2.
11421         (register_edge_assert_for_1): Use it.
11422         (register_edge_assert_for): Likewise.
11423         (needs_overflow_infinity): Integer sub-types
11424         do not need overflow infinities.
11425         (vrp_val_is_max): The extreme values of integer sub-types
11426         are those of the base type.
11427         (vrp_val_is_min): Likewise.
11428         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11429         expressions.
11431 2008-03-28  Nick Clifton  <nickc@redhat.com>
11433         PR target/31110
11434         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11435         Return GENERAL_REGS for stack adjustment reloads.
11437 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11439         PR target/31334
11440         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11441         const_vector when all the vectors are constant.
11443 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11445         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11446         comparisons.
11447         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11448         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11449         (scc_sf): New.
11450         (s<code>_sf): Use new scc_sf attribute for opcode names.
11452 2008-03-27  Tom Tromey  <tromey@redhat.com>
11454         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11455         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11456         config/spu/t-spu-elf, config/i386/t-interix,
11457         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11458         config/i386/x-darwin, config/i386/x-mingw32,
11459         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11460         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11461         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11462         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11463         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11464         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11465         config/score/t-score-elf, config/arm/t-strongarm-pe,
11466         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11467         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11468         Revert automatic dependency patch.
11470 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11472         PR target/35657
11473         * config/i386/i386.c (ix86_function_arg_boundary): Align
11474         decimal floating point to its natural boundary.
11476 2008-03-27  Richard Guenther  <rguenther@suse.de>
11478         PR middle-end/35716
11479         * fold-const.c (fold_comparison): Restrict distinct decl
11480         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11481         solely rely on operand_equal_p.
11483 2008-03-27  Richard Guenther  <rguenther@suse.de>
11485         PR c/32511
11486         * c-common.c (handle_weak_attribute): Reject combination of
11487         weak and inline.
11489 2008-03-27  Richard Guenther  <rguenther@suse.de>
11491         PR tree-optimization/32810
11492         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11493         conversions from DECL_INITIAL.
11494         (fold_const_aggregate_ref): Likewise from constructor elements.
11496 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11498         * tree-affine.h (aff_combination_expand): Declare.
11499         (get_inner_reference_aff): Likewise.
11500         * tree-affine.c (aff_combination_expand): Split out from
11501         tree_to_aff_combination_expand.
11502         (get_inner_reference_aff): New function.
11503         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11504         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11505         (struct lim_aux_data): sm_done field removed.
11506         (mem_ref_loc_p, mem_ref_locs_p): New types.
11507         (struct mem_ref): Added id, stored, accesses_in_loop,
11508         indep_loop, dep_loop, indep_ref, dep_ref fields.
11509         Removed is_stored, locs and next fields.
11510         (memory_accesses): New variable.
11511         (movement_possibility): Do not allow moving statements
11512         that store to memory.
11513         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11514         New functions.
11515         (determine_max_movement): For statements with memory references,
11516         find the outermost loop in that the reference is independent.
11517         (move_computations_stmt): Mark the virtual operands for renaming.
11518         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11519         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11520         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11521         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11522         create_vop_ref_mapping, analyze_memory_references,
11523         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11524         get_all_locs_in_loop, ref_always_accessed_p,
11525         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11526         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11527         store_motion_loop, store_motion): New functions.
11528         (struct vop_to_refs_elt): New type.
11529         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11530         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11531         (schedule_sm): Replaced by...
11532         (execute_sm): ... this.
11533         (determine_lsm_ref, hoist_memory_references,
11534         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11535         find_more_ref_vops, free_mem_ref, free_mem_refs,
11536         determine_lsm_loop, determine_lsm): Removed.
11537         (tree_ssa_lim_finalize): Free data structures used by store motion.
11538         (tree_ssa_lim): Call analyze_memory_references.  Use
11539         store_motion instead of determine_lsm.
11541 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11543         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11544         rename tmake_file to m68hc11/t-m68hc11.
11545         (mcore): Set inhibit_libc to true.
11546         * config.host (alpha*-dec-*vms*): Set extra_programs.
11547         (interix3*): Don't use host_xmake_file.
11548         * configure.ac: Let config.gcc override inhibit_libc.
11549         * configure: Regenerate.
11551         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11552         * config/t-openbsd-thread: Remove commented out lines.
11553         
11554         * config/x-interix: Remove.
11556         * config/m68hc11/t-m68hc11-gas: Rename to...
11557         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11559         * config/mcore/t-mcore: Remove T_CFLAGS.
11560         * config/mcore/t-mcore-pe: Likewise.
11562 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11564         * configure.ac: Replace custom __GNU_SOURCE test with
11565         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11566         * aclocal.m4: Regenerate.
11567         * configure: Regenerate.
11568         * config.in: Regenerate.
11570 2008-03-27  Richard Guenther  <rguenther@suse.de>
11572         * fold-const.c (target.h): Include.
11573         (fold_comparison): Fold comparison of addresses of decls
11574         that bind locally or of constants.  Consolidate address folding code.
11575         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11576         results from fold_binary_to_constant.
11577         (compare_values_warnv): Likewise.
11579 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11581         PR middle-end/35429
11582         * fold-const.c (fold_truthop): Check for integeral types when folding
11583         a == 0 && b == 0 and a != 0 || b != 0 .
11585 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11587         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11589 2008-03-26  Andreas Schwab  <schwab@suse.de>
11591         * doc/invoke.texi: Fix use of @item vs. @itemx.
11593 2008-03-26  Tom Tromey  <tromey@redhat.com>
11595         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11596         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11597         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11598         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11599         build/genconstants.o, build/genemit.o, build/genextract.o,
11600         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11601         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11602         options.h.
11604 2008-03-26  Richard Guenther  <rguenther@suse.de>
11606         Revert
11607         2008-03-26  Richard Guenther  <rguenther@suse.de>
11609         * fold-const.c (target.h): Include.
11610         (fold_comparison): Fold comparison of addresses of two decls
11611         that bind locally.  Consolidate address folding code.
11613 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11615         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11616         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11617         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11618         dconstsqrt2, dconstthird, dconste and/or dconst10.
11619         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11620         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11621         dconstsqrt2, dconste): Delete.
11622         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11623         Constify variable.
11624         * real.c (get_real_const): New.
11625         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11626         dconstsqrt2, dconste): Delete.
11627         (real_value_const, get_real_const): New.
11629 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11631         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11633         * config/i386/i386.c (ix86_function_arg_boundary): Check
11634         BIGGEST_ALIGNMENT instead of 128.
11635         (setup_incoming_varargs_64): Likewise.
11637 2008-03-26  Tom Tromey  <tromey@redhat.com>
11639         * Makefile.in (DEPFILES): Add missing '/'.
11641 2008-03-26  Richard Guenther  <rguenther@suse.de>
11643         * fold-const.c (target.h): Include.
11644         (fold_comparison): Fold comparison of addresses of two decls
11645         that bind locally.  Consolidate address folding code.
11647 2008-03-26  Nick Clifton  <nickc@redhat.com>
11649         PR target/31232
11650         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
11651         not allow INT+INT as a legitimate addressing mode.
11653 2008-03-26  Richard Guenther  <rguenther@suse.de>
11655         * tree-flow.h (widen_bitfield): Remove declaration.
11656         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
11657         (widen_bitfield): Remove function.
11658         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
11659         code.
11661 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11663         PR target/31558
11664         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
11665         error_mark_node's.
11667 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11669         PR rtl-optimization/35232
11670         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
11671         (forget_old_reloads_1, forget_marked_reloads): Don't clear
11672         reg_reloaded_call_part_clobbered here.
11673         (reload_regs_reach_end_p): New function.
11674         (reload_reg_rtx_for_input): New variable.
11675         (reload_reg_rtx_for_output): Likewise.
11676         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
11677         when reassigning a pseudo register.  Load reloadreg from 
11678         reload_reg_rtx_for_input, moving the mode and register
11679         calculation to...
11680         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
11681         instead of the original when deciding whether an input reload
11682         would be a no-op or whether an output reload can be deleted.
11683         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
11684         when setting up new_spill_reg_store.  Load it from
11685         reload_reg_rtx_for_output, moving the mode and register
11686         calculation to...
11687         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
11688         instead of the original when deciding whether an output reload
11689         would be a no-op.  Do the same when modifying insn notes.
11690         Use rtx_equal_p instead of == to compare the registers.
11691         (inherit_piecemeal_p): Take a mode and two register numbers
11692         as argument.
11693         (emit_reload_insns): Clear new_spill_reg_store for every hard
11694         register in the reload register.  Remove spill registers
11695         from reg_reloaded_valid before considering whether to record
11696         inheritance information for them.  Use reload_reg_rtx_for_output
11697         instead of reg_rtx when recording output reloads.  Use
11698         reload_reg_rtx_for_input instead of reg_rtx when recording
11699         input reloads.  Set or clear reg_reloaded_call_part_clobbered
11700         at the same time as setting reg_reloaded_valid.
11701         (delete_output_reload): Add a new_reload_reg parameter and use it
11702         instead of rld[j].reg_rtx.
11703         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
11704         calls accordingly.
11706 2008-03-25  Tom Tromey  <tromey@redhat.com>
11708         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
11709         (build/genattr.o): Likewise.
11710         (build/genattrtab.o): Likewise.
11711         (build/gencodes.o): Likewise.
11712         (build/genconfig.o): Likewise.
11713         (build/genconstants.o): Likewise.
11714         (build/genemit.o): Likewise.
11715         (build/genextract.o): Likewise.
11716         (build/genflags.o): Likewise.
11718 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
11719         
11720         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
11721         instead of size_int for integer types.
11722         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
11723         to match type of MINUS_EXPR.
11724         
11725 2008-03-25  Tom Tromey  <tromey@redhat.com>
11727         * configure: Rebuilt.
11728         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
11729         Makefile.
11731 2008-03-25  Tom Tromey  <tromey@redhat.com>
11733         * config/x-solaris (host-solaris.o): Update.
11734         * config/x-linux (host-linux.o): Update.
11735         * config/x-hpux (host-hpux.o): Update.
11736         * config/x-darwin (host-darwin.o): Update.
11737         * config/v850/t-v850e (v850-c.o): Update.
11738         * config/v850/t-v850 (v850-c.o): Update.
11739         * config/t-vxworks (vxworks.o): Update.
11740         * config/t-sol2 (sol2-c.o, sol2.o): Update.
11741         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
11742         * config/spu/t-spu-elf (spu-c.o): Update.
11743         (spu.o): Remove.
11744         * config/sh/t-symbian (sh-c.o): Update.
11745         (symbian.o): Update.
11746         * config/sh/t-sh (sh-c.o): Update.
11747         * config/score/t-score-elf (score7.o, score3.o): Update.
11748         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
11749         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
11750         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
11751         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
11752         (rs6000.o): Remove.
11753         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11754         * config/m32c/t-m32c (m32c-pragma.o): Update.
11755         * config/ia64/t-ia64 (ia64-c.o): Update.
11756         * config/i386/x-mingw32 (host-mingw32.o): Update.
11757         * config/i386/x-i386 (driver-i386.o): Update.
11758         * config/i386/x-darwin (host-i386-darwin.o): Update.
11759         * config/i386/x-cygwin (host-cygwin.o): Update.
11760         * config/i386/t-nwld (nwld.o): Update.
11761         * config/i386/t-netware (netware.o): Update.
11762         * config/i386/t-interix (winnt.o): Update.
11763         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
11764         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
11765         msformat-c.o): Update.
11766         * config/bfin/t-bfin-linux (generated_files): Add
11767         linux-sysroot-suffix.h.
11768         * config/arm/t-wince-pe (pe.o): Update.
11769         * config/arm/t-strongarm-pe (pe.o): Update.
11770         * config/arm/t-pe (pe.o): Update.
11771         * config/arm/t-arm (arm-c.o): Update.
11772         * doc/install.texi (Prerequisites): Require make 3.80.
11773         * Makefile.in: Remove .o targets.
11774         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
11775         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
11776         (simple_generated_h, simple_generated_c): Move earlier.
11777         (generated_files): New variable.
11778         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
11779         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
11780         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
11781         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
11782         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
11783         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
11784         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
11785         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
11786         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
11787         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
11788         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
11789         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
11790         (.c.o): Remove.
11791         (COMPILE.base, COMPILE): New variables.
11792         (%.o): New pattern rule.
11793         (ALL_HOST_OBJS): New variable.
11794         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
11795         (dummy-checksum.o, cc1-checksum.o): Remove.
11796         (DRIVER_SHLIB): New variable.
11797         (DRIVER_DEFINES): Use it.
11798         (gencondmd.c): Move out of build/.
11799         (s-conditions): Update.
11800         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
11801         (ALL_BUILD_OBJS): Likewise.
11802         (build/%.o): Use BUILDCOMPILE.
11803         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
11804         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
11805         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
11806         build/gencheck.o, build/gencodes.o, build/genconditions.o,
11807         build/genconfig.o, build/genconstants.o, build/genemit.o,
11808         build/genextract.o, build/genflags.o, build/genmddeps.o,
11809         build/genopinit.o, build/genoutput.o, build/genpeep.o,
11810         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
11811         build/gen-protos.o, build/scan.o, build/fix-header.o,
11812         build/scan-decls.o): Simplify.
11813         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
11814         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
11815         prefix.o, toplev.o): Reduce to variable setting.
11816         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
11817         ($(out_object_file), gcc-options.o): New targets.
11818         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
11819         * configure: Rebuilt.
11820         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
11821         * doc/sourcebuild.texi (Front End Directory): Document new variable.
11823 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
11825         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
11826         complain when we hit an error, return ERROR_MARK_NODE.
11828 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11830         * config/sh/constraints.md (Pso, Psz): New constraints.
11831         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
11832         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
11834 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11836         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
11837         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
11839 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
11841         * config/sh/sh.md (prefetch): Add condition for SH2A target.
11842         (prefetch_sh2a): New.   
11844 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
11845             Naveen.H.S  <naveen.hs@kpitcummins.com>
11847         * config/sh/constraints.md (I28): New constraint.
11848         * config/sh/sh.c (broken_move): Add support for movi20s.
11849         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
11851 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
11852             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
11853             Naveen.H.S  <naveen.hs@kpitcummins.com>
11855         * config/sh/sh.c (SH_ATTRIBUTES): Define.
11856         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11857         (print_operand): Handle resbank in %@ operand code.
11858         (sh_encode_section_info): New.
11859         (push_regs): Add conditions for resbank.
11860         (sh_expand_epilogue): Likewise.
11861         (sh_insert_attributes): Likewise.
11862         (sh_attribute_table): Likewise.
11863         (sh_handle_resbank_handler_attribute): New.
11864         (sh2a_handle_function_vector_handler_attribute): New.
11865         (sh2a_is_function_vector_call): New.
11866         (sh2a_get_function_vector_number): New.
11867         (sh2a_function_vector_p): New.
11868         (sh_cfun_resbank_handler_p): New.
11869         * config/sh/sh.md (calli): Emit jsr/n if possible.
11870         (calli_tbr_rel): New.
11871         (calli_pcrel): Emit jsr/n if possible.
11872         (return_i): Emit rts/n if possible.
11873         (call_valuei_tbr_rel): New.
11874         (call_valuei_pcrel): Add condition for SH2A target.
11875         (call_value): Likewise.
11876         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
11877         (sh2a_get_function_vector_number): Likewise.
11878         (sh2a_is_function_vector_call): Likewise.
11879         * doc/extend.texi: Document TBR relative addressing of SH2A.
11880         (resbank): Add description for SH2A.
11882 2008-03-24  Richard Guenther  <rguenther@suse.de>
11884         PR c/22371
11885         * gimplify.c (gimplify_modify_expr): For frontend type-correct
11886         pointer assignments change conversions according to middle-end rules.
11887         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
11888         * configure.ac: Include type checking in yes.
11889         * configure: Regenerate.
11891 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11893         * diagnostic.c (diagnostic_count_diagnostic): Delete.
11894         (diagnostic_report_diagnostic): Update. Handle ICEs here.
11895         
11896 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
11898         * gthr-vxworks.h (UNUSED): Define.
11900 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11902         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
11904 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
11906         * doc/extend.texi (Function Attributes): Add missing comma in the
11907         example of the "alloc_size" attribute.
11908         
11909 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
11911         Revert:
11912         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11914         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
11915         32bit host.
11917         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
11919         PR target/35496
11920         * stor-layout.c (update_alignment_for_field): Set minimum alignment
11921         of the underlying type of a MS bitfield layout to the natural
11922         alignment of the type.
11924         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
11926         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11927         to their natural alignment to avoid store forwarding stalls.
11929 2008-03-22  Richard Guenther  <rguenther@suse.de>
11931         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
11932         For PHI nodes verify the address is invariant.
11933         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
11934         (get_symbol_constant_value): Use is_gimple_min_invariant.
11935         (maybe_fold_stmt_indirect): Likewise.
11937 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
11939         PR rtl-optimization/33927
11940         * Makefile.in (dse.o): Depend on $(TM_P_H).
11941         * expr.h (extract_low_bits): Declare.
11942         * expmed.c (extract_low_bits): New function.
11943         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
11944         * dse.c: Include tm_p.h.
11945         (find_shift_sequence): Remove the read_reg argument and return the
11946         read value.  Emit the instructions instead of returning them.
11947         Iterate on new_mode rather than calculating it each time.
11948         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
11949         source to NEW_MODE and extract_low_bits to convert the shifted
11950         value to READ_MODE.
11951         (replace_read): Allow the load and store to have different mode
11952         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
11953         or extraction instructions before trying the replacement.  Update
11954         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
11956 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
11958         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
11959         to their natural alignment to avoid store forwarding stalls.
11961 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11963         PR target/27946
11964         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
11965         encouraging but not allowing gprs for input;
11966         change the input constraint to !f#r.
11967         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
11968         gprs for output;
11969         change the output constraint to !f#r.
11971 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
11973         PR target/13958
11974         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
11975         corresponding post-reload splitters.
11976         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
11977         when x87 FP math is selected.
11978         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
11979         New function prototype.
11980         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
11981         unreachable function to ease macroization of insn patterns.
11983 2008-03-21  Martin Jambor  <mjambor@suse.cz>
11985         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
11986         reference dumps if ddr is NULL or dependence is unknown.
11988 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
11990         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
11991         unsigned extension into account.
11992         (ATOMIC_COMPARE_AND_SWAP): Likewise.
11993         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
11994         Do computations on a scratch register.
11996 2008-03-21  Richard Guenther  <rguenther@suse.de>
11998         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11999         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12000         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12001         * tree-ssa-dom.c (record_equality): Likewise.
12002         * tree-inline.c (copy_body_r): Likewise.
12003         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12004         TREE_INVARIANT.
12006 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12008         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12009         as 'delete_unused' argument.
12011 2008-03-20  Richard Guenther  <rguenther@suse.de>
12013         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12014         special casing of constant qualifiers.
12015         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12016         care about them in general.
12017         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12018         regardless of their type.
12019         (fold_stmt_r): Forcefully fold *& if we end up with that.
12021 2008-03-20  Paul Brook  <paul@codesourcery.com>
12023         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12024         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12025         linker flags.
12026         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12027         definition.
12028         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12029         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12031 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12033         * common.opt (Wmudflap): New option.
12034         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12035         (mx_register_decls): Likewise.
12036         (mudflap_finish_file): Likewise.
12037         * doc/invoke.texi: Document -Wno-mudflap.
12039 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12041         * c-format.c (replace_format_name_to_system_name): New.
12042         (cmp_attribs): New.
12043         (convert_format_name_to_system_name): New.
12044         (decode_format_attr): Add use of convert_format_name_to_system_name.
12045         (format_types_orig): Add gnu_ prefix to names.
12046         (check_format_info_main): Special treating of \0 escaped names for
12047         supporting multi-character format specifiers as I32, I64.
12048         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12049         (gnu_target_overrides_format_attributes): New.
12050         * c-format.h: Add structure target_ovr_attr to hold
12051         system specific formatter names.
12052         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12053         msformat-c.o file to c_target_objs and cxx_target_objs.
12054         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12055         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12056         (TARGET_N_FORMAT_TYPES): New.
12057         * config/i386/msformat-c.c: New.
12058         * config/i386/t-cygming: Add build rule for msformat-c.o.
12059         * doc/extend.texi: Add new format names gnu_* and ms_* and
12060         further details.
12061         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12063 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12065         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12066         optimizations turned on under -O3.
12067         (ftree-vectorize): Add that the flag is turned on with -O3.
12069 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12071         * regmove.c (try_auto_increment): Fix spelling error in comment.
12072         * final.c (final_scan_insn): Likewise.
12074 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12076         PR target/14552
12077         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12078         allocator preferences for "y" and "r" class registers.
12079         ("*mov<mode>_internal"): Ditto.
12080         ("*movv2sf_internal_rex64"): Ditto.
12081         ("*movv2sf_internal"): Ditto.
12083 2008-03-19  Michael Matz  <matz@suse.de>
12085         PR middle-end/35616
12086         * calls.c (expand_call): Check overlap of arguments with call
12087         address for sibcalls.
12089 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12091         PR target/35496
12092         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12093         of the underlying type of a MS bitfield layout to the natural
12094         alignment of the type.
12096 2008-03-19  Jan Hubicka  <jh@suse.cz>
12098         PR other/35094
12099         * toplev.c (decode_d_option): Handle all CPP flags.
12100         * tree-vrp.c: Update tree_pass descriptors.
12101         * regrename.c: Update tree_pass descriptors.
12102         * fwprop.c: Update tree_pass descriptors.
12103         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12104         * tree-into-ssa.c: Update tree_pass descriptors.
12105         * tree-dump.c: Update tree_pass descriptors.
12106         * tree-complex.c: Update tree_pass descriptors.
12107         * tree-dump.h: Update tree_pass descriptors.
12108         * see.c: Update tree_pass descriptors.
12109         * cgraphbuild.c: Update tree_pass descriptors.
12110         * tracer.c: Update tree_pass descriptors.
12111         * tree-loop-distribution.c: Update tree_pass descriptors.
12112         * cgraph.c: Update tree_pass descriptors.
12113         * postreload-gcse.c: Update tree_pass descriptors.
12114         * postreload.c: Update tree_pass descriptors.
12115         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12116         * tree-tailcall.c: Update tree_pass descriptors.
12117         * tree-pass.h (tree_opt_pass): Rename to ...
12118         (opt_pass) ... this one; add "type" field and remove letter field.
12119         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12120         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12121         all_lowering_passes): Update declaration.
12122         * ipa-cp.c: Update tree_pass descriptors.
12123         * final.c: Update tree_pass descriptors.
12124         * omp-low.c: Update tree_pass descriptors.
12125         * tree-ssa-dse.c: Update tree_pass descriptors.
12126         * ipa-reference.c: Update tree_pass descriptors.
12127         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12128         * auto-inc-dec.c: Update tree_pass descriptors.
12129         * reorg.c: Update tree_pass descriptors.
12130         * cgraphunit.c: Update tree_pass descriptors.
12131         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12132         * tree-ssa-ccp.c: Update tree_pass descriptors.
12133         * df-core.c: Update tree_pass descriptors.
12134         * mode-switching.c: Update tree_pass descriptors.
12135         * tree-nomudflap.c: Update tree_pass descriptors.
12136         * modulo-sched.c: Update tree_pass descriptors.
12137         * ipa-pure-const.c: Update tree_pass descriptors.
12138         * cse.c: Update tree_pass descriptors.
12139         * web.c: Update tree_pass descriptors.
12140         * tree-stdarg.c: Update tree_pass descriptors.
12141         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12142         * tree-ssa-dom.c: Update tree_pass descriptors.
12143         * tree-nrv.c: Update tree_pass descriptors.
12144         * tree-ssa-alias.c: Update tree_pass descriptors.
12145         * loop-init.c: Update tree_pass descriptors.
12146         * gimple-low.c: Update tree_pass descriptors.
12147         * ipa-inline.c: Update tree_pass descriptors.
12148         * tree-ssa-sink.c: Update tree_pass descriptors.
12149         * global.c: Update tree_pass descriptors.
12150         * ifcvt.c: Update tree_pass descriptors.
12151         * jump.c: Update tree_pass descriptors.
12152         * predict.c: Update tree_pass descriptors.
12153         * tree-ssa-loop.c: Update tree_pass descriptors.
12154         * recog.c: Update tree_pass descriptors.
12155         * dse.c: Update tree_pass descriptors.
12156         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12157         * tree-eh.c: Update tree_pass descriptors.
12158         * regmove.c: Update tree_pass descriptors.
12159         * local-alloc.c
12160         * function.c: Update tree_pass descriptors.
12161         * tree-vectorizer.c: Update tree_pass descriptors.
12162         * gcse.c: Update tree_pass descriptors.
12163         * ipa-type-escape.c: Update tree_pass descriptors.
12164         * tree-if-conv.c: Update tree_pass descriptors.
12165         * init-regs.c: Update tree_pass descriptors.
12166         * ipa.c: Update tree_pass descriptors.
12167         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12168         * rtl-factoring.c: Update tree_pass descriptors.
12169         * lower-subreg.c: Update tree_pass descriptors.
12170         * bt-load.c: Update tree_pass descriptors.
12171         * tree-dfa.c: Update tree_pass descriptors.
12172         * except.c: Update tree_pass descriptors.
12173         * emit-rtl.c: Update tree_pass descriptors.
12174         * cfgexpand.c: Update tree_pass descriptors.
12175         * tree-cfgcleanup.c: Update tree_pass descriptors.
12176         * cfgcleanup.c: Update tree_pass descriptors.
12177         * tree-ssa-pre.c: Update tree_pass descriptors.
12178         * tree-sra.c: Update tree_pass descriptors.
12179         * tree-mudflap.c: Update tree_pass descriptors.
12180         * tree-ssa-copy.c: Update tree_pass descriptors.
12181         * cfglayout.c: Update tree_pass descriptors.
12182         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12183         * tree-ssa-dce.c: Update tree_pass descriptors.
12184         * tree-ssa.c: Update tree_pass descriptors.
12185         * regclass.c: Update tree_pass descriptors.
12186         * integrate.c: Update tree_pass descriptors.
12187         * tree-optimize.c: Update tree_pass descriptors.
12188         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12189         * tree-object-size.c: Update tree_pass descriptors.
12190         * combine.c: Update tree_pass descriptors.
12191         * tree-outof-ssa.c: Update tree_pass descriptors.
12192         * bb-reorder.c: Update tree_pass descriptors.
12193         * stack-ptr-mod.c: Update tree_pass descriptors.
12194         * var-tracking.c: Update tree_pass descriptors.
12195         * tree-profile.c: Update tree_pass descriptors.
12196         * tree-vect-generic.c: Update tree_pass descriptors.
12197         * reg-stack.c: Update tree_pass descriptors.
12198         * sched-rgn.c: Update tree_pass descriptors.
12199         * tree-ssa-structalias.c: Update tree_pass descriptors.
12200         * tree-cfg.c: Update tree_pass descriptors.
12201         * passes.c (current_pass): Update declaration.
12202         (finish_optimization_passes): Update.
12203         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12204         (register_one_dump_file, register_dump_files_1, next_pass_1):
12205         Update arguments.
12206         (init_optimization_passes): Update handling of new types.
12207         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12208         * ipa-struct-reorg.c: Update tree_pass descriptors.
12209         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12210         * combine-stack-adj.c: Update tree_pass descriptors.
12211         * cfgrtl.c: Update tree_pass descriptors.
12212         * dce.c: Update tree_pass descriptors.
12213         * tree-ssanames.c: Update tree_pass descriptors.
12215 2008-03-19  Richard Guenther  <rguenther@suse.de>
12217         PR middle-end/35609
12218         * tree-ssa.c (walk_data): New structure.
12219         (warn_uninitialized_var): If not always_executed warn with "maybe"
12220         instead of "is".
12221         (execute_early_warn_uninitialized): Compute post-dominators.
12222         Initialize always_executed before processing each basic block.
12224 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12226         PR target/35504
12227         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12228         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12230 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12232         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12234 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12236         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12237         is true.
12238         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12239         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12240         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12241         target after ignore has been set, and move there also the commputation
12242         of subtarget and original_target.
12243         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12244         (LANG_HOOKS_INITIALIZER): Remove it.
12245         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12247 2008-03-18  Richard Guenther  <rguenther@suse.de>
12249         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12250         found an expression with constants, note that in the VN for the lhs.
12251         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12252         fold them to constants if possible.  Run cleanup_cfg if done so.
12253         (execute_pre): Return todo.
12254         (do_pre): Likewise.
12255         (execute_fre): Likewise.
12256         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12257         of constants.
12258         (get_prop_source_stmt): Look through pointer conversions.
12260 2008-03-18  Jan Hubicka  <jh@suse.cz>
12262         * tree-pretty-print.c: Include predict.h.
12263         (dump_generic_node): Dump predictor.
12264         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12265         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12266         * gimple-low.c (lower_stmt): Likewise.
12267         * expr.c (expand_expr_real): Likewise.
12268         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12269         them.
12270         (build_predict_expr, build_predict_expr): New.
12271         * predict.h (predictor_name, build_predict_expr): Update.
12272         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12273         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12274         * predict.def (PRED_CONTINUE): Update hitrate.
12275         * tree.def (PREDICT_EXPR): Define.
12276         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12277         do not handle BIND_EXPR.
12278         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12279         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12280         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12281         operands.
12283 2008-03-18  Michael Matz  <matz@suse.de>
12285         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12287 2008-03-18  Richard Guenther  <rguenther@suse.de>
12289         * tree-gimple.h (is_gimple_invariant_address): Declare.
12290         (is_gimple_constant): Likewise.
12291         * tree-gimple.c (is_gimple_constant): New function.
12292         (is_gimple_invariant_address): Likewise.
12293         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12294         and is_gimple_invariant_address.
12295         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12296         previous change.
12297         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12298         an addressable base.
12300 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12302         PR middle-end/35611
12303         * gimplify.c (gimplify_expr): Gimplify second operand of
12304         OMP_ATOMIC_LOAD.
12306 2008-03-17  Richard Guenther  <rguenther@suse.de>
12308         PR tree-optimization/19637
12309         * fold-const.c (fold_unary): Remove restrictions of removing
12310         intermediate pointer-conversions (P2)(P1)P0.
12311         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12312         conversion to void pointer.
12313         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12315 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12317         PR debug/31510
12318         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12319         emulated thread local variables.
12321 2008-03-16  Richard Guenther  <rguenther@suse.de>
12323         PR middle-end/35607
12324         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12325         expand TREE_INVARIANT operations that are not gimple invariant.
12327 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12329         * doc/extend.texi (Alignment): Say that the ABI controls
12330         the __alignof__ for non-strict-alignment targets rather
12331         than being a recommendation.
12333 2008-03-15  Paul Brook  <paul@codesourcery.com>
12335         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12336         annotations.
12337         (arm_output_fn_unwind): Mark functions that can not be unwound.
12339 2008-03-15  Paul Brook  <paul@codesourcery.com>
12341         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12342         extension instructions.
12344 2008-03-15  Richard Guenther  <rguenther@suse.de>
12346         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12347         and fold constant aggregate refs.
12348         (fold_const_aggregate_ref): Handle string constants
12349         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12350         (evaluate_stmt): Simplify now that ccp_fold folds constant
12351         aggregate refs.
12353 2008-03-15  Paul Brook  <paul@codesourcery.com>
12355         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12356         (extzv): Use gen_extzv_t2.
12357         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12359 2008-03-15  Richard Guenther  <rguenther@suse.de>
12361         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12362         (fold_const_aggregate_ref): Likewise.
12363         (get_value): Return NULL if we don't have any values.
12364         (ccp_finalize): Set const_val to NULL after freeing it.
12365         * tree-flow.h (get_symbol_constant_value): Declare.
12366         (fold_const_aggregate_ref): Likewise.
12367         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12369 2008-03-15  Richard Guenther  <rguenther@suse.de>
12371         PR middle-end/35593
12372         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12373         to not produce negative array indices if not allowed.  Add
12374         parameter to indicate that.
12375         (maybe_fold_offset_to_component_ref): Allow negative array
12376         indices only for the first member of a structure.
12377         (maybe_fold_offset_to_reference): Allow negative array indices.
12378         (maybe_fold_stmt_addition): Likewise.
12380 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12381             Anatoly Sokolov <aesok@post.ru>
12383         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12384         (avr_arch): Add ARCH_AVR6.
12385         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12386         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
12387         instead of fixed value 2.
12388         (print_operand_address): Use gs() asm specifier instead of pm().
12389         (avr_assemble_integer): (Ditto.).
12390         (avr_output_addr_vec_elt): (Ditto.).
12391         (print_operand): Handle "!" code.
12392         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
12393         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12394         (AVR_HAVE_EIJMP_EICALL): Define.
12395         (AVR_3_BYTE_PC): Redefine.
12396         (AVR_2_BYTE_PC): (Ditto.).
12397         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12398         (LINK_SPEC): Add atmega2560 and atmega2561.
12399         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
12400         (crtm2561.o).
12401         * config/avr/avr.md (call_insn): Use eicall instead of icall 
12402         for 3 byte PC devices.
12403         (call_value_insn): (Ditto.).
12404         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12405         (indirect_jump): Use only for for 2 byte PC devices.
12406         (*tablejump): (Ditto.).
12407         (*indirect_jump_avr6): Add insn.
12408         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12409         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
12410         instead of ijmp for 3 byte PC devices.
12411         (__tablejump2__): (Ditto.).
12412         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12413         (MULITLIB_DIRNAMES): (Ditto.). 
12414         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12416 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12418         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12419         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12420         ("mmx_psadbw"): Use V1DI mode for operand 0.
12421         * config/i386/i386-modes.def (V1SI): New vector mode.
12422         * config/i386/i386.c (struct builtin_description)
12423         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12424         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12425         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12426         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12427         v1di_ftype_v8qi_v8qi type.
12428         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12430         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12431         __builtin_ia32_pmuludq]: Fix the mode of return value.
12433 2008-03-15  Richard Guenther  <rguenther@suse.de>
12435         PR middle-end/35595
12436         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12437         being a PHI_NODE.
12439 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12440         
12441         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12442         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12443         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12444         unless TARGET_SERIALIZE_VOLATILE is enabled.
12445         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12446         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12447         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12449 2008-03-14  Richard Guenther  <rguenther@suse.de>
12451         PR tree-optimization/34172
12452         * tree-flow.h (refs_may_alias_p): Declare.
12453         (get_single_def_stmt): Likewise.
12454         (get_single_def_stmt_from_phi): Likewise.
12455         (get_single_def_stmt_with_phi): Likewise.
12456         * tree-dfa.c (refs_may_alias_p): New function.
12457         (get_single_def_stmt): Likewise.
12458         (get_single_def_stmt_from_phi): Likewise.
12459         (get_single_def_stmt_with_phi): Likewise.
12460         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12461         (vn_reference_lookup_1): New helper function.
12462         (vn_reference_lookup): Walk the virtual use-def chain to
12463         continue searching for a match if the def does not alias the
12464         reference we are looking for.
12466 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12468         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12469         archive and Perzl.  Update The Written Word listing.
12471 2008-03-14  Richard Guenther  <rguenther@suse.de>
12473         PR tree-optimization/34043
12474         PR tree-optimization/33989
12475         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12476         when doing FRE.
12477         (bitmap_find_leader): Use extra argument to verify dominance
12478         relationship inside a basic-block.
12479         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12480         (find_leader_in_sets): Adjust.
12481         (create_component_ref_by_pieces): Take extra argument for
12482         dominance check, handle lookup failures.
12483         (find_or_generate_expression): Likewise.
12484         (create_expression_by_pieces): Likewise.
12485         (insert_into_preds_of_block): Adjust.
12486         (create_value_expr_from): If asked for, verify all operands
12487         are in the blocks AVAIL_OUT set.
12488         (make_values_for_stmt): Check for SSA_NAMEs that are life
12489         over an abnormal edge.
12490         (compute_avail): Remove such check.
12491         (do_SCCVN_insertion): New function.
12492         (eliminate): If we do not find a leader suitable for replacement
12493         insert a replacement expression from SCCVN if available.
12494         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12495         (struct vn_ssa_aux): Add needs_insertion flag.
12496         * tree-ssa-sccvn.c (may_insert): New global flag.
12497         (copy_reference_ops_from_ref): Value-number union member access
12498         based on its size, not type and member if insertion is allowed.
12499         (visit_reference_op_load): For a weak match from union type
12500         punning lookup a view-converted value and insert a SSA_NAME
12501         for that value if that is not found.
12502         (visit_use): Make dumps shorter.  Do not disallow value numbering
12503         SSA_NAMEs that are life over an abnormal edge to constants.
12504         (free_scc_vn): Release inserted SSA_NAMEs.
12505         (run_scc_vn): New flag to specify whether insertion is allowed.
12506         Process SSA_NAMEs in forward order.
12507         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12508         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12509         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12510         pointer type to/from integral types that do not change the
12511         precision to regular conversions.
12513 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12515         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12516         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12517         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12518         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12519         input arguments and the mode of return value.  Built-in functions
12520         that operate on whole 64-bit MMX register now use V1DI mode.
12522 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12523             Olga Golovanevsky  <olga@il.ibm.com>
12525         PR tree-optimization/35041
12526         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12527         to locate the right position in a statement.
12529 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12531         PR target/34000
12532         PR target/35553
12533         * config/i386/xmmintrin.h:  Change all static inline functions to
12534         extern inline and add __gnu_inline__ attribute.
12535         * config/i386/bmintrin.h: Ditto.
12536         * config/i386/smmintrin.h: Ditto.
12537         * config/i386/tmmintrin.h: Ditto.
12538         * config/i386/mmintrin-common.h: Ditto.
12539         * config/i386/ammintrin.h: Ditto.
12540         * config/i386/emmintrin.h: Ditto.
12541         * config/i386/pmmintrin.h: Ditto.
12542         * config/i386/mmintrin.h: Ditto.
12543         * config/i386/mm3dnow.h: Ditto.
12545 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12547         PR middle-end/35185
12548         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12549         (lower_omp_2): New function.
12550         (lower_omp_1, lower_omp): Rewritten.
12552 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12554         PR 35054
12555         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12556         with the phrase "Microsoft Windows compilers".
12557         (Push/Pop Macro Pragmas): New subsection. Document
12558         #pragma push_macro and pragma pop_macro.
12560 2008-03-12  Paul Brook  <paul@codesourcery.com>
12562         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12564 2008-03-12  Paul Brook  <paul@codesourcery.com>
12566         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12567         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12568         (thumb2_addsi_shortim): Rename ...
12569         (thumb2_addsi_short): ... to this.  Allow register operands.
12570         (thumb2_subsi_short): New pattern.
12571         (thumb2_one_cmplsi2_short,
12572         thumb2_negsi2_short): New patterns and peepholes.
12574 2008-03-12  Paul Brook  <paul@codesourcery.com>
12576         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12578 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12580         * config/i386/i386.md (int_cond): New code iterator.
12581         (fp_cond): Ditto.
12582         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12583         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12584         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12585         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12586         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12587         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12588         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12589         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12591 2008-03-12  Paul Brook  <paul@codesourcery.com>
12593         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12594         instead of {arm,thumb}_compute_save_reg_mask.
12595         (output_return_instruction): Ditto.
12596         (thumb_unexpanded_epilogue): Ditto.
12597         (thumb1_expand_prologue): Ditto.
12598         (thumb1_output_function_prologue): Ditto.
12599         (arm_set_return_address): Ditto.
12600         (thumb_set_return_address): Ditto.
12601         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12602         regs to achieve stack alignment.
12603         (thumb1_compute_save_reg_mask): Fix compiler warning.
12604         (arm_output_epilogue): Use offsets->saved_regs_mask.
12605         Adjust stack pointer by poping call clobered registers.
12606         (arm_expand_prologue): Use offsets->saved_regs_mask.
12607         Adjust stack pointer by pushing extra registers.
12608         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12610 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12612         PR tree-opt/35422
12613         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12614         conversion to the operands of a multiplication.
12616 2008-03-12  Richard Guenther  <rguenther@suse.de>
12618         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12619         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12620         * timevar.def (TV_TREE_PHIPROP): Add.
12621         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12622         pass description.  Use TV_TREE_PHIPROP.
12623         * tree-ssa-forwprop.c: Remove phiprop code.
12625 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12627         PR middle-end/35549
12628         * omp-low.c (maybe_lookup_decl): Constify first argument.
12629         (use_pointer_for_field): Change last argument from bool to
12630         omp_context *.  Disallow shared copy-in/out in nested
12631         parallel if decl is shared in outer parallel too.
12632         (build_outer_var_ref, scan_sharing_clauses,
12633         lower_rec_input_clauses, lower_copyprivate_clauses,
12634         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12636 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12637             Ira Rosen  <irar@il.ibm.com>
12639         * tree-vectorizer.c (free_stmt_vec_info): New function.
12640         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12641         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12642         * tree-vectorizer.h (free_stmt_vec_info): Declare.
12643         * tree-vect-transform.c (vectorizable_conversion): Free
12644         vec_oprnds0 if it was allocated.
12645         (vect_permute_store_chain): Remove unused VECs.
12646         (vectorizable_store): Free VECs that are allocated in the..
12647         function.
12648         (vect_transform_strided_load, vectorizable_load): Likewise.
12649         (vect_remove_stores): Simplify the code.
12650         (vect_transform_loop): Move code to vect_remove_stores().
12651         Call vect_remove_stores() and free_stmt_vec_info().
12653 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12655         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
12656         TARGET_HPUX.  Revise comment.
12657         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
12658         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
12659         Use sr4 variant of `be' instruction when not generating PIC code.
12660         (attr_length_call): Adjust for above change.
12662 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12664         * ipa-reference.c (static_execute): Remove module_statics_const and
12665         associated setting code.
12667 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12669         PR target/35540
12670         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
12671         predicate for operand 1.
12672         (paritysi2_cmp): Use register_operand predicate for operand 2.
12673         Use earlyclobber modifier for operand 1.  Remove support for
12674         memory operands.
12675         (paritydi2_cmp): Use register_operand predicate for operand 3.
12676         Use earlyclobber modifier for operand 1.  Remove support for
12677         memory operands.
12679 2008-03-11  Paul Brook  <paul@codesourcery.com>
12680             Vladimir Prus  <vladimir@codesourcery.com>
12682         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
12683         (arm_compute_save_reg0_reg12_mask): Always
12684         check if register 11 must be saved.  Always safe hard frame pointer
12685         when frame_pointer_needeed.
12686         (arm_compute_save_reg_mask): Save IP and PC
12687         only with apcs frames.
12688         (arm_output_epilogue): Adjust Thumb2 codepath to
12689         be also invoked and work for ARM non-apcs frames.
12690         (arm_expand_prologue): Don't bother saving IP
12691         for non-apcs frame, since it's not clobbered by
12692         prologue code.  Implement non-apcs frame
12693         layout.
12695 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12697         PR rtl-optimization/35281
12698         * expr.c (convert_move): Use a new pseudo for the intermediate
12699         from_mode->word_mode result.
12701 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
12703         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
12704         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
12705         * toplev.c (compile_file): Don't call it.
12707 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
12709         PR middle-end/35526
12710         * expr.c (store_expr): Call emit_block_move if the mode
12711         of "temp" RTX is BLKmode.
12713 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12714             Richard Guenther  <rguenther@suse.de>
12716         PR tree-optimization/31358
12717         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
12718         the step with a NULL_TREE.
12719         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
12720         to sizetype if type is a pointer type.
12721         (add_candidate_1): Don't convert the base and step to
12722         the generic type if the orginal type is a pointer type.
12723         (add_iv_value_candidates): Use sizetype for the step
12724         if type is a pointer type.
12725         (cand_value_at): Likewise.
12726         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
12727         for pointer types.
12728         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
12729         Don't convert the tem affine to the type.
12730         (add_elt_to_tree): Use sizetype for the step if a pointer.
12731         Use POINTER_PLUS_EXPR for pointers.
12732         (aff_combination_to_tree): Use sizetype for the step if a
12733         pointer.
12735 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
12737         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
12738         Remove commutativity hint.
12740 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
12742         PR c/35438
12743         PR c/35439
12744         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
12745         errorneous type.  Check that v is a VAR_DECL.
12747         PR middle-end/35099
12748         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
12750 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
12752         PR tree-optimization/35494
12753         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
12754         may be overriden at link and run time.
12756 2008-03-10  Richard Guenther  <rguenther@suse.de>
12758         PR tree-optimization/34677
12759         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
12760         (poolify_tree): Likewise.
12761         (modify_expr_template): Likewise.
12762         (poolify_modify_stmt): Likewise.
12763         (insert_fake_stores): Handle all component-ref style stores
12764         in addition to INDIRECT_REF.  Also handle complex types.
12765         Do not poolify the inserted load.
12766         (realify_fake_stores): Do not rebuild the tree but only
12767         make it a SSA_NAME copy.
12768         (init_pre): Remove initialzation of modify_expr_template.
12769         Do not allocate modify_expr_node_pool.
12770         (fini_pre): Do not free modify_expr_node_pool.
12772 2008-03-10  Paul Brook  <paul@codesourcery.com>
12774         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
12775         to avoid conflicts.
12777 2008-03-10  Paul Brook  <paul@codesourcery.com>
12778             Mark Shinwell  <shinwell@codesourcery.com>
12780         * config/arm/cortex-r4.md: New.
12781         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
12782         insn attributes.
12783         * config/arm/arm.md: Include cortex-r4.md.
12784         (insn): Add smmls, sdiv and udiv values.
12785         (generic_sched): Don't use generic scheduling for Cortex-R4.
12786         (arm_issue_rate): New function.
12787         (TARGET_SCHED_ISSUE_RATE): Define.
12789 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
12791         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
12793 2008-03-10  Richard Guenther  <rguenther@suse.de>
12795         * tree-ssa-pre.c (get_sccvn_value): Simplify.
12796         (compute_avail): Do not add stmt uses to AVAIL_OUT.
12798 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
12800         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12801         Set default to true.
12803 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12805         * c.opt (Wsynth): Deprecate.
12806         * doc/invoke.texi (Option Summary, Warning Options): Document
12807         -Wno-format-contains-nul.
12809 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
12811         PR target/35496
12812         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
12813         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
12815 2008-03-09  Ira Rosen  <irar@il.ibm.com>
12817         * config/rs6000/rs6000.c (builtin_description): Rename vector
12818         left shift operations.
12819         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
12820         (altivec_vsl<VI_char>): Rename to ...
12821         (ashl<mode>3): ... new name.
12822         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
12823         gen_ashlv4si3.
12824         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
12826 2008-03-08  Richard Guenther  <rguenther@suse.de>
12828         * coverage.h (tree_coverage_counter_addr): Declare.
12829         * coverage.c (tree_coverage_counter_addr): New function.
12830         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
12831         before using again.
12832         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
12833         (tree_gen_one_value_profiler): Likewise.
12834         (tree_gen_ic_profiler): Likewise.
12835         (tree_gen_average_profiler): Likewise.
12836         (tree_gen_ior_profiler): Likewise.
12838 2008-03-08  Richard Guenther  <rguenther@suse.de>
12840         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
12841         (vn_binary_op_insert): Likewise.
12842         (vn_unary_op_lookup): Likewise.
12843         (vn_unary_op_insert): Likewise.
12844         (vn_nary_op_lookup): Declare.
12845         (vn_nary_op_insert): Likewise.
12846         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
12847         and binary hashes, use a single obstack for unary_op_pool
12848         and binary_op_pool.
12849         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
12850         a single struct vn_nary_op_s.  Store tree code length and
12851         a variable number of operands.
12852         (struct vn_reference_op_struct): Remove unused op2.
12853         (vn_reference_op_eq): Do not compare op2.
12854         (vn_reference_op_compute_hash): Do not compute hash of op2.
12855         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
12856         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
12857         with vn_nary_op_compute_hash.
12858         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
12859         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
12860         vn_nary_op_lookup.
12861         (vn_unary_op_insert, vn_binary_op_insert): Replace with
12862         vn_nary_op_insert.
12863         (visit_unary_op): Call nary functions.
12864         (visit_binary_op): Likewise.
12865         (process_scc): Adjust for struct vn_tables_s changes.
12866         (allocate_vn_table): Likewise.
12867         (free_vn_table): Likewise.
12868         * tree-vn.c (vn_add): Call nary functions.
12869         (vn_lookup): Likewise.
12871 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
12873         PR target/35498
12874         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
12875         wdst back after sync_compare_and_swapqhi_internal.
12877 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
12879         PR target/22152
12880         * config/i386/i386-modes.def (V1DI): New vector mode.
12881         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
12882         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
12883         (MMXMODE248): Ditto.
12884         (MMXMODE): Add V1DI mode.
12885         (mmxvecsize): Change DI mode to V1DI mode.
12886         ("mov<mode>): Use MMXMODEI8 mode iterator.
12887         ("*mov<mode>_internal_rex64"): Ditto.
12888         ("*mov<mode>_internal"): Ditto.
12889         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
12890         ("mmx_sub<mode>3"): Ditto.
12891         ("mmx_adddi3"): Remove insn pattern.
12892         ("mmx_subdi3"): Ditto.
12893         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
12894         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
12895         ("mmx_ashl<mode>3"): Ditto.
12896         ("mmx_lshrdi3"): Remove insn pattern.
12897         ("mmx_ashldi3"): Ditto.
12898         * config/i386/i386.c (classify_argument): Handle V1DImode.
12899         (function_arg_advance_32): Ditto.
12900         (function_arg_32): Ditto.
12901         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
12902         mmx_addv1di3 insn pattern.
12903         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
12904         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
12905         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
12906         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
12907         Remove definitions of built-in functions.
12908         (V1DI_type_node): New node.
12909         (v1di_ftype_v1di_int): Ditto.
12910         (v1di_ftype_v1di_v1di): Ditto.
12911         (v2si_ftype_v2si_si): Ditto.
12912         (v4hi_ftype_v4hi_di): Remove node.
12913         (v2si_ftype_v2si_di): Ditto.
12914         (ix86_init_mmx_sse_builtins): Handle V1DImode.
12915         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
12916         Redefine builtins using def_builtin_const with *_ftype_*_int node.
12917         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
12918         Add new builtins using def_builtin_const.
12919         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
12920         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
12921         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
12922         * config/i386/mmintrin.h (__v1di): New typedef.
12923         (_mm_add_si64): Cast arguments to __v1di type.
12924         (_mm_sub_si64): Ditto.
12925         (_mm_sll_pi16): Cast __count to __v4hi type.
12926         (_mm_sll_pi32): Cast __count to __v2si type.
12927         (_mm_sll_si64): Cast arguments to __v1di type.
12928         (_mm_srl_pi16): Cast __count to __v4hi type.
12929         (_mm_srl_pi32): Cast __count to __v2si type.
12930         (_mm_srl_si64): Cast arguments to __v1di type.
12931         (_mm_sra_pi16): Cast __count to __v4hi type.
12932         (_mm_sra_pi32): Cast __count to __v2si type.
12933         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
12934         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
12935         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
12936         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
12937         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
12938         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
12939         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
12940         (_mm_srai_pi32): Use __builtin_ia32_psradi.
12941         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
12942         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12943         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12944         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
12946 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
12948         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
12950 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
12952         PR target/35373
12953         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
12954         reg+const addressing for Altivec modes.  Don't generate reg+reg
12955         addressing for TFmode or TDmode quantities.
12957 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
12959         * c-common.c (vector_types_convertible_p): Call langhook
12960         instead of comptypes.
12962 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12964         PR tree-opt/35402
12965         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
12966         integral and scalar float variables which have a
12967         NULL DECL_INITIAL.
12969 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
12971         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
12972         dwarf_register_span hook when emitting unwind information for
12973         register-to-memory saves.
12974         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
12975         (rs6000_frame_related): Remove call to spe_synthesize_frame.
12977 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
12979         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
12980         for the same VAR_DECL.
12982 2008-03-06  Tom Tromey  <tromey@redhat.com>
12984         * treelang: Delete.
12985         * doc/standards.texi (Standards): Don't mention treelang.
12986         * doc/invoke.texi (Overall Options): Don't mention treelang.
12987         * doc/install.texi (Prerequisites): Don't mention bison or
12988         treelang.
12989         (Configuration): Don't mention treelang.
12990         (Building): Likewise.
12991         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
12993 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
12995         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
12996         word-extractions out of a multi-word object.
12998 2008-03-06  Richard Guenther  <rguenther@suse.de>
13000         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13001         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13002         result type and precision.
13003         * expr.c (get_inner_reference): Set unsignedp based on the result
13004         type of BIT_FIELD_REF.
13005         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13006         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13007         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13008         for BIT_FIELD_REF.
13009         (sra_build_assignment): Likewise.
13010         (sra_build_elt_assignment): Likewise.
13011         (sra_explode_bitfield_assignment): Likewise.
13012         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13013         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13014         set BIT_FIELD_REF_UNSIGNED.
13015         (vectorizable_load): Likewise.
13017 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13019         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13020         at bb start.
13022 2008-03-06  Richard Guenther  <rguenther@suse.de>
13024         * alias.c (struct alias_set_entry): Move has_zero_child field
13025         to pack with alias_set.
13027 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13029         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13030         32bit host.
13032 2008-03-05  Ian Lance Taylor  <iant@google.com>
13034         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13036 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13038         * fwprop.c (update_df): Support width and offset parameters of
13039         df_ref_create.
13040         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13041         global_conflicts): Change DF_REF_EXTRACT to either
13042         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13043         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13044         * df-scan.c (df_ref_record, df_defs_record,
13045         df_ref_create_structure, df_def_record_1, df_uses_record,
13046         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13047         df_bb_refs_collect, df_entry_block_defs_collect,
13048         df_exit_block_uses_collect): Support new width and offset fields.
13049         (ref_extract_pool): New storage pool.
13050         (df_free_ref): New function.
13051         (df_reg_chain_unlink, df_free_collection_rec,
13052         df_sort_and_compress_refs): Call df_free_ref.
13053         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13054         of df_ref_extract.
13055         (df_ref_create_structure): Allocate df_ref_extract if offset and
13056         width fields are used.
13057         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13058         (df_uses_record): Get offset and width from ZERO_EXTRACT 
13059         and SIGN_EXTRACT.
13060         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13061         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13062         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13063         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13064         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13065         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13066         (df_ref_extract): New structure.
13067         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13068         (df_ref_create): Add width and offset parameters.
13069         
13070 2008-03-05  Richard Guenther  <rguenther@suse.de>
13072         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13073         Use ranges_overlap_p.
13074         (offset_overlaps_with_access): Rename
13075         to ranges_overlap_p and move ...
13076         * tree-flow-inline.h (ranges_overlap_p): ... here.
13078         * tree.h (get_inner_reference, handled_component_p): Update
13079         comments.
13081         * tree.h (record_component_aliases, get_alias_set,
13082         alias_sets_conflict_p, alias_sets_must_conflict_p,
13083         objects_must_conflict_p): Move declarations ...
13084         * alias.h (record_component_aliases, get_alias_set,
13085         alias_sets_conflict_p, alias_sets_must_conflict_p,
13086         objects_must_conflict_p): ... here.
13087         Include coretypes.h.
13088         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13090 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13092         * cfg.c: Include tree-flow.h.
13093         (remove_edge_raw): Call redirect_edge_var_map_clear.
13094         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13095         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13096         (redirect_edge_var_map_result): New.
13097         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13098         PENDING_STMT use with redirect_edge_var_map_*.
13099         * tree-ssa.c (edge_var_maps): New definition.
13100         (redirect_edge_var_map_add): New.
13101         (redirect_edge_var_map_clear): New.
13102         (redirect_edge_var_map_dup): New.
13103         (redirect_edge_var_map_vector): New.
13104         (redirect_edge_var_map_destroy): New.
13105         (ssa_redirect_edge): Replace PENDING_STMT use with
13106         redirect_edge_var_map_*.
13107         (flush_pending_stmts): Same.
13108         (delete_tree_ssa): Destroy edge var map.
13109         * tree-flow.h (struct _edge_var_map): New.
13110         Define edge_var_map vector type.
13111         Declare redirect_edge_var_map_* prototypes.
13112         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13113         * tree-cfg.c (reinstall_phi_args): Replace
13114         PENDING_STMT use with redirect_edge_var_map_*.
13116 2008-03-05  Richard Guenther  <rguenther@suse.de>
13118         PR tree-optimization/35472
13119         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13120         whose single use_stmt has a overlapping set of loaded and
13121         stored symbols as that use_stmt might be a noop assignment then.
13123 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13125         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13127 2008-03-05  Richard Guenther  <rguenther@suse.de>
13129         PR c++/35336
13130         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13131         should be constants.
13132         * tree-cfg.c (verify_expr): Verify it.
13133         * fold-const.c (fold_truthop): Remove code generating
13134         BIT_FIELD_REFs of structure bases.
13135         (fold_binary): Likewise.
13136         (fold_ternary): Position and size of BIT_FIELD_REFs are
13137         always host integers.
13138         (make_bit_field_ref): Remove.
13139         (optimize_bit_field_compare): Remove.
13140         (all_ones_mask_p): Remove.
13142 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13144         PR gcc/33009
13145         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13146         (split_block_and_df_analyze): New. Split basic block and rebuild
13147         dataflow.
13148         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13149         SPLIT_BLOCK.
13150         (split_pattern_seq): Likewise.
13151         (erase_matching_seqs): Likewise.
13152         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13154 2008-03-04  Geoff Keating  <geoffk@apple.com>
13156         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13157         declaration and code.
13158         (tree_invalid_nonnegative_warnv_p): Likewise.
13160 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13162         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13163         examples.  Truncate option-names then causing overfull hbox.
13165 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13167         PR target/35222
13168         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13169         on hpux10.
13170         * configure: Rebuilt.
13172 2008-03-04  Rafael Espindola  <espindola@google.com>
13174         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13175         (tree_unary_nonnegative_warnv_p): New.
13176         (tree_binary_nonnegative_warnv_p): New.
13177         (tree_single_nonnegative_warnv_p): New.
13178         (tree_invalid_nonnegative_warnv_p): New.
13179         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13181 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13183         PR 28322
13184         * opts.c (handle_option): Postpone 'unknown option' errors only for
13185         warning options.
13187 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13189         PR target/35453
13190         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13191         (_SIDD_XXX): This.
13193 2008-03-04  Rafael Espindola  <espindola@google.com>
13195         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13196         (tree_binary_nonzero_warnv_p): New.
13197         (tree_single_nonzero_warnv_p): New.
13198         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13200 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13202         PR middle-end/35456
13203         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13204         transformations for modes that have signed zeros.
13205         * ifcvt.c (noce_try_abs): Ditto.
13207 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13209         * config/i386/i386.c (override_options): Force
13210         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13212 2008-03-04  Jan Hubicka  <jh@suse.cz>
13214         PR c++/35262
13215         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13216         in last commit.
13218 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13220         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13221         label to probe the stack.
13223 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13225         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13226         (__gthr_win32_mutex_destroy): Declare.
13227         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13228         __gthr_win32_mutex_destroy.
13229         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13231 2008-03-03  Jan Hubicka  <jh@suse.cz>
13233         PR c++/35262
13234         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13235         aggressive on inlining cold calls.
13237 2008-03-03  Richard Guenther  <rguenther@suse.de>
13239         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13240         struct copies into the expression table.
13241         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13242         (try_to_simplify): Likewise.
13243         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13244         integral and pointer arguments which do not change the
13245         precision to NOP_EXPRs.
13246         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13247         VIEW_CONVERT_EXPR case.
13249 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13251         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13252         defined in a loop at depth 0 is invariant.
13253         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13254         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13255         be called at loop depth 0.
13257 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13259         PR driver/35420
13260         * gcc.c (process_command): Update copyright notice dates.
13261         * gcov.c (print_version): Likewise.
13262         * gcov-dump.c (print_version): Likewise.
13263         * mips-tfile.c (main): Likewise.
13264         * mips-tdump.c (main): Likewise.
13266 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13268         PR 24924
13269         * c-common.c (flag_permissive): Delete.
13270         (constant_expression_warnings): Check flags first.
13271         (constant_expression_error): New.
13272         * c-common.h (flag_permissive): Delete.
13273         (constant_expression_error): Declare.
13274         * flags.h (flag_permissive): Declare. Update description.
13275         * diagnostic.c (pedwarn): Update.
13276         (permerror): New.
13277         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13278         (permissive_error_kind): New.
13279         * toplev.c (flag_permissive): Define. Update description.
13280         * toplev.h (permissive_error_kind): Declare.
13281         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13282         (pedwarn_c90): Use pedantic_warning_kind.
13283         * c-opts.c (c_common_post_options): flag_permissive does not affect
13284         flag_pedantic_errors.
13286 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13288         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13289         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13290         __absvsi2, __absvDI2): Use unsigned arithmetic.
13292 2008-03-02  Andi Kleen  <ak@suse.de>
13293             Richard Guenther  <rguenther@suse.de>
13295         * struct-equiv.c: Remove file.
13296         * cfg_cleanup.c (condjump_equiv_p): Remove.
13297         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13298         (struct-equiv.o): Remove rule.
13299         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13300         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
13301         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13303 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13305         * ifcvt.c (noce_process_if_block): Try to handle only the then
13306         block if the else block exists but isn't suitable.
13308 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13310         PR gcc/35063
13311         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13312         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13313         regression from previous patch.
13315 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13317         PR gcc/35063
13318         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13319         implemented.
13320         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13321         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13322         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13323         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13324         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13325         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13326         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13327         (__gthread_mutex_destroy_function): Rename to
13328         __gthread_mutex_destroy.
13329         * gthr-dce.h (__gthread_mutex_destroy): Call
13330         pthread_mutex_destroy.
13331         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13332         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13333         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13335 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13337         * df-scan.c (df_ref_chain_change_bb): Simplify.
13338         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13339         set_block_for_insn if there's any change.
13340         * df.h ((df_insn_change_bb): Fix prototype.
13341         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13342         df_insn_change_bb, don't call set_block_for_insn.
13343         * emit-rtl.c (reorder_insns): Likewise.
13344         * haifa-sched.c (move_insn): Likewise.
13346 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13348         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13350 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13352         * tree-flow-inline.h (next_readonly_imm_use): Return
13353         NULL_USE_OPERAND_P after the end.
13355 2008-03-01  Richard Guenther  <rguenther@suse.de>
13357         PR tree-optimization/35411
13358         * tree-sra.c (sra_build_assignment): Split conversion to
13359         final type to a separate statement if we are not assigning
13360         to a register.
13362 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13364         * fold-const.c (fold_convertible_p): Correct the logic to follow
13365         that in fold_convert().
13367 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13369         PR c++/35315
13370         * tree-inline.c (build_duplicate_type): When we make a
13371         duplicate type, make it unique in the canonical types system.
13373 2008-02-29  Tom Tromey  <tromey@redhat.com>
13375         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13376         input_file_stack_history, input_file_stack_restored): Remove.
13377         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13378         * input.h (struct file_stack): Remove.
13379         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13380         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13381         Likewise.
13382         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13383         type.
13384         (diagnostic_last_module_changed): Add 'map' argument.
13385         (diagnostic_set_last_function): Likewise.
13386         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13387         line map, not input_file_stack.
13388         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13390 2008-02-29  Paul Brook  <paul@codesourcery.com>
13392         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13394 2008-02-29  Paul Brook  <paul@codesourcery.com>
13396         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13398 2008-02-29  Richard Guenther  <rguenther@suse.de>
13400         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13401         vn_lookup_or_add.
13402         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13403         value for comparing for a store match.
13404         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13405         (try_to_simplify): Do not do a full-blown reference lookup.
13407 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13409         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13410         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13412         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13414 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13416         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13417         strides against cache sizes.
13419 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13421         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13422         constant to fpul.
13424 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13426         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13427         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13428         is smaller than the original promoted value.
13429         (simplify_subreg): If OP is a SUBREG, try to preserve its
13430         SUBREG_PROMOTED_VAR_P information.
13432 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13434         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13435         (VN_INFO_GET): Allocate new objects on the obstack.
13436         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13437         for rpo_numbers_temp, for consistency.
13438         (free_scc_vn): Free the obstack.
13440 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13442         * doc/invoke.texi: Document -ftree-loop-distribution.
13443         * tree-loop-distribution.c: New.
13444         * tree-pass.h (pass_loop_distribution): New.
13445         * graphds.h (struct graph): Add htab_t indices.
13446         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13447         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13448         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13449         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13450         * tree-data-ref.c (debug_data_dependence_relations): New.
13451         (dump_data_dependence_relation): Also print data references.
13452         (free_data_ref): Extern.
13453         (same_access_functions): Moved...
13454         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13455         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13456         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13457         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13458         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13459         (stmts_from_loop): Skip LABEL_EXPR.
13460         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13461         New.
13462         (build_rdg): Initialize rdg->indices htab.
13463         (free_rdg, stores_from_loop, ref_base_address,
13464         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13465         have_similar_memory_accesses_1, ref_base_address_1,
13466         remove_similar_memory_refs): New.
13467         * tree-data-ref.h: Depend on tree-chrec.h.
13468         (debug_data_dependence_relations, free_data_ref): Declared.
13469         (same_access_functions): ... here.
13470         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13471         New.
13472         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13473         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13474         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13475         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13476         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13477         rdg_vertex_for_stmt): Declared.
13478         (struct rdg_edge): Add level.
13479         (RDGE_LEVEL): New.
13480         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13481         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13482         Declared.
13483         (rdg_has_similar_memory_accesses): New.
13484         * tree-vect-analyze.c: Remove unused static decls.
13485         * lambda.h (dependence_level): New.
13486         * common.opt (ftree-loop-distribution): New.
13487         * tree-flow.h (mark_virtual_ops_in_bb, 
13488         slpeel_tree_duplicate_loop_to_edge_cfg,
13489         rename_variables_in_loop): Declared.
13490         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13491         (OBJS-common): Add tree-loop-distribution.o.
13492         (tree-loop-distribution.o): New rule.
13493         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13494         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13495         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13497 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13499         PR target/33963
13500         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13501         other than structures and unions.
13503 2008-02-28  Richard Guenther  <rguenther@suse.de>
13505         Revert:
13506         2008-02-26  Richard Guenther  <rguenther@suse.de>
13508         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13509         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13510         (lookup_decl_from_uid): Declare.
13511         (remove_decl_from_map): Likewise.
13512         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13513         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13514         (decl_for_uid_map): New global hashtable mapping DECL_UID
13515         to the decl tree.
13516         (init_ttree): Allocate it.
13517         (insert_decl_to_uid_decl_map): New helper function.
13518         (make_node_stat): Insert new decls into the map.
13519         (copy_node_stat): Likewise.
13520         (lookup_decl_from_uid): New function.
13521         (remove_decl_from_map): Likewise.
13522         (print_decl_for_uid_map_statistics): New helper.
13523         (dump_tree_statistics): Call it.
13525         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13526         (referenced_var_iterator): Adjust.
13527         (FOR_EACH_REFERENCED_VAR): Adjust.
13528         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13529         (num_referenced_vars): Adjust.
13530         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13531         (first_referenced_var): Remove.
13532         (end_referenced_vars_p): Likewise.
13533         (next_referenced_var): Likewise.
13534         (referenced_var_iterator_set): New helper function.
13535         * tree-dfa.c (referenced_var_lookup): Adjust.
13536         (referenced_var_check_and_insert): Likewise.
13537         (remove_referenced_var): Likewise.
13538         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13539         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13540         (verify_call_clobbering): Likewise.
13541         (verify_memory_partitions): Likewise.
13542         (init_tree_ssa): Allocate bitmap instead of hashtable for
13543         referenced_vars.
13544         (delete_tree_ssa): Adjust.
13545         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13546         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13547         (compute_tag_properties): Likewise.
13548         (set_initial_properties): Likewise.
13549         (find_partition_for): Likewise.
13550         (update_reference_counts): Likewise.
13551         (dump_may_aliases_for): Likewise.
13552         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13553         (add_call_clobber_ops): Likewise.
13554         (add_call_read_ops): Likewise.
13555         (get_asm_expr_operands): Likewise.
13556         * tree-into-ssa.c (dump_decl_set): Likewise.
13557         (update_ssa): Likewise.
13558         * tree-sra.c (scan_function): Likewise.
13559         (decide_instantiations): Likewise.
13560         (scalarize_parms): Likewise.
13561         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13562         (dsa_named_for): Likewise.
13563         * tree-ssa-structalias.c (update_alias_info): Likewise.
13564         (merge_smts_into): Likewise.
13566 2008-02-27  David Daney  <ddaney@avtrex.com>
13568         PR target/34409
13569         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13570         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13571         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13572         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13573         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13575 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13577         PR target/25477
13578         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13579         (BUILT_IN_NEXTTOWARD): Remove.
13580         (BUILT_IN_NEXTTOWARDF): Ditto.
13581         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13582         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13584 2008-02-27  Tom Tromey  <tromey@redhat.com>
13586         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13587         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13589 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13591         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13592         update the respective field on newdecl.
13594 2008-02-27  Revital Eres  <eres@il.ibm.com>
13596         PR rtl-optimization/34999
13597         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13598         crossing edges that ends with a call insn.
13599         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13600         call insn and clear the EDGE_CROSSING flag of the crossing edge
13601         when fixing fallthru edges.
13603 2008-02-27  Richard Guenther  <rguenther@suse.de>
13605         PR middle-end/35390
13606         * fold-const.c (fold_unary): Return the correct argument,
13607         converted to the result type.
13609 2008-02-27  Richard Guenther  <rguenther@suse.de>
13611         PR middle-end/34971
13612         * expr.c (expand_expr_real_1): Assert on rotates that operate
13613         on partial modes.
13614         * fold-const.c (fold_binary): Use the types precision, not the
13615         bitsize of the mode if folding rotate expressions.  Build rotates
13616         only for full modes.
13618 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13620         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13621         and CPP_PRAGMA_EOL.
13622         * c-pragma.c (pragma_ns_name): New typedef.
13623         (registered_pp_pragmas): New variable.
13624         (c_pp_lookup_pragma): New function.
13625         (c_register_pragma_1): If flag_preprocess_only, do nothing
13626         for non-expanded pragmas, for expanded ones push pragma's
13627         namespace and name into registered_pp_pragmas vector.
13628         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13629         flag_preprocess_only, don't register GCC pch_preprocess
13630         pragma if flag_preprocess_only.
13631         * c-opts.c (c_common_init): Call init_pragma even if
13632         flag_preprocess_only.
13633         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13634         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13635         cpp_register_pragma if flag_preprocess_only.
13637 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13639         PR c/28800
13640         * c-parser.c (c_parser_translation_unit): Warn for empty
13641         translation unit, not empty source file.
13643 2008-02-26  Paul Brook  <paul@codesourcery.com>
13645         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
13646         operand for Thumb-2.
13647         * config/arm/arm.h (reg_class): Add CORE_REGS.
13648         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
13649         (BASE_REG_CLASS): Use CORE_REGS.
13650         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
13651         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
13652         (REGNO_OK_FOR_INDEX_P): Exclude SP.
13653         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
13654         ARM_REGNO_OK_FOR_INDEX_P.
13655         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
13656         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
13657         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
13658         (ldm/stm peepholes): Ditto.
13659         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
13660         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
13661         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
13662         * config/arm/constraints.md: Enable "k" constraint on ARM.
13664 2008-02-27  Ben Elliston  <bje@au.ibm.com>
13666         * config/rs6000/rs6000.c: Annotate cache line size field in all
13667         instances of struct processor_costs.
13669 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
13671         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
13672         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
13673         jump_bypass): New counters.
13674         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
13675         * dce.c (gate_ud_dce): Same.
13676         (gate_fast_dce): Same.
13677         * dse.c (gate_dse1): New function.
13678         (gate_dse2): New function.
13679         (gate_dse): Merge results of new gate functions.
13680         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
13681         (gate_handle_jump_bypass): Add dbg_cnt.
13682         (gate_handle_gcse): Add dbg_cnt.
13683         * ifcvt.c (gate_handle_if_conversion): Same.
13684         (gate_handle_if_after_combine): Same.
13685         (gate_handle_if_after_reload): Same.
13686         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
13688 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
13690         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
13691         line sizes.
13692         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
13694 2008-02-26  Jason Merrill  <jason@redhat.com>
13696         PR c++/35315
13697         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
13698         alone if it's the naming decl for the type's main variant.
13700 2008-02-26  Tom Tromey  <tromey@redhat.com>
13702         * system.h (USE_MAPPED_LOCATION): Poison.
13703         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
13704         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
13705         (make_goto_expr_edges): Likewise.
13706         (remove_bb): Likewise.
13707         (execute_warn_function_return): Likewise.
13708         * basic-block.h (struct edge_def) <goto_locus>: Change type to
13709         location_t.
13710         * c-common.c (fname_decl): Remove old location code.
13711         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
13712         location code.
13713         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
13714         variant.
13715         (ASM_INPUT_SOURCE_LOCATION): Likewise.
13716         (gen_rtx_ASM_INPUT): Likewise.
13717         (gen_rtx_ASM_INPUT_loc): Likewise.
13718         (get_rtx_asm_OPERANDS): Remove.
13719         * cfglayout.c (insn_locators_alloc): Remove old location code.
13720         (set_curr_insn_source_location): Likewise.
13721         (curr_insn_locator): Likewise.
13722         * print-tree.c (print_node): Remove old location code.
13723         * tree-mudflap.c (mf_varname_tree): Remove old location code.
13724         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
13725         * cfgexpand.c (expand_gimple_cond_expr): Don't use
13726         location_from_locus.
13727         (construct_exit_block): Remove old location code.
13728         * emit-rtl.c (force_next_line_note): Remove old location code.
13729         * profile.c (branch_prob): Remove old location code.
13730         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
13731         LOC_LINE): Remove old-location variants.
13732         * langhooks.c (lhd_print_error_function): Remove old location
13733         code.
13734         * configure, config.in: Rebuilt.
13735         * configure.ac (--enable-mapped-location): Remove.
13736         * c-decl.c (c_init_decl_processing): Remove old location code.
13737         (finish_function): Likewise.
13738         * recog.c (decode_asm_operands): Remove old location code.
13739         * c-pch.c (c_common_read_pch): Remove old location code.
13740         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
13741         variants.
13742         * gimple-low.c (lower_function_body): Remove old location code.
13743         * toplev.c (unknown_location): Remove.
13744         (push_srcloc): Remove old-location variant.
13745         (process_options): Remove old location code.
13746         (lang_dependent_init): Likewise.
13747         * input.h (UNKNOWN_LOCATION): Move definition.
13748         (location_t): Undeprecate.
13749         (source_locus): Remove.
13750         (location_from_locus): Remove.
13751         (struct location_s): Remove.
13752         Remove all old-location code.
13753         (input_line, input_filename): Remove.
13754         * final.c (final_scan_insn): Remove old location code.
13755         * diagnostic.c (diagnostic_build_prefix): Remove
13756         USE_MAPPED_LOCATION test.
13757         * tree.h (gimple_stmt) <locus>: Now a location_t.
13758         (tree_exp) <locus>: Likewise.
13759         (DECL_IS_BUILTIN): Remove old-location variant.
13760         (annotate_with_file_line, annotate_with_locus): Likewise.
13761         (expr_locus, set_expr_locus): Update.
13762         * tree.c (build1_stat): Remove old location code.
13763         (last_annotated_node): Remove.
13764         (annotate_with_file_line): Remove old-location variant.
13765         (annotate_with_locus): Likewise.
13766         (expr_location): Remove old location code.
13767         (set_expr_location): Likewise.
13768         (expr_has_location): Likewise.
13769         (expr_locus): Likewise.
13770         (set_expr_locus): Likewise.
13771         (expr_filename): Don't use location_from_locus.
13772         (expr_lineno): Likewise.
13773         * rtl-error.c (location_for_asm): Remove old location code.
13774         * c-lex.c (cb_line_change): Remove old location code.
13775         (fe_file_change): Likewise.
13776         (cb_def_pragma): Likewise.
13777         (c_lex_with_flags): Likewise.
13778         * gengtype.c (do_typedef): Don't special-case location types.
13779         (define_location_structures): Remove.
13780         (main): Don't call define_location_structures.
13781         * tree-pretty-print.c (dump_implicit_edges): Remove old location
13782         code.
13784 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13786         PR 26264
13787         * builtins.def (BUILT_IN_STDARG_START): Remove.
13788         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
13789         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13790         * tree-inline.c (inline_forbidden_p_1): Likewise.
13791         
13792 2008-02-26  Richard Guenther  <rguenther@suse.de>
13794         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13795         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13796         (lookup_decl_from_uid): Declare.
13797         (remove_decl_from_map): Likewise.
13798         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13799         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13800         (decl_for_uid_map): New global hashtable mapping DECL_UID
13801         to the decl tree.
13802         (init_ttree): Allocate it.
13803         (insert_decl_to_uid_decl_map): New helper function.
13804         (make_node_stat): Insert new decls into the map.
13805         (copy_node_stat): Likewise.
13806         (lookup_decl_from_uid): New function.
13807         (remove_decl_from_map): Likewise.
13808         (print_decl_for_uid_map_statistics): New helper.
13809         (dump_tree_statistics): Call it.
13811         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13812         (referenced_var_iterator): Adjust.
13813         (FOR_EACH_REFERENCED_VAR): Adjust.
13814         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13815         (num_referenced_vars): Adjust.
13816         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13817         (first_referenced_var): Remove.
13818         (end_referenced_vars_p): Likewise.
13819         (next_referenced_var): Likewise.
13820         (referenced_var_iterator_set): New helper function.
13821         * tree-dfa.c (referenced_var_lookup): Adjust.
13822         (referenced_var_check_and_insert): Likewise.
13823         (remove_referenced_var): Likewise.
13824         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13825         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13826         (verify_call_clobbering): Likewise.
13827         (verify_memory_partitions): Likewise.
13828         (init_tree_ssa): Allocate bitmap instead of hashtable for
13829         referenced_vars.
13830         (delete_tree_ssa): Adjust.
13831         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13832         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13833         (compute_tag_properties): Likewise.
13834         (set_initial_properties): Likewise.
13835         (find_partition_for): Likewise.
13836         (update_reference_counts): Likewise.
13837         (dump_may_aliases_for): Likewise.
13838         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13839         (add_call_clobber_ops): Likewise.
13840         (add_call_read_ops): Likewise.
13841         (get_asm_expr_operands): Likewise.
13842         * tree-into-ssa.c (dump_decl_set): Likewise.
13843         (update_ssa): Likewise.
13844         * tree-sra.c (scan_function): Likewise.
13845         (decide_instantiations): Likewise.
13846         (scalarize_parms): Likewise.
13847         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13848         (dsa_named_for): Likewise.
13849         * tree-ssa-structalias.c (update_alias_info): Likewise.
13850         (merge_smts_into): Likewise.
13852 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13854         PR 34351
13855         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
13856         * c-opts.c (c_common_handle_option): Wall enables
13857         Wvolatile-register-var.
13858         * common.opt: Move Wvolatile-register-var to...
13859         * c.opt: ...here.
13860         
13861 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13863         * common.opt (Wlarger-than=): New.
13864         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
13865         -Wlarger-than=.
13866         * opts.c (common_handle_option): Handle -Wlarger-than=.
13867         * optc-gen.awk: Likewise.
13868         * opth-gen.awk: Likewise.
13869         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
13870         * tree-optimize.c (tree_rest_of_compilation): Likewise.
13871         
13872 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13874         * c-common.c (match_case_to_enum_1): Add appropriate
13875         OPT_W* parameter to warning.
13876         (c_do_switch_warnings): Likewise.
13877         * c-typeck.c (warning_init): Add one more parameter following
13878         'warning' function.
13879         (push_init_level): Update call to warning_init.
13880         (pop_init_level): Likewise.
13881         (add_pending_init): Likewise.
13882         (output_init_element: Likewise.
13884 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13886         PR 28322
13887         * toplev.c (toplev_main): If there are warnings or error, print
13888         errors for ignored options.
13889         * opts.c (ignored_options): New static variable.
13890         (postpone_unknown_option_error): New.
13891         (print_ignored_options): New.
13892         (handle_option): Postpone errors for unknown -Wno-* options.
13893         * opts.h (print_ignored_options): Declare.
13894         
13895 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
13897         * config/mips/mips.md (loadgp_blockage, blockage): Change type
13898         to "ghost".
13900 2008-02-25  Richard Guenther  <rguenther@suse.de>
13902         Revert:
13903         2008-02-25  Richard Guenther  <rguenther@suse.de>
13905         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13906         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13907         (lookup_decl_from_uid): Declare.
13908         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13909         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13910         (decl_for_uid_map): New global hashtable mapping DECL_UID
13911         to the decl tree.
13912         (init_ttree): Allocate it.
13913         (insert_decl_to_uid_decl_map): New helper function.
13914         (make_node_stat): Insert new decls into the map.
13915         (copy_node_stat): Likewise.
13916         (lookup_decl_from_uid): New function.
13917         (print_decl_for_uid_map_statistics): New helper.
13918         (dump_tree_statistics): Call it.
13920         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13921         (referenced_var_iterator): Adjust.
13922         (FOR_EACH_REFERENCED_VAR): Adjust.
13923         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13924         (num_referenced_vars): Adjust.
13925         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13926         (first_referenced_var): Remove.
13927         (end_referenced_vars_p): Likewise.
13928         (next_referenced_var): Likewise.
13929         (referenced_var_iterator_set): New helper function.
13930         * tree-dfa.c (referenced_var_lookup): Adjust.
13931         (referenced_var_check_and_insert): Likewise.
13932         (remove_referenced_var): Likewise.
13933         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13934         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13935         (verify_call_clobbering): Likewise.
13936         (verify_memory_partitions): Likewise.
13937         (init_tree_ssa): Allocate bitmap instead of hashtable for
13938         referenced_vars.
13939         (delete_tree_ssa): Adjust.
13940         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13941         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13942         (compute_tag_properties): Likewise.
13943         (set_initial_properties): Likewise.
13944         (find_partition_for): Likewise.
13945         (update_reference_counts): Likewise.
13946         (dump_may_aliases_for): Likewise.
13947         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13948         (add_call_clobber_ops): Likewise.
13949         (add_call_read_ops): Likewise.
13950         (get_asm_expr_operands): Likewise.
13951         * tree-into-ssa.c (dump_decl_set): Likewise.
13952         (update_ssa): Likewise.
13953         * tree-sra.c (scan_function): Likewise.
13954         (decide_instantiations): Likewise.
13955         (scalarize_parms): Likewise.
13956         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13957         (dsa_named_for): Likewise.
13958         * tree-ssa-structalias.c (update_alias_info): Likewise.
13959         (merge_smts_into): Likewise.
13961 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
13963         PR fortran/29549
13964         * doc/invoke.texi (-fcx-limited-range): Document new option.
13965         * toplev.c (process_options): Handle -fcx-fortran-rules.
13966         * common.opt: Add documentation for -fcx-fortran-rules.
13968 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
13970         PR c/35162
13971         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
13972         actual behaviour and C99.
13973         
13974 2008-02-26  Ben Elliston  <bje@au.ibm.com>
13976         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
13977         (ASM_CPU_POWER6_SPEC): Likewise.
13978         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
13979         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
13980         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
13982 2008-02-25  Richard Guenther  <rguenther@suse.de>
13984         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13985         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13986         (lookup_decl_from_uid): Declare.
13987         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13988         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13989         (decl_for_uid_map): New global hashtable mapping DECL_UID
13990         to the decl tree.
13991         (init_ttree): Allocate it.
13992         (insert_decl_to_uid_decl_map): New helper function.
13993         (make_node_stat): Insert new decls into the map.
13994         (copy_node_stat): Likewise.
13995         (lookup_decl_from_uid): New function.
13996         (print_decl_for_uid_map_statistics): New helper.
13997         (dump_tree_statistics): Call it.
13999         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14000         (referenced_var_iterator): Adjust.
14001         (FOR_EACH_REFERENCED_VAR): Adjust.
14002         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14003         (num_referenced_vars): Adjust.
14004         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14005         (first_referenced_var): Remove.
14006         (end_referenced_vars_p): Likewise.
14007         (next_referenced_var): Likewise.
14008         (referenced_var_iterator_set): New helper function.
14009         * tree-dfa.c (referenced_var_lookup): Adjust.
14010         (referenced_var_check_and_insert): Likewise.
14011         (remove_referenced_var): Likewise.
14012         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14013         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14014         (verify_call_clobbering): Likewise.
14015         (verify_memory_partitions): Likewise.
14016         (init_tree_ssa): Allocate bitmap instead of hashtable for
14017         referenced_vars.
14018         (delete_tree_ssa): Adjust.
14019         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14020         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14021         (compute_tag_properties): Likewise.
14022         (set_initial_properties): Likewise.
14023         (find_partition_for): Likewise.
14024         (update_reference_counts): Likewise.
14025         (dump_may_aliases_for): Likewise.
14026         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14027         (add_call_clobber_ops): Likewise.
14028         (add_call_read_ops): Likewise.
14029         (get_asm_expr_operands): Likewise.
14030         * tree-into-ssa.c (dump_decl_set): Likewise.
14031         (update_ssa): Likewise.
14032         * tree-sra.c (scan_function): Likewise.
14033         (decide_instantiations): Likewise.
14034         (scalarize_parms): Likewise.
14035         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14036         (dsa_named_for): Likewise.
14037         * tree-ssa-structalias.c (update_alias_info): Likewise.
14038         (merge_smts_into): Likewise.
14040 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14042         PR target/35258
14043         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14044         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14045         * alias.h (nonoverlapping_memrefs_p): Likewise.
14047 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14049         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14050         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14051         __emultls_get_address, __emultls_register_common,
14052         __floatundi?f, and _Unwind_GetIPInfo.
14053         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14054         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14055         (gen_regparm_prefix): Likewise.
14056         (i386_nlm_encode_section_info): Sync with
14057         config/i386/winnt.c:i386_pe_encode_section_info().
14058         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14059         i386_nlm_mangle_decl_assembler_name): New.
14060         (netware_override_options): New.
14061         * config/i386/netware.h (netware_override_options): Declare.
14062         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14063         (i386_nlm_mangle_decl_assembler_name): Declare.
14064         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14066 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14068         PR other/32948
14069         * c-decl.c (grokdeclarator): Remove unused local variables
14070         `typedef_type' and `type_as_written'.
14071         * bb-reorder.c
14072         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14073         unused local variable `has_hot_blocks'.
14074         (fix_crossing_conditional_branches): Remove unused local variable
14075         `prev_bb'.
14076         
14077 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14079         PR middle-end/19984
14080         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14081         using DEF_C99_BUILTIN.
14082         (BUILT_IN_NANF): Ditto.
14083         (BUILT_IN_NANL): Ditto.
14085 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14086             Revital Eres  <eres@il.ibm.com>
14088         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14089         regarding the order of two dependent insns in the same row.
14091 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14093         * stor-layout.c (layout_decl): Do not bump the alignment of a
14094         bit-field to more than byte alignment if it is packed.
14096 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14098         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14099         e300c2 and e300c3.
14101 2008-02-24  Diego Novillo  <dnovillo@google.com>
14103         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14105         PR 33738
14106         * tree-vrp.c (vrp_evaluate_conditional): With
14107         -Wtype-limits, emit a warning when comparing against a
14108         constant outside the natural range of OP0's type.
14109         * c.opt (Wtype-limits): Move ...
14110         * common.opt (Wtype-limits): ... here.
14112 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14114         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14115         * config/rs6000/e300c2c3.md: New file.
14116         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14117         e300c2 and e300c3.
14118         (rs6000_override_options): Add e300c2 and e300c3 cases to
14119         processor_target_table. Do not allow usage of Altivec or Spe
14120         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14121         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14122         * config/rs6000/rs6000.h (processor_type): Add
14123         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14124         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14125         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14126         and ppce300c3. Include e300c2c3.md.
14128 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14130         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14131         instead of TARGET_STRICT_ALIGN.
14133 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14135         * explow.c (memory_address): Assert that the generated address is
14136         valid.
14138 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14140         PR target/25477
14141         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14142         * config/darwin-ppc-ldouble-patch.def: New file.
14143         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14144         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14145         SUBTARGET_INIT_BUILTINS if defined.
14146         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14147         New functions.
14149 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14151         PR rtl-opt/33512
14152         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14153         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14155 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14157         PR pch/35027
14158         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14159         file" warning condtional on -Winvalid-PCH.
14161 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14163         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14165 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14167         PR target/22076
14168         PR target/34256 
14169         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14170         prevent reload from using MMX registers.
14171         (*mov<mode>_internal): Ditto.
14172         (*movv2sf_internal_rex64): Ditto.
14173         (*movv2sf_internal): Ditto.
14175 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14177         PR documentation/31569
14178         * doc/install.texi2html: Use makeinfo --no-number-sections.
14180 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14182         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14183         ensure that we can address an entire entity > 8 bytes.  Don't
14184         generate reg+reg addressing for such data.
14186 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14188         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14189         strings when optimizing for size, unless the target cares about
14190         alignment.
14192 2008-02-22  Tom Tromey  <tromey@redhat.com>
14194         * regclass.c (current_pass): Remove declaration.
14196 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14198         * config/avr/libgcc.S (__RAMPZ__): Define.
14199         (__do_copy_data): Add for devices with 128KB code memory.
14201 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14203         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14204         Use spe_abi.
14205         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14207 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14209         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14210         GENNONACR_REGS.
14212 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14214         PR c/19999
14215         * c-typeck.c (build_binary_op): Warn about floating point
14216         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14218 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14220         PR target/34526
14221         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14222         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14223         add vrsave.
14224         (rs6000_override_options): Set altivec_abi as default, not override,
14225         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14226         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14227         is used; use new member spe_abi.
14228         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14229         spe_abi and altivec_abi.
14231 2008-02-22  Tomas Bily  <tbily@suse.cz>
14233         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14235 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14237         PR bootstrap/35273
14238         * config.build (build_file_translate): Set to `CMD //c' only if
14239         it works.
14240         * Makefile.in (build_file_translate): Improve comment.
14242 2008-02-21  Jan Hubicka  <jh@suse.cz>
14244         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14245         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14246         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14248 2008-02-21  Michael Matz  <matz@suse.de>
14250         PR target/35264
14251         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14253 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14255         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14256         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14257         as insn constraint.
14258         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14259         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14260         SSE_VEC_FLOAT_MODE_P as insn constraint.
14261         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14262         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14263         sse4a_movntdf using MODEF mode iterator.
14264         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14265         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14266         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14267         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14268         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14269         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14270         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14272 2008-02-21  Richard Guenther  <rguenther@suse.de>
14274         * tree.def (PAREN_EXPR): New tree code.
14275         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14276         and PAREN_EXPR.
14277         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14278         * expr.c (expand_expr_real_1): Likewise.
14279         * tree-inline.c (estimate_num_insns_1): Likewise.
14280         * tree-complex.c (expand_complex_move): Likewise.
14281         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14282         as plain x.
14284 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14286         PR target/35225
14287         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14289 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14291         PR target/35190
14292         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14294         * config/sh/sh.c (find_barrier): Don't go past
14295         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14297 2008-02-20  DJ Delorie  <dj@redhat.com>
14299         * config/h8300/h8300.md (insv): Force source operand to be a register.
14301         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14302         as a jump, not as a plain insn.
14303         
14304 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14306         * doc/invoke.texi (Warning Options): Add new option
14307         -Wframe-larger-than=.
14308         (-Wframe-larger-than): Document.
14310         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14311         Add declarations for new option variables.
14313         * final.c (final_start_function): Check the frame size
14314         before emission and issue a Wframe-larger-than warning.
14316         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14317         Add definitions for new option variables.
14318         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14320         * common.opt (Wframe-larger-than=): New option.
14322 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14324         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14325         (<sse>_div<mode>3): Ditto.
14326         (<sse>_vmdiv<mode>3): Ditto.
14327         (<sse>_vmsqrt<mode>2): Ditto.
14328         (*smax<mode>3): Ditto.
14329         (sse5_frcz<mode>2): Ditto.
14330         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14331         as insn constraint.
14333 2008-02-20  Richard Guenther  <rguenther@suse.de>
14335         PR middle-end/35265
14336         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14337         be happy with INTEGRAL_TYPE_P.
14339 2008-02-20  Richard Guenther  <rguenther@suse.de>
14341         * fold-const.c (split_tree): Associate floatig-point expressions
14342         if flag_associative_math is set.
14344 2008-02-20  Richard Guenther  <rguenther@suse.de>
14346         * tree.h (fold_real_zero_addition_p): Declare.
14347         * fold-const.c (fold_real_zero_addition_p): Export.
14348         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14349         floating-point operations with zero and one.
14351 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14353         * doc/install.texi: Correct references to CFLAGS, replacing them
14354         with BOOT_CFLAGS.  Document flags used during bootstrap for
14355         target libraries.
14356                                 
14357 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14359         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14360         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14361         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14362         insn constraint.
14363         (smin<mode>3): Ditto from similar patterns.
14364         (smax<mode>3): Ditto.
14365         (*ieee_smin<mode>3): Ditto.
14366         (*ieee_smax<mode>3): Ditto.
14367         * config/i386/sse.md (sse): New mode attribute.
14368         (mov<mode>): Macroize expander from movv4sf and movv2df using
14369         SSEMODEF2P mode iterator.
14370         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14371         SSE_VEC_FLOAT_MODE_P as insn constraint.
14372         (storent<mode>): Ditto.
14373         (storent<mode>): Macroize expander from storentsf and storentdf using
14374         MODEF mode iterator.
14375         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14376         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14377         (abs<mode>2): Ditto from similar patterns.
14378         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14379         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14380         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14381         (<sse>_vmsqrt<mode>2): Ditto.
14382         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14383         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14384         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14385         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14386         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14387         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14388         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14389         insn constraint.
14390         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14391         iterator and SSE_FLOAT_MODE_P as insn constraint.
14392         (<sse>_ucomi): Ditto from similar patterns.
14393         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14394         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14395         SSE_VEC_FLOAT_MODE_P as insn constraint.
14396         (vcond<mode>): Ditto from similar patterns.
14397         (and<mode>3, *and<mode>3): Ditto.
14398         (<sse>_nand<mode>3): Ditto.
14399         (ior<mode>3, *ior<mode>3): Ditto.
14400         (xor<mode>3, *xor<mode>3): Ditto.
14401         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14402         iterator and SSE_FLOAT_MODE_P as insn constraint.
14403         (*nand<mode>3): Ditto from similar patterns.
14404         (*ior<mode>3): Ditto.
14405         (*xor<mode>3): Ditto.
14407 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14409         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14410         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14411         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14413 2008-02-19  Jan Hubicka  <jh@suse.cz>
14415         * predict.c (tree_bb_level_predictions): Remove variable next
14416         mistakely introduced by previous commit.
14418 2008-02-19  Jan Hubicka  <jh@suse.cz>
14420         * predict.c (predict_paths_leading_to): Rewrite.
14421         (predict_paths_for_bb): New.
14422         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14424 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14426         PR bootstrap/35218
14427         * Makefile.in (build_file_translate): New.
14428         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14429         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14430         * configure.ac (build_file_translate): Substitute it.
14431         * configure: Regenerate.
14433 2008-02-19  Jan Hubicka  <jh@suse.cz>
14435         PR rtl-optimization/34408
14436         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14437         invalid sharing.
14439 2008-02-19  Jan Hubicka  <jh@suse.cz>
14441         PR middle-end/28779
14442         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14443         call_expr.
14445 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14447         PR Ada/35186
14448         * config/i386/i386-modes.def: Revert the last DI alignment
14449         change until Ada people can look into it.
14451 2008-02-19  Nick Clifton  <nickc@redhat.com>
14453         * opts.c (print_specific_help): Fix typo in --help text.
14455 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14457         PR target/35239
14458         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14459         32-bit inline asm without asm alternatives for host GCC < 3.0.
14461 2008-02-19  Richard Guenther  <rguenther@suse.de>
14463         PR tree-optimization/34989
14464         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14465         Allow propagation to INDIRECT_REF if we can simplify only.
14467 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14469         * c-common.c (warn_for_collisions_1): Use appropriate option when
14470         warning.
14472 2008-02-19  Nick Clifton  <nickc@redhat.com>
14474         PR other/31349
14475         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14476         (handle_options): Fix indentation.
14477         (print_filtered_help): If no language-specific options were
14478         displayed tell the user how to list all the options supported by
14479         the language's front-end.
14480         (print_specific_help): Fix indentation and remove duplicate line.
14481         (common_handle_option): Handle the -v option.
14482         For --help enable the display of undocumented options if the -v
14483         switch has been included on the command line.
14484         For --help= check for overlaps in the arguments between the option
14485         classes and the language names and issue a warning when they
14486         cannot be disambiguated.
14487         * c.opt (v): Pass on to the common option handler.
14489 2008-02-19  Revital Eres  <eres@il.ibm.com> 
14491         * modulo-sched.c (sms_schedule): Change dump message when
14492         create_ddg function fails.
14493         (try_scheduling_node_in_cycle): Rename row to cycle.
14494         (print_partial_schedule): Rename CYCLE to ROW.
14496 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14497             Zdenek Dvorak  <ook@ucw.cz>
14499         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14501 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14503         PR target/33555
14504         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14505         (*x86_movdicc_0_m1_se): Ditto.
14507 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14509         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14510         (CMPtype): Define as __gcc_CMPtype.
14511         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14512         (CMPtype): Define as __gcc_CMPtype.
14514 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14516         Support valgrind 3.3 for --enable-checking=valgrind.
14517         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14518         here.
14519         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14520         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14521         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14522         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14523         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14524         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14525         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14526         respectively.
14527         * ggc-zone.c: Similar.
14528         * ggc-page.c: Similar.
14530 2008-02-19  Paul Brook  <paul@codesourcery.com>
14532         PR target/35071
14533         * config/arm/ieee754-df.S: Fix do_it typo.
14534         * config/arm/ieee754-sf.S: Fix do_it typo.
14536 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14538         PR target/35189
14539         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14540         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14541         (OPTION_MASK_ISA_SSE_SET): Likewise.
14542         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14543         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14544         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14545         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14546         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14547         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14548         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14549         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14550         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14551         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14552         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14553         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14554         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14555         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14556         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14557         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14558         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14559         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14560         (OPTION_MASK_ISA_SSE4): Removed.
14561         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14562         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14563         (override_options): Don't turn on implied SSE/MMX bits in
14564         ix86_isa_flags.
14566 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14568         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14569         32bit host.
14571 2008-02-18  Joey Ye  <joey.ye@intel.com>
14573         PR middle-end/34921
14574         * tree-nested.c (insert_field_into_struct): Set type alignment
14575         to field alignment if the former is less than the latter.
14577 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14579         * BASE-VER: Set to 4.4.0.
14581 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14583         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14584         * doc/cfg.texi: Likewise.
14585         * doc/extend.texi: Likewise.
14586         * doc/gty.texi: Likewise.
14587         * doc/invoke.texi: Likewise.
14588         * doc/loop.texi: Likewise.
14589         * doc/md.texi: Likewise.
14590         * doc/passes.texi: Likewise.
14591         * doc/rtl.texi: Likewise.
14592         * doc/sourcebuild.texi: Likewise.
14593         * doc/tm.texi: Likewise.
14594         * doc/tree-ssa.texi: Likewise.
14596 2008-02-17  Richard Guenther  <rguenther@suse.de>
14598         PR middle-end/35227
14599         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14600         without default definition.
14602 2008-02-17  Richard Guenther  <rguenther@suse.de>
14604         PR tree-optimization/35231
14605         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14606         if A | B != 1.
14608 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14610         Revert:
14611         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
14612         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14613         libgcc_cmp_return mode.
14615 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14617         PR c/28368
14618         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14620 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14622         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14623         multilibs.
14625 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14627         * doc/c-tree.texi: Use `@.' where appropriate.
14628         * doc/extend.texi: Likewise.
14629         * doc/install.texi: Likewise.
14630         * doc/invoke.texi: Likewise.
14631         * doc/loop.texi: Likewise.
14632         * doc/makefile.texi: Likewise.
14633         * doc/md.texi: Likewise.
14634         * doc/passes.texi: Likewise.
14635         * doc/standards.texi: Likewise.
14636         * doc/tm.texi: Likewise.
14638 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14640         PR middle-end/35196
14641         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14642         in entry_bb.
14643         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14644         rather than in entry_bb.
14646 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14648         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14649         libgcc_cmp_return mode.
14651 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14653         PR middle-end/35130
14654         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
14655         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
14657 2008-02-15  Richard Guenther  <rguenther@suse.de>
14658             Zdenek Dvorak  <ook@ucw.cz>
14660         PR tree-optimization/35164
14661         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
14662         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
14663         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14664         Only propagate addresses which do not have abnormal SSA_NAMEs
14665         in their operands.
14667 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
14669         PR target/35088
14670         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
14672 2008-02-15  Jan Hubicka  <jh@suse.cz>
14674         PR middle-end/35149
14675         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
14677 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14679         PR middle-end/34621
14680         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
14681         when calculating alignment_pad.
14683 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14685         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
14686         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
14687         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
14688         and STACK_BOUNDARY define.
14690 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
14692         PR preprocessor/35061
14693         * c-pragma.c (handle_pragma_pop_macro): Check that
14694         pushed_macro_table has been allocated.
14696 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
14698         PR middle-end/35136
14699         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
14700         (force_gimple_operand): Likewise.
14701         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
14702         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
14703         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
14704         (find_interesting_uses_address): Check addressability and alignment
14705         of the base expression only after substituting bases of IVs into it.
14707 2008-02-14  Michael Matz  <matz@suse.de>
14709         PR target/34930
14710         * function.c (instantiate_virtual_regs_in_insn): Reload address
14711         before falling back to reloading the whole operand.
14713 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
14715         * config/s390/s390.c (s390_mainpool_start): Emit the pool
14716         before the first section switch note.
14718 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14720         * doc/bugreport.texi: Update copyright years.
14721         * doc/c-tree.texi: Likewise.
14722         * doc/cfg.texi: Likewise.
14723         * doc/cpp.texi: Likewise.
14724         * doc/cppinternals.texi: Likewise.
14725         * doc/fragments.texi: Likewise.
14726         * doc/frontends.texi: Likewise.
14727         * doc/gcc.texi: Likewise.
14728         * doc/gty.texi: Likewise.
14729         * doc/hostconfig.texi: Likewise.
14730         * doc/implement-c.texi: Likewise.
14731         * doc/libgcc.texi: Likewise.
14732         * doc/loop.texi: Likewise.
14733         * doc/makefile.texi: Likewise.
14734         * doc/options.texi: Likewise.
14735         * doc/passes.texi: Likewise.
14736         * doc/rtl.texi: Likewise.
14737         * doc/sourcebuild.texi: Likewise.
14738         * doc/standards.texi: Likewise.
14739         * doc/tree-ssa.texi: Likewise.
14740         * doc/trouble.texi: Likewise.
14742         * doc/extend.texi: Use @: or add comma where appropriate.
14743         * doc/invoke.texi: Likewise.
14744         * doc/tm.texi: Likewise.
14746 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
14748         PR target/34393
14749         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
14750         to a reg.
14752 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
14754         * doc/md.texi (clz, ctz): Add reference.
14755         * doc/rtl.texi (clz, ctz): Likewise.
14757 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14759         PR other/35148
14760         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
14761         srcdir.
14763 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
14765         * config/s390/s390.c (struct constant_pool): New field
14766         emit_pool_after added.
14767         (s390_mainpool_start): Set the emit_pool_after flag according
14768         to the section switch notes.
14769         (s390_mainpool_finish): Consider emit_pool_after when emitting
14770         the literal pool at the end of the function.
14771         (s390_chunkify_start): Force literal pool splits at section
14772         switch notes.
14774 2008-02-13  Michael Matz  <matz@suse.de>
14776         PR debug/35065
14777         * var-tracking.c (clobber_variable_part): Correctly traverse the
14778         list.
14780 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14782         PR 29673
14783         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
14784         Add -fdump-ipa-inline.
14785         * tree-dump.c (dump_files): Remove tree-inlined dump.
14786         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
14787         
14788 2008-02-12  Richard Guenther  <rguenther@suse.de>
14790         PR tree-optimization/35171
14791         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
14792         default defs.
14794 2008-02-12  Richard Guenther  <rguenther@suse.de>
14796         PR middle-end/35163
14797         * fold-const.c (fold_widened_comparison): Use get_unwidened in
14798         value-preserving mode.  Disallow final truncation.
14800 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
14802         PR middle-end/35136
14803         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
14804         code from here to...
14805         (force_gimple_operand): ...here.
14807 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
14809         PR c++/35144
14810         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
14811         non-compatible pointers.
14812         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
14813         different FIELD_DECLs, try harder by comparing field offsets, sizes
14814         and types.
14816         PR inline-asm/35160
14817         * function.c (match_asm_constraints_1): Don't replace the same input
14818         multiple times.
14820 2008-02-12  Anatoly Sokolov <aesok@post.ru>
14822         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
14823         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
14824         (expand_epilogue): Restore RAMPZ register.
14825         * config/avr/avr.md (RAMPZ_ADDR): New constant.
14827 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
14829         * config/i386/cygwin.asm: (__alloca): Correct calling
14830         convention and alignment.
14831         (__chkstk): Force 8 byte stack alignment.
14833 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
14834             Richard Guenther  <rguenther@suse.de>
14836         PR tree-optimization/33992
14837         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
14838         the zero we compare against.
14840 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
14842         PR libfortran/35063
14843         * gthr-win32.h (__gthread_mutex_destroy_function): New function
14844         to CloseHandle after unlocking to prevent accumulation of handle
14845         count.
14847 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14849         PR middle_end/34150
14850         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
14851         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
14852         and update LABEL_NUSES during and after reload.
14854 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
14856         PR middle-end/34627
14857         * combine.c (simplify_if_then_else): Make sure the comparison is
14858         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
14860 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14862         PR bootstrap/35051
14863         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
14864         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
14865         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
14866         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
14867         * tree.h (get_type_static_bounds): Likewise.
14869 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14871         * doc/invoke.texi (Option Summary, C++ Dialect Options)
14872         (Objective-C and Objective-C++ Dialect Options, Warning Options):
14873         Make -Wfoo language annotations match what the compiler outputs.
14875 2008-02-08  Sa Liu  <saliu@de.ibm.com>
14877         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
14878         intrinsics spu_convts, spu_convtu, spu_convtf.
14880 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
14882         * doc/extend.texi (Function Attributes) <noinline>: Mention
14883         asm ("") as method to keep calls.
14885 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14887         PR other/32754
14888         * doc/options.texi (Options): Replace references to opts.sh with
14889         optc-gen.awk.
14890         * opts-common.c: Likewise.
14891         * optc-gen.awk: Likewise.
14892         
14893 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
14895         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
14897 2008-02-07  Richard Henderson  <rth@redhat.com>
14899         PR rtl-opt/33410
14900         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
14901         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
14902         funny mode.
14904 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
14906         PR tree-optimization/35085
14907         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
14908         for operand entry oe2 in addition to operand entry oe3 in order to
14909         expose more opportunities for vectorizer sum reduction.
14911 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14913         PR other/35107
14914         * Makefile.in (LIBS): Remove $(GMPLIBS).
14915         (cc1-dummy, cc1): Add $(GMPLIBS).
14917 2008-02-06  Jan Hubicka  <jh@suse.cz>
14919         PR target/23322
14920         * i386.md (moddf_integer): Do not produce partial memory stalls for
14921         targets where it hurts.
14923 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
14925         PR target/35083
14926         * optabs.c (expand_float): Do not check for decimal modes when
14927         expanding unsigned integer through signed conversion.
14929 2008-02-06  Nick Clifton  <nickc@redhat.com>
14931         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
14932         inside the clobber with a match_operand and duplicated operand
14933         number in the constraint.
14934         (ineqbranchsi): Delete redundant comment.
14936 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
14938         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
14939         builtin_define ("__USE_INIT_FINI__").
14940         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
14941         -msx multilibs.
14942         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
14944 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14946         PR documentation/30330
14947         * doc/invoke.texi (C++ Dialect Options)
14948         (Objective-C and Objective-C++ Dialect Options, Warning Options):
14949         For each warning option -Wfoo that allows -Wno-foo, ensure both
14950         -Wfoo and -Wno-foo are listed in the option index.  Fix index
14951         entry of -Wswitch-default, index -Wnormalized= including the
14952         `=', and -Wlarger-than-@var{len} including @var{len}.
14954 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
14956         * config/i386/i386.md (floatunssisf2): Use
14957         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
14958         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
14959         Macroize expander using MODEF mode iterator.
14961 2008-02-05  Diego Novillo  <dnovillo@google.com>
14963         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
14965         PR 33738
14966         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
14968 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14970         PR other/35070
14971         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
14973 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
14975         PR target/35084
14976         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
14977         to indicate if a message should be generated.
14978         (init_cumulative_args): Updated.
14979         (function_value_32): Likewise.
14981 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
14983         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
14985 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
14987         PR target/35083
14988         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
14989         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
14991 2008-02-04  Diego Novillo  <dnovillo@google.com>
14993         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
14995         PR 33738
14996         * tree-vrp.c (vrp_evaluate_conditional): With
14997         -Wtype-limits, emit a warning when comparing against a
14998         constant outside the natural range of OP0's type.
15000 2008-02-04  Richard Guenther  <rguenther@suse.de>
15002         PR middle-end/33631
15003         * expr.c (count_type_elements): Give for unions instead of
15004         guessing.
15006 2008-02-04  Richard Guenther  <rguenther@suse.de>
15008         PR middle-end/35043
15009         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15010         to TYPE_DOMAINs base type instead of using bitsizetype here.
15012 2008-02-03  Jason Merrill  <jason@redhat.com>
15014         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15016 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15018         PR other/29972
15019         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15020         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15021         (RS/6000 and PowerPC Options): Fix typos and markup.
15022         * doc/passes.texi (Tree-SSA passes): Likewise.
15024 2008-02-02  Michael Matz  <matz@suse.de>
15026         PR target/35045
15027         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15028         from record_last_reg_set_info.
15029         (record_last_reg_set_info): Take an RTX argument, iterate over all
15030         constituent hardregs.
15031         (record_last_set_info, record_opr_changes): Change calls to
15032         new signature or to record_last_reg_set_info_regno.
15034 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15036         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15038 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15040         PR rtl-optimization/34773
15041         * reg-notes.def (EQUAL): Mention significance of combination of
15042         REG_EQUAL and REG_RETVAL.
15043         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15044         insn that has a REG_RETVAL.
15046 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15048         PR bootstrap/33781
15049         * configure.ac (--enable-fixed-point): Disable unless explicitly
15050         requested on IRIX.
15051         * configure: Regenerate.
15053 2008-02-01  Richard Guenther  <rguenther@suse.de>
15055         PR other/35042
15056         * invoke.texi (-finline-limit): Remove no longer true parts
15057         of the documentation.  Note that there is no default value.
15059 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15060             Mark Mitchell  <mark@codesourcery.com>
15061             Ben Elliston  <bje@au.ibm.com>
15063         PR c/29326
15064         * doc/extend.texi (Other Builtins): Document.
15066 2008-01-31  Tom Browder <tom.browder@gmail.com>
15068         * doc/c-tree.texi (Types): Fix grammar.
15069         (Expression trees): Ditto.
15070         * doc/passes.texi (Tree-SSA passes): Ditto.
15071         
15072         * doc/configterms.texi (Configure Terms): Fix typo.
15073         * doc/cpp.texi (Common Predefined Macros): Ditto.
15074         * doc/md.texi (Machine Constraints): Ditto.
15075         
15076         * doc/makefile.texi (Makefile): Add comma.
15078 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15079             Gerald Pfeifer  <gerald@pfeifer.com>
15080         
15081         * doc/sourcebuild.texi (Front End): Remove references to CVS
15082         and CVSROOT/modules.
15083         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15084         (Back End): Remove reference to CVS.
15086 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15088         PR target/34900
15089         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15090         comment from...
15091         (mips16_gp_pseudo_reg): ...here.
15092         * config/mips/mips.md (load_const_gp): Replace with...
15093         (load_const_gp_<mode>): ...this :P-based insn.
15095 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15097         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15098         options. Minor fixes.
15099         (-std): Move reference to standards closer to where language
15100         standards are first mentioned.
15101         
15102 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15104         PR rtl-optimization/34995
15105         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15106         parameter and return a bool.  If the rtx parameter is nonnull,
15107         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15108         (find_reloads): Update call accordingly.  Pass the new operand
15109         if it needed no address reloads, otherwise pass null.
15111 2008-01-30  Richard Henderson  <rth@redhat.com>
15113         PR c/34993
15114         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15115         for unbounded arrays.
15117 2008-01-30  Silvius Rus  <rus@google.com>
15119         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15121 2008-01-30  Jan Hubicka  <jh@suse.cz>
15123         PR target/34982
15124         * i386.c (init_cumulative_args): Use real function declaration when
15125         calling locally.
15127 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15129         PR rtl-optimization/34998
15130         * global.c (build_insn_chain): Treat non-subreg_lowpart
15131         SUBREGs of pseudos as clobbering all the words covered by the
15132         SUBREG, not just all the bytes.
15133         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15134         original df_ref rather than an extract parameter.
15135         (global_conflicts): Update call accordingly.
15137 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15139         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15140         the overflow check to make it easier to read.
15141         (__fixtfdi): Change the type of the ll member in union
15142         long_double to UDItype_x.
15144 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15146         PR middle-end/34969
15147         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15148         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15149         * tree-inline.c (fold_marked_statements): Call
15150         cgraph_update_edges_for_call_stmt if folding a call statement.
15151         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15152         debug_generic_stmt calls, reset it back afterwards.
15154         PR c/35017
15155         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15156         static decls.
15157         * c-typeck.c (build_external_ref): Don't pedwarn about
15158         static vars in current function's scope.
15160 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15162         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15164 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15166         PR c/35002
15167         * ipa-struct-reorg.c: Fix spelling.
15168         * params.def: Ditto.
15170 2008-01-29  Richard Guenther  <rguenther@suse.de>
15172         PR middle-end/35006
15173         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15174         field.
15175         * tree-inline.c (remap_type): Increment remapping_type_depth
15176         around remapping types.
15177         (copy_body_r): Only add referenced variables if they are referenced
15178         from code, not types.
15180 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15182         PR c++/34055
15183         PR c++/34103
15184         PR c++/34219
15185         PR c++/34606
15186         PR c++/34753
15187         PR c++/34754
15188         PR c++/34755
15189         PR c++/34919
15190         PR c++/34961
15191         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15192         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15194 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15196         PR target/34412
15197         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
15198         pointer for tiny stack.
15200 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15202         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15204 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15206         * config/vx-common.h: Fix typo in comment.
15208 2008-01-28  Ian Lance Taylor  <iant@google.com>
15210         PR c++/34862
15211         PR c++/33407
15212         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15213         coalesce pointers if they have different DECL_NO_TBAA_P values.
15214         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15215         between variables with different DECL_NO_TBAA_P values.
15217 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15219         PR 31535
15220         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15221         are not legitimate small data references on SPE targets.
15223 2008-01-28  David Daney  <ddaney@avtrex.com>
15225         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15227 2008-01-28  David Daney  <ddaney@avtrex.com>
15229         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15231 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15233         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15234         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15235         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15236         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15237         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15238         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15239         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15240         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15242 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15244         * basic-block.h (condjump_equiv_p): Fix comment.
15246 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15248         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15249         print_generic_stmt_indented): Fix comment.
15251 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15253         * configure.ac (__stack_chk_fail): Add detecion for availability
15254         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15255         * configure: Regenerate.
15257 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15259         PR middle-end/34688
15260         * final.c (output_addr_const): Handle TRUNCATE.
15262 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15264         PR target/34711
15265         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15266         (zero_cost, infinite_cost): New constants.
15267         (struct cost_pair): Change type of cost to comp_cost.
15268         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15269         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15270         New functions.
15271         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15272         split_address_cost, ptr_difference_cost, difference_cost,
15273         get_computation_cost_at, get_computation_cost,
15274         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15275         determine_use_iv_cost_condition, determine_use_iv_costs,
15276         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15277         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15278         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15279         Change type of cost to comp_cost.
15280         (determine_iv_cost): Increase cost of non-original ivs, instead
15281         of decreasing the cost of original ones.
15282         (get_address_cost): Indicate the complexity of the addressing mode 
15283         in comp_cost.
15284         (try_add_cand_for): Prefer using ivs not specific to some object.
15285         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15287 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15288             Janis Johnson  <janis187@us.ibm.com>
15290         PR target/34814
15291         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15292         (TARGET_INSTANTIATE_DECLS): Likewise.
15293         * target.h (expand_to_rtl_hook): New target hook.
15294         (instantiate_decls): Likewise.
15295         * function.c (instantiate_decl): Make non-static.  Rename to...
15296         (instantiate_decl_rtl): ... this.
15297         (instantiate_expr): Use instantiate_decl_rtl.
15298         (instantiate_decls_1): Likewise.
15299         (instantiate_decls): Likewise.
15300         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15301         * function.h (instantiate_decl_rtl): Add prototype.
15302         * cfgexpand.c (target.h): New include.
15303         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15304         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15305         (TARGET_INSTANTIATE_DECLS): Likewise.
15306         (TARGET_INITIALIZER): New target hooks added.
15307         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15308         New prototype.
15309         * config/rs6000/rs6000.c (tree-flow.h): New include.
15310         (machine_function): Add sdmode_stack_slot field.
15311         (rs6000_alloc_sdmode_stack_slot): New function.
15312         (rs6000_instantiate_decls): Likewise.
15313         (rs6000_secondary_memory_needed_rtx): Likewise.
15314         (rs6000_check_sdmode): Likewise.
15315         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15316         (TARGET_INSTANTIATE_DECLS): Likewise.
15317         (rs6000_hard_regno_mode_ok): Allow SDmode.
15318         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15319         (rs6000_emit_move): Handle SDmode.
15320         (function_arg_advance): Likewise.
15321         (function_arg): Likewise.
15322         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15323         SDmode var args for 32-bit compiles.
15324         (rs6000_secondary_reload_class): Handle SDmode.
15325         (rs6000_output_function_epilogue): Likewise.
15326         (rs6000_function_value): Simplify if statement.
15327         (rs6000_libcall_value): Likewise.
15328         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15329         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15330         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15331         (movsd_hardfloat): New define_insn.
15332         (movsd_softfloat): Likewise.
15333         (movsd_store): Likewise.
15334         (movsd_load): Likewise.
15335         (extendsddd2): Likewise.
15336         (extendsdtd2): Likewise.
15337         (truncddsd2): Likewise.
15338         (movdd_hardfloat64): Fixup comment.
15339         (UNSPEC_MOVSD_LOAD): New constant.
15340         (UNSPEC_MOVSD_STORE): Likewise.
15342 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15344         PR c++/34965
15345         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15346         TRUTH_XOR_EXPR.
15347         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15348         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15349         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15350         and TRUTH_XOR_EXPR.
15352 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15354         PR target/34794
15355         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15356         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15357         __LONGDOUBLE128 too.
15358         * config/rs6000/aix61.h: New file.
15360 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15362         PR rtl-optimization/34959
15363         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15364         popcount and parity rtxes the same mode as their operand.
15365         Truncate or extend the result to the return value's mode
15366         if necessary.
15368 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15370         PR target/34981
15371         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15372         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15373         to GOT_VERSION_REGNUM.
15374         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15375         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15376         * config/mips/mips.c (mips_emit_call_insn): New function.
15377         (mips_call_tls_get_addr): Call mips_expand_call directly.
15378         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15379         emit_call_insn.
15380         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15381         (mips_expand_call): Update the call to mips16_build_call_stub
15382         accordingly and a remove redundant condition.  Assert that MIPS16
15383         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15384         the call insn.
15385         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15386         TARGET_USE_GOT.
15387         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15388         (mips_avoid_hazard): Remove hazard_set handling.
15389         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15390         (UNSPEC_RESTORE_GP): ...this.
15391         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15392         (FAKE_CALL_REGNO): Rename to...
15393         (GOT_VERSION_REGNUM): ...this.
15394         (type): Add "ghost" value.  Add an associated insn reservation.
15395         (hazard_set): Remove.
15396         (exception_receiver): Rename to...
15397         (restore_gp): ...this and update the unspec identifier accordingly.
15398         (exception_receiver, nonlocal_got_receiver): New expanders.
15399         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15400         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15401         (set_got_version, update_got_version): New patterns.
15403 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15405         PR target/34970
15406         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15408 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15410         PR other/31955
15411         * doc/install.texi2html: Generate gcc-vers.texi.
15413 2008-01-25  DJ Delorie  <dj@redhat.com>
15415         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15417 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15419         * config/c4x: Remove directory.
15420         * config.gcc (crx-*, mt-*): Mark obsolete.
15421         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15422         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15423         sh-*-rtemscoff*): Remove cases.
15424         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15425         * real.c (encode_c4x_single, decode_c4x_single,
15426         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15427         c4x_extended_format): Remove.
15428         * real.h (c4x_single_format, c4x_extended_format): Remove.
15429         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15430         on C4x.
15431         (Pragmas): Remove comment about c4x pragmas.
15432         * doc/install.texi (c4x): Remove target-specific instructions.
15433         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15434         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15435         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15436         refer to C4x source files as examples.
15437         (C4X_FLOAT_FORMAT): Remove documentation.
15439 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15441         * config/bfin/bfin.c (override_options): Reorder tests so that
15442         flag_pic gets enabled for -msep-data.
15444 2008-01-25  Richard Guenther  <rguenther@suse.de>
15446         PR middle-end/32244
15447         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15448         to its bitfield precision if required.
15450 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15452         PR middle-end/33880
15453         * tree-nested.c (walk_omp_for): New function.
15454         (convert_nonlocal_reference, convert_local_reference): Call
15455         walk_omp_for on OMP_FOR.
15456         (convert_call_expr): Call walk_body on OMP_FOR's
15457         OMP_FOR_PRE_INIT_BODY.
15459 2008-01-25  Richard Guenther  <rguenther@suse.de>
15461         PR tree-optimization/34966
15462         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15463         default defs and PHI_NODEs we have to insert after the
15464         defining statement.
15466 2008-01-24  Nick Clifton  <nickc@redhat.com>
15468         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15469         Provide a default definition.
15470         (LIBGCC2_UNITS_PER_WORD): Likewise.
15472         * config/stormy16/stormy16.c: Include df.h for the prototype
15473         for df_regs_ever_live_p.
15474         (xstormy16_expand_builtin_va_start): Convert the stack offset
15475         into a component_ref and then use POINTER_PLUS_EXPR to add it
15476         to the incoming_virtual_args_rtx.
15477         (xstormy16_gimplify_va_arg_expr): Rename to
15478         xstormy16_gimplify_va_arg_expr.
15479         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15480         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15481         xstormy16_gimplify_va_arg_expr.
15482         Fix up some formatting issues.
15484         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15485         Move to predicates.md.
15486         (xs_hi_general_operand): Likewise.
15487         (xs_hi_nonmemory_operand): Likewise.
15488         * config/stormy16/predicates.md:
15489         (xstormy16_carry_plus_operand): New predicate.
15490         (xs_hi_general_operand): New predicate.
15491         (xs_hi_nonmemory_operand): New predicate.
15492         * config/stormy16/stormy16-protos.h:
15493         (xstormy16_carry_plus_operand): Delete prototype.
15494         (xs_hi_general_operand): Likewise.
15495         (xs_hi_nonmemory_operand): Likewise.
15497         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15498         modifiers as they are no longer needed and they can trigger
15499         reload spill failures.
15501         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15502         with a match_operand in order to help reload.
15504         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15505         constraint with 'e' for the 8th alternative as this version of
15506         the mov.w instruction only accepts the lower 8 registers.
15508 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15510         PR target/34856
15511         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15512         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15513         vector elements.
15515 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15517         PR middle-end/33333
15518         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15520 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15522         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15523         New functions.
15524         (remove_structure): Update allocations list before removing structure.
15525         
15526 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15528         * ipa-struct-reorg.c (is_safe_cond_expr, 
15529         create_new_stmts_for_cond_expr): Use integer_zerop function,
15530         that recognize not only zero-pointer, but zero-integer too.
15532 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15534         PR other/22232
15535         * fixproto: Escape "." in sed expression that strips leading "./".
15537 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15539         PR driver/34904
15540         * gcc.c (SWITCH_OK): Removed.
15541         (SWITCH_LIVE): Changed to bit.
15542         (SWITCH_FALSE): Likewise.
15543         (SWITCH_IGNORE): Likewise.
15544         (switchstr): Change live_cond to unsigned int.
15545         (process_command): Replace SWITCH_OK with 0.
15546         (do_self_spec): Likewise.
15547         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15548         (give_switch): Likewise.
15549         (used_arg): Likewise.
15550         (do_spec_1): Set the SWITCH_IGNORE bit.
15551         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15552         bits.  Set the SWITCH_LIVE bit.
15554 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15556         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15558 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15560         PR tree-optimization/34472
15561         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15562         parameter to a "bool *" and set *DATA to false if there is
15563         an unsafe access.  Do not delete the structure here.
15564         (check_cond_exprs): Delete it here instead.
15565         (check_cond_exprs, exclude_cold_structs): Do not increase
15566         I when removing a structure.
15568 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15570         PR target/34856
15571         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15572         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15574 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15576         PR middle-end/34934
15577         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15578         a fixed vector for stack.
15580 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15582         PR c++/25701
15583         * doc/gcc.texi (Software development): Add a direntry for g++.
15584         
15585 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15587         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15588         stale and straggling -fforce-addr comments above.
15590         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15591         define.
15592         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15593         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15595 2008-01-23  Michael Matz  <matz@suse.de>
15597         PR debug/34895
15598         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15599         gen_type_die.
15601 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15603         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15604         malloc result type.
15606 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15608         * config/avr/avr.c (avr_current_arch): New variable.
15609         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15610         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15611         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15612         (avr_override_options): Init 'avr_current_arch'. 
15613         (base_arch_s): Move from here...
15614         * config/avr/avr.h (base_arch_s): ... here. Add new members 
15615         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
15616         'mega' to 'have_jmp_call'.
15617         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
15618         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15619         macros.
15620         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
15621         architectures.
15622         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
15623         MULTILIB_MATCHES): (Ditto.).
15625 2008-01-23  Richard Guenther  <rguenther@suse.de>
15627         PR middle-end/31529
15628         * cgraphunit.c (cgraph_reset_node): Always mark the node
15629         not reachable if it is not queued already.
15631 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15633         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15634         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15635         (cputype_selected): New static variable.
15636         (bfin_handle_option): Set it if -mcpu is used.
15637         (override_option): Select default set of workarounds if no cpu type
15638         selected on the command line.
15639         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15641         From  Michael Frysinger  <michael.frysinger@analog.com>
15642         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15643         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15645         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
15646         for bf547, bf523, bf524, and bf526.
15647         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
15648         bf526.
15649         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
15650         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
15651         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
15652         __ADSPBF547__ and __ADSPBF54x__ for bf547.
15653         * doc/invoke.texi (Blackfin Options): Document that
15654         -mcpu now accept bf547, bf523, bf524, and bf526.
15656 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
15658         PR rtl-optimization/34628
15659         * combine.c (try_combine): Stop and undo after the first combination
15660         if an autoincrement side-effect on the first insn has effectively
15661         been lost.
15663 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
15665         PR target/34529
15666         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15667         Offset addresses are not valid for Altivec or paired float modes.
15669 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
15671         PR c++/34607
15672         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
15673         if DECL_INITIAL (decl) is error_mark_node.
15675         PR c++/34914
15676         * c-common.c (handle_vector_size_attribute): Only allow
15677         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
15678         the same way as pointer, array etc. types.
15679         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
15681         PR c++/34917
15682         * tree.c (build_type_attribute_qual_variant): Call
15683         build_qualified_type if attributes are equal, but quals are not.
15685 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15687         PR 32102
15688         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
15689         * flags.h (warn_strict_aliasing): Remove.
15690         (warn_strict_overflow): Remove.
15691         * opts.c (warn_strict_aliasing): Remove.
15692         (warn_strict_overflow): Remove.
15693         * c-opts.c (c_common_handle_option): -Wall only sets
15694         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
15695         (c_common_post_options): Give default values to -Wstrict-aliasing
15696         and -Wstrict-overflow if they are uninitialized.
15697         * common.opt (Wstrict-aliasing): Specify Var and Init.
15698         (Wstrict-overflow): Likewise.
15700 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
15702         PR rtl-optimization/26854
15703         PR rtl-optimization/34400
15704         PR rtl-optimization/34884
15705         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
15706         DF_RD->gen.
15707         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
15708         (df_rd_bb_info.expanded_lr_out): Deleted
15709         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
15710         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
15711         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15712         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15713         Removed code to allocate, initialize or free expanded_lr_out.
15714         (df_rd_bb_local_compute_process_def): Restructured to make more
15715         understandable.
15716         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
15717         sets if the sets are being trimmed.
15719 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
15721         PR bootstrap/32287
15722         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
15723         (as_vers): Likewise.
15724         * configure: Regenerated.
15726 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15728         PR middle-end/33092
15729         * tree-pass.h (pass_build_alias): New pass.
15730         * tree-ssa-alias.c (gate_build_alias): New.
15731         (pass_build_alias): New.
15732         * passes.c (init_optimization_passes): Add pass_build_alias after
15733         pass_create_structure_vars.
15735 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
15737         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
15738         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
15739         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
15740         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
15741         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
15742         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
15743         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
15744         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
15745         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
15746         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
15747         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
15748         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
15749         * config/s390/s390.md (FP_ALL): New mode iterator.
15750         (_d): New mode attribute.
15751         ("*signbit<mode>2>"): Changed mode of first operand.
15752         ("isinf<mode>2"): Changed mode of first operand.
15753         ("*TDC_insn"): Adaptation for DFP modes.
15755 2008-01-22  Ben Elliston  <bje@au.ibm.com>
15757         * tree.c (check_qualified_type): Improve function description.
15759 2008-01-21  Jason Merrill  <jason@redhat.com>
15761         PR c++/34196
15762         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
15763         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
15764         if it is set.
15766 2008-01-21  DJ Delorie  <dj@redhat.com>
15768         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
15769         return zero.
15771 2008-01-21  Richard Guenther  <rguenther@suse.de>
15773         PR middle-end/34856
15774         * tree-cfg.c (verify_expr): Allow all invariant expressions
15775         instead of just constant class ones as reference argument.
15776         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
15777         like any other constant.
15778         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15780 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
15782         * regmove.c (fixup_match_1): Update call crossed frequencies.
15784 2008-01-21  Richard Guenther  <rguenther@suse.de>
15786         PR c/34885
15787         * tree-inline.c (setup_one_parameter): Deal with mismatched
15788         types using a VIEW_CONVERT_EXPR.
15790 2008-01-21  Alon Dayan  <alond@il.ibm.com>
15791             Olga Golovanevsky  <olga@il.ibm.com>
15792         
15793         PR tree-optimization/34701
15794         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
15795         when the structure size is not a power of 2.
15797 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
15799         * doc/install.texi: Add doc for --enable-checking=df.
15800         
15801 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15803         PR rtl-optimization/34808
15804         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
15806 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15808         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
15809         input.
15811 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
15813         PR rtl-optimization/26854
15814         PR rtl-optimization/34400
15815         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
15816         DF_RD->gen.
15817         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
15818         (df_rd_bb_info.expanded_lr_out): New.
15819         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
15820         * loop_iv.c (iv_analysis_loop_init): Ditto.
15821         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
15822         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
15823         Added code to allocate, initialize or free expanded_lr_out.
15824         (df_rd_bb_local_compute_process_def): Restructured to make
15825         more understandable.
15826         (df_rd_confluence_n): Add code to do nothing with fake edges and
15827         code to no apply invalidate_by_call sets if the sets are being trimmed.
15828         (df_lr_local_finalize): Renamed to df_lr_finalize.
15829         (df_live_local_finalize): Renamed to df_live_finalize.
15831 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
15833         PR target/34831
15834         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
15835         deciding whether to use reciprocal instructions.
15837 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
15839         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
15840         dwarf2out_note_section_used if cold_text_section is NULL.
15842 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
15844         PR gcov-profile/34610
15845         * tree-cfg.c (make_edges): Mark both outgoing edges from
15846         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
15847         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
15848         from OMP_FOR and OMP_CONTINUE outgoing edges.
15850         * tree-profile.c (tree_profiling): Return early if
15851         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
15852         at the end.
15853         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
15854         from cfun to child_cfun.
15855         * function.h (struct function): Add after_tree_profile bit.
15857 2008-01-19 Anatoly Sokolov <aesok@post.ru>
15859         * config/avr/avr.S (_exit): Disable interrupt.
15861 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
15862             Steven Bosscher  <stevenb.gcc@gmail.com>
15864         PR rtl-optimization/26854
15865         PR rtl-optimization/34400
15866         * df-problems.c (df_live_scratch): New scratch bitmap.
15867         (df_live_alloc): Allocate df_live_scratch when doing df_live.
15868         (df_live_reset): Clear the proper bitmaps.
15869         (df_live_bb_local_compute): Only process the artificial defs once
15870         since the order is not important.
15871         (df_live_init): Init the df_live sets only with the variables
15872         found live by df_lr.
15873         (df_live_transfer_function): Use the df_lr sets to prune the
15874         df_live sets as they are being computed.  
15875         (df_live_free): Free df_live_scratch.
15877 2008-01-18  Ian Lance Taylor  <iant@google.com>
15879         * common.opt: Add fmerge-debug-strings.
15880         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
15881         flag_merge_debug_strings rather than flag_merge_constants.
15882         * doc/invoke.texi (Option Summary): Mention
15883         -fmerge-debug-strings.
15884         (Debugging Options): Document -fmerge-debug-strings.
15886 2008-01-18  Ian Lance Taylor  <iant@google.com>
15888         PR c++/33407
15889         * tree.h (DECL_IS_OPERATOR_NEW): Define.
15890         (struct tree_function_decl): Add new field operator_new_flag.
15891         * tree-inline.c (expand_call_inline): When inlining a call to
15892         operator new, force the return value to go into a variable, and
15893         set DECL_NO_TBAA_P on that variable.
15894         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
15896 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
15898         PR debug/34484
15899         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
15900         DWARF2_DEBUGGING_INFO.
15901         (dwarf2out_note_section_used): Ditto.  Add prototype.
15902         (have_multiple_function_sections, text_section_used,
15903         cold_text_section_used, *cold_text_sections): Move declarations
15904         before their uses.
15906 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
15908         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
15909         field and add signal_ra.
15910         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
15911         assignments to frame state pc.  Move end of stack check after
15912         MD_FALLBACK_FRAME_STATE_FOR.
15913         (uw_update_context_1): Use frame state signal_regs if set, instead
15914         of checking signal_frame flag.
15915         (uw_update_context): Use frame state signal_ra if set.
15916         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
15917         * config/xtensa/linux-unwind.h: New file.
15919 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
15921         * modulo-sched.c (get_sched_window): Fix comment typo.
15923 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
15925         PR tree-optimization/34648
15926         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
15928 2008-01-17  Anatoly Sokolov <aesok@post.ru>
15930         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
15931         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
15933 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
15935         PR rtl-optimization/34400
15936         * df-core.c (df_worklist_dataflow_overeager,
15937         df_worklist_dataflow_doublequeue): New functions.
15938         (df_worklist_dataflow): Two different worklist solvers.
15939         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
15940         New param.
15942 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
15944         PR testsuite/34821
15945         * doc/invoke.texi: Document the dependence on pthread for fopenmp
15946         and ftree-parallelize-loops.
15948 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
15950         PR rtl-optimization/34826
15951         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
15953 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
15955         * global.c (find_reg): Mark the eh regs as used if necessary.
15956         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
15957         * ra.h (struct allocno): no_eh_reg field added.  Changed
15958         no_stack_reg type to bitfield.
15960 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
15962         * tree.c (substitute_in_expr): Add missing 'break'.
15964 2008-01-17  Richard Guenther  <rguenther@suse.de>
15966         PR tree-optimization/34825
15967         * tree-ssa-math-opts.c (is_division_by): Do not recognize
15968         x / x as division to handle.
15970 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15972         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
15973         "-pthread" is specified.
15974         * pa-hpux11.h (LIB_SPEC): Likewise.
15976 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
15977             Peter Bergner  <bergner@vnet.ibm.com>
15979         PR rtl-optimization/33796
15980         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
15982 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15984         PR libgfortran/34699
15985         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
15986         static links.
15987         * pa-hpux10.h (LINK_SPEC): Likewise.
15988         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
15990 2008-01-16  Richard Guenther  <rguenther@suse.de>
15992         PR middle-end/32628
15993         * fold-const.c (fold_convert_const_int_from_int): Do not
15994         set overflow if that occured only because of a sign extension
15995         change when converting from/to a sizetype with the same
15996         precision and signedness.
15998 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16000         PR debug/34249
16001         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16002         location address to the correct place.  Update copyright year.
16004 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16006         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16007         no dependences in the dependence_relations vector.
16009 2008-01-16  Jan Hubicka  <jh@suse.cz>
16011         PR rtl-optimization/31396
16012         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16013         * cfg.c (dump_reg_info): Print it.
16014         * regs.h (struct reg_info_t): add freq_calls_crossed.
16015         (REG_FREQ_CALLS_CROSSED): New macro.
16016         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16017         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16018         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16019         regmove_optimize): Update call crossed frequencies.
16020         * local-alloc.c (struct qty): Add freq_calls_crossed.
16021         (alloc_qty): Copute freq_calls_crossed.
16022         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16023         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16024         * ra.h (struct allocno): Add freq_calls_crossed.
16026 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16028         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16029         libgomp when compiling with ftree-parallelize-loops.
16030         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16032 2008-01-16  Richard Guenther  <rguenther@suse.de>
16034         PR tree-optimization/34769
16035         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16036         * tree.c (int_cst_value): Instead make this function more
16037         permissive in what it accepts as valid input.  Document this
16038         function always sign-extends the value.
16040 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16041             Richard Guenther  <rguenther@suse.de>
16043         PR c/34668
16044         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16045         (gimple_fold_indirect_ref_rhs): ... this.
16046         (gimple_fold_indirect_ref): New function with foldings
16047         that preserve lvalueness.
16048         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16049         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16050         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16051         to fold an INDIRECT_REF, fall back to the old use of
16052         fold_indirect_ref_1.
16054 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16056         * tree-data-ref.c (subscript_dependence_tester_1): Call 
16057         free_conflict_function.
16058         (compute_self_dependence): Same.
16060 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16062         PR debug/34249
16063         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16064         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16065         function global.
16066         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16067         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16068         for DWARF2_UNWIND_INFO targets.
16070 2008-01-16  Richard Guenther  <rguenther@suse.de>
16072         PR c/34768
16073         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16074         type qualifiers for function types.
16076 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16078         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16079         loop_iterator li from previous commit.
16081 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16083         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16085 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16087         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16088         (parallelize_loops): Don't parallelize irreducible components.
16090 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16092         PR c++/24924
16093         * c-opts (c_common_post_options): Do not enable CPP
16094         flag_pedantic_errors by default.
16095         
16096 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16098         PR rtl-optimization/31944
16099         * cse.c (remove_pseudo_from_table): New function.
16100         (merge_equiv_classes): Use above function to remove pseudo-registers.
16101         (invalidate): Likewise.
16103 2008-01-13  Richard Guenther  <rguenther@suse.de>
16105         PR middle-end/34601
16106         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16107         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16109 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16111         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16112         validate_change to unshare the source of the PC set.
16114 2008-01-12  Jan Hubicka  <jh@suse.cz>
16116         PR middle-end/32135
16117         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16118         references above array bounds.  This might trigger bounds checks for
16119         pointers to arrays.
16121 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16123         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16124         new_replaceable_dependencies.
16126 2008-01-12  Doug Kwan  <dougkwan@google.com>
16128         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16129         instead of OPT_Wreturn_type in warning due to ignored return type
16130         qualifiers.
16131         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16132         options included in -Wextra.
16133         * c.opt: New option -Wignored_qualifiers.
16134         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16135         -Wignore_qualifiers.
16136         (-Wignored-qualifiers): Document.
16137         (-Wreturn-type): Remove description of functionality now handled
16138         by -Wignored-qualifiers.
16140 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16142         PR ada/33788
16143         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16144         NOP_EXPR if it is between integral types with the same precision.
16146 2008-01-12  Jan Hubicka  <jh@suse.cz>
16148         PR other/28023
16149         * invoke.texi (max-inline-recursive-depth): Fix default value.
16151 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16153         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16154         correct type.
16156 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16157         
16158         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16159         
16160 2008-01-11  James E. Wilson  <wilson@specifix.com>
16162         PR target/26015
16163         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16165 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16167         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
16168         save/restore frame pointer register and don't use 'call-prologues' 
16169         optimization in function with "OS_task" attribute.
16171 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16173         PR middle-end/31309
16174         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16175         when copying to memory.
16177 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16179         PR rtl-optimization/30905
16180         * cfgcleanup.c: Include dce.h
16181         (crossjumps_occured): New global variable.
16182         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16183         If something changed, set crossjumps_occured to true.
16184         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16185         Don't add/remove fake edges to exit here...
16186         (cleanup_cfg): ...but do it here, when crossjumping.
16187         Run a fast DCE when successful crossjumps occured in the latest
16188         iteration of try_optimize_cfg.
16190 2008-01-11  Richard Guenther  <rguenther@suse.de>
16192         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16193         (struct vn_unary_op_s): Likewise.
16194         (vn_reference_insert): Free old reference on hash collision.
16196 2008-01-10  Raksit Ashok  <raksit@google.com>
16198         PR rtl-optimization/27971
16199         * combine.c (find_split_point): Split PLUS expressions which are
16200         inside a MEM rtx, and whose first operand is complex.
16202 2008-01-10  DJ Delorie  <dj@redhat.com>
16204         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16205         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16206         (m32c_hard_regno_ok): Call the underlying function.
16208 2008-01-10  Richard Guenther  <rguenther@suse.de>
16210         PR middle-end/34683
16211         * tree-cfg.c (tree_merge_blocks): Do not go through the
16212         full-blown folding and stmt updating path if we just deal
16213         with virtual operands.
16214         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16215         test for abnormal SSA_NAMEs.
16217 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16219         PR middle-end/34641
16220         * reload.c (push_reload): Add assertions.  All constants from
16221         reg_equiv_constant should have been used for replacing the respective
16222         pseudo earlier.
16223         (find_reloads_address): Invoke find_reloads_address_part for
16224         constant taken from the reg_equiv_constant array.
16226 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16228         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16229         field (valnum) the first in the struct.  Replace bools with
16230         unit bit fields.
16232 2008-01-10  Richard Guenther  <rguenther@suse.de>
16234         PR tree-optimization/34651
16235         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16236         types and ordering for masking and converting.
16238 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16240         PR tree-optimization/34017
16241         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16242         also for PHI_NODE expressions.
16244 2008-01-09  Jan Hubicka  <jh@suse.cz>
16246         PR tree-optimization/34708
16247         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16248         based on number of case labels.
16249         (init_inline_once): Remove switch_cost.
16250         * tree-inline.h (eni_weights_d): Remove switch_cost.
16252 2008-01-09  Richard Guenther  <rguenther@suse.de>
16253         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16255         PR middle-end/30132
16256         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16257         temporary if an rvalue is ok or an lvalue is not required.
16259 2008-01-09  Richard Guenther  <rguenther@suse.de>
16261         PR middle-end/34458
16262         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16263         adjust return type.
16265 2008-01-09  Richard Guenther  <rguenther@suse.de>
16267         PR middle-end/34679
16268         * tree.c (host_integerp): Check for sizetype only if the
16269         type is an integer type.
16271 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16273         PR debug/26364
16274         * opts.c (decode_options): Disable inlining of functions called
16275         once if not in unit-at-a-time mode.
16277 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16279         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16281 2008-01-08  Richard Guenther  <rguenther@suse.de>
16283         PR middle-end/31863
16284         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16285         out early if the result will be unused.
16287 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16289         PR target/34709
16290         Revert:
16292         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16293         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16294         for TARGET_RECIP.       
16295         
16296 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16297         
16298         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16299         for vectorization tuned.
16300         
16301 2008-01-08  Richard Guenther  <rguenther@suse.de>
16303         PR tree-optimization/34683
16304         * tree-ssa-operands.c (operand_build_cmp): Export.
16305         * tree-ssa-operands.h (operand_build_cmp): Declare.
16306         * tree-vn.c (vuses_compare): Remove.
16307         (sort_vuses): Use operand_build_cmp.
16308         (sort_vuses_heap): Likewise.
16309         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16310         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16311         (vdefs_to_vec): Do not sort already sorted VDEFs.
16313 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16315         PR middle-end/34694
16316         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16318 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16320         PR target/34702
16321         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16322         limitations of reciprocal sequences on x86 targets.
16324 2008-01-08  Richard Guenther  <rguenther@suse.de>
16326         PR tree-optimization/34683
16327         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16329 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16331         PR target/34622
16332         * config/darwin.c (darwin_mergeable_string_section): Don't use
16333         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16335 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16337         PR target/34682
16338         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16339         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16340         predicates of op0 and op1 to register_operand.
16341         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16342         expander using X87MODEF mode iterator.  Change predicates of
16343         op0 and op1 to register_operand.
16344         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16345         corresponding patterns and macroize using MODEF macro.  Change
16346         predicates of op0 and op1 to register_operand and remove
16347         "m" constraint. Disparage "r" alternative with "!".
16348         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16349         macroize using X87MODEF macro.  Change predicates of op0 and op1
16350         to register_operand and remove "m" constraint.  Disparage "r"
16351         alternative with "!".
16352         (absneg splitter with memory operands): Remove.
16353         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16354         patterns and macroize using X87MODEF mode iterator.
16355         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16356         Change predicate of op1 to register_operand.
16357         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16358         for memory operands.
16360 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16362         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16364 2008-01-07  Richard Guenther  <rguenther@suse.de>
16366         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16367         fields.
16369 2008-01-07  Richard Guenther  <rguenther@suse.de>
16371         PR tree-optimization/34683
16372         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16373         VOPs of the needed size to save memory.  Use VEC_quick_push
16374         to save compile-time.
16375         (vdefs_to_vec): Likewise.
16377 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16379         * config/spu/spu.md (divdf3): Genetate inline code for double
16380         division.  The implementation doesn't handle INF or NAN, therefore it
16381         only applies when -ffinite-math-only is given.
16383 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16385         PR libstdc++/34680
16386         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16387         * doc/cpp.texi ([Common Predefined Macros]): Document.
16389 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16391         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16392         order to use commutative addition instead of subtraction.
16394 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16395             Mircea Namolaru  <namolaru@il.ibm.com>
16396             Vladimir Yanovsky  <yanov@il.ibm.com>
16397             Revital Eres  <eres@il.ibm.com>
16399         PR tree-optimization/34263
16400         * tree-outof-ssa.c (process_single_block_loop_latch,
16401         contains_tree_r): New functions.
16402         (analyze_edges_for_bb): Call process_single_block_loop_latch
16403         function to empty single-basic-block latch block if possible.
16405 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16407         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16408         for TARGET_RECIP.
16409         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16411 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16413         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16415 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16417         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16419 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16421         PR tree-optimization/34618
16422         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16423         flag from T.
16425 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16427         PR target/34673
16428         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16429         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16430         Update copyright year.
16432         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16433         Update copyright year.
16434         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16435         using NR fixup.
16437 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16439         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16440         edge does not point to current bb before changing need_assert.
16442 2008-01-04  Richard Guenther  <rguenther@suse.de>
16444         PR middle-end/34029
16445         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16446         for verifying purposes if they are is_gimple_min_invariant.
16448 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16450         PR tree-optimization/34448
16451         PR tree-optimization/34465
16452         * gimplify.c (gimplify_init_constructor): Add new parameter
16453         notify_temp_creation.  Use it.
16454         (gimplify_modify_expr_rhs): Take volatiles into account when
16455         optimizing constructors.
16456         Do not optimize constructors if gimplify_init_constructor will dump to
16457         memory.
16458         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16459         * gcc.c-torture/compile/pr34448.c: New.
16461 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16463         PR gcov-profile/34609
16464         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16465         return_slot if result is TREE_ADDRESSABLE.
16467 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16469         * config/mips/mips.md (sqrt_condition): Tweak comment.
16470         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16472 2008-01-03  Tom Tromey  <tromey@redhat.com>
16474         PR c/34457
16475         * c-common.c (c_type_hash): Handle VLAs.
16477 2008-01-03  Jan Hubicka  <jh@suse.cz>
16479         PR tree-optimization/31081
16480         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16481         0 when inlining and not inlining to first basic block.
16482         (remap_decl): When var is initialized to 0, don't set default_def.
16483         (expand_call_inline): Set entry_bb.
16484         * tree-inline.h (copy_body_data): Add entry_bb.
16486 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16488         PR c++/34619
16489         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16490         before returning.
16492         PR tree-optimization/29484
16493         * tree-inline.c (inline_forbidden_p_2): New function.
16494         (inline_forbidden_p): Disallow inlining if some static var
16495         has an address of a local LABEL_DECL in its initializer.
16496         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16497         vs. inlining.
16499 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16501         PR tree-optimization/34635
16502         * tree-data-ref.c (add_other_self_distances): Make sure that the
16503         evolution step is constant.
16505 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16507         PR middle-end/34608
16508         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16510 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16512         * tree-sra.c (scalarize_init): Insert the generate_element_init
16513         statements after the generate_element_zero statements.
16515 2008-01-02  Richard Guenther  <rguenther@suse.de>
16517         PR middle-end/34093
16518         PR middle-end/31976
16519         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16520         for very large number of operands instead of ICEing.
16522 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16524         PR target/34013
16525         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16526         while stack probing.
16528 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16530         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16531         in C++0x mode.
16533 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16535         PR libmudflap/26442
16536         * tree-mudflap.c (mx_register_decls): Guard warning by
16537         !DECL_ARTIFICIAL check.
16539 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16541         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16542         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16543         sse5_perm<mode>): Fix constraints.