OSDN Git Service

* Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-04-10  Kazu Hirata  <kazu@codesourcery.com>
2
3         * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
4         tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
5         global.o, cfglayout.o, lambda-code.o, reg-stack.o,
6         build/genextract.o): Depend on vecprim.h.
7         * cfglayout.c, df-problems.c, function.c, genextract.c,
8         global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
9         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
10         vecprim.h.
11         * vecprim.h: New.
12
13 2006-04-10  Geoffrey Keating  <geoffk@apple.com>
14
15         * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
16         Declare VECs of this type.
17         (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
18         (remove_children): Delete.
19         (add_dwarf_attr): Use VEC routines.
20         (add_AT_flag): Update for changes to add_dwarf_attr.
21         (add_AT_int): Likewise.
22         (add_AT_unsigned): Likewise.
23         (add_AT_long_long): Likewise.
24         (add_AT_vec): Likewise.
25         (add_AT_string): Likewise.
26         (add_AT_die_ref): Likewise.
27         (add_AT_fde_ref): Likewise.
28         (add_AT_loc): Likewise.
29         (add_AT_loc_list): Likewise.
30         (add_AT_addr): Likewise.
31         (add_AT_lbl_id): Likewise.
32         (add_AT_lineptr): Likewise.
33         (add_AT_macptr): Likewise.
34         (add_AT_offset): Likewise.
35         (add_AT_range_list): Likewise.
36         (get_AT): Use VEC_iterate.
37         (remove_AT): Use VEC_ordered_remove.
38         (free_die): Fold remove_children into here; have it use VEC_iterate.
39         (print_die): Use VEC_iterate on attrs.
40         (reverse_die_lists): Don't reverse attr lists.
41         (die_checksum): Use VEC_iterate on attrs.
42         (same_die_p): Likewise.
43         (output_location_lists): Likewise.
44         (build_abbrev_table): Likewise.
45         (size_of_die): Likewise.
46         (unmark_all_dies): Likewise.
47         (output_abbrev_section): Likewise.
48         (output_die): Likewise.
49         (prune_unused_types_walk_attribs): Likewise.
50
51 2006-04-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
52
53         * doc/install.texi (*-*-solaris2*): Point to the configure page.
54
55 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
56
57         PR debug/27057
58         * dwarf2out.c (is_symbol_die): Return true also for namespaces.
59
60 2006-04-09  Roger Sayle  <roger@eyesopen.com>
61
62         * expr.c (store_constructor): Don't bother clearing target if
63         we're about to assign a vector to it using vec_init_optab.
64
65 2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
66         
67         * tree-ssa-alias.c (lhs_may_store_to): New function.
68         (recalculate_used_alone): Handle LHS of calls.
69
70 2006-04-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
71
72         PR target/27034
73         PR target/26508
74         * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
75         * pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
76         (LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
77         (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
78         (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
79         (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
80         section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
81         stubs.  Add ".align 8" directives before all ".dword" directives.
82         (GTHREAD_USE_WEAK): Revise comment.
83         (TARGET_ATTRIBUTE_WEAK): Define.
84         * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
85         dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
86         * stublib.c: New file.
87
88         PR target/26743
89         PR target/11254
90         PR target/10274
91         * pa.md (cbranch patterns): Revise arguments used in calls to
92         output_cbranch, output_bb and output_bvd.  Add long branch length
93         attributes.
94         (fbranch patterns): Handle long branches.
95         (jump): Revise length check.  Revise arguments for output_lbranch call.
96         Add long branch length attributes.
97         (decrement_and_branch_until_zero): Add long branch length attributes.
98         (output_movb, output_parallel_addb and output_parallel_movb patterns):
99         Likewise.  Revise arguments for output_parallel_addb and
100         output_parallel_movb calls.
101         * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
102         output_parallel_movb and output_parallel_addb): Update prototypes.
103         * pa.c (output_cbranch): Revise arguments.  Correct handling of
104         nullification in long branches.
105         (output_lbranch): Add new argument to control extraction of delay
106         instruction.
107         (output_bb): Handle long branches.
108         (output_bvb, output_dbra, output_movb, output_parallel_movb,
109         output_parallel_addb): Likewise.
110
111 2006-04-09  Richard Sandiford  <richard@codesourcery.com>
112
113         PR rtl-optimization/27073
114         * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
115         not REG_EQUIVs.
116
117 2006-04-08  Daniel Berlin  <dberlin@dberlin.org>
118
119         * tree.h (tree_memory_tag): Add old_used_alone.
120         (SMT_OLD_USED_ALONE): New macro.
121         * tree-ssa-alias.c (recalculate_used_alone): Stop
122         marking things for renaming unnecessarily.
123
124 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
125
126         * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
127         config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
128         config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
129         haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
130         sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
131         tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
132         tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
133         spelling convensions.
134         * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
135         doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
136         typos.  Follow spelling conventions.
137
138 2006-04-07  DJ Delorie  <dj@redhat.com>
139
140         * config/m32c/m32c.c (m32c_function_arg): Structures are always
141         passed on the stack.
142         (m32c_init_cumulative_args): When a function returns a structure,
143         always pass the pointer to that return area on the stack.
144         (m32c_function_arg_advance): Don't increment the parameter number
145         if we're processing the returned structure pointer.
146         (pushm_info): Reverse order of registers.
147
148 2006-04-07  Sebastian Pop  <pop@cri.ensmp.fr>
149
150         * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
151         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
152         number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
153         estimate_numbers_of_iterations_loop): Use build_int_cst instead of 
154         build_int_cst_type.
155         * tree-chrec.c (chrec_fold_multiply_poly_poly,
156         chrec_fold_multiply): Same.
157         * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
158         force_expr_to_var_cost): Same.
159         * tree-mudflap.c (mf_xform_derefs_1): Same.
160         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
161
162 2006-04-07  David Edelsohn  <edelsohn@gnu.org>
163
164         * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
165         treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
166         insn.
167
168 2006-04-07  Jan Hubicka  <jh@suse.cz>
169
170         * ipa-inline.c (cgraph_early_inlining): Collect garbage.
171
172 2006-04-07  Richard Guenther  <rguenther@suse.de>
173
174         PR tree-optimization/26135
175         * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
176         loads for store copy-prop.
177         (copy_prop_visit_stmt): Likewise.
178
179 2006-04-05  Robert Millan  <robertmh@gnu.org>
180
181         * gcc/config/i386/linux.h:  Add a comment to mark macros that are
182         being overriden in config/k*bsd-gnu.h.
183         * gcc/config/kfreebsd-gnu.h:  Redefine GLIBC_DYNAMIC_LINKER instead of
184         DYNAMIC_LINKER.
185         * gcc/config/knetbsd-gnu.h:  Ditto.
186
187 2006-04-06  Jan Hubicka  <jh@suse.cz>
188
189         PR profile/20815
190         PR profile/26399
191         * coverage.c (coverage_checksum_string): Reorganize loop to not read
192         after buffer.
193
194 2006-04-06  Mike Stump  <mrs@apple.com>
195
196         * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
197         for HAVE_nonlocal_goto to be consistent.
198         (expand_builtin_nonlocal_goto): Likewise.
199         (expand_builtin_strcmp): Use #ifdef instead of #if
200         for HAVE_cmpstrnsi to be consistent.
201
202 2006-04-05  DJ Delorie  <dj@redhat.com>
203
204         * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
205         vs m32c.
206
207 2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
208
209         * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
210         got-relative addressing for anything but SImode.
211
212         * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
213         even if the calling function doesn't modify them.
214
215 2006-04-05  Richard Guenther  <rguenther@suse.de>
216
217         PR tree-optimization/26919
218         * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
219         to cgraph_estimate_size_after_inlining.
220
221 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
222
223         * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
224
225 2006-04-05  Sebastian Pop  <pop@cri.ensmp.fr>
226
227         PR tree-optimization/26996
228         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
229         VECTOR_TYPE variables.
230
231 2006-04-05  Richard Guenther  <rguenther@suse.de>
232
233         PR tree-optimization/26763
234         * fold-const.c (fold_comparison): Move folding of
235         PTR + CST CMP PTR + CST ...
236         (fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
237
238 2006-04-05  Gerald Pfeifer  <gerald@pfeifer.com>
239
240         * doc/install.texi (Prerequisites): Refine some wording on
241         bootstrapping and ksh.
242         Move the version numbers of DejaGnu here from the testing section
243         and fix casing of names.
244         Fix markup and clarify wording for autogen requirements.
245         Refer to GCJ instead of just java.
246         Refer to SVN instead of CVS.
247         Describe diffutils as useful instead of necessary.
248         (Downloading the source): Refer to SVN instead of CVS.
249         Adjust a link to our web site accordingly.
250         (Configuration): Fix casing of Bison.
251         (Building): Refer to SVN instead of CVS.  
252         Fix a sentence on the use of Bison and remove duplicate (and
253         incorrect) version number of Bison requirement.
254         Remove one redundant list of packages needed for building.
255         (Specific): Avoid reference to CVS.
256
257 2006-04-04  Eric Christopher  <echristo@apple.com>
258
259         * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
260         (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
261         (rs6000_handle_struct_attribute): New.
262         (rs6000_ms_bitfield_layout_p): Ditto.
263
264 2006-04-04  Geoffrey Keating  <geoffk@apple.com>
265
266         * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
267         NULL for dso parameter to atexit_common.
268
269 2006-04-04  Eric Christopher  <echristo@apple.com>
270
271         * config/i386/i386.c (machopic_output_stub): Output \t
272         between instructions and operands.
273
274 2006-04-04  David Edelsohn  <edelsohn@gnu.org>
275
276         * config/rs6000/rs6000.c (num_insns_constant_wide): Change
277         satisfies_constraint_[IL] to explicit tests on value.
278
279 2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
280
281         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
282         set_nb_iterations_in_loop): Use build_int_cst instead of
283         build_int_cst_type.
284         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
285         build_int_cst instead of convert.
286
287 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
288
289         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
290         new value 2 for incoming.
291         * function.c (expand_function_start): Call struct_value_rtx
292         with incoming as 2.
293         * config/sparc/sparc.md: Comment updated_return.
294         * config/sparc/sparc.opt: Add -mstd-struct-return option.
295         * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
296         struct return if sparc_std_struct_return and incoming is 2.
297         (print_operand): Do not adjust return if
298         sparc_std_struct_return.
299
300 2006-04-04  Roger Sayle  <roger@eyesopen.com>
301
302         * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
303         convert in the middle-end.
304         * expr.c (store_expr, store_constructor, get_inner_reference,
305         expand_expr_real_1, string_constant, try_casesi, try_tablejump):
306         Likewise.
307         * tree.c (build_range_type): Likewise.
308
309 2006-04-04  Tom Tromey  <tromey@redhat.com>
310
311         * doc/install.texi (Prerequisites): Mention jar.
312
313 2006-04-04  Daniel Berlin  <dberlin@dberlin.org>
314
315         * doc/tree-ssa.texi (Preserving the virtual ssa form): New
316         subsection.
317
318 2006-04-04  Matthias Klose  <doko@debian.org>
319
320         * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
321
322 2006-04-03  Geoffrey Keating  <geoffk@apple.com>
323
324         * doc/extend.texi (Function Attributes): Rewrite visibility
325         attribute documentation.
326         * doc/invoke.texi (C++ Dialect Options): Rewrite
327         -fvisibility-inlines-hidden documentation to describe something
328         entirely different, although in practise compatible.
329         (Code Gen Options): Warn about system headers in -fvisibiltity=
330         documentation.
331
332         * doc/extend.texi (Other Builtins): Document that
333         __builtin_nan is a compile-time constant only when its argument
334         is valid.
335
336 2006-04-03  Adam Nemet  <anemet@caviumnetworks.com>
337
338         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
339         trying to remove TRUNCATE check if all bits outside the new mode
340         are identical to the sign bit.
341
342 2006-04-03  Jeff Law  <law@redhat.com>
343
344         * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
345         and operand scanning in some common cases.
346
347 2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
348             Dale Johannesen  <dalej@apple.com>
349
350         PR target/19653
351         * regclass.c (struct reg_pref): Update documentation.
352         (regclass): Set prefclass to NO_REGS if memory is the best option.
353         (record_reg_classes): Cope with a prefclass set to NO_REGS.
354         * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
355         into account.  For non-registers, equate an empty preferred
356         reload class to a `!' in the constraint; move the if clause to
357         do so after those that reject the insn.
358         (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
359         return NO_REGS.
360         (find_dummy_reload): Likewise.
361         * doc/tm.texi (Register Classes): Document what it means
362         if PREFERRED_*_RELOAD_CLASS return NO_REGS.
363         * config/i386/i386.c (ix86_preferred_reload_class): Force
364         using SSE registers (and return NO_REGS for floating-point
365         constants) if math is done with SSE.
366         (ix86_preferred_output_reload_class): New.
367         * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
368         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
369         * config/i386/i386.md: Remove # register preferences.
370
371 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
372
373         PR bootstrap/26992
374         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
375         chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
376         the type of nb_iter.
377         (instantiate_parameters_1): Convert the operands before calling
378         chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
379         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
380
381 2006-04-02  Roger Sayle  <roger@eyesopen.com>
382
383         * builtins.c (dummy_object): Use build_int_cst instead of convert.
384         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
385         instead of convert.
386         * dojump.c (do_jump): Likewise.
387         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
388         * gimplify.c (gimple_boolify, gimplify_init_constructor,
389         gimplify_boolean_expr): Likewise.
390         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
391         * varasm.c (array_size_for_constructor): Likewise.
392         * tree-object-size.c (compute_object_offset): Likewise.
393
394 2006-04-02  Roger Sayle  <roger@eyesopen.com>
395
396         PR middle-end/26977
397         * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
398         NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
399
400 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
401
402         PR tree-optimization/26939
403         * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
404
405 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
406
407         * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
408         at_stmt.  Convert the type of operands before calling
409         build_polynomial_chrec.
410         (add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
411         add_to_evolution_1.
412         (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
413         (instantiate_parameters_1): Convert the type of operands before calling
414         build_polynomial_chrec.
415         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
416         chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
417         reset_evolution_in_loop): Insert asserts to check the types of the
418         operands.
419         (chrec_type): Moved...
420         (eq_evolutions_p): Use operand_equal_p.
421         * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
422         the types of the operands.
423         (chrec_type): ...here.
424         * tree-data-ref.c (create_data_ref): Convert the operands before
425         calling chrec_replace_initial_condition.
426         (same_access_functions, analyze_subscript_affine_affine,
427         analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
428         (compute_subscript_distance, analyze_ziv_subscript,
429         analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
430         analyze_miv_subscript): Convert the operands before calling
431         chrec_fold_minus or chrec_fold_plus.
432
433 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
434
435         * tree-data-ref.c (compute_all_dependences): Use a pointer to
436         the dependence_relations vector.
437         (compute_data_dependences_for_loop): Adjust call to
438         compute_all_dependences.
439
440 2006-04-01  Roger Sayle  <roger@eyesopen.com>
441             Richard Henderson  <rth@redhat.com>
442
443         * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
444         gimple_boolify on the condition before calling gimplify_expr.
445
446 2006-03-31  Bob Wilson  <bob.wilson@acm.org>
447
448         * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
449         to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
450         the frame size.  Update to use the new macros.
451         * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
452         * config/xtensa/ieee754-df.S: Likewise.
453
454 2006-03-31  Richard Henderson  <rth@redhat.com>
455
456         * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
457         (make_edges): ... here.  Control fallthru creation with a local
458         variable.  Do not play with fake edges.
459         (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
460         (make_goto_expr_edges): Don't play with fake edges.  Make for_call
461         a boolean.
462
463 2006-04-01  Joseph S. Myers  <joseph@codesourcery.com>
464
465         * dwarf2.h (DW64_CIE_ID): Define.
466         * dwarf2out.c (DWARF_CIE_ID): Define.
467         (output_call_frame_info): Output 0xffffffff before standard 8-byte
468         length header.  Use DWARF_CIE_ID.
469         (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
470         dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
471
472 2006-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
473
474         * config/sh/linux-atomic.asm: New file.
475         * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
476
477 2006-03-31  DJ Delorie  <dj@redhat.com>
478
479         * config/m32c/cond.md: Set condition flags properly throughout.
480         * config/m32c/minmax.md: Likewise.
481         * config/m32c/prologue.md: Likewise.
482         * config/m32c/bitops.md: Likewise.
483         * config/m32c/muldiv.md: Likewise.
484         * config/m32c/mov.md: Likewise.
485         * config/m32c/addsub.md: Likewise.
486         * config/m32c/m32c.md: Likewise.
487         * config/m32c/jump.md: Likewise.
488         * config/m32c/shift.md: Likewise.
489
490         * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
491         conditionally output the pattern for this.
492         * config/m32c/m32c.c (flags_needed_for_conditional): New.
493         (m32c_compare_redundant): New.
494         (m32c_output_compare): New.
495         * config/m32c/m32c-protos.h (m32c_output_compare): New.
496
497         * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
498         dest, not src.  Allow other 4-byte modes.
499
500 2006-03-30  Denis Chertykov  <denisc@overta.ru>
501
502         * doc/md.texi: Refer to avr/constraints.md instead of
503         avr/avr.h.
504
505 2006-03-30  Roger Sayle  <roger@eyesopen.com>
506
507         * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
508         signed vs. unsigned comparison failures on some hosts.
509
510 2006-03-31  Alan Modra  <amodra@bigpond.net.au>
511
512         PR target/26459
513         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
514         change to FLOAT_REGS.
515
516         * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
517         (rs6000_override_options): Use it.
518         (rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
519         only for -mabi=spe/no-spe and -mabi=altivec.
520
521 2006-03-30  Geoffrey Keating  <geoffk@apple.com>
522
523         * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
524         !Zdynamiclib.
525
526 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
527
528         * Makefile.in: Rename docdir to gcc_docdir.
529
530 2006-03-30  Roger Sayle  <roger@eyesopen.com>
531
532         PR target/17959
533         * expr.c (emit_group_store):  Optimize group stores into a pseudo
534         register by using a paradoxical subreg to initialize the destination
535         if the first or last member of the group specifies a "low part".
536
537 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
538
539         PR target/26734
540         * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
541         * target.h (struct gcc_target.speculate_insn): Change type of the
542         second parameter to 'int'.
543         * lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
544         the second operand of the DEPS_LIST.
545         (copy_DEPS_LIST_list): Update reference to the second operand of the
546         DEPS_LIST.
547         * rtl.h (alloc_DEPS_LIST): Update signature.
548         * sched-int.h (ds_t): Change typedef to 'int'.
549         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
550
551 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
552
553         * haifa-sched.c (try_ready): Change condition to restore
554         non-speculative pattern of the instruction.
555         (process_insn_depend_be_in_spec): Code to keep probability of the
556         speculative dependence non-decreasing.
557
558 2006-03-30  Jie Zhang  <jie.zhang@analog.com>
559
560         * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
561         (single_move_for_movmem): ... this. Also change all uses.
562         (bfin_expand_strmov): Renamed to...
563         (bfin_expand_movmem): ... this. Also change all uses.
564         * config/bfin/bfin.md (movstrsi): Renamed to...
565         (movstrsi): ...this.
566
567 2006-03-30  Paolo Bonzini  <bonzini@gnu.org>
568
569         PR tree-optimization/26830
570
571         * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
572         (copy_prop_visit_stmt): Remove write-only variable ann.
573         (init_copy_prop): Check variable loop depth here.  Do not simulate
574         memory-tag and virtual operand PHIs except for store copy prop.
575
576 2006-03-30  Richard Guenther  <rguenther@suse.de>
577
578         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
579         variants with double arguments.
580
581 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
582
583         * genpreds.c (write_tm_constrs_h): Delete variable p.
584         * genconditions.c (write_header): Add tm-constrs.h to included
585         headers.
586         * genpeep.c (main): Add toplev.h to included headers.
587         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
588         (build/genpeep.o): Add toplev.h dependency.
589         * config/rs6000/constraints.md: Add "W" constraint.
590
591 2006-03-29  Roger Sayle  <roger@eyesopen.com>
592
593         * stor-layout.c (mode_for_size_tree): Remove restiction on type
594         sizes by correctly testing whether the size fits a host integer.
595         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
596         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
597         SImode range for the default sizetype and bitsizetype.
598
599 2006-03-29  Roger Sayle  <roger@eyesopen.com>
600
601         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
602         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
603         quickly if the argument is already of the correct type.
604         Call fold_build1 instead of build1.  Tidy up blank lines.
605
606 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
607
608         * genemit.c (main): Add tm-constrs.h to included headers.
609         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
610         * genpeep.c (main): Add tm-constrs.h to included headers.
611         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
612         (write_tm_constrs_h): this and write complete file.
613         (write_tm_preds_h): Do not emit satisfies_constraint fns.
614         (write_insn_preds_c): Add tm-constrs.h to included headers.
615         (gen_constrs): New variable.
616         (parse_option): Parse "-c".
617         (main): Invoke write_tm_constrs_h.
618         * genrecog.c (write_header): Add tm-constrs.h to included headers.
619         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
620         (object_out_file): Add tm-constrs.h dependency.
621         (insn-emit.o): Same.
622         (insn-output.o): Same.
623         (insn-peep.o): Same.
624         (insn-preds.o): Same.
625         (insn-recog.o): Same.
626         (tm-constsr.h): New target.
627         (s-constrs-h): New target.
628
629         * config/rs6000/constraints.md: New file.
630         * config/rs6000/rs6000.c: Include tm-constrs.h.
631         (num_insn_constant_wide): Convert to satisfies_constraint.
632         (rs6000_rtx_costs): Convert to satisfies_constraint.
633         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
634         (CONST_OK_FOR_LETTER_P): Delete.
635         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
636         (EXTRA_CONSTRAINT): Delete.
637         (EXTRA_MEMORY_CONSTRAINT): Delete.
638         (EXTRA_ADDRESS_CONSTRAINT): Delete.
639         * config/rs6000/predicates.md: Convert to satisfies_constraint.
640         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
641         satisfies_constraint.
642
643         * config/i386/i386.c: Include tm-constrs.h.
644
645 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
646
647         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
648         * tree-data-ref.c (find_data_references_in_loop,
649         compute_data_dependences_for_loop): Use pointers to VEC.
650         (analyze_all_data_dependences): Adjust calls.
651         * tree-data-ref.h (find_data_references_in_loop,
652         compute_data_dependences_for_loop): Adjust declarations.
653         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
654         compute_data_dependences_for_loop.
655
656 2006-03-29  Paul Brook  <paul@codesourcery.com>
657
658         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
659         (movdf_vfp): Ditto.
660
661 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
662
663         PR tree-optimization/26859
664         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
665         division by zero.
666         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
667         for the step after fold_convert.
668
669 2006-03-29  Paul Brook  <paul@codesourcery.com>
670
671         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
672         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
673
674 2006-03-29  Paul Brook  <paul@codesourcery.com>
675
676         PR middle-end/23623
677         * targhooks.c (default_narrow_bitfield): New fuction.
678         * targhooks.h (default_narrow_bitfield): add prototype.
679         * target.h (gcc_target): Add narrow_volatile_bitfield.
680         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
681         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
682         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
683         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
684
685 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
686
687         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
688         tmake_file.
689         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
690         (NR_C_MODES): Add TDmode, DDmode and SDmode.
691         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
692         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
693         (s390_function_arg_float): Allow SDmode and DDmode values to be
694         passed in floating point registers.
695         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
696         check with SCALAR_FLOAT_MODE_P.
697         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
698
699 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
700
701         PR tree-optimization/25985
702         * tree-ssa-loop-niter.c (number_of_iterations_le,
703         number_of_iterations_ne): Make comments more precise.
704         (number_of_iterations_cond): Add only_exit argument.  Use the
705         fact that signed variables do not overflow only when only_exit
706         is true.
707         (loop_only_exit_p): New.
708         (number_of_iterations_exit): Pass result of loop_only_exit_p to
709         number_of_iterations_cond.
710
711 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
712
713         PR tree-optimization/26643
714         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
715         bit_field_refs.
716
717 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
718
719         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
720         (divsi3_i4_int): Likewise.
721
722 2006-03-28  Roger Sayle   <roger@eyesopen.com>
723
724         * expr.c (emit_group_store): Only create a new pseudo reg if the
725         quantity it needs to hold isn't already a suitable pseudo.
726
727 2006-03-28  Jeff Law  <law@redhat.com>
728
729         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
730         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
731
732 2006-03-28  Roger Sayle  <roger@eyesopen.com>
733
734         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
735         the equivalent ~X & Y, and the symmetry related transformations.
736         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
737         ~X & Y, and symmetry related transforms.
738
739 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
740
741         Revert my 2006-03-27 patches.
742
743 2006-03-28  Roger Sayle  <roger@eyesopen.com>
744
745         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
746         ~(T1)X, when T1 and T2 are integer types of the same precision
747         and (T2)X isn't an extension.
748
749 2006-03-28  Jeff Law  <law@redhat.com>
750
751         PR tree-optimization/26796
752         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
753         need EH edge cleanups rather than purging them immediately.
754         (eliminate_degenerate_phis): Handle queued EH cleanups.
755
756 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
757
758         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
759         from parent_var.
760
761 2006-03-27  Roger Sayle  <roger@eyesopen.com>
762
763         PR middle-end/22524
764         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
765         cast BIT_NOT_EXPR operand to the correct type.
766
767 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
768
769         * tree-loop-linear.c: Don't include varray.h.
770         (gather_interchange_stats, try_interchange_loops,
771         linear_transform_loops): Use VEC instead of VARRAY.
772         * lambda-mat.c: Don't include varray.h.
773         * tree-chrec.c: Same.
774         * lambda-trans.c: Same.
775         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
776         VEC instead of VARRAY.
777         * tree-vectorizer.h: Idem.
778         * tree-data-ref.c (dump_data_references,
779         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
780         initialize_data_dependence_relation, finalize_ddr_dependent,
781         compute_all_dependences, find_data_references_in_loop,
782         compute_data_dependences_for_loop, analyze_all_data_dependences,
783         free_dependence_relation, free_dependence_relations,
784         free_data_refs): Idem.
785         * tree-data-ref.h (data_reference_p, subscript_p): New.
786         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
787         VEC instead of VARRAY.
788         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
789         (find_data_references_in_loop, compute_data_dependences_for_loop,
790         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
791         dump_data_dependence_relations, free_dependence_relations,
792         free_data_refs): Adjust declaration.
793         (lambda_transform_legal_p): Move declaration here...
794         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
795         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
796         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
797         vect_analyze_data_refs): Use VEC instead of VARRAY.
798         * lambda.h (lambda_transform_legal_p): ...from here.
799         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
800         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
801         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
802         tree-chrec.o): Don't depend on VARRAY_H.
803
804 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
805
806         * rtl.def (Copyright): Update date.
807         (DEPS_LIST): Change type of the second operand to 'int'.
808         * target.h (Copyright): Update date.
809         (struct gcc_target.speculate_insn): Change type of the second parameter
810         to 'int'.
811         * lists.c (Copyright): Update date.
812         (alloc_DEPS_LIST): Change signature.  Update reference to the second
813         operand of the DEPS_LIST.
814         (copy_DEPS_LIST_list): Update reference to the second operand of the
815         DEPS_LIST.
816         * rtl.h (Copyright): Update date.
817         (alloc_DEPS_LIST): Update signature.
818         * sched-int.h (Copyright): Update date.
819         (ds_t): Change typedef to 'int'.
820         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
821
822 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
823
824         * haifa-sched.c (Copyright): Update date.
825         (try_ready): Change condition to restore non-speculative pattern
826         of the instruction.
827         (process_insn_depend_be_in_spec): Code to keep probability of the
828         speculative dependence non-decreasing.
829
830 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
831
832         * regrename.c (replace_oldest_value_addr): Initialize a variable to
833         shut up the compiler.
834
835 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
836
837         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
838         to use lib prefix for target.
839         ($(T)libic_invalidate_array_4-200.a): Likewise.
840         ($(T)libic_invalidate_array_4a.a): Likewise.
841
842 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
843             J"orn Rennecke <joern.rennecke@st.com>
844
845         * superh.opt: New file.
846         * sh.c (boardtype, osruntime): Remove.
847         * superh.h (SUBTARGET_OPTIONS): Remove.
848         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
849
850         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
851         arguments with ^ and/or [].
852
853         * config.gcc (sh-*-*): Add quoting to account for quirk of
854         Solaris /bin/sh.
855         Replace == with = in enable_incomplete_targets test.
856
857         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
858         with MASK_LITTLE_ENDIAN.
859
860         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
861         * config/sh/sh.opt: Added to some comments.
862         * config/sh/superh.h: Removed some chaff.
863
864         * config/sh/sh.opt: Add m4-[1234]00* options.
865         * config/sh/sh.c (sh_handle_option): Likewise.
866         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
867         (ic_invalidate_array_4-100.o): New rule.
868         ($(T)libic_invalidate_array_4-100.a): Likewise.
869         (ic_invalidate_array_4-200.o): Likewise.
870         ($(T)libic_invalidate_array_4-200.a): Likewise.
871         (ic_invalidate_array_4a.o): Likewise.
872         ($(T)libic_invalidate_array_4a.a): Likewise.
873         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
874         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
875         m4-200*, and m4a*.
876         * config/sh/crt1.asm: Merged in profiling code.
877         * config/sh/superh.h (STARTFILE_SPEC): Override.
878         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
879         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
880         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
881
882         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
883         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
884         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
885
886         * sh.opt (mpretend-cmove): New option.
887         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
888         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
889         (movsicc): Add TARGET_PRETEND_CMOVE code.
890
891 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
892
893         * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
894         s390_class_max_nregs): New function prototypes.
895         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
896         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
897         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
898         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
899
900 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
901
902         * dwarf2out.c (add_location_or_const_value_attribute): Call
903         tree_add_const_value_attribute if nothing else works.
904         (reference_to_unused): New.
905         (rtl_for_decl_init): Use reference_to_unused to decide whether
906         to output an initializer.
907
908 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
909
910         PR target/26459
911         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
912         peephole removing spe frob_di_df_2.
913
914 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
915
916         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
917         (subscript_dependence_tester_1): Declared.
918         (print_dir_vectors, print_dist_vectors): New.
919         (debug_data_dependence_relation): New.
920         (dump_data_dependence_relation): Print more details.
921         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
922         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
923         (save_dist_v, save_dir_v, add_outer_distances,
924         build_classic_dist_vector_1): New.
925         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
926         Don't test for lambda_vector_lexico_pos.
927         (same_access_functions, add_multivariate_self_dist,
928         add_other_self_distances, dir_from_dist): New.
929         (build_classic_dir_vector): Replace implementation almost identical to
930         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
931         dir_from_dist.
932         (subscript_dependence_tester_1): New.
933         (subscript_dependence_tester): Handle the lexicographically negative
934         distance vectors by recomputing the dependence relation.
935         (compute_affine_dependence): Remove parameter loop_nest_depth.
936         (compute_self_dependence): Don't call compute_subscript_distance.
937         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
938         Add a parameter for the loop_nest.
939         (find_loop_nest_1, find_loop_nest): New.
940         (compute_data_dependences_for_loop): Compute the loop nest, and give
941         up if the nest is not well formed.
942         * tree-data-ref.h (loop_p): New.
943         (struct data_dependence_relation): Replace size_vect field with
944         loop_nest, a vec of loops.
945         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
946         (DDR_LOOP_NEST): New.
947         (print_dir_vectors, print_dist_vectors,
948         debug_data_dependence_relation): Declared.
949         (index_in_loop_nest): New.
950         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
951         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
952         distance.
953
954 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
955
956         * simplify-rtx.c (simplify_relational_operation): Call
957         simplify_relational_operation_1 even if mode is VOIDmode.
958
959 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
960
961         PR tree-optimization/26804
962         * tree.h (DECL_CALL_CLOBBERED): New macro.
963         (tree_decl_common): Add call_clobbered_flag.
964         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
965         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
966         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
967         (mark_non_addressable): Ditto.
968         * tree-ssa.c (verify_call_clobbered): New function.
969         (verify_alias_info): Use it.
970         * tree-pass.h (pass_reset_cc_flags): New prototype.
971         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
972         (reset_cc_flags): New function.
973         * passes.c (init_optimization_passes): Call reset_cc_flags after
974         initializing referenced_vars.
975
976 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
977             Roger Sayle  <roger@eyesopen.com>
978
979         PR middle-end/26717
980         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
981         to 1.0 for non-real operands. Implement A / A optimization for
982         complex operands.
983
984 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
985
986         * config/i386/i386.c (size_cost): Correct the comment for
987         cost of storing fp registers.
988         (i386_cost): Likewise.
989         (i486_cost): Likewise.
990         (pentium_cost): Likewise.
991         (pentiumpro_cost): Likewise.
992         (k6_cost): Likewise.
993         (athlon_cost): Likewise.
994         (k8_cost): Likewise.
995         (pentium4_cost): Likewise.
996         (nocona_cost): Likewise.
997         (generic64_cost): Likewise.
998         (generic32_cost): Likewise.
999
1000 2006-03-24  Denis Chertykov  <denisc@overta.ru>
1001
1002         * config/avr/avr-protos.h (extra_constraint): Delete.
1003         (extra_constraint_Q): New declaration.
1004         * config/avr/constraints.md: New file.
1005         * config/avr/avr.md: Include it.
1006         (REG_X, REG_Y, REG_Z, REG_W): New constants.
1007         (TMP_REGNO, ZERO_REGNO): Likewise.
1008         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
1009         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
1010         (extra_constraint): Delete.
1011         (extra_constraint_Q): Test for memory constraint 'Q'.
1012         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
1013         (REG_CLASS_FROM_LETTER): Delete.
1014         (CONST_OK_FOR_LETTER_P): Delete.
1015         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1016         (EXTRA_CONSTRAINT): Delete.
1017         (TMP_REGNO): Delete.
1018         (ZERO_REGNO): Delete.
1019
1020 2006-03-24  Jeff Law  <law@redhat.com>
1021
1022         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
1023         directly.  Call mark_new_vars_to_rename slightly earlier.
1024
1025 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
1026
1027         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
1028         (is_cxx): Likewise.
1029         (gen_compile_unit_die): Use new language types for Objective-C and
1030         Objective-C++.
1031         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
1032         DW_LANG_C_plus_plus.
1033
1034         PR 26793
1035         * config/t-darwin (crt3.o): Work around bug 26840.
1036         * config/darwin-crt3.c: Rewrite.
1037         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
1038
1039 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
1040
1041         * doc/invoke.texi: Document -femit-class-debug-always
1042         * common.opt: Add -femit-class-debug-always.
1043
1044 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1045
1046         * config/s390/s390.c (s390_decompose_address): Allow SImode for
1047         index and base register.
1048         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
1049         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
1050         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
1051         REGNO_OK_FOR_INDEX_P.
1052         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
1053         ADDR_REGNO_P.
1054         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
1055         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
1056         REG_OK_FOR_BASE_P): Definitions removed.
1057
1058 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
1059
1060         PR middle-end/26611
1061         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
1062         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
1063         set yet or weren't marked as local yet.
1064
1065 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1066
1067         * regrename.c (scan_rtx_address): Initialize a variable to shut up
1068         the compiler.
1069
1070 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
1071
1072         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
1073         (rs6000_legitimate_small_data_p): Delete.
1074         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
1075         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
1076         and make static.  Add forward declaration.  Update uses.
1077         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
1078         of offsettable_memref_p.
1079         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
1080         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
1081
1082 2006-03-24  Jeff Law  <law@redhat.com>
1083
1084         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
1085         around bug in immediate-use iterator.
1086
1087 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
1088
1089         PR target/26607
1090         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
1091         or __LITTLE_ENDIAN__.
1092
1093 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
1094
1095         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
1096         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
1097         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
1098         * config/sh/sh.opt (mdiv=): Amend description.
1099         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
1100         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
1101         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
1102         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
1103         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
1104         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
1105         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
1106         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
1107         TARGET_DIVIDE_CALL_FP.
1108
1109 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1110
1111         * haifa-sched.c (choose_ready): Fix type of the local variable.
1112         Move local variables.  Add comment.
1113         (check_reg_live): Change signature.  Make callable from debugger.
1114         * sched-int.h (check_reg_live): Update signature.
1115         * sched-ebb.c (check_reg_live): Update parameters.
1116         * sched-rgn.c (check_reg_live): Ditto.
1117         (region_head_or_leaf_p): Check pointer before dereferencing.
1118         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
1119         before reload on optimization levels below 1.
1120
1121 2006-03-23  Richard Henderson  <rth@redhat.com>
1122
1123         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
1124         tls symbols.
1125
1126         PR target/26347
1127         * config/alpha/predicates.md (local_symbolic_operand): Reject
1128         weak symbols.
1129
1130 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
1131
1132         PR tree-opt/26795
1133         * tree-ssa-pre.c (create_value_expr_from): Don't reject
1134         expressions which have overflowed constants.
1135
1136 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
1137
1138         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
1139
1140 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
1141
1142         * cfgloopmanip.c (create_loop_notes): Removed.
1143         * final.c (final_scan_insn): Do not handle loop notes.
1144         * jump.c (squeeze_notes): Ditto.
1145         * cfglayout.c (skip_insns_after_block,
1146         duplicate_insn_chain): Ditto.
1147         * cfgcleanup.c (rest_of_handle_jump2): Do not call
1148         create_loop_notes.
1149         * cfgloop.h (create_loop_notes): Declaration removed.
1150
1151 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
1152
1153         * varasm.c (output_constant_pool): Restore fnname and fndecl
1154         arguments.
1155         (assemble_start_function): Adjust call accordingly.
1156         (assemble_end_function): Likewise.
1157
1158 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1159
1160         PR mudflap/26790
1161         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
1162
1163         PR mudflap/26789
1164         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
1165
1166 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1167
1168         PR driver/22600
1169         * system.h (ICE_EXIT_CODE): New macro.
1170         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
1171         (diagnostic_action_after_output): Likewise.
1172         * gcc.c (fatal_ice): New function.
1173         (execute): Use it instead of fatal.
1174         (fancy_abort): Likewise.
1175         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
1176
1177 2006-03-22  Jeff Law  <law@redhat.com>
1178
1179         * loop-unroll.c (analyze_iv_to_split_insn): Handle
1180         iv_analyze_result returning false.
1181
1182 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
1183
1184         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
1185
1186 2006-03-22  Richard Henderson  <rth@redhat.com>
1187
1188         PR middle-end/26084
1189         * except.c (duplicate_eh_regions_0): New.
1190         (duplicate_eh_region_1): Duplicate the children of the node as
1191         well as the node itself.  Link them up properly.
1192         (duplicate_eh_region_2): Merge into ...
1193         (duplicate_eh_regions): ... here.  Take copy_region argument, and
1194         copy only a sub-tree if asked.  Simplify copying and fixup.
1195         (eh_region_outer_p): New.
1196         * except.h (duplicate_eh_regions): Update decl.
1197         (eh_region_outer_p): Declare.
1198         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
1199         (lower_omp_master): Likewise.
1200         (lower_omp_ordered): Likewise.
1201         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
1202         (move_stmt_r): Use it to remap labels.  Handle recursion vs
1203         remap_decls_p properly.
1204         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
1205         (find_outermost_region_in_block): New.
1206         (new_label_mapper): New.
1207         (move_sese_region_to_fn): Copy eh information to the new function
1208         properly.
1209         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
1210         argument.
1211         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
1212         number.
1213
1214 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
1215
1216         * doc/md.texi (-mshared): Mention that -mshared code can be linked
1217         into shared libraries.
1218
1219 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
1220
1221         * doc/md.texi: Refer to i386/constraints.md instead of
1222         i386/predicates.md.
1223         * config/i386/constraints.md: New file, extracted from...
1224         * config/i386/predicates.md: ...here.
1225         * config/i386/i386.md: Include constraints.md.
1226
1227 2006-03-21  Jason Merrill  <jason@redhat.com>
1228
1229         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
1230
1231         PR middle-end/20297
1232         * expr.c (init_block_move_fn): Force default visibility.
1233         (init_block_clear_fn): Likewise.
1234         * builtins.c (expand_builtin_fork_or_exec): Likewise.
1235         * targhooks.c (default_external_stack_protect_fail): Likewise.
1236
1237 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
1238
1239         * config/mips/predicates.md (const_call_insn_operand): Allow direct
1240         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
1241         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
1242         Use TARGET_OLDABI instead of !TARGET_NEWABI.
1243         (loadgp): Use mips_current_loadgp_style.
1244         (loadgp_noshared): New pattern.
1245         (sibcall_internal): Use MIPS_CALL.
1246         (sibcall_value_internal): Likewise.
1247         (sibcall_value_multiple_internal): Likewise.
1248         (call_internal): Likewise.
1249         (call_value_internal): Likewise.
1250         (call_value_multiple_internal): Likewise.
1251         (call_split): Use MIPS_CALL and add an 'S' constraint.
1252         (call_value_split): Likewise.
1253         (call_value_multiple_split): Likewise.
1254         * config/mips/mips.opt (-mabicalls): Tweak docstring.
1255         (-mshared): New option.
1256         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
1257         (mips_current_loadgp_style): Declare.
1258         * config/mips/mips.c (mips_classify_symbol): Avoid using
1259         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
1260         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
1261         TARGET_ABSOLUTE_ABICALLS.
1262         (override_options): Adjust comments.  Improve the warning that is
1263         issued when -mabicalls and -G are used together.
1264         (mips_file_start): Remove comment.
1265         (mips_current_loadgp_style): New function.
1266         (mips_gnu_local_gp): New variable.
1267         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
1268         LOADGP_ABSOLUTE.
1269         (mips_output_function_prologue): Use mips_current_laodgp_style.
1270         (mips_expand_prologue): Call mips_emit_loadgp before emitting
1271         the cprestore instruction.
1272         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
1273         live for TARGET_ABSOLUTE_ABICALLS.
1274         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
1275         (ASM_SPEC): Pass down -mshared and -mno-shared.
1276         (MIPS_CALL): New macro.
1277         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
1278         definition.
1279         * doc/invoke.texi (-mabicalls): Update documentation.
1280         (-mshared): Document.
1281
1282 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
1283
1284         * config/ia64/unwind-hpux.c: New file.
1285         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
1286
1287 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
1288
1289         PR libgomp/26384
1290         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
1291
1292 2006-03-21  Jeff Law  <law@redhat.com>
1293
1294         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
1295         type conversions of a VR_VARYING source to a wider type.
1296
1297 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
1298
1299         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
1300         tm_file on Solaris 10 and later.
1301         (sparc64-*-solaris2*): Likewise.
1302         (sparc-*-solaris2*): Likewise.
1303         * config/sol26.h: Rename to config/sol2-6.h.
1304         * config/sol2-10.h: New file.
1305
1306 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
1307
1308         PR tree-opt/26781
1309         * tree-ssa-pre.c (create_component_ref_by_pieces):
1310         Handle STRING_CST.
1311
1312 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
1313
1314         PR c++/26690
1315         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
1316         return it immediately.
1317
1318 2006-03-21  Michael Matz  <matz@suse.de>
1319
1320         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
1321         New members.
1322         (remove_arc, add_arc): Update num_out_arcs member.
1323         (set_out_arc_insns_equiv_num): Returns nothing instead of number
1324         of out arcs.
1325         (cache_presence): New function.
1326         (compare_states_for_equiv): New function.
1327         (state_is_differed): Don't take number of outargs, adjust callers.
1328         Use new invariant for speeding up.
1329         (init_equiv_class): Create initial classes based on sorted
1330         input.
1331         (partition_equiv_class): Don't track out_arcs_num.
1332         (evaluate_equiv_classes): Call cache_presence on all states and
1333         sort them.
1334
1335 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
1336
1337         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
1338         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
1339         (bfin_valid_reg_p): Test for pseudos explicitly and use only
1340         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
1341         callers changed.
1342         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
1343         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
1344         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
1345         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
1346         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
1347         macros.
1348         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
1349         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
1350         (REGNO_REG_CLASS): ARGP is in PREGS.
1351         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
1352         IREGS.
1353         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
1354         to deal with those addresses.
1355         * addresses.h: New file.
1356         * caller-save.c: Include "addresses.h".
1357         (init_caller_save): Use new base_reg_class function.
1358         * rtl-factoring.c: Include "addresses.h".
1359         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
1360         * recog.c: Include "addresses.h".
1361         (preprocess_constraints): Use new base_reg_class function.
1362         * regrename.c: Include "addresses.h".
1363         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
1364         functions.  Keep track of a new var INDEX_CODE to compute valid
1365         classes.
1366         (replace_oldest_value_addr): Likewise.
1367         (replace_oldest_value_mem): Use base_reg_class.
1368         * reload.c: Include "addresses.h".
1369         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
1370         (find_reloads): Use new base_reg_class function.
1371         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
1372         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
1373         all callers and prototype changed.
1374         * reload1.c: Include "addresses.h".
1375         (maybe_fix_stack_asms): Use base_reg_class.
1376         * regclass.c: Include "addresses.h".
1377         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
1378         (init_reg_autoinc): Use new base_reg_class function.
1379         (record_reg_classes): Likewise.
1380         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
1381         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
1382         Use new args to compute necessary class.
1383
1384         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
1385         regrename.o, rtl-factoring.o): Update dependencies.
1386         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
1387         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
1388         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
1389         REG_OK_FOR_INDEX_P): Delete documentation.
1390
1391 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1392
1393         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
1394         from V7 to V9 for Solaris 7 and above.
1395
1396 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
1397
1398         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
1399         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
1400         argument pointers may not alias any other storage.
1401         * common.opt: Define option -fargument-noalias-anything.
1402         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
1403         alias semantics is specified by flag_argument_noalias > 2.
1404
1405 2006-03-20  Jeff Law  <law@redhat.com>
1406
1407         * tree-pass.h (pass_phi_only_copy_prop): Delete.
1408         (pass_phi_only_cprop): Declare.
1409         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
1410         with phi_only_cprop
1411         * tree-ssa-dom.c (degenerate_phi_result): New function.
1412         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
1413         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
1414         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
1415         (eliminate_degenerate_phis): Likewise.
1416         (pass_phi_only_cprop): New pass descriptor.
1417         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
1418         support code.  Callers updated.
1419         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
1420         (store_copy_prop): Likewise.
1421         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
1422
1423 2006-03-20  Jason Merrill  <jason@redhat.com>
1424
1425         PR c++/21764
1426         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
1427         (push_visibility, pop_visibility): Likewise.
1428         * c-pragma.h: Declare them.
1429
1430 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1431
1432         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
1433
1434         * config/sh/sh.c (find_regmode_weight): Change the type of the first
1435         parameter and use get_ebb_head_tail.
1436         (sh_md_init_global): Adjust uses of find_regmode_weight.
1437
1438 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
1439
1440         * function.h (struct function) <x_tail_recursion_reentry>:
1441         Rename to x_stack_check_probe_note.
1442         (tail_recursion_reentry): Rename to stack_check_probe_note.
1443         * function.c: Replace tail_recursion_reentry with
1444         stack_check_probe_note everywhere.
1445         (expand_function_start): Only emit a note for
1446         stack_check_probe_note with -fstack-protect.
1447         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
1448
1449         * emit-rtl.c (remove_unnecessary_notes): Remove.
1450         (pass_remove_unnecessary_notes): Remove.
1451         * rtl.h (remove_unnecessary_notes): Remove prototype.
1452         * final.c (final_start_function): Don't call remove_unnecessary_notes.
1453         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
1454         * passes.c (pass_remove_unnecessary_notes): Don't run it.
1455
1456 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
1457
1458         PR tree-opt/26629
1459         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
1460         (valid_in_set): Handle ARRAY_REF.
1461         Change "if min_variant or VH" to asserts.
1462         (create_component_ref_by_pieces): Handle ARRAY_REF.
1463         (create_expression_by_pieces): Likewise.
1464         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
1465
1466 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
1467
1468         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
1469         is operand of switch, not str[0].
1470
1471 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
1472
1473         * config/rs6000/rs6000.c (rs6000_handle_option): Use
1474         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
1475
1476 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
1477
1478         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
1479         end of insn_extra_address_constraint declaration.
1480
1481 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
1482
1483         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
1484         (no-sum-in-toc): Same.
1485         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
1486         variables.
1487         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
1488         NO_FP_IN_TOC for -fPIC instead of mask.
1489
1490         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
1491         (BOOT_LDFLAGS): Delete.
1492         (LDFLAGS): Delete.
1493         * config/rs6000/t-aix52: Same.
1494
1495         * config/rs6000/rs6000.md (store_multiple_power): Delete.
1496         (stmsi[345678]_power): New.
1497
1498 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
1499
1500         * config/ia64/ia64.opt: Add empty line to end of file.
1501
1502 2006-03-17  Richard Guenther  <rguenther@suse.de>
1503
1504         PR middle-end/26721
1505         * builtins.c (get_pointer_alignment): For component style references
1506         adjust alignment to the component type alignment.  Make sure
1507         to adjust alignment for component access of constants.
1508
1509 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
1510
1511         * config/rs6000/rs6000.md (strlensi): Emit barrier after
1512         unconditional jump.
1513
1514 2006-03-17  Paul Brook  <paul@codesourcery.com>
1515
1516         * doc/install.texi: Docuemnt --with-mode.
1517         * config.gcc: Add --with-mode for arm*-*-*.
1518         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
1519
1520 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
1521
1522         * sh.c (max_labelno_before_reorg): New variable.
1523         (sh_reorg): Initialize it.
1524         (find_barrier): Check max_labelno_before_reorg before using
1525         label_to_alignment.  Take length of explicit alignment insns
1526         into account.  When seeing a UNSPECV_CONST_END, return it.
1527
1528         * sh.c (fixup_mova): Set mode of affected label to QImode.
1529         (untangle_mova): New function.
1530         (find_barrier): Use it.  Check mode of label before decrementing
1531         num_mova.
1532         (sh_reorg): Likewise.
1533         Set mode of all insns back to VOIDmode.
1534
1535         * sh.c (MOVA_LABELREF): New macro.
1536         (mova_p, fixup_mova, sh_reorg): Use it.
1537         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
1538         ADDR_DIFF_VEC matches mova.
1539
1540 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
1541
1542         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
1543         with ATTRIBUTE_UNUSED.
1544
1545 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
1546
1547         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1548         pointer, instead of assuming it is possible to derive the
1549         correct args size from a call insn.
1550
1551 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1552
1553         * rtl.h (CONST_INT_P): Define.
1554         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
1555         instead of GET_CODE(x) == CONST_INT.
1556         (vax_rtx_costs): Likewise.
1557         (vax_output_int_move): Likewise.
1558         (vax_output_int_add): Likewise.
1559         (legitimate_constant_address_p): Likewise.
1560         (index_term_p): Likewise.
1561         * config/vax/vax.h (PRINT_OPERAND): Likewise.
1562         * config/vax/vax.md (and<mode>3): Likewise.
1563         (ashrsi3): Likewise.
1564         (extv): Likewise.
1565         (movstricthi): Likewise.
1566         (movstrictqi): Likewise.
1567         (rotrsi3): Likewise.
1568         (five unnamed insns): Likewise.
1569
1570 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
1571
1572         * doc/tm.texi (SDB and DWARF): Add extra parameter to
1573         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
1574         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
1575         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
1576         Pass to ASM_OUTPUT_DWARF_OFFSET.
1577         * dwarf2out.c (debug_frame_section): New.
1578         (output_call_frame_info): Use debug_frame_section.  Pass it to
1579         dw2_asm_output_offset.
1580         (output_die): Pass appropriate section to dw2_asm_output_offset.
1581         (output_compilation_unit_header): Likewise.
1582         (output_pubnames): Likewise.
1583         (output_aranges): Likewise.
1584         (enum dw_val_class): Break dw_val_class_lbl_offset into
1585         dw_val_class_lineptr and dw_val_class_macptr.
1586         (add_AT_lbl_offset): Delete.
1587         (add_AT_lineptr): New.
1588         (add_AT_macptr): New.
1589         (AT_lbl): Expect a lineptr or macptr.
1590         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
1591         (attr_checksum): Likewise.
1592         (same_dw_val_p): Likewise.
1593         (size_of_die): Likewise.
1594         (value_format): Likewise.
1595         (output_die): Likewise.
1596         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
1597         add_AT_lbl_offset.
1598         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
1599         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
1600         * config/darwin-protos.h (darwin_file_start): New.
1601         (darwin_asm_output_dwarf_offset): New.
1602         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
1603         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
1604         darwin_file_start.
1605         * config/darwin.c (darwin_emit_unwind_label): Don't output label
1606         if not EH section; simplify.
1607         (darwin_file_start): New.
1608         (darwin_asm_output_dwarf_offset): New.
1609         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
1610         mark as 'debug'.
1611         (DEBUG_INFO_SECTION): Likewise.
1612         (DEBUG_ABBREV_SECTION): Likewise.
1613         (DEBUG_ARANGES_SECTION): Likewise.
1614         (DEBUG_MACINFO_SECTION): Likewise.
1615         (DEBUG_LINE_SECTION): Likewise.
1616         (DEBUG_LOC_SECTION): Likewise.
1617         (DEBUG_PUBNAMES_SECTION): Likewise.
1618         (DEBUG_STR_SECTION): Likewise.
1619         (DEBUG_RANGES_SECTION): Likewise.
1620         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
1621         (ASM_OUTPUT_DWARF_OFFSET): New.
1622
1623 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
1624
1625         * config.gcc (tm_defines): Always add to previous value rather
1626         than replacing it.
1627
1628 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
1629
1630         * config/mips/predicates.md (splittable_const_int_operand): New,
1631         split from move_operand.
1632         (splittable_symbolic_operand): New.
1633         (move_operand): Add commentary.  Use splittable_const_int_operand.
1634         Inline mips_atomic_symbolic_constant_p.
1635         * config/mips/mips.md: Add combine splitters for handling moves
1636         of splittable_const_int_operands and splittable_symbolic_operands.
1637         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
1638         (mips_split_symbol): Declare.
1639         (mips_move_integer): Declare.
1640         * config/mips/mips.c (mips_split_p): Make global.
1641         (TARGET_MIN_ANCHOR_OFFSET): Override default.
1642         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
1643         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
1644         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
1645         (mips_offset_within_object_p): Handle block symbols.
1646         (mips_atomic_symbolic_constant_p): Delete.
1647         (mips_cannot_force_const_mem): Return false for constants that
1648         mips_legitimize_move can handle.
1649         (mips_use_blocks_for_constant_p): New function.
1650         (mips_split_symbol): Make global.
1651         (mips_move_integer): Likewise.  Add a temporary register argument.
1652         (mips_legitimize_const_move): Use splittable_const_int_operand and
1653         splittable_symbolic_operand.
1654         (mips_use_anchors_for_symbol_p): New function.
1655         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
1656         (mips_split_p): Declare.
1657
1658 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
1659
1660         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
1661         (mips*-*-linux*): Likewise.
1662
1663 2006-03-16  Roger Sayle  <roger@eyesopen.com>
1664             Daniel Speyer  <dspeyer@wam.umd.edu>
1665
1666         PR middle-end/18259
1667         * tree-dump.c (dump_real): New function.
1668         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
1669         * Makefile.in (REAL_H): New macro for dependencies on real.h.
1670         (tree-dump.o): Add $(REAL_H) to the dependencies.
1671
1672 2006-03-16  Roger Sayle  <roger@eyesopen.com>
1673
1674         PR middle-end/21781
1675         * real.c (real_from_string): If the mantissa is zero, don't bother
1676         parsing the exponent as the result should always be zero.
1677
1678 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
1679
1680         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
1681
1682 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1683
1684         * config/ia64/ia64.c (stops_p): Added explicit initialization.
1685         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
1686         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
1687         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
1688         ia64_sched_finish_global): New static functions to implement
1689         hooks from gcc_target.sched.
1690         (spec_check_no, max_uid, pending_data_specs): New static variables.
1691         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
1692         ia64_spec_check_src_p): New static functions.
1693         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
1694         (TARGET_SCHED_ADJUST_COST): Removed.
1695         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
1696         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
1697         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
1698         TARGET_SCHED_GEN_CHECK,
1699         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1700         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
1701         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
1702         Fixed to handle speculation checks.
1703         (rtx_needs_barrier): Fixed to handle speculative loads and
1704         their checks.
1705         (ia64_variable_issue): Added code to count speculative loads and their
1706         checks.
1707         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
1708         speculative loads.
1709         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
1710         New enumerations.
1711         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
1712         New constants.
1713         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
1714         (ia64_reorg): Reset stops_p to NULL after it is freed.
1715         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
1716         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
1717         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
1718         chk_a.
1719         (data_speculative, control_speculative, check_load): New attributes.
1720         (mov<mode>_advanced, mov<mode>_speculative,
1721         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
1722         zero_extend<mode>di2_speculative,
1723         zero_extend<mode>di2_speculative_advanced): New patterns for
1724         data and control speculative loads.
1725         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
1726         check loads.
1727         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
1728         New pattern for data and control speculation checks.
1729         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
1730         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
1731         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
1732         Auxiliary definitions for the patterns.
1733         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
1734         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
1735         constraints.
1736         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
1737         for speculation.
1738         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
1739         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
1740         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
1741         New resource constraints.
1742         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
1743         for speculation.
1744         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
1745         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
1746         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
1747         msched-in-control-spec, msched-ldc, msched-control-ldc,
1748         msched-spec-verbose, msched-prefer-non-data-spec-insns,
1749         msched-prefer-non-control-spec-insns,
1750         msched-count-spec-in-critical-path): New flags to tune speculative
1751         scheduling.
1752         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
1753         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
1754         msched-in-control-spec, msched-ldc, msched-control-ldc,
1755         msched-spec-verbose, msched-prefer-non-data-spec-insns,
1756         msched-prefer-non-control-spec-insns,
1757         msched-count-spec-in-critical-path): Document new flags.
1758
1759 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1760
1761         * target.h (struct spec_info_def): New opaque declaration.
1762         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
1763         speculate_insn, needs_block_p, gen_check,
1764         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
1765         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
1766         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
1767         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
1768         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1769         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
1770         gcc_target.sched.
1771         (TARGET_SCHED): Use new macros.
1772         * rtl.h (copy_DEPS_LIST_list): New prototype.
1773         * sched-int.h (struct sched_info): Change signature of new_ready field,
1774         adjust all initializations. New fields: add_remove_insn,
1775         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
1776         region_head_or_leaf_p.
1777         (struct spec_info_def): New structure declaration.
1778         (spec_info_t): New typedef.
1779         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
1780         recovery_block, orig_pat.
1781         (glat_start, glat_end): New variables declaraions.
1782         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
1783         New access macros.
1784         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
1785         DETACH_LIFE_INFO, USE_GLAT.
1786         (enum SPEC_SCHED_FLAGS): New enumeration.
1787         (NOTE_NOTE_BB_P): New macro.
1788         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
1789         attach_life_info, debug_spec_status, check_reg_live): New functions.
1790         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
1791         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
1792         sched-ebb.c
1793         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
1794         * ddg.c (get_block_head_tail): Adjust all uses.
1795         * modulo-sched.c (get_block_head_tail): Adjust all uses.
1796         (sms_sched_info): Initialize new fields.
1797         (contributes_to_priority): Removed.
1798         * haifa-sched.c (params.h): New include.
1799         (get_block_head_tail): Adjust all uses.
1800         (ISSUE_POINTS): New macro.
1801         (glat_start, glat_end): New global variables.
1802         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
1803         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
1804         old_last_basic_block, before_recovery, current_sched_info_var,
1805         rgn_n_insns, luid): New static variables.
1806         (insn_cost1): New function.  Move logic from insn_cost to here.
1807         (find_insn_reg_weight1): New function.  Move logic from
1808         find_insn_reg_weight to here.
1809         (reemit_notes, move_insn, max_issue): Change signature.
1810         (move_insn1): Removed.
1811         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
1812         extend_bb): New static functions to support extension of scheduler's
1813         data structures.
1814         (generate_recovery_code, process_insn_depend_be_in_spec,
1815         begin_speculative_block, add_to_speculative_block,
1816         init_before_recovery, create_recovery_block, create_check_block_twin,
1817         fix_recovery_deps): New static functions to support
1818         generation of recovery code.
1819         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
1820         restore_bb_notes, move_block_after_check, move_succs): New static
1821         functions to support ebb scheduling.
1822         (init_glat, init_glat1, attach_life_info1, free_glat): New static
1823         functions to support handling of register live information.
1824         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
1825         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
1826         add_jump_dependencies): New static functions.
1827         (check_cfg, has_edge_p, check_sched_flags): New static functions for
1828         consistancy checking.
1829         (debug_spec_status): New function to call from debugger.
1830         (priority): Added code to handle speculation checks.
1831         (rank_for_schedule): Added code to distinguish speculative instructions.
1832         (schedule_insn): Added code to handle speculation checks.
1833         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
1834         Fixed to handle ebbs.
1835         (move_insn): Added code to handle ebb scheduling.
1836         (max_issue): Added code to use ISSUE_POINTS of instructions.
1837         (choose_ready): Added code to choose between speculative and
1838         non-speculative instructions.
1839         (schedule_block): Added code to handle ebb scheduling and scheduling of
1840         speculative instructions.
1841         (sched_init): Initialize new variables.
1842         (sched_finish): Free new variables.  Print statistics.
1843         (try_ready): Added code to handle speculative instructions.
1844         * lists.c (copy_DEPS_LIST_list): New function.
1845         * sched-deps.c (extend_dependency_caches): New function.  Move logic
1846         from create_dependency_caches to here.
1847         (get_dep_weak, ds_merge): Make global.
1848         * genattr.c (main): Code to output prototype for
1849         dfa_clear_single_insn_cache.
1850         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
1851         (output_dfa_clean_insn_cache_func): Code to output
1852         dfa_clear_single_insn_cache function.
1853         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
1854         n_insns.
1855         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
1856         Removed.
1857         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
1858         New static variables.
1859         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
1860         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
1861         struct sched_info.
1862         (ebb_sched_info): Initialize new fields.
1863         (get_block_head_tail): Adjust all uses.
1864         (compute_jump_reg_dependencies): Fixed to use glat_start.
1865         (schedule_ebb): Code to remove unreachable last block.
1866         (schedule_ebbs): Added code to update register live information.
1867         * sched-rgn.c (region_sched_info): Initialize new fields.
1868         (get_block_head_tail): Adjust all uses.
1869         (last_was_jump): Removed.  Adjust users.
1870         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
1871         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
1872         Implement new hooks.
1873         (check_dead_notes1): New static function.
1874         (struct region): New fields: dont_calc_deps, has_real_ebb.
1875         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
1876         (BB_TO_BLOCK): Fixed to handle EBBs.
1877         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
1878         (ebb_head): New static variable.
1879         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
1880         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
1881         new fields.
1882         (compute_dom_prob_ps): New assertion.
1883         (check_live_1, update_live_1): Fixed to work with glat_start instead of
1884         global_live_at_start.
1885         (init_ready_list): New assertions.
1886         (can_schedule_ready_p): Split update code to begin_schedule_ready.
1887         (new_ready): Add support for BEGIN_CONTROL speculation.
1888         (schedule_insns): Fixed code that updates register live information
1889         to handle EBBs.
1890         (schedule_region): Fixed to handle EBBs.
1891         (init_regions): Use extend_regions and check_dead_notes1.
1892         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
1893         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
1894         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
1895         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
1896         TARGET_SCHED_GEN_CHECK,
1897         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
1898         TARGET_SCHED_SET_SCHED_FLAGS): Document.
1899         * doc/invoke.texi (max-sched-insn-conflict-delay,
1900         sched-spec-prob-cutoff): Document.
1901
1902 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1903
1904         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
1905         inter_tick, queue_index.
1906         (struct sched_info): Change signature of init_ready_list field.
1907         Adjust all initializations.
1908         (RESOLVED_DEPS): New access macro.
1909         (ready_add): Remove prototype.
1910         (try_ready): Add prototype.
1911         * sched-rgn.c (init_ready_list): Use try_ready.
1912         (schedule_region): Initialize
1913         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
1914         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
1915         (init_ready_list): Use try_ready.
1916         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
1917         * lists.c (remove_list_elem): Remove `static'.
1918         (remove_free_INSN_LIST_elem): New function.
1919         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
1920         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
1921         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
1922         New constants.
1923         (readyp): New variable.
1924         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
1925         change_queue_index, resolve_dep): New static functions.
1926         (try_ready): New function.  Adjust callers in sched-rgn.c and
1927         sched-ebb.c to use it instead of ready_add.
1928         (clock_var): Move at the begining of file.
1929         (rank_for_schedule): Fix typo.
1930         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
1931         (ready_lastpos): Enforce assertion.
1932         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
1933         update all callers.
1934         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
1935         (schedule_insn): Rewrite to use try_ready and resolve_dep.
1936         (queue_to_ready): Use free_INSN_LIST_list.
1937         (early_queue_to_ready): Fix typo.
1938         (schedule_block): Init readyp.  Move init_ready_list call after the
1939         initialization of clock_var.  Fix error in rejecting insn by
1940         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
1941         that previously corrected INSN_TICKs.  Add code for handling
1942         QUEUE_INDEX.
1943         (set_priorities): Fix typo.
1944         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
1945         Clarify comment and code that keeps current_sched_info->next_tail
1946         non-null.
1947
1948 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1949
1950         * sched-rgn.c (extend_rgns): New static function.
1951         (find_rgns): Use it.
1952         (gather_region_statistics, print_region_statistics): New static
1953         functions.
1954         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
1955         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
1956
1957 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1958             Andrey Belevantsev <abel@ispras.ru>
1959
1960         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
1961         * lists.c (unused_deps_list): New variable.
1962         (free_list): Add assertions to verify the proper distinguishing
1963         between INSN_LISTs and DEPS_LISTs.
1964         (find_list_elem, remove_list_elem, remove_list_node): New static
1965         functions.
1966         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
1967         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
1968         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
1969         (alloc_INSN_LIST): Assert that the list we're working on is indeed
1970         an INSN_LIST.
1971         (free_INSN_LIST_node): Likewise.
1972         * modulo-sched.c (current_sched_info): Initialize flags field.
1973         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
1974         * rtl.def (DEPS_LIST): Define.
1975         * rtl.h: Declare new functions from lists.c.
1976         * sched-deps.c (spec_dependency_cache): New static variable.
1977         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
1978         (add_dependence): Change return type to void.  Move the logic to ...
1979         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
1980         (delete_all_dependences): Add comment about forward_dependency_cache.
1981         Handle spec_dependency_cache.  Handle DEPS_LISTs.
1982         (fixup_sched_groups): Clarify the change of priority of output
1983         and anti dependencies.
1984         (sched_analyze_2): Adjust add_dependence calls to create data
1985         speculative dependence.
1986         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
1987         Adjust all callers.  Handle DEPS_LISTS.
1988         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
1989         presence of speculation.
1990         (init_dependency_caches, free_dependency_caches):
1991         Handle spec_dependency_cache.
1992         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
1993         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
1994         New static functions.
1995         (add_or_update_back_dep, add_or_update_back_forw_dep,
1996         add_back_forw_dep, delete_back_forw_dep): New functions.
1997         * sched-int.h (ds_t, dw_t): New typedefs.
1998         (struct sched_info): Add new field flags.
1999         (struct haifa_insn_data): Add new bitfield has_internal_dep.
2000         Prototype new sched-deps.c functions.
2001         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
2002         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
2003         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
2004         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
2005         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
2006         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
2007         New constants.
2008         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
2009         New enums.
2010         * sched-rgn.c (current_sched_info): Initialize flags field.
2011         (schedule_insns): Initialize current_sched_info before the sched_init
2012         call.
2013         * sched-ebb.c (current_sched_info): Initialize flags field.
2014         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
2015         Call add_or_update_back_dep instead of add_dependence.
2016         Create control speculative dependencies.
2017         (schedule_insns): Initialize current_sched_info before the sched_init
2018         call.
2019
2020 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2021
2022         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
2023         fs->signal_frame.
2024         (sh_fallback_frame_state): Likewise.
2025
2026 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
2027
2028         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
2029         Do switch on default_use_cxa_atexit.
2030         (powerpc*-*-darwin*): Build crt2.o on powerpc.
2031         * config/darwin-crt3.o: New.
2032         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
2033         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
2034         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
2035         OS version.
2036         * config/rs6000/t-darwin: Move crt2.o building to here.
2037         * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
2038         Mac OS version for using __cxa_get_exception_ptr.  Don't test versions
2039         of __cxa_atexit.
2040
2041 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2042
2043         * config/vax/vax.c (nonindexed_address_p): Change logical negation
2044         from '! xxx' to '!xxx' for coding-style conformance.
2045         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
2046         (EXTRA_CONSTRAINT): Likewise.
2047         * config/vax/vax.md (four unnamed insns): Likewise.
2048
2049 2006-03-15  Paul Brook  <paul@codesourcery.com>
2050
2051         * config/arm/arm.c (minipool_pad): New.
2052         (add_minipool_forward_ref): Include pool alignment padding in address
2053         calculation.
2054         (push_minipool_fix): Set minipool_pad.
2055         (minipool_pad): Ditto.
2056
2057 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2058
2059         * config/vax/vax.c (split_quadword_operands): Use MEM_P()
2060         instead of GET_CODE() == MEM and REG_P() instead of
2061         GET_CODE() == REG.
2062         (print_operand_address): Likewise.
2063         (vax_address_cost): Likewise.
2064         (vax_rtx_costs): Likewise.
2065         (vax_notice_update_cc): Likewise.
2066         (vax_output_int_add): Likewise.
2067         (INDEX_REGISTER_P): Likewise.
2068         (BASE_REGISTER_P): Likewise.
2069         (nonindexed_address_p): Likewise.
2070         (vax_mode_dependent_address_p): Likewise.
2071         * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
2072         (PRINT_OPERAND): Likewise.
2073         * config/vax/vax.md (ashlsi3): Likewise.
2074         (ashlsi3): Likewise.
2075         (some more unnamed insns): Likewise.
2076
2077 2006-03-15  Kazu Hirata  <kazu@codesourcery.com>
2078
2079         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
2080         iterator-style macro.
2081         (mark_control_dependent_edges_necessary): Update the use of
2082         EXECUTE_IF_CONTROL_DEPENDENT.
2083
2084 2006-03-15  J"orn Rennecke <joern.rennecke@st.com>
2085
2086         * config/sh/predicates.md (cache_address_operand): Special.
2087         (ua_address_operand): Likewise.
2088
2089 2006-03-15  Zdenek Dvorak <dvorakz@suse.cz>
2090
2091         * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
2092         loop notes.
2093         * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
2094
2095 2006-03-15  Andreas Schwab  <schwab@suse.de>
2096
2097         * gensupport.c (identify_predicable_attribute): Don't free p_false
2098         when it is still in use.
2099
2100 2006-03-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
2101
2102         * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
2103         the default setting here.
2104
2105 2006-03-14  Steven Bosscher  <stevenb.gcc@gmail.com>
2106
2107         * tree-pass.h (pass_cfg): Remove.
2108         * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
2109         * passes.c (pass_cfg): Don't run it.
2110
2111 2006-03-14  Kazu Hirata  <kazu@codesourcery.com>
2112
2113         * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
2114         * reg-stack.c (stack_regs_mentioned_data): Change the type to
2115         VEC(char,heap) *.
2116         (stack_regs_mentioned): Update the uses of
2117         stack_regs_mentioned_data.  Don't access the array beyond its
2118         end.
2119         (reg_to_stack): Update the uses of stack_regs_mentioned_data.
2120         Don't include gt-reg-stack.h.
2121
2122         * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
2123         * system.h (UNALIGNED_WORD_ASM_OP): Poison.
2124
2125         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
2126
2127         PR middle-end/26684
2128         * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
2129         STACK_REGS.
2130
2131 2006-03-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2132
2133         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
2134
2135 2006-03-14  Richard Guenther  <rguenther@suse.de>
2136
2137         PR tree-optimization/26672
2138         * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
2139         SSA form.
2140
2141 2006-03-14  Richard Guenther  <rguenther@suse.de>
2142
2143         PR tree-optimization/26667
2144         * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
2145         node for the callees.  Always allow inlining if it will shrink
2146         the function size.
2147
2148 2006-03-14  Richard Guenther  <rguenther@suse.de>
2149
2150         PR middle-end/26659
2151         * builtins.c (get_pointer_alignment): Prefer alignment
2152         information from decls over that from types.
2153
2154 2006-03-14  Andrew Pinski  <pinskia@physics.uc.edu>
2155
2156         PR target/26657
2157         * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
2158
2159 2006-03-14  Joseph S. Myers  <joseph@codesourcery.com>
2160
2161         * config/rs6000/rs6000.opt (mdlmzb): New option.
2162         (msched-prolog, msched-epilog): Use Var not Mask.
2163         * doc/invoke.texi (-mdlmzb): Document.
2164         * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2165         MASK_SCHED_PROLOG.
2166         (rs6000_override_options): Enable -mdlmzb for 405 and 440.
2167         * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
2168
2169 2006-03-13  Uttam Pawar  <uttamp@us.ibm.com>
2170
2171         PR rtl-optimization/25739
2172         * bt-load.c (augment_live_range): Free tos pointer.
2173
2174         * gensupport.c (identify_predicable_attribute): Free
2175         p_false pointer.
2176         * gcov.c (create_file_names): Free name pointer.
2177
2178 2006-03-13  Roger Sayle  <roger@eyesopen.com>
2179
2180         PR middle-end/26557
2181         * stmt.c (emit_case_nodes): Handle the case where the index is a
2182         CONST_INT, where the comparison mode is specified by the index type.
2183
2184 2006-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2185
2186         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
2187         is defined.
2188
2189 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
2190
2191         * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
2192         (*branch_fp_inverted): Likewise.
2193
2194 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2195
2196         PR middle-end/25989
2197         * omp-low.c (expand_omp_for_generic): Mark istart0
2198         and iend0 as addressable.
2199
2200 2006-03-13  Jie Zhang  <jie.zhang@analog.com>
2201
2202         * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
2203
2204 2006-03-13  Jeff Law  <law@redhat.com>
2205
2206         * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
2207         virtual operands are interesting.
2208         (vrp_visit_stmt): Corresponding changes.
2209
2210 2006-03-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2211
2212         * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
2213         of RETS.
2214         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
2215         TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
2216         * config/bfin/crti.S: Use it instead of __PIC__.
2217         * config/bfin/crtn.S: Likewise.
2218
2219         * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
2220         call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
2221         not if flag_pic.
2222         Lose 'G' modifier for call operand.
2223         * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
2224         recognize 'G' modifier.
2225
2226 2006-03-13  Eric Botcazou  <ebotcazou@adacore.com>
2227
2228         PR middle-end/18859
2229         * gimplify.c (gimplify_switch_expr): Discard empty ranges.
2230         * stmt.c (expand_case): Likewise.
2231
2232 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
2233
2234         PR rtl-optimization/26254
2235         * loop-invariant.c (seq_insns_valid_p): New function.
2236         (move_invariant_reg): Only emit new code if it is valid.
2237
2238 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
2239
2240         * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
2241         Removed.
2242         (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
2243         (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
2244         (commit_one_edge_insertion): Do not look for loop notes.
2245
2246 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
2247
2248         * jump.c (follow_jumps): Do not check for loop notes.  Move check for
2249         flag_test_coverage out of loop.
2250
2251 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
2252
2253         * final.c (shorten_branches): Remove outdated comment, and turn
2254         the if branch that guards it to continue.
2255
2256 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
2257
2258         * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
2259         * cfgloop.h (struct loop): Remove unused fields.
2260
2261 2006-03-13  Kazu Hirata  <kazu@codesourcery.com>
2262
2263         * doc/invoke.texi (-fdump-rtl-loop): Remove.
2264         (-dL, -fdump-rtl-loop2): Update the dump file names
2265
2266         * doc/invoke.texi: Update dump file names.
2267
2268 2006-03-12  Steven Bosscher  <stevenb.gcc@gmail.com>
2269
2270         * predict.c (estimate_probability): Remove.
2271         * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
2272         * basic-block.h (estimate_probability): Remove prototype.
2273         * passes.c (finish_optimization_passes): Dump branch prediction or
2274         profiling heuristics to the .profile tree dump.
2275         (init_optimization_passes): Unqueue pass_branch_prob.
2276
2277         * doc/invoke.texi (-fdump-rtl-bp): Remove.
2278
2279 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
2280
2281         * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
2282         * rtl.h (LABEL_NEXTREF): Remove field accessor.
2283
2284 2006-03-11  Eric Botcazou  <ebotcazou@adacore.com>
2285
2286         * function.h (frame_offset_overflow): Declare.
2287         * function.c (frame_offset_overflow): New function.
2288         (assign_stack_local_1): Call it to detect that the offset overflows.
2289         * cfgexpand.c (alloc_stack_frame_space): Likewise.
2290
2291 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
2292
2293         * config/sh/sh.c: Include alloc-pool.h.
2294         (label_ref_list_pool): New alloc pool.
2295         (label_ref_list_t): New type for lists of labels.
2296         (struct pool_node): Make wend a label_ref_list_t.
2297         (add_constant): Use the new type, eradicate LABEL_NEXTREF
2298         references.
2299         (dump_table): Likewise.
2300         (sh_reorg): Set up the alloc pool before using add_constant and
2301         dump_table, and destroy it when finishing.
2302
2303 2006-03-11  Richard Sandiford  <richard@codesourcery.com>
2304
2305         * config/mips/mips.c: Remove redundant comment.
2306
2307 2006-03-10  Jason Merrill  <jason@redhat.com>
2308
2309         PR c/26004
2310         * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
2311         the target was declared 'register'.
2312
2313 2006-03-10  Adam Nemet  <anemet@caviumnetworks.com>
2314
2315         * genpreds.c (write_insn_constraint_len): Change definition of
2316         insn_constraint_len to return size_t to match the declaration.
2317
2318 2006-03-10  DJ Delorie  <dj@redhat.com>
2319
2320         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
2321         start at zero.
2322         (m32c_expand_insv): Fix test for an AND mask.
2323
2324 2006-03-10  Richard Guenther  <rguenther@suse.de>
2325
2326         PR middle-end/26565
2327         * builtins.c (get_pointer_alignment): Handle component
2328         references for field alignment.
2329
2330 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
2331
2332         * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
2333         when building with libgloss.
2334         (sh*elf): Implement --without-fp option.
2335         (sh64-superh-linux*): Don't multilib.
2336
2337 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
2338
2339         * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
2340
2341 2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>
2342
2343         * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
2344         Set it when one of the replacement functions returned true.
2345         Return TODO_cleanup_cfg if cfgchanged is true.
2346         (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
2347
2348 2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
2349
2350         * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
2351         instead of gen_lowpart.
2352
2353 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
2354
2355         * config/mips/mips-protos.h (mips_output_conditional_branch): Change
2356         interface.
2357         (mips_output_order_conditional_branch): Declare.
2358         * config/mips/mips.h (MIPS_BRANCH): New macro.
2359         * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
2360         for the comparison.  Use gen_condjump.
2361         (mips_output_conditional_branch): Rework interface to take the
2362         asm templates for a direct branch and the inverse of a direct branch.
2363         (mips_output_order_conditional_branch): New function.
2364         (mips_builtin_branch_and_move): New function.
2365         (mips_expand_builtin_compare): Use it.  Use VOIDmode for the
2366         branch condition.  Use gen_single_cc as the condition for
2367         __builtin_mips_upper_* or __builtin_mips_lower_*.
2368         (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
2369         Use VOIDmode for the branch condition.
2370         * config/mips/predicates.md (order_operator): New predicate.
2371         * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
2372         (branch_fp): Rename to...
2373         (*branch_fp): ...this.  Remove mode from comparison operator.
2374         Use new mips_output_conditional_branch interface.
2375         (branch_fp_inverted): Rename to...
2376         (*branch_fp_inverted): ...this and update as for *branch_fp.
2377         (*branch_zero<mode>): Rename to...
2378         (*branch_order<mode>): ...this.  Remove mode from comparison operator.
2379         Use mips_output_order_conditional_branch.  Only accept ordered
2380         comparisons.
2381         (*branch_zero<mode>_inverted): Rename to...
2382         (*branch_order<mode>_inverted): ...this and update as for
2383         *branch_order<mode>.
2384         (*branch_equality<mode>): Accept zero as the second operand to
2385         the equality operator.  Use the new mips_output_conditional_branch
2386         interface.
2387         (*branch_equality<mode>_inverted): Likewise.
2388         (condjump): New expander.
2389         * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
2390         operator.
2391         * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
2392         (bc1any2t, bc1any2f): Likewise.
2393         (single_cc): New expander.
2394         (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
2395
2396 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
2397
2398         * doc/md.texi: Update documentation of MIPS constraints.
2399         * config/mips/constraints.md: New file.
2400         * config/mips/mips.md: Include it.
2401         * config/mips/mips.c (mips_char_to_class): Delete.
2402         (override_options): Don't initialize mips_char_to_class.
2403         * config/mips/mips.h (mips_char_to_class): Delete.
2404         (REG_CLASS_FROM_LETTER): Delete.
2405         (CONST_OK_FOR_LETTER_P): Delete.
2406         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2407         (EXTRA_CONSTRAINT_Y): Delete.
2408         (EXTRA_CONSTRAINT_STR): Delete.
2409         (CONSTRAINT_LEN): Delete.
2410         (EXTRA_MEMORY_CONSTRAINT): Delete.
2411
2412 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2413
2414         * tree-cfg.c (move_block_to_fn): Remove the statements from the
2415         original fn's eh regions.
2416
2417 2006-03-09  Eric Botcazou  <ebotcazou@adacore.com>
2418
2419         * fold-const.c (build_range_check): Make sure to use a valid type to
2420         apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
2421         transformation.
2422
2423         (range_predecessor): New static function.
2424         (range_successor): Likewise.
2425         (merge_ranges): Use them to compute predecessors and successors of
2426         range bounds.
2427
2428 2006-03-09  Roger Sayle  <roger@eyesopen.com>
2429
2430         PR middle-end/26561
2431         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
2432         X op C3, consider whether C3 overflows towards +Inf or -Inf.
2433
2434 2006-03-08  DJ Delorie  <dj@redhat.com>
2435
2436         * config/m32c/addsub.md (addqi3): Disparage a0/a1.
2437         (addpsi3): Expand to include memory operands.  Remove
2438         reload-specific splits.
2439         * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
2440         (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
2441         (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
2442         (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
2443         (shift1_qi, shift1_hi, insv): New.
2444         * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
2445         (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
2446         cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
2447         cond_to_int): New.
2448         * config/m32c/m32c-protos.h: Update as needed.
2449         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
2450         default the Rcr, Rcl, Raw, and Ral constraints.  Add Ra0 and Ra1.
2451         Fail for unrecognized R* constraints.
2452         (m32c_cannot_change_mode_class): Be more picky about pseudos.
2453         (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
2454         (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
2455         Add Sp constraint.
2456         (m32c_init_libfuncs): New.
2457         (m32c_legitimate_address_p): Add debug wrapper.
2458         (m32c_rtx_costs): New.
2459         (m32c_address_cost): New.
2460         (conversions): Add 'B' prefix.
2461         (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
2462         operands, or word regnames for QI operands.  'B' prints bit
2463         position.
2464         (m32c_expand_setmemhi): New.
2465         (m32c_expand_movmemhi): New.
2466         (m32c_expand_movstr): New.
2467         (m32c_expand_cmpstr): New.
2468         (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
2469         (m32c_expand_neg_mulpsi3): Handle non-ints.
2470         (m32c_cmp_flg_0): New.
2471         (m32c_expand_movcc): New.
2472         (m32c_expand_insv): New.
2473         (m32c_scc_pattern): New.
2474         * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS.  Take
2475         a0/a1 out of SIregs.
2476         (STORE_FLAG_VALUE): New.
2477         * config/m32c/m32c.md: Add unspecs for string moves.  Define various mode and
2478         code macros.
2479         (no_insn): New.
2480         * config/m32c/mov.md: Make constraints more liberal.
2481         (zero_extendqihi2): Optimize r0/r1 case.
2482         * config/m32c/muldiv.md (mulpsi3): Check for intvals.
2483         * config/m32c/predicates.md (m32c_any_operand): New.
2484         (m32c_nonimmediate_operand): New.
2485         (m32c_hl_operand): New.
2486         (m32c_r3_operand): New.
2487         (ap_operand): New.
2488         (ma_operand): New.
2489         (memsym_operand): New.
2490         (memimmed_operand): New.
2491         (a_qi_operand): New.
2492         (m32c_eqne_operator): New.
2493         (m32c_1bit8_operand): New.
2494         (m32c_1bit16_operand): New.
2495         (m32c_1mask8_operand): New.
2496         (m32c_1mask16_operand): New.
2497         * config/m32c/blkmov.md: New file.
2498         * config/m32c/t-m32c (MD_FILES): Add blkmov.
2499
2500 2006-03-08  Andreas Tobler  <a.tobler@schweiz.ch>
2501
2502         * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
2503         unsigned to fix signed/unsigned comparison issue in
2504         DWARF2_FRAME_REG_OUT.
2505         (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
2506         unsigned comparison issue in DWARF2_FRAME_REG_OUT.
2507
2508         * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
2509         of ptr into the ENABLE_CHECKING section.
2510
2511 2006-03-08  Jeff Law  <law@redhat.com>
2512
2513         * tree-vrp.c (infer_value_range): Only count pointer uses
2514         and dereferences if -fdelete-null-pointer-checks is enabled.
2515
2516         * tree-vrp.c (find_assert_locations): Infer value ranges for
2517         single use pointers, but do not create ASSERT_EXPRs for them.
2518         When a non-null range is inferred for a pointer, backwards
2519         propagate that range to other equivalent pointers through the
2520         use-def chain.
2521
2522 2006-03-08  Paolo Bonzini  <bonzini@gnu.org>
2523
2524         PR bootstrap/26500
2525         * Makefile.in (dvi, html, install-info): Invoke the corresponding
2526         language hook targets.
2527         * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
2528         objcp/Make-lang.in: Create stub rules for dvi, html, install-info
2529         if language hook targets were missing.
2530
2531 2006-03-07  Zdenek Dvorak <dvorakz@suse.cz>
2532
2533         * tree-ssa-opfinalize.h: Removed.
2534         * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
2535         dependency.
2536         * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
2537         (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
2538         INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
2539         add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
2540         finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
2541         finalize_ssa_v_must_def_ops): New.
2542
2543 2006-03-07  Kenneth Zadeck <zadeck@naturalbridge.com>
2544
2545         * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
2546         block as parameter.
2547
2548 2006-03-07  Geoffrey Keating  <geoffk@apple.com>
2549
2550         * varasm.c (assemble_end_function): Say that 'fnname' is unused.
2551
2552         * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
2553         addresses with offsets; reorganize.
2554
2555         * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
2556         (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
2557         (expand_builtin_init_dwarf_reg_sizes): Likewise.
2558
2559 2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
2560
2561         PR target/26588
2562         * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
2563
2564 2006-03-08  Ben Elliston  <bje@au.ibm.com>
2565
2566         * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
2567
2568 2006-03-07  Aldy Hernandez  <aldyh@redhat.com>
2569
2570         PR gomp/26238
2571         * doc/passes.texi (Tree-SSA passes): Document omp lowering and
2572         expansion.
2573
2574 2006-03-07  Richard Guenther  <rguenther@suse.de>
2575
2576         PR tree-optimization/26587
2577         * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
2578
2579 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
2580
2581         * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
2582
2583 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
2584
2585         * hooks.c (hook_bool_mode_rtx_true): New function.
2586         * hooks.h (hook_bool_mode_rtx_true): Declare.
2587         * toplev.c (compile_file): Call output_shared_constant_pool.
2588         * varasm.c (shared_constant_pool): New variable.
2589         (assemble_start_function, assemble_end_function): Remove arguments
2590         from call to output_constant_pool.
2591         (create_constant_pool): New function, split out from...
2592         (init_varasm_status): ...here.
2593         (force_const_mem): Choose between the shared and per-function constant
2594         pools.  Set current_function_uses_const_pool when reusing old entries
2595         as well as when creating new ones.
2596         (mark_constant): Ignore data argument.
2597         (mark_constants): Remove pool argument.
2598         (mark_constant_pool): Likewise.  Use current_function_uses_const_pool
2599         to decide whether the function uses a constant pool.
2600         (output_constant_pool_contents): New function, split out from...
2601         (output_constant_pool): ...here.
2602         (output_shared_constant_pool): New function.
2603         (init_varasm_once): Initialize shared_constant_pool.
2604         * output.h (output_constant_pool): Delete.
2605         (output_shared_constant_pool): Declare.
2606         * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
2607         * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
2608
2609 2006-03-06  Nick Clifton  <nickc@redhat.com>
2610
2611         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
2612         flag_strength_reduce.
2613
2614 2006-03-06  Ben Elliston  <bje@au.ibm.com>
2615
2616         * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
2617         x86_64-*-linux* configurations.
2618
2619         * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
2620         (LIBGCC2_WORDS_BIG_ENDIAN): Define.
2621
2622 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2623
2624         * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
2625         Remove.
2626         * basic-block.h: Remove the extern for
2627         rediscover_loops_after_threading.
2628
2629         * cfgloop.c (cancel_loop): Make it static.
2630         * cfgloop.h: Remove the prototype for cancel_loop.
2631
2632         * flow.c (recompute_reg_usage): Make it static.
2633         * rtl.h: Remove the prototype for recompute_reg_usage.
2634
2635         * function.c (use_return_register): Make it static.
2636         * function.h: Remove the prototype.
2637
2638 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2639
2640         * recog.c (volatile_mem_p, validate_change_maybe_volatile):
2641         Remove.
2642         * recog.h: Remove the prototype for
2643         validate_change_maybe_volatile.
2644
2645 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2646
2647         * rtlanal.c (replace_reg): Remove.
2648         * rtl.h: Remove the prototype for replace_reg.
2649
2650 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
2651
2652         * regclass.c (reg_scan_update): Remove.
2653         (reg_scan_mark_refs): Remove the last argument.
2654         * rtl.h: Remove the prototype for reg_scan_update.
2655
2656 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2657
2658         * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
2659         combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
2660         config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
2661         config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
2662         df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
2663         loop-invariant.c, omp-low.c, opts.c, passes.c,
2664         rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
2665         tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
2666         tree-ssa-structalias.c, tree-ssa-threadedge.c,
2667         tree-ssa-threadupdate.c, tree-vect-patterns.c,
2668         tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
2669         unwind-dw2.c: Fix comment typos.  Follow spelling conventions.
2670
2671 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2672
2673         * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
2674         * dwarf2out.h: Remove the prototype for
2675         dwarf2out_add_library_unit_info.
2676
2677 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2678
2679         * tree.c (add_var_to_bind_expr): Remove.
2680         * tree.h: Remove the prototype for add_var_to_bind_expr.
2681
2682 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2683
2684         * regclass.c (n_non_fixed_regs): Remove.
2685         (init_reg_sets_1, globalize_reg): Remove all uses of
2686         n_non_fixed_regs.
2687         * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
2688
2689 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2690
2691         * rtlanal.c (insns_safe_to_move_p): Remove.
2692         * rtl.h: Remove the prototype for insns_safe_to_move_p.
2693
2694 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
2695
2696         * expmed.c (expand_mult_add): Remove.
2697         * expr.h: Remove the prototype for expand_mult_add.
2698
2699 2006-03-04  Jakub Jelinek  <jakub@redhat.com>
2700
2701         * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
2702         and REG_SAVED_VAL_EXP constants.
2703         * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
2704         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
2705         Handle regs stored by value.
2706         (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
2707         (execute_cfa_program): Handle DW_CFA_val_offset,
2708         DW_CFA_val_offset_sf and DW_CFA_val_expression.
2709         (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
2710         value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
2711         (uw_install_context_1): Handle target regs stored by value.
2712
2713 2006-03-03  Daniel Berlin  <dberlin@dberlin.org>
2714
2715         * tree-sra.c (tree_sra): Return todoflags;
2716         (generate_one_element): Set TODO_update_smt_usage if needed.
2717         (pass_sra): Remove TODO_update_smt_usage.
2718         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
2719         parameter.
2720         (tree_ssa_forward_propagate_single_use_vars): Return
2721         TODO_update_smt_usage if we need to update SMT usage.
2722         (pass_forwprop): Remove TODO_update_smt_usage.
2723
2724 2006-03-03  Diego Novillo  <dnovillo@redhat.com>
2725
2726         * tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
2727         (correct_use_link): Remove reference to get_stmt_operands.
2728         (update_stmt_operands): Likewise.
2729         (get_modify_expr_operands): New function factored out of
2730         parse_ssa_operands and get_expr_operands.
2731         Try to create V_MUST_DEFs for LHS by default.
2732         (get_expr_operands) <case MODIFY_EXPR>: Call
2733         get_modify_expr_operands.
2734         <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
2735         <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
2736         (parse_ssa_operands) <case MODIFY_EXPR>: Call
2737         get_modify_expr_operands.
2738
2739 2006-03-03  Kazu Hirata  <kazu@codesourcery.com>
2740
2741         * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
2742         * tree-flow.h: Remove the prototype for
2743         referenced_var_lookup_if_exists.
2744
2745 2006-03-03  Steve Ellcey  <sje@cup.hp.com>
2746
2747         PR rtl-optimization/26345
2748         PR target/19061
2749         * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
2750
2751 2006-03-03  Roger Sayle  <roger@eyesopen.com>
2752
2753         PR tree-optimization/26524
2754         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
2755         fold_convert to create a constant of the appropriate type.
2756
2757 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
2758
2759         * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2760         SYMBOL_REF_IN_BLOCK_P.
2761         * doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
2762         of SYMBOL_FLAG_IN_BLOCK.
2763         * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
2764         instead of SYMBOL_REF_IN_BLOCK_P.
2765         * explow.c (use_anchored_address): Likewise.
2766         * rtl.c (rtx_size): Likewise.
2767         * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
2768         instead of SYMBOL_FLAG_IN_BLOCK.
2769         (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2770         SYMBOL_REF_IN_BLOCK_P.
2771         (assemble_variable): Likewise.
2772         (output_constant_def_contents): Likewise.
2773         (output_constant_pool): Likewise.
2774         (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
2775         instead of SYMBOL_FLAG_IN_BLOCK.
2776         * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2777         SYMBOL_REF_IN_BLOCK_P.
2778         (SYMBOL_REF_BLOCK): Likewise.
2779         (SYMBOL_REF_OFFSET): Likewise.
2780         (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
2781         SYMBOL_REF_IN_BLOCK_P.
2782         (SYMBOL_FLAG_IN_BLOCK): Replace with...
2783         (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
2784         (SYMBOL_REF_IN_BLOCK_P): Replace with...
2785         (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
2786
2787 2006-03-03  Jakub Jelinek  <jakub@redhat.com>
2788
2789         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
2790
2791 2006-03-02  Roger Sayle  <roger@eyesopen.com>
2792
2793         * simplify-rtx.c (simplify_unary_operation): When simplifying
2794         (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
2795         that we perform the right shift in the appropriate mode, and
2796         then extend or truncate the result to requested mode.
2797
2798 2006-03-03  Zdenek Dvorak <dvorakz@suse.cz>
2799
2800         * gengtype.c (main): Handle double_int type.
2801         * tree.h (struct tree_int_cst): Make type of int_cst double_int.
2802         * double-int.c: New file.
2803         * double-int.h: New file.
2804         * system.h: Include doubleint.h.
2805         * Makefile.in (SYSTEM_H): Include double-int.h.
2806         (double-int.o): Add.
2807
2808 2006-03-03  Joseph S. Myers  <joseph@codesourcery.com>
2809
2810         PR bootstrap/26478
2811         * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
2812         copying over it.
2813
2814 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
2815
2816         * tree-vrp.c (remove_range_assertions): Do not update statements
2817         unnecessarily.
2818
2819 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
2820
2821         * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
2822         cleanup.
2823         * gcse.c (rest_of_handle_gcse): Ditto.
2824         * except.c (gate_handle_eh): Ditto.
2825         * cfgcleanup.c (rest_of_handle_jump2): Ditto.
2826         * basic-block.h (CLEANUP_PRE_LOOP): Remove.
2827
2828 2006-03-02  Eric Christopher  <echristo@apple.com>
2829
2830         * config/i386/i386.c (machopic_output_stub): Add indirection to
2831         jump.
2832
2833 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
2834
2835         * loop.c: Removed.
2836
2837 2006-03-02  David S. Miller  <davem@sunset.davemloft.net>
2838
2839         Sun Niagara specific optimizations.
2840         * config.gcc: Recognize niagara as target.
2841         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
2842         (TARGET_CPU_niagara): Define.
2843         (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
2844         (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
2845         (CPP_CPU_SPEC): Handle -mcpu=niagara.
2846         (ASM_CPU_SPEC): Likewise.
2847         (PROCESSOR_NIAGARA): New enum entry.
2848         (REGISTER_MOVE_COST): Handle Niagara.
2849         (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
2850         * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
2851         (sparc_override_options): Recognize "niagara", set appropriate
2852         default MASK_* values for it, and align functions to 32-bytes
2853         by default just like ULTRASPARC/ULTRASPARC3.
2854         (sparc_initialize_trampoline): Handle niagara like ultrasparc.
2855         (sparc64_initialize_trampoline): Likewise.
2856         (sparc_use_sched_lookahead): Use zero for niagara.
2857         (sparc_issue_rate): Use one for niagara.
2858         * config/sparc/niagara.md: New file.
2859         * config/sparc/sparc.md: Include it.
2860         * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
2861         ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
2862         when default cpu is niagara.
2863         (CPP_CPU_SPEC): Handle -mcpu=niagara.
2864         (ASM_CPU_SPEC): Likewise.
2865         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
2866         when default cpu is niagara.
2867         (ASM_CPU_SPEC): Handle -mcpu=niagara.
2868         * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
2869         just like v9/ultrasparc/ultrasparc3.
2870         * doc/invoke.texi: Add documentation for "niagara" and improve
2871         existing documentation for ultrasparc variants.
2872
2873 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
2874
2875         * tree-ssa-operands.c (update_stmt_operands): Update documentation.
2876
2877 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
2878
2879         * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
2880         (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
2881         and say that only one is needed.
2882         * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
2883         * target.h (have_switchable_bss_sections): New hook.
2884         * explow.c (use_anchored_address): Check that the symbol is in a block.
2885         * varasm.c (tls_comm_section, comm_section, lcomm_section)
2886         (bss_noswitch_section): New variables.
2887         (get_unnamed_section): Add SECTION_UNNAMED to the flags.
2888         (get_noswitch_section): New function.
2889         (get_block_for_section): Allow SECT to be null.
2890         (unlikely_text_section_p): Use SECTION_STYLE.
2891         (bss_initializer_p): New function.
2892         (get_variable_section): Move earlier in file.  Take a new argument,
2893         prefer_noswitch_p.  Move bss checks from assemble_variable to here.
2894         Return one of the new *_sections in such cases.
2895         (get_block_for_decl): New function, extracting some logic from
2896         use_blocks_for_decl_p.
2897         (change_symbol_section): Remove in favor of...
2898         (change_symbol_block): ...this new function.
2899         (use_blocks_for_decl_p): Remove checks now performed by
2900         get_block_for_decl.
2901         (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
2902         (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
2903         (emit_local, emit_bss, emit_common): ...these new functions.
2904         Return true if the alignment was honored.
2905         (emit_tls_common): New function.
2906         (asm_emit_uninitialised): Delete.
2907         (assemble_variable_noswitch): New function, split out from...
2908         (assemble_variable): ...here.  Don't make decisions about common
2909         variables here.  Globalize all public decls that go into non-common
2910         sections.  Check whether SYMBOL_REF_BLOCK is null.
2911         (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
2912         (output_constant_pool): Likewise.
2913         (init_varasm_once): Initialize the new section variables.
2914         (have_global_bss_p): New function.
2915         (categorize_decl_for_section): Use bss_initializer_p.
2916         (switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
2917         (place_block_symbol): Assert that the symbol must be in a block.
2918         * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
2919         (TARGET_INITIALIZER): Include it.
2920         * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
2921         * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
2922         (SECTION_MACH_DEP): Bump by two.
2923         (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
2924         (unnamed_section): Mention SECTION_UNNAMED in comment.
2925         (named_section): Likewise SECTION_NAMED.
2926         (noswitch_section_callback): New type.
2927         (noswitch_section): New structure.
2928         (section): Add a noswitch_section alternative.
2929         (SECTION_STYLE): New macro.
2930         (tls_comm_section, comm_section, lcomm_section): Declare.
2931         (bss_noswitch_section, have_global_bss_p): Declare.
2932         * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
2933         * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
2934         Override.
2935         * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
2936         * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
2937         Override.
2938
2939 2006-03-02  Daniel Berlin <dberlin@dberlin.org>
2940
2941         * gcc/tree-vrp.c (execute_vrp): Return value.
2942         * gcc/regrename.c (rest_of_handle_regrename): Ditto.
2943         * gcc/tree-into-ssa.c (rewrite_into_ssa): Ditto.
2944         * gcc/tree-complex.c (tree_lower_complex): Ditto.
2945         (tree_lower_complex_O0): Ditto.
2946         * gcc/tracer.c (rest_of_handle_tracer): Ditto.
2947         * gcc/postreload-gcse.c (rest_of_handle_gcse2): Ditto.
2948         * gcc/postreload.c (rest_of_handle_postreload): Ditto.
2949         * gcc/tree-tailcall.c (execute_tail_recursion): Ditto.
2950         (execute_tail_calls): Ditto.
2951         * gcc/tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
2952         * gcc/tree.h (init_function_for_compilation): Ditto.
2953         * gcc/ipa-cp.c (ipcp_driver): Ditto.
2954         * gcc/tree-scalar-evolution.c (scev_const_prop): Ditto.
2955         * gcc/tree-scalar-evolution.h (scev_const_prop): Ditto.
2956         * gcc/final.c (compute_alignments): Ditto.
2957         (rest_of_handle_final): Ditto.
2958         (rest_of_handle_shorten_branches): Ditto.
2959         (rest_of_clean_state): Ditto.
2960         * gcc/omp-low.c (execute_expand_omp): Ditto.
2961         (execute_lower_omp): Ditto.
2962         * gcc/tree-ssa-dse.c (tree_ssa_dse): Ditto.
2963         * gcc/ipa-reference.c (static_execute): Ditto.
2964         * gcc/tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
2965         * gcc/reorg.c (rest_of_handle_delay_slots): Ditto.
2966         (rest_of_handle_machine_reorg): Ditto.
2967         * gcc/cgraphunit.c (rebuild_cgraph_edges): Ditto.
2968         * gcc/flow.c (recompute_reg_usage): Ditto.
2969         (rest_of_handle_remove_death_notes): Ditto.
2970         (rest_of_handle_life): Ditto.
2971         (rest_of_handle_flow2): Ditto.
2972         * gcc/tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
2973         * gcc/tree-ssa-ccp.c (do_ssa_ccp): Ditto.
2974         (do_ssa_store_ccp): Ditto.
2975         (execute_fold_all_builtins): Ditto.
2976         * gcc/mode-switching.c (rest_of_handle_mode_switching): Ditto.
2977         * gcc/modulo-sched.c (rest_of_handle_sms): Ditto.
2978         * gcc/ipa-pure-const.c (static_execute): Ditto.
2979         * gcc/cse.c (rest_of_handle_cse): Ditto.
2980         (rest_of_handle_cse2): Ditto.
2981         * gcc/web.c (rest_of_handle_web): Ditto.
2982         * gcc/tree-stdarg.c (execute_optimize_stdarg): Ditto.
2983         * gcc/tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
2984         * gcc/tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
2985         * gcc/tree-nrv.c (tree_nrv): Ditto.
2986         (execute_return_slot_opt): Ditto.
2987         * gcc/tree-ssa-alias.c (compute_may_aliases): Ditto.
2988         (create_structure_vars): Ditto.
2989         * gcc/loop-init.c (rtl_loop_init): Ditto.
2990         (rtl_loop_done): Ditto.
2991         (rtl_move_loop_invariants): Ditto.
2992         (rtl_unswitch): Ditto.
2993         (rtl_unroll_and_peel_loops): Ditto.
2994         (rtl_doloop): Ditto.
2995         * gcc/gimple-low.c (lower_function_body): Ditto.
2996         (mark_used_blocks): Ditto.
2997         * gcc/tree-ssa-sink.c (execute_sink_code): Ditto.
2998         * gcc/ipa-inline.c (cgraph_decide_inlining): Ditto.
2999         (cgraph_early_inlining): Ditto.
3000         * gcc/global.c (rest_of_handle_global_alloc): Ditto.
3001         * gcc/jump.c (cleanup_barriers): Ditto.
3002         (purge_line_number_notes): Ditto.
3003         * gcc/ifcvt.c (rest_of_handle_if_conversion): Ditto.
3004         (rest_of_handle_if_after_reload): Ditto.
3005         * gcc/tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
3006         (tree_ssa_loop_im): Ditto.
3007         (tree_ssa_loop_unswitch): Ditto.
3008         (tree_vectorize): Ditto.
3009         (tree_linear_transform): Ditto.
3010         (tree_ssa_loop_ivcanon): Ditto.
3011         (tree_ssa_empty_loop): Ditto.
3012         (tree_ssa_loop_bounds): Ditto.
3013         (tree_complete_unroll): Ditto.
3014         (tree_ssa_loop_prefetch): Ditto.
3015         (tree_ssa_loop_ivopts): Ditto.
3016         (tree_ssa_loop_done): Ditto.
3017         * gcc/predict.c (tree_estimate_probability): Ditto.
3018         * gcc/recog.c (split_all_insns_noflow): Ditto.
3019         (rest_of_handle_peephole2): Ditto.
3020         (rest_of_handle_split_all_insns): Ditto.
3021         * gcc/tree-eh.c (lower_eh_constructs): Ditto.
3022         * gcc/regmove.c (rest_of_handle_regmove): Ditto.
3023         (rest_of_handle_stack_adjustments): Ditto.
3024         * gcc/local-alloc.c (rest_of_handle_local_alloc): Ditto.
3025         * gcc/function.c (instantiate_virtual_regs): Ditto.
3026         (init_function_for_compilation): Ditto.
3027         (rest_of_handle_check_leaf_regs): Ditto.
3028         * gcc/gcse.c (rest_of_handle_jump_bypass): Ditto.
3029         (rest_of_handle_gcse): Ditto.
3030         * gcc/ipa-type-escape.c (type_escape_execute): Ditto.
3031         * gcc/alias.c (rest_of_handle_cfg): Ditto.
3032         * gcc/tree-if-conv.c (main_tree_if_conversion): Ditto.
3033         * gcc/profile.c (rest_of_handle_branch_prob): Ditto.
3034         * gcc/tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
3035         * gcc/rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
3036         * gcc/bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
3037         * gcc/tree-dfa.c (find_referenced_vars): Ditto.
3038         * gcc/except.c (set_nothrow_function_flags): Ditto.
3039         (convert_to_eh_region_ranges): Ditto.
3040         (rest_of_handle_eh): Ditto.
3041         * gcc/emit-rtl.c (unshare_all_rtl): Ditto.
3042         (remove_unnecessary_notes): Ditto.
3043         * gcc/except.h (set_nothrow_function_flags): Ditto.
3044         (convert_to_eh_region_ranges): Ditto.
3045         * gcc/cfgexpand.c (tree_expand_cfg): Ditto.
3046         * gcc/tree-cfgcleanup.c (merge_phi_nodes): Ditto.
3047         * gcc/tree-ssa-pre.c (do_pre): Ditto.
3048         (execute_fre): Ditto.
3049         * gcc/cfgcleanup.c (rest_of_handle_jump): Ditto.
3050         (rest_of_handle_jump2): Ditto.
3051         * gcc/tree-sra.c (tree_sra): Ditto.
3052         * gcc/tree-mudflap.c (execute_mudflap_function_ops): Ditto.
3053         (execute_mudflap_function_decls): Ditto.
3054         * gcc/tree-ssa-copy.c (do_copy_prop): Ditto.
3055         (do_store_copy_prop): Ditto.
3056         * gcc/ipa-prop.h (ipcp_driver): Ditto.
3057         * gcc/cfglayout.c (insn_locators_initialize): Ditto.
3058         * gcc/tree-ssa-forwprop.c
3059         (tree_ssa_forward_propagate_single_use_vars): Ditto.
3060         * gcc/cfglayout.h (insn_locators_initialize): Ditto.
3061         * gcc/tree-ssa-dce.c (tree_ssa_dce): Ditto.
3062         * gcc/tree-ssa.c (execute_early_warn_uninitialized): Ditto.
3063         (execute_late_warn_uninitialized): Ditto.
3064         * gcc/rtl.h (cleanup_barriers): Ditto.
3065         (split_all_insns_noflow): Ditto.
3066         (purge_line_number_notes): Ditto.
3067         (unshare_all_rtl): Ditto.
3068         (remove_unnecessary_notes): Ditto.
3069         (recompute_reg_usage): Ditto.
3070         (variable_tracking_main): Ditto.
3071         * gcc/integrate.c (emit_initial_value_sets): Ditto.
3072         * gcc/integrate.h (emit_initial_value_sets): Ditto.
3073         * gcc/tree-optimize.c (execute_free_datastructures): Ditto
3074         (execute_free_cfg_annotations): Ditto.
3075         (execute_fixup_cfg): Ditto.
3076         (execute_cleanup_cfg_pre_ipa): Ditto.
3077         (execute_cleanup_cfg_post_optimizing): Ditto.
3078         (execute_init_datastructures): Ditto.
3079         * gcc/tree-object-size.c (compute_object_sizes): Ditto.
3080         * gcc/combine.c (rest_of_handle_combine): Ditto.
3081         * gcc/tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
3082         * gcc/bb-reorder.c (duplicate_computed_gotos): Ditto.
3083         (rest_of_handle_reorder_blocks): Ditto.
3084         (rest_of_handle_partition_blocks): Ditto.
3085         * gcc/var-tracking.c (variable_tracking_main): Ditto.
3086         * gcc/tree-profile.c (tree_profiling): Ditto.
3087         * gcc/tree-vect-generic.c (expand_vector_operations): Ditto.
3088         * gcc/reg-stack.c (rest_of_handle_stack_regs): Ditto.
3089         * gcc/sched-rgn.c (rest_of_handle_sched): Ditto.
3090         (rest_of_handle_sched2): Ditto.
3091         * gcc/basic-block.h (free_bb_insn): Ditto.
3092         * gcc/tree-ssa-structalias.c (ipa_pta_execute): Ditto.
3093         * gcc/tree-cfg.c (execute_build_cfg): Ditto.
3094         (remove_useless_stmts): Ditto.
3095         (split_critical_edges): Ditto.
3096         (execute_warn_function_return): Ditto.
3097         (execute_warn_function_noreturn): Ditto.
3098         * gcc/tree-ssa-reassoc.c (execute_reassoc): Ditto.
3099         * gcc/cfgrtl.c (free_bb_for_insn): Ditto.
3100         * gcc/passes.c (execute_one_pass): Run additional
3101         todos returned by execute function.
3102         * gcc/tree-pass.h (struct tree_opt_pass): Make execute
3103         return a value.
3104
3105 2006-03-02  Richard Guenther  <rguenther@suse.de>
3106
3107         * tree-ssa-alias.c (find_used_portions): Consider taking
3108         the address as making the variable not write-only.
3109
3110 2006-03-02  Nick Clifton  <nickc@redhat.com>
3111
3112         * config.gcc (default_use_cxa_atexit): Extend the description of
3113         this configure variable.  Set its default value to "yes" for
3114         Linux, NetBSD and ELF targets on the assumption that they will
3115         use C libraries with the __cxa_atexit function.
3116
3117 2006-03-02  Ben Elliston  <bje@au.ibm.com>
3118
3119         * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
3120         parameter as unused to suppress a build warning.
3121
3122 2006-03-02  Ben Elliston  <bje@au.ibm.com>
3123
3124         * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
3125         config/dfp-bit.c.
3126
3127 2006-03-01  Roger Sayle  <roger@eyesopen.com>
3128
3129         PR other/26489
3130         * gthr-posix.h (__gthrw2): Define to take three parameters, the
3131         declared name, the weak reference name, and the typeof name.
3132         (__gthrw): Avoid expanding the declared name suffix.
3133         (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
3134
3135 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
3136
3137         * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
3138         from DWARF 3.
3139         (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
3140         DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
3141         DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
3142         DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
3143         DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
3144         (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
3145         (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
3146         DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
3147         (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
3148         DW_DS_leading_separate, DW_DS_trailing_separate): New.
3149         (DW_END_default, DW_END_big, DW_END_little): New.
3150         (DW_END_lo_user, DW_END_hi_user): Define.
3151         (DW_LNE_lo_user, DW_LNE_hi_user): Define.
3152         (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
3153         (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
3154         DW_LANG_D): New.
3155
3156 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
3157
3158         * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
3159         Update all users.
3160         * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
3161         Update all users.
3162         (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
3163         Update all users.
3164         * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
3165         Update all users.
3166         * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
3167         to 'symbol_mem_tag'.
3168         Update all users.
3169         * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
3170         rename.
3171
3172 2006-03-01  Roger Sayle  <roger@eyesopen.com>
3173
3174         * builtins.c (fold_builtin_copysign): Delete unreachable code.
3175
3176 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
3177
3178         PR target/25761
3179         * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
3180         MACHO_DYNAMIC_NO_PIC_P.
3181         (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
3182
3183 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
3184
3185         PR target/26389
3186         * config/darwin-protos.h (darwin_asm_output_anchor):
3187         Declare.
3188         * config/darwin-sections.def (cstring_section):
3189         Add SECTION_MERGE to the flags.
3190         (literal4_section): Likewise.
3191         (literal8_section): Likewise.
3192         (objc_selector_refs_section): Likewise.
3193         (objc_cls_refs_section): Likewise.
3194         * config/darwin.c (darwin_asm_output_anchor): New
3195         function.
3196         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
3197
3198 2006-03-01  Daniel Berlin  <dberlin@dberlin.org>
3199
3200         Fix PR tree-optimization/26443
3201         * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
3202         to todo and PROP_tmt_usage to properties_destroyed.
3203         * tree-ssa-ccp.c (pass_ccp): Ditto.
3204         (pass_store_ccp): Ditto.
3205         * tree-ssa-dom.c (pass_dominator): Ditto.
3206
3207 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
3208
3209         * tree-ssa-operands.c: Cleanup whitespace.
3210         (get_asm_expr_operands): Move before first invocation.
3211         (get_indirect_ref_operands): Likewise.
3212         (get_tmr_operands): Likewise.
3213         (get_call_expr_operands): Likewise.
3214         (append_def): Likewise.
3215         (append_use): Likewise.
3216         (append_v_may_def): Likewise.
3217         (append_v_must_def): Likewise.
3218         (add_call_clobber_ops): Likewise.
3219         (add_call_read_ops): Likewise.
3220         (add_stmt_operand): Likewise.
3221         (add_virtual_operand): Likewise.
3222         (build_ssa_operands): Likewise.
3223
3224 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
3225
3226         PR middle-end/26022
3227         Revert:
3228         PR middle-end/24437
3229         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
3230         with a call expr to ...
3231         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
3232
3233 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
3234
3235         * tree-vrp.c (extract_range_from_assert): Remove special
3236         handling for types with super-types.
3237
3238 2006-03-01  Ben Elliston  <bje@au.ibm.com>
3239
3240         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
3241         and powerpc64-*-linux* configurations.
3242         * config/t-dfprules: New file.
3243
3244         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
3245         Compile dfp-bit.c from the source directory using -DWIDTH and
3246         $DFP_CFLAGS to control the compilation of that file, rather than
3247         generating width-specific versions in the build directory.
3248         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
3249         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
3250
3251 2006-02-28  Zack Weinberg  <zackw@panix.com>
3252
3253         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
3254         continues to work.
3255
3256 2006-02-28  Eric Christopher  <echristo@apple.com>
3257
3258         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
3259         Set up IN_LIBGCC definition of TARGET_64BIT.
3260         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
3261
3262 2006-02-28  Roger Sayle  <roger@eyesopen.com>
3263
3264         PR middle-end/14752
3265         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
3266         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
3267         cases via the construction of "expr != 0".
3268
3269 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
3270
3271         * alias.c (alias_invariant, alias_invariant_size): Remove.
3272         (record_base_value): Remove.
3273         (memrefs_conflict_p): Don't look at alias_invariant.
3274         (end_alias_analysis): Don't free it.
3275         * alias.h (record_base_value): Remove prototype.
3276
3277 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
3278             Adam Nemet  <anemet@caviumnetworks.com>
3279
3280         * rtl.h (truncated_to_mode): Declare it.
3281         (struct rtl_hooks): Add reg_truncated_to_mode hook.
3282         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
3283         (RTL_HOOKS_INITIALIZER): Include it.
3284         * rtlhooks.c (reg_truncated_to_mode_general): New function.
3285         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
3286         reg_truncated_to_mode.
3287         * rtlanal.c (truncated_to_mode): Define it.
3288         * simplify-rtx.c (simplify_unary_operation_1): Use it.
3289
3290 2006-02-28  Jeff Law  <law@redhat.com>
3291
3292         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
3293         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
3294         the range allowed by TYPE_PRECISION.
3295
3296         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
3297
3298 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
3299
3300         PR tree-optimization/26419
3301         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
3302         values of n.
3303
3304 2006-02-27  Zack Weinberg  <zackw@panix.com>
3305
3306         * doc/md.texi: Fix typo in previous change.
3307
3308 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
3309
3310         * df.c: Remove.
3311
3312 2006-02-27  Zack Weinberg  <zackw@panix.com>
3313
3314         * rtl.def (define_constraint, define_register_constraint)
3315         (define_memory_constraint, define_address_constraint): New MD forms.
3316         * gensupport.c (process_rtx): Put define_constraint etc on the
3317         predicate queue.
3318         * genpreds.c (process_define_predicate): Adjust comment.  Validate
3319         the name, and call validate_exp to validate the expression.
3320         (mark_mode_tests, write_extract_subexp): Can assume correct input.
3321         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
3322         all callers changed.
3323         (validate_exp, needs_variable, struct constraint_data)
3324         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
3325         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
3326         (const_dbl_constraints, constraint_max_namelen)
3327         (have_register_constraints, have_memory_constraints)
3328         (have_address_constraints, have_address_constraints)
3329         (have_extra_constraints, have_const_int_constraints)
3330         (have_const_dbl_constraints, mangle, add_constraint)
3331         (process_define_constraint, process_define_register_constraint)
3332         (write_enum_constraint_num, write_lookup_constraint)
3333         (write_insn_constraint_len, write_regclass_for_constraint)
3334         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
3335         (write_insn_extra_memory_constraint)
3336         (write_insn_extra_address_constraint)
3337         (write_satisfies_constraint_fns): New.
3338         (write_tm_preds_h): If we have new-style constraint definitions,
3339         prototype the functions generated from them, and define the
3340         old constraint interface (still used by generic code) in terms of
3341         those functions.
3342         (write_insn_preds_c): If we have new-style constraint definitions,
3343         generate all relevant functions from those definitions.
3344         (main): Handle define_constraint etc.
3345         * genoutput.c (struct constraint_data, indep_constraints)
3346         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
3347         (mdep_constraint_len): New data structures and functions, defined
3348         #ifdef USE_MD_CONSTRAINTS.
3349         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
3350         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
3351         use new logic to validate operand constraints against constraint
3352         definitions.
3353         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
3354         defined.
3355         * defaults.h: If none of the old-style constraint macros are
3356         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
3357         old-style macros; and poison REG_CLASS_FROM_LETTER,
3358         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
3359         EXTRA_CONSTRAINT.
3360         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
3361         * doc/md.texi: Document new constraint-definition mechanism and the
3362         C interface it provides.  Remove references to old mechanism
3363         elsewhere in the document.
3364         (Machine Constraints): Use pathnames relative to gcc directory,
3365         i.e. config/ARCH/FILE.  Change i386 section to refer to
3366         config/i386/predicates.md; update that section to match docstrings.
3367         * doc/tm.texi: Move all documentation of the old constraint-
3368         definition macros to their own section, clearly mark as obsolete.
3369
3370         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
3371         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
3372         definitions.
3373         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
3374         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
3375         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
3376         constraint strings.
3377         (splits and peepholes): Use satisfies_constraint_*.
3378         * config/i386/i386.c (memory_address_length)
3379         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
3380
3381 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
3382
3383         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
3384         scalar operation to be put back into the loop.
3385
3386 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
3387
3388         PR other/26208
3389         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
3390         (extract_cie_info): Handle S flag in augmentation string.
3391         (execute_cfa_program): If context->signal_frame, execute also
3392         fs->pc == context->ra instructions.
3393         (uw_frame_state_for): If context->signal_frame, don't subtract one
3394         from context->ra to find FDE.
3395         (uw_update_context_1): Set context->signal_frame to
3396         fs->signal_frame.
3397         (_Unwind_GetIPInfo): New function.
3398         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
3399         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
3400         of _Unwind_GetIP.
3401         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
3402         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
3403         * unwind-compat.c (_Unwind_GetIPInfo): New function.
3404         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
3405         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
3406         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
3407         * config/i386/linux-unwind.h (x86_fallback_frame_state,
3408         x86_64_fallback_frame_state): Set fs->signal_frame.
3409         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
3410         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
3411         (frob_update_context): Likewise.  Workaround missing S flag in
3412         Linux 2.6.12 - 2.6.16 kernel vDSOs.
3413         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
3414         Remove the psw_addr + 1 hack.
3415
3416 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
3417
3418         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
3419         with aggregates here.
3420         (find_func_aliases): Remove code for &<aggregate> from here.
3421
3422 2006-02-26  Roger Sayle  <roger@eyesopen.com>
3423
3424         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold (~X & C) eq/ne 0 as
3425         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
3426         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
3427         as (X & C) ne/eq 0.
3428
3429 2006-02-26  Roger Sayle  <roger@eyesopen.com>
3430
3431         PR middle-end/19983
3432         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
3433
3434 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
3435
3436         * opts.c (decode_options): Do not handle flag_strength_reduce.
3437         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
3438         and OPT_fstrength_reduce.
3439         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
3440         flag_prefetch_loop_arrays for being nonzero.
3441         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
3442         no-ops.
3443         (fprefetch-loop-arrays-rtl): Removed.
3444         (flag_prefetch_loop_arrays): Do not specify the value.
3445
3446         * doc/passes.texi: Update documentation of loop optimizer
3447         passes.
3448         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
3449         -frerun-loop-opt): Remove.
3450
3451 2006-02-26  Richard Guenther  <rguenther@suse.de>
3452
3453         PR tree-optimization/26421
3454         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
3455         in function calls that are ADDR_EXPRs as using the whole structure.
3456
3457 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
3458
3459         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
3460         * tree-pass.h (pass_loop_optimize): Remove.
3461         * passes.c (pass_loop_optimize): Never run it.
3462         * toplev.c (backend_init): Don't call init_loop.
3463         * opts.c (flag_loop_optimize_set): Remove.
3464         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
3465         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
3466         the old RTL loop optimizer when profiling enabled.
3467         * predict.c (tree_estimate_probability): Always strip builtin_expect.
3468         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
3469         pre-headers for the sake of the old RTL loop optimizer.
3470         * Makefile.in: Remove all references to loop.o.
3471
3472         * doc/invoke.texi: Remove all references to -floop-optimize
3473         and -frerun-loop-opt.
3474
3475 2006-02-26  Zack Weinberg  <zackw@panix.com>
3476
3477         * doc/md.texi (Machine Constraints): Refer to all files with paths
3478         relative to gcc directory (i.e. config/CPU/file).  Add missing
3479         @table @code ... @end table to M32C subsection.
3480
3481 2006-02-26  Roger Sayle  <roger@eyesopen.com>
3482
3483         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
3484         (X & 1) == 0.
3485         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
3486
3487 2006-02-26  Roger Sayle  <roger@eyesopen.com>
3488             James A. Morrison  <phython@gcc.gnu.org>
3489
3490         PR middle-end/21137
3491         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold ((X>>C1)&C2) eq/ne 0,
3492         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
3493         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
3494         signedness of the shift operation.
3495
3496 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
3497
3498         PR tree-optimization/26359
3499         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
3500
3501 2006-02-25  Roger Sayle  <roger@eyesopen.com>
3502
3503         * simplify-rtx.c (simplify_relational_operation_1):  Simplify
3504         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
3505         as X == 0, and some symmetry related transformations.
3506         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
3507
3508 2006-02-25  Roger Sayle  <roger@eyesopen.com>
3509
3510         PR middle-end/23673
3511         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold (X^Y) == 0 as X == Y
3512         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
3513         symmetry related transformations.  Fold (X^C1) == C2 as
3514         X == (C1^C2).
3515
3516 2006-02-25  Juergen Weigert  <jw@suse.de>
3517         Richard Guenther  <rguenther@suse.de>
3518
3519         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
3520
3521 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
3522
3523         * combine.c (gen_lowpart_or_truncate): Call
3524         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
3525
3526 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
3527
3528         * doc/invoke.texi: Move -fopenmp description to "Options for
3529         Code Generation".
3530         Remove reference to -lgomp.
3531
3532 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
3533
3534         * doc/install.texi: Require GNU tar version 1.14.
3535
3536 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
3537
3538         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
3539         * doc/invoke.texi (C++ Dialect Options): Document
3540         -fno-use-cxa-get-exception-ptr.
3541         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
3542         * configure: Regenerate.
3543         * c.opt (fuse-cxa-get-exception-ptr): New.
3544         * c-opts.c (c_common_handle_option): Handle
3545         OPT_fuse_cxa_get_exception_ptr.
3546         * c-common.c (flag_use_cxa_atexit): Update documentation.
3547         (flag_use_cxa_get_exception_ptr): New.
3548         * c-common.h (flag_use_cxa_get_exception_ptr): New.
3549         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
3550         documentation.
3551         (C_COMMON_OVERRIDE_OPTIONS): New.
3552
3553 2006-02-24  Roger Sayle  <roger@eyesopen.com>
3554
3555         PR middle-end/24952
3556         * combine.c (try_combine): Explicitly check whether GET_CODE is
3557         a SET or a CLOBBER, instead on checking that it isn't a USE.
3558
3559 2006-02-24  Roger Sayle  <roger@eyesopen.com>
3560
3561         * fold-const.c (fold_comparison): New subroutine of fold_binary
3562         containing transformations common to both the equality and
3563         ordering relational operators, factored out of fold_binary.
3564         (fold_binary): Separate out the equality operators (EQ_EXPR
3565         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
3566         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
3567         transformations common to both.
3568         (fold_div_compare): Fix latent bugs in the previously unreachable
3569         LT_EXPR and GE_EXPR cases.
3570
3571 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
3572
3573         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
3574         decl libname for clog to __clog on AIX.
3575
3576         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
3577
3578 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
3579
3580         PR target/26453
3581         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3582         output traceback table for thunks.  Localise rs6000_stack_info call.
3583
3584 2006-02-23  Roger Sayle  <roger@eyesopen.com>
3585             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3586
3587         * gthr-posix.h (__gthrw): Fix typo in comment.
3588
3589 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
3590
3591         * doc/cpp.texi (Character sets): Document that we do support
3592         input files to be in any character set.
3593
3594 2006-02-23  Jeff Law  <law@redhat.com>
3595
3596         * tree.h (PHI_ARG_NONZERO): Remove.
3597         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
3598         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
3599         node to the new node.
3600
3601         PR tree-optimization/26425
3602         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
3603         min/max, then assume its varying.
3604
3605 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
3606
3607         PR rtl-optimization/26316
3608         * rtlanal.c (enum may_trap_p_flags): New.
3609         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
3610         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
3611         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
3612         (may_trap_after_code_motion_p): New function.
3613         * loop-invariant.c (find_identical_invariants): Fix dump formating.
3614         (find_invariant_insn): Use may_trap_after_code_motion_p.
3615         * rtl.h (may_trap_after_code_motion_p): Declare.
3616
3617 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
3618
3619         * emit-rtl.c (immed_double_const): Cleanup.
3620
3621 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
3622
3623         Fix PR tree-optimization/26376
3624         * tree-ssa-structalias.c (find_func_aliases):  Use get_id_for_tree,
3625         remove assert.
3626
3627 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
3628
3629         PR middle-end/26412
3630         * gimplify.c (omp_add_variable): Guard variable size decl test with
3631         DECL_SIZE (decl) check.
3632
3633 2006-02-23  Richard Guenther  <rguenther@suse.de>
3634
3635         PR middle-end/26439
3636         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
3637         like aggregate types.
3638
3639 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
3640
3641         * configure.ac: Add --with{,out}-long-double-128 configure option.
3642         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
3643         * configure: Rebuilt.
3644         * config.in: Rebuilt.
3645         * doc/install.texi (Options specification): Document
3646         --with-long-double-128.
3647
3648         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
3649         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
3650         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
3651         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
3652
3653 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
3654
3655         * config/s390/s390.c (override_options): Handle
3656         TARGET_DEFAULT_LONG_DOUBLE_128.
3657
3658         * config/alpha/alpha.c (override_options): Handle
3659         TARGET_DEFAULT_LONG_DOUBLE_128.
3660
3661         * config/sparc/sparc.c (sparc_override_options): Handle
3662         TARGET_DEFAULT_LONG_DOUBLE_128.
3663
3664 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
3665
3666         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
3667         (real-install-headers-tar, real-install-headers-cpio)
3668         (real-install-headers-cp): New targets.
3669
3670 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
3671
3672         * tree.h (variable_section): Delete.
3673         * varasm.c (variable_section): Delete.
3674
3675 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
3676
3677         * install.texi: Add notes on install.texi2html.
3678         (Building in parallel): Do not use footnotes.
3679
3680 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
3681
3682         PR libgomp/26234
3683         * doc/install.texi (Configuration): Document --disable-libgomp.
3684
3685 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
3686
3687         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
3688
3689 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
3690
3691         * config/i386/sse.md (vec_extractv2df_1_sse): New.
3692         (vec_extractv2df_0_sse): New.
3693
3694 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
3695
3696         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
3697         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
3698         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
3699         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
3700         to the result of the expression.
3701         (def_cfa_1): Adjust.
3702         (frame_pointer_cfa_offset): Rename to...
3703         (frame_pointer_fb_offset): ... this.  Adjust all uses.
3704         (convert_cfa_to_loc_list): Rename to...
3705         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
3706         Pass it on to build_cfa_loc.
3707         (compute_frame_pointer_to_cfa_displacement): Rename to...
3708         (compute_frame_pointer_to_fb_displacement): ... this.  New
3709         offset parameter.  Use it in computation.
3710         (gen_subprogram_die): Compute cfa_fb_offset with the new
3711         macro, and use it to compute the fb loc list and the
3712         displacement.
3713
3714 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
3715
3716         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
3717         replaced with register_operand.
3718         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
3719         non-DREG is expensive.
3720         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
3721         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
3722         involving memory.
3723
3724 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
3725
3726         * doc/install.texi2html: Use set -e.
3727
3728 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
3729
3730         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
3731         (ASM_OUTPUT_SHARED_LOCAL): Delete.
3732         * doc/invoke.texi (-fshared-data): Delete.
3733         * common.opt (fshared-data): Delete.
3734         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
3735         (assemble_static_space): Remove #if 0 code.
3736         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
3737         (ASM_OUTPUT_SHARED_LOCAL): Poison.
3738         * config/cris/cris.h: Remove FIXME.
3739
3740 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
3741
3742         * doc/sourcebuild.texi (Front End Directory): No more double-colon
3743         hooks.
3744
3745 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
3746
3747         PR middle-end/26379
3748         * combine.c (simplify_shift_const_1): Disable nested shifts
3749         optimization for vector shifts.
3750
3751 2006-02-20  Roger Sayle  <roger@eyesopen.com>
3752
3753         PR tree-optimization/26361
3754         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
3755         of unsigned integer types.
3756
3757 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
3758
3759         * tree-chrec.c (eq_evolutions_p): New.
3760         * tree-chrec.h (eq_evolutions_p): Declared.
3761         * tree-data-ref.c: Fix formatting.
3762         (datadep_stats, dependence_stats): New.
3763         (gcd): Moved...
3764         (print_direction_vector): New.
3765         (dump_data_dependence_relation): Use print_direction_vector.
3766         (object_analysis, create_data_ref): Handle COMPONENT_REF.
3767         (compute_subscript_distance): Static.
3768         (initialize_data_dependence_relation): Static.  Get the number
3769         of loops surrounding the references from the callers, and initialize
3770         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
3771         base_object_differ_p analyzers.
3772         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
3773         compute_overlap_steps_for_affine_1_2,
3774         analyze_subscript_affine_affine): Count the classified dependences.
3775         Print a message when a test failed.
3776         (can_use_analyze_subscript_affine_affine): New.
3777         (analyze_siv_subscript): Compute the data dependences on symbolic
3778         scevs that verify can_use_analyze_subscript_affine_affine.
3779         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
3780         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
3781         Handle symbolic scevs.
3782         (analyze_overlapping_iterations): Let symbolic affine scevs to be
3783         analyzed.
3784         (subscript_dependence_tester): Moved...
3785         (build_classic_dist_vector, build_classic_dir_vector): Don't use
3786         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
3787         DDR_SIZE_VECT instead of getting it in parameter.
3788         (subscript_dependence_tester): ... here.  Take as a parameter
3789         loop_nest_depth.  Call build_classic_dist_vector and
3790         build_classic_dir_vector.
3791         (compute_affine_dependence): Update subscript_dependence_tester
3792         parameters.  Update datadep_stats counters.  Call
3793         compute_subscript_distance.
3794         (compute_self_dependence): Save the dist and dir vectors.  Call
3795         compute_subscript_distance.
3796         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
3797         (compute_all_dependences): Reorder parameters as they were before
3798         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
3799         compute_subscript_distance.  Update the use of
3800         compute_affine_dependence and initialize_data_dependence_relation.
3801         (find_data_references_in_loop): Handle COMPONENT_REF.
3802         (compute_data_dependences_for_loop): Initialize dependence_stats.
3803         Don't call build_classic_dist_vector and build_classic_dir_vector.
3804         Update the parameters of initialize_data_dependence_relation and
3805         compute_all_dependences.  Print the statistics from datadep_stats.
3806         (analyze_all_data_dependences): Static.  Not used until the pass for
3807         checking the data dependences is contributed.
3808         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
3809         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
3810         (initialize_data_dependence_relation, compute_affine_dependence,
3811         analyze_all_data_dependences, compute_subscript_distance): Removed.
3812         (print_direction_vector): New.
3813         * lambda.h (gcd): ... here.
3814         (lambda_vector_gcd): Moved here from gcd_vector.
3815         * lambda-code.c (gcd, gcd_vector): Removed.
3816         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
3817         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
3818
3819 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
3820
3821         * ipa-type-escape.c: Tidy some comments and white space.
3822         * tree-ssa-operands.c: Likewise.
3823
3824 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
3825
3826         PR tree-opt/25879
3827         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
3828         (dump_decl_name): Do not walk the decl tree chains.
3829         * tree-pass.h (TDF_CHAIN): Remove.
3830
3831 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
3832
3833         * Makefile.in (C): Remove
3834         (PROTO): Remove
3835         (.PHONY): Remove C and PROTO
3836
3837 2006-02-20  Roger Sayle  <roger@eyesopen.com>
3838
3839         PR middle-end/26236
3840         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
3841         deprecated CHAR_TYPE tree code.
3842
3843 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
3844
3845         * configure.ac (target_list): Add install-info, dvi, html.
3846         * configure: Regenerate.
3847
3848         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
3849         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
3850         treelang/Make-lang.in: Do not use double-colon rules.
3851
3852 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
3853
3854         * tree.h (struct tree_memory_tag): Add is_used_alone member.
3855         (TMT_USED_ALONE): New macro.
3856         * tree-pass.h (PROP_tmt_usage): New property.
3857         (TODO_update_tmt_usage): New todo.
3858         * tree-ssa-alias.c (updating_used_alone): New variable.
3859         (recalculate_used_alone): New function.
3860         (compute_may_aliases): Set updating_used_alone, call
3861         recalculate_used_alone.
3862         * tree-sra.c (pass_sra): Note that this pass destroys
3863         PROP_tmt_usage, and add TODO_update_tmt_usage.
3864         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
3865         * tree-flow.h (updating_used_alone): Prototype.
3866         (recalculate_used_alone): Ditto.
3867         * passes.c (execute_todo): Add code to set updating_used_alone,
3868         and call recalculate.
3869         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
3870         for clobber if used alone, and add assert to verify used_alone
3871         status.
3872
3873 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
3874
3875         * config/s390/s390.c (legitimize_pic_address): Assertions checking
3876         for non tls symbols added.
3877         (legitimize_address): Do nothing for PLUS expressions if one of the
3878         addends is a tls symbol reference.
3879
3880 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
3881
3882         PR bootstrap/25476
3883
3884         * Makefile.in (LDFLAGS): Define from autoconf substitution.
3885
3886         * Makefile.in (BOOTSTRAPPING): New.
3887         (quickstrap): New definition if BOOTSTRAPPING=yes.
3888
3889         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
3890         * configure.ac: Substitute all_selected_languages with the languages
3891         that were configured.  For all the other variables except
3892         lang_specs_files, include all the languages in the tree.
3893         * configure: Regenerate.
3894
3895         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
3896         if there is one.  Run the commands to run fixincludes in the same
3897         subshell.
3898
3899         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
3900         * doc/install.texi: Document exact conventions for searching target tools.
3901         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
3902         something more about building an Ada cross-compiler.  Don't list GNU Make
3903         requirements which affect all platforms.
3904
3905 2006-02-19  Roger Sayle  <roger@eyesopen.com>
3906
3907         PR middle-end/19543
3908         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
3909         only equivalent if the have both the same mode and precision.
3910
3911 2006-02-20  Ben Elliston  <bje@au.ibm.com>
3912
3913         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
3914
3915 2006-02-19  Roger Sayle  <roger@eyesopen.com>
3916             Steven Bosscher  <stevenb.gcc@gmail.com>
3917
3918         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
3919         constant pool references to identify stack mode constants.
3920         * rtlanal.c (constant_pool_constant_p): New predicate to check
3921         whether operand is a floating point constant in the pool.
3922         * rtl.h (constant_pool_constant_p): Prototype here.
3923         * loop.c (scan_loop): Avoid hoisting constants from the constant
3924         pool on STACK_REGS targets.
3925         (load_mems): Likewise.
3926         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
3927         loads into x87 registers expensive in terms of register pressure.
3928
3929 2006-02-19  Roger Sayle  <roger@eyesopen.com>
3930
3931         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
3932         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
3933
3934 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
3935
3936         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
3937         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
3938
3939 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
3940
3941         * doc/invoke.texi: Document -fipa-pta.
3942         * common.opt: Add ipa-pta option.
3943         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
3944         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
3945         (do_ds_constraint): Ditto.
3946         (get_constraint_for): Only add to referenced_vars if
3947         referenced_vars exists.
3948         (insert_into_field_list): Rewrite to do this unsorted.
3949         (insert_into_field_list_sorted): Rename old insert_into_field_list
3950         to this.
3951         (create_function_info_for): Use insert_into_field_list_sorted.
3952         (create_variable_info_for): Rewrite so it uses unsorted version,
3953         since the field list is sorted.
3954         (intra_create_variable_infos): Only add to referenced_vars if
3955         referenced_vars exists.
3956         (ipa_pta_execute): Init heapvars, and delete when done.
3957         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
3958
3959 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3960
3961         * doc/install.texi: Add missing `@samp'.
3962
3963 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
3964
3965         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
3966         Use the arguments.
3967
3968 2006-02-18  Mark Wielaard  <mark@klomp.org>
3969
3970         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
3971         who added new 4.1 features, bug fixes and integration support.
3972
3973 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
3974
3975         PR target/26350
3976         * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
3977         MEM for ABI_V4 pic.
3978
3979 2006-02-18  Richard Sandiford  <richard@codesourcery.com>
3980
3981         * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
3982         * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
3983         (copy_insn_1): Likewise.  Don't copy each field individually.
3984         Reindent.
3985         * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
3986         of RTX_SIZE.
3987         * reload1.c (eliminate_regs): Use shallow_copy_rtx.
3988         * rtl.c (rtx_size): Rename variable to...
3989         (rtx_code_size): ...this.
3990         (rtx_size): New function.
3991         (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
3992         (copy_rtx): Use shallow_copy_rtx.  Don't copy each field individually.
3993         Reindent.
3994         (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
3995         * rtl.h (rtx_code_size): New variable.
3996         (rtx_size): Change from a variable to a function.
3997         (RTX_SIZE): Rename to...
3998         (RTX_CODE_SIZE): ...this.
3999
4000         PR target/9703
4001         PR tree-optimization/17106
4002         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
4003         (Anchored Addresses): New section.
4004         * doc/invoke.texi (-fsection-anchors): Document.
4005         * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
4006         (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
4007         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
4008         * hooks.c (hook_bool_mode_rtx_false): New function.
4009         * hooks.h (hook_bool_mode_rtx_false): Declare.
4010         * gengtype.c (create_optional_field): New function.
4011         (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
4012         SYMBOL_REF_IN_BLOCK_P is true.
4013         * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
4014         (min_anchor_offset, max_anchor_offset): Likewise.
4015         (use_anchors_for_symbol_p): New hook.
4016         * toplev.c (compile_file): Call output_object_blocks.
4017         (target_supports_section_anchors_p): New function.
4018         (process_options): Check that -fsection-anchors is only used on
4019         targets that support it and when -funit-at-a-time is in effect.
4020         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
4021         if the decl doesn't have one.
4022         * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
4023         * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
4024         of force_const_mem through use_anchored_address.
4025         (expand_expr_constant): New function.
4026         (expand_expr_addr_expr_1): Call it.  Use the same modifier when
4027         calling expand_expr for INDIRECT_REF.
4028         (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
4029         for all modifiers except EXPAND_INITIALIZER.  Use expand_expr_constant.
4030         * expr.h (use_anchored_address): Declare.
4031         * loop-unroll.c: Don't declare rtx vectors here.
4032         * explow.c: Include output.h.
4033         (validize_mem): Call use_anchored_address.
4034         (use_anchored_address): New function.
4035         * common.opt (-fsection-anchors): New switch.
4036         * varasm.c (object_block_htab, anchor_labelno): New variables.
4037         (hash_section, object_block_entry_eq, object_block_entry_hash)
4038         (use_object_blocks_p, get_block_for_section, create_block_symbol)
4039         (use_blocks_for_decl_p, change_symbol_section): New functions.
4040         (get_variable_section): New function, split out from assemble_variable.
4041         (make_decl_rtl): Create a block symbol if use_object_blocks_p and
4042         use_blocks_for_decl_p say so.  Use change_symbol_section if the
4043         symbol has already been created.
4044         (assemble_variable_contents): New function, split out from...
4045         (assemble_variable): ...here.  Don't output any code for
4046         block symbols; just pass them to place_block_symbol.
4047         Use get_variable_section and assemble_variable_contents.
4048         (get_constant_alignment, get_constant_section, get_constant_size): New
4049         functions, split from output_constant_def_contents.
4050         (build_constant_desc): Create a block symbol if use_object_blocks_p
4051         says so.  Or into SYMBOL_REF_FLAGS.
4052         (assemble_constant_contents): New function, split from...
4053         (output_constant_def_contents): ...here.  Don't output any code
4054         for block symbols; just pass them to place_section_symbol.
4055         Use get_constant_section and get_constant_alignment.
4056         (force_const_mem): Create a block symbol if use_object_blocks_p and
4057         use_blocks_for_constant_p say so.  Or into SYMBOL_REF_FLAGS.
4058         (output_constant_pool_1): Add an explicit alignment argument.
4059         Don't switch sections here.
4060         (output_constant_pool): Adjust call to output_constant_pool_1.
4061         Switch sections here instead.  Don't output anything for block symbols;
4062         just pass them to place_block_symbol.
4063         (init_varasm_once): Initialize object_block_htab.
4064         (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
4065         (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
4066         (place_block_symbol, get_section_anchor, output_object_block)
4067         (output_object_block_htab, output_object_blocks): New functions.
4068         * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
4069         (TARGET_ASM_OUT): Include it.
4070         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
4071         (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
4072         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
4073         (TARGET_INITIALIZER): Include them.
4074         * rtl.c (rtl_check_failed_block_symbol): New function.
4075         * rtl.h: Include vec.h.  Declare heap and gc rtx vectors.
4076         (block_symbol, object_block): New structures.
4077         (rtx_def): Add a block_symbol field to the union.
4078         (BLOCK_SYMBOL_CHECK): New macro.
4079         (rtl_check_failed_block_symbol): Declare.
4080         (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
4081         (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
4082         (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
4083         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
4084         * output.h (output_section_symbols): Declare.
4085         (object_block): Name structure.
4086         (place_section_symbol, get_section_anchor, default_asm_output_anchor)
4087         (default_use_anchors_for_symbol_p): Declare.
4088         * Makefile.in (RTL_BASE_H): Add vec.h.
4089         (explow.o): Depend on output.h.
4090         * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
4091         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
4092         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
4093         (rs6000_use_blocks_for_constant_p): New function.
4094
4095 2006-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4096
4097         * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
4098
4099 2006-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
4100
4101         PR tree-opt/25680
4102         * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
4103         IMAGPART_EXPR.
4104
4105 2006-02-18  Diego Novillo  <dnovillo@redhat.com>
4106
4107         * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
4108         is_aliased.
4109         Update all users.
4110
4111 2006-02-18  Jakub Jelinek  <jakub@redhat.com>
4112
4113         PR middle-end/26334
4114         * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
4115         instead of DECL_REGISTER.
4116
4117 2006-02-18  Olivier Hainque  <hainque@adacore.com>
4118
4119         PR ada/13408
4120         * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
4121
4122 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
4123
4124         PR target/24837
4125         * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
4126         * opth-gen.awk: Handle Var and InverseMask together.
4127         * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
4128         * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
4129         (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
4130         (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
4131         used together.
4132         (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
4133         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
4134         * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
4135         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4136         LINUX_DYNAMIC_LINKER): Define.
4137         (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
4138         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
4139         TARGET_GLIBC.
4140         * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4141         (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
4142         * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4143         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4144         (TARGET_C99_FUNCTIONS): Don't define.
4145         * config/i386/linux.h (DYNAMIC_LINKER): Rename to
4146         GLIBC_DYNAMIC_LINKER.
4147         (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
4148         * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
4149         GLIBC_DYNAMIC_LINKER64): Define.
4150         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
4151         LINUX_DYNAMIC_LINKER64.
4152         * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4153         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4154         * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
4155         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4156         * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4157         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4158         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
4159         GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
4160         UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
4161         (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
4162         and LINUX_DYNAMIC_LINKER32.
4163         * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4164         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4165         * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
4166         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4167         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
4168         TARGET_GLIBC.
4169         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
4170         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
4171         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
4172         CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4173         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
4174         (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
4175         (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
4176         * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
4177         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4178         LINUX_DYNAMIC_LINKER): Define.
4179         (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
4180         * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
4181         GLIBC_DYNAMIC_LINKER64): Define.
4182         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
4183         LINUX_DYNAMIC_LINKER64.
4184         * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4185         (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4186         * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
4187         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
4188         LINUX_DYNAMIC_LINKER): Define.
4189         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4190         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
4191         * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
4192         GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
4193         UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
4194         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
4195         (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
4196         (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
4197         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
4198         * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4199         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4200         * doc/invoke.texi (-muclibc): Remove caveat about supported
4201         targets.
4202
4203 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
4204
4205         * doc/cpp.texi (__TIMESTAMP__): Document.
4206
4207 2006-02-17  Roger Sayle  <roger@eyesopen.com>
4208
4209         PR middle-end/25600
4210         * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
4211         C is one less than the width of X (and related transformations).
4212         * simplify-rtx.c (simplify_unary_operation_1): Transform
4213         (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
4214         depending on STORE_FLAG_VALUE, were C is one less then the
4215         width of X.
4216
4217 2006-02-17  Daniel Berlin  <dberlin@dberlin.org>
4218
4219         Fix PR tree-optimization/26341
4220         * tree-ssa-operands.c (add_virtual_operand): Remove assert
4221         about NAME_MEMORY_TAG's.
4222
4223 2006-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4224
4225         PR target/26255
4226         * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
4227         with hardware float support, and software float support.  Add fcpy
4228         alternative to hardware patterns.  Add alternatives to copy between
4229         general and floating-point registers to the 32-bit pattern.
4230         * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
4231         secondary reload to load a QI or HI mode constant into a floating
4232         point register.
4233         * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
4234         * pa64-regs.h (VALID_FP_MODE_P): Likewise.
4235
4236 2006-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
4237
4238         PR target/26272
4239         * config/rs6000/darwin.md (load_macho_picbase_si): Add
4240         pc to the pattern.
4241         (load_macho_picbase_di): Likewise.
4242
4243 2006-02-16  Jeff Law  <law@redhat.com>
4244
4245         * tree-vrp.c (set_value_range_to_nonnegative): New function.
4246         (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
4247         (ssa_name_nonzero_p): Likewise.
4248         (get_value_range): Return NULL if VRP is not running.
4249         (extract_range_from_expr): Fallback to tree_expr_XXX_p if
4250         VRP routines do not discover a range.
4251         (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
4252         * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
4253         * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
4254         (tree_expr_nonnegative_p): Similarly.
4255         * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
4256         (restore_nonzero_vars_to_original_value): Remove.
4257         (unsafe_associative_fp_binop): Remove.
4258         (tree_ssa_dominator_optimize): Remove initialization and
4259         finalization of nonzero_vars and nonzero_vars_stack.
4260         (dom_opt_initialize_block): No longer push marker on
4261         nonzero_vars_stack.
4262         (dom_opt_finalize_block): No longer call
4263         restore_nonzero_vars_to_original_value.
4264         (record_equivalences_from_phis): No longer look for
4265         nonzero PHI arguments.
4266         (cprop_into_successor_phis): No longer propagate nonzero
4267         property into PHI arguments.  Lose unused argument.  Caller
4268         updated.
4269         (record_equivalences_from_stmt): No longer record nonzero
4270         values for SSA_NAMEs.
4271         (lookup_avail_expr): No longer use nonzero_vars.
4272
4273         * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
4274         for sizetype when sizetype is unsigned.
4275
4276 2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
4277
4278         PR rtl-optimization/25603
4279         * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
4280         (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
4281         * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
4282         with new meaning of SETS.
4283
4284 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
4285
4286         PR target/20353
4287         PR target/24578
4288         PR target/24837
4289         * config/linux.opt: New file.
4290         * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
4291         LINUX_DYNAMIC_LINKER): Define.
4292         (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
4293         * config.gcc (*-*-linux*): Define extra_options.
4294         (*-*-*uclibc*): Define UCLIBC_DEFAULT.
4295         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
4296         * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
4297         GLIBC_DYNAMIC_LINKER.
4298         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
4299         (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4300         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
4301         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
4302         * doc/invoke.texi (GNU/Linux Options): New section.
4303
4304 2006-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
4305
4306         * config/sparc/sparc.md (setjmp): Rewrite.
4307         (setjmp_32): Delete.
4308         (setjmp_64): Likewise.
4309
4310 2006-02-16  Daniel Berlin <dberlin@dberlin.org>
4311
4312         * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
4313          previous change.
4314
4315 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
4316
4317         * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
4318         read-write uses.
4319
4320 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
4321
4322         PR rtl-optimization/26296
4323         * Makefile.in (loop-invariant.c): Add except.h dependency.
4324         * loop-invariant.c: Include except.h.
4325         (find_invariant_insn): Ignore insns satisfying can_throw_internal.
4326
4327 2005-02-16  Paul Brook  <paul@codesourcery.com>
4328
4329         * reload1.c (emit_reload_insns): Invalidate dead input registers used
4330         for reloads.
4331
4332 2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>
4333
4334         PR rtl-optimization/25636
4335         * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
4336         when deciding whether an insn is an initializing insn.
4337
4338 2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
4339
4340         * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
4341         (tree_code_size): Ditto.
4342         * tree.h (struct tree_memory_tag): Remove parent_var.
4343         (struct tree_struct_field_tag): New.
4344         (SFT_OFFSET): New.
4345         (SFT_SIZE): New.
4346         (union tree_node): Add sft member.
4347         * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
4348         specially here.
4349         (create_sft): Add size and offset argument, set SFT_OFFSET and
4350         SFT_SIZE.
4351         (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
4352         * treestruct.def: Add TS_STRUCT_FIELD_TAG.
4353         * tree-flow-inline.h (get_subvar_at): Update for
4354         SFT_OFFSET/SFT_SIZE.
4355         (var_can_have_subvars): Ditto.
4356         (overlap_subvar): Ditto.
4357         * print-tree.c (print_node): Print out interesting things for
4358         SFT's.
4359         * tree-flow.h (struct subvar): Remove offset and size members.
4360         * tree-ssa-operands.c (get_expr_operands): Update for
4361         get_indirect_ref_operands changes.
4362         (get_indirect_ref_operands): Call add_virtual_operand instead of
4363         add_stmt_operand.  Only recurse on base var if requested.
4364         (access_can_touch_variable): New function.
4365         (add_stmt_operand): Split virtual operand handling into ...
4366         (add_virtual_operand): Here.  Add offset, size, and for_clobber
4367         arguments.  Prune alias sets.
4368         (add_call_clobber_ops): Call add_virtual_operand.
4369
4370 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
4371
4372         PR middle-end/26300
4373         * combine.c (make_extraction): Bail out if ORIG_POS is negative.
4374
4375         * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
4376         than TREE_CODE as index into omp_clause_num_ops array.
4377
4378 2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
4379
4380         PR rtl-optimization/26184
4381         * modulo-sched.c (generate_reg_moves): Free bitmap vector
4382         uses_of_defs.
4383         * modulo-sched.c (sms_schedule): Free g_arr pointer.
4384         * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
4385         must_precede, must_follow and tobe_scheduled.
4386
4387         PR other/26147
4388         * opts.c (common_handle_option): Free new_option pointer.
4389         * df-core.c (df_analyze): Free postorder pointer.
4390
4391 2006-02-15  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
4392
4393         * Makefile.in: Fix the examples about the use of stamps
4394
4395 2006-02-15  Michael Matz  <matz@suse.de>
4396
4397         PR middle-end/22275
4398
4399         * stor-layout.c (layout_decl): Zero-width bitfields aren't
4400         influenced by maximum_field_alignment or DECL_PACKED.
4401         (update_alignment_for_field): Ditto.
4402         (place_field): Ditto.
4403         * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
4404         this behaviour.
4405
4406 2006-02-15  Paolo Bonzini  <bonzini@gnu.org>
4407
4408         * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
4409         (debug_flow_info): Pass it.
4410         * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
4411         * bb-reorder.c (reorder_basic_blocks): Likewise.
4412         * cfgcleanup.c (rest_of_handle_jump2): Likewise.
4413         * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
4414         * flow.c (life_analysis, recompute_reg_usage): Likewise.
4415         * gcse.c (gcse_main, bypass_jumps): Likewise.
4416         * ifcvt.c (rest_of_handle_if_conversion): Likewise.
4417         * local-alloc.c (rest_of_handle_local_alloc): Likewise.
4418         * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
4419         * profile.c (compute_branch_probabilities, branch_prob): Likewise.
4420         * rtl.h (dump_flow_info): Adjust prototype.
4421         * tracer.c (rest_of_handle_tracer, tracer): Likewise.
4422         * var-tracking.c (variable_tracking_main): Likewise.
4423         * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
4424         * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
4425         options.
4426
4427 2006-02-15  Marcin Dalecki <martin@dalecki.de>
4428
4429         * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
4430         construction.
4431
4432 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
4433
4434         PR tree-optimization/26209
4435         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
4436         * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
4437         eh edges.
4438         * tree-cfg.c (replace_uses_by): Do not alter cfg.
4439
4440 2006-02-14  Roger Sayle  <roger@eyesopen.com>
4441
4442         PR middle-end/23670
4443         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
4444         (X,Y) and the corresponding symmetry related transformations.
4445         (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
4446         (X,Y) and its symmetry related transformations.
4447
4448 2006-02-14  Roger Sayle  <roger@eyesopen.com>
4449
4450         * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
4451         and GEU.
4452
4453 2006-02-14  Adam Nemet  <anemet@caviumnetworks.com>
4454
4455         * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
4456
4457 2006-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4458
4459         PR bootstrap/26053
4460         * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
4461         support COMDAT group.
4462         * configure: Regenerate.
4463
4464 2006-02-14  Roger Sayle  <roger@eyesopen.com>
4465
4466         PR middle-end/26279
4467         PR middle-end/26280
4468         PR middle-end/26283
4469         * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
4470
4471 2006-02-14  Daniel Berlin  <dberlin@dberlin.org>
4472
4473         Fix PR tree-optimization/26260
4474
4475         * doc/invoke.texi (max-fields-for-field-sensitive): Document
4476         param.
4477         * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
4478         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
4479         * tree-ssa-structalias.c (create_variable_info_for): Use
4480         MAX_FIELDS_FOR_FIELD_SENSITIVE.
4481
4482 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
4483
4484         * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
4485         Document.
4486         * tree-ssa-loop-niter.c (number_of_iterations_ne,
4487         number_of_iterations_lt, number_of_iterations_cond): Remember the shape
4488         of the ending condition.
4489         * tree-ssa-loop-manip.c: Include params.h.
4490         (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
4491         tree_unroll_loop): New functions.
4492         * tree-pass.h (pass_loop_prefetch): Declare.
4493         * loop.c (rest_of_handle_loop_optimize): Test for
4494         -fprefetch-loop-arrays-rtl.
4495         * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
4496         * timevar.def (TV_TREE_PREFETCH): New timevar.
4497         * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
4498         pass_loop_prefetch): New.
4499         * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
4500         (cleanup_tree_cfg_loop): Call scev_reset.
4501         * common.opt (fprefetch-loop-arrays-rtl): Add.
4502         * tree-ssa-loop-prefetch.c: New file.
4503         * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
4504         (new_temp_expr_table): Initialize expr_vars.
4505         (free_temp_expr_table): Cleanup expr_vars.
4506         (check_replaceable, find_replaceable_in_bb): Prevent accumulating
4507         expressions from being merged into one.
4508         * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
4509         (struct tree_niter_desc): Add control, bound and cmp fields.
4510         (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
4511         Declare.
4512         * Makefile.in (tree-ssa-loop-prefetch.o): Add.
4513         (tree-cfgcleanup.o): Add SCEV_H dependency.
4514         (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
4515         * passes.c (init_optimization_passes): Add pass_loop_prefetch.
4516
4517 2006-02-14  Richard Guenther  <rguenther@suse.de>
4518
4519         PR tree-optimization/26258
4520         * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
4521         in PHI argument processing.
4522
4523 2006-02-13  Adam Nemet  <anemet@caviumnetworks.com>
4524
4525         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
4526         new expression in the requested machine mode.
4527
4528 2006-02-13  Roger Sayle  <roger@eyesopen.com>
4529
4530         * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
4531         directly, instead let do_compare_rtx_and_jump handle this for us.
4532         * expr.c (expand_expr_real_1): Likewise.
4533         * dojump.c (do_jump_by_parts_greater_rtx): Make static.  Move
4534         before do_jump_by_parts_greater.
4535         (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
4536         * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
4537
4538 2006-02-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4539
4540         * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
4541
4542 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
4543
4544         PR rtl-optimization/26235
4545         * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
4546         (invariant_expr_equal_p): Handle 'i' and 'n' formats.  Fail on unknown
4547         format.
4548
4549 2006-02-13  Jeff Law  <law@redhat.com>
4550
4551         * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
4552         TRUTH_XOR_EPR.
4553
4554 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
4555
4556         PR middle-end/26092
4557         * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
4558         twice if decl is a builtin.  When trying again, call get_callee_fndecl
4559         first to verify it is still a builtin.
4560
4561 2006-02-13  Geoffrey Keating  <geoffk@apple.com>
4562
4563         * dwarf2out.c (base_type_die): Don't add AT_name here.
4564         (subrange_type_die): Don't add AT_name here.
4565         (modified_type_die): Rearrange code flow.  Do add AT_name here.
4566
4567 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
4568
4569         PR rtl-optimization/26247
4570         PR rtl-optimization/26248
4571         * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
4572
4573 2006-02-13  Richard Sandiford  <richard@codesourcery.com>
4574
4575         * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
4576         * config/fixtfdi.c: Likewise.
4577         * config/fixunstfdi.c: Likewise.
4578         * config/floatditf.c: Likewise.
4579
4580 2006-02-13  Roger Sayle  <roger@eyesopen.com>
4581
4582         PR middle-end/24427
4583         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
4584         into (X,C2) if C1 is a subset of the bits of C2.  Transform
4585         (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
4586         (X&(C1&~C2))|C2.
4587         <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
4588
4589 2006-02-13  Josh Conner  <jconner@apple.com>
4590
4591         PR target/25376
4592         * varasm.c (function_section): Check for section name before
4593         calling select_section on targets that define
4594         USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
4595         unlikely_text_section instead of hot_function_section if
4596         first_function_block_is_cold.
4597
4598 2006-02-13  J"orn Rennecke <joern.rennecke@st.com>
4599
4600         PR middle-end/25335
4601         * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
4602
4603 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
4604
4605         PR rtl-optimization/26222
4606         * function.c (assign_stack_temp_for_type): Do not reuse stack slots
4607         after tree->rtl expansion.
4608         * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
4609         before passing it to emit_move_insn.
4610
4611 2006-02-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4612
4613         * doc/invoke.texi (-Write-strings): Document that it is enabled by
4614         default.
4615         * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
4616         Clarify documentation.
4617         * c-common.h (warn_write_strings): Remove.
4618         * c-common.c (warn_write_strings): Likewise.
4619         * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
4620         default for C++.
4621
4622 2006-02-12  Roger Sayle  <roger@eyesopen.com>
4623
4624         PR middle-end/25724
4625         * dojump.c (do_jump): Call do_compare_rtx_and_jump.
4626         (do_jump_parts_zero_rtx): New function renamed from
4627         do_jump_parts_equality_rtx.  Made static.  Add a mode argument.
4628         (do_jump_parts_equality_rtx): New function split out from
4629         do_jump_parts_equality.  Old implementation renamed as above.
4630         Call do_jump_parts_zero_rtx if either operand is zero.
4631         (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
4632         do all of the heavy lifting.
4633         (do_compare_rtx_and_jump): Handle multi-word comparisons by
4634         calling either do_jump_by_parts_greater_rtx or
4635         do_jump_by_parts_equality_rtx.
4636         * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
4637         * expmed.c (do_cmp_and_jump): Now multi-word optimization has
4638         moved to do_compare_rtx_and_jump, call it directly.
4639         * stmt.c (do_jump_if_equal): Remove static prototype.  Add a
4640         mode argument.  Call do_compare_rtx_and_jump.
4641         (emit_case_nodes): Update calls to do_jump_if_equal.
4642
4643 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
4644
4645         PR rtl-optimization/26225
4646         * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
4647
4648 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
4649
4650         PR rtl-optimization/26232
4651         * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
4652
4653 2006-02-11  Jason Merrill  <jason@redhat.com>
4654
4655         PR tree-opt/24365
4656         * tree-inline.c (declare_return_variable): Just don't use the
4657         modify target if it's a gimple complex reg and the return slot
4658         isn't.
4659
4660 2006-02-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4661
4662         * doc/contrib.texi: Update my entry.
4663
4664 2006-02-10  Geoffrey Keating  <geoffk@apple.com>
4665
4666         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
4667
4668 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
4669
4670         * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
4671         expensive.
4672
4673 2006-02-10  Zdenek Dvorak <dvorakz@suse.cz>
4674
4675         * doc/invoke.texi (-floop-optimize2): Removed.
4676         * toplev.c (process_options): Remove handling of flag_loop_optimize2.
4677         * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
4678         Test flag_branch_on_count_reg only if HAVE_doloop_end.
4679         * common.opt (floop-optimize2): Removed.
4680         (fmove-loop-invariants): Enabled by default.
4681
4682 2006-02-10  Sebastian Pop  <pop@cri.ensmp.fr>
4683
4684         * tree-if-conv.c (combine_blocks): Free the result of
4685         get_loop_exit_edges.
4686
4687 2006-02-10  Jeff Law  <law@redhat.com>
4688
4689         * fold-const.c (tree_expr_nonzero_p): Fix thinko.
4690
4691         PR tree-optimization/26213
4692         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
4693         loop trying to follow SSA_NAME_VALUE chains.
4694
4695 2006-02-10  Richard Guenther  <rguenther@suse.de>
4696
4697         * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
4698         deal with structures that end in implicitly variable sized arrays.
4699
4700 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
4701
4702         PR rtl-optimization/24762
4703         * df-scan.c (df_bb_refs_record): Record correct registers defined on
4704         eh edges.
4705
4706 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
4707
4708         * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
4709         (struct ivopts_data): Add regs_used field.
4710         (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
4711         (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
4712         instead of loop_data->regs_used;
4713         (free_loop_data): Do not free aux fields for loops.
4714         (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
4715         and tree_ssa_iv_optimize_finalize.
4716
4717 2006-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4718
4719         * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
4720
4721 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
4722
4723         PR target/26141
4724         * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
4725         computing the effective result type.
4726
4727 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
4728
4729         PR inline-asm/16194
4730         * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
4731         (tree_overlaps_hard_reg_set): Declare.
4732         * stmt.c (decl_overlaps_hard_reg_set_p): Now static.  Change return
4733         type and signature to match function type expected by walk_tree.
4734         (tree_overlaps_hard_reg_set): New function.
4735         (decl_conflicts_with_clobbers_p): Rename to:
4736         (tree_conflicts_with_clobbers_p).  Take HARD_REG_SET * argument.
4737         Use tree_overlaps_hard_reg_set.  Changed caller.
4738         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
4739         decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
4740         * cris.c (cris_md_asm_clobbers): Likewise.
4741
4742 2006-02-09  Bernd Schmidt  <bernd.schmidt@analog.com>
4743
4744         * reload1.c (emit_input_reload_insns): Delete code that tries to
4745         inherit using find_equiv_reg.
4746
4747 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4748
4749         * c-common.h (flag_const_strings): Don't declare.
4750         * c-common.c (flag_const_strings): Remove.
4751         * c.opt (fconst_strings): Remove.
4752         * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
4753         <OPT_Wwrite_strings>: Don't set flag_const_strings.
4754         (c_common_init_options): Don't set flag_const_strings.
4755         * doc/invoke.texi (-fno-const-strings): Remove documentation.
4756
4757 2006-02-09  Richard Earnshaw  <richard.earnshaw@arm.com>
4758
4759         * arm.md (tlobits_cbranch): New pattern.
4760         * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
4761         testing a single bit.
4762
4763 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
4764
4765         PR tree-opt/26179
4766         * tree-ssa-pre.c (create_component_ref_by_pieces):
4767         Handle RETURN_DECL like VAR_DECL.
4768
4769 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
4770
4771         PR middle-end/26134
4772         * fold-const.c (fold_indirect_ref_1): Fold
4773         "*(foo *)&complexfoo" to "__real__ complexfoo"
4774         and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
4775
4776 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
4777
4778         * tree-flow-inline.h (var_can_have_subvars):
4779         Volatile variables should not have subvariables.
4780
4781 2006-02-09  Diego Novillo  <dnovillo@redhat.com>
4782
4783         PR 26180
4784         * tree-vrp.c (vrp_int_const_binop): Detect overflow when
4785         multiplying unsigned values.
4786         Tidy comments.
4787
4788 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4789
4790         * config/sparc/sparc.c (tls_call_delay): Fix oversight.
4791
4792 2006-02-08  Jason Merrill  <jason@redhat.com>
4793
4794         PR c++/25979
4795         * tree.def: Elaborate on difference from MODIFY_EXPR.
4796         * doc/c-tree.texi (INIT_EXPR): Likewise.
4797         * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
4798         (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
4799         (gimplify_target_expr): Likewise.
4800         (gimplify_cond_expr): Remove target handling.
4801         (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
4802         (gimplify_expr): Clobber it here.
4803         (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
4804         Do return slot optimization if we have an INIT_EXPR.
4805
4806         PR tree-opt/24365
4807         * tree-inline.c (declare_return_variable): Also clear
4808         DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
4809
4810         PR c++/16405
4811         * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
4812
4813         PR middle-end/22439
4814         * gimplify.c (gimplify_one_sizepos): Fix typo.
4815
4816 2006-02-08  Jeff Law  <law@redhat.com>
4817
4818         PR tree-optimization/21417
4819         * tree-ssa-threadedge.c (thread_across_edge): Reject threading
4820         across a backedge if the control statement at the end of the
4821         block is data dependent on other statements in the same block.
4822         (record_temporary_equivalences_from_stmts): Remove over-conservative
4823         test for threading across backedges.
4824
4825         * tree-ssa-dce.c (remove_dead_statement): When removing a dead
4826         control statement, handle all three special cases in the same
4827         manner as they all have the same desired solution.  No longer
4828         special case edge flag updating when the post dominator is
4829         the exit block.
4830
4831 2006-02-08  Roger Sayle  <roger@eyesopen.com>
4832
4833         * tree.def (CHAR_TYPE): Remove.
4834         * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
4835         * dwarf2out.c (base_type_die, is_base_type): Likewise.
4836         (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
4837         (gen_string_type_die): Delete unreachable function.
4838
4839         * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
4840         * tree.c (build_int_cst_wide, type_contains_placeholder_1,
4841         type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
4842         * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
4843         * builtins.c (type_to_class): Likewise.
4844         * fold-const.c (fold_convert, build_range_check,
4845         merge_ranges): Likewise.
4846         * expr.c (count_type_elements): Likewise.
4847         * c-pretty-print.c (pp_c_type_specifier): Likewise.
4848         * stor-layout.c (layout_type): Likewise.
4849         * ipa-type-escape.c (type_to_consider): Likewise.
4850         * gimplify.c (omp_firstprivatize_type_sizes,
4851         gimplify_type_sizes): Likewise.
4852         * explow.c (promote_mode): Likewise.
4853         * tree-sra.c (is_sra_scalar_type): Likewise.
4854         * varasm.c (output_constant): Likewise.
4855         * tree-inline.c (remap_type_1): Likewise.
4856         * convert.c (convert_to_pointer, convert_to_real,
4857         convert_to_integer, convert_to_complex): Likewise.
4858
4859 2006-02-08  Daniel Berlin  <dberlin@dberlin.org>
4860
4861         * df-scan.c (df_def_record_1): A set destination may
4862         be a parallel regardless of mode.
4863
4864 2006-02-08  Roger Sayle  <roger@eyesopen.com>
4865
4866         PR target/22209
4867         * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
4868         * config/mips/_tilib.c: Remove.
4869         * config/fixtfdi.c: New libgcc source file.
4870         * config/fixunstfdi.c: New source file.
4871         * config/floatditf.c: New source file.
4872         * config/floatunditf.c: New souce file.
4873         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
4874         files above instead of config/mips/_tilib.c.
4875         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
4876
4877 2006-02-08  Jeff Law  <law@redhat.com>
4878
4879         PR tree-optimization/26169
4880         * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
4881         threading jumps.
4882
4883 2006-02-08  Zdenek Dvorak <dvorakz@suse.cz>
4884
4885         * df.h (DF_REG_SIZE): Return the length of the initialized
4886         part of the array.
4887
4888 2006-02-08  Nathan Sidwell  <nathan@codesourcery.com>
4889
4890         * gcc/config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
4891         __muldf3): Return a correctly signed zero.
4892
4893 2006-02-08  Paolo Bonzini  <bonzini@gnu.org>
4894
4895         * passes.c (register_one_dump_file): Accept the current properties
4896         instead of pass number.  Adjust call to dump_register.  Remove
4897         duplicated code.
4898         (register_dump_files): Now a wrapper around...
4899         (register_dump_files_1): ... this one.  Do not modify the pass
4900         structure.
4901         (next_pass_1): Cosmetic fix.
4902         (execute_todo): Keep second parameter only.  Use curr_properties
4903         instead of fetching it from the pass structure.  Check and set
4904         last_verified.
4905         (execute_one_pass): Handle TODO_set_props.  Use curr_properties
4906         instead of fetching it from the pass structure.  Fix calls to
4907         execute_todo.  Update curr_properties and initialize .vcg RTL dump
4908         after running the pass.  Reset last_verified.
4909         * tree-dump.c (dump_files): Renumber consecutively.  Put .cgraph dump
4910         at the beginning.
4911         (FIRST_AUTO_NUMBERED_DUMP): New.
4912         (dump_register): Remove "num" parameter, assign it within the
4913         function.
4914         (get_dump_file_name): Modify template for dumps.
4915         * tree-dump.h (dump_register): Adjust prototype.
4916         * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
4917         (PROP_trees): Add PROP_gimple_lomp.
4918         (TODO_set_props): New.
4919         * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
4920         * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
4921         * cfgexpand.c (pass_expand): Destroy PROP_trees.
4922
4923 2006-02-08  Jakub Jelinek  <jakub@redhat.com>
4924
4925         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
4926         (sparc64-*-linux*): Likewise.
4927         * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
4928         * config/sparc/t-linux: New file.
4929         * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
4930         __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
4931         (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
4932         -m32 -mlong-double-128.
4933
4934         * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
4935         * config/alpha/t-linux: New file.
4936         * config/alpha/libgcc-alpha-ldbl.ver: New file.
4937
4938         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
4939         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
4940         (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
4941         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
4942         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
4943         (CPP_ARCH32_SPEC): Remove.
4944
4945 2006-02-07  Uttam Pawar  <uttamp@us.ibm.com>
4946
4947         PR tree-optimization/26145
4948         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
4949         bbs pointer.
4950
4951 2006-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4952
4953         PR target/26109
4954         * pa.c (attr_length_indirect_call): Don't return length 8 for distances
4955         >= 240000 when generating code for SOM runtime.
4956         (output_indirect_call): Don't use "b,l" instruction for indirect calls
4957         to $$dyncall when generating code for SOM runtime..
4958
4959 2006-02-07  Dirk Mueller  <dmueller@suse.com>
4960
4961         PR c++/18150
4962         * doc/invoke.texi (-Wsequence-point): Update documentation
4963         that -Wsequence-point is implemented for C++ as well.
4964
4965 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4966
4967         * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
4968         * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
4969         (LIB_SPEC): Likewise.
4970         * doc/invoke.texi (SPARC options): Document -pthread.
4971
4972 2006-02-07  Geoffrey Keating  <geoffk@apple.com>
4973
4974         * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
4975         PIC addresses.
4976
4977 2006-02-07  Roger Sayle  <roger@eyesopen.com>
4978
4979         * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
4980         Correct comment describing BOOLEAN_TYPE.
4981
4982 2006-02-07  Dirk Mueller  <dmueller@suse.com>
4983
4984         * c.opt: C++ frontend supports -Wdiv-by-zero.
4985         * c-opts.c (c_common_handle_option): Remove dead case.
4986
4987 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4988
4989         * configure.ac (TLS assembler check): Do not enable TLS by
4990         default on SPARC/Solaris before version 10.
4991         * configure: Regenerate.
4992
4993 2006-02-07  David Edelsohn  <edelsohn@gnu.org>
4994
4995         * doc/invoke.texi (xl-compat): Document conversion and support
4996         routine names.
4997
4998 2006-02-07  Jeff Law  <law@redhat.com>
4999
5000         * tree-vrp.c (find_conditional_asserts): Update comments.
5001         (simplify_stmt_for_jump_threading): New.
5002         (identify_jump_threads, finalize_jump_threads): New.
5003         (vrp_finalize): Call identify_jump_threads.
5004         (execute_vrp): Call finalize_jump_threads.
5005         * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
5006         (vrp_element, vrp_data, vrp_element_p): Remove.
5007         (vrp_hash_elt, vrp_variables_stack): Remove.
5008         (vrp_hash, vrp_eq, record_range): Remove.
5009         (simplify_cond_and_lookup_avail_expr): Remove.
5010         (extract_range_from_cond): Remove.
5011         (thread_across_edge): Relocated into tree-ssa-threadedge.c.
5012         (simplify_stmt_for_jump_threading): New.
5013         (dom_thread_across_edge): New wrapper.
5014         (tree_ssa_dominator_optimize): No longer initialize or
5015         finalize any of the VRP datastructures.  Remove iteration
5016         step and simplify as a result of removal of iteration step.
5017         (pass_dominator): Perform a cfg cleanup after DOM.
5018         (dom_opt_finalize_block): Use the new common routines
5019         for threading jumps.  Simplify stack management slightly.
5020         No longer need to unwind VRP state.
5021         (record_equivalences_from_incoming_edge): No longer record
5022         VRP information.
5023         (eliminate_redundant_computations): No longer call
5024         simplify_cond_and_lookup_avail_expr.
5025         * tree-flow.h (potentially_threadable_block): Prototype.
5026         (thread_across_edge): Likewise.
5027         * Makefile.in (OBJS-common):  Add tree-ssa-threadedge.o
5028         (tree-ssa-threadedge.o): Add dependencies.
5029         * tree-ssa-threadedge.c: New file.
5030         * passes.c (init_optimization_passes): Merge PHIs before
5031         calling VRP.  Run VRP again late in the SSA optimization pipeline.
5032
5033 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5034
5035         * df-core.c (df_set_blocks): Do not dereference function pointers.
5036         (df_finish1): Likewise.
5037         (df_hybrid_search_forward): Likewise.
5038         (df_hybrid_search_backward): Likewise.
5039         (df_iterative_dataflow): Likewise.
5040         (df_analyze_problem): Likewise.
5041         (df_compact_blocks): Likewise.
5042         (df_dump): Likewise.
5043         * df-scan.c (df_rescan_blocks): Likewise.
5044         (df_record_entry_block_defs): Likewise.
5045
5046         * genconditions.c (write_conditions): Guard the definition of
5047         'insn_conditions' with the check on GCC version.
5048         (write_writer): Guard the traversal 'insn_conditions' with
5049         the check on GCC version.
5050
5051 2006-02-07  Richard Guenther  <rguenther@suse.de>
5052
5053         PR c++/26140
5054         Revert
5055         2006-01-30  Richard Guenther  <rguenther@suse.de>
5056         PR c++/23372
5057         * gimplify.c (gimplify_target_expr): Handle easy cases
5058         without creating a temporary.
5059
5060 2006-02-07  Pete Steinmetz  <steinmtz@us.ibm.com>
5061
5062         * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
5063         use of float in probability computations.  Use edge probabilities
5064         in place of statically computed probabilities.
5065         (min_spec_prob): New static variable.
5066         (schedule_insns): Initialize it.
5067         (GET_SRC_PROB): Removed.
5068         * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
5069
5070 2006-02-07  Alexandre Oliva  <aoliva@redhat.com>
5071
5072         PR debug/24444
5073         * config/ia64/unwind-ia64.c: Revert last change.
5074         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
5075         (INCOMING_FRAME_SP_OFFSET): Define.
5076
5077 2006-02-06  Roger Sayle  <roger@eyesopen.com>
5078
5079         * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
5080
5081 2006-02-07  Ben Elliston  <bje@au.ibm.com>
5082
5083         * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
5084         (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
5085         (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
5086         (ix86_return_in_memory): Handle TDmode.
5087         (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
5088         (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
5089
5090 2006-02-06  Richard Sandiford  <richard@codesourcery.com>
5091
5092         * reorg.c (dbr_schedule): Use dump_file instead of file.
5093
5094 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
5095
5096         PR target/25917
5097         * config/ia64/predicates.md (extr_len_operand): New predicate.
5098         * config/ia64/ia64.md (extv): Tighten constraints.
5099         (extzv): Ditto.
5100         (*tbit_and_2): Ditto.
5101         (*tbit_and_3): Ditto.
5102         (*tbit_or_2): Ditto.
5103         (*tbit_or_3): Ditto.
5104         (*bit_zero): Ditto.
5105         (*bit_one): Ditto.
5106
5107 2006-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
5108
5109         PR target/23359
5110         * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
5111
5112 2006-02-06  Zdenek Dvorak <dvorakz@suse.cz>
5113
5114         * tree-vrp.c (execute_vrp): Do not pass dump argument to.
5115         loop_optimizer_init and loop_optimizer_finalize
5116         * tree-ssa-sink.c (execute_sink_code): Ditto.
5117         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
5118         * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
5119         tree_ssa_loop_done): Ditto.
5120         * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
5121         * sched-ebb.c: Include output.h.
5122         (schedule_ebbs): Do not use dump argument.
5123         * value-prof.h (struct profile_hooks): Remove profile_dump_file.
5124         * loop.c (loop_dump_stream): Removed.
5125         (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
5126         argument.
5127         (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
5128         emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
5129         final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
5130         loop_iterations, strength_reduce, record_biv, record_giv,
5131         final_giv_value, check_final_value, check_ext_dependent_givs,
5132         combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
5133         try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
5134         dump_file instead of loop_dump_stream.
5135         * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
5136         argument dump_file.
5137         * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
5138         dump argument.
5139         * flow.c (life_analysis, rest_of_handle_life): Ditto.
5140         * haifa-sched.c: Include output.h
5141         (schedule_insns, sched_init): Do not use dump argument.
5142         * mode-switching.c (optimize_mode_switching): Ditto.
5143         * modulo-sched.c (stats_file): Removed.
5144         (print_node_sched_params): Do not call argument dump_file.
5145         (sms_schedule_by_order, loop_canon_p, sms_schedule,
5146         rest_of_handle_sms): Do not use dump argument.  Use dump_file instead
5147         of stats_file.
5148         * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
5149         use dump argument.
5150         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
5151         rtl_loop_init, rtl_loop_done): Ditto.
5152         * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
5153         * predict.c (combine_predictions_for_bb, tree_estimate_probability):
5154         Ditto.
5155         * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
5156         * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
5157         * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
5158         rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
5159         * emit-rtl.c (renumber_insns): Ditto.
5160         * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
5161         expand_gimple_basic_block, tree_expand_cfg): Ditto.
5162         * regclass.c (regclass): Ditto.
5163         * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
5164         remove_ssa_form, rewrite_out_of_ssa): Ditto.
5165         * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
5166         convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
5167         Ditto.
5168         * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
5169         * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
5170         to regclass.
5171         * gcse.c (gcse_file, debug_stderr): Removed.
5172         (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
5173         rest_of_handle_gcse): Do not use dump argument.
5174         (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
5175         one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
5176         pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
5177         compute_code_hoist_vbeinout, compute_code_hoist_data,
5178         one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
5179         compute_store_table, build_store_vectors, insert_insn_start_bb,
5180         insert_store, remove_reachable_equiv_notes, replace_store_insn,
5181         store_motion): Use dump_file instead of gcse_file.
5182         * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
5183         * profile.c (profile_dump_file): Removed.
5184         (branch_prob): Use dump_file instead of profile_dump_file.
5185         * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
5186         dump_file.
5187         * tree-ssa-copy.c (dump_copy_of): Ditto.
5188         * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
5189         dump file to life_analysis.
5190         * bt-load.c (branch_target_load_optimize): Ditto.
5191         * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
5192         renumber_insns.
5193         * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
5194         regclass, dbr_schedule): Declaration changed.
5195         * sched-int.h (sched_init): Declaration changed.
5196         * tree-profile.c (tree_profile_dump_file): Removed.
5197         (tree_profile_hooks): Removed profile_dump_file hook.
5198         * rtl-profile (rtl_profile_dump_file): Removed.
5199         (rtl_profile_hooks): emoved profile_dump_file hook.
5200         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
5201         changed.
5202         * c-gimplify.c (c_genericize): Do not call local variable dump_file.
5203         * tree-cfg.c (build_tree_cfg): Ditto.
5204         * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
5205         * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
5206         Declaration changed.
5207         * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
5208         life_analysis and schedule_insns.
5209         * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
5210         life_analysis.
5211         * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
5212         dbr_schedule.
5213         * config/mips/mips.c (mips_reorg): Ditto.
5214         * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
5215         schedule_ebbs.
5216
5217 2006-02-06  Aldy Hernandez  <aldyh@redhat.com>
5218
5219         * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
5220         (s390_mangle_fundamental_type): New.
5221         * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5222         Define.
5223
5224         * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
5225         (alpha_mangle_fundamental_type): New.
5226         * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5227         Define.
5228
5229         * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5230         Define.
5231         * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
5232         Define.
5233         * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
5234         (sparc_mangle_fundamental_type): New.
5235
5236 2006-02-06  Jakub Jelinek  <jakub@redhat.com>
5237
5238         * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
5239         (s390x-*-linux*): Likewise.
5240         * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
5241         * config/s390/t-linux: New file.
5242
5243 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
5244
5245         * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
5246         sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
5247
5248 2006-02-06  Daniel Berlin  <dberlin@dberlin.org>
5249
5250         * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
5251         (ANTIC_SAFE_LOADS): New macro.
5252         (find_or_generate_expression): Add prototype.
5253         (set_contains_value): Allow null set for sake of not always having
5254         to allocate ANTIC_SAFE_LOADS.
5255         (phi_translate): Move placement of AGGREGATE_TYPE_P check.
5256         Allow COMPONENT_REF too.
5257         (valid_in_set): Allow COMPONENT_REF.
5258         Check ANTIC_SAFE_LOADS too.
5259         (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
5260         (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
5261         rename.
5262         (can_PRE_operation): Add COMPONENT_REF.
5263         (create_component_ref_by_pieces): New function.
5264         (create_expression_by_pieces): Use create_component_ref_by_pieces.
5265         (insert_aux): Move AGGREGATE_TYPE_P check here.
5266         (compute_avail): Set bb local stmt uids.
5267         (pass_pre): Use TODO_update_ssa_only_virtuals.
5268
5269 2006-02-06  Ben Elliston  <bje@au.ibm.com>
5270
5271         * configure.ac: Unconditionally disable decimal float by default.
5272         * configure: Regenerate.
5273
5274 2006-02-06  Ben Elliston  <bje@au.ibm.com>
5275
5276         * read-rtl.c (read_name): Terminate reading on EOF.
5277
5278 2006-02-06  Ben Elliston  <bje@au.ibm.com>
5279
5280         * dfp.c (decimal_real_arithmetic): Change second argument type
5281         from int to enum tree_code. Do not always return true, but now
5282         return result of any call to decimal_do helper functions.
5283         * dfp.h (decimal_real_arithmetic): Update prototype.
5284
5285 2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5286
5287         * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
5288
5289 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
5290
5291         PR tree-opt/25251
5292         * tree-cfg.c (cleanup_dead_labels): Also don't remove
5293         forced labels.
5294
5295 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
5296
5297         * tree-vrp.c (cfg_loops): Removed.
5298         (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
5299         Use current_loops instead of cfg_loops.  Pass flags to
5300         loop_optimizer_init.
5301         * cfgloopmanip.c (fix_loop_structure): Update only available
5302         information.
5303         * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
5304         loop_optimizer_init.
5305         * modulo-sched.c (build_loops_structure): Removed.
5306         (sms_schedule): Use loop_optimizer_init.
5307         * loop-init.c (loop_optimizer_init): Use flags to determine
5308         which properties of loops to prepare.
5309         (rtl_loop_init): Pass flags to loop_optimizer_init.
5310         * tree-ssa-sink.c (execute_sink_code): Ditto.
5311         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
5312         * tree-ssa-pre.c (init_pre): Ditto.
5313         * cfgloop.h (LOOPS_NORMAL): New.
5314         (loop_optimizer_init): Declaration changed.
5315
5316 2006-02-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5317
5318         * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
5319         * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
5320         pa/t-pa.
5321         * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
5322         pa/t-pa.
5323         * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
5324         pa/x-ada.
5325         * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
5326         * pa/t-pa64: Delete quadlib.c rule.
5327         * pa/x-ada: Revert last change.
5328         * pa/t-pa: Revert last change.  Delete quadlib.c rule.
5329
5330 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
5331
5332         PR rtl-optimization/26087
5333         * rtlanal.c (canonicalize_condition): Do not cross basic block
5334         boundaries.
5335
5336 2006-02-04  Alexandre Oliva  <aoliva@redhat.com>
5337
5338         PR debug/24444
5339         * config/ia64/ia64.c: Include debug.h.
5340         (MAX_ARTIFICIAL_LABEL_BYTES): New.
5341         (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
5342         (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
5343         (process_epilogue, process_set, process_for_unwind_directive):
5344         Output unwind info only if requested.  Add CFA info if requested.
5345         Add new arguments as needed.  Adjust callers.
5346         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
5347         incorrect default.
5348         (DWARF2_FRAME_INFO): Define to zero.
5349         * config/ia64/unwind-ia64.c: Remove code that compensated for
5350         the CFA offset error fixed above.
5351         * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
5352         * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
5353         (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
5354         -funwind-tables and -fexceptions to enable frame info.
5355         (dwarf2out_frame_init): Define initial CFA even if
5356         DWARF2_UNWIND_INFO is disabled.  Call initial_return_save if
5357         DWARF2_UNWIND_INFO is nonzero, not just defined.
5358         (dwarf2out_frame_finish): Output non-EH call frame info only
5359         if DWARF2_FRAME_INFO is nonzero.
5360         (convert_cfa_to_loc_list,
5361         compute_frame_pointer_to_cfa_displacement): Define even if
5362         unwind info is not supported.
5363         (gen_subprogram_die): Use the above unconditionally.  Remove
5364         legacy alternate code.
5365         * toplev.c (compile_file): Compile in call to
5366         dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
5367         (lang_dependent_init): Ditto for dwarf2out_frame_init.
5368
5369 2006-02-04  David Edelsohn  <edelsohn@gnu.org>
5370             Jakub Jelinek  <jakub@redhat.com>
5371
5372         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
5373         IBM extended float format long double as "g" on powerpc*-linux.
5374
5375 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5376
5377         PR target/25926
5378         * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
5379         * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
5380
5381 2006-02-03  Jason Merrill  <jason@redhat.com>
5382
5383         PR c++/25979
5384         * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
5385
5386         PR middle-end/25977
5387         * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
5388         on the return slot if it's an NRV.
5389
5390 2006-02-03  Zdenek Dvorak <dvorakz@suse.cz>
5391
5392         * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
5393         (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
5394         rewrite_use): Do not handle USE_OUTER.
5395         (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
5396         add_iv_outer_candidates, may_replace_final_value,
5397         determine_use_iv_cost_outer, rewrite_use_outer): Removed.
5398         (find_interesting_uses_op): Functionality of
5399         find_interesting_uses_outer_or_nonlin moved here.
5400         (find_interesting_uses_outside): Use find_interesting_uses_op.
5401
5402 2006-02-03  Alan Modra  <amodra@bigpond.net.au>
5403
5404         PR target/25960
5405         * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
5406
5407 2006-02-03  Andreas Krebbel  <krebbel1@de.ibm.com>
5408             Ulrich Weigand  <uweigand@de.ibm.com>
5409
5410         PR target/25864
5411         * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
5412         "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
5413         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
5414         * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
5415         and dxr fields.
5416         (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
5417         (s390_rtx_costs): Use the new fields to calculate rtx costs.
5418         (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
5419         Define secondary reloads for TFmode moves.
5420         (constant_modes): Add TFmode.
5421         (NR_C_MODES): Set to 8.
5422         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
5423         builtin define.
5424         (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
5425         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
5426         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
5427         CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
5428         * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
5429         fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
5430         (FPR mode macro): Add TFmode.
5431         (DSF mode macro): New.
5432         (<de>, <dee> mode attributes): Removed.
5433         (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
5434         ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
5435         "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
5436         "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
5437         "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
5438         "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
5439         "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
5440         "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
5441         "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
5442         "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
5443         "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
5444         "*negabs<mode>2", "sqrt<mode>2"):
5445         Changed <de> to <xde>. R constraint replaced by <Rf>.
5446         ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
5447         <Rf>.
5448         ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
5449         ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
5450         ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
5451         splitters.
5452         ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
5453         "extenddftf2", "extendsftf2"): New expanders.
5454         ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
5455         "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
5456         "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
5457         * config/s390/s390.opt (mlong-double-128, mlong-double-64):
5458         New options.
5459         * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
5460         * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
5461         __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
5462         __floatditf): Add a GCC_4.1.0 symbol version tag.
5463         * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
5464         the new options.
5465
5466 2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>
5467
5468         PR target/25377
5469         * config/i386/i386.c (ix86_function_ok_for_sibcall):
5470         Use targetm.binds_local_p instead of TREE_PUBLIC.
5471
5472 2006-02-02  Roger Sayle  <roger@eyesopen.com>
5473
5474         * tree.h (TYPE_STRING_FLAG): Document that this field may be used
5475         on INTEGER_TYPEs to indicate that it denotes a character type.
5476         * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
5477         signed_char_type_node, unsigned_char_type_node and char_type_node.
5478         * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
5479         INTEGER_TYPE.  Use TYPE_STRING_FLAG to decide whether to emit
5480         a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
5481
5482 2006-02-02  Zdenek Dvorak <dvorakz@suse.cz>
5483             Daniel Berlin  <dberlin@dberlin.org>
5484
5485         * tree-tailcall.c (arg_needs_copy_p): New function.
5486         (eliminate_tail_call): Use arg_needs_copy_p.
5487         (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
5488         (add_virtual_phis): New function.
5489
5490 2006-02-02  Jakub Jelinek  <jakub@redhat.com>
5491
5492         * config/sparc/sparc.c (sparc_output_scratch_registers): Use
5493         #ignore instead of #scratch for %g7 .register directive.
5494
5495 2006-02-02  Andreas Tobler  <a.tobler@schweiz.ch>
5496
5497         * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
5498         object files.
5499
5500 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
5501
5502         * flow.c (calculate_global_regs_live): Assert that there aren't any
5503         EDGE_FAKE edges.
5504
5505 2006-02-02  Paolo Bonzini  <bonzini@gnu.org>
5506
5507         * tree-flow-inline.h (bsi_after_labels): Rewrite, return
5508         what its name says.
5509         * lambda-code.c (perfect_nestify): Use bsi_insert_before on
5510         bsi_after_labels iterator.
5511         * tree-if-conv.c (find_phi_replacement_condition,
5512         replace_phi_with_cond_modify_expr): Likewise.
5513         * tree-scalar-evolution.c (scev_const_prop): Likewise.
5514         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
5515
5516 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
5517
5518         * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
5519
5520 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
5521
5522         PR 25990
5523         * tree-cfg.c (move_block_to_fn): Clear out the basic block
5524         array after growing it.
5525
5526 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
5527
5528         PR middle-end/24901
5529         * fold-const.c (fold_checksum_tree): Change type of buf.
5530
5531 2006-02-01  Bernd Schmidt  <bernd.schmidt@analog.com>
5532
5533         * reload.c (push_secondary_reload): Initialize t_icode.
5534
5535 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
5536
5537         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
5538         -msoft-float -mlong-double-128 only issue a warning, but don't
5539         swich to DFmode long double.
5540
5541 2006-02-01  Hans-Peter Nilsson  <hp@axis.com>
5542
5543         * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
5544         has a constant equivalent, iterate over equivalents for arg0,
5545         calling simplify_relational_operation and if there's a result
5546         cheaper than X, apply fold_rtx and return the result.
5547
5548 2006-02-01  Jan Hubicka  <jh@suse.cz>
5549
5550         * opts.c (no_unit_at_a_time_default): New global variable.
5551         (decode_options): Use it.
5552         * opts.h (no_unit_at_a_time_default): Declare.
5553
5554 2006-02-01  Paul Brook  <paul@codesourcery.com>
5555
5556         * function.c (assign_parm_setup_reg): Use function argument promotion
5557         rules.
5558         * expr.c (expand_expr_real_1): Use function argument promotion rules
5559         for PARM_DECLs.
5560
5561 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
5562
5563         * gcc.c (process_command): Change j to 'unsigned int'.
5564
5565 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
5566
5567         PR middle-end/26001
5568         * expr.c (expand_expr_real_1) <case ARRAY_REF>:
5569         Use the corrected index for the character
5570         out of the string constant.
5571
5572 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
5573
5574         * mode-switching.c (optimize_mode_switching): Fix size
5575         allocated for bb_info[n_entities].
5576
5577 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
5578
5579         * gcc.c (main): Correct type that is allocated for
5580         explicit_link_files.
5581
5582 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
5583
5584         * config/s390/s390.c (init_alignment_context): Set
5585         ALIAS_SET_MEMORY_BARRIER on the MEM.
5586         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
5587
5588 2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>
5589
5590         PR middle-end/25933
5591         * loop-unroll.c (unroll_loop_runtime_iterations): Free
5592         dom_bbs pointer.
5593         * tree-ssa-live.c (type_var_init): Allocate bitmap after
5594         call to tpa_init.
5595
5596 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
5597
5598         * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
5599         * regrename.c: Ditto.
5600         * tree-ssa-loop-im.c: Ditto.
5601         * tree-dump.c: Ditto.
5602         * tree-complex.c: Ditto.
5603         * genrecog.c: Ditto.
5604         * tree-ssa-threadupdate.c: Ditto.
5605         * tracer.c: Ditto.
5606         * java/class.c: Ditto.
5607         * java/jcf-parse.c: Ditto.
5608         * java/resource.c: Ditto.
5609         * java/except.c: Ditto.
5610         * java/jvspec.c: Ditto.
5611         * java/jcf-write.c: Ditto.
5612         * java/jcf-path.c: Ditto.
5613         * java/gjavah.c: Ditto.
5614         * java/zextract.c: Ditto.
5615         * java/jcf-io.c: Ditto.
5616         * java/jcf.h: Ditto.
5617         * java/buffer.c: Ditto.
5618         * java/lang.c: Ditto.
5619         * java/parse-scan.y: Ditto.
5620         * java/lex.c: Ditto.
5621         * java/lex.h: Ditto.
5622         * cfgloopmanip.c: Ditto.
5623         * postreload-gcse.c: Ditto.
5624         * tree-ssa-loop-manip.c: Ditto.
5625         * postreload.c: Ditto.
5626         * tree-ssa-loop-ch.c: Ditto.
5627         * loop.c: Ditto.
5628         * ipa-cp.c: Ditto.
5629         * cppspec.c: Ditto.
5630         * diagnostic.c: Ditto.
5631         * final.c: Ditto.
5632         * genoutput.c: Ditto.
5633         * gcc.c: Ditto.
5634         * cfghooks.c: Ditto.
5635         * cfgloopanal.c: Ditto.
5636         * objc/objc-act.c: Ditto.
5637         * gcov.c: Ditto.
5638         * genextract.c: Ditto.
5639         * genautomata.c: Ditto.
5640         * pretty-print.c: Ditto.
5641         * genemit.c: Ditto.
5642         * cgraphunit.c: Ditto.
5643         * flow.c: Ditto.
5644         * df-scan.c: Ditto.
5645         * haifa-sched.c: Ditto.
5646         * dominance.c: Ditto.
5647         * dbxout.c: Ditto.
5648         * tree-ssa-loop-ivopts.c: Ditto.
5649         * df-core.c: Ditto.
5650         * mode-switching.c: Ditto.
5651         * modulo-sched.c: Ditto.
5652         * graph.c: Ditto.
5653         * ipa-pure-const.c: Ditto.
5654         * cse.c: Ditto.
5655         * fix-header.c: Ditto.
5656         * web.c: Ditto.
5657         * tree-stdarg.c: Ditto.
5658         * ipa-utils.c: Ditto.
5659         * loop-init.c: Ditto.
5660         * ipa-inline.c: Ditto.
5661         * cfganal.c: Ditto.
5662         * global.c: Ditto.
5663         * alloc-pool.c: Ditto.
5664         * dwarf2out.c: Ditto.
5665         * opts.c: Ditto.
5666         * genattrtab.c: Ditto.
5667         * tree-ssa-loop-ivcanon.c: Ditto.
5668         * predict.c: Ditto.
5669         * timevar.c: Ditto.
5670         * lcm.c: Ditto.
5671         * fortran/gfortranspec.c: Ditto.
5672         * regmove.c: Ditto.
5673         * local-alloc.c: Ditto.
5674         * langhooks.c: Ditto.
5675         * function.c: Ditto.
5676         * tree-vectorizer.c: Ditto.
5677         * gcse.c: Ditto.
5678         * ipa-type-escape.c: Ditto.
5679         * alias.c: Ditto.
5680         * tree-if-conv.c: Ditto.
5681         * profile.c: Ditto.
5682         * ipa.c: Ditto.
5683         * tree-data-ref.c: Ditto.
5684         * loop-unroll.c: Ditto.
5685         * treelang/treetree.c: Ditto.
5686         * calls.c: Ditto.
5687         * bt-load.c: Ditto.
5688         * ggc-common.c: Ditto.
5689         * except.c: Ditto.
5690         * coverage.c: Ditto.
5691         * cselib.c: Ditto.
5692         * tree-cfgcleanup.c: Ditto.
5693         * tree-ssa-pre.c: Ditto.
5694         * cfgcleanup.c: Ditto.
5695         * loop-invariant.c: Ditto.
5696         * loop-iv.c: Ditto.
5697         * ipa-prop.c: Ditto.
5698         * print-tree.c: Ditto.
5699         * conflict.c: Ditto.
5700         * ggc-page.c: Ditto.
5701         * sched-deps.c: Ditto.
5702         * regclass.c: Ditto.
5703         * tree-object-size.c: Ditto.
5704         * combine.c: Ditto.
5705         * bb-reorder.c: Ditto.
5706         * resource.c: Ditto.
5707         * var-tracking.c: Ditto.
5708         * cfgloop.c: Ditto.
5709         * df-problems.c: Ditto.
5710         * reg-stack.c: Ditto.
5711         * tlink.c: Ditto.
5712         * gccspec.c: Ditto.
5713         * sched-rgn.c: Ditto.
5714         * tree-ssa-structalias.c: Ditto.
5715         * tree-ssa-reassoc.c: Ditto.
5716         * config/darwin-c.c: Ditto.
5717         * config/darwin.c: Ditto.
5718         * config/arm/arm.c: Ditto.
5719         * cfgrtl.c: Ditto.
5720         * collect2.c: Ditto.
5721         * reload1.c: Ditto.
5722
5723 2006-01-31  Nicolas Pitre  <nico@cam.org>
5724
5725         * arm.md (smaxsi3): Make aware of smax_m1.
5726         (smax_m1): New.
5727
5728 2006-01-31  Nathan Sidwell  <nathan@codesourcery.com>
5729
5730         * gcc/config/m68k/lb1sf68.asm: Use moveq to load small constants.
5731
5732 2006-01-31  Richard Guenther  <rguenther@suse.de>
5733
5734         * doc/invoke.texi (-msselibm): Document.
5735         * target.h (expand_library_builtin): New target hook.
5736         * builtins.c (expand_builtin): Use expand_library_builtin.
5737         (default_expand_library_builtin): New function.
5738         * gcc.c (LINK_GCC_MATH_SPEC): Define.
5739         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
5740         (link_gcc_math_spec): Declare.
5741         (static_specs): Add link_gcc_math_spec.
5742         * expr.h (default_expand_library_builtin): Declare.
5743         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
5744         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
5745         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
5746         * config/i386/i386.opt (msselibm): New target option.
5747         * config/i386/i386.c (ix86_builtin_function_variants): New array.
5748         (ix86_init_sse_abi_builtins): New function.
5749         (ix86_expand_library_builtin): Likewise.
5750         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
5751         (override_options): Handle error conditions wrt -msselibm.
5752         (ix86_builtins): Add function codes for SSE2 ABI builtins.
5753         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
5754         * doc/extend.texi (__builtin_sse2_*): Document new target specific
5755         builtins.
5756
5757 2006-01-31  Richard Guenther  <rguenther@suse.de>
5758         Paolo Bonzini  <bonzini@gnu.org>
5759
5760         * doc/install.texi (--disable-libgcc-math): Document.
5761
5762 2006-01-30  Marcin Dalecki  <martin@dalecki.de>
5763
5764         * expr.h (expand_normal): new inline function.
5765         * builtins.c: use it, use EXPAND_NORMAL explicitely.
5766         * dojump.c: use it.
5767         * dwarf2out.c: use it.
5768         * expr.c: use it.
5769         * calls.c: use it.
5770         * expmed.c: use it.
5771         * except.c: use it.
5772         * config/sparc/sparc.c: use it.
5773         * config/i386/i386.c: use it.
5774         * config/rs6000/rs6000.c: use it.
5775         * config/arm/arm.c: use it.
5776         * config/mips/mips.c: use it.
5777         * stmt.c: use it, use EXPAND_NORMAL explicitely.
5778
5779 2006-01-30  Roger Sayle  <roger@eyesopen.com>
5780
5781         * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
5782         argv to the appropriate type.
5783
5784 2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
5785
5786         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
5787         unreachable code.
5788
5789 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
5790
5791         PR target/26018
5792         * config/s390/s390.c (struct machine_function): New flag
5793         decomposed_literal_pool_addresses_ok_p.
5794         (s390_reorg): Set it before final stage of literal pool transforms.
5795         (s390_decompose_address): Only accept displacements of the form
5796         (minus (label_ref ...) (label_ref ...)) if that flag is set.
5797
5798 2006-01-30  Carlos O'Donell  <carlos@codesourcery.com>
5799
5800         * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
5801         the comparison routine return.
5802
5803 2006-01-30  Michael Matz  <matz@suse.de>
5804
5805         * global.c (find_reg): Only evict for global regs.
5806         Take n_refs into account and dump more info.
5807
5808 2006-01-30  J"orn Rennecke <joern.rennecke@st.com>
5809
5810         PR target/14798:
5811         * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
5812         (pragma_trap, pragma_nosave_low_regs): Likewise.
5813         (current_function_anonymous_args): Likewise.
5814         (sh_deferred_function_attributes): New variable.
5815         (sh_deferred_function_attributes_tail): Likewise.
5816         (print_operand): For '@', look up trap_exit attribute.
5817         (calc_live_regs): Look up trapa_handler attribute.  For trapa
5818         handlers, save/restore fpscr, but don't do any other
5819         interrupt-specific saves.
5820         Don't save r0..r7 if the nosave_low_regs attribute is in effect.
5821         Fix check for partially saved registers to check for SHmedia.
5822         (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
5823         (sh_output_function_epilogue): Don't clear any of the removed
5824         variables.
5825         (sh_insert_attributes): Don't check pragma_interrupt.
5826         Insert deferred attributes.  Check that interrupt attribute is
5827         present for other attributes that require its presence.
5828         (sh_attribute_table): Add new attributes trapa_handler and
5829         nosave_low_regs.
5830         (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
5831         Don't check for pragma_interrupt.  Don't store argument.
5832         * sh.h (pragma_interrupt, sp_switch): Don't declare.
5833         (sh_deferred_function_attributes): Declare.
5834         (sh_deferred_function_attributes_tail): Likewise.
5835         * sh.md (sp_switch_1): Add operand.  Change generator caller.
5836         (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
5837         (*return_i): Don't use when trap_exit attribute is in effect.
5838         (*return_trapa): New insn pattern.
5839         * sh-c.c: New file.
5840         * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
5841         setting c_target_objs and cxx_target_objs.
5842         * t-sh: Add rule for sh-c.o.
5843
5844 2006-01-30  Richard Guenther  <rguenther@suse.de>
5845
5846         PR c++/23372
5847         * gimplify.c (gimplify_target_expr): Handle easy cases
5848         without creating a temporary.
5849
5850 2006-01-30  Nathan Sidwell  <nathan@codesourcery.com>
5851
5852         * vec.h (safe_grow): Remove duplicated line.
5853
5854 2006-01-29  Diego Novillo  <dnovillo@redhat.com>
5855
5856         PR 25874
5857         * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
5858         (expand_omp): ... here.
5859         (expand_omp_parallel): Only remove barriers for combined
5860         parallel+workshare constructs.
5861
5862 2006-01-29  Eric Botcazou  <ebotcazou@adacore.com>
5863
5864         Revert
5865
5866         2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5867         * tree.c (build_qualified_type): Chain the new type to the original
5868         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
5869         a POINTER_TYPE or a REFERENCE_TYPE respectively.
5870         (build_pointer_type_for_mode): Only return unqualified types.
5871         (build_reference_type_for_mode): Likewise.
5872
5873 2006-01-29  Gabriel Dos Reis  <gdr@integgrable-solutions.net>
5874
5875         * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
5876         * Makefile.in (CXX_COMPAT_WARN): Define.
5877         * configure: Regenerate.
5878
5879 2006-01-29  Dorit Nuzman  <dorit@il.ibm.com>
5880
5881         PR tree-opt/25911
5882         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
5883         to an if check.
5884
5885 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5886
5887         * toplev.c: Fix thinko.
5888
5889 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5890             Marcin Dalecki  <martin@dalecki.de>
5891
5892         * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
5893         (push_srcloc): Use XNEW.
5894         (init_asm_output, default_get_pch_validity): Use XNEWVEC.
5895
5896 2006-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
5897
5898         * df-core.c (df_set_blocks): Deleted all variable.
5899
5900 2006-01-28  Ian Lance Taylor  <ian@airs.com>
5901
5902         * cgraphunit.c (cgraph_assemble_pending_functions): Call
5903         cgraph_output_pending_asms.
5904
5905 2006-01-28  Zack Weinberg  <zackw@panix.com>
5906
5907         * c.opt: Add -W(no-)overlength-strings.
5908         * doc/invoke.texi: Document it.
5909         * c-opts.c (c_common_handle_option): -pedantic implies
5910         -Woverlength-strings, if not explicitly disabled already.
5911         (c_common_post_options): -Woverlength-strings defaults to off, and
5912         is always off for C++.
5913         * c-common.c (fix_string_type): Issue warning about strings longer
5914         than is portable only if warn_overlength_strings.  Rearrange code
5915         a little for clarity.
5916         * configure.in: Check for -Wno-overlength-strings as well before
5917         enabling -pedantic in stage 1.
5918         * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
5919         (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
5920
5921         * genconditions.c (write_header, write_one_condition)
5922         (write_conditions, write_writer): Consolidate very long strings
5923         that were broken up to fit in C89 portable limit.  Don't use
5924         printf when fputs will do.
5925
5926 2006-01-28  Adam Nemet  <anemet@caviumnetworks.com>
5927
5928         * combine.c (simplify_comparison <AND>): Check
5929         TRULY_NOOP_TRUNCATION before start using a subreg.
5930
5931         * config/mips/mips.md (*branch_zero<mode>,
5932         *branch_zero<mode>_inverted, *branch_equality<mode>,
5933         *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
5934         Remove mode check from comparisons.
5935
5936 2006-01-28  Kenneth Zadeck <zadeck@naturalbridge.com>
5937
5938         * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
5939
5940 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
5941
5942         * expmed.c (const_mult_add_overflow_p): Remove.
5943         * expr.h: Remove the prototype for const_mult_add_overflow_p.
5944
5945         * recog.c (validate_replace_rtx_subexp): Remove.
5946         * recog.h: Remove the prototype for
5947         validate_replace_rtx_subexp.
5948
5949         * integrate.h: Remove the prototype for
5950         copy_decl_for_inlining.
5951         * rtl.h: Remove the prototype for mark_constant_function.
5952         * tree-vectorizer.h: Remove the prototype for
5953         vect_strip_conversion.
5954
5955         * modulo-sched.c (create_partial_schedule,
5956         free_partial_schedule, reset_partial_schedule): Make them
5957         static.
5958
5959         * hooks.c (hook_bool_rtx_int_false): Remove.
5960         * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
5961
5962 2006-01-28  David Edelsohn  <edelsohn@gnu.org>
5963
5964         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
5965         and -mlong-double-128 are incompatible.
5966         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
5967         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
5968         (TARGET_LIBGCC2_CFLAGS): Define.
5969         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
5970         (TARGET_LIBGCC2_CFLAGS): Same.
5971         * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
5972
5973 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
5974
5975         PR c/19606.
5976         * c-typeck.c (build_binary_op): Perform implicit casts of
5977         operands before shortening them.
5978
5979         * cfgloopmanip.c (split_loop_bb): Remove.
5980         * cfgloop.h: Remove the prototype for split_loop_bb.
5981
5982         * cfgloop.c (flow_loop_outside_edge_p): Remove.
5983         * cfgloop.h: Remove the prototype for
5984         flow_loop_outside_edge_p.
5985
5986         * emit-rtl.c (init_virtual_regs): Make it static.
5987         * function.h: Remove the prototype for init_virtual_regs.
5988
5989         * recog.c (peephole2_optimize): Make it static.
5990         * recog.h: Remove the prototype for peephole2_optimize.
5991
5992 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
5993
5994         * df-scan.c (df_record_entry_block_defs): Check if
5995         INCOMING_RETURN_ADDR_RTX is defined.
5996
5997 2006-01-27  Daniel Berlin  <dberlin@dberlin.org>
5998             Kenneth Zadeck <zadeck@naturalbridge.com>
5999
6000         PR rtl-optimization/24762
6001         * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
6002         * targhooks.c (hook_void_bitmap): New hook prototype.
6003         * targhoohs.h (hook_void_bitmap): Ditto.
6004         * bitmap.h (bitmap_head_def): Moved to coretypes.h.
6005         * coretypes.h (bitmap_head_def): Moved from bitmap.h.
6006         * target.h (live_on_entry): New function pointer.
6007         * df-scan.c (df_all_hard_regs): Removed.
6008         (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
6009         (df_scan_free_internal): Added df->entry_block_defs.
6010         (df_scan_alloc): Ditto.
6011         (df_scan_dump): Ditto.
6012         (df_uses_record): Plumbed flag field properly thru calls.
6013         Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
6014         This part fixes PR24762.
6015         (df_bb_refs_record): Added code to make the frame and arg
6016         pointers live in EH blocks.
6017         (df_refs_record): Added call to df_record_entry_block_defs.
6018         (df_record_entry_block_defs): New function.
6019         * df-core.c: Added comments to describe new artifical defs.
6020         * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
6021         (entry_block_defs): New field in struct df.
6022         (df_all_hard_regs): Deleted.
6023         * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
6024         * df-problems.c (df_ru_bb_local_compute_process_def):
6025         Added code to handle artifical defs in the entry to a function.
6026         (df_ru_bb_local_compute): Ditto.
6027         (df_rd_bb_local_compute_process_def):  Ditto.
6028         (df_rd_bb_local_compute): Ditto.
6029         (df_lr_bb_local_compute): Ditto.
6030         (df_ur_bb_local_compute): Ditto.
6031         (df_urec_bb_local_compute):  Ditto.
6032         (df_chain_create_bb):  Ditto.
6033         (df_ur_local_finalize): Removed entry.
6034         (df_urec_init): Ditto.
6035         (df_urec_local_finalize): Ditto.
6036         (df_ri_bb_compute): Added detection of last use of pseudos.
6037         * Makefile.in (df-scan.o): Updated dependencies.
6038         * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
6039         * config/mips/mips.c (mips_set_live_on_entry): Added.
6040         * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
6041         for target hook.
6042         * dce.c (marked_insn_p): Added code to handle artifical defs.
6043
6044 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
6045
6046         * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
6047         intrinsic.
6048         (_mm_cvtsi128_si64): Likewise.
6049         (_mm_cvtsd_si64): Likewise.
6050         (_mm_cvttsd_si64): Likewise.
6051         (_mm_cvtsi64_sd): Likewise.
6052         (_mm_cvtsi64_si128): Likewise.
6053         * config/i386/mmintrin.h (_m_from_int64): Likewise.
6054         (_mm_cvtsi64_m64): Likewise.
6055         (_m_to_int64): Likewise.
6056         (_mm_cvtm64_si64): Likewise.
6057         * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
6058         (_mm_cvttss_si64): Likewise.
6059         (_mm_cvtsi64_ss): Likewise.
6060         (_mm_cvtss_f32): Likewise.
6061
6062 2006-01-27  Carlos O'Donell  <carlos@codesourcery.com>
6063
6064         * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
6065         for pragma redefine_extname.
6066
6067 2006-01-27  Jakub Jelinek  <jakub@redhat.com>
6068
6069         PR target/25864
6070         * libgcc-std.ver: Add GCC_4.1.0 symbol version.
6071         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
6072         -mno-minimal-toc to previous content.
6073         (bispecs): Remove goal.
6074         * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
6075         * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
6076         compatibility aliases on powerpc-*-*gnu*.
6077         * config/rs6000/libgcc-ppc-glibc.ver: New file.
6078         * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
6079         libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
6080         (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
6081         (ldblspecs): New goal.
6082         * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
6083         * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
6084         _df_to_tf.
6085         * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
6086         L_sf_to_tf or L_df_to_tf is defined.
6087
6088 2006-01-27  David Edelsohn  <edelsohn@gnu.org>
6089             Alan Modra  <amodra@bigpond.net.au>
6090
6091         PR target/25864
6092         * config/rs6000/linux.h (POWERPC_LINUX): Define.
6093         * config/rs6000/linux64.h (POWERPC_LINUX): Define.
6094         * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
6095         * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
6096         * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
6097         * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
6098         (rs6000_override_options): Initialize rs6000_ieeequad.
6099         Initialize TFmode format to ibm_extended_format if not
6100         TARGET_IEEEQUAD.
6101         (rs6000_handle_option): Accept -mabi= ibmlongdouble and
6102         ieeelongdouble.
6103         (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
6104         (rs6000_return_in_memory): Only return IEEEQUAD in memory.
6105         (function_arg_advance): IBM long double passed in two FPRs, not
6106         split.
6107         (function_arg): IBM long double passed in FPRs.
6108         (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
6109         (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
6110         Only multireg GPR aligned.
6111         (rs6000_init_libfuncs): Enable IBM long double functions if not
6112         IEEEQUAD.
6113         (rs6000_generate_compare): Use IBM long double compare if not
6114         TARGET_IEEEQUAD.
6115         * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
6116         (TARGET_IEEEQUAD): Define.
6117         (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
6118         not TARGET_IEEEQUAD.
6119         * config/rs6000/rs6000.md: Enable TFmode patterns if
6120         !TARGET_IEEEQUAD.
6121         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6122         * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
6123         and -mlong-double-128 are incompatible.
6124         * doc/invoke.texi (-mabi): Collect options together.  Add
6125         ibmlongdouble and ieeelongdouble.
6126
6127 2006-01-27  Richard Sandiford  <richard@codesourcery.com>
6128
6129         * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
6130         opaque type.
6131         * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
6132         * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
6133         (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
6134         * rtl.h (rtunion_def): Remove rt_ptr.
6135         (X0PTR): Delete.
6136         (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
6137         (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
6138         * config/i386/winnt.c (i386_pe_mark_dllexport)
6139         (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
6140
6141 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
6142
6143         * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
6144
6145 2006-01-26 Alexandre Oliva  <aoliva@redhat.com>
6146
6147         PR other/24829
6148         PR target/24831
6149         * gthr-dce.h: Do not gthrw-ify pthread_once_init,
6150         pthread_key_delete.  From John David Anglin.  gthrw-ify
6151         pthread_getunique_np only if it it's not a macro.  Delete
6152         UNUSED macro.
6153         (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
6154         __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
6155         __gthread_objc_condition_signal, __gthread_key_delete): Add
6156         "__attribute__ ((__unused__))" to unused arguments.
6157         (__gthread_recursive_mutex_init_function): Add missing return.
6158         * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
6159         gthr-posix95.h: Use macro-based approach for name redirection
6160         on targets missing weakref.
6161
6162 2006-01-26  Zack Weinberg  <zackw@panix.com>
6163
6164         * genconditions.c (write_header): In generated code, #ifdef out
6165         all includes and fake declarations, except includes of bconfig.h
6166         and system.h, unless GCC_VERSION >= 3001.  Do not include
6167         gensupport.h in any case.
6168         (write_conditions): Generate a definition of struct c_test.  Add
6169         a comment to the generated #endif.
6170         (write_one_condition): Escape backslashes in string too.
6171         (write_writer): Generated code must escape backslashes and quote
6172         marks (but not newlines) in the strings it writes.
6173         * Makefile.in (build/gencondmd.o): Update dependencies.
6174
6175 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
6176
6177         PR target/25961
6178         * Makefile.in (insn-automata.o): Add header file dependencies.
6179         * genautomata.c: Add includes.
6180
6181 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
6182
6183         PR target/25961
6184         * Makefile.in (insn-automata.o): Add -Wno-error flag.
6185
6186 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
6187
6188         * configure.ac: Expect target tools paths to be passed from the toplevel
6189         and wrap the detection into AS_SET_VAR_IF.  Extract side-effects out of
6190         AS_SET_VAR_IF.
6191         * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
6192
6193 2006-01-26  Alexandre Oliva  <aoliva@redhat.com>
6194
6195         PR c/25892
6196         * c.opt (Wpointer-sign): Init to -1.
6197         * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
6198         OPT_pedantic, to 0 otherwise.
6199         * doc/invoke.texi: Update.
6200
6201 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
6202
6203         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
6204         constants provided by 80387 instructions in the destination mode.
6205
6206 2006-01-26  Richard Guenther  <rguenther@suse.de>
6207             Andrew Pinski  <pinskia@physics.uc.edu>
6208
6209         PR tree-opt/21470
6210         partial PR tree-opt/17064
6211         * tree-ssa-structalias.c (intra_create_variable_infos):
6212         Create heap variables for incoming parameters if
6213         flag_argument_noalias > 1.
6214         (find_what_p_points_to): Look through default defs of
6215         parameter decls.
6216
6217 2006-01-26  Jeff Law  <law@redhat.com>
6218
6219         PR ada/25900
6220         * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
6221         with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
6222         within the VR_RANGE, use the VR_RANGE as the result, not the
6223         VR_ANTI_RANGE.
6224         (adjust_range_with_scev): Reject ranges from SCEV which are out of
6225         bounds for the type.
6226
6227 2006-01-26  Daniel Berlin  <dberlin@dberlin.org>
6228
6229         * tree-ssa-alias.c (maybe_create_global_var): Change
6230         subvar walking to an assertion that we don't have subvar'd variables.
6231
6232 2006-01-26  Andrew Pinski  <pinskia@physics.uc.edu>
6233
6234         PR C/25861
6235         * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
6236         Use a new variable, inner.  PARM_DECLs are always non-weak.
6237
6238 2006-01-26  Shantonu Sen  <ssen@opendarwin.org>
6239
6240         * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
6241         --disable-checking.
6242
6243 2006-01-26  Adam Nemet  <anemet@caviumnetworks.com>
6244
6245         * config/mips/mips.md (*clear_upper32): New combiner pattern.
6246
6247 2006-01-26  Richard Earnshaw  <richard.earnshaw@arm.com>
6248
6249         * arm.md (smaxsi3, sminsi3): Convert to define_expand.
6250         (smax_insn, smin_insn, smax_0, smin_0): New.
6251
6252 2006-01-26  Hans-Peter Nilsson  <hp@axis.com>
6253
6254         PR target/25947
6255         * config/cris/cris.c (cris_order_for_addsi3): New function.
6256         * config/cris/cris-protos.h: Prototype it.
6257         * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
6258         (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
6259         (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
6260         (split for "op.S1 [rx=rx+i],ry (swapped)")
6261         (split for "op(s|u).S1 [rx=rx+i],ry")
6262         (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
6263         Apply cris_order_for_addsi3 when generating addsi3 insns.
6264
6265 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
6266
6267         * tree.h (TREE_RANGE_CHECK): Fix range predicate.
6268         (TREE_BLOCK): Add call to EXPR_CHECK.
6269
6270 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
6271
6272         PR 25886
6273         * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
6274         * tree-pretty-print.c (dump_omp_clause): Extract from ...
6275         (dump_omp_clauses): ... here.
6276         (dump_generic_node): Handle OMP_CLAUSE.
6277         * tree.c (omp_clause_num_ops): New.
6278         (omp_clause_code_name): New.
6279         (tree_code_size): Handle OMP_CLAUSE.
6280         (tree_size): Likewise.
6281         (make_node): Document handling of OMP_CLAUSE.
6282         (tree_node_structure): Handle OMP_CLAUSE.
6283         (omp_clause_check_failed): New.
6284         (omp_clause_range_check_failed): New.
6285         (omp_clause_operand_check_failed): New.
6286         (build_omp_clause): New.
6287         (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
6288         * tree.h (enum omp_clause_code): Declare.
6289         (OMP_CLAUSE_SUBCODE_CHECK): Define.
6290         (OMP_CLAUSE_RANGE_CHECK): Define.
6291         (OMP_CLAUSE_ELT_CHECK): Define.
6292         (omp_clause_check_failed): Declare.
6293         (omp_clause_operand_check_failed): Declare.
6294         (omp_clause_range_check_failed): Declare.
6295         (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
6296         (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
6297         (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
6298         (OMP_CLAUSE_LASTPRIVATE): Likewise.
6299         (OMP_CLAUSE_IF_EXPR): Likewise.
6300         (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
6301         (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
6302         (OMP_CLAUSE_REDUCTION_CODE): Likewise.
6303         (OMP_CLAUSE_REDUCTION_INIT): Likewise.
6304         (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
6305         (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
6306         Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
6307         (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
6308         (OMP_CLAUSE_DEFAULT_KIND): Likewise.
6309         (OMP_CLAUSE_CODE): Define.
6310         (OMP_CLAUSE_SET_CODE): Define.
6311         (OMP_CLAUSE_CODE): Define.
6312         (OMP_CLAUSE_OPERAND): Define.
6313         (struct tree_omp_clause): Declare.
6314         (union tree_node): Add field 'omp_clause'.
6315         * treestruct.def (TS_OMP_CLAUSE): Define.
6316         * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
6317         OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
6318         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
6319         OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
6320         OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
6321         OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
6322         (OMP_CLAUSE): Define.
6323         * print-tree.c (print_node): Handle OMP_CLAUSE.
6324         * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
6325         * c-typeck.c: Likewise.
6326         * gimplify.c: Likewise.
6327         * c-omp.c: Likewise.
6328         * tree-nested.c: Likewise.
6329         * tree-inline.c: Likewise.
6330         * c-parser.c: Likewise.
6331         * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
6332         clauses.
6333
6334 2006-01-25  Roger Sayle  <roger@eyesopen.com>
6335
6336         PR rtl-optimization/25703
6337         * combine.c (try_combine): Handle zero_extract and strict_low_part
6338         of non-lowpart SUBREGs for constant reg_subword_p set optimization.
6339
6340 2006-01-25  Peter Bergner  <bergner@vnet.ibm.com>
6341
6342         * global.c: Fix comment typos.
6343
6344 2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
6345
6346         PR target/25758
6347         * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
6348         Use output_addr_const instead of assemble_name.
6349
6350 2006-01-25  Paolo Bonzini  <bonzini@gnu.org>
6351
6352         * Makefile.in (sched-vis.o): Update dependencies.
6353         * haifa-sched.c (sched_finish): Clear current_sched_info.
6354         * cfg.c (dump_bb_info): New, split from dump_flow_info.
6355         (dump_flow_info): Call it.
6356         * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
6357         a slim RTL dump.
6358         * basic-block.h (dump_bb_info): Declare.
6359         * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
6360         option, and apply options only for dump files whose TDF_RTL,
6361         TDF_TREE, or TDF_IPA bits match.
6362         * rtl.h: Declare new functions exported from sched-vis.c.
6363         * sched-vis.c: Enable also if scheduling is not used.
6364         (print_value): Print the mode of registers if not inside scheduling.
6365         (print_insn): Make it work outside the scheduler.  Beautify the output
6366         a bit.
6367         (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
6368
6369 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
6370
6371         * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
6372         * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
6373         a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
6374         depending on the value of CONSTANT_POOL_ADDRESS_P.
6375         * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
6376         SYMBOL_REF_DECL.
6377         * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
6378         rather than SYMBOL_REF_DECL.
6379         (rtx_constant_pool): Remove const_rtx_sym_htab.
6380         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
6381         (init_varasm_status): Don't initialize const_rtx_sym_htab.
6382         (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
6383         Remove handling of const_rtx_sym_htab.
6384         (find_pool_constant): Delete.
6385         (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
6386         rather than find_pool_constant.
6387         (get_pool_constant_for_function): Delete.
6388         (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
6389         find_pool_constant.
6390         * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
6391         (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
6392         (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
6393         (SYMBOL_REF_CONSTANT): New macro.
6394         (get_pool_constant_for_function): Delete.
6395         * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
6396         rather than SYMBOL_REF_DECL.
6397         (i386_pe_mark_dllimport): Likewise.
6398         * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
6399         rather than SYMBOL_REF_DECL.
6400         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6401         (machopic_indirect_call_target): Likewise.
6402
6403 2006-01-25  Eric Botcazou  <ebotcazou@adacore.com>
6404
6405         * flow.c (delete_noop_moves): Add missing EOL to dump message.
6406
6407 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
6408
6409         * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
6410
6411 2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
6412
6413         * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
6414
6415 2006-01-24  David Daney  <ddaney@avtrex.com>
6416
6417         PR java/25816
6418         * configure.ac (enable_tls): New enable option.
6419         (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
6420         * configure: Regenerate.
6421         * doc/install.texi (--enable-tls): Document new option.
6422         (--disable-tls): Ditto.
6423
6424 2006-01-24  Richard Henderson  <rth@redehat.com>
6425
6426         * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
6427         * alias.c (true_dependence): Respect it.
6428         (canon_true_dependence, write_dependence_p): Likewise.
6429         * builtins.c (get_builtin_sync_mem): Set it.
6430
6431 2006-01-25  Zdenek Dvorak <dvorakz@suse.cz>
6432
6433         * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
6434         efficient way.
6435
6436 2006-01-24  DJ Delorie  <dj@redhat.com>
6437
6438         * expmed.c (store_bit_field): Don't arbitrarily deny using insv
6439         for storing constants in single-bit bitfields.
6440
6441 2006-01-25  Ben Elliston  <bje@au.ibm.com>
6442
6443         * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
6444
6445 2006-01-24  Andrew Pinski  <pinskia@physics.uc.edu>
6446
6447         PR tree-opt/25860
6448         * tree-ssa-pre.c (phi_translate): Return NULL
6449         for AGGREGATE_TYPE's.
6450
6451 2006-01-24  Zack Weinberg  <zackw@panix.com>
6452
6453         * genautomata.c (process_state_for_insn_equiv_partition):
6454         Use xcalloc for insn_arcs_array.
6455         * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
6456         (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
6457
6458 2006-01-24  Richard Henderson  <rth@redhat.com>
6459
6460         * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
6461         update all callers.
6462
6463 2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
6464
6465         PR rtl-optimization/25890
6466         PR rtl-optimization/25905
6467         * combine.c (expand_compound_operation, expand_field_assignment):
6468         Fail if the bitfield's final position is out of bounds.
6469
6470 2006-01-24  Ian Lance Taylor  <ian@airs.com>
6471
6472         PR middle-end/25930
6473         * cgraphunit.c (cgraph_output_in_order): Don't clear
6474         cgraph_asm_nodes until after asm strings have been output.
6475
6476 2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
6477
6478         * fix-header.c (read_scan_file): Add new parameter imultilib when
6479         calling register_include_chains.
6480
6481 2006-01-23  Diego Novillo  <dnovillo@redhat.com>
6482
6483         * omp-low.c: Update documentation.
6484
6485 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
6486             Daniel Berlin  <dberlin@dberlin.org>
6487
6488         PR tree-opt/25315
6489         PR tree-opt/25857
6490         * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
6491         return from the function.
6492
6493 2006-01-22  Zack Weinberg  <zackw@panix.com>
6494
6495         * rtl.def (match_code): Add second argument.
6496         * genpreds.c (write_extract_subexp): New function.
6497         (write_match_code): Add path argument.  Use write_extract_subexp.
6498         (write_predicate_expr): Pass path to write_match_code.
6499         (mark_mode_tests): MATCH_CODE applied to a subexpression does
6500         not perform a mode test.
6501         * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
6502         a subexpression does not constrain the top-level code set.
6503         * read-rtl.c (read_rtx_variadic): New function.
6504         (read_rtx_1): Use it; allow AND and IOR to be variadic.
6505         * doc/md.texi: Document new notation.
6506         * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
6507         (cmpsi_operand): ... here, using new notation.
6508
6509 2006-01-22  Zack Weinberg  <zackw@panix.com>
6510
6511         * varray.c: Remove GENERATOR_FILE #ifdefs.
6512
6513 2006-01-22  Zack Weinberg  <zackw@panix.com>
6514
6515         * genautomata.c (output_reserved_units_table): Emit nothing if
6516         description->query_units_num is zero.  Remove extra blank line.
6517         (output_cpu_unit_reservation_p): Short circuit
6518         if description->query_units_num is zero.
6519
6520 2006-01-22  Zack Weinberg  <zackw@panix.com>
6521
6522         * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
6523         and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
6524         nor any of the random handful of variables that used to be necessary
6525         when this program was linked with rtlanal.o.  Prune set of forward
6526         function declarations.
6527         (struct attr_desc): Remove static_p field.
6528         (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
6529         (check_attr_test, make_internal_attr, make_numeric_value): Make static.
6530         (attr_string): Do not read the character one past the length of
6531         the string.
6532         (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
6533         (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
6534         (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
6535         (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
6536         (make_automaton_attrs): New.
6537         (main): Do not call into genautomata.  Call local gen_bypass
6538         and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
6539         Remove special case for insn_alts.
6540         * genautomata.c: Include gensupport.h; not genattrtab.h nor
6541         varray.h (leftover from previous change).  Prune set of forward
6542         function declarations.  Remove state_alts fields from all
6543         structures.  Remove state_alts_table from struct automaton.
6544         Make everything except main static.  Do not maintain num_dfa_decls.
6545         Do not maintain state_alts fields of various structures.
6546         (process_decls): Don't validate condexp for dm_insn_reserv decls.
6547         (add_arc): Remove state_alts argument.  All callers updated.
6548         (output_reserved_units_table): Emit #ifdef here...
6549         (output_tables): ...not here.  Don't generate state_alts tables.
6550         (expand_automata): Don't generate attributes.
6551         (write_automata): Don't generate state_alts functions.
6552         (main): New function.
6553         (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
6554         (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
6555         (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
6556         (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
6557         (BYPASS_P_FUNC_NAME, output_state_alts_table)
6558         (output_automata_list_state_alts_code, output_internal_state_alts_func)
6559         (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
6560         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
6561         Delete.
6562         * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
6563         * genattrtab.h: Delete file.
6564         * Makefile.in (OBJS-common): Add insn-automata.o.
6565         (insn-automata.o): New rule.
6566         (simple_generated_c): Add insn-automata.c.
6567         (build/genattrtab.o, build/genautomata.o): Update dependencies.
6568         (genprogmd): Add automata.
6569         (build/genattrtab): Needs no extra objects nor libraries.
6570         (build/genautomata): Needs build/vec.o and -lm.
6571
6572 2006-01-22  Zack Weinberg  <zackw@panix.com>
6573
6574         * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
6575         (output_dfa_max_issue_rate, locked_states_num): Delete.
6576         (struct automaton): Add locked_states field.
6577         (output_dead_lock_vect): Save number of locked states in
6578         automaton->locked_states.  If it is zero, don't print anything.
6579         (output_max_insn_queue_index_def): Define max_insn_queue_index const.
6580         (output_internal_dead_lock_func): Only test the dead_lock_vect
6581         for automata that have locked states.
6582         (output_statistics): Always print the number of locked states for
6583         each automaton.  Calculate total number of locked states here.
6584         (write_automata): Don't call output_dfa_max_issue_rate.
6585         * genattrtab.c: Define length_unit_log as a const variable.
6586         * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
6587         max_insn_queue_index const.
6588         * final.c (length_unit_log): Declare const.
6589         * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
6590
6591 2006-01-22  Zack Weinberg  <zackw@panix.com>
6592
6593         * genautomata.c:  Include vec.h, not varray.h.
6594         Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
6595         VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
6596         VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
6597         VEC_* macros operating on appropriately typed vectors, or to
6598         malloced arrays when the size is known in advance.  Const-ify
6599         many char* variables and function arguments.  No functional changes.
6600         * Makefile.in (build/varray.o): Delete rule.
6601         (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
6602         (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
6603
6604 2006-01-22  Zack Weinberg  <zackw@panix.com>
6605
6606         * gensupport.c: Define get_insn_name and record_insn_name here.
6607         (read_md_rtx): Call record_insn_name as appropriate.
6608         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
6609         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
6610         * genpreds.c, genrecog.c: Don't define get_insn_name nor
6611         record_insn_name.
6612         * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
6613         (BUILD_VARRAY): Delete.
6614         (genprognormal): Rename genprogmd.  Fold in all programs from
6615         genprognoprint; also attrtab.
6616         (build/genattrtab): Just mention genautomata.o and varray.o.
6617         Reorganize a bit, add comments to make the categories clearer.
6618
6619 2006-01-22  Zack Weinberg  <zackw@panix.com>
6620
6621         * genconditions.c (condition_table, add_condition): Delete.
6622         (write_conditions): Don't emit n_insn_conditions nor
6623         insn_elision_unavailable.  Issue the gcc version #ifdef here,
6624         inside the table, with no #else clause ...
6625         (write_header): ...not here.
6626         (write_writer): New function.
6627         (main): Don't initialize condition_table.  Use add_c_test.
6628         Call write_writer.
6629         * gensupport.c (init_md_reader_args_cb): Handle multiple input
6630         files on the command line.
6631         (maybe_eval_c_test): Don't check insn_elision_unavailable.
6632         Return -1 if there is no entry in the table, don't abort.
6633         (add_c_test, traverse_c_tests): New functions.
6634         * gensupport.h (insn_elision_unavailable, insn_conditions)
6635         (n_insn_conditions): Delete declarations.
6636         (add_c_test, traverse_c_tests): Declare.
6637         * read-rtl.c: Include gensupport.h.
6638         (read_conditions): New function.
6639         (read_rtx): If read_rtx_1 returns 0, treat as EOF.
6640         (read_rtx_1): If we get EOF when we were looking for an initial
6641         open paren, return 0.  Call read_conditions when appropriate.
6642         * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
6643         dummy-conditions.o.  Eliminate references to insn-conditions.o,
6644         or change them to build/gencondmd.o, as appropriate.  Remove
6645         insn-constants.h from $(simple_generated_h) and insn-conditions.c
6646         from $(simple_generated_c).  For all files remaining in those
6647         two lists, add insn-conditions.md to the generator command line.
6648         Give insn-constants.h/s-constants their own rules.  Add rules
6649         for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
6650         (build/read-rtl.o): Depend on gensupport.h.
6651         (genprognormal): Include preds.
6652         (genprogearly): Rename genprognoprint; only difference is now that
6653         they don't link with $(BUILD_PRINT).
6654         * dummy-conditions.c: Delete.
6655
6656 2006-01-22  Zack Weinberg  <zackw@panix.com>
6657
6658         * genextract.c: Don't include insn-config.h.  Do include vec.h.
6659         Declare vectors of int, char, and locstr.
6660         (locstr): New typedef.
6661         (struct extraction): Make all array fields into bare pointers.
6662         (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
6663         (insn_code_number): Delete.
6664         (accum_extract): New struct.
6665         (VEC_safe_set_locstr, VEC_char_to_string): New functions.
6666         (gen_insn): Take insn_code_number as an argument.  Use an
6667         accum_extract structure instead of loading data directly into
6668         a struct extraction, and having to know how big it might get.
6669         (walk_rtx): Operate entirely on an accum_extract structure.
6670         (print_path): Avoid unnecessary use of printf.
6671         (print_header): New function, split out of main.  Distinguish
6672         more carefully between an unrecognizable insn and an insn that
6673         has the code number of a define_expand.
6674         (main): Pass insn_code_number to gen_insn.  Call print_header
6675         only after parsing.  Avoid unnecessary use of printf.
6676         * Makefile.in (build/vec.o): New rule.
6677         (build/genextract): Depend on build/vec.o.
6678         (build/genextract.o): Don't depend on insn-config.h.
6679
6680 2006-01-22  Zack Weinberg  <zackw@panix.com>
6681
6682         * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
6683         $(RUN_GEN).  Use pattern rules to factor out as much boilerplate as
6684         practical.  Eliminate per-generator-program link rules.
6685
6686 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
6687
6688         PR middle-end/24437
6689         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
6690         with a call expr to ...
6691         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
6692
6693 2006-01-23  Richard Guenther  <rguenther@suse.de>
6694
6695         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
6696         before make_edge with conditional EDGE_TRUE_VALUE.
6697
6698 2006-01-23  Steven Bosscher  <stevenb.gcc@gmail.com>
6699         Jan Hubicka  <jh@suse.cz>
6700         Richard Guenther  <rguenther@suse.de>
6701
6702         PR rtl-optimization/25654
6703         * cfgexpand.c (aggregate_contains_union_type): New function.
6704         (add_alias_set_conflicts): Call it.  Make sure to add conflicts
6705         for structure variables that contain a union type.
6706
6707 2006-01-23  Richard Sandiford  <richard@codesourcery.com>
6708
6709         * gengtype.c (new_structure): Return the structure.
6710         (create_option): Add an extra "next" argument.
6711         (create_field): New function.
6712         (adjust_field_rtx_def): Use create_option and create_field.
6713         Remove a now-unnecessary call to find_structure.
6714         (adjust_field_tree_def): Likewise.
6715         (note_yacc_type): Remove an unnecessary call to find_structure.
6716         * gengtype.h (new_structure): Return the structure.
6717         (create_option): Add an extra argument.
6718         * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
6719         (option): Adjust calls to create_option.
6720
6721 2006-01-22  David Edelsohn  <edelsohn@gnu.org>
6722
6723         * config/rs6000/aix.h (STACK_BOUNDARY): Define.
6724
6725 2006-01-22  Paul Brook  <paul@codesourcery.com>
6726         Peter Barada  <peter@the-baradas.com>
6727
6728         * config/m68k/m68k.md: Add Coldfire FPU support.
6729         Define FP mode macro and associated attributes.
6730         Use it for float mode patterns.
6731         * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
6732         (LIBCALL_VALUE): Use m68k_libcall_value.
6733         * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
6734         (m68k_function_value): Ditto.
6735         (emit_move_sequence): Ditto.
6736         * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
6737         * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
6738         * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
6739         (MULTILIB_EXCEPTIONS): Ditto.
6740         * config/m68k/m68k.opt: Add mcfv4e.
6741         * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
6742         (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
6743         (m68k_output_function_prologue): Save ColdFire FPU registers.
6744         (m68k_output_function_epilogue): Restore ColdFire FPU registers.
6745         (force_mode, fp_reg_operand, emit_move_sequence): New functions.
6746         (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
6747         ColdFire FPU registers.
6748         (m68k_libcall_value, m68k_function_value): New functions.
6749         * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
6750         (LIBCALL_VALUE): Use m68k_libcall_value.
6751         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
6752         (MASK_COLDFIRE): Add MASK_CFV4E.
6753         (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
6754         (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
6755         (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
6756         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
6757         (GO_IF_LEGITIMATE_ADDRESS): Use it.
6758         (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
6759         * doc/invoke.tex: Document -mcfv4e on m68k.
6760
6761 2006-01-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
6762
6763         * doc/contribute.texi: Change CVS to SVN and update the corresponding
6764         URL.
6765
6766 2006-01-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6767
6768         PR c++/16190
6769         * c-opts.c (c_common_handle_option): Don't include
6770         -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
6771         * doc/invoke.texi (C++ Dialect Options): Document that
6772         -Wnon-virtual-dtor is no longer included in -Wall.
6773
6774 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
6775
6776         * gcov.c (print_version), gcov-dump.c (print_version),
6777         mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
6778         dates.
6779
6780 2006-01-21  Kenneth Zadeck <zadeck@naturalbridge.com>
6781
6782         * df-scan.c (problem_SCAN): Added NULL reset function.
6783         (df_scan_reset_blocks): Added code to call reset block function
6784         (df_bb_refs_delete) Fixed comment.
6785         (df_insn_refs_delete): Made tolerant of deleting non existent info
6786         for dataflow problems that need to be reset.
6787         * df-core.c (df_set_blocks): Ditto.
6788         * df.h (struct df_problem): Added reset_fun.
6789         * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
6790         problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
6791         (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
6792         functions to clear out all references to def-use or use-def chains.
6793
6794 2006-01-21  Ben Elliston  <bje@au.ibm.com>
6795
6796         * varasm.c (assemble_real): Initialise data array.
6797
6798 2006-01-20  Paul Brook  <paul@codesourcery.com>
6799
6800         Merge from csl-arm-branch.
6801         2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
6802         * config/arm/arm.md (movdi): Force operands[1] to a register
6803         if we have a non-register source.
6804         (*arm_movdi, *movdf_soft_insn): Require that one of the
6805         operands be a register.
6806         * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
6807         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
6808
6809 2006-01-20  DJ Delorie  <dj@redhat.com>
6810
6811         * varasm.c (initialize_constant_valid_p): Allow pointers
6812         initialized from integer constants of lesser precision.
6813         (output_constant): Allow non-int-sized pointer modes to be
6814         initialized from integer constants.
6815
6816 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
6817
6818         PR libstdc++/25524
6819         * cppdefault.h (struct default_include): Add multilib flag.
6820         * cppdefault.c (cpp_include_defaults): Set it.
6821         * c.opt (-imultilib): New option.
6822         * c-opts.c (imultilib): New.
6823         (c_common_handle_option): Handle -imultilib.
6824         (c_common_post_options): Likewise.
6825         * c-incpath.c (add_standard_paths, register_include_chains):
6826         Likewise.
6827         * c-incpath.h (register_include_chains): Add extra parameter.
6828         * gcc.c (do_spec_1): Generate -imultilib option.
6829         (The Specs Language): Update %I description.
6830         (process_command): Update copyright notice.
6831         * doc/cppopts.texi (-imultilib): Document.
6832         * doc/invoke.texi (-imultilib): Include in option summary.
6833         (%I): Update specs documentation.
6834
6835 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
6836
6837         * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
6838
6839 2006-01-20  Richard Sandiford  <richard@codesourcery.com>
6840
6841         * stmt.c (case_bit_test_cmp): Stabilize the sort using code
6842         label numbers.
6843
6844 2006-01-20  Richard Guenther  <rguenther@suse.de>
6845         Steven Bosscher <stevenb.gcc@gmail.com>
6846
6847         PR rtl-optimization/24626
6848         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
6849         EDGE_TRUE_VALUE if in RTL mode.
6850
6851         Revert
6852         2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
6853         * cfgrtl.c (rtl_verify_flow_info_1): Fix.
6854
6855 2006-01-20  Dirk Mueller  <dmueller@suse.com>
6856
6857         PR c++/5520
6858         * c-parser.c (c_parser_if_body): Use build_empty_stmt()
6859         instead of a special NOP marker.
6860         * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
6861         NOP marker handling.
6862         * c-common.h (empty_body_warning): Add forward declaration.
6863         * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
6864         Now uses IS_EMPTY_STMT() instead of special NOP markers.
6865
6866 2006-01-20  Paul Brook  <paul@codesourcery.com>
6867
6868         * Makefile.in (lang_checks): Keep going if mkdir fails.
6869
6870 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6871
6872         * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
6873         be able to clean out basic block when not necessary.
6874         (df_scan_free): Fixed to properly delete information if df is
6875         unused before calling df_finish.
6876         (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
6877         df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
6878         or comment typos.
6879         (df_bb_refs_delete): New function.
6880         (df_refs_delete): Moved per block code to df_bb_refs_delete.
6881         * df-core.c (df_set_blocks): Added code to properly clean out
6882         unused blocks if they are not part of the blocks to consider.
6883         Added additional null check.
6884         (df_compact_blocks): Added basic block parameter to free_bb_fun to
6885         be able to clean out basic block when not necessary
6886         * df.h (df_free_bb_function): Ditto.
6887         (df_bb_refs_delete): New function.
6888         * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
6889         df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
6890         basic block parameter to be able to clean out basic block when not
6891         necessary.
6892         (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
6893         (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
6894         Fixed to properly delete information if df is unused before
6895         calling df_finish.
6896
6897 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
6898
6899         PR rtl-optimization/25799
6900         * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
6901         Corrected confluence operator to remove bits from op2 before oring
6902         with op1 rather than removing bits from op1.
6903         (df_ru_transfer_function): Corrected test on wrong bitmap which
6904         caused infinite loop.  Both of these problems were introduced in
6905         the dataflow rewrite.
6906
6907 2006-01-19  DJ Delorie  <dj@redhat.com>
6908
6909         * reload1.c (find_reload_regs): Note the details of reload
6910         failures in the dump file.
6911         (spill_failure): Likewise.
6912
6913 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
6914
6915         * loop-iv.c: Include df.h and hashtab.h.
6916         (enum iv_grd_result): New enum.
6917         (DF_REF_IV, DF_REF_IV_SET): New macros.
6918         (struct biv_entry): New.
6919         (df, bivs): New global variables.
6920         (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
6921         assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
6922         Removed.
6923         (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
6924         iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
6925         analyzed_for_bivness_p, record_biv): New functions.
6926         (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
6927         get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
6928         iv_analyze, biv_p, iv_analysis_done): Work with df representation of
6929         UD chains.
6930         (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
6931         analysed.
6932         (iv_number_of_iterations): Use new interface to iv analysis.
6933         * loop-unroll.c: Do not include varray.h.
6934         (analyze_iv_to_split_insn): Use new interface to iv
6935         analysis.
6936         * loop-unswitch.c (may_unswitch_on): Ditto.
6937         * df.c (df_bitmaps_free): Only work for bbs for that structures are
6938         allocated.
6939         (df_bb_modify): Realloc tables to the new index.
6940         (df_find_use): New function.
6941         * df.h (df_find_use): Declare.
6942         * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
6943         outmode.
6944         * cfgloop.h (struct rtx_iv): Remove analysed field.
6945         (iv_get_reaching_def): Removed.
6946         (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
6947         * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
6948         (loop-iv.o): Add df.h and hashtab.h dependency.
6949         * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
6950
6951 2006-01-20  Alan Modra  <amodra@bigpond.net.au>
6952
6953         PR target/25668
6954         * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
6955         Double TFmode.
6956         (__floatundisf, __floatundidf): Likewise.
6957         * libgcc2.h (IS_IBM_EXTENDED): Define.
6958
6959 2006-01-19  DJ Delorie  <dj@redhat.com>
6960
6961         * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
6962
6963 2006-01-19  Paul Brook  <paul@codesourcery.com>
6964
6965         * gcc/config/arm/arm.c (arm_compute_func_type): Treat all functions
6966         as nothrow when unwinding tables are disabled.
6967
6968 2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6969
6970         PR testsuite/25171
6971         * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
6972         of bit-field" when in system header.
6973
6974 2006-01-19  DJ Delorie  <dj@redhat.com>
6975
6976         * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
6977         the 16 bit shift limit of the m16c.
6978
6979 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
6980
6981         PR target/22099
6982         * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
6983         * config/i386/i386.c (output_set_got): Output the label if we have one
6984         for the TARGET_DEEP_BRANCH_PREDICTION case.
6985
6986 2006-01-19  Jan Hubicka  <jh@suse.cz>
6987             H.J. Lu  <hongjiu.lu@intel.com>
6988             Evandro Menezes <evandro.menezes@amd.com>
6989
6990         * invoke.texi (generic): Document
6991         (i686) Update.
6992         * config.gcc: Make x86_64-* and i686-* default to generic tunning.
6993         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
6994         TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
6995         (x86_use_incdec, x86_pad_returns): New variables
6996         (TARGET_CPU_DEFAULT_generic): New constant
6997         (TARGET_CPU_DEFAULT_NAMES): Add generic.
6998         (enum processor_type): Add generic32 and generic64.
6999         * i386.md (cpu attribute): Add generic32/generic64
7000         (movhi splitter): Behave sanely when both partial_reg_dependency and
7001         partial_reg_stall are set.
7002         (K8 splitters): Enable for generic as well.
7003         * predicates.md (incdec_operand): Use TARGET_INCDEC
7004         (aligned_operand): Avoid memory mismatch stalls.
7005         * athlon.md: Enable for generic64, new patterns for 128bit moves.
7006         * ppro.md: Enable for generic32
7007         * i386.c (generic64_cost, generic32_cost): New.
7008         (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
7009         (x86_use_leave): Enable for generic64.  (x86_use_sahf,
7010         x86_ext_80387_constants): Enable for generic32.  (x86_push_memory,
7011         x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
7012         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
7013         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
7014         x86_partial_reg_dependency, x86_memory_mismatch_stall,
7015         x86_accumulate_outgoing_args, x86_prologue_using_move,
7016         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
7017         x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
7018         Enable for generic.
7019         (x86_use_incdec, x86_pad_returns): New.
7020         (override_options): Add generic32 and generic64, translate "generic"
7021         to generic32/generic64 and "i686" to "generic32", refuse
7022         "generic32"/"generic64" as arch target.
7023         (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
7024         (ix86_reorg): Honor PAD_RETURNS.
7025
7026 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
7027
7028         * tree-pretty-print.c (dump_generic_node): Handle
7029         OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
7030         * cgraph.c (cgraph_expand_queue): Rename from
7031         cgraph_analyze_queue.  Update all users.
7032         * cgraphunit.c (cgraph_assemble_pending_functions): Process
7033         cgraph_expand_queue.
7034         (cgraph_expand_all_functions): Likewise.
7035         (cgraph_finalize_pending_functions): Remove.  Update callers.
7036
7037         * tree.h (OMP_DIRECTIVE_P): Define.
7038         (OMP_PARALLEL_FN): Define.
7039         (OMP_PARALLEL_DATA_ARG): Define.
7040         (OMP_SECTIONS_SECTIONS): Define.
7041         * tree-pass.h (pass_expand_omp): Declare.
7042         * omp-low.c (struct omp_region): Declare.
7043         (struct omp_context): Remove fields 'parallel_type',
7044         'parallel_start_ix' and 'parallel_start_additional_args'.
7045         Update all users.
7046         (struct omp_for_data): Rename from struct expand_omp_for_data.
7047         (omp_regions): New static variable.
7048         (root_omp_region): New static variable.
7049         (find_omp_clause): Make static.
7050         (is_in_combined_parallel_ctx): Remove.
7051         (is_combined_parallel): New.
7052         (extract_omp_for_data): Move earlier in the file.
7053         (workshare_safe_to_combine_p): New.
7054         (get_ws_args_for): New.
7055         (determine_parallel_type): Move earlier in the file.
7056         (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
7057         child function.
7058         (omp_copy_decl): Likewise.
7059         (create_omp_child_function): Likewise.
7060         (lookup_omp_region): New.
7061         (dump_omp_region): New.
7062         (debug_omp_region): New.
7063         (debug_all_omp_regions): New.
7064         (new_omp_region): New.
7065         (scan_omp_parallel): If parallel_nesting_level > 1, the
7066         directive is nested within another parallel directive.
7067         Set OMP_PARALLEL_FN.
7068         (scan_omp_for): Do not try to handle combined parallel+for
7069         cases.
7070         Remove FIXME comment.
7071         (scan_omp_nested): Remove.
7072         (scan_omp_1): Do not call scan_omp_nested when
7073         parallel_nesting_level is > 1.
7074         Do not change the DECL_CONTEXT of local variables found.
7075         (lookup_decl_in_outer_ctx): New.
7076         (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
7077         (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
7078         (lower_reduction_clauses): Rename from expand_reduction_clauses.
7079         (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
7080         If CTX is nested, lookup VAR in the outer context when
7081         building copy assignment.
7082         (lower_send_clauses): Rename from expand_send_clauses.
7083         If CTX is nested, lookup VAR in the outer context when
7084         building copy assignments.
7085         (lower_send_shared_vars): Rename from expand_send_shared_vars.
7086         If CTX is nested, lookup VAR in the outer context when
7087         building copy assignments.
7088         (expand_parallel_call): Rename from build_parallel_call.
7089         Handle combined parallel+workshare cases.
7090         Re-implement to emit code into the CFG.
7091         (list2chain): New.
7092         (expand_omp_parallel): Re-implement to emit code into the CFG.
7093         Call move_sese_region_to_fn to outline the sub-graph
7094         containing the parallel region.
7095         (expand_omp_for_1): Remove.
7096         (expand_omp_for_generic): Re-implement to emit code into the
7097         CFG.
7098         (expand_omp_for_static_nochunk): Likewise.
7099         (expand_omp_for_static_chunk): Likewise.
7100         (expand_omp_for): Likewise.
7101         (expand_omp_sections): Likewise.
7102         (remove_exit_barriers): New.
7103         (expand_omp_synch): New.
7104         (expand_omp): New.
7105         (build_omp_regions_1): New.
7106         (build_omp_regions): New.
7107         (execute_expand_omp): New.
7108         (gate_expand_omp): New.
7109         (pass_expand_omp): Define.
7110         (lower_omp_sections): Rename from expand_omp_sections.
7111         Set OMP_SECTIONS_SECTIONS.
7112         (lower_omp_single_simple): Rename from expand_omp_single_simple.
7113         (lower_omp_single_copy): Rename from expand_omp_single_copy.
7114         (lower_omp_single): Rename from expand_omp_simple.
7115         (lower_omp_master): Rename from expand_omp_master.
7116         (lower_omp_ordered): Rename from expand_omp_ordered.
7117         (lower_omp_critical): Rename from expand_omp_critical.
7118         (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
7119         (lower_omp_for): Re-implement.
7120         (lower_omp_parallel): Re-implement.
7121         (lower_regimplify): Rename from expand_regimplify.
7122         (lower_omp_1): Rename from expand_omp_1.
7123         If there are syntax errors in the program, replace every
7124         OpenMP directive with NOP.
7125         Call lower_omp_* instead of expand_omp_*.
7126         (lower_omp): Rename from expand_omp.
7127
7128         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
7129         * tree-gimple.h (enum omp_parallel_type): Remove.
7130         (gimple_boolify): Declare extern.
7131         (find_omp_clause, determine_parallel_type): Remove.
7132
7133         * gimple-low.c (lower_omp_directive): New.
7134         (lower_stmt): Call it.
7135         (record_vars_into): Move from ...
7136         (record_vars): ... here.
7137         Call record_vars_into with current_function_decl.
7138
7139         * gimplify.c (struct gimplify_ctx): Remove fields
7140         combined_pre_p and combined_ctxp.  Update users.
7141         (get_formal_tmp_var): Add documentation.
7142         (gimple_boolify): Make extern.
7143         (gimplify_expr_in_ctx): Remove.  Update callers.
7144         (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
7145         will always be a BIND_EXPR.
7146         (gimplify_expr): Handle OMP_RETURN_EXPR.
7147         * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
7148         (OMP_PARALLEL): Add 3 operands.
7149         (OMP_SECTIONS): Add 1 operand.
7150         (OMP_RETURN_EXPR): Define.
7151
7152         * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
7153         (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
7154         * tree-iterator.c (alloc_stmt_list): Assert that we are not
7155         creating a circular free list.
7156         (free_stmt_list): Assert that we are not freeing stmt_list_cache.
7157
7158         * tree-flow.h (move_sese_region_to_fn): Declare.
7159         (record_vars_into): Declare.
7160         * tree-cfg.c (make_omp_sections_edges): New.
7161         (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
7162         OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
7163         OMP_SECTIONS and OMP_SECTION.
7164         (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
7165         (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
7166         (verify_stmt): Do not handle OMP_DIRECTIVE_P.
7167         (gather_blocks_in_sese_region): New.
7168         (struct move_stmt_d): Declare.
7169         (move_stmt_r): New.
7170         (move_block_to_fn): New.
7171         (move_sese_region_to_fn): New.
7172
7173         * passes.c (init_optimization_passes): Schedule
7174         pass_expand_omp after pass_init_datastructures.
7175
7176         * tree-ssa-operands.c (get_expr_operands): Handle
7177         OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
7178         OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
7179
7180 2006-01-19  Jeff Law  <law@redhat.com>
7181
7182         * tree-vrp.c (extract_range_from_assert): Refine the result range
7183         if the variable referenced by the ASSERT_EXPR has a range and
7184         either the tentative result range or the previous range is a
7185         VR_ANTI_RANGE.
7186
7187 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
7188
7189         * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
7190
7191 2006-01-19  Jan Hubicka  <jh@suse.cz>
7192
7193         * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
7194
7195 2006-01-19  Paolo Bonzini  <bonzini@gnu.org>
7196
7197         * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
7198         (expand_compound_operation, expand_field_assignment): Fail if the
7199         bit lengths of an extract operation are out of range.
7200         (make_extraction): Compute wanted_inner_mode based on the position
7201         and length of the extraction.  Make it extraction_mode for non-constant
7202         positions, and do not modify offset in that case.  When generating a
7203         new MEM, use a mode that can hold the extraction while keeping correct
7204         alignment.  Remove code that supported MEMs wrapped by USEs.
7205         (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
7206
7207 2006-01-19  Andreas Krebbel  <krebbel1@de.ibm.com>
7208
7209         * config/s390/s390.md ("Y", "y"): New mode attribute.
7210         ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
7211         "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
7212         "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
7213         "*addsi3_imm_cc", "*addsi3_carry1_cc",
7214         "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
7215         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
7216         "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
7217         "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
7218         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
7219         "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
7220         "addsi3", "subsi3"): Insn patterns removed.
7221         ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
7222         "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
7223         "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
7224         "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
7225         "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
7226         "*sub<mode>3_cconly2"): New insn patterns.
7227         ("addsi3", "subsi3"): New expanders.
7228
7229 2006-01-19  Dorit Nuzman  <dorit@il.ibm.com>
7230
7231         * Makefile.in (tree-vect-patterns.o): Add rule for new file.
7232         * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
7233         existing STMT_VINFO_VECTYPE if available.
7234         (vect_mark_relevant): Add special handling for stmts that are
7235         marked as STMT_VINFO_IN_PATTERN_P.
7236         (vect_analyze_loop): Call vect_pattern_recog.
7237         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
7238         * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
7239         stmt_info.
7240         (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
7241         (vect_recog_func_ptr): New function-pointer type.
7242         * tree-vect-patterns.c: New file.
7243         (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
7244         (vect_recog_dot_prod_pattern, vect_pattern_recog):
7245         (vect_pattern_recog_1): New functions.
7246         (vect_pattern_recog_funcs): New array of function pointers.
7247
7248         * tree-vectorizer.h (ternary_op): New enum value.
7249         * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
7250         declaration. Revised documentation. Removed redundant dump prints.
7251         Removed redundant argument. Added support for reduction patterns.
7252         (vectorizable_reduction): Added support for reduction patterns.
7253         (vect_transform_stmt): Added support for patterns.
7254
7255         * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
7256         * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
7257         * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
7258         (expand_widen_pattern_expr): New function.
7259         (init_optabs): Initialize new optabs udot_prod_optab,
7260         sdot_prod_optab.
7261         * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
7262         (sdot_prod_optab, udot_prod_optab): Define new optabs.
7263         (expand_widen_pattern_expr): New function declaration.
7264         * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
7265         tree-codes.
7266         * tree-inline.c (estimate_num_insns_1): Added cases for new
7267         tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
7268         * tree-pretty-print.c (dump_generic_node): Likewise.
7269         (op_prio): Likewise.
7270         (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
7271         * tree-ssa-operands.c (get_expr_operands): Added case for
7272         DOT_PROD_EXPR.
7273         * tree-vect-patterns.c (widened_name_p): New function.
7274         (vect_recog_dot_prod_pattern): Added function implementation.
7275         * tree-vect-transform.c (get_initial_def_for_reduction): Added
7276         cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
7277         * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
7278         * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
7279
7280         * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
7281         * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
7282         * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
7283         (init_optabs): Initialize new optabs widen_ssum_optab,
7284         widen_usum_optab.
7285         * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
7286         (widen_ssum_optab, widen_usum_optab): Define new optabs.
7287         * tree-vect-generic.c: (expand_vector_operations_1): Check type of
7288         use instead of type of def.
7289         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
7290         function implementation.
7291         * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
7292         widen_ssumv8hi): New.
7293
7294         * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
7295         patterns.
7296
7297 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
7298
7299         PR c/25805
7300         * c-decl.c (add_flexible_array_elts_to_size): New function.
7301         (finish_decl): Use it.
7302
7303 2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
7304
7305         * diagnostic.h: Include options.h.
7306         * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
7307         dependancies for diagnostic.h.
7308         * Makefile.in (DIAGNOSTIC_H): Add options.h.
7309
7310 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
7311
7312         * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
7313         (ssa_ro_call_cache_valid): Ditto.
7314         * tree-ssa-alias.c (sort_tags_by_id): New function.
7315         (init_transitive_clobber_worklist): Ditto.
7316         (add_to_worklist): Ditto.
7317         (mark_aliases_call_clobbered): Ditto.
7318         (compute_tag_properties): Ditto.
7319         (set_initial_properties): Ditto.
7320         (compute_call_clobbered): Ditto.
7321         (compute_may_aliases):  Call compute_call_clobbered and grouping.
7322         (compute_flow_sensitive_aliasing): Remove clobbering related code.
7323         (compute_flow_insensitive_aliasing): Grouping now happens in our
7324         caller.
7325         (setup_pointers_and_addressables): Remove clobbering related code.
7326         (add_may_alias): Ditto.
7327         (replace_may_alias): Ditto.
7328         (get_nmt_for): Ditto.
7329         (create_global_var):
7330         (is_escape_site): Return an escape_type enumeration.
7331         * tree-flow-inline.h (is_call_clobbered):  Global var does not
7332         imply call clobbered.
7333         (mark_call_clobbered): Take a reason for marking this. Remove
7334         marking of globalness, and cache invalidation.
7335         (clear_call_clobbered): Remove cache invalidation code.
7336         * tree-dfa.c (dump_variable): If details is on, dump the reason
7337         for escaping.
7338         * tree-outof-ssa.c (create_temp): Copy escape mask from original
7339         variable.
7340         * tree-flow.h (struct ptr_info_def): Add escape mask member.
7341         (struct var_ann_d): Ditto.
7342         (enum escape_type): New.
7343         (mark_call_clobbered): Adjust prototype.
7344         * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
7345         are never call clobbered.
7346         Record reasons for escaping.
7347         * tree-ssa-structalias.h (is_escape_site): Update prototype.
7348         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
7349         (ssa_ro_call_cache_valid): Ditto.
7350         (clobbered_v_may_defs): Ditto.
7351         (clobbered_vuses): Ditto.
7352         (ro_call_vuses): Ditto.
7353         (clobber_stats): New.
7354         (init_ssa_operands): Zero out clobber stats.
7355         (fini_ssa_operands): Print out clobber stats.
7356         (get_call_expr_operands): Pass callee fndecl to
7357         add_call_read_ops).
7358         (add_call_clobber_ops): Remove use of cache.
7359         Add use of PURE_CONST information.
7360         (add_call_read_ops): Remove use of cache.
7361         Add use of static not_read information.
7362
7363 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
7364
7365         Introduce TLS descriptors for i386 and x86_64.
7366         * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
7367         (TARGET_ANY_GNU_TLS): New macro.
7368         (enum tls_dialect): Added TLS_DIALECT_GNU2.
7369         (struct machine_function): Add tls_descriptor_call_expanded_p.
7370         (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
7371         (ix86_current_function_calls_tls_descriptor): Likewise.
7372         * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
7373         (override_options): Introduce gnu2 tls dialect.
7374         (ix86_frame_pointer_required): Functions containing TLSCALLs are
7375         not leaves.
7376         (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
7377         Likewise.
7378         (legitimize_tls_address): Adjust logic for GNU2 TLS.
7379         (ix86_init_machine_status): Initialize new field.
7380         (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
7381         (ix86_tls_module_base): New.
7382         * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
7383         * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
7384         (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
7385         (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
7386         (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
7387         (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
7388         (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
7389         (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
7390         * config/i386/predicates.md (tls_modbase_operand): New.
7391         (tp_or_register_operand): New.
7392
7393 2006-01-18  Daniel Berlin  <dberlin@dberlin.org>
7394
7395         * ipa-reference.c (check_operand):  Allow FUNCTION_DECL.
7396         (look_for_address_of): Ditto.
7397         (ipa_init): Walk the function decls.
7398         (static_execute): Don't set readonly on FUNCTION_DECL's.
7399
7400 2006-01-18  Roger Sayle  <roger@eyesopen.com>
7401
7402         * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
7403         for shifts where the source and destination registers are different.
7404
7405 2006-01-18  Paul Brook  <paul@codesourcery.com>
7406
7407         Merge from csl-arm-branch.
7408         2005-03-14  Julian Brown  <julian@codesourcery.com>
7409         * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
7410         (aeabi_llsl): Likewise.
7411         (ashrdi3): Likewise.
7412         (aeabi_lasr): Likewise.
7413         (lshrdi3): Likewise.
7414         (aeabi_llsr): Likewise.
7415         2005-03-10  Julian Brown  <julian@codesourcery.com>
7416         * config.gcc: Disable shared libgcc for SymbianOS.
7417         * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
7418
7419 2006-01-18  DJ Delorie  <dj@redhat.com>
7420
7421         * c-pragma.c (handle_pragma_diagnostic): New.
7422         (init_pragma): Register it.
7423         * doc/extend.texi: Document it.
7424
7425         * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
7426         * diagnostic.h (diagnostic_classify_diagnostic): Declare.
7427         (diagnostic_context): Add classify_diagnostic[].
7428         * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
7429         as errors if they're overridden to DK_WARNING.
7430         (diagnostic_initialize): Initialize classify_diagnostic[].
7431         (diagnostic_set_kind_override): New.
7432         (diagnostic_report_diagnostic): Check for kind changes.
7433         * opts.c (common_handle_option): Take lang_mask.  Update callers.
7434         Handle OPT_Werror_.
7435         * common.opt (Werror=): New.
7436         * doc/invoke.texi: Document -Werror=*
7437
7438 2006-01-18  Jeff Law  <law@redhat.com>
7439
7440         * tree-vrp.c (test_for_singularity): Correct test for new
7441         min limit.  Use operand_equal_p rather than pointer equality
7442         for testing if new min/max values are equal.
7443
7444         * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
7445         using range information until after propagation and folding.
7446
7447 2006-01-18  Richard Henderson  <rth@redhat.com>
7448             Aldy Hernandez  <aldyh@redhat.com>
7449             Jakub Jelinek  <jakub@redhat.com>
7450             Diego Novillo  <dnovillo@redhat.com>
7451
7452         * omp-low.c: New file.
7453         * c-omp.c: New file.
7454
7455 2006-01-18  Richard Henderson  <rth@redhat.com>
7456             Jakub Jelinek  <jakub@redhat.com>
7457             Diego Novillo  <dnovillo@redhat.com>
7458
7459         * doc/invoke.texi: Document -fopenmp.
7460         * tree-dump.h (debug_function): Declare.
7461         * hooks.c (hook_bool_tree_bool_false): New function.
7462         (hook_tree_tree_null): Remove.
7463         (hook_tree_tree_tree_null): New.
7464         * hooks.h: Update to match.
7465         * tree-pretty-print.c (debug_tree_chain): New.
7466         (print_generic_expr): Handle TDF_CHAIN.
7467         (dump_generic_node): Handle BLOCK.
7468         Do not abort with incomplete SWITCH_EXPRs.
7469         Do not dump body of an OpenMP directive if TDF_SLIM is given.
7470         <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
7471         print space after directive name.
7472         <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
7473         Handle OMP_MASTER and OMP_ORDERED.
7474         Handle printing of OMP_BODY just in one place, goto
7475         dump_omp_body in the rest of OMP_* nodes that have
7476         OMP_BODY.
7477         Don't handle clause nodes here.  Update omp statements to
7478         use dump_omp_clauses.
7479         Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
7480         OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
7481         OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
7482         GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
7483         GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
7484         GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
7485         Adjust output for GOMP_PARALLEL.
7486         (dump_omp_clauses): New.
7487         (print_declaration): Dump DECL_VALUE_EXPR.
7488         (op_symbol_1): Split out of op_symbol.
7489         (dumping_stmts): Remove.  Update all users.
7490         * cgraph.c (cgraph_analyze_queue): New.
7491         (cgraph_add_new_function): New.
7492         * cgraph.h (cgraph_analyze_queue): Declare.
7493         (cgraph_add_new_function): Declare.
7494         (cgraph_lower_function): Remove.
7495         * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
7496         nodes.  Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
7497         and TYPE_P nodes in its default clause.
7498         (empty_body_p): New.
7499         (tree_range_check_failed): New.
7500         (build5_stat): New.
7501         * tree.h (OMP_CLAUSE_REDUCTION_INIT,
7502         OMP_CLAUSE_REDUCTION_MERGE,
7503         OMP_CLAUSE_REDUCTION_PLACEHOLDER,
7504         OMP_CLAUSE_PRIVATE_DEBUG,
7505         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
7506         OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
7507         OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
7508         OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
7509         OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
7510         OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
7511         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
7512         OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
7513         OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
7514         OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
7515         OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
7516         OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
7517         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
7518         OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
7519         (TREE_RANGE_CHECK): New.
7520         (empty_body_p): Declare.
7521         (enum omp_clause_default_kind): New.
7522         (build_string_literal): Declare.
7523         (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
7524         (build5_stat, build5): Declare.
7525         * tree-pass.h (TDF_CHAIN): Define.
7526         * tree-pass.h (PROP_gimple_lomp): Define.
7527         (pass_lower_omp): Declare.
7528         * diagnostic.h (debug_tree_chain): Declare.
7529         * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
7530         mode_for_size.
7531         (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
7532         * builtins.c (build_string_literal): Make extern.
7533         * gcc.c (include_spec_function): New.
7534         (static_spec_functions): Add it.
7535         (main): Move load of libgomp.spec ...
7536         (LINK_COMMAND_SPEC): ... here.
7537         (link_gomp_spec): New.
7538         (static_specs): Include it.
7539         (LINK_COMMAND_SPEC): Add link_gomp.
7540         (GOMP_SELF_SPECS): New.
7541         (driver_self_specs): Include it.
7542         (switch_matches): Don't mark inline.
7543         (main): Load libgomp.spec.
7544         * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
7545         OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
7546         and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
7547         * tree-gimple.h (enum omp_parallel): Declare.
7548         (determine_parallel_type): Declare.
7549         (omp_firstprivatize_variable): Declare.
7550         (omp_reduction_init): Declare.
7551         (diagnose_omp_structured_block_errors): Declare.
7552         (struct walk_stmt_info): Add want_return_expr.
7553         (struct walk_stmt_info): Add want_bind_expr, want_locations.
7554         (find_omp_clause): Declare.
7555         (insert_field_into_struct): Declare.
7556         (struct walk_stmt_info): Move from tree-nested.c
7557         (walk_stmts): Declare.
7558         * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
7559         to 200505.
7560         * cgraphunit.c (cgraph_lower_function): Make static.
7561         (cgraph_finalize_pending_functions): New.
7562         (cgraph_finalize_function): Call it.
7563         (cgraph_finalize_compilation_unit): Likewise.
7564         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
7565         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
7566         (BT_FN_UINT_UINT): New.
7567         (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
7568         DEF_FUNCTION_TYPE_VAR_4): Document.
7569         (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
7570         BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
7571         BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
7572         BT_FN_VOID_OMPFN_PTR_UINT_UINT,
7573         BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
7574         BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
7575         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
7576         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
7577         * builtins.def: Update DEF_BUILTIN comment to include COND argument.
7578         Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
7579         into separate files.
7580         (DEF_GOMP_BUILTIN): New.
7581         (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
7582         BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
7583         BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
7584         BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
7585         BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
7586         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
7587         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
7588         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
7589         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
7590         BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
7591         BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
7592         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
7593         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
7594         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
7595         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
7596         BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
7597         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
7598         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
7599         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
7600         BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
7601         BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
7602         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
7603         BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
7604         BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
7605         BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
7606         BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
7607         * sync-builtins.def: New file, moved from builtins.def.
7608         * omp-builtins.def: New file, moved from builtins.def.
7609         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
7610         * gimple-low.c (lower_function_body): Clear data.
7611         (lower_stmt): Do not handle COMPOUND_EXPR.
7612         Remove call to print_node_brief.
7613         * c-tree.h (c_finish_omp_clauses): New prototype.
7614         (C_DECL_THREADPRIVATE_P): Define.
7615         (lookup_name_no_remap, c_omp_remap_private): Remove
7616         (c_begin_omp_parallel, c_finish_omp_parallel): Update.
7617         (check_for_loop_decls): Update decl.
7618         (lookup_name_no_remap, c_omp_remap_private): Declare.
7619         (build_indirect_ref, build_modify_expr, pushdecl,
7620         pushdecl_top_level): Move to c-common.h.
7621         * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
7622         before the switch, but just in the 2 places that need it.
7623         * c-decl.c (diagnose_mismatched_decls): Do not check for
7624         mismatched thread-local attributes when OLDDECL is marked
7625         threadprivate and NEWDECL has no thread-local attributes.
7626         (merge_decls): Merge C_DECL_THREADPRIVATE_P.
7627         (c_gimple_diagnostics_recursively): Rename from
7628         c_warn_unused_result_recursively.  Invoke
7629         diagnose_omp_structured_block_errors.
7630         (check_for_loop_decls): Return a singular decl found.
7631         * langhooks.c (lhd_omp_predetermined_sharing): Return
7632         OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
7633         (lhd_omp_firstprivatize_type_sizes): New.
7634         (lhd_omp_assignment): New.
7635         (lhd_omp_predetermined_sharing): New.
7636         * langhooks.h (struct gimplify_omp_ctx): Forward declare.
7637         (struct lang_hooks_for_types): Add
7638         omp_firstprivatize_type_sizes, omp_privatize_by_reference,
7639         omp_predetermined_sharing, omp_disregard_value_expr,
7640         omp_private_debug_clause, omp_clause_default_ctor,
7641         omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
7642         (c_finish_omp_clauses): New.
7643         (c_finish_bc_stmt): Diagnose break within omp for.
7644         (c_begin_omp_parallel, c_finish_omp_parallel): New.
7645         (build_unary_op): Return error_mark after reporting
7646         a readonly_error.
7647         (build_modify_expr): Likewise.
7648         * gimplify.c: Include optabs.h and pointer-set.h.
7649         (enum gimplify_omp_var_data): Declare.
7650         (struct gimplify_omp_ctx): Declare.
7651         (struct gimplify_ctx): Add fields prev_context, combined_pre_p
7652         and combined_ctxp.
7653         (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
7654         (push_gimplify_context, pop_gimplify_context): Allow nesting.
7655         (splay_tree_compare_decl_uid): New.
7656         (new_omp_context): New.
7657         (delete_omp_context): New.
7658         (gimple_add_tmp_var): Call omp_add_variable.
7659         (gimplify_bind_expr): Likewise.
7660         (gimplify_var_or_parm_decl): If omp_notice_variable returned
7661         true, disregard DECL_VALUE_EXPR on the decl if any.
7662         (gimplify_expr_in_ctx): New.
7663         (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
7664         omp_add_variable, omp_notice_variable, omp_is_private
7665         gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
7666         gimplify_adjust_omp_clauses, gimplify_omp_parallel
7667         gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
7668         gimplify_omp_atomic_fetch_op, goa_stabilize_expr
7669         gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
7670         gimplify_omp_atomic): New.
7671         (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
7672         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
7673         OMP_CRITICAL and OMP_ATOMIC.
7674         (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
7675         * c-pragma.h (enum pragma_kind): Add
7676         PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
7677         PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
7678         PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
7679         PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
7680         PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
7681         PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
7682         PRAGMA_OMP_THREADPRIVATE.
7683         * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
7684         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
7685         OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
7686         OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
7687         OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
7688         OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
7689         OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
7690         OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
7691         OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
7692         * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
7693         * tree-ssa-dce.c (find_control_dependence): Do not assume that
7694         ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
7695         * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
7696         OpenMP directives.
7697         (struct nesting_info): Add field_map,
7698         suppress_expansion, debug_var_chain.
7699         (create_nesting_tree): Initialize them.
7700         (lookup_field_for_decl): Use field_map.
7701         (get_nonlocal_debug_decl, get_local_debug_decl): New.
7702         (convert_local_omp_clauses): New.
7703         (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
7704         (walk_body): Split out of walk_function.
7705         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
7706         (convert_nonlocal_reference): Handle omp statements.
7707         (convert_local_reference): Likewise.
7708         (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
7709         (unnest_nesting_tree): New.
7710         (lower_nested_functions): Call it.
7711         (insert_field_into_struct): Make extern.
7712         (struct walk_stmt_info): Move to tree-gimple.h.
7713         (walk_stmts): Make extern.
7714         * omp-builtins.def: New file.
7715         * tree-iterator.c (expr_only): Clarify comment.
7716         * c-common.h (pushdecl_top_level, pushdecl,
7717         build_modify_expr, build_indirect_ref,
7718         c_finish_omp_master, c_finish_omp_critical,
7719         c_finish_omp_ordered, c_finish_omp_barrier,
7720         c_finish_omp_atomic, c_finish_omp_flush,
7721         c_finish_omp_for, c_split_parallel_clauses,
7722         omp_clause_default_kind, c_omp_sharing_predetermined,
7723         c_omp_remap_decl): Declare.
7724         * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
7725         (OBJS-common): Add omp-low.o.
7726         (c-omp.o, omp-low.o): Add.
7727         (gimplify.o): Add dependency on $(OPTABS_H).
7728         (GTFILES): Add omp-low.c.
7729         (gt-stringpool.h): Add.
7730         * tree-cfg.c (set_bb_for_stmt): Do not update the
7731         block-to-labels map if we are currently expanding to RTL.
7732         (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
7733         checks.
7734         Handle IDENTIFIER_NODE.
7735         (tree_verify_flow_info): Do not ICE when emitting error
7736         messages about invalid labels.
7737         (dump_function_to_file): Reset CFUN before emitting the body
7738         of the function.
7739         (debug_function): New.
7740         * passes.c (init_optimization_passes): Schedule
7741         pass_lower_omp.
7742         * langhooks-def.h (lhd_omp_predetermined_sharing,
7743         lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
7744         Declare.
7745         (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
7746         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
7747         (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
7748         LANG_HOOKS_OMP_PREDETERMINED_SHARING,
7749         LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
7750         LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
7751         LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
7752         LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
7753         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
7754         LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
7755         (LANG_HOOK_DECLS): Use them.
7756
7757 2006-01-18  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
7758             Richard Henderson  <rth@redhat.com>
7759             Jakub Jelinek  <jakub@redhat.com>
7760             Diego Novillo  <dnovillo@redhat.com>
7761
7762         * c-parser.c (pragma_omp_clause): Define.
7763         (c_parser_declaration_or_fndef): Document OpenMP syntax.
7764         (c_parser_compound_statement): Likewise.
7765         (c_parser_statement): Likewise.
7766         (c_parser_pragma): Handle omp pragmas.
7767         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
7768         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
7769         (c_parser_omp_clause_name, check_no_duplicate_clause,
7770         c_parser_omp_variable_list,
7771         c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
7772         c_parser_omp_clause_copyprivate,
7773         c_parser_omp_clause_default,
7774         c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
7775         c_parser_omp_clause_lastprivate,
7776         c_parser_omp_clause_nowait,
7777         c_parser_omp_clause_num_threads,
7778         c_parser_omp_clause_ordered, c_parser_omp_clause_private,
7779         c_parser_omp_clause_reduction,
7780         c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
7781         c_parser_omp_all_clauses, c_parser_omp_structured_block,
7782         c_parser_omp_atomic, c_parser_omp_barrier,
7783         c_parser_omp_critical, c_parser_omp_flush,
7784         c_parser_omp_for_loop, c_parser_omp_for,
7785         c_parser_omp_master, c_parser_omp_ordered,
7786         c_parser_omp_sections_scope, c_parser_omp_sections,
7787         c_parser_omp_parallel, c_parser_omp_single,
7788         c_parser_omp_construct, c_parser_omp_threadprivate): New.
7789         * c-pragma.c (init_pragma): Do omp pragma registration here.
7790         * c.opt (fopenmp): New flag.
7791
7792 2006-01-18  Eric Christopher  <echristo@apple.com>
7793
7794         * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
7795         * config/darwin.h (GOMP_SELF_SPECS): Define.
7796
7797 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
7798
7799         * rtl.h: Remove the prototype for reg_alloc.
7800
7801 2006-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7802
7803         PR target/25731
7804         * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
7805         hppa[12]*-*-hpux11*): Override default shared libgcc version for both
7806         sjlj and dwarf2 exception handling.
7807         * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
7808         Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
7809         * pa/pa.c (function_value): Treat complex and vector types as
7810         aggregates.
7811         (function_arg): Likewise.  Only pass scalar floats in the floating
7812         point argument registers.
7813         * pa/t-slibgcc-dwarf-ver: New file.
7814         * pa/t-slibgcc-sjlj-ver: New file.
7815         * pa/t-slibgcc-elf-ver: Delete file.
7816
7817 2006-01-19  Alan Modra  <amodra@bigpond.net.au>
7818
7819         * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
7820         unlikely_test_section_p test.
7821
7822 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
7823
7824         * mode-switching.c (optimize_mode_switching): Make it static.
7825         * basic-block.h: Remove the prototype for
7826         optimize_mode_switching.
7827
7828         * modulo-sched.c (sms_schedule): Make it static.
7829         * rtl.h: Remove the prototype for sms_schedule.
7830
7831         * postreload-gcse.c (gcse_after_reload_main): Make it static.
7832         * rtl.h: Remove the prototype for gcse_after_reload_main.
7833
7834         * reg-stack.c (reg_to_stack): Make it static.
7835         * rtl.h: Remove the prototype for reg_to_stack.
7836
7837         * regrename.c (regrename_optimize, copyprop_hardreg_forward):
7838         Make them static.
7839         * rtl.h: Remove the prototypes for regrename_optimize and
7840         copyprop_hardreg_forward.
7841
7842 2006-01-18  Eric Botcazou  <ebotcazou@adacore.com>
7843
7844         * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
7845         alpha_split_tmode_pair.  Add 'mode' and 'fixup_overlap' arguments.
7846         Test against the appropriate null constant for the mode.
7847         If 'fixup_overlap' is true, swap the operands if they overlap.
7848         (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
7849         * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
7850         alpha_split_tmode_pair and adjust for above change.
7851         * config/alpha/alpha.md (movtf_internal): Adjust call to
7852         alpha_split_tfmode_pair and rely on it to swap the operands.
7853         (movti_internal): New insn and post-reload splitter.
7854         (movti): New expander.
7855
7856 2006-01-18  Philippe De Muyter  <phdm@macqel.be>
7857
7858         * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
7859         operands.
7860
7861 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
7862
7863         * rtlanal.c (global_reg_mentioned_p_1,
7864         global_reg_mentioned_p): Remove.
7865         * rtl.h: Remove the prototype for global_reg_mentioned_p.
7866
7867         * flow.c (initialize_uninitialized_subregs): Make it static.
7868         * rtl.h: Remove the prototype for
7869         initialize_uninitialized_subregs.
7870
7871         * function.c (instantiate_virtual_regs): Make it static.
7872         * function.h: Remove the prototype for
7873         instantiate_virtual_regs.
7874
7875         * regmove.c (regmove_optimize, combine_stack_adjustments):
7876         Make them static.
7877         * rtl.h: Remove the prototypes for regmove_optimize and
7878         combine_stack_adjustments.
7879
7880 2006-01-17  Roger Sayle  <roger@eyesopen.com>
7881
7882         * config/i386/i386.c (COSTS_N_BYTES): New macro.
7883         (size_cost): Encode costs in bytes so that a reg-reg addition is
7884         equivalent to COSTS_N_INSNS(1).
7885         (override_options): Use the size_cost.branch_cost as the default
7886         ix86_branch_cost when optimizing for size.
7887
7888 2006-01-18  Ben Elliston  <bje@au.ibm.com>
7889
7890         * Makefile.in (D32PBIT_FUNCS): New.
7891         (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
7892         (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
7893         D64PBIT_FUNCS and D128PBIT_FUNCS.
7894         (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
7895         * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
7896         D128PBIT are set.
7897         (decnumber_dep): Define.
7898         * doc/libgcc.texi (Decimal float library routines): New node.
7899         * config/dfp-bit.h, config/dfp-bit.c: New files.
7900
7901 2006-01-18  Ben Elliston  <bje@au.ibm.com>
7902
7903         * expr.c (emit_move_change_mode): Always adjust addresses, not
7904         just during reload.  Copy replacements only during reload.
7905         (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
7906         emit_move_via_integer.
7907
7908 2006-01-17  Shantonu Sen  <ssen@opendarwin.org>
7909
7910         * Makefile.in (check-%, check-consistency): Use $${srcdir}
7911         instead of $(srcdir) and ${srcdir}.
7912
7913 2006-01-17  Richard Earnshaw  <rearnsha@arm.com>
7914
7915         PR target/592
7916         PR middle-end/11135
7917         * arm.h (struct machine_function): Add pic_reg.
7918         * arm.c (arm_pic_register): Make unsigned.
7919         (arm_override_options): Only set arm_pic_register if
7920         TARGET_SINGLE_PIC_BASE.
7921         (use_return_insn): Only test for a pic register if it is fixed.
7922         (arm_compute_save_reg0_reg12_mask): Likewise.
7923         (thumb_compute_save_reg_mask): Likewise.
7924         (legitimate_pic_operand): Factor out some known invariants.
7925         (legitimize_pic_address): If we don't have a fixed pic register,
7926         then set up a pseudo in the function entry sequence.  Handle the
7927         pic base being in a pseudo.
7928         (arm_load_pic_register): Handle the pic register being in a pseudo.
7929         (arm_expand_prologue): Only set up the pic register if it is fixed.
7930         (thumb_expand_prologue): Likewise.
7931         * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
7932         (pic_load_addr_based_insn): Likewise.
7933         (builtin_setjmp_receiver): Don't restore the pic base if it isn't
7934         fixed.
7935
7936 2006-01-18  Ben Elliston  <bje@au.ibm.com>
7937
7938         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
7939         decimal float modes for all floating point registers.
7940
7941         * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
7942         match_code "mem" with match_test "macho_lo_sum_memory_operand".
7943
7944 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
7945
7946         PR c/25682
7947         * c-typeck.c (build_unary_op): Fold offsetof-like expressions
7948         even when the pointer is not NULL.
7949
7950 2006-01-16  Ian Lance Taylor  <ian@airs.com>
7951
7952         * common.opt (ftoplevel-reorder): New option.
7953         * cgraph.c (cgraph_asm_nodes): New global variable.
7954         (cgraph_asm_last_node): New static variable.
7955         (cgraph_order): New global variable.
7956         (cgraph_create_node): Set new order field.
7957         (cgraph_varpool_node): Likewise.
7958         (decide_is_variable_needed): Return true if not
7959         flag_toplevel_reorder.
7960         (cgraph_add_asm_node): New function.
7961         * cgraph.h (struct cgraph_node): Add order field.
7962         (struct cgraph_varpool_node): Add order field.
7963         (struct cgraph_asm_node): Define.
7964         (cgraph_asm_nodes, cgraph_order): Declare.
7965         (cgraph_add_asm_node): Declare.
7966         * cgraphunit.c (cgraph_varpool_assemble_decl): New static
7967         function.
7968         (cgraph_varpool_assemble_pending_decls): Call it.
7969         (cgraph_output_pending_asms): New static function.
7970         (cgraph_finalize_compilation_unit): Call it.
7971         (struct cgraph_order_sort): Define.
7972         (cgraph_output_in_order): New static function.
7973         (cgraph_optimize): Call cgraph_output_pending_asms.  Add code for
7974         !flag_toplevel_reorder case.
7975         * c-parser.c: Include "cgraph.h".
7976         (c_parser_asm_definition): Call cgraph_add_asm_node rather than
7977         assemble_asm.
7978         * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
7979         than -fno-unit-at-a-time.
7980         * doc/invoke.texi (Option Summary): Mention
7981         -fno-toplevel-reorder.
7982         (Optimize Options): Document -fno-toplevel-reorder.  Mention it in
7983         -funit-at-a-time documentation.
7984
7985 2006-01-17  Hans-Peter Nilsson  <hp@axis.com>
7986             Kazu Hirata  <kazu@codesourcery.com>
7987
7988         * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
7989
7990 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
7991
7992         * Makefile.in (FUNCTION_H): New.  Use it instead of
7993         function.h throughout the file.
7994         * function.h: Include tree.h.
7995
7996 2006-01-17  Ben Elliston  <bje@au.ibm.com>
7997
7998         * recog.c: Separate some functions with whitespace.
7999
8000 2006-01-16  Richard Henderson  <rth@redhat.com>
8001
8002         Merge from gomp branch:
8003         * Makefile.in (TREE_INLINE_H): New.  Use it as needed.
8004         * tree-inline.h (struct copy_body_data): Move from tree-inline.c
8005         and rename from struct inline_data.  Rename callee* to dst*;
8006         caller* to src*; add copy_decl hook, transform_call_graph_edges,
8007         transform_new_cfg, transform_return_to_modify, and
8008         transform_lang_insert_block flags; remove cloning_p, versioning_p,
8009         update_clones_p.
8010         (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
8011         (copy_decl_for_dup): Remove.
8012         * tree-inline.c (struct inline_data): Move to header.
8013         (insert_decl_map): Export.
8014         (remap_decl): Update for member name changes.  Use copy_decl hook.
8015         Allow for replacement to be a non-decl.  Remove dead code.
8016         (remap_type_1): Check for existing mapping.
8017         (remap_type): Export.
8018         (remap_decls): Update for member name changes.
8019         (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
8020         (copy_body, setup_one_parameter, declare_return_variable): Likewise.
8021         (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
8022         (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
8023         (tree_function_versioning, build_duplicate_type): Likewise.
8024         (copy_body_r): Likewise.  Export.
8025         (copy_decl_for_dup): Split into ...
8026         (copy_decl_for_dup_finish, copy_decl_to_var,
8027         copy_decl_no_change, copy_decl_maybe_to_var): ... these.
8028         (replace_ref_tree, inlining_p): Remove.
8029
8030 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
8031
8032         * ifcvt.c (if_convert): Make it static.
8033         * rtl.h: Remove the prototype for if_convert.
8034
8035         * local-alloc.c (local_alloc): Make it static.
8036         * rtl.h: Remove the prototype for local_alloc.
8037
8038         * loop.c (loop_optimize): Make it static.
8039         * cfgloop.h: Remove the prototype for loop_optimize.
8040         * rtl.h: Likewise.
8041
8042 2006-01-16  DJ Delorie  <dj@redhat.com>
8043
8044         * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
8045         mems.
8046
8047 2006-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8048
8049         * pa.md: Disparage copies between general and floating-point registers
8050         in 32-bit move patterns.
8051
8052 2006-01-16  H.J. Lu  <hongjiu.lu@intel.com>
8053
8054         PR testsuite/25741
8055         * Makefile.in (check-%): Depend on site.exp instead of
8056         $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
8057         directories.
8058
8059 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
8060
8061         * global.c (global_alloc): Make it static.
8062         * rtl.h: Remove the prototype for global_alloc.
8063
8064 2006-01-16  Richard Guenther  <rguenther@suse.de>
8065
8066         * tree-ssa-alias.c (struct used_part): Add write_only field.
8067         (get_or_create_used_part_for): Initialize it to true.
8068         (create_overlap_variables_for): Don't create structure variables
8069         for structures that only are written to.
8070         (find_used_portions): Handle MODIFY_EXPR to track whether a
8071         structure is only written to.
8072
8073 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
8074
8075         * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
8076         static.
8077         * basic-block.h: Remove the prototype for
8078         partition_hot_cold_basic_blocks.
8079
8080 2006-01-16  Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
8081
8082         * cppspec.c (lang_specific_spec_functions): Remove.
8083         * gcc.c (lookup_spec_function): Use static_spec_functions directly.
8084         * gcc.h (lang_specific_spec_functions): Remove.
8085         * gccspec.c (lang_specific_spec_functions): Remove.
8086
8087 2006-01-16  Paolo Bonzini  <bonzini@gnu.org>
8088
8089         * combine.c (record_value_for_reg): Invalidate registers
8090         if INSN is null.
8091         (record_dead_and_set_regs_1): Likewise, by passing them to
8092         record_value_for_reg.
8093         (record_dead_and_set_regs): Invalidate stores made by a
8094         call.  We do not combine across a call, but we still
8095         relied on equivalences.
8096
8097 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
8098
8099         * tree-vrp.c (extract_range_from_binary_expr): Cope with
8100         vrp_int_const_binop returning non-constant nodes.
8101
8102 2006-01-16  Paul Brook  <paul@codesourcery.com>
8103
8104         * config/m68k/m68k.c (output_move_const_into_data_reg):
8105         Output correct mnemonic for mvz and mvs.
8106
8107 2006-01-16  Gabor Loki  <loki@gcc.gnu.org>
8108
8109         * rtl-factoring.c: Add sequence abstraction algorithm.
8110         * cfgcleanup.c (outgoing_edges_match): Extra checks.
8111         (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
8112         ABNORMAL edges.
8113         (block_has_preserve_label): New function.
8114         * common.opt: Register new pass.
8115         * Makefile.in: Ditto.
8116         * passes.c: Ditto.
8117         * timevar.def: Ditto.
8118         * tree-pass.h: Ditto.
8119         * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
8120         * rtl.h (make_jump_insn_raw): Add forward decl.
8121         * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
8122
8123 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
8124             Roger Sayle  <roger@eyesopen.com>
8125
8126         * fold-const.c (fold_minmax): New static function.
8127         (fold_binary) <MIN_EXPR>: Call it.
8128         <MAX_EXPR>: Likewise.
8129         * stor-layout.c (place_field): Use DECL_SIZE consistently
8130         in the computation of the new record size.
8131
8132 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
8133
8134         * cse.c (cse_condition_code_reg): Make it static.
8135         * rtl.h: Remove the prototype for cse_condition_code_reg.
8136
8137         * combine.c (combine_instructions): Make it static.
8138         * rtl.h: Remove the prototype for combine_instructions.
8139
8140 2006-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8141
8142         PR target/25168
8143         * tree.c (get_file_function_name_long): Concatenate the first global
8144         object name with a string derived from the input filename of the object
8145         for type "F".
8146
8147 2006-01-16  Ben Elliston  <bje@au.ibm.com>
8148
8149         * config/i386/winnt-stubs.c: Update FSF address.
8150         * config/xtensa/ieee754-df.S: Ditto.
8151         * config/xtensa/ieee754-sf.S: Ditto.
8152
8153 2006-01-14  Ian Lance Taylor  <ian@airs.com>
8154
8155         * ifcvt.c (noce_init_if_info): New static function, broken out of
8156         noce_process_if_block.
8157         (noce_process_if_block): Call noce_init_if_info.
8158         (check_cond_move_block): New static function.
8159         (cond_move_process_if_block): New static function.
8160         (process_if_block): Call cond_move_process_if_block.
8161
8162 2006-01-15  Kazu Hirata  <kazu@codesourcery.com>
8163
8164         * cselib.c (hash_table): Rename to cselib_hash_table.
8165         (cselib_clear_table, discard_useless_values,
8166         remove_useless_values, cselib_lookup_mem, cselib_lookup,
8167         cselib_init, cselib_finish): Adjust uses of hash_table.
8168
8169 2006-01-14  Kazu Hirata  <kazu@codesourcery.com>
8170
8171         PR tree-optimization/25485
8172         * tree-vrp.c (extract_range_from_binary_expr): Handle cases
8173         where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
8174         is known to be false and true, respectively.
8175
8176 2006-01-14  Richard Guenther  <rguenther@suse.de>
8177
8178         PR tree-optimization/22548
8179         PR tree-optimization/22555
8180         PR tree-optimization/22501
8181         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
8182         * params.def (salias-max-array-elements): New parameter.
8183         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
8184         * doc/invoke.texi (salias-max-array-elements): Document.
8185         * tree-flow-inline.h (var_can_have_subvars): We also handle
8186         arrays now.
8187         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
8188         COMPONENT_REF.
8189         * tree-ssa-structalias.c (params.h): Include.
8190         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
8191         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
8192         (get_constraint_for): For ADDR_EXPR operating on something
8193         containing an ARRAY_REF, add all subvars to the solution.
8194         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
8195         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
8196         for creating MUST_DEFs.
8197         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
8198
8199 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
8200
8201         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
8202         functions.
8203         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
8204         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
8205         number_of_iterations_le): New functions.
8206         (number_of_iterations_special): Removed.
8207         (number_of_iterations_exit): Do not use number_of_iterations_special.
8208         * tree.c (unsigned_type_for): Always return integer type.
8209
8210 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
8211         Richard Guenther  <rguenther@suse.de>
8212
8213         PR rtl-optimization/24257
8214         * gcse.c (find_moveable_store): Only consider a store movable
8215         when the SET_SRC of the insn can be assigned to a register.
8216
8217 2006-01-14  Ian Lance Taylor  <ian@airs.com>
8218
8219         * tree.c (tree_not_class_check_failed): New function.
8220         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
8221         (tree_not_class_check_failed): Declare.
8222
8223 2006-01-13  Ian Lance Taylor  <ian@airs.com>
8224
8225         * reload1.c (do_output_reload): Add assertion rejecting a
8226         CALL_INSN.
8227
8228 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
8229
8230         * combine.c (struct reg_stat): Add new fields truncation_label and
8231         truncated_to_mode.
8232         (record_value_for_reg): Reset truncated_to_mode.
8233         (record_truncated_value): New function.
8234         (check_promoted_subreg): Call it.  Rename to check_conversions.
8235         (combine_instructions): Rename check_promoted_subreg to
8236         check_conversions.
8237         (reg_truncated_to_mode): New function.
8238         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
8239         (gen_lowpart_or_truncate): New function.
8240         (force_to_mode): Use it instead of gen_lowpart.
8241
8242 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
8243
8244         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
8245         VAR is a tag, not its type tag.
8246
8247 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
8248
8249         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
8250         alternatives to match style of other entries.
8251         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
8252
8253 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
8254
8255         PR tree-optimization/25771
8256         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
8257         SSA_NAMES.
8258
8259 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
8260
8261         PR tree-opt/24365
8262         * tree-inline.c (declare_return_variable): If the return variable
8263         was marked as a non gimple complex, set the return slot variable
8264         to be a non gimple comple variable.
8265
8266 2006-01-13  Richard Guenther  <rguenther@suse.de>
8267
8268         * builtins.c (expand_builtin_sincos): New function.
8269         (expand_builtin_mathfn_3): Remove dead code, sin and cos
8270         do not set errno.
8271         (expand_builtin): Expand sincos using expand_builtin_sincos.
8272
8273 2006-01-12  DJ Delorie  <dj@redhat.com>
8274
8275         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
8276         shift counts, separate SI shifts for m32c vs m16c, pass shift type
8277         so that constant shifts can be split.
8278         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
8279         (m32c_valid_pointer_mode): Make static.
8280         (shift_gen_func_for): New.
8281         (m32c_prepare_shift): Use it.  Split large const shifts into
8282         multiple shifts.
8283         * config/m32c/predicates.md (shiftcount_operand): Allow more
8284         general operands.
8285         (longshiftcount_operand): New.
8286         * doc/md.texi (Machine Constraints): Document In6.
8287
8288 2006-01-13  Ben Elliston  <bje@au.ibm.com>
8289
8290         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
8291         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
8292         documentation.
8293
8294 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
8295
8296         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
8297         to try to avoid clobbering pieces of structures when we know
8298         something about the whole structure.
8299         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
8300
8301 2006-01-13  Ben Elliston  <bje@au.ibm.com>
8302
8303         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
8304         return in memory, as this is no limitation is no longer present.
8305
8306 2006-01-12  DJ Delorie  <dj@redhat.com>
8307
8308         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
8309         mova with fb, and for fb+0 -> An.
8310
8311         * config/m32c/mov.md (peephole2): Fix enabling logic.
8312
8313         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
8314         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
8315         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
8316         FINI_ARRAY_SECTION_ASM_OP): Define.
8317
8318         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
8319         variable.
8320         (m32c_legitimize_reload_address): New logic to reload FB to An.
8321         (m32c_output_reg_push): Add newline.
8322         (m32c_output_reg_pop): Likewise.
8323
8324 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
8325
8326         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
8327
8328 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
8329
8330         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
8331
8332 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
8333
8334         * config/sh/predicates.md (sh_rep_vec): Add parallel to
8335         match_code.
8336
8337 2006-01-11  Ben Elliston  <bje@au.ibm.com>
8338
8339         * rtlanal.c (find_reg_note): Assert insn is not null.
8340
8341 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
8342
8343         * df-scan.c (df_hard_reg_init): Move declaration of i outside
8344         ifdef.
8345
8346 2006-01-11  Jeff Law  <law@redhat.com>
8347
8348         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
8349         hold edge pairs.
8350         (mark_threaded_blocks, register_jump_thread): New functions.
8351         (thread_through_all_blocks): Remove unwanted argument.  No
8352         longer rely on e->aux to communicate thread target info.
8353         Call mark_threaded_blocks.  Release the threaded_blocks
8354         bitmap and threaded_edges vector when complete.
8355         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
8356         (threaded_blocks): Remove.
8357         (tree_ssa_dominator_optimize): Remove initialization and
8358         finalization of threaded_blocks.  Simplify call to
8359         thread_through_all_blocks.
8360         (thread_across_edge): Call register_jump_thread rather than
8361         storing thread information into e->aux.
8362         (free_all_edge_infos): Simplify now that e->aux is no longer
8363         used to communicate with thread_through_all_blocks.
8364         * tree-flow.h (thread_through_all_blocks): Update prototype.
8365         (register_jump_thread): Prototype.
8366
8367 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
8368
8369         * df-core.c (df_compact_blocks, df_bb_replace): Use
8370         SET_BASIC_BLOCK instead of BASIC_BLOCK.
8371
8372 2006-01-11  Richard Guenther  <rguenther@suse.de>
8373
8374         PR tree-optimization/25734
8375         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
8376         stop propagation after successful propagation to the LHS.
8377
8378 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
8379
8380         * basic-block.h (control_flow_graph): Change the type of
8381         x_basic_block_info to VEC(basic_block,gc) *.
8382         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
8383         basic_block_info.
8384         (SET_BASIC_BLOCK): New.
8385         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
8386         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
8387         * cfgbuild.c (find_basic_blocks): Likewise.
8388         * cfglayout.c (fixup_reorder_chain): Likewise.
8389         * cfgrtl.c (create_basic_block_structure,
8390         rtl_create_basic_block): Likewise.
8391         * ifcvt.c (find_if_case_1): Likewise.
8392         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
8393         Likewise.
8394
8395 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
8396
8397         * Makefile.in: Removed rotted odf.c entry.
8398
8399 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
8400
8401         PR target/25706
8402         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
8403         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
8404         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
8405         output pattern modifier, not %e.
8406         * config/cris/cris.c (cris_op_str): Update comment about pattern
8407         modifier.
8408         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
8409         before falling through into...
8410         <case 'E'>: Redefined from old 'e' case.
8411
8412 2006-01-11  Jan Hubicka  <jh@suse.cz>
8413
8414         PR target/25042
8415         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
8416
8417 2006-01-11  Jan Hubicka  <jh@suse.cz>
8418
8419         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
8420         * i386.c (x86_decompose_lea): Kill.
8421         (ix86_rtx_costs): Kill.
8422
8423 2006-01-11  Jan Hubicka  <jh@suse.cz>
8424
8425         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
8426         * cgraph.h (cgraph_node): Add inline_decl.
8427         (cgraph_insert_node_to_hashtable): Declare.
8428         (save_inline_function_body): Declare.
8429         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
8430         clones.
8431         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
8432         (cgraph_function_versioning): Update call of tree_function_versioning.
8433         (save_inline_function_body): New function.
8434         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
8435         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
8436         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
8437         (cgraph_default_inline_p): Likewise.
8438         (cgraph_decide_inlining_incrementally): Likewise.
8439         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
8440         (copy_bb): Kill saving; do updating of clones.
8441         (copy_cfg_body): Kill saving.
8442         (initialize_inlined-parameters): Likewise.
8443         (expand_call_inline): Likewise.
8444         (save_body): Kill.
8445         (tree_function_versioning): New parameter "update_clones".
8446         (inlining_p): Kill saving.
8447         * tree-inline.h (tree_function_versioning): Update prototype.
8448         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
8449         saving.
8450
8451 2006-01-11  Ian Lance Taylor <ian@airs.com>
8452
8453         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
8454         Allow undoing set of machine mode.
8455         (do_SUBST): Use enums instead of is_int.
8456         (do_SUBST_MODE): New function.
8457         (SUBST_MODE): New macro.
8458         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
8459         reg and trying to replace reg_regno_rtx with a new register.
8460         (undo_all): Use new enums, handle undoing a PUT_MODE change.
8461         (simplify_set): Use SUBST_MODE.
8462         (distribute_notes): Remove code that tried to update reg notes
8463         for regno_reg_rtx changes.
8464
8465 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
8466
8467         PR tree-optimization/23109
8468         PR tree-optimization/23948
8469         PR tree-optimization/24123
8470
8471         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
8472         * tree-cfg.c (single_noncomplex_succ): New.
8473         * tree-flow.h (single_noncomplex_succ): Declare it.
8474         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
8475         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
8476         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
8477         insert_bb, register_division_in, insert_reciprocals,
8478         replace_reciprocal, free_bb): New.
8479         (execute_cse_reciprocals_1): Rewritten.
8480         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
8481         Do not commit any edge insertion.  Always compute dominators and
8482         create the allocation pool.
8483         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
8484         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
8485         * targhooks.c (default_min_divistions_for_recip_mul): New.
8486         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
8487         * passes.c (init_optimization_passes): Run recip after tree loop
8488         optimizations.
8489         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
8490
8491 2006-01-11  Danny Berlin <dberlin@dberlin.org>
8492             Kenneth Zadeck <zadeck@naturalbridge.com>
8493
8494         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
8495         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
8496         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
8497         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
8498         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
8499         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
8500         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
8501         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
8502         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
8503         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
8504         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
8505         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
8506         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
8507         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
8508         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
8509         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
8510         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
8511         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
8512         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
8513         DF_SCAN_POST_ALLOC): New macros.
8514         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
8515         df_free_bb_function, df_local_compute_function, df_init_function,
8516         df_dataflow_function, df_confluence_function_0,
8517         df_confluence_function_n, df_transfer_function,
8518         df_finalizer_function, df_free_function, df_dump_problem_function,
8519         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
8520         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
8521         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
8522         df_urec_bb_info, ) New types.
8523         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
8524         variables.
8525         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
8526         df_analyze_simple_change_some_blocks,
8527         df_analyze_simple_change_one_block, df_compact_blocks,
8528         df_bb_replace, df_bb_regno_last_use_find,
8529         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
8530         df_insn_regno_def_p, df_find_def, df_find_use,
8531         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
8532         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
8533         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
8534         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
8535         debug_df_chain, df_get_dependent_problem, df_chain_create,
8536         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
8537         df_grow_bb_info, df_chain_dump, df_print_bb_index,
8538         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
8539         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
8540         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
8541         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
8542         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
8543         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
8544         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
8545         df_ref_remove, df_insn_refs_delete, df_refs_delete,
8546         df_reorganize_refs, df_set_state, df_hard_reg_init,
8547         df_read_modify_subreg_p) New public functions.
8548         * df-core.c: The core dataflow solver and glue routines for rtl
8549         dataflow.
8550         (df_init, df_add_problem, df_set_blocks, df_finish,
8551         df_hybrid_search_forward, df_hybrid_search_backward,
8552         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
8553         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
8554         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
8555         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
8556         df_reg_defined, df_find_use, df_reg_used, df_dump,
8557         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
8558         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
8559         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
8560         debug_df_useno, reset_df_after_reload): New functions.
8561         * df-scan.c: The scanning fuctions, once in df.c, completely
8562         rewritten so that they now fully model the functionality of
8563         register usage at the backend.
8564         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
8565         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
8566         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
8567         df_grow_insn_info, df_rescan_blocks, df_ref_create,
8568         df_get_artificial_defs, df_get_artificial_uses,
8569         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
8570         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
8571         df_refs_delete, df_reorganize_refs, df_set_state,
8572         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
8573         df_def_record_1, df_defs_record, df_uses_record,
8574         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
8575         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
8576         df_record_exit_block_uses, df_hard_reg_init): New functions.
8577
8578         * df-problems.c: Seven concrete dataflow problems that use the
8579         scanning in df-scan.c and are solved by the engine in df-core.c.
8580         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
8581         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
8582         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
8583         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
8584         df_ru_free_bb_info, df_ru_alloc,
8585         df_ru_bb_local_compute_process_def,
8586         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
8587         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
8588         df_ru_transfer_function, df_ru_free, df_ru_dump,
8589         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
8590         df_rd_free_bb_info, df_rd_alloc,
8591         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
8592         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
8593         df_rd_transfer_function, df_rd_free, df_rd_dump,
8594         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
8595         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
8596         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
8597         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
8598         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
8599         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
8600         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
8601         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
8602         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
8603         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
8604         df_urec_mark_reg_change, df_urec_check_earlyclobber,
8605         df_urec_mark_reg_use_for_earlyclobber,
8606         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
8607         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
8608         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
8609         df_urec_dump, df_urec_add_problem, df_chain_alloc,
8610         df_chain_create_bb_process_use, df_chain_create_bb,
8611         df_chain_finalize, df_chain_free, df_chains_dump,
8612         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
8613         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
8614         df_reg_lifetime): New functions.
8615         * df.c: Deleted file.
8616         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
8617         consistent with new df api.
8618         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
8619         rest_of_handle_sms): Ditto.
8620         * web.c (unionfind_union, union_defs, entry_register, web_main):
8621         Ditto.
8622         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
8623         invariant_expr_equal_p, find_defs, check_dependencies,
8624         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
8625         free_inv_motion_data, move_loop_invariants): Ditto.
8626         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
8627         Update dependencies.
8628         (odf.c): Added defective entry that was deleted later in day.
8629         * sched-deps.c (sched_analyze_1): Ditto.
8630
8631 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
8632
8633         * tree-ssa-operands.c (get_expr_operands): Record addressable
8634         variables directly.  Do not call add_stmt_operands for CONST_DECLs
8635         and ARRAY_DECLs.
8636         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
8637         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
8638
8639 2006-01-11  Ben Elliston  <bje@au.ibm.com>
8640
8641         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
8642         function returns true in the positive case.
8643
8644 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8645
8646         PR target/20754
8647         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
8648         for SI, DI, SF and DF modes.  Add alternatives to copy between
8649         general and floating point registers to the 32-bit patterns.
8650         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
8651         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
8652         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
8653         generating 64-bit code.
8654         * config/pa/pa.c (output_move_double): Handle copies between general
8655         and floating registers.
8656
8657 2006-01-10  Stuart Hastings  <stuart@apple.com>
8658
8659         * config/i386/i386.md (set_got): Update.
8660         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
8661         (builtin_setjmp_receiver): Mach-O support.
8662         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
8663         (GOT_SYMBOL_NAME): Define.
8664         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
8665         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8666         * config/i386/i386.c (override_options): Revise for Darwin.
8667         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
8668         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
8669         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
8670         * config/i386/i386-protos.h (output_set_got): Likewise.
8671         * config/darwin.c (machopic_legitimize_pic_address): Update
8672         regs_ever_live[].
8673
8674 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8675
8676         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
8677         when MODE isn't BLKmode.
8678
8679 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
8680
8681         PR rtl-optimization/25367
8682         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
8683
8684 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
8685
8686         PR target/25718
8687         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
8688         for a negative bound.
8689
8690 2006-01-10  Richard Guenther  <rguenther@suse.de>
8691
8692         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8693         Never override with anything constraint.
8694
8695 2006-01-10  Jan Beulich  <jbeulich@novell.com>
8696
8697         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
8698         256 bits when optimize_size.
8699
8700 2006-01-10  Jan Beulich  <jbeulich@novell.com>
8701
8702         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
8703         MASK_ALIGN_DOUBLE.
8704         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
8705         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
8706         arguments.
8707
8708 2006-01-10  Ben Elliston  <bje@au.ibm.com>
8709
8710         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
8711         float modes.
8712         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
8713         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
8714         (USE_FP_FOR_ARG): Reject decimal float modes.
8715         (function_arg_advance): Likewise.
8716         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
8717         (rs6000_handle_altivec_attribute): Do not permit decimal floating
8718         point types in AltiVec vectors.
8719         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
8720         (rs6000_libcall_value): Likewise.
8721
8722 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
8723
8724         * config/xtensa/ieee754-df.S: New file.
8725         * config/xtensa/ieee754-sf.S: New file.
8726         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
8727         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
8728         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
8729
8730 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
8731
8732         * config/sh/predicates.md (binary_float_operator,
8733         binary_logical_operator, commutative_float_operator,
8734         equality_comparison_operator, greater_comparison_operator,
8735         less_comparison_operator, logical_operator,
8736         noncommutative_float_operator, shift_operator,
8737         symbol_ref_operand, unary_float_operator): Remove redundant
8738         conditionals.
8739
8740 2006-01-09  Jeff Law  <law@redhat.com>
8741
8742         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
8743         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
8744         now unused arguments.  Callers updated.
8745         (eliminate_redundant_computations): Remove now unused arguments,
8746         callers updated.
8747         (local_fold): Remove, no longer used.
8748         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
8749         and moved to...
8750         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
8751         (simplify_cond): New function.
8752         (forward_propagate_into_cond): Call simplify_cond.
8753
8754 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
8755
8756         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
8757         (*vec_extractv2di_1_sse): New.
8758
8759 2006-01-09  Ben Elliston  <bje@au.ibm.com>
8760
8761         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
8762
8763 2006-01-08  Richard Guenther  <rguenther@suse.de>
8764
8765         * tree-ssa-structalias.c (get_constraint_for): Remove
8766         anyoffset argument.
8767         (get_constraint_for_component_ref): Likewise.
8768         (do_deref): Likewise.
8769         (get_constraint_for): Likewise.
8770         (do_structure_copy): Likewise.
8771         (handle_ptr_arith): Likewise.
8772         (find_func_aliases): Likewise.  Remove unused need_anyoffset
8773         variable.
8774
8775 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
8776             Kaz Kojima  <kkojima@gcc.gnu.org>
8777
8778         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
8779         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
8780         (EXTRA_CONSTRAINT_C16): Remove.
8781         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
8782         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
8783         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
8784         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
8785         constants of SHmedia.  Handle nested constant expressions of
8786         SHmedia correctly.
8787         (andcosts): Fix the costs for SHmedia constants.
8788         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
8789         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
8790         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
8791         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
8792         (movv4hi_i, movv2si_i): Likewise.
8793         (movsi_const): Adjust the second operand of ior so to match with
8794         the Csu constraint.
8795         (movdi_const, movdi_const_32bit): Likewise.
8796         (movdi_const_16bit+1): Don't sign-extend LOW.
8797         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
8798         step.
8799         (*double_shori): Fix the split condition.  Use GEN_INT instead
8800         of get_int_mode calls.  Mask lower 16-bit of the argument of
8801         the last GEN_INT.
8802         (sym2GOTPLT): Remove.
8803         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
8804         gen_rtx_UNSPEC.
8805         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
8806         instead of EXTRA_CONSTRAINT_C16.
8807
8808 2006-01-07  Ian Lance Taylor  <ian@airs.com>
8809             David Edelsohn  <edelsohn@gnu.org>
8810
8811         PR rtl-optimization/25662
8812         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
8813         for constant operands instead of simplify_gen_binary.
8814         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
8815         after trying simplify_binary_operation
8816
8817 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
8818
8819         * tree.c (iterative_hash_expr): Hash decls based on UID.
8820
8821 2006-01-06  Eric Christopher  <echristo@apple.com>
8822
8823         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
8824         (TARGET_UNWIND_EMIT): Fix spelling.
8825         * target.h (gcc_target): Add except_table_label.
8826         * except.c (output_function_exception_table): Use.
8827         * varasm.c (default_emit_except_table_label): New.
8828         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
8829         define.
8830         (asm_out): Add here.
8831         * output.h (default_emit_except_table_label): Prototype.
8832         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
8833         * config/darwin.c (darwin_emit_except_table_label): Define.
8834         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
8835
8836 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
8837
8838         PR tree-optimization/18527
8839         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8840         number_of_iterations_special, number_of_iterations_exit):
8841         Move base and step of an iv to a single structure.  Add
8842         no_overflow flag, and use it in # of iterations analysis.
8843         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
8844         folded_casts argument.
8845         (simple_iv): Pass base and step in a structure.  Set no_overflow
8846         flag.
8847         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
8848         Evaluate expensiveness of computing # of iterations instead of
8849         the final expression.
8850         * tree-scalar-evolution.h (affine_iv): New structure.
8851         (simple_iv): Declaration changed.
8852         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
8853         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
8854         find_givs_in_stmt): Changed due to simple_iv change.
8855
8856 2006-01-06  Jeff Law  <law@redhat.com>
8857
8858         PR ada/24994
8859         * tree-cfg.c (bsi_replace): Rename final argument from
8860         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
8861         change (stmt -> orig_stmt).
8862         * tree-eh.c (verify_eh_throw_stmt_node): New function.
8863         (bsi_remove): Add new argument.  Remove EH information
8864         if requested.
8865         (verify_eh_throw_table_statements): New function.
8866         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
8867         updated.
8868         * tree-optimize.c (execute_free_cfg_annotations): Verify
8869         the EH throw statement table after removing annotations.
8870         * except.h (verify_eh_throw_table_statements): Prototype.
8871         * tree-flow.h (bsi_remove): Update prototype.
8872         * tree-vrp.c (remove_range_assertions): Add new argument to
8873         bsi_remove call.
8874         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
8875         * tree-complex.c (expand_complex_div_wide): Likewise.
8876         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
8877         * tree-tailcall.c (eliminate_tailcall): Likewise.
8878         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
8879         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
8880         * tree-nrv.c (tree_nrv): Likewise.
8881         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
8882         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
8883         (combine_blocks): Likewise.
8884         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
8885         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
8886         (cleanup_control_flow): Likewise.
8887         (remove_forwarder_block): Likewise.
8888         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
8889         * tree-sra.c (sra_replace): Likewise.
8890         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
8891         (forward_propagate_single_use_vars): Likewise.
8892         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
8893         * tree-inline.c (expand_call_inline): Likewise.
8894         * tree-vect-transform.c (vect_transform_loop): Likewise.
8895         * tree-outof-ssa.c (rewrite_trees): Likewise.
8896         * tree-cfg.c (make_goto_expr_edges): Likewise.
8897         (cleanup_dead_labels): Likewise.
8898         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
8899         (bsi_move_before, bsi_move_after): Likewise.
8900         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
8901         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
8902
8903 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
8904
8905         PR tree-opt/25528
8906         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
8907         and IMAGPART_EXPR.
8908         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
8909         on non gimple variables.  Also add checks at the top for decls and
8910         mtags.
8911         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
8912         complex types.
8913         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
8914         and IMAGPART_EXPR for creating MUST_DEFs.
8915         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
8916         and NAME_MEMORY_TAG separately from the DECLs.
8917
8918 2006-01-06  Richard Guenther  <rguenther@suse.de>
8919
8920         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
8921         annotation, if necessary.
8922         * tree-ssa-pre.c (create_expression_by_pieces): Remove
8923         redundant calls to update_stmt.
8924         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
8925         Likewise.
8926
8927 2006-01-05  Richard Henderson  <rth@redhat.com>
8928
8929         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
8930
8931 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
8932
8933         * c-typeck.c: Update copyright date.
8934
8935 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
8936
8937         * c-typeck.c (build_c_cast): Always warn when casting
8938         from a pointer to an integer of different size, even if
8939         the node was constant.
8940
8941 2006-01-05  Richard Guenther  <rguenther@suse.de>
8942
8943         PR tree-optimization/22555
8944         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
8945         if one structure field is an array.
8946         * tree-ssa-operands.c (get_expr_operands): Continue scanning
8947         operands even if we found a subvar, but ignore VOPs in this
8948         case.
8949         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
8950         for renaming.
8951         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
8952
8953 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
8954
8955         PR middle-end/24998
8956         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
8957
8958 2006-01-05  Richard Guenther  <rguenther@suse.de>
8959             Diego Novillo  <dnovillo@redhat.com>
8960
8961         * tree-pass.h (TODO_remove_unused_locals): Define.
8962         * gimple-low.c (expand_var_p, remove_useless_vars,
8963         pass_remove_useless_vars): Remove.  Update all users.
8964         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
8965         (remove_unused_locals): New function.
8966         * tree-flow.h (remove_unused_locals): Declare.
8967         * passes.c (execute_todo): Call remove_unused_locals if
8968         TODO_remove_unused_locals is set.
8969         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
8970         * tree-ssa-dce.c (pass_dce): Likewise.
8971         * tree-outof-ssa.c (pass_del_ssa): Likewise.
8972
8973 2006-01-05  Richard Guenther  <rguenther@suse.de>
8974
8975         * tree-flow.h (struct fieldoff): Decompose field to
8976         type, size and decl.
8977         * tree-ssa-alias.c (create_sft): Take type as parameter.
8978         (create_overlap_variables_for): Store type, size and decl
8979         in the fieldoff structure.
8980         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
8981         of struct fieldoff.
8982         (push_fields_onto_fieldstack): Likewise.
8983         (create_variable_info_for): Likewise.  Use offset for the
8984         SFT name if the decl is not available.
8985
8986 2006-01-04  Paul Brook  <paul@codesourcery.com>
8987
8988         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
8989
8990 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
8991
8992         * lambda-code.c (can_put_in_inner_loop): Relax
8993         restrictions.
8994         (can_put_after_inner_loop): New function.
8995         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
8996         (perfect_nestify): Change to make copies and modify uses.
8997
8998 2006-01-04  Richard Henderson  <rth@redhat.com>
8999
9000         Merge from gomp branch:
9001         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
9002         via integer constant.
9003         (pragma_lex): Remove.
9004         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
9005         rather than parsing it.
9006         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
9007         handle_pragma_extern_prefix): Add %< %> quotes.
9008         (registered_pragmas): New.
9009         (c_register_pragma_1): New.
9010         (c_register_pragma): Use it.
9011         (c_register_pragma_with_expansion): Likewise.
9012         (c_invoke_pragma_handler): New.
9013         (init_pragma): Use cpp_register_deferred_pragma directly for
9014         pch_preprocess.
9015         * c-pragma.h (enum pragma_kind): New.
9016         (pragma_handler): New.
9017         (c_invoke_pragma_handler): Declare.
9018         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
9019         CPP_PRAGMA_EOL.
9020         * c-common.h (c_common_pch_pragma): Update decl.
9021         * Makefile.in (c-parser.o): Update dependencies.
9022         (GTFILES): Add c-pragma.h.
9023         * c-parser.c (struct c_token): Add pragma_kind.
9024         (struct c_parser): Add in_pragma.
9025         (c_lex_one_token): Always initialize keyword and pragma_kind.
9026         Extract data for CPP_PRAGMA.
9027         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
9028         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
9029         Don't allow CPP_PRAGMA_EOL if in_pragma.
9030         (c_parser_consume_pragma): New.
9031         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
9032         (c_parser_skip_to_end_of_parameter): Likewise.
9033         (c_parser_skip_to_end_of_block_or_statement): Likewise.
9034         (c_parser_skip_to_pragma_eol): New.
9035         (c_parser_external_declaration): Handle CPP_PRAGMA.
9036         (c_parser_compound_statement_nostart): Likewise.
9037         (c_parser_statement_after_labels): Likewise.
9038         (c_parser_pragma): New.
9039         (pragma_lex): Likewise.
9040         (c_parser_pragma_pch_preprocess): New.
9041         (c_parser_new): Merge into ...
9042         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
9043
9044 2006-01-04  Jeff Law  <law@redhat.com>
9045
9046         PR ada/24994
9047         * tree-cfg.c (bsi_replace): Remove the original statement
9048         from the EH throw statement table.
9049
9050 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
9051
9052         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
9053         make the prototype extern "C" and add throw ().
9054
9055         PR target/25554
9056         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
9057         and pos non-negative and pos + len <= 32.
9058         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
9059         drop pos + len < HOST_BITS_PER_WIDE_INT test.
9060         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
9061
9062         PR c/25559
9063         * c-common.c (handle_vector_size_attribute): Reject zero vector size
9064         as well as sizes not multiple of component size.
9065
9066         PR debug/25562
9067         * function.c (instantiate_expr): New function.
9068         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
9069         walk its DECL_VALUE_EXPR with instantiate_expr.
9070
9071         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
9072         DW_OP_deref{,_size} if address isn't going to be added.
9073
9074 2006-01-04  Ben Elliston  <bje@au.ibm.com>
9075
9076         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
9077         * config/fp-bit.c: Likewise.
9078
9079 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
9080
9081         * dominance.c: Add comment about why we use DFS numbering
9082         of dominance tree.
9083
9084 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
9085             Richard Henderson  <rth@redhat.com>
9086
9087         Merge from gomp-branch:
9088         * varasm.c (assemble_variable): Handle thread-local COMMON data.
9089         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
9090
9091 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
9092
9093         PR rtl-optimization/25578
9094         * combine.c (combine_simplify_rtx, force_to_mode): Don't
9095         pass a parameter to simplify_shift_const if changing ASHIFTRT
9096         to LSHIFTRT.
9097
9098 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
9099
9100         * builtins.c (get_builtin_sync_mem): New function.
9101         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
9102         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
9103         Call get_builtin_sync_mem to generate mem rtx.
9104
9105 2006-01-03  Richard Guenther  <rguenther@suse.de>
9106
9107         PR c/25183
9108         * stmt.c (add_case_node): Make sure to clear overflow flags
9109         from ranges.
9110
9111 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
9112
9113         Merge from gomp-branch.
9114         * config/sparc/sync.md: New file.
9115         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
9116         UNSPECV_LDSTUB): New constants.
9117         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
9118         * config/sparc/predicates.md (memory_reg_operand): New predicate.
9119         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
9120         prototype.
9121
9122 2006-01-03  Roger Sayle  <roger@eyesopen.com>
9123
9124         * combine.c (reg_subword_p): New predicate to test whether the
9125         destination of a set refers to a subword/piece of a register.
9126         (try_combine): Generalize the code to merge the setting of a
9127         pseudo to a constant followed by a set of a subword of that
9128         register to a constant.
9129
9130 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
9131
9132         * basic-block.h (control_flow_graph): Change the type of
9133         x_label_to_block_map to VEC(basic_block,gc) *.
9134         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
9135         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
9136
9137         * tree-ssa-propagate.c (cfg_blocks): Change the type to
9138         VEC(basic_block,heap) *.
9139         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
9140         ssa_prop_fini): Adjust the uses of cfg_blocks.
9141
9142 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
9143
9144         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
9145         COMPONENT_REFs.
9146         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
9147         hashing trees instead of a pointer hash.
9148         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
9149         compare for MEM_EXPR.
9150
9151         PR rtl-optimization/25130
9152         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
9153         when comparing MEMs for GCSE
9154
9155 2006-01-03  Ben Elliston  <bje@au.ibm.com>
9156
9157         * targhooks.h (default_decimal_float_supported_p): Declare.
9158         * targhooks.c (default_decimal_float_supported_p): Define.
9159         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
9160         `default_decimal_float_supported_p'.
9161         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
9162
9163 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
9164
9165         * combine.c (apply_distributive_law <SUBREG>): Check
9166         TRULY_NOOP_TRUNCATION.
9167
9168 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
9169
9170         * dwarf2out.c (have_switched_text_section): Delete.
9171         (have_multiple_function_sections): New.
9172         (have_location_lists): Make 'bool'.
9173         (add_AT_loc_list): Use 'true' not '1'.
9174         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
9175         (output_loc_list): Use have_multiple_function_sections.
9176         (output_ranges): Likewise.
9177         (dwarf2out_begin_function): Set have_multiple_function_sections if
9178         necessary.
9179         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
9180         Check function_section rather than DECL_SECTION_NAME.
9181         (dwarf2out_finish): Use have_multiple_function_sections.
9182         Don't clear have_location_lists.
9183
9184 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
9185             Jan Hubicka  <jh@suse.cz>
9186
9187         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
9188         case of conditional jump jumping to the next instruction.
9189         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
9190         cases of conditional jump jumping to the next instruction.
9191
9192 2006-01-02  Jan Hubicka  <jh@suse.cz>
9193
9194         * i386.c (*_cost): Add COSTS_N_INSNS.
9195         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
9196
9197 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
9198
9199         PR target/25259
9200         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
9201
9202 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9203
9204         * config/arm/arm.c (all_fpus): Fix comment typo.
9205         * config/darwin.c: Likewise.
9206         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
9207         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
9208         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
9209
9210 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
9211
9212         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
9213         (rs6000_split_compare_and_swapqhi): New.
9214         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
9215         (sync_compare_and_swapqhi_internal): New.
9216         * config/rs6000/rs6000-protos.h: Declare.