OSDN Git Service

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