OSDN Git Service

b912f617a9865e61f3e89dc5031230e096beed6a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         PR middle-end/26022
4         Revert:
5         PR middle-end/24437
6         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
7         with a call expr to ...
8         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
9
10 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
11
12         * tree-vrp.c (extract_range_from_assert): Remove special
13         handling for types with super-types.
14
15 2006-03-01  Ben Elliston  <bje@au.ibm.com>
16
17         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
18         and powerpc64-*-linux* configurations.
19         * config/t-dfprules: New file.
20
21         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
22         Compile dfp-bit.c from the source directory using -DWIDTH and
23         $DFP_CFLAGS to control the compilation of that file, rather than
24         generating width-specific versions in the build directory.
25         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
26         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
27
28 2006-02-28  Zack Weinberg  <zackw@panix.com>
29
30         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
31         continues to work.
32
33 2006-02-28  Eric Christopher  <echristo@apple.com>
34
35         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
36         Set up IN_LIBGCC definition of TARGET_64BIT.
37         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
38
39 2006-02-28  Roger Sayle  <roger@eyesopen.com>
40
41         PR middle-end/14752
42         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
43         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
44         cases via the construction of "expr != 0".
45
46 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
47
48         * alias.c (alias_invariant, alias_invariant_size): Remove.
49         (record_base_value): Remove.
50         (memrefs_conflict_p): Don't look at alias_invariant.
51         (end_alias_analysis): Don't free it.
52         * alias.h (record_base_value): Remove prototype.
53
54 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
55             Adam Nemet  <anemet@caviumnetworks.com>
56
57         * rtl.h (truncated_to_mode): Declare it.
58         (struct rtl_hooks): Add reg_truncated_to_mode hook.
59         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
60         (RTL_HOOKS_INITIALIZER): Include it.
61         * rtlhooks.c (reg_truncated_to_mode_general): New function.
62         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
63         reg_truncated_to_mode.
64         * rtlanal.c (truncated_to_mode): Define it.
65         * simplify-rtx.c (simplify_unary_operation_1): Use it.
66
67 2006-02-28  Jeff Law  <law@redhat.com>
68
69         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
70         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
71         the range allowed by TYPE_PRECISION.
72
73         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
74
75 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
76
77         PR tree-optimization/26419
78         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
79         values of n.
80
81 2006-02-27  Zack Weinberg  <zackw@panix.com>
82
83         * doc/md.texi: Fix typo in previous change.
84
85 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
86
87         * df.c: Remove.
88
89 2006-02-27  Zack Weinberg  <zackw@panix.com>
90
91         * rtl.def (define_constraint, define_register_constraint)
92         (define_memory_constraint, define_address_constraint): New MD forms.
93         * gensupport.c (process_rtx): Put define_constraint etc on the
94         predicate queue.
95         * genpreds.c (process_define_predicate): Adjust comment.  Validate
96         the name, and call validate_exp to validate the expression.
97         (mark_mode_tests, write_extract_subexp): Can assume correct input.
98         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
99         all callers changed.
100         (validate_exp, needs_variable, struct constraint_data)
101         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
102         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
103         (const_dbl_constraints, constraint_max_namelen)
104         (have_register_constraints, have_memory_constraints)
105         (have_address_constraints, have_address_constraints)
106         (have_extra_constraints, have_const_int_constraints)
107         (have_const_dbl_constraints, mangle, add_constraint)
108         (process_define_constraint, process_define_register_constraint)
109         (write_enum_constraint_num, write_lookup_constraint)
110         (write_insn_constraint_len, write_regclass_for_constraint)
111         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
112         (write_insn_extra_memory_constraint)
113         (write_insn_extra_address_constraint)
114         (write_satisfies_constraint_fns): New.
115         (write_tm_preds_h): If we have new-style constraint definitions,
116         prototype the functions generated from them, and define the
117         old constraint interface (still used by generic code) in terms of
118         those functions.
119         (write_insn_preds_c): If we have new-style constraint definitions,
120         generate all relevant functions from those definitions.
121         (main): Handle define_constraint etc.
122         * genoutput.c (struct constraint_data, indep_constraints)
123         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
124         (mdep_constraint_len): New data structures and functions, defined
125         #ifdef USE_MD_CONSTRAINTS.
126         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
127         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
128         use new logic to validate operand constraints against constraint
129         definitions.
130         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
131         defined.
132         * defaults.h: If none of the old-style constraint macros are
133         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
134         old-style macros; and poison REG_CLASS_FROM_LETTER,
135         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
136         EXTRA_CONSTRAINT.
137         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
138         * doc/md.texi: Document new constraint-definition mechanism and the
139         C interface it provides.  Remove references to old mechanism
140         elsewhere in the document.
141         (Machine Constraints): Use pathnames relative to gcc directory,
142         i.e. config/ARCH/FILE.  Change i386 section to refer to
143         config/i386/predicates.md; update that section to match docstrings.
144         * doc/tm.texi: Move all documentation of the old constraint-
145         definition macros to their own section, clearly mark as obsolete.
146
147         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
148         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
149         definitions.
150         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
151         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
152         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
153         constraint strings.
154         (splits and peepholes): Use satisfies_constraint_*.
155         * config/i386/i386.c (memory_address_length)
156         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
157
158 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
159
160         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
161         scalar operation to be put back into the loop.
162
163 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
164
165         PR other/26208
166         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
167         (extract_cie_info): Handle S flag in augmentation string.
168         (execute_cfa_program): If context->signal_frame, execute also
169         fs->pc == context->ra instructions.
170         (uw_frame_state_for): If context->signal_frame, don't subtract one
171         from context->ra to find FDE.
172         (uw_update_context_1): Set context->signal_frame to
173         fs->signal_frame.
174         (_Unwind_GetIPInfo): New function.
175         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
176         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
177         of _Unwind_GetIP.
178         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
179         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
180         * unwind-compat.c (_Unwind_GetIPInfo): New function.
181         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
182         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
183         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
184         * config/i386/linux-unwind.h (x86_fallback_frame_state,
185         x86_64_fallback_frame_state): Set fs->signal_frame.
186         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
187         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
188         (frob_update_context): Likewise.  Workaround missing S flag in
189         Linux 2.6.12 - 2.6.16 kernel vDSOs.
190         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
191         Remove the psw_addr + 1 hack.
192
193 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
194
195         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
196         with aggregates here.
197         (find_func_aliases): Remove code for &<aggregate> from here.
198
199 2006-02-26  Roger Sayle  <roger@eyesopen.com>
200
201         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold (~X & C) eq/ne 0 as
202         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
203         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
204         as (X & C) ne/eq 0.
205
206 2006-02-26  Roger Sayle  <roger@eyesopen.com>
207
208         PR middle-end/19983
209         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
210
211 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
212
213         * opts.c (decode_options): Do not handle flag_strength_reduce.
214         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
215         and OPT_fstrength_reduce.
216         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
217         flag_prefetch_loop_arrays for being nonzero.
218         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
219         no-ops.
220         (fprefetch-loop-arrays-rtl): Removed.
221         (flag_prefetch_loop_arrays): Do not specify the value.
222
223         * doc/passes.texi: Update documentation of loop optimizer
224         passes.
225         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
226         -frerun-loop-opt): Remove.
227
228 2006-02-26  Richard Guenther  <rguenther@suse.de>
229
230         PR tree-optimization/26421
231         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
232         in function calls that are ADDR_EXPRs as using the whole structure.
233
234 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
235
236         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
237         * tree-pass.h (pass_loop_optimize): Remove.
238         * passes.c (pass_loop_optimize): Never run it.
239         * toplev.c (backend_init): Don't call init_loop.
240         * opts.c (flag_loop_optimize_set): Remove.
241         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
242         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
243         the old RTL loop optimizer when profiling enabled.
244         * predict.c (tree_estimate_probability): Always strip builtin_expect.
245         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
246         pre-headers for the sake of the old RTL loop optimizer.
247         * Makefile.in: Remove all references to loop.o.
248
249         * doc/invoke.texi: Remove all references to -floop-optimize
250         and -frerun-loop-opt.
251
252 2006-02-26  Zack Weinberg  <zackw@panix.com>
253
254         * doc/md.texi (Machine Constraints): Refer to all files with paths
255         relative to gcc directory (i.e. config/CPU/file).  Add missing
256         @table @code ... @end table to M32C subsection.
257
258 2006-02-26  Roger Sayle  <roger@eyesopen.com>
259
260         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
261         (X & 1) == 0.
262         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
263
264 2006-02-26  Roger Sayle  <roger@eyesopen.com>
265             James A. Morrison  <phython@gcc.gnu.org>
266
267         PR middle-end/21137
268         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold ((X>>C1)&C2) eq/ne 0,
269         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
270         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
271         signedness of the shift operation.
272
273 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
274
275         PR tree-optimization/26359
276         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
277
278 2006-02-25  Roger Sayle  <roger@eyesopen.com>
279
280         * simplify-rtx.c (simplify_relational_operation_1):  Simplify
281         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
282         as X == 0, and some symmetry related transformations.
283         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
284
285 2006-02-25  Roger Sayle  <roger@eyesopen.com>
286
287         PR middle-end/23673
288         * fold-const.c (fold_binary) <EQ_EXPR>:  Fold (X^Y) == 0 as X == Y
289         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
290         symmetry related transformations.  Fold (X^C1) == C2 as
291         X == (C1^C2).
292
293 2006-02-25  Juergen Weigert  <jw@suse.de>
294         Richard Guenther  <rguenther@suse.de>
295
296         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
297
298 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
299
300         * combine.c (gen_lowpart_or_truncate): Call
301         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
302
303 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
304
305         * doc/invoke.texi: Move -fopenmp description to "Options for
306         Code Generation".
307         Remove reference to -lgomp.
308
309 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
310
311         * doc/install.texi: Require GNU tar version 1.14.
312
313 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
314
315         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
316         * doc/invoke.texi (C++ Dialect Options): Document
317         -fno-use-cxa-get-exception-ptr.
318         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
319         * configure: Regenerate.
320         * c.opt (fuse-cxa-get-exception-ptr): New.
321         * c-opts.c (c_common_handle_option): Handle
322         OPT_fuse_cxa_get_exception_ptr.
323         * c-common.c (flag_use_cxa_atexit): Update documentation.
324         (flag_use_cxa_get_exception_ptr): New.
325         * c-common.h (flag_use_cxa_get_exception_ptr): New.
326         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
327         documentation.
328         (C_COMMON_OVERRIDE_OPTIONS): New.
329
330 2006-02-24  Roger Sayle  <roger@eyesopen.com>
331
332         PR middle-end/24952
333         * combine.c (try_combine): Explicitly check whether GET_CODE is
334         a SET or a CLOBBER, instead on checking that it isn't a USE.
335
336 2006-02-24  Roger Sayle  <roger@eyesopen.com>
337
338         * fold-const.c (fold_comparison): New subroutine of fold_binary
339         containing transformations common to both the equality and
340         ordering relational operators, factored out of fold_binary.
341         (fold_binary): Separate out the equality operators (EQ_EXPR
342         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
343         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
344         transformations common to both.
345         (fold_div_compare): Fix latent bugs in the previously unreachable
346         LT_EXPR and GE_EXPR cases.
347
348 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
349
350         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
351         decl libname for clog to __clog on AIX.
352
353         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
354
355 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
356
357         PR target/26453
358         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
359         output traceback table for thunks.  Localise rs6000_stack_info call.
360
361 2006-02-23  Roger Sayle  <roger@eyesopen.com>
362             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
363
364         * gthr-posix.h (__gthrw): Fix typo in comment.
365
366 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
367
368         * doc/cpp.texi (Character sets): Document that we do support
369         input files to be in any character set.
370
371 2006-02-23  Jeff Law  <law@redhat.com>
372
373         * tree.h (PHI_ARG_NONZERO): Remove.
374         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
375         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
376         node to the new node.
377
378         PR tree-optimization/26425
379         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
380         min/max, then assume its varying.
381
382 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
383
384         PR rtl-optimization/26316
385         * rtlanal.c (enum may_trap_p_flags): New.
386         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
387         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
388         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
389         (may_trap_after_code_motion_p): New function.
390         * loop-invariant.c (find_identical_invariants): Fix dump formating.
391         (find_invariant_insn): Use may_trap_after_code_motion_p.
392         * rtl.h (may_trap_after_code_motion_p): Declare.
393
394 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
395
396         * emit-rtl.c (immed_double_const): Cleanup.
397
398 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
399
400         Fix PR tree-optimization/26376
401         * tree-ssa-structalias.c (find_func_aliases):  Use get_id_for_tree,
402         remove assert.
403
404 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
405
406         PR middle-end/26412
407         * gimplify.c (omp_add_variable): Guard variable size decl test with
408         DECL_SIZE (decl) check.
409
410 2006-02-23  Richard Guenther  <rguenther@suse.de>
411
412         PR middle-end/26439
413         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
414         like aggregate types.
415
416 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
417
418         * configure.ac: Add --with{,out}-long-double-128 configure option.
419         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
420         * configure: Rebuilt.
421         * config.in: Rebuilt.
422         * doc/install.texi (Options specification): Document
423         --with-long-double-128.
424
425         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
426         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
427         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
428         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
429
430 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
431
432         * config/s390/s390.c (override_options): Handle
433         TARGET_DEFAULT_LONG_DOUBLE_128.
434
435         * config/alpha/alpha.c (override_options): Handle
436         TARGET_DEFAULT_LONG_DOUBLE_128.
437
438         * config/sparc/sparc.c (sparc_override_options): Handle
439         TARGET_DEFAULT_LONG_DOUBLE_128.
440
441 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
442
443         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
444         (real-install-headers-tar, real-install-headers-cpio)
445         (real-install-headers-cp): New targets.
446
447 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
448
449         * tree.h (variable_section): Delete.
450         * varasm.c (variable_section): Delete.
451
452 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
453
454         * install.texi: Add notes on install.texi2html.
455         (Building in parallel): Do not use footnotes.
456
457 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
458
459         PR libgomp/26234
460         * doc/install.texi (Configuration): Document --disable-libgomp.
461
462 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
463
464         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
465
466 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
467
468         * config/i386/sse.md (vec_extractv2df_1_sse): New.
469         (vec_extractv2df_0_sse): New.
470
471 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
472
473         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
474         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
475         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
476         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
477         to the result of the expression.
478         (def_cfa_1): Adjust.
479         (frame_pointer_cfa_offset): Rename to...
480         (frame_pointer_fb_offset): ... this.  Adjust all uses.
481         (convert_cfa_to_loc_list): Rename to...
482         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
483         Pass it on to build_cfa_loc.
484         (compute_frame_pointer_to_cfa_displacement): Rename to...
485         (compute_frame_pointer_to_fb_displacement): ... this.  New
486         offset parameter.  Use it in computation.
487         (gen_subprogram_die): Compute cfa_fb_offset with the new
488         macro, and use it to compute the fb loc list and the
489         displacement.
490
491 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
492
493         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
494         replaced with register_operand.
495         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
496         non-DREG is expensive.
497         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
498         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
499         involving memory.
500
501 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
502
503         * doc/install.texi2html: Use set -e.
504
505 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
506
507         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
508         (ASM_OUTPUT_SHARED_LOCAL): Delete.
509         * doc/invoke.texi (-fshared-data): Delete.
510         * common.opt (fshared-data): Delete.
511         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
512         (assemble_static_space): Remove #if 0 code.
513         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
514         (ASM_OUTPUT_SHARED_LOCAL): Poison.
515         * config/cris/cris.h: Remove FIXME.
516
517 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
518
519         * doc/sourcebuild.texi (Front End Directory): No more double-colon
520         hooks.
521
522 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
523
524         PR middle-end/26379
525         * combine.c (simplify_shift_const_1): Disable nested shifts
526         optimization for vector shifts.
527
528 2006-02-20  Roger Sayle  <roger@eyesopen.com>
529
530         PR tree-optimization/26361
531         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
532         of unsigned integer types.
533
534 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
535
536         * tree-chrec.c (eq_evolutions_p): New.
537         * tree-chrec.h (eq_evolutions_p): Declared.
538         * tree-data-ref.c: Fix formatting.
539         (datadep_stats, dependence_stats): New.
540         (gcd): Moved...
541         (print_direction_vector): New.
542         (dump_data_dependence_relation): Use print_direction_vector.
543         (object_analysis, create_data_ref): Handle COMPONENT_REF.
544         (compute_subscript_distance): Static.
545         (initialize_data_dependence_relation): Static.  Get the number
546         of loops surrounding the references from the callers, and initialize
547         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
548         base_object_differ_p analyzers.
549         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
550         compute_overlap_steps_for_affine_1_2,
551         analyze_subscript_affine_affine): Count the classified dependences.
552         Print a message when a test failed.
553         (can_use_analyze_subscript_affine_affine): New.
554         (analyze_siv_subscript): Compute the data dependences on symbolic
555         scevs that verify can_use_analyze_subscript_affine_affine.
556         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
557         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
558         Handle symbolic scevs.
559         (analyze_overlapping_iterations): Let symbolic affine scevs to be
560         analyzed.
561         (subscript_dependence_tester): Moved...
562         (build_classic_dist_vector, build_classic_dir_vector): Don't use
563         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
564         DDR_SIZE_VECT instead of getting it in parameter.
565         (subscript_dependence_tester): ... here.  Take as a parameter
566         loop_nest_depth.  Call build_classic_dist_vector and
567         build_classic_dir_vector.
568         (compute_affine_dependence): Update subscript_dependence_tester
569         parameters.  Update datadep_stats counters.  Call
570         compute_subscript_distance.
571         (compute_self_dependence): Save the dist and dir vectors.  Call
572         compute_subscript_distance.
573         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
574         (compute_all_dependences): Reorder parameters as they were before
575         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
576         compute_subscript_distance.  Update the use of
577         compute_affine_dependence and initialize_data_dependence_relation.
578         (find_data_references_in_loop): Handle COMPONENT_REF.
579         (compute_data_dependences_for_loop): Initialize dependence_stats.
580         Don't call build_classic_dist_vector and build_classic_dir_vector.
581         Update the parameters of initialize_data_dependence_relation and
582         compute_all_dependences.  Print the statistics from datadep_stats.
583         (analyze_all_data_dependences): Static.  Not used until the pass for
584         checking the data dependences is contributed.
585         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
586         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
587         (initialize_data_dependence_relation, compute_affine_dependence,
588         analyze_all_data_dependences, compute_subscript_distance): Removed.
589         (print_direction_vector): New.
590         * lambda.h (gcd): ... here.
591         (lambda_vector_gcd): Moved here from gcd_vector.
592         * lambda-code.c (gcd, gcd_vector): Removed.
593         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
594         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
595
596 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
597
598         * ipa-type-escape.c: Tidy some comments and white space.
599         * tree-ssa-operands.c: Likewise.
600
601 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
602
603         PR tree-opt/25879
604         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
605         (dump_decl_name): Do not walk the decl tree chains.
606         * tree-pass.h (TDF_CHAIN): Remove.
607
608 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
609
610         * Makefile.in (C): Remove
611         (PROTO): Remove
612         (.PHONY): Remove C and PROTO
613
614 2006-02-20  Roger Sayle  <roger@eyesopen.com>
615
616         PR middle-end/26236
617         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
618         deprecated CHAR_TYPE tree code.
619
620 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
621
622         * configure.ac (target_list): Add install-info, dvi, html.
623         * configure: Regenerate.
624
625         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
626         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
627         treelang/Make-lang.in: Do not use double-colon rules.
628
629 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
630
631         * tree.h (struct tree_memory_tag): Add is_used_alone member.
632         (TMT_USED_ALONE): New macro.
633         * tree-pass.h (PROP_tmt_usage): New property.
634         (TODO_update_tmt_usage): New todo.
635         * tree-ssa-alias.c (updating_used_alone): New variable.
636         (recalculate_used_alone): New function.
637         (compute_may_aliases): Set updating_used_alone, call
638         recalculate_used_alone.
639         * tree-sra.c (pass_sra): Note that this pass destroys
640         PROP_tmt_usage, and add TODO_update_tmt_usage.
641         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
642         * tree-flow.h (updating_used_alone): Prototype.
643         (recalculate_used_alone): Ditto.
644         * passes.c (execute_todo): Add code to set updating_used_alone,
645         and call recalculate.
646         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
647         for clobber if used alone, and add assert to verify used_alone
648         status.
649
650 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
651
652         * config/s390/s390.c (legitimize_pic_address): Assertions checking
653         for non tls symbols added.
654         (legitimize_address): Do nothing for PLUS expressions if one of the
655         addends is a tls symbol reference.
656
657 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
658
659         PR bootstrap/25476
660
661         * Makefile.in (LDFLAGS): Define from autoconf substitution.
662
663         * Makefile.in (BOOTSTRAPPING): New.
664         (quickstrap): New definition if BOOTSTRAPPING=yes.
665
666         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
667         * configure.ac: Substitute all_selected_languages with the languages
668         that were configured.  For all the other variables except
669         lang_specs_files, include all the languages in the tree.
670         * configure: Regenerate.
671
672         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
673         if there is one.  Run the commands to run fixincludes in the same
674         subshell.
675
676         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
677         * doc/install.texi: Document exact conventions for searching target tools.
678         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
679         something more about building an Ada cross-compiler.  Don't list GNU Make
680         requirements which affect all platforms.
681
682 2006-02-19  Roger Sayle  <roger@eyesopen.com>
683
684         PR middle-end/19543
685         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
686         only equivalent if the have both the same mode and precision.
687
688 2006-02-20  Ben Elliston  <bje@au.ibm.com>
689
690         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
691
692 2006-02-19  Roger Sayle  <roger@eyesopen.com>
693             Steven Bosscher  <stevenb.gcc@gmail.com>
694
695         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
696         constant pool references to identify stack mode constants.
697         * rtlanal.c (constant_pool_constant_p): New predicate to check
698         whether operand is a floating point constant in the pool.
699         * rtl.h (constant_pool_constant_p): Prototype here.
700         * loop.c (scan_loop): Avoid hoisting constants from the constant
701         pool on STACK_REGS targets.
702         (load_mems): Likewise.
703         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
704         loads into x87 registers expensive in terms of register pressure.
705
706 2006-02-19  Roger Sayle  <roger@eyesopen.com>
707
708         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
709         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
710
711 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
712
713         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
714         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
715
716 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
717
718         * doc/invoke.texi: Document -fipa-pta.
719         * common.opt: Add ipa-pta option.
720         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
721         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
722         (do_ds_constraint): Ditto.
723         (get_constraint_for): Only add to referenced_vars if
724         referenced_vars exists.
725         (insert_into_field_list): Rewrite to do this unsorted.
726         (insert_into_field_list_sorted): Rename old insert_into_field_list
727         to this.
728         (create_function_info_for): Use insert_into_field_list_sorted.
729         (create_variable_info_for): Rewrite so it uses unsorted version,
730         since the field list is sorted.
731         (intra_create_variable_infos): Only add to referenced_vars if
732         referenced_vars exists.
733         (ipa_pta_execute): Init heapvars, and delete when done.
734         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
735
736 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
737
738         * doc/install.texi: Add missing `@samp'.
739
740 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
741
742         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
743         Use the arguments.
744
745 2006-02-18  Mark Wielaard  <mark@klomp.org>
746
747         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
748         who added new 4.1 features, bug fixes and integration support.
749
750 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
751
752         PR target/26350
753         * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
754         MEM for ABI_V4 pic.
755
756 2006-02-18  Richard Sandiford  <richard@codesourcery.com>
757
758         * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
759         * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
760         (copy_insn_1): Likewise.  Don't copy each field individually.
761         Reindent.
762         * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
763         of RTX_SIZE.
764         * reload1.c (eliminate_regs): Use shallow_copy_rtx.
765         * rtl.c (rtx_size): Rename variable to...
766         (rtx_code_size): ...this.
767         (rtx_size): New function.
768         (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
769         (copy_rtx): Use shallow_copy_rtx.  Don't copy each field individually.
770         Reindent.
771         (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
772         * rtl.h (rtx_code_size): New variable.
773         (rtx_size): Change from a variable to a function.
774         (RTX_SIZE): Rename to...
775         (RTX_CODE_SIZE): ...this.
776
777         PR target/9703
778         PR tree-optimization/17106
779         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
780         (Anchored Addresses): New section.
781         * doc/invoke.texi (-fsection-anchors): Document.
782         * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
783         (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
784         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
785         * hooks.c (hook_bool_mode_rtx_false): New function.
786         * hooks.h (hook_bool_mode_rtx_false): Declare.
787         * gengtype.c (create_optional_field): New function.
788         (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
789         SYMBOL_REF_IN_BLOCK_P is true.
790         * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
791         (min_anchor_offset, max_anchor_offset): Likewise.
792         (use_anchors_for_symbol_p): New hook.
793         * toplev.c (compile_file): Call output_object_blocks.
794         (target_supports_section_anchors_p): New function.
795         (process_options): Check that -fsection-anchors is only used on
796         targets that support it and when -funit-at-a-time is in effect.
797         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
798         if the decl doesn't have one.
799         * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
800         * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
801         of force_const_mem through use_anchored_address.
802         (expand_expr_constant): New function.
803         (expand_expr_addr_expr_1): Call it.  Use the same modifier when
804         calling expand_expr for INDIRECT_REF.
805         (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
806         for all modifiers except EXPAND_INITIALIZER.  Use expand_expr_constant.
807         * expr.h (use_anchored_address): Declare.
808         * loop-unroll.c: Don't declare rtx vectors here.
809         * explow.c: Include output.h.
810         (validize_mem): Call use_anchored_address.
811         (use_anchored_address): New function.
812         * common.opt (-fsection-anchors): New switch.
813         * varasm.c (object_block_htab, anchor_labelno): New variables.
814         (hash_section, object_block_entry_eq, object_block_entry_hash)
815         (use_object_blocks_p, get_block_for_section, create_block_symbol)
816         (use_blocks_for_decl_p, change_symbol_section): New functions.
817         (get_variable_section): New function, split out from assemble_variable.
818         (make_decl_rtl): Create a block symbol if use_object_blocks_p and
819         use_blocks_for_decl_p say so.  Use change_symbol_section if the
820         symbol has already been created.
821         (assemble_variable_contents): New function, split out from...
822         (assemble_variable): ...here.  Don't output any code for
823         block symbols; just pass them to place_block_symbol.
824         Use get_variable_section and assemble_variable_contents.
825         (get_constant_alignment, get_constant_section, get_constant_size): New
826         functions, split from output_constant_def_contents.
827         (build_constant_desc): Create a block symbol if use_object_blocks_p
828         says so.  Or into SYMBOL_REF_FLAGS.
829         (assemble_constant_contents): New function, split from...
830         (output_constant_def_contents): ...here.  Don't output any code
831         for block symbols; just pass them to place_section_symbol.
832         Use get_constant_section and get_constant_alignment.
833         (force_const_mem): Create a block symbol if use_object_blocks_p and
834         use_blocks_for_constant_p say so.  Or into SYMBOL_REF_FLAGS.
835         (output_constant_pool_1): Add an explicit alignment argument.
836         Don't switch sections here.
837         (output_constant_pool): Adjust call to output_constant_pool_1.
838         Switch sections here instead.  Don't output anything for block symbols;
839         just pass them to place_block_symbol.
840         (init_varasm_once): Initialize object_block_htab.
841         (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
842         (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
843         (place_block_symbol, get_section_anchor, output_object_block)
844         (output_object_block_htab, output_object_blocks): New functions.
845         * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
846         (TARGET_ASM_OUT): Include it.
847         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
848         (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
849         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
850         (TARGET_INITIALIZER): Include them.
851         * rtl.c (rtl_check_failed_block_symbol): New function.
852         * rtl.h: Include vec.h.  Declare heap and gc rtx vectors.
853         (block_symbol, object_block): New structures.
854         (rtx_def): Add a block_symbol field to the union.
855         (BLOCK_SYMBOL_CHECK): New macro.
856         (rtl_check_failed_block_symbol): Declare.
857         (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
858         (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
859         (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
860         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
861         * output.h (output_section_symbols): Declare.
862         (object_block): Name structure.
863         (place_section_symbol, get_section_anchor, default_asm_output_anchor)
864         (default_use_anchors_for_symbol_p): Declare.
865         * Makefile.in (RTL_BASE_H): Add vec.h.
866         (explow.o): Depend on output.h.
867         * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
868         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
869         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
870         (rs6000_use_blocks_for_constant_p): New function.
871
872 2006-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
873
874         * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
875
876 2006-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
877
878         PR tree-opt/25680
879         * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
880         IMAGPART_EXPR.
881
882 2006-02-18  Diego Novillo  <dnovillo@redhat.com>
883
884         * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
885         is_aliased.
886         Update all users.
887
888 2006-02-18  Jakub Jelinek  <jakub@redhat.com>
889
890         PR middle-end/26334
891         * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
892         instead of DECL_REGISTER.
893
894 2006-02-18  Olivier Hainque  <hainque@adacore.com>
895
896         PR ada/13408
897         * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
898
899 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
900
901         PR target/24837
902         * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
903         * opth-gen.awk: Handle Var and InverseMask together.
904         * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
905         * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
906         (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
907         (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
908         used together.
909         (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
910         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
911         * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
912         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
913         LINUX_DYNAMIC_LINKER): Define.
914         (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
915         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
916         TARGET_GLIBC.
917         * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
918         (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
919         * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
920         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
921         (TARGET_C99_FUNCTIONS): Don't define.
922         * config/i386/linux.h (DYNAMIC_LINKER): Rename to
923         GLIBC_DYNAMIC_LINKER.
924         (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
925         * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
926         GLIBC_DYNAMIC_LINKER64): Define.
927         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
928         LINUX_DYNAMIC_LINKER64.
929         * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
930         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
931         * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
932         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
933         * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
934         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
935         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
936         GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
937         UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
938         (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
939         and LINUX_DYNAMIC_LINKER32.
940         * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
941         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
942         * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
943         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
944         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
945         TARGET_GLIBC.
946         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
947         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
948         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
949         CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
950         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
951         (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
952         (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
953         * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
954         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
955         LINUX_DYNAMIC_LINKER): Define.
956         (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
957         * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
958         GLIBC_DYNAMIC_LINKER64): Define.
959         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
960         LINUX_DYNAMIC_LINKER64.
961         * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
962         (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
963         * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
964         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
965         LINUX_DYNAMIC_LINKER): Define.
966         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
967         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
968         * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
969         GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
970         UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
971         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
972         (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
973         (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
974         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
975         * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
976         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
977         * doc/invoke.texi (-muclibc): Remove caveat about supported
978         targets.
979
980 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
981
982         * doc/cpp.texi (__TIMESTAMP__): Document.
983
984 2006-02-17  Roger Sayle  <roger@eyesopen.com>
985
986         PR middle-end/25600
987         * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
988         C is one less than the width of X (and related transformations).
989         * simplify_rtx.c (simplify_unary_operation_1): Transform
990         (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
991         depending on STORE_FLAG_VALUE, were C is one less then the
992         width of X.
993
994 2006-02-17  Daniel Berlin  <dberlin@dberlin.org>
995
996         Fix PR tree-optimization/26341
997         * tree-ssa-operands.c (add_virtual_operand): Remove assert
998         about NAME_MEMORY_TAG's.
999
1000 2006-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1001
1002         PR target/26255
1003         * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
1004         with hardware float support, and software float support.  Add fcpy
1005         alternative to hardware patterns.  Add alternatives to copy between
1006         general and floating-point registers to the 32-bit pattern.
1007         * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
1008         secondary reload to load a QI or HI mode constant into a floating
1009         point register.
1010         * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
1011         * pa64-regs.h (VALID_FP_MODE_P): Likewise.
1012
1013 2006-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
1014
1015         PR target/26272
1016         * config/rs6000/darwin.md (load_macho_picbase_si): Add
1017         pc to the pattern.
1018         (load_macho_picbase_di): Likewise.
1019
1020 2006-02-16  Jeff Law  <law@redhat.com>
1021
1022         * tree-vrp.c (set_value_range_to_nonnegative): New function.
1023         (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
1024         (ssa_name_nonzero_p): Likewise.
1025         (get_value_range): Return NULL if VRP is not running.
1026         (extract_range_from_expr): Fallback to tree_expr_XXX_p if
1027         VRP routines do not discover a range.
1028         (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
1029         * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
1030         * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
1031         (tree_expr_nonnegative_p): Similarly.
1032         * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
1033         (restore_nonzero_vars_to_original_value): Remove.
1034         (unsafe_associative_fp_binop): Remove.
1035         (tree_ssa_dominator_optimize): Remove initialization and
1036         finalization of nonzero_vars and nonzero_vars_stack.
1037         (dom_opt_initialize_block): No longer push marker on
1038         nonzero_vars_stack.
1039         (dom_opt_finalize_block): No longer call
1040         restore_nonzero_vars_to_original_value.
1041         (record_equivalences_from_phis): No longer look for
1042         nonzero PHI arguments.
1043         (cprop_into_successor_phis): No longer propagate nonzero
1044         property into PHI arguments.  Lose unused argument.  Caller
1045         updated.
1046         (record_equivalences_from_stmt): No longer record nonzero
1047         values for SSA_NAMEs.
1048         (lookup_avail_expr): No longer use nonzero_vars.
1049
1050         * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
1051         for sizetype when sizetype is unsigned.
1052
1053 2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
1054
1055         PR rtl-optimization/25603
1056         * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
1057         (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
1058         * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
1059         with new meaning of SETS.
1060
1061 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
1062
1063         PR target/20353
1064         PR target/24578
1065         PR target/24837
1066         * config/linux.opt: New file.
1067         * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
1068         LINUX_DYNAMIC_LINKER): Define.
1069         (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
1070         * config.gcc (*-*-linux*): Define extra_options.
1071         (*-*-*uclibc*): Define UCLIBC_DEFAULT.
1072         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
1073         * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
1074         GLIBC_DYNAMIC_LINKER.
1075         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
1076         (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
1077         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
1078         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
1079         * doc/invoke.texi (GNU/Linux Options): New section.
1080
1081 2006-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
1082
1083         * config/sparc/sparc.md (setjmp): Rewrite.
1084         (setjmp_32): Delete.
1085         (setjmp_64): Likewise.
1086
1087 2006-02-16  Daniel Berlin <dberlin@dberlin.org>
1088
1089         * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
1090          previous change.
1091
1092 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
1093
1094         * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
1095         read-write uses.
1096
1097 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
1098
1099         PR rtl-optimization/26296
1100         * Makefile.in (loop-invariant.c): Add except.h dependency.
1101         * loop-invariant.c: Include except.h.
1102         (find_invariant_insn): Ignore insns satisfying can_throw_internal.
1103
1104 2005-02-16  Paul Brook  <paul@codesourcery.com>
1105
1106         * reload1.c (emit_reload_insns): Invalidate dead input registers used
1107         for reloads.
1108
1109 2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>
1110
1111         PR rtl-optimization/25636
1112         * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
1113         when deciding whether an insn is an initializing insn.
1114
1115 2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
1116
1117         * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
1118         (tree_code_size): Ditto.
1119         * tree.h (struct tree_memory_tag): Remove parent_var.
1120         (struct tree_struct_field_tag): New.
1121         (SFT_OFFSET): New.
1122         (SFT_SIZE): New.
1123         (union tree_node): Add sft member.
1124         * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
1125         specially here.
1126         (create_sft): Add size and offset argument, set SFT_OFFSET and
1127         SFT_SIZE.
1128         (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
1129         * treestruct.def: Add TS_STRUCT_FIELD_TAG.
1130         * tree-flow-inline.h (get_subvar_at): Update for
1131         SFT_OFFSET/SFT_SIZE.
1132         (var_can_have_subvars): Ditto.
1133         (overlap_subvar): Ditto.
1134         * print-tree.c (print_node): Print out interesting things for
1135         SFT's.
1136         * tree-flow.h (struct subvar): Remove offset and size members.
1137         * tree-ssa-operands.c (get_expr_operands): Update for
1138         get_indirect_ref_operands changes.
1139         (get_indirect_ref_operands): Call add_virtual_operand instead of
1140         add_stmt_operand.  Only recurse on base var if requested.
1141         (access_can_touch_variable): New function.
1142         (add_stmt_operand): Split virtual operand handling into ...
1143         (add_virtual_operand): Here.  Add offset, size, and for_clobber
1144         arguments.  Prune alias sets.
1145         (add_call_clobber_ops): Call add_virtual_operand.
1146
1147 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
1148
1149         PR middle-end/26300
1150         * combine.c (make_extraction): Bail out if ORIG_POS is negative.
1151
1152         * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
1153         than TREE_CODE as index into omp_clause_num_ops array.
1154
1155 2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
1156
1157         PR rtl-optimization/26184
1158         * modulo-sched.c (generate_reg_moves): Free bitmap vector
1159         uses_of_defs.
1160         * modulo-sched.c (sms_schedule): Free g_arr pointer.
1161         * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
1162         must_precede, must_follow and tobe_scheduled.
1163
1164         PR other/26147
1165         * opts.c (common_handle_option): Free new_option pointer.
1166         * df-core.c (df_analyze): Free postorder pointer.
1167
1168 2006-02-15  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
1169
1170         * Makefile.in: Fix the examples about the use of stamps
1171
1172 2006-02-15  Michael Matz  <matz@suse.de>
1173
1174         PR middle-end/22275
1175
1176         * stor-layout.c (layout_decl): Zero-width bitfields aren't
1177         influenced by maximum_field_alignment or DECL_PACKED.
1178         (update_alignment_for_field): Ditto.
1179         (place_field): Ditto.
1180         * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
1181         this behaviour.
1182
1183 2006-02-15  Paolo Bonzini  <bonzini@gnu.org>
1184
1185         * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
1186         (debug_flow_info): Pass it.
1187         * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
1188         * bb-reorder.c (reorder_basic_blocks): Likewise.
1189         * cfgcleanup.c (rest_of_handle_jump2): Likewise.
1190         * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
1191         * flow.c (life_analysis, recompute_reg_usage): Likewise.
1192         * gcse.c (gcse_main, bypass_jumps): Likewise.
1193         * ifcvt.c (rest_of_handle_if_conversion): Likewise.
1194         * local-alloc.c (rest_of_handle_local_alloc): Likewise.
1195         * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
1196         * profile.c (compute_branch_probabilities, branch_prob): Likewise.
1197         * rtl.h (dump_flow_info): Adjust prototype.
1198         * tracer.c (rest_of_handle_tracer, tracer): Likewise.
1199         * var-tracking.c (variable_tracking_main): Likewise.
1200         * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
1201         * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
1202         options.
1203
1204 2006-02-15  Marcin Dalecki <martin@dalecki.de>
1205
1206         * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
1207         construction.
1208
1209 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
1210
1211         PR tree-optimization/26209
1212         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
1213         * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
1214         eh edges.
1215         * tree-cfg.c (replace_uses_by): Do not alter cfg.
1216
1217 2006-02-14  Roger Sayle  <roger@eyesopen.com>
1218
1219         PR middle-end/23670
1220         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
1221         (X,Y) and the corresponding symmetry related transformations.
1222         (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
1223         (X,Y) and its symmetry related transformations.
1224
1225 2006-02-14  Roger Sayle  <roger@eyesopen.com>
1226
1227         * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
1228         and GEU.
1229
1230 2006-02-14  Adam Nemet  <anemet@caviumnetworks.com>
1231
1232         * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
1233
1234 2006-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1235
1236         PR bootstrap/26053
1237         * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
1238         support COMDAT group.
1239         * configure: Regenerate.
1240
1241 2006-02-14  Roger Sayle  <roger@eyesopen.com>
1242
1243         PR middle-end/26279
1244         PR middle-end/26280
1245         PR middle-end/26283
1246         * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
1247
1248 2006-02-14  Daniel Berlin  <dberlin@dberlin.org>
1249
1250         Fix PR tree-optimization/26260
1251
1252         * doc/invoke.texi (max-fields-for-field-sensitive): Document
1253         param.
1254         * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
1255         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
1256         * tree-ssa-structalias.c (create_variable_info_for): Use
1257         MAX_FIELDS_FOR_FIELD_SENSITIVE.
1258
1259 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
1260
1261         * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
1262         Document.
1263         * tree-ssa-loop-niter.c (number_of_iterations_ne,
1264         number_of_iterations_lt, number_of_iterations_cond): Remember the shape
1265         of the ending condition.
1266         * tree-ssa-loop-manip.c: Include params.h.
1267         (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
1268         tree_unroll_loop): New functions.
1269         * tree-pass.h (pass_loop_prefetch): Declare.
1270         * loop.c (rest_of_handle_loop_optimize): Test for
1271         -fprefetch-loop-arrays-rtl.
1272         * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
1273         * timevar.def (TV_TREE_PREFETCH): New timevar.
1274         * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
1275         pass_loop_prefetch): New.
1276         * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
1277         (cleanup_tree_cfg_loop): Call scev_reset.
1278         * common.opt (fprefetch-loop-arrays-rtl): Add.
1279         * tree-ssa-loop-prefetch.c: New file.
1280         * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
1281         (new_temp_expr_table): Initialize expr_vars.
1282         (free_temp_expr_table): Cleanup expr_vars.
1283         (check_replaceable, find_replaceable_in_bb): Prevent accumulating
1284         expressions from being merged into one.
1285         * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
1286         (struct tree_niter_desc): Add control, bound and cmp fields.
1287         (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
1288         Declare.
1289         * Makefile.in (tree-ssa-loop-prefetch.o): Add.
1290         (tree-cfgcleanup.o): Add SCEV_H dependency.
1291         (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
1292         * passes.c (init_optimization_passes): Add pass_loop_prefetch.
1293
1294 2006-02-14  Richard Guenther  <rguenther@suse.de>
1295
1296         PR tree-optimization/26258
1297         * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
1298         in PHI argument processing.
1299
1300 2006-02-13  Adam Nemet  <anemet@caviumnetworks.com>
1301
1302         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
1303         new expression in the requested machine mode.
1304
1305 2006-02-13  Roger Sayle  <roger@eyesopen.com>
1306
1307         * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
1308         directly, instead let do_compare_rtx_and_jump handle this for us.
1309         * expr.c (expand_expr_real_1): Likewise.
1310         * dojump.c (do_jump_by_parts_greater_rtx): Make static.  Move
1311         before do_jump_by_parts_greater.
1312         (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
1313         * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
1314
1315 2006-02-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1316
1317         * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
1318
1319 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
1320
1321         PR rtl-optimization/26235
1322         * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
1323         (invariant_expr_equal_p): Handle 'i' and 'n' formats.  Fail on unknown
1324         format.
1325
1326 2006-02-13  Jeff Law  <law@redhat.com>
1327
1328         * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
1329         TRUTH_XOR_EPR.
1330
1331 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
1332
1333         PR middle-end/26092
1334         * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
1335         twice if decl is a builtin.  When trying again, call get_callee_fndecl
1336         first to verify it is still a builtin.
1337
1338 2006-02-13  Geoffrey Keating  <geoffk@apple.com>
1339
1340         * dwarf2out.c (base_type_die): Don't add AT_name here.
1341         (subrange_type_die): Don't add AT_name here.
1342         (modified_type_die): Rearrange code flow.  Do add AT_name here.
1343
1344 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
1345
1346         PR rtl-optimization/26247
1347         PR rtl-optimization/26248
1348         * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
1349
1350 2006-02-13  Richard Sandiford  <richard@codesourcery.com>
1351
1352         * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
1353         * config/fixtfdi.c: Likewise.
1354         * config/fixunstfdi.c: Likewise.
1355         * config/floatditf.c: Likewise.
1356
1357 2006-02-13  Roger Sayle  <roger@eyesopen.com>
1358
1359         PR middle-end/24427
1360         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
1361         into (X,C2) if C1 is a subset of the bits of C2.  Transform
1362         (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
1363         (X&(C1&~C2))|C2.
1364         <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
1365
1366 2006-02-13  Josh Conner  <jconner@apple.com>
1367
1368         PR target/25376
1369         * varasm.c (function_section): Check for section name before
1370         calling select_section on targets that define
1371         USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
1372         unlikely_text_section instead of hot_function_section if
1373         first_function_block_is_cold.
1374
1375 2006-02-13  J"orn Rennecke <joern.rennecke@st.com>
1376
1377         PR middle-end/25335
1378         * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
1379
1380 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
1381
1382         PR rtl-optimization/26222
1383         * function.c (assign_stack_temp_for_type): Do not reuse stack slots
1384         after tree->rtl expansion.
1385         * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
1386         before passing it to emit_move_insn.
1387
1388 2006-02-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1389
1390         * doc/invoke.texi (-Write-strings): Document that it is enabled by
1391         default.
1392         * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
1393         Clarify documentation.
1394         * c-common.h (warn_write_strings): Remove.
1395         * c-common.c (warn_write_strings): Likewise.
1396         * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
1397         default for C++.
1398
1399 2006-02-12  Roger Sayle  <roger@eyesopen.com>
1400
1401         PR middle-end/25724
1402         * dojump.c (do_jump): Call do_compare_rtx_and_jump.
1403         (do_jump_parts_zero_rtx): New function renamed from
1404         do_jump_parts_equality_rtx.  Made static.  Add a mode argument.
1405         (do_jump_parts_equality_rtx): New function split out from
1406         do_jump_parts_equality.  Old implementation renamed as above.
1407         Call do_jump_parts_zero_rtx if either operand is zero.
1408         (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
1409         do all of the heavy lifting.
1410         (do_compare_rtx_and_jump): Handle multi-word comparisons by
1411         calling either do_jump_by_parts_greater_rtx or
1412         do_jump_by_parts_equality_rtx.
1413         * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
1414         * expmed.c (do_cmp_and_jump): Now multi-word optimization has
1415         moved to do_compare_rtx_and_jump, call it directly.
1416         * stmt.c (do_jump_if_equal): Remove static prototype.  Add a
1417         mode argument.  Call do_compare_rtx_and_jump.
1418         (emit_case_nodes): Update calls to do_jump_if_equal.
1419
1420 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
1421
1422         PR rtl-optimization/26225
1423         * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
1424
1425 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
1426
1427         PR rtl-optimization/26232
1428         * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
1429
1430 2006-02-11  Jason Merrill  <jason@redhat.com>
1431
1432         PR tree-opt/24365
1433         * tree-inline.c (declare_return_variable): Just don't use the
1434         modify target if it's a gimple complex reg and the return slot
1435         isn't.
1436
1437 2006-02-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1438
1439         * doc/contrib.texi: Update my entry.
1440
1441 2006-02-10  Geoffrey Keating  <geoffk@apple.com>
1442
1443         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
1444
1445 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
1446
1447         * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
1448         expensive.
1449
1450 2006-02-10  Zdenek Dvorak <dvorakz@suse.cz>
1451
1452         * doc/invoke.texi (-floop-optimize2): Removed.
1453         * toplev.c (process_options): Remove handling of flag_loop_optimize2.
1454         * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
1455         Test flag_branch_on_count_reg only if HAVE_doloop_end.
1456         * common.opt (floop-optimize2): Removed.
1457         (fmove-loop-invariants): Enabled by default.
1458
1459 2006-02-10  Sebastian Pop  <pop@cri.ensmp.fr>
1460
1461         * tree-if-conv.c (combine_blocks): Free the result of
1462         get_loop_exit_edges.
1463
1464 2006-02-10  Jeff Law  <law@redhat.com>
1465
1466         * fold-const.c (tree_expr_nonzero_p): Fix thinko.
1467
1468         PR tree-optimization/26213
1469         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
1470         loop trying to follow SSA_NAME_VALUE chains.
1471
1472 2006-02-10  Richard Guenther  <rguenther@suse.de>
1473
1474         * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
1475         deal with structures that end in implicitly variable sized arrays.
1476
1477 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
1478
1479         PR rtl-optimization/24762
1480         * df-scan.c (df_bb_refs_record): Record correct registers defined on
1481         eh edges.
1482
1483 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
1484
1485         * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
1486         (struct ivopts_data): Add regs_used field.
1487         (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
1488         (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
1489         instead of loop_data->regs_used;
1490         (free_loop_data): Do not free aux fields for loops.
1491         (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
1492         and tree_ssa_iv_optimize_finalize.
1493
1494 2006-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1495
1496         * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
1497
1498 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
1499
1500         PR target/26141
1501         * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
1502         computing the effective result type.
1503
1504 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
1505
1506         PR inline-asm/16194
1507         * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
1508         (tree_overlaps_hard_reg_set): Declare.
1509         * stmt.c (decl_overlaps_hard_reg_set_p): Now static.  Change return
1510         type and signature to match function type expected by walk_tree.
1511         (tree_overlaps_hard_reg_set): New function.
1512         (decl_conflicts_with_clobbers_p): Rename to:
1513         (tree_conflicts_with_clobbers_p).  Take HARD_REG_SET * argument.
1514         Use tree_overlaps_hard_reg_set.  Changed caller.
1515         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
1516         decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
1517         * cris.c (cris_md_asm_clobbers): Likewise.
1518
1519 2006-02-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1520
1521         * reload1.c (emit_input_reload_insns): Delete code that tries to
1522         inherit using find_equiv_reg.
1523
1524 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1525
1526         * c-common.h (flag_const_strings): Don't declare.
1527         * c-common.c (flag_const_strings): Remove.
1528         * c.opt (fconst_strings): Remove.
1529         * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
1530         <OPT_Wwrite_strings>: Don't set flag_const_strings.
1531         (c_common_init_options): Don't set flag_const_strings.
1532         * doc/invoke.texi (-fno-const-strings): Remove documentation.
1533
1534 2006-02-09  Richard Earnshaw  <richard.earnshaw@arm.com>
1535
1536         * arm.md (tlobits_cbranch): New pattern.
1537         * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
1538         testing a single bit.
1539
1540 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
1541
1542         PR tree-opt/26179
1543         * tree-ssa-pre.c (create_component_ref_by_pieces):
1544         Handle RETURN_DECL like VAR_DECL.
1545
1546 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
1547
1548         PR middle-end/26134
1549         * fold-const.c (fold_indirect_ref_1): Fold
1550         "*(foo *)&complexfoo" to "__real__ complexfoo"
1551         and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
1552
1553 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
1554
1555         * tree-flow-inline.h (var_can_have_subvars):
1556         Volatile variables should not have subvariables.
1557
1558 2006-02-09  Diego Novillo  <dnovillo@redhat.com>
1559
1560         PR 26180
1561         * tree-vrp.c (vrp_int_const_binop): Detect overflow when
1562         multiplying unsigned values.
1563         Tidy comments.
1564
1565 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
1566
1567         * config/sparc/sparc.c (tls_call_delay): Fix oversight.
1568
1569 2006-02-08  Jason Merrill  <jason@redhat.com>
1570
1571         PR c++/25979
1572         * tree.def: Elaborate on difference from MODIFY_EXPR.
1573         * doc/c-tree.texi (INIT_EXPR): Likewise.
1574         * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
1575         (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
1576         (gimplify_target_expr): Likewise.
1577         (gimplify_cond_expr): Remove target handling.
1578         (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
1579         (gimplify_expr): Clobber it here.
1580         (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
1581         Do return slot optimization if we have an INIT_EXPR.
1582
1583         PR tree-opt/24365
1584         * tree-inline.c (declare_return_variable): Also clear
1585         DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
1586
1587         PR c++/16405
1588         * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
1589
1590         PR middle-end/22439
1591         * gimplify.c (gimplify_one_sizepos): Fix typo.
1592
1593 2006-02-08  Jeff Law  <law@redhat.com>
1594
1595         PR tree-optimization/21417
1596         * tree-ssa-threadedge.c (thread_across_edge): Reject threading
1597         across a backedge if the control statement at the end of the
1598         block is data dependent on other statements in the same block.
1599         (record_temporary_equivalences_from_stmts): Remove over-conservative
1600         test for threading across backedges.
1601
1602         * tree-ssa-dce.c (remove_dead_statement): When removing a dead
1603         control statement, handle all three special cases in the same
1604         manner as they all have the same desired solution.  No longer
1605         special case edge flag updating when the post dominator is
1606         the exit block.
1607
1608 2006-02-08  Roger Sayle  <roger@eyesopen.com>
1609
1610         * tree.def (CHAR_TYPE): Remove.
1611         * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
1612         * dwarf2out.c (base_type_die, is_base_type): Likewise.
1613         (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
1614         (gen_string_type_die): Delete unreachable function.
1615
1616         * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
1617         * tree.c (build_int_cst_wide, type_contains_placeholder_1,
1618         type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
1619         * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
1620         * builtins.c (type_to_class): Likewise.
1621         * fold-const.c (fold_convert, build_range_check,
1622         merge_ranges): Likewise.
1623         * expr.c (count_type_elements): Likewise.
1624         * c-pretty-print.c (pp_c_type_specifier): Likewise.
1625         * stor-layout.c (layout_type): Likewise.
1626         * ipa-type-escape.c (type_to_consider): Likewise.
1627         * gimplify.c (omp_firstprivatize_type_sizes,
1628         gimplify_type_sizes): Likewise.
1629         * explow.c (promote_mode): Likewise.
1630         * tree-sra.c (is_sra_scalar_type): Likewise.
1631         * varasm.c (output_constant): Likewise.
1632         * tree-inline.c (remap_type_1): Likewise.
1633         * convert.c (convert_to_pointer, convert_to_real,
1634         convert_to_integer, convert_to_complex): Likewise.
1635
1636 2006-02-08  Daniel Berlin  <dberlin@dberlin.org>
1637
1638         * df-scan.c (df_def_record_1): A set destination may
1639         be a parallel regardless of mode.
1640
1641 2006-02-08  Roger Sayle  <roger@eyesopen.com>
1642
1643         PR target/22209
1644         * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
1645         * config/mips/_tilib.c: Remove.
1646         * config/fixtfdi.c: New libgcc source file.
1647         * config/fixunstfdi.c: New source file.
1648         * config/floatditf.c: New source file.
1649         * config/floatunditf.c: New souce file.
1650         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
1651         files above instead of config/mips/_tilib.c.
1652         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
1653
1654 2006-02-08  Jeff Law  <law@redhat.com>
1655
1656         PR tree-optimization/26169
1657         * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
1658         threading jumps.
1659
1660 2006-02-08  Zdenek Dvorak <dvorakz@suse.cz>
1661
1662         * df.h (DF_REG_SIZE): Return the length of the initialized
1663         part of the array.
1664
1665 2006-02-08  Nathan Sidwell  <nathan@codesourcery.com>
1666
1667         * gcc/config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
1668         __muldf3): Return a correctly signed zero.
1669
1670 2006-02-08  Paolo Bonzini  <bonzini@gnu.org>
1671
1672         * passes.c (register_one_dump_file): Accept the current properties
1673         instead of pass number.  Adjust call to dump_register.  Remove
1674         duplicated code.
1675         (register_dump_files): Now a wrapper around...
1676         (register_dump_files_1): ... this one.  Do not modify the pass
1677         structure.
1678         (next_pass_1): Cosmetic fix.
1679         (execute_todo): Keep second parameter only.  Use curr_properties
1680         instead of fetching it from the pass structure.  Check and set
1681         last_verified.
1682         (execute_one_pass): Handle TODO_set_props.  Use curr_properties
1683         instead of fetching it from the pass structure.  Fix calls to
1684         execute_todo.  Update curr_properties and initialize .vcg RTL dump
1685         after running the pass.  Reset last_verified.
1686         * tree-dump.c (dump_files): Renumber consecutively.  Put .cgraph dump
1687         at the beginning.
1688         (FIRST_AUTO_NUMBERED_DUMP): New.
1689         (dump_register): Remove "num" parameter, assign it within the
1690         function.
1691         (get_dump_file_name): Modify template for dumps.
1692         * tree-dump.h (dump_register): Adjust prototype.
1693         * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
1694         (PROP_trees): Add PROP_gimple_lomp.
1695         (TODO_set_props): New.
1696         * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
1697         * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
1698         * cfgexpand.c (pass_expand): Destroy PROP_trees.
1699
1700 2006-02-08  Jakub Jelinek  <jakub@redhat.com>
1701
1702         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
1703         (sparc64-*-linux*): Likewise.
1704         * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
1705         * config/sparc/t-linux: New file.
1706         * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
1707         __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
1708         (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
1709         -m32 -mlong-double-128.
1710
1711         * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
1712         * config/alpha/t-linux: New file.
1713         * config/alpha/libgcc-alpha-ldbl.ver: New file.
1714
1715         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
1716         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
1717         (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
1718         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
1719         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
1720         (CPP_ARCH32_SPEC): Remove.
1721
1722 2006-02-07  Uttam Pawar  <uttamp@us.ibm.com>
1723
1724         PR tree-optimization/26145
1725         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
1726         bbs pointer.
1727
1728 2006-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1729
1730         PR target/26109
1731         * pa.c (attr_length_indirect_call): Don't return length 8 for distances
1732         >= 240000 when generating code for SOM runtime.
1733         (output_indirect_call): Don't use "b,l" instruction for indirect calls
1734         to $$dyncall when generating code for SOM runtime..
1735
1736 2006-02-07  Dirk Mueller  <dmueller@suse.com>
1737
1738         PR c++/18150
1739         * doc/invoke.texi (-Wsequence-point): Update documentation
1740         that -Wsequence-point is implemented for C++ as well.
1741
1742 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1743
1744         * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
1745         * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
1746         (LIB_SPEC): Likewise.
1747         * doc/invoke.texi (SPARC options): Document -pthread.
1748
1749 2006-02-07  Geoffrey Keating  <geoffk@apple.com>
1750
1751         * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
1752         PIC addresses.
1753
1754 2006-02-07  Roger Sayle  <roger@eyesopen.com>
1755
1756         * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
1757         Correct comment describing BOOLEAN_TYPE.
1758
1759 2006-02-07  Dirk Mueller  <dmueller@suse.com>
1760
1761         * c.opt: C++ frontend supports -Wdiv-by-zero.
1762         * c-opts.c (c_common_handle_option): Remove dead case.
1763
1764 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1765
1766         * configure.ac (TLS assembler check): Do not enable TLS by
1767         default on SPARC/Solaris before version 10.
1768         * configure: Regenerate.
1769
1770 2006-02-07  David Edelsohn  <edelsohn@gnu.org>
1771
1772         * doc/invoke.texi (xl-compat): Document conversion and support
1773         routine names.
1774
1775 2006-02-07  Jeff Law  <law@redhat.com>
1776
1777         * tree-vrp.c (find_conditional_asserts): Update comments.
1778         (simplify_stmt_for_jump_threading): New.
1779         (identify_jump_threads, finalize_jump_threads): New.
1780         (vrp_finalize): Call identify_jump_threads.
1781         (execute_vrp): Call finalize_jump_threads.
1782         * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
1783         (vrp_element, vrp_data, vrp_element_p): Remove.
1784         (vrp_hash_elt, vrp_variables_stack): Remove.
1785         (vrp_hash, vrp_eq, record_range): Remove.
1786         (simplify_cond_and_lookup_avail_expr): Remove.
1787         (extract_range_from_cond): Remove.
1788         (thread_across_edge): Relocated into tree-ssa-threadedge.c.
1789         (simplify_stmt_for_jump_threading): New.
1790         (dom_thread_across_edge): New wrapper.
1791         (tree_ssa_dominator_optimize): No longer initialize or
1792         finalize any of the VRP datastructures.  Remove iteration
1793         step and simplify as a result of removal of iteration step.
1794         (pass_dominator): Perform a cfg cleanup after DOM.
1795         (dom_opt_finalize_block): Use the new common routines
1796         for threading jumps.  Simplify stack management slightly.
1797         No longer need to unwind VRP state.
1798         (record_equivalences_from_incoming_edge): No longer record
1799         VRP information.
1800         (eliminate_redundant_computations): No longer call
1801         simplify_cond_and_lookup_avail_expr.
1802         * tree-flow.h (potentially_threadable_block): Prototype.
1803         (thread_across_edge): Likewise.
1804         * Makefile.in (OBJS-common):  Add tree-ssa-threadedge.o
1805         (tree-ssa-threadedge.o): Add dependencies.
1806         * tree-ssa-threadedge.c: New file.
1807         * passes.c (init_optimization_passes): Merge PHIs before
1808         calling VRP.  Run VRP again late in the SSA optimization pipeline.
1809
1810 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1811
1812         * df-core.c (df_set_blocks): Do not dereference function pointers.
1813         (df_finish1): Likewise.
1814         (df_hybrid_search_forward): Likewise.
1815         (df_hybrid_search_backward): Likewise.
1816         (df_iterative_dataflow): Likewise.
1817         (df_analyze_problem): Likewise.
1818         (df_compact_blocks): Likewise.
1819         (df_dump): Likewise.
1820         * df-scan.c (df_rescan_blocks): Likewise.
1821         (df_record_entry_block_defs): Likewise.
1822
1823         * genconditions.c (write_conditions): Guard the definition of
1824         'insn_conditions' with the check on GCC version.
1825         (write_writer): Guard the traversal 'insn_conditions' with
1826         the check on GCC version.
1827
1828 2006-02-07  Richard Guenther  <rguenther@suse.de>
1829
1830         PR c++/26140
1831         Revert
1832         2006-01-30  Richard Guenther  <rguenther@suse.de>
1833         PR c++/23372
1834         * gimplify.c (gimplify_target_expr): Handle easy cases
1835         without creating a temporary.
1836
1837 2006-02-07  Pete Steinmetz  <steinmtz@us.ibm.com>
1838
1839         * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
1840         use of float in probability computations.  Use edge probabilities
1841         in place of statically computed probabilities.
1842         (min_spec_prob): New static variable.
1843         (schedule_insns): Initialize it.
1844         (GET_SRC_PROB): Removed.
1845         * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
1846
1847 2006-02-07  Alexandre Oliva  <aoliva@redhat.com>
1848
1849         PR debug/24444
1850         * config/ia64/unwind-ia64.c: Revert last change.
1851         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
1852         (INCOMING_FRAME_SP_OFFSET): Define.
1853
1854 2006-02-06  Roger Sayle  <roger@eyesopen.com>
1855
1856         * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
1857
1858 2006-02-07  Ben Elliston  <bje@au.ibm.com>
1859
1860         * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
1861         (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
1862         (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
1863         (ix86_return_in_memory): Handle TDmode.
1864         (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
1865         (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
1866
1867 2006-02-06  Richard Sandiford  <richard@codesourcery.com>
1868
1869         * reorg.c (dbr_schedule): Use dump_file instead of file.
1870
1871 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
1872
1873         PR target/25917
1874         * config/ia64/predicates.md (extr_len_operand): New predicate.
1875         * config/ia64/ia64.md (extv): Tighten constraints.
1876         (extzv): Ditto.
1877         (*tbit_and_2): Ditto.
1878         (*tbit_and_3): Ditto.
1879         (*tbit_or_2): Ditto.
1880         (*tbit_or_3): Ditto.
1881         (*bit_zero): Ditto.
1882         (*bit_one): Ditto.
1883
1884 2006-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
1885
1886         PR target/23359
1887         * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
1888
1889 2006-02-06  Zdenek Dvorak <dvorakz@suse.cz>
1890
1891         * tree-vrp.c (execute_vrp): Do not pass dump argument to.
1892         loop_optimizer_init and loop_optimizer_finalize
1893         * tree-ssa-sink.c (execute_sink_code): Ditto.
1894         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1895         * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
1896         tree_ssa_loop_done): Ditto.
1897         * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
1898         * sched-ebb.c: Include output.h.
1899         (schedule_ebbs): Do not use dump argument.
1900         * value-prof.h (struct profile_hooks): Remove profile_dump_file.
1901         * loop.c (loop_dump_stream): Removed.
1902         (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
1903         argument.
1904         (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
1905         emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
1906         final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
1907         loop_iterations, strength_reduce, record_biv, record_giv,
1908         final_giv_value, check_final_value, check_ext_dependent_givs,
1909         combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
1910         try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
1911         dump_file instead of loop_dump_stream.
1912         * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
1913         argument dump_file.
1914         * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
1915         dump argument.
1916         * flow.c (life_analysis, rest_of_handle_life): Ditto.
1917         * haifa-sched.c: Include output.h
1918         (schedule_insns, sched_init): Do not use dump argument.
1919         * mode-switching.c (optimize_mode_switching): Ditto.
1920         * modulo-sched.c (stats_file): Removed.
1921         (print_node_sched_params): Do not call argument dump_file.
1922         (sms_schedule_by_order, loop_canon_p, sms_schedule,
1923         rest_of_handle_sms): Do not use dump argument.  Use dump_file instead
1924         of stats_file.
1925         * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
1926         use dump argument.
1927         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
1928         rtl_loop_init, rtl_loop_done): Ditto.
1929         * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
1930         * predict.c (combine_predictions_for_bb, tree_estimate_probability):
1931         Ditto.
1932         * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
1933         * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
1934         * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
1935         rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
1936         * emit-rtl.c (renumber_insns): Ditto.
1937         * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
1938         expand_gimple_basic_block, tree_expand_cfg): Ditto.
1939         * regclass.c (regclass): Ditto.
1940         * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
1941         remove_ssa_form, rewrite_out_of_ssa): Ditto.
1942         * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
1943         convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
1944         Ditto.
1945         * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
1946         * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
1947         to regclass.
1948         * gcse.c (gcse_file, debug_stderr): Removed.
1949         (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
1950         rest_of_handle_gcse): Do not use dump argument.
1951         (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
1952         one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
1953         pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
1954         compute_code_hoist_vbeinout, compute_code_hoist_data,
1955         one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
1956         compute_store_table, build_store_vectors, insert_insn_start_bb,
1957         insert_store, remove_reachable_equiv_notes, replace_store_insn,
1958         store_motion): Use dump_file instead of gcse_file.
1959         * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
1960         * profile.c (profile_dump_file): Removed.
1961         (branch_prob): Use dump_file instead of profile_dump_file.
1962         * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
1963         dump_file.
1964         * tree-ssa-copy.c (dump_copy_of): Ditto.
1965         * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
1966         dump file to life_analysis.
1967         * bt-load.c (branch_target_load_optimize): Ditto.
1968         * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
1969         renumber_insns.
1970         * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
1971         regclass, dbr_schedule): Declaration changed.
1972         * sched-int.h (sched_init): Declaration changed.
1973         * tree-profile.c (tree_profile_dump_file): Removed.
1974         (tree_profile_hooks): Removed profile_dump_file hook.
1975         * rtl-profile (rtl_profile_dump_file): Removed.
1976         (rtl_profile_hooks): emoved profile_dump_file hook.
1977         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
1978         changed.
1979         * c-gimplify.c (c_genericize): Do not call local variable dump_file.
1980         * tree-cfg.c (build_tree_cfg): Ditto.
1981         * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
1982         * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
1983         Declaration changed.
1984         * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
1985         life_analysis and schedule_insns.
1986         * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
1987         life_analysis.
1988         * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
1989         dbr_schedule.
1990         * config/mips/mips.c (mips_reorg): Ditto.
1991         * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
1992         schedule_ebbs.
1993
1994 2006-02-06  Aldy Hernandez  <aldyh@redhat.com>
1995
1996         * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
1997         (s390_mangle_fundamental_type): New.
1998         * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
1999         Define.
2000
2001         * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
2002         (alpha_mangle_fundamental_type): New.
2003         * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
2004         Define.
2005
2006         * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
2007         Define.
2008         * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
2009         Define.
2010         * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
2011         (sparc_mangle_fundamental_type): New.
2012
2013 2006-02-06  Jakub Jelinek  <jakub@redhat.com>
2014
2015         * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
2016         (s390x-*-linux*): Likewise.
2017         * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
2018         * config/s390/t-linux: New file.
2019
2020 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
2021
2022         * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
2023         sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
2024
2025 2006-02-06  Daniel Berlin  <dberlin@dberlin.org>
2026
2027         * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
2028         (ANTIC_SAFE_LOADS): New macro.
2029         (find_or_generate_expression): Add prototype.
2030         (set_contains_value): Allow null set for sake of not always having
2031         to allocate ANTIC_SAFE_LOADS.
2032         (phi_translate): Move placement of AGGREGATE_TYPE_P check.
2033         Allow COMPONENT_REF too.
2034         (valid_in_set): Allow COMPONENT_REF.
2035         Check ANTIC_SAFE_LOADS too.
2036         (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
2037         (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
2038         rename.
2039         (can_PRE_operation): Add COMPONENT_REF.
2040         (create_component_ref_by_pieces): New function.
2041         (create_expression_by_pieces): Use create_component_ref_by_pieces.
2042         (insert_aux): Move AGGREGATE_TYPE_P check here.
2043         (compute_avail): Set bb local stmt uids.
2044         (pass_pre): Use TODO_update_ssa_only_virtuals.
2045
2046 2006-02-06  Ben Elliston  <bje@au.ibm.com>
2047
2048         * configure.ac: Unconditionally disable decimal float by default.
2049         * configure: Regenerate.
2050
2051 2006-02-06  Ben Elliston  <bje@au.ibm.com>
2052
2053         * read-rtl.c (read_name): Terminate reading on EOF.
2054
2055 2006-02-06  Ben Elliston  <bje@au.ibm.com>
2056
2057         * dfp.c (decimal_real_arithmetic): Change second argument type
2058         from int to enum tree_code. Do not always return true, but now
2059         return result of any call to decimal_do helper functions.
2060         * dfp.h (decimal_real_arithmetic): Update prototype.
2061
2062 2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2063
2064         * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
2065
2066 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
2067
2068         PR tree-opt/25251
2069         * tree-cfg.c (cleanup_dead_labels): Also don't remove
2070         forced labels.
2071
2072 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
2073
2074         * tree-vrp.c (cfg_loops): Removed.
2075         (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
2076         Use current_loops instead of cfg_loops.  Pass flags to
2077         loop_optimizer_init.
2078         * cfgloopmanip.c (fix_loop_structure): Update only available
2079         information.
2080         * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
2081         loop_optimizer_init.
2082         * modulo-sched.c (build_loops_structure): Removed.
2083         (sms_schedule): Use loop_optimizer_init.
2084         * loop-init.c (loop_optimizer_init): Use flags to determine
2085         which properties of loops to prepare.
2086         (rtl_loop_init): Pass flags to loop_optimizer_init.
2087         * tree-ssa-sink.c (execute_sink_code): Ditto.
2088         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
2089         * tree-ssa-pre.c (init_pre): Ditto.
2090         * cfgloop.h (LOOPS_NORMAL): New.
2091         (loop_optimizer_init): Declaration changed.
2092
2093 2006-02-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2094
2095         * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
2096         * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
2097         pa/t-pa.
2098         * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
2099         pa/t-pa.
2100         * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
2101         pa/x-ada.
2102         * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
2103         * pa/t-pa64: Delete quadlib.c rule.
2104         * pa/x-ada: Revert last change.
2105         * pa/t-pa: Revert last change.  Delete quadlib.c rule.
2106
2107 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
2108
2109         PR rtl-optimization/26087
2110         * rtlanal.c (canonicalize_condition): Do not cross basic block
2111         boundaries.
2112
2113 2006-02-04  Alexandre Oliva  <aoliva@redhat.com>
2114
2115         PR debug/24444
2116         * config/ia64/ia64.c: Include debug.h.
2117         (MAX_ARTIFICIAL_LABEL_BYTES): New.
2118         (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
2119         (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
2120         (process_epilogue, process_set, process_for_unwind_directive):
2121         Output unwind info only if requested.  Add CFA info if requested.
2122         Add new arguments as needed.  Adjust callers.
2123         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
2124         incorrect default.
2125         (DWARF2_FRAME_INFO): Define to zero.
2126         * config/ia64/unwind-ia64.c: Remove code that compensated for
2127         the CFA offset error fixed above.
2128         * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
2129         * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
2130         (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
2131         -funwind-tables and -fexceptions to enable frame info.
2132         (dwarf2out_frame_init): Define initial CFA even if
2133         DWARF2_UNWIND_INFO is disabled.  Call initial_return_save if
2134         DWARF2_UNWIND_INFO is nonzero, not just defined.
2135         (dwarf2out_frame_finish): Output non-EH call frame info only
2136         if DWARF2_FRAME_INFO is nonzero.
2137         (convert_cfa_to_loc_list,
2138         compute_frame_pointer_to_cfa_displacement): Define even if
2139         unwind info is not supported.
2140         (gen_subprogram_die): Use the above unconditionally.  Remove
2141         legacy alternate code.
2142         * toplev.c (compile_file): Compile in call to
2143         dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
2144         (lang_dependent_init): Ditto for dwarf2out_frame_init.
2145
2146 2006-02-04  David Edelsohn  <edelsohn@gnu.org>
2147             Jakub Jelinek  <jakub@redhat.com>
2148
2149         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
2150         IBM extended float format long double as "g" on powerpc*-linux.
2151
2152 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2153
2154         PR target/25926
2155         * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
2156         * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
2157
2158 2006-02-03  Jason Merrill  <jason@redhat.com>
2159
2160         PR c++/25979
2161         * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
2162
2163         PR middle-end/25977
2164         * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
2165         on the return slot if it's an NRV.
2166
2167 2006-02-03  Zdenek Dvorak <dvorakz@suse.cz>
2168
2169         * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
2170         (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
2171         rewrite_use): Do not handle USE_OUTER.
2172         (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
2173         add_iv_outer_candidates, may_replace_final_value,
2174         determine_use_iv_cost_outer, rewrite_use_outer): Removed.
2175         (find_interesting_uses_op): Functionality of
2176         find_interesting_uses_outer_or_nonlin moved here.
2177         (find_interesting_uses_outside): Use find_interesting_uses_op.
2178
2179 2006-02-03  Alan Modra  <amodra@bigpond.net.au>
2180
2181         PR target/25960
2182         * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
2183
2184 2006-02-03  Andreas Krebbel  <krebbel1@de.ibm.com>
2185             Ulrich Weigand  <uweigand@de.ibm.com>
2186
2187         PR target/25864
2188         * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
2189         "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
2190         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
2191         * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
2192         and dxr fields.
2193         (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
2194         (s390_rtx_costs): Use the new fields to calculate rtx costs.
2195         (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
2196         Define secondary reloads for TFmode moves.
2197         (constant_modes): Add TFmode.
2198         (NR_C_MODES): Set to 8.
2199         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
2200         builtin define.
2201         (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
2202         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
2203         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
2204         CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
2205         * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
2206         fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
2207         (FPR mode macro): Add TFmode.
2208         (DSF mode macro): New.
2209         (<de>, <dee> mode attributes): Removed.
2210         (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
2211         ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
2212         "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
2213         "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
2214         "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
2215         "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
2216         "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
2217         "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
2218         "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
2219         "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
2220         "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
2221         "*negabs<mode>2", "sqrt<mode>2"):
2222         Changed <de> to <xde>. R constraint replaced by <Rf>.
2223         ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
2224         <Rf>.
2225         ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
2226         ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
2227         ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
2228         splitters.
2229         ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
2230         "extenddftf2", "extendsftf2"): New expanders.
2231         ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
2232         "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
2233         "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
2234         * config/s390/s390.opt (mlong-double-128, mlong-double-64):
2235         New options.
2236         * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
2237         * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
2238         __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
2239         __floatditf): Add a GCC_4.1.0 symbol version tag.
2240         * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
2241         the new options.
2242
2243 2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>
2244
2245         PR target/25377
2246         * config/i386/i386.c (ix86_function_ok_for_sibcall):
2247         Use targetm.binds_local_p instead of TREE_PUBLIC.
2248
2249 2006-02-02  Roger Sayle  <roger@eyesopen.com>
2250
2251         * tree.h (TYPE_STRING_FLAG): Document that this field may be used
2252         on INTEGER_TYPEs to indicate that it denotes a character type.
2253         * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
2254         signed_char_type_node, unsigned_char_type_node and char_type_node.
2255         * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
2256         INTEGER_TYPE.  Use TYPE_STRING_FLAG to decide whether to emit
2257         a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
2258
2259 2006-02-02  Zdenek Dvorak <dvorakz@suse.cz>
2260             Daniel Berlin  <dberlin@dberlin.org>
2261
2262         * tree-tailcall.c (arg_needs_copy_p): New function.
2263         (eliminate_tail_call): Use arg_needs_copy_p.
2264         (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
2265         (add_virtual_phis): New function.
2266
2267 2006-02-02  Jakub Jelinek  <jakub@redhat.com>
2268
2269         * config/sparc/sparc.c (sparc_output_scratch_registers): Use
2270         #ignore instead of #scratch for %g7 .register directive.
2271
2272 2006-02-02  Andreas Tobler  <a.tobler@schweiz.ch>
2273
2274         * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
2275         object files.
2276
2277 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
2278
2279         * flow.c (calculate_global_regs_live): Assert that there aren't any
2280         EDGE_FAKE edges.
2281
2282 2006-02-02  Paolo Bonzini  <bonzini@gnu.org>
2283
2284         * tree-flow-inline.h (bsi_after_labels): Rewrite, return
2285         what its name says.
2286         * lambda-code.c (perfect_nestify): Use bsi_insert_before on
2287         bsi_after_labels iterator.
2288         * tree-if-conv.c (find_phi_replacement_condition,
2289         replace_phi_with_cond_modify_expr): Likewise.
2290         * tree-scalar-evolution.c (scev_const_prop): Likewise.
2291         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
2292
2293 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
2294
2295         * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
2296
2297 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
2298
2299         PR 25990
2300         * tree-cfg.c (move_block_to_fn): Clear out the basic block
2301         array after growing it.
2302
2303 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
2304
2305         PR middle-end/24901
2306         * fold-const.c (fold_checksum_tree): Change type of buf.
2307
2308 2006-02-01  Bernd Schmidt  <bernd.schmidt@analog.com>
2309
2310         * reload.c (push_secondary_reload): Initialize t_icode.
2311
2312 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
2313
2314         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
2315         -msoft-float -mlong-double-128 only issue a warning, but don't
2316         swich to DFmode long double.
2317
2318 2006-02-01  Hans-Peter Nilsson  <hp@axis.com>
2319
2320         * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
2321         has a constant equivalent, iterate over equivalents for arg0,
2322         calling simplify_relational_operation and if there's a result
2323         cheaper than X, apply fold_rtx and return the result.
2324
2325 2006-02-01  Jan Hubicka  <jh@suse.cz>
2326
2327         * opts.c (no_unit_at_a_time_default): New global variable.
2328         (decode_options): Use it.
2329         * opts.h (no_unit_at_a_time_default): Declare.
2330
2331 2006-02-01  Paul Brook  <paul@codesourcery.com>
2332
2333         * function.c (assign_parm_setup_reg): Use function argument promotion
2334         rules.
2335         * expr.c (expand_expr_real_1): Use function argument promotion rules
2336         for PARM_DECLs.
2337
2338 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
2339
2340         * gcc.c (process_command): Change j to 'unsigned int'.
2341
2342 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
2343
2344         PR middle-end/26001
2345         * expr.c (expand_expr_real_1) <case ARRAY_REF>:
2346         Use the corrected index for the character
2347         out of the string constant.
2348
2349 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
2350
2351         * mode-switching.c (optimize_mode_switching): Fix size
2352         allocated for bb_info[n_entities].
2353
2354 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
2355
2356         * gcc.c (main): Correct type that is allocated for
2357         explicit_link_files.
2358
2359 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
2360
2361         * config/s390/s390.c (init_alignment_context): Set
2362         ALIAS_SET_MEMORY_BARRIER on the MEM.
2363         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
2364
2365 2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>
2366
2367         PR middle-end/25933
2368         * loop-unroll.c (unroll_loop_runtime_iterations): Free
2369         dom_bbs pointer.
2370         * tree-ssa-live.c (type_var_init): Allocate bitmap after
2371         call to tpa_init.
2372
2373 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
2374
2375         * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
2376         * regrename.c: Ditto.
2377         * tree-ssa-loop-im.c: Ditto.
2378         * tree-dump.c: Ditto.
2379         * tree-complex.c: Ditto.
2380         * genrecog.c: Ditto.
2381         * tree-ssa-threadupdate.c: Ditto.
2382         * tracer.c: Ditto.
2383         * java/class.c: Ditto.
2384         * java/jcf-parse.c: Ditto.
2385         * java/resource.c: Ditto.
2386         * java/except.c: Ditto.
2387         * java/jvspec.c: Ditto.
2388         * java/jcf-write.c: Ditto.
2389         * java/jcf-path.c: Ditto.
2390         * java/gjavah.c: Ditto.
2391         * java/zextract.c: Ditto.
2392         * java/jcf-io.c: Ditto.
2393         * java/jcf.h: Ditto.
2394         * java/buffer.c: Ditto.
2395         * java/lang.c: Ditto.
2396         * java/parse-scan.y: Ditto.
2397         * java/lex.c: Ditto.
2398         * java/lex.h: Ditto.
2399         * cfgloopmanip.c: Ditto.
2400         * postreload-gcse.c: Ditto.
2401         * tree-ssa-loop-manip.c: Ditto.
2402         * postreload.c: Ditto.
2403         * tree-ssa-loop-ch.c: Ditto.
2404         * loop.c: Ditto.
2405         * ipa-cp.c: Ditto.
2406         * cppspec.c: Ditto.
2407         * diagnostic.c: Ditto.
2408         * final.c: Ditto.
2409         * genoutput.c: Ditto.
2410         * gcc.c: Ditto.
2411         * cfghooks.c: Ditto.
2412         * cfgloopanal.c: Ditto.
2413         * objc/objc-act.c: Ditto.
2414         * gcov.c: Ditto.
2415         * genextract.c: Ditto.
2416         * genautomata.c: Ditto.
2417         * pretty-print.c: Ditto.
2418         * genemit.c: Ditto.
2419         * cgraphunit.c: Ditto.
2420         * flow.c: Ditto.
2421         * df-scan.c: Ditto.
2422         * haifa-sched.c: Ditto.
2423         * dominance.c: Ditto.
2424         * dbxout.c: Ditto.
2425         * tree-ssa-loop-ivopts.c: Ditto.
2426         * df-core.c: Ditto.
2427         * mode-switching.c: Ditto.
2428         * modulo-sched.c: Ditto.
2429         * graph.c: Ditto.
2430         * ipa-pure-const.c: Ditto.
2431         * cse.c: Ditto.
2432         * fix-header.c: Ditto.
2433         * web.c: Ditto.
2434         * tree-stdarg.c: Ditto.
2435         * ipa-utils.c: Ditto.
2436         * loop-init.c: Ditto.
2437         * ipa-inline.c: Ditto.
2438         * cfganal.c: Ditto.
2439         * global.c: Ditto.
2440         * alloc-pool.c: Ditto.
2441         * dwarf2out.c: Ditto.
2442         * opts.c: Ditto.
2443         * genattrtab.c: Ditto.
2444         * tree-ssa-loop-ivcanon.c: Ditto.
2445         * predict.c: Ditto.
2446         * timevar.c: Ditto.
2447         * lcm.c: Ditto.
2448         * fortran/gfortranspec.c: Ditto.
2449         * regmove.c: Ditto.
2450         * local-alloc.c: Ditto.
2451         * langhooks.c: Ditto.
2452         * function.c: Ditto.
2453         * tree-vectorizer.c: Ditto.
2454         * gcse.c: Ditto.
2455         * ipa-type-escape.c: Ditto.
2456         * alias.c: Ditto.
2457         * tree-if-conv.c: Ditto.
2458         * profile.c: Ditto.
2459         * ipa.c: Ditto.
2460         * tree-data-ref.c: Ditto.
2461         * loop-unroll.c: Ditto.
2462         * treelang/treetree.c: Ditto.
2463         * calls.c: Ditto.
2464         * bt-load.c: Ditto.
2465         * ggc-common.c: Ditto.
2466         * except.c: Ditto.
2467         * coverage.c: Ditto.
2468         * cselib.c: Ditto.
2469         * tree-cfgcleanup.c: Ditto.
2470         * tree-ssa-pre.c: Ditto.
2471         * cfgcleanup.c: Ditto.
2472         * loop-invariant.c: Ditto.
2473         * loop-iv.c: Ditto.
2474         * ipa-prop.c: Ditto.
2475         * print-tree.c: Ditto.
2476         * conflict.c: Ditto.
2477         * ggc-page.c: Ditto.
2478         * sched-deps.c: Ditto.
2479         * regclass.c: Ditto.
2480         * tree-object-size.c: Ditto.
2481         * combine.c: Ditto.
2482         * bb-reorder.c: Ditto.
2483         * resource.c: Ditto.
2484         * var-tracking.c: Ditto.
2485         * cfgloop.c: Ditto.
2486         * df-problems.c: Ditto.
2487         * reg-stack.c: Ditto.
2488         * tlink.c: Ditto.
2489         * gccspec.c: Ditto.
2490         * sched-rgn.c: Ditto.
2491         * tree-ssa-structalias.c: Ditto.
2492         * tree-ssa-reassoc.c: Ditto.
2493         * config/darwin-c.c: Ditto.
2494         * config/darwin.c: Ditto.
2495         * config/arm/arm.c: Ditto.
2496         * cfgrtl.c: Ditto.
2497         * collect2.c: Ditto.
2498         * reload1.c: Ditto.
2499
2500 2006-01-31  Nicolas Pitre  <nico@cam.org>
2501
2502         * arm.md (smaxsi3): Make aware of smax_m1.
2503         (smax_m1): New.
2504
2505 2006-01-31  Nathan Sidwell  <nathan@codesourcery.com>
2506
2507         * gcc/config/m68k/lb1sf68.asm: Use moveq to load small constants.
2508
2509 2006-01-31  Richard Guenther  <rguenther@suse.de>
2510
2511         * doc/invoke.texi (-msselibm): Document.
2512         * target.h (expand_library_builtin): New target hook.
2513         * builtins.c (expand_builtin): Use expand_library_builtin.
2514         (default_expand_library_builtin): New function.
2515         * gcc.c (LINK_GCC_MATH_SPEC): Define.
2516         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
2517         (link_gcc_math_spec): Declare.
2518         (static_specs): Add link_gcc_math_spec.
2519         * expr.h (default_expand_library_builtin): Declare.
2520         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2521         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
2522         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
2523         * config/i386/i386.opt (msselibm): New target option.
2524         * config/i386/i386.c (ix86_builtin_function_variants): New array.
2525         (ix86_init_sse_abi_builtins): New function.
2526         (ix86_expand_library_builtin): Likewise.
2527         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
2528         (override_options): Handle error conditions wrt -msselibm.
2529         (ix86_builtins): Add function codes for SSE2 ABI builtins.
2530         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
2531         * doc/extend.texi (__builtin_sse2_*): Document new target specific
2532         builtins.
2533
2534 2006-01-31  Richard Guenther  <rguenther@suse.de>
2535         Paolo Bonzini  <bonzini@gnu.org>
2536
2537         * doc/install.texi (--disable-libgcc-math): Document.
2538
2539 2006-01-30  Marcin Dalecki  <martin@dalecki.de>
2540
2541         * expr.h (expand_normal): new inline function.
2542         * builtins.c: use it, use EXPAND_NORMAL explicitely.
2543         * dojump.c: use it.
2544         * dwarf2out.c: use it.
2545         * expr.c: use it.
2546         * calls.c: use it.
2547         * expmed.c: use it.
2548         * except.c: use it.
2549         * config/sparc/sparc.c: use it.
2550         * config/i386/i386.c: use it.
2551         * config/rs6000/rs6000.c: use it.
2552         * config/arm/arm.c: use it.
2553         * config/mips/mips.c: use it.
2554         * stmt.c: use it, use EXPAND_NORMAL explicitely.
2555
2556 2006-01-30  Roger Sayle  <roger@eyesopen.com>
2557
2558         * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
2559         argv to the appropriate type.
2560
2561 2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
2562
2563         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
2564         unreachable code.
2565
2566 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
2567
2568         PR target/26018
2569         * config/s390/s390.c (struct machine_function): New flag
2570         decomposed_literal_pool_addresses_ok_p.
2571         (s390_reorg): Set it before final stage of literal pool transforms.
2572         (s390_decompose_address): Only accept displacements of the form
2573         (minus (label_ref ...) (label_ref ...)) if that flag is set.
2574
2575 2006-01-30  Carlos O'Donell  <carlos@codesourcery.com>
2576
2577         * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
2578         the comparison routine return.
2579
2580 2006-01-30  Michael Matz  <matz@suse.de>
2581
2582         * global.c (find_reg): Only evict for global regs.
2583         Take n_refs into account and dump more info.
2584
2585 2006-01-30  J"orn Rennecke <joern.rennecke@st.com>
2586
2587         PR target/14798:
2588         * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
2589         (pragma_trap, pragma_nosave_low_regs): Likewise.
2590         (current_function_anonymous_args): Likewise.
2591         (sh_deferred_function_attributes): New variable.
2592         (sh_deferred_function_attributes_tail): Likewise.
2593         (print_operand): For '@', look up trap_exit attribute.
2594         (calc_live_regs): Look up trapa_handler attribute.  For trapa
2595         handlers, save/restore fpscr, but don't do any other
2596         interrupt-specific saves.
2597         Don't save r0..r7 if the nosave_low_regs attribute is in effect.
2598         Fix check for partially saved registers to check for SHmedia.
2599         (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
2600         (sh_output_function_epilogue): Don't clear any of the removed
2601         variables.
2602         (sh_insert_attributes): Don't check pragma_interrupt.
2603         Insert deferred attributes.  Check that interrupt attribute is
2604         present for other attributes that require its presence.
2605         (sh_attribute_table): Add new attributes trapa_handler and
2606         nosave_low_regs.
2607         (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
2608         Don't check for pragma_interrupt.  Don't store argument.
2609         * sh.h (pragma_interrupt, sp_switch): Don't declare.
2610         (sh_deferred_function_attributes): Declare.
2611         (sh_deferred_function_attributes_tail): Likewise.
2612         * sh.md (sp_switch_1): Add operand.  Change generator caller.
2613         (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
2614         (*return_i): Don't use when trap_exit attribute is in effect.
2615         (*return_trapa): New insn pattern.
2616         * sh-c.c: New file.
2617         * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
2618         setting c_target_objs and cxx_target_objs.
2619         * t-sh: Add rule for sh-c.o.
2620
2621 2006-01-30  Richard Guenther  <rguenther@suse.de>
2622
2623         PR c++/23372
2624         * gimplify.c (gimplify_target_expr): Handle easy cases
2625         without creating a temporary.
2626
2627 2006-01-30  Nathan Sidwell  <nathan@codesourcery.com>
2628
2629         * vec.h (safe_grow): Remove duplicated line.
2630
2631 2006-01-29  Diego Novillo  <dnovillo@redhat.com>
2632
2633         PR 25874
2634         * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
2635         (expand_omp): ... here.
2636         (expand_omp_parallel): Only remove barriers for combined
2637         parallel+workshare constructs.
2638
2639 2006-01-29  Eric Botcazou  <ebotcazou@adacore.com>
2640
2641         Revert
2642
2643         2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2644         * tree.c (build_qualified_type): Chain the new type to the original
2645         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
2646         a POINTER_TYPE or a REFERENCE_TYPE respectively.
2647         (build_pointer_type_for_mode): Only return unqualified types.
2648         (build_reference_type_for_mode): Likewise.
2649
2650 2006-01-29  Gabriel Dos Reis  <gdr@integgrable-solutions.net>
2651
2652         * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
2653         * Makefile.in (CXX_COMPAT_WARN): Define.
2654         * configure: Regenerate.
2655
2656 2006-01-29  Dorit Nuzman  <dorit@il.ibm.com>
2657
2658         PR tree-opt/25911
2659         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
2660         to an if check.
2661
2662 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2663
2664         * toplev.c: Fix thinko.
2665
2666 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2667             Marcin Dalecki  <martin@dalecki.de>
2668
2669         * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
2670         (push_srcloc): Use XNEW.
2671         (init_asm_output, default_get_pch_validity): Use XNEWVEC.
2672
2673 2006-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
2674
2675         * df-core.c (df_set_blocks): Deleted all variable.
2676
2677 2006-01-28  Ian Lance Taylor  <ian@airs.com>
2678
2679         * cgraphunit.c (cgraph_assemble_pending_functions): Call
2680         cgraph_output_pending_asms.
2681
2682 2006-01-28  Zack Weinberg  <zackw@panix.com>
2683
2684         * c.opt: Add -W(no-)overlength-strings.
2685         * doc/invoke.texi: Document it.
2686         * c-opts.c (c_common_handle_option): -pedantic implies
2687         -Woverlength-strings, if not explicitly disabled already.
2688         (c_common_post_options): -Woverlength-strings defaults to off, and
2689         is always off for C++.
2690         * c-common.c (fix_string_type): Issue warning about strings longer
2691         than is portable only if warn_overlength_strings.  Rearrange code
2692         a little for clarity.
2693         * configure.in: Check for -Wno-overlength-strings as well before
2694         enabling -pedantic in stage 1.
2695         * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
2696         (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
2697
2698         * genconditions.c (write_header, write_one_condition)
2699         (write_conditions, write_writer): Consolidate very long strings
2700         that were broken up to fit in C89 portable limit.  Don't use
2701         printf when fputs will do.
2702
2703 2006-01-28  Adam Nemet  <anemet@caviumnetworks.com>
2704
2705         * combine.c (simplify_comparison <AND>): Check
2706         TRULY_NOOP_TRUNCATION before start using a subreg.
2707
2708         * config/mips/mips.md (*branch_zero<mode>,
2709         *branch_zero<mode>_inverted, *branch_equality<mode>,
2710         *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
2711         Remove mode check from comparisons.
2712
2713 2006-01-28  Kenneth Zadeck <zadeck@naturalbridge.com>
2714
2715         * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
2716
2717 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
2718
2719         * expmed.c (const_mult_add_overflow_p): Remove.
2720         * expr.h: Remove the prototype for const_mult_add_overflow_p.
2721
2722         * recog.c (validate_replace_rtx_subexp): Remove.
2723         * recog.h: Remove the prototype for
2724         validate_replace_rtx_subexp.
2725
2726         * integrate.h: Remove the prototype for
2727         copy_decl_for_inlining.
2728         * rtl.h: Remove the prototype for mark_constant_function.
2729         * tree-vectorizer.h: Remove the prototype for
2730         vect_strip_conversion.
2731
2732         * modulo-sched.c (create_partial_schedule,
2733         free_partial_schedule, reset_partial_schedule): Make them
2734         static.
2735
2736         * hooks.c (hook_bool_rtx_int_false): Remove.
2737         * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
2738
2739 2006-01-28  David Edelsohn  <edelsohn@gnu.org>
2740
2741         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
2742         and -mlong-double-128 are incompatible.
2743         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
2744         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
2745         (TARGET_LIBGCC2_CFLAGS): Define.
2746         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
2747         (TARGET_LIBGCC2_CFLAGS): Same.
2748         * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
2749
2750 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
2751
2752         PR c/19606.
2753         * c-typeck.c (build_binary_op): Perform implicit casts of
2754         operands before shortening them.
2755
2756         * cfgloopmanip.c (split_loop_bb): Remove.
2757         * cfgloop.h: Remove the prototype for split_loop_bb.
2758
2759         * cfgloop.c (flow_loop_outside_edge_p): Remove.
2760         * cfgloop.h: Remove the prototype for
2761         flow_loop_outside_edge_p.
2762
2763         * emit-rtl.c (init_virtual_regs): Make it static.
2764         * function.h: Remove the prototype for init_virtual_regs.
2765
2766         * recog.c (peephole2_optimize): Make it static.
2767         * recog.h: Remove the prototype for peephole2_optimize.
2768
2769 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
2770
2771         * df-scan.c (df_record_entry_block_defs): Check if
2772         INCOMING_RETURN_ADDR_RTX is defined.
2773
2774 2006-01-27  Daniel Berlin  <dberlin@dberlin.org>
2775             Kenneth Zadeck <zadeck@naturalbridge.com>
2776
2777         PR rtl-optimization/24762
2778         * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
2779         * targhooks.c (hook_void_bitmap): New hook prototype.
2780         * targhoohs.h (hook_void_bitmap): Ditto.
2781         * bitmap.h (bitmap_head_def): Moved to coretypes.h.
2782         * coretypes.h (bitmap_head_def): Moved from bitmap.h.
2783         * target.h (live_on_entry): New function pointer.
2784         * df-scan.c (df_all_hard_regs): Removed.
2785         (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
2786         (df_scan_free_internal): Added df->entry_block_defs.
2787         (df_scan_alloc): Ditto.
2788         (df_scan_dump): Ditto.
2789         (df_uses_record): Plumbed flag field properly thru calls.
2790         Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
2791         This part fixes PR24762.
2792         (df_bb_refs_record): Added code to make the frame and arg
2793         pointers live in EH blocks.
2794         (df_refs_record): Added call to df_record_entry_block_defs.
2795         (df_record_entry_block_defs): New function.
2796         * df-core.c: Added comments to describe new artifical defs.
2797         * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
2798         (entry_block_defs): New field in struct df.
2799         (df_all_hard_regs): Deleted.
2800         * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
2801         * df-problems.c (df_ru_bb_local_compute_process_def):
2802         Added code to handle artifical defs in the entry to a function.
2803         (df_ru_bb_local_compute): Ditto.
2804         (df_rd_bb_local_compute_process_def):  Ditto.
2805         (df_rd_bb_local_compute): Ditto.
2806         (df_lr_bb_local_compute): Ditto.
2807         (df_ur_bb_local_compute): Ditto.
2808         (df_urec_bb_local_compute):  Ditto.
2809         (df_chain_create_bb):  Ditto.
2810         (df_ur_local_finalize): Removed entry.
2811         (df_urec_init): Ditto.
2812         (df_urec_local_finalize): Ditto.
2813         (df_ri_bb_compute): Added detection of last use of pseudos.
2814         * Makefile.in (df-scan.o): Updated dependencies.
2815         * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
2816         * config/mips/mips.c (mips_set_live_on_entry): Added.
2817         * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
2818         for target hook.
2819         * dce.c (marked_insn_p): Added code to handle artifical defs.
2820
2821 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
2822
2823         * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
2824         intrinsic.
2825         (_mm_cvtsi128_si64): Likewise.
2826         (_mm_cvtsd_si64): Likewise.
2827         (_mm_cvttsd_si64): Likewise.
2828         (_mm_cvtsi64_sd): Likewise.
2829         (_mm_cvtsi64_si128): Likewise.
2830         * config/i386/mmintrin.h (_m_from_int64): Likewise.
2831         (_mm_cvtsi64_m64): Likewise.
2832         (_m_to_int64): Likewise.
2833         (_mm_cvtm64_si64): Likewise.
2834         * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
2835         (_mm_cvttss_si64): Likewise.
2836         (_mm_cvtsi64_ss): Likewise.
2837         (_mm_cvtss_f32): Likewise.
2838
2839 2006-01-27  Carlos O'Donell  <carlos@codesourcery.com>
2840
2841         * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
2842         for pragma redefine_extname.
2843
2844 2006-01-27  Jakub Jelinek  <jakub@redhat.com>
2845
2846         PR target/25864
2847         * libgcc-std.ver: Add GCC_4.1.0 symbol version.
2848         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
2849         -mno-minimal-toc to previous content.
2850         (bispecs): Remove goal.
2851         * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
2852         * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
2853         compatibility aliases on powerpc-*-*gnu*.
2854         * config/rs6000/libgcc-ppc-glibc.ver: New file.
2855         * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
2856         libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
2857         (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
2858         (ldblspecs): New goal.
2859         * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
2860         * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
2861         _df_to_tf.
2862         * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
2863         L_sf_to_tf or L_df_to_tf is defined.
2864
2865 2006-01-27  David Edelsohn  <edelsohn@gnu.org>
2866             Alan Modra  <amodra@bigpond.net.au>
2867
2868         PR target/25864
2869         * config/rs6000/linux.h (POWERPC_LINUX): Define.
2870         * config/rs6000/linux64.h (POWERPC_LINUX): Define.
2871         * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
2872         * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
2873         * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
2874         * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
2875         (rs6000_override_options): Initialize rs6000_ieeequad.
2876         Initialize TFmode format to ibm_extended_format if not
2877         TARGET_IEEEQUAD.
2878         (rs6000_handle_option): Accept -mabi= ibmlongdouble and
2879         ieeelongdouble.
2880         (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
2881         (rs6000_return_in_memory): Only return IEEEQUAD in memory.
2882         (function_arg_advance): IBM long double passed in two FPRs, not
2883         split.
2884         (function_arg): IBM long double passed in FPRs.
2885         (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
2886         (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
2887         Only multireg GPR aligned.
2888         (rs6000_init_libfuncs): Enable IBM long double functions if not
2889         IEEEQUAD.
2890         (rs6000_generate_compare): Use IBM long double compare if not
2891         TARGET_IEEEQUAD.
2892         * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
2893         (TARGET_IEEEQUAD): Define.
2894         (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
2895         not TARGET_IEEEQUAD.
2896         * config/rs6000/rs6000.md: Enable TFmode patterns if
2897         !TARGET_IEEEQUAD.
2898         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
2899         * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
2900         and -mlong-double-128 are incompatible.
2901         * doc/invoke.texi (-mabi): Collect options together.  Add
2902         ibmlongdouble and ieeelongdouble.
2903
2904 2006-01-27  Richard Sandiford  <richard@codesourcery.com>
2905
2906         * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
2907         opaque type.
2908         * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
2909         * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
2910         (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
2911         * rtl.h (rtunion_def): Remove rt_ptr.
2912         (X0PTR): Delete.
2913         (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
2914         (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
2915         * config/i386/winnt.c (i386_pe_mark_dllexport)
2916         (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
2917
2918 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
2919
2920         * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
2921
2922 2006-01-26 Alexandre Oliva  <aoliva@redhat.com>
2923
2924         PR other/24829
2925         PR target/24831
2926         * gthr-dce.h: Do not gthrw-ify pthread_once_init,
2927         pthread_key_delete.  From John David Anglin.  gthrw-ify
2928         pthread_getunique_np only if it it's not a macro.  Delete
2929         UNUSED macro.
2930         (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
2931         __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
2932         __gthread_objc_condition_signal, __gthread_key_delete): Add
2933         "__attribute__ ((__unused__))" to unused arguments.
2934         (__gthread_recursive_mutex_init_function): Add missing return.
2935         * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
2936         gthr-posix95.h: Use macro-based approach for name redirection
2937         on targets missing weakref.
2938
2939 2006-01-26  Zack Weinberg  <zackw@panix.com>
2940
2941         * genconditions.c (write_header): In generated code, #ifdef out
2942         all includes and fake declarations, except includes of bconfig.h
2943         and system.h, unless GCC_VERSION >= 3001.  Do not include
2944         gensupport.h in any case.
2945         (write_conditions): Generate a definition of struct c_test.  Add
2946         a comment to the generated #endif.
2947         (write_one_condition): Escape backslashes in string too.
2948         (write_writer): Generated code must escape backslashes and quote
2949         marks (but not newlines) in the strings it writes.
2950         * Makefile.in (build/gencondmd.o): Update dependencies.
2951
2952 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
2953
2954         PR target/25961
2955         * Makefile.in (insn-automata.o): Add header file dependencies.
2956         * genautomata.c: Add includes.
2957
2958 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
2959
2960         PR target/25961
2961         * Makefile.in (insn-automata.o): Add -Wno-error flag.
2962
2963 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
2964
2965         * configure.ac: Expect target tools paths to be passed from the toplevel
2966         and wrap the detection into AS_SET_VAR_IF.  Extract side-effects out of
2967         AS_SET_VAR_IF.
2968         * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
2969
2970 2006-01-26  Alexandre Oliva  <aoliva@redhat.com>
2971
2972         PR c/25892
2973         * c.opt (Wpointer-sign): Init to -1.
2974         * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
2975         OPT_pedantic, to 0 otherwise.
2976         * doc/invoke.texi: Update.
2977
2978 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
2979
2980         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
2981         constants provided by 80387 instructions in the destination mode.
2982
2983 2006-01-26  Richard Guenther  <rguenther@suse.de>
2984             Andrew Pinski  <pinskia@physics.uc.edu>
2985
2986         PR tree-opt/21470
2987         partial PR tree-opt/17064
2988         * tree-ssa-structalias.c (intra_create_variable_infos):
2989         Create heap variables for incoming parameters if
2990         flag_argument_noalias > 1.
2991         (find_what_p_points_to): Look through default defs of
2992         parameter decls.
2993
2994 2006-01-26  Jeff Law  <law@redhat.com>
2995
2996         PR ada/25900
2997         * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
2998         with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
2999         within the VR_RANGE, use the VR_RANGE as the result, not the
3000         VR_ANTI_RANGE.
3001         (adjust_range_with_scev): Reject ranges from SCEV which are out of
3002         bounds for the type.
3003
3004 2006-01-26  Daniel Berlin  <dberlin@dberlin.org>
3005
3006         * tree-ssa-alias.c (maybe_create_global_var): Change
3007         subvar walking to an assertion that we don't have subvar'd variables.
3008
3009 2006-01-26  Andrew Pinski  <pinskia@physics.uc.edu>
3010
3011         PR C/25861
3012         * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
3013         Use a new variable, inner.  PARM_DECLs are always non-weak.
3014
3015 2006-01-26  Shantonu Sen  <ssen@opendarwin.org>
3016
3017         * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
3018         --disable-checking.
3019
3020 2006-01-26  Adam Nemet  <anemet@caviumnetworks.com>
3021
3022         * config/mips/mips.md (*clear_upper32): New combiner pattern.
3023
3024 2006-01-26  Richard Earnshaw  <richard.earnshaw@arm.com>
3025
3026         * arm.md (smaxsi3, sminsi3): Convert to define_expand.
3027         (smax_insn, smin_insn, smax_0, smin_0): New.
3028
3029 2006-01-26  Hans-Peter Nilsson  <hp@axis.com>
3030
3031         PR target/25947
3032         * config/cris/cris.c (cris_order_for_addsi3): New function.
3033         * config/cris/cris-protos.h: Prototype it.
3034         * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
3035         (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
3036         (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
3037         (split for "op.S1 [rx=rx+i],ry (swapped)")
3038         (split for "op(s|u).S1 [rx=rx+i],ry")
3039         (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
3040         Apply cris_order_for_addsi3 when generating addsi3 insns.
3041
3042 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
3043
3044         * tree.h (TREE_RANGE_CHECK): Fix range predicate.
3045         (TREE_BLOCK): Add call to EXPR_CHECK.
3046
3047 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
3048
3049         PR 25886
3050         * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
3051         * tree-pretty-print.c (dump_omp_clause): Extract from ...
3052         (dump_omp_clauses): ... here.
3053         (dump_generic_node): Handle OMP_CLAUSE.
3054         * tree.c (omp_clause_num_ops): New.
3055         (omp_clause_code_name): New.
3056         (tree_code_size): Handle OMP_CLAUSE.
3057         (tree_size): Likewise.
3058         (make_node): Document handling of OMP_CLAUSE.
3059         (tree_node_structure): Handle OMP_CLAUSE.
3060         (omp_clause_check_failed): New.
3061         (omp_clause_range_check_failed): New.
3062         (omp_clause_operand_check_failed): New.
3063         (build_omp_clause): New.
3064         (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
3065         * tree.h (enum omp_clause_code): Declare.
3066         (OMP_CLAUSE_SUBCODE_CHECK): Define.
3067         (OMP_CLAUSE_RANGE_CHECK): Define.
3068         (OMP_CLAUSE_ELT_CHECK): Define.
3069         (omp_clause_check_failed): Declare.
3070         (omp_clause_operand_check_failed): Declare.
3071         (omp_clause_range_check_failed): Declare.
3072         (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
3073         (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
3074         (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
3075         (OMP_CLAUSE_LASTPRIVATE): Likewise.
3076         (OMP_CLAUSE_IF_EXPR): Likewise.
3077         (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
3078         (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
3079         (OMP_CLAUSE_REDUCTION_CODE): Likewise.
3080         (OMP_CLAUSE_REDUCTION_INIT): Likewise.
3081         (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
3082         (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
3083         Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
3084         (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
3085         (OMP_CLAUSE_DEFAULT_KIND): Likewise.
3086         (OMP_CLAUSE_CODE): Define.
3087         (OMP_CLAUSE_SET_CODE): Define.
3088         (OMP_CLAUSE_CODE): Define.
3089         (OMP_CLAUSE_OPERAND): Define.
3090         (struct tree_omp_clause): Declare.
3091         (union tree_node): Add field 'omp_clause'.
3092         * treestruct.def (TS_OMP_CLAUSE): Define.
3093         * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
3094         OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
3095         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
3096         OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
3097         OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
3098         OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
3099         (OMP_CLAUSE): Define.
3100         * print-tree.c (print_node): Handle OMP_CLAUSE.
3101         * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
3102         * c-typeck.c: Likewise.
3103         * gimplify.c: Likewise.
3104         * c-omp.c: Likewise.
3105         * tree-nested.c: Likewise.
3106         * tree-inline.c: Likewise.
3107         * c-parser.c: Likewise.
3108         * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
3109         clauses.
3110
3111 2006-01-25  Roger Sayle  <roger@eyesopen.com>
3112
3113         PR rtl-optimization/25703
3114         * combine.c (try_combine): Handle zero_extract and strict_low_part
3115         of non-lowpart SUBREGs for constant reg_subword_p set optimization.
3116
3117 2006-01-25  Peter Bergner  <bergner@vnet.ibm.com>
3118
3119         * global.c: Fix comment typos.
3120
3121 2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
3122
3123         PR target/25758
3124         * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
3125         Use output_addr_const instead of assemble_name.
3126
3127 2006-01-25  Paolo Bonzini  <bonzini@gnu.org>
3128
3129         * Makefile.in (sched-vis.o): Update dependencies.
3130         * haifa-sched.c (sched_finish): Clear current_sched_info.
3131         * cfg.c (dump_bb_info): New, split from dump_flow_info.
3132         (dump_flow_info): Call it.
3133         * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
3134         a slim RTL dump.
3135         * basic-block.h (dump_bb_info): Declare.
3136         * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
3137         option, and apply options only for dump files whose TDF_RTL,
3138         TDF_TREE, or TDF_IPA bits match.
3139         * rtl.h: Declare new functions exported from sched-vis.c.
3140         * sched-vis.c: Enable also if scheduling is not used.
3141         (print_value): Print the mode of registers if not inside scheduling.
3142         (print_insn): Make it work outside the scheduler.  Beautify the output
3143         a bit.
3144         (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
3145
3146 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
3147
3148         * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
3149         * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
3150         a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
3151         depending on the value of CONSTANT_POOL_ADDRESS_P.
3152         * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
3153         SYMBOL_REF_DECL.
3154         * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
3155         rather than SYMBOL_REF_DECL.
3156         (rtx_constant_pool): Remove const_rtx_sym_htab.
3157         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
3158         (init_varasm_status): Don't initialize const_rtx_sym_htab.
3159         (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
3160         Remove handling of const_rtx_sym_htab.
3161         (find_pool_constant): Delete.
3162         (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
3163         rather than find_pool_constant.
3164         (get_pool_constant_for_function): Delete.
3165         (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
3166         find_pool_constant.
3167         * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
3168         (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
3169         (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
3170         (SYMBOL_REF_CONSTANT): New macro.
3171         (get_pool_constant_for_function): Delete.
3172         * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
3173         rather than SYMBOL_REF_DECL.
3174         (i386_pe_mark_dllimport): Likewise.
3175         * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
3176         rather than SYMBOL_REF_DECL.
3177         * config/darwin.c (machopic_indirect_data_reference): Likewise.
3178         (machopic_indirect_call_target): Likewise.
3179
3180 2006-01-25  Eric Botcazou  <ebotcazou@adacore.com>
3181
3182         * flow.c (delete_noop_moves): Add missing EOL to dump message.
3183
3184 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
3185
3186         * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
3187
3188 2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
3189
3190         * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
3191
3192 2006-01-24  David Daney  <ddaney@avtrex.com>
3193
3194         PR java/25816
3195         * configure.ac (enable_tls): New enable option.
3196         (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
3197         * configure: Regenerate.
3198         * doc/install.texi (--enable-tls): Document new option.
3199         (--disable-tls): Ditto.
3200
3201 2006-01-24  Richard Henderson  <rth@redehat.com>
3202
3203         * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
3204         * alias.c (true_dependence): Respect it.
3205         (canon_true_dependence, write_dependence_p): Likewise.
3206         * builtins.c (get_builtin_sync_mem): Set it.
3207
3208 2006-01-25  Zdenek Dvorak <dvorakz@suse.cz>
3209
3210         * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
3211         efficient way.
3212
3213 2006-01-24  DJ Delorie  <dj@redhat.com>
3214
3215         * expmed.c (store_bit_field): Don't arbitrarily deny using insv
3216         for storing constants in single-bit bitfields.
3217
3218 2006-01-25  Ben Elliston  <bje@au.ibm.com>
3219
3220         * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
3221
3222 2006-01-24  Andrew Pinski  <pinskia@physics.uc.edu>
3223
3224         PR tree-opt/25860
3225         * tree-ssa-pre.c (phi_translate): Return NULL
3226         for AGGREGATE_TYPE's.
3227
3228 2006-01-24  Zack Weinberg  <zackw@panix.com>
3229
3230         * genautomata.c (process_state_for_insn_equiv_partition):
3231         Use xcalloc for insn_arcs_array.
3232         * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
3233         (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
3234
3235 2006-01-24  Richard Henderson  <rth@redhat.com>
3236
3237         * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
3238         update all callers.
3239
3240 2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
3241
3242         PR rtl-optimization/25890
3243         PR rtl-optimization/25905
3244         * combine.c (expand_compound_operation, expand_field_assignment):
3245         Fail if the bitfield's final position is out of bounds.
3246
3247 2006-01-24  Ian Lance Taylor  <ian@airs.com>
3248
3249         PR middle-end/25930
3250         * cgraphunit.c (cgraph_output_in_order): Don't clear
3251         cgraph_asm_nodes until after asm strings have been output.
3252
3253 2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
3254
3255         * fix-header.c (read_scan_file): Add new parameter imultilib when
3256         calling register_include_chains.
3257
3258 2006-01-23  Diego Novillo  <dnovillo@redhat.com>
3259
3260         * omp-low.c: Update documentation.
3261
3262 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
3263             Daniel Berlin  <dberlin@dberlin.org>
3264
3265         PR tree-opt/25315
3266         PR tree-opt/25857
3267         * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
3268         return from the function.
3269
3270 2006-01-22  Zack Weinberg  <zackw@panix.com>
3271
3272         * rtl.def (match_code): Add second argument.
3273         * genpreds.c (write_extract_subexp): New function.
3274         (write_match_code): Add path argument.  Use write_extract_subexp.
3275         (write_predicate_expr): Pass path to write_match_code.
3276         (mark_mode_tests): MATCH_CODE applied to a subexpression does
3277         not perform a mode test.
3278         * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
3279         a subexpression does not constrain the top-level code set.
3280         * read-rtl.c (read_rtx_variadic): New function.
3281         (read_rtx_1): Use it; allow AND and IOR to be variadic.
3282         * doc/md.texi: Document new notation.
3283         * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
3284         (cmpsi_operand): ... here, using new notation.
3285
3286 2006-01-22  Zack Weinberg  <zackw@panix.com>
3287
3288         * varray.c: Remove GENERATOR_FILE #ifdefs.
3289
3290 2006-01-22  Zack Weinberg  <zackw@panix.com>
3291
3292         * genautomata.c (output_reserved_units_table): Emit nothing if
3293         description->query_units_num is zero.  Remove extra blank line.
3294         (output_cpu_unit_reservation_p): Short circuit
3295         if description->query_units_num is zero.
3296
3297 2006-01-22  Zack Weinberg  <zackw@panix.com>
3298
3299         * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
3300         and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
3301         nor any of the random handful of variables that used to be necessary
3302         when this program was linked with rtlanal.o.  Prune set of forward
3303         function declarations.
3304         (struct attr_desc): Remove static_p field.
3305         (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
3306         (check_attr_test, make_internal_attr, make_numeric_value): Make static.
3307         (attr_string): Do not read the character one past the length of
3308         the string.
3309         (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
3310         (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
3311         (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
3312         (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
3313         (make_automaton_attrs): New.
3314         (main): Do not call into genautomata.  Call local gen_bypass
3315         and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
3316         Remove special case for insn_alts.
3317         * genautomata.c: Include gensupport.h; not genattrtab.h nor
3318         varray.h (leftover from previous change).  Prune set of forward
3319         function declarations.  Remove state_alts fields from all
3320         structures.  Remove state_alts_table from struct automaton.
3321         Make everything except main static.  Do not maintain num_dfa_decls.
3322         Do not maintain state_alts fields of various structures.
3323         (process_decls): Don't validate condexp for dm_insn_reserv decls.
3324         (add_arc): Remove state_alts argument.  All callers updated.
3325         (output_reserved_units_table): Emit #ifdef here...
3326         (output_tables): ...not here.  Don't generate state_alts tables.
3327         (expand_automata): Don't generate attributes.
3328         (write_automata): Don't generate state_alts functions.
3329         (main): New function.
3330         (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
3331         (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
3332         (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
3333         (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
3334         (BYPASS_P_FUNC_NAME, output_state_alts_table)
3335         (output_automata_list_state_alts_code, output_internal_state_alts_func)
3336         (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
3337         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
3338         Delete.
3339         * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
3340         * genattrtab.h: Delete file.
3341         * Makefile.in (OBJS-common): Add insn-automata.o.
3342         (insn-automata.o): New rule.
3343         (simple_generated_c): Add insn-automata.c.
3344         (build/genattrtab.o, build/genautomata.o): Update dependencies.
3345         (genprogmd): Add automata.
3346         (build/genattrtab): Needs no extra objects nor libraries.
3347         (build/genautomata): Needs build/vec.o and -lm.
3348
3349 2006-01-22  Zack Weinberg  <zackw@panix.com>
3350
3351         * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
3352         (output_dfa_max_issue_rate, locked_states_num): Delete.
3353         (struct automaton): Add locked_states field.
3354         (output_dead_lock_vect): Save number of locked states in
3355         automaton->locked_states.  If it is zero, don't print anything.
3356         (output_max_insn_queue_index_def): Define max_insn_queue_index const.
3357         (output_internal_dead_lock_func): Only test the dead_lock_vect
3358         for automata that have locked states.
3359         (output_statistics): Always print the number of locked states for
3360         each automaton.  Calculate total number of locked states here.
3361         (write_automata): Don't call output_dfa_max_issue_rate.
3362         * genattrtab.c: Define length_unit_log as a const variable.
3363         * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
3364         max_insn_queue_index const.
3365         * final.c (length_unit_log): Declare const.
3366         * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
3367
3368 2006-01-22  Zack Weinberg  <zackw@panix.com>
3369
3370         * genautomata.c:  Include vec.h, not varray.h.
3371         Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
3372         VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
3373         VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
3374         VEC_* macros operating on appropriately typed vectors, or to
3375         malloced arrays when the size is known in advance.  Const-ify
3376         many char* variables and function arguments.  No functional changes.
3377         * Makefile.in (build/varray.o): Delete rule.
3378         (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
3379         (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
3380
3381 2006-01-22  Zack Weinberg  <zackw@panix.com>
3382
3383         * gensupport.c: Define get_insn_name and record_insn_name here.
3384         (read_md_rtx): Call record_insn_name as appropriate.
3385         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
3386         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
3387         * genpreds.c, genrecog.c: Don't define get_insn_name nor
3388         record_insn_name.
3389         * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
3390         (BUILD_VARRAY): Delete.
3391         (genprognormal): Rename genprogmd.  Fold in all programs from
3392         genprognoprint; also attrtab.
3393         (build/genattrtab): Just mention genautomata.o and varray.o.
3394         Reorganize a bit, add comments to make the categories clearer.
3395
3396 2006-01-22  Zack Weinberg  <zackw@panix.com>
3397
3398         * genconditions.c (condition_table, add_condition): Delete.
3399         (write_conditions): Don't emit n_insn_conditions nor
3400         insn_elision_unavailable.  Issue the gcc version #ifdef here,
3401         inside the table, with no #else clause ...
3402         (write_header): ...not here.
3403         (write_writer): New function.
3404         (main): Don't initialize condition_table.  Use add_c_test.
3405         Call write_writer.
3406         * gensupport.c (init_md_reader_args_cb): Handle multiple input
3407         files on the command line.
3408         (maybe_eval_c_test): Don't check insn_elision_unavailable.
3409         Return -1 if there is no entry in the table, don't abort.
3410         (add_c_test, traverse_c_tests): New functions.
3411         * gensupport.h (insn_elision_unavailable, insn_conditions)
3412         (n_insn_conditions): Delete declarations.
3413         (add_c_test, traverse_c_tests): Declare.
3414         * read-rtl.c: Include gensupport.h.
3415         (read_conditions): New function.
3416         (read_rtx): If read_rtx_1 returns 0, treat as EOF.
3417         (read_rtx_1): If we get EOF when we were looking for an initial
3418         open paren, return 0.  Call read_conditions when appropriate.
3419         * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
3420         dummy-conditions.o.  Eliminate references to insn-conditions.o,
3421         or change them to build/gencondmd.o, as appropriate.  Remove
3422         insn-constants.h from $(simple_generated_h) and insn-conditions.c
3423         from $(simple_generated_c).  For all files remaining in those
3424         two lists, add insn-conditions.md to the generator command line.
3425         Give insn-constants.h/s-constants their own rules.  Add rules
3426         for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
3427         (build/read-rtl.o): Depend on gensupport.h.
3428         (genprognormal): Include preds.
3429         (genprogearly): Rename genprognoprint; only difference is now that
3430         they don't link with $(BUILD_PRINT).
3431         * dummy-conditions.c: Delete.
3432
3433 2006-01-22  Zack Weinberg  <zackw@panix.com>
3434
3435         * genextract.c: Don't include insn-config.h.  Do include vec.h.
3436         Declare vectors of int, char, and locstr.
3437         (locstr): New typedef.
3438         (struct extraction): Make all array fields into bare pointers.
3439         (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
3440         (insn_code_number): Delete.
3441         (accum_extract): New struct.
3442         (VEC_safe_set_locstr, VEC_char_to_string): New functions.
3443         (gen_insn): Take insn_code_number as an argument.  Use an
3444         accum_extract structure instead of loading data directly into
3445         a struct extraction, and having to know how big it might get.
3446         (walk_rtx): Operate entirely on an accum_extract structure.
3447         (print_path): Avoid unnecessary use of printf.
3448         (print_header): New function, split out of main.  Distinguish
3449         more carefully between an unrecognizable insn and an insn that
3450         has the code number of a define_expand.
3451         (main): Pass insn_code_number to gen_insn.  Call print_header
3452         only after parsing.  Avoid unnecessary use of printf.
3453         * Makefile.in (build/vec.o): New rule.
3454         (build/genextract): Depend on build/vec.o.
3455         (build/genextract.o): Don't depend on insn-config.h.
3456
3457 2006-01-22  Zack Weinberg  <zackw@panix.com>
3458
3459         * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
3460         $(RUN_GEN).  Use pattern rules to factor out as much boilerplate as
3461         practical.  Eliminate per-generator-program link rules.
3462
3463 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
3464
3465         PR middle-end/24437
3466         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
3467         with a call expr to ...
3468         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
3469
3470 2006-01-23  Richard Guenther  <rguenther@suse.de>
3471
3472         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
3473         before make_edge with conditional EDGE_TRUE_VALUE.
3474
3475 2006-01-23  Steven Bosscher  <stevenb.gcc@gmail.com>
3476         Jan Hubicka  <jh@suse.cz>
3477         Richard Guenther  <rguenther@suse.de>
3478
3479         PR rtl-optimization/25654
3480         * cfgexpand.c (aggregate_contains_union_type): New function.
3481         (add_alias_set_conflicts): Call it.  Make sure to add conflicts
3482         for structure variables that contain a union type.
3483
3484 2006-01-23  Richard Sandiford  <richard@codesourcery.com>
3485
3486         * gengtype.c (new_structure): Return the structure.
3487         (create_option): Add an extra "next" argument.
3488         (create_field): New function.
3489         (adjust_field_rtx_def): Use create_option and create_field.
3490         Remove a now-unnecessary call to find_structure.
3491         (adjust_field_tree_def): Likewise.
3492         (note_yacc_type): Remove an unnecessary call to find_structure.
3493         * gengtype.h (new_structure): Return the structure.
3494         (create_option): Add an extra argument.
3495         * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
3496         (option): Adjust calls to create_option.
3497
3498 2006-01-22  David Edelsohn  <edelsohn@gnu.org>
3499
3500         * config/rs6000/aix.h (STACK_BOUNDARY): Define.
3501
3502 2006-01-22  Paul Brook  <paul@codesourcery.com>
3503         Peter Barada  <peter@the-baradas.com>
3504
3505         * config/m68k/m68k.md: Add Coldfire FPU support.
3506         Define FP mode macro and associated attributes.
3507         Use it for float mode patterns.
3508         * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
3509         (LIBCALL_VALUE): Use m68k_libcall_value.
3510         * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
3511         (m68k_function_value): Ditto.
3512         (emit_move_sequence): Ditto.
3513         * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
3514         * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
3515         * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
3516         (MULTILIB_EXCEPTIONS): Ditto.
3517         * config/m68k/m68k.opt: Add mcfv4e.
3518         * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
3519         (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
3520         (m68k_output_function_prologue): Save ColdFire FPU registers.
3521         (m68k_output_function_epilogue): Restore ColdFire FPU registers.
3522         (force_mode, fp_reg_operand, emit_move_sequence): New functions.
3523         (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
3524         ColdFire FPU registers.
3525         (m68k_libcall_value, m68k_function_value): New functions.
3526         * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
3527         (LIBCALL_VALUE): Use m68k_libcall_value.
3528         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
3529         (MASK_COLDFIRE): Add MASK_CFV4E.
3530         (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
3531         (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
3532         (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
3533         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
3534         (GO_IF_LEGITIMATE_ADDRESS): Use it.
3535         (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
3536         * doc/invoke.tex: Document -mcfv4e on m68k.
3537
3538 2006-01-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
3539
3540         * doc/contribute.texi: Change CVS to SVN and update the corresponding
3541         URL.
3542
3543 2006-01-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3544
3545         PR c++/16190
3546         * c-opts.c (c_common_handle_option): Don't include
3547         -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
3548         * doc/invoke.texi (C++ Dialect Options): Document that
3549         -Wnon-virtual-dtor is no longer included in -Wall.
3550
3551 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
3552
3553         * gcov.c (print_version), gcov-dump.c (print_version),
3554         mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
3555         dates.
3556
3557 2006-01-21  Kenneth Zadeck <zadeck@naturalbridge.com>
3558
3559         * df-scan.c (problem_SCAN): Added NULL reset function.
3560         (df_scan_reset_blocks): Added code to call reset block function
3561         (df_bb_refs_delete) Fixed comment.
3562         (df_insn_refs_delete): Made tolerant of deleting non existent info
3563         for dataflow problems that need to be reset.
3564         * df-core.c (df_set_blocks): Ditto.
3565         * df.h (struct df_problem): Added reset_fun.
3566         * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
3567         problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
3568         (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
3569         functions to clear out all references to def-use or use-def chains.
3570
3571 2006-01-21  Ben Elliston  <bje@au.ibm.com>
3572
3573         * varasm.c (assemble_real): Initialise data array.
3574
3575 2006-01-20  Paul Brook  <paul@codesourcery.com>
3576
3577         Merge from csl-arm-branch.
3578         2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
3579         * config/arm/arm.md (movdi): Force operands[1] to a register
3580         if we have a non-register source.
3581         (*arm_movdi, *movdf_soft_insn): Require that one of the
3582         operands be a register.
3583         * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
3584         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
3585
3586 2006-01-20  DJ Delorie  <dj@redhat.com>
3587
3588         * varasm.c (initialize_constant_valid_p): Allow pointers
3589         initialized from integer constants of lesser precision.
3590         (output_constant): Allow non-int-sized pointer modes to be
3591         initialized from integer constants.
3592
3593 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
3594
3595         PR libstdc++/25524
3596         * cppdefault.h (struct default_include): Add multilib flag.
3597         * cppdefault.c (cpp_include_defaults): Set it.
3598         * c.opt (-imultilib): New option.
3599         * c-opts.c (imultilib): New.
3600         (c_common_handle_option): Handle -imultilib.
3601         (c_common_post_options): Likewise.
3602         * c-incpath.c (add_standard_paths, register_include_chains):
3603         Likewise.
3604         * c-incpath.h (register_include_chains): Add extra parameter.
3605         * gcc.c (do_spec_1): Generate -imultilib option.
3606         (The Specs Language): Update %I description.
3607         (process_command): Update copyright notice.
3608         * doc/cppopts.texi (-imultilib): Document.
3609         * doc/invoke.texi (-imultilib): Include in option summary.
3610         (%I): Update specs documentation.
3611
3612 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
3613
3614         * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
3615
3616 2006-01-20  Richard Sandiford  <richard@codesourcery.com>
3617
3618         * stmt.c (case_bit_test_cmp): Stabilize the sort using code
3619         label numbers.
3620
3621 2006-01-20  Richard Guenther  <rguenther@suse.de>
3622         Steven Bosscher <stevenb.gcc@gmail.com>
3623
3624         PR rtl-optimization/24626
3625         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
3626         EDGE_TRUE_VALUE if in RTL mode.
3627
3628         Revert
3629         2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
3630         * cfgrtl.c (rtl_verify_flow_info_1): Fix.
3631
3632 2006-01-20  Dirk Mueller  <dmueller@suse.com>
3633
3634         PR c++/5520
3635         * c-parser.c (c_parser_if_body): Use build_empty_stmt()
3636         instead of a special NOP marker.
3637         * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
3638         NOP marker handling.
3639         * c-common.h (empty_body_warning): Add forward declaration.
3640         * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
3641         Now uses IS_EMPTY_STMT() instead of special NOP markers.
3642
3643 2006-01-20  Paul Brook  <paul@codesourcery.com>
3644
3645         * Makefile.in (lang_checks): Keep going if mkdir fails.
3646
3647 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3648
3649         * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
3650         be able to clean out basic block when not necessary.
3651         (df_scan_free): Fixed to properly delete information if df is
3652         unused before calling df_finish.
3653         (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
3654         df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
3655         or comment typos.
3656         (df_bb_refs_delete): New function.
3657         (df_refs_delete): Moved per block code to df_bb_refs_delete.
3658         * df-core.c (df_set_blocks): Added code to properly clean out
3659         unused blocks if they are not part of the blocks to consider.
3660         Added additional null check.
3661         (df_compact_blocks): Added basic block parameter to free_bb_fun to
3662         be able to clean out basic block when not necessary
3663         * df.h (df_free_bb_function): Ditto.
3664         (df_bb_refs_delete): New function.
3665         * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
3666         df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
3667         basic block parameter to be able to clean out basic block when not
3668         necessary.
3669         (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
3670         (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
3671         Fixed to properly delete information if df is unused before
3672         calling df_finish.
3673
3674 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3675
3676         PR rtl-optimization/25799
3677         * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
3678         Corrected confluence operator to remove bits from op2 before oring
3679         with op1 rather than removing bits from op1.
3680         (df_ru_transfer_function): Corrected test on wrong bitmap which
3681         caused infinite loop.  Both of these problems were introduced in
3682         the dataflow rewrite.
3683
3684 2006-01-19  DJ Delorie  <dj@redhat.com>
3685
3686         * reload1.c (find_reload_regs): Note the details of reload
3687         failures in the dump file.
3688         (spill_failure): Likewise.
3689
3690 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
3691
3692         * loop-iv.c: Include df.h and hashtab.h.
3693         (enum iv_grd_result): New enum.
3694         (DF_REF_IV, DF_REF_IV_SET): New macros.
3695         (struct biv_entry): New.
3696         (df, bivs): New global variables.
3697         (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
3698         assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
3699         Removed.
3700         (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
3701         iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
3702         analyzed_for_bivness_p, record_biv): New functions.
3703         (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
3704         get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
3705         iv_analyze, biv_p, iv_analysis_done): Work with df representation of
3706         UD chains.
3707         (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
3708         analysed.
3709         (iv_number_of_iterations): Use new interface to iv analysis.
3710         * loop-unroll.c: Do not include varray.h.
3711         (analyze_iv_to_split_insn): Use new interface to iv
3712         analysis.
3713         * loop-unswitch.c (may_unswitch_on): Ditto.
3714         * df.c (df_bitmaps_free): Only work for bbs for that structures are
3715         allocated.
3716         (df_bb_modify): Realloc tables to the new index.
3717         (df_find_use): New function.
3718         * df.h (df_find_use): Declare.
3719         * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
3720         outmode.
3721         * cfgloop.h (struct rtx_iv): Remove analysed field.
3722         (iv_get_reaching_def): Removed.
3723         (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
3724         * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
3725         (loop-iv.o): Add df.h and hashtab.h dependency.
3726         * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
3727
3728 2006-01-20  Alan Modra  <amodra@bigpond.net.au>
3729
3730         PR target/25668
3731         * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
3732         Double TFmode.
3733         (__floatundisf, __floatundidf): Likewise.
3734         * libgcc2.h (IS_IBM_EXTENDED): Define.
3735
3736 2006-01-19  DJ Delorie  <dj@redhat.com>
3737
3738         * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
3739
3740 2006-01-19  Paul Brook  <paul@codesourcery.com>
3741
3742         * gcc/config/arm/arm.c (arm_compute_func_type): Treat all functions
3743         as nothrow when unwinding tables are disabled.
3744
3745 2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3746
3747         PR testsuite/25171
3748         * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
3749         of bit-field" when in system header.
3750
3751 2006-01-19  DJ Delorie  <dj@redhat.com>
3752
3753         * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
3754         the 16 bit shift limit of the m16c.
3755
3756 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
3757
3758         PR target/22099
3759         * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
3760         * config/i386/i386.c (output_set_got): Output the label if we have one
3761         for the TARGET_DEEP_BRANCH_PREDICTION case.
3762
3763 2006-01-19  Jan Hubicka  <jh@suse.cz>
3764             H.J. Lu  <hongjiu.lu@intel.com>
3765             Evandro Menezes <evandro.menezes@amd.com>
3766
3767         * invoke.texi (generic): Document
3768         (i686) Update.
3769         * config.gcc: Make x86_64-* and i686-* default to generic tunning.
3770         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
3771         TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
3772         (x86_use_incdec, x86_pad_returns): New variables
3773         (TARGET_CPU_DEFAULT_generic): New constant
3774         (TARGET_CPU_DEFAULT_NAMES): Add generic.
3775         (enum processor_type): Add generic32 and generic64.
3776         * i386.md (cpu attribute): Add generic32/generic64
3777         (movhi splitter): Behave sanely when both partial_reg_dependency and
3778         partial_reg_stall are set.
3779         (K8 splitters): Enable for generic as well.
3780         * predicates.md (incdec_operand): Use TARGET_INCDEC
3781         (aligned_operand): Avoid memory mismatch stalls.
3782         * athlon.md: Enable for generic64, new patterns for 128bit moves.
3783         * ppro.md: Enable for generic32
3784         * i386.c (generic64_cost, generic32_cost): New.
3785         (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
3786         (x86_use_leave): Enable for generic64.  (x86_use_sahf,
3787         x86_ext_80387_constants): Enable for generic32.  (x86_push_memory,
3788         x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
3789         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
3790         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
3791         x86_partial_reg_dependency, x86_memory_mismatch_stall,
3792         x86_accumulate_outgoing_args, x86_prologue_using_move,
3793         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
3794         x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
3795         Enable for generic.
3796         (x86_use_incdec, x86_pad_returns): New.
3797         (override_options): Add generic32 and generic64, translate "generic"
3798         to generic32/generic64 and "i686" to "generic32", refuse
3799         "generic32"/"generic64" as arch target.
3800         (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
3801         (ix86_reorg): Honor PAD_RETURNS.
3802
3803 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
3804
3805         * tree-pretty-print.c (dump_generic_node): Handle
3806         OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
3807         * cgraph.c (cgraph_expand_queue): Rename from
3808         cgraph_analyze_queue.  Update all users.
3809         * cgraphunit.c (cgraph_assemble_pending_functions): Process
3810         cgraph_expand_queue.
3811         (cgraph_expand_all_functions): Likewise.
3812         (cgraph_finalize_pending_functions): Remove.  Update callers.
3813
3814         * tree.h (OMP_DIRECTIVE_P): Define.
3815         (OMP_PARALLEL_FN): Define.
3816         (OMP_PARALLEL_DATA_ARG): Define.
3817         (OMP_SECTIONS_SECTIONS): Define.
3818         * tree-pass.h (pass_expand_omp): Declare.
3819         * omp-low.c (struct omp_region): Declare.
3820         (struct omp_context): Remove fields 'parallel_type',
3821         'parallel_start_ix' and 'parallel_start_additional_args'.
3822         Update all users.
3823         (struct omp_for_data): Rename from struct expand_omp_for_data.
3824         (omp_regions): New static variable.
3825         (root_omp_region): New static variable.
3826         (find_omp_clause): Make static.
3827         (is_in_combined_parallel_ctx): Remove.
3828         (is_combined_parallel): New.
3829         (extract_omp_for_data): Move earlier in the file.
3830         (workshare_safe_to_combine_p): New.
3831         (get_ws_args_for): New.
3832         (determine_parallel_type): Move earlier in the file.
3833         (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
3834         child function.
3835         (omp_copy_decl): Likewise.
3836         (create_omp_child_function): Likewise.
3837         (lookup_omp_region): New.
3838         (dump_omp_region): New.
3839         (debug_omp_region): New.
3840         (debug_all_omp_regions): New.
3841         (new_omp_region): New.
3842         (scan_omp_parallel): If parallel_nesting_level > 1, the
3843         directive is nested within another parallel directive.
3844         Set OMP_PARALLEL_FN.
3845         (scan_omp_for): Do not try to handle combined parallel+for
3846         cases.
3847         Remove FIXME comment.
3848         (scan_omp_nested): Remove.
3849         (scan_omp_1): Do not call scan_omp_nested when
3850         parallel_nesting_level is > 1.
3851         Do not change the DECL_CONTEXT of local variables found.
3852         (lookup_decl_in_outer_ctx): New.
3853         (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
3854         (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
3855         (lower_reduction_clauses): Rename from expand_reduction_clauses.
3856         (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
3857         If CTX is nested, lookup VAR in the outer context when
3858         building copy assignment.
3859         (lower_send_clauses): Rename from expand_send_clauses.
3860         If CTX is nested, lookup VAR in the outer context when
3861         building copy assignments.
3862         (lower_send_shared_vars): Rename from expand_send_shared_vars.
3863         If CTX is nested, lookup VAR in the outer context when
3864         building copy assignments.
3865         (expand_parallel_call): Rename from build_parallel_call.
3866         Handle combined parallel+workshare cases.
3867         Re-implement to emit code into the CFG.
3868         (list2chain): New.
3869         (expand_omp_parallel): Re-implement to emit code into the CFG.
3870         Call move_sese_region_to_fn to outline the sub-graph
3871         containing the parallel region.
3872         (expand_omp_for_1): Remove.
3873         (expand_omp_for_generic): Re-implement to emit code into the
3874         CFG.
3875         (expand_omp_for_static_nochunk): Likewise.
3876         (expand_omp_for_static_chunk): Likewise.
3877         (expand_omp_for): Likewise.
3878         (expand_omp_sections): Likewise.
3879         (remove_exit_barriers): New.
3880         (expand_omp_synch): New.
3881         (expand_omp): New.
3882         (build_omp_regions_1): New.
3883         (build_omp_regions): New.
3884         (execute_expand_omp): New.
3885         (gate_expand_omp): New.
3886         (pass_expand_omp): Define.
3887         (lower_omp_sections): Rename from expand_omp_sections.
3888         Set OMP_SECTIONS_SECTIONS.
3889         (lower_omp_single_simple): Rename from expand_omp_single_simple.
3890         (lower_omp_single_copy): Rename from expand_omp_single_copy.
3891         (lower_omp_single): Rename from expand_omp_simple.
3892         (lower_omp_master): Rename from expand_omp_master.
3893         (lower_omp_ordered): Rename from expand_omp_ordered.
3894         (lower_omp_critical): Rename from expand_omp_critical.
3895         (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
3896         (lower_omp_for): Re-implement.
3897         (lower_omp_parallel): Re-implement.
3898         (lower_regimplify): Rename from expand_regimplify.
3899         (lower_omp_1): Rename from expand_omp_1.
3900         If there are syntax errors in the program, replace every
3901         OpenMP directive with NOP.
3902         Call lower_omp_* instead of expand_omp_*.
3903         (lower_omp): Rename from expand_omp.
3904
3905         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
3906         * tree-gimple.h (enum omp_parallel_type): Remove.
3907         (gimple_boolify): Declare extern.
3908         (find_omp_clause, determine_parallel_type): Remove.
3909
3910         * gimple-low.c (lower_omp_directive): New.
3911         (lower_stmt): Call it.
3912         (record_vars_into): Move from ...
3913         (record_vars): ... here.
3914         Call record_vars_into with current_function_decl.
3915
3916         * gimplify.c (struct gimplify_ctx): Remove fields
3917         combined_pre_p and combined_ctxp.  Update users.
3918         (get_formal_tmp_var): Add documentation.
3919         (gimple_boolify): Make extern.
3920         (gimplify_expr_in_ctx): Remove.  Update callers.
3921         (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
3922         will always be a BIND_EXPR.
3923         (gimplify_expr): Handle OMP_RETURN_EXPR.
3924         * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
3925         (OMP_PARALLEL): Add 3 operands.
3926         (OMP_SECTIONS): Add 1 operand.
3927         (OMP_RETURN_EXPR): Define.
3928
3929         * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
3930         (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
3931         * tree-iterator.c (alloc_stmt_list): Assert that we are not
3932         creating a circular free list.
3933         (free_stmt_list): Assert that we are not freeing stmt_list_cache.
3934
3935         * tree-flow.h (move_sese_region_to_fn): Declare.
3936         (record_vars_into): Declare.
3937         * tree-cfg.c (make_omp_sections_edges): New.
3938         (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
3939         OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
3940         OMP_SECTIONS and OMP_SECTION.
3941         (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
3942         (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
3943         (verify_stmt): Do not handle OMP_DIRECTIVE_P.
3944         (gather_blocks_in_sese_region): New.
3945         (struct move_stmt_d): Declare.
3946         (move_stmt_r): New.
3947         (move_block_to_fn): New.
3948         (move_sese_region_to_fn): New.
3949
3950         * passes.c (init_optimization_passes): Schedule
3951         pass_expand_omp after pass_init_datastructures.
3952
3953         * tree-ssa-operands.c (get_expr_operands): Handle
3954         OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
3955         OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
3956
3957 2006-01-19  Jeff Law  <law@redhat.com>
3958
3959         * tree-vrp.c (extract_range_from_assert): Refine the result range
3960         if the variable referenced by the ASSERT_EXPR has a range and
3961         either the tentative result range or the previous range is a
3962         VR_ANTI_RANGE.
3963
3964 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
3965
3966         * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
3967
3968 2006-01-19  Jan Hubicka  <jh@suse.cz>
3969
3970         * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
3971
3972 2006-01-19  Paolo Bonzini  <bonzini@gnu.org>
3973
3974         * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
3975         (expand_compound_operation, expand_field_assignment): Fail if the
3976         bit lengths of an extract operation are out of range.
3977         (make_extraction): Compute wanted_inner_mode based on the position
3978         and length of the extraction.  Make it extraction_mode for non-constant
3979         positions, and do not modify offset in that case.  When generating a
3980         new MEM, use a mode that can hold the extraction while keeping correct
3981         alignment.  Remove code that supported MEMs wrapped by USEs.
3982         (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
3983
3984 2006-01-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3985
3986         * config/s390/s390.md ("Y", "y"): New mode attribute.
3987         ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
3988         "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
3989         "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
3990         "*addsi3_imm_cc", "*addsi3_carry1_cc",
3991         "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
3992         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
3993         "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
3994         "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
3995         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
3996         "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
3997         "addsi3", "subsi3"): Insn patterns removed.
3998         ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
3999         "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
4000         "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
4001         "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
4002         "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
4003         "*sub<mode>3_cconly2"): New insn patterns.
4004         ("addsi3", "subsi3"): New expanders.
4005
4006 2006-01-19  Dorit Nuzman  <dorit@il.ibm.com>
4007
4008         * Makefile.in (tree-vect-patterns.o): Add rule for new file.
4009         * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
4010         existing STMT_VINFO_VECTYPE if available.
4011         (vect_mark_relevant): Add special handling for stmts that are
4012         marked as STMT_VINFO_IN_PATTERN_P.
4013         (vect_analyze_loop): Call vect_pattern_recog.
4014         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
4015         * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
4016         stmt_info.
4017         (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
4018         (vect_recog_func_ptr): New function-pointer type.
4019         * tree-vect-patterns.c: New file.
4020         (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
4021         (vect_recog_dot_prod_pattern, vect_pattern_recog):
4022         (vect_pattern_recog_1): New functions.
4023         (vect_pattern_recog_funcs): New array of function pointers.
4024
4025         * tree-vectorizer.h (ternary_op): New enum value.
4026         * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
4027         declaration. Revised documentation. Removed redundant dump prints.
4028         Removed redundant argument. Added support for reduction patterns.
4029         (vectorizable_reduction): Added support for reduction patterns.
4030         (vect_transform_stmt): Added support for patterns.
4031
4032         * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
4033         * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
4034         * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
4035         (expand_widen_pattern_expr): New function.
4036         (init_optabs): Initialize new optabs udot_prod_optab,
4037         sdot_prod_optab.
4038         * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
4039         (sdot_prod_optab, udot_prod_optab): Define new optabs.
4040         (expand_widen_pattern_expr): New function declaration.
4041         * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
4042         tree-codes.
4043         * tree-inline.c (estimate_num_insns_1): Added cases for new
4044         tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
4045         * tree-pretty-print.c (dump_generic_node): Likewise.
4046         (op_prio): Likewise.
4047         (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
4048         * tree-ssa-operands.c (get_expr_operands): Added case for
4049         DOT_PROD_EXPR.
4050         * tree-vect-patterns.c (widened_name_p): New function.
4051         (vect_recog_dot_prod_pattern): Added function implementation.
4052         * tree-vect-transform.c (get_initial_def_for_reduction): Added
4053         cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
4054         * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
4055         * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
4056
4057         * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
4058         * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
4059         * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
4060         (init_optabs): Initialize new optabs widen_ssum_optab,
4061         widen_usum_optab.
4062         * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
4063         (widen_ssum_optab, widen_usum_optab): Define new optabs.
4064         * tree-vect-generic.c: (expand_vector_operations_1): Check type of
4065         use instead of type of def.
4066         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
4067         function implementation.
4068         * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
4069         widen_ssumv8hi): New.
4070
4071         * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
4072         patterns.
4073
4074 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
4075
4076         PR c/25805
4077         * c-decl.c (add_flexible_array_elts_to_size): New function.
4078         (finish_decl): Use it.
4079
4080 2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
4081
4082         * diagnostic.h: Include options.h.
4083         * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
4084         dependancies for diagnostic.h.
4085         * Makefile.in (DIAGNOSTIC_H): Add options.h.
4086
4087 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
4088
4089         * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
4090         (ssa_ro_call_cache_valid): Ditto.
4091         * tree-ssa-alias.c (sort_tags_by_id): New function.
4092         (init_transitive_clobber_worklist): Ditto.
4093         (add_to_worklist): Ditto.
4094         (mark_aliases_call_clobbered): Ditto.
4095         (compute_tag_properties): Ditto.
4096         (set_initial_properties): Ditto.
4097         (compute_call_clobbered): Ditto.
4098         (compute_may_aliases):  Call compute_call_clobbered and grouping.
4099         (compute_flow_sensitive_aliasing): Remove clobbering related code.
4100         (compute_flow_insensitive_aliasing): Grouping now happens in our
4101         caller.
4102         (setup_pointers_and_addressables): Remove clobbering related code.
4103         (add_may_alias): Ditto.
4104         (replace_may_alias): Ditto.
4105         (get_nmt_for): Ditto.
4106         (create_global_var):
4107         (is_escape_site): Return an escape_type enumeration.
4108         * tree-flow-inline.h (is_call_clobbered):  Global var does not
4109         imply call clobbered.
4110         (mark_call_clobbered): Take a reason for marking this. Remove
4111         marking of globalness, and cache invalidation.
4112         (clear_call_clobbered): Remove cache invalidation code.
4113         * tree-dfa.c (dump_variable): If details is on, dump the reason
4114         for escaping.
4115         * tree-outof-ssa.c (create_temp): Copy escape mask from original
4116         variable.
4117         * tree-flow.h (struct ptr_info_def): Add escape mask member.
4118         (struct var_ann_d): Ditto.
4119         (enum escape_type): New.
4120         (mark_call_clobbered): Adjust prototype.
4121         * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
4122         are never call clobbered.
4123         Record reasons for escaping.
4124         * tree-ssa-structalias.h (is_escape_site): Update prototype.
4125         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
4126         (ssa_ro_call_cache_valid): Ditto.
4127         (clobbered_v_may_defs): Ditto.
4128         (clobbered_vuses): Ditto.
4129         (ro_call_vuses): Ditto.
4130         (clobber_stats): New.
4131         (init_ssa_operands): Zero out clobber stats.
4132         (fini_ssa_operands): Print out clobber stats.
4133         (get_call_expr_operands): Pass callee fndecl to
4134         add_call_read_ops).
4135         (add_call_clobber_ops): Remove use of cache.
4136         Add use of PURE_CONST information.
4137         (add_call_read_ops): Remove use of cache.
4138         Add use of static not_read information.
4139
4140 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
4141
4142         Introduce TLS descriptors for i386 and x86_64.
4143         * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
4144         (TARGET_ANY_GNU_TLS): New macro.
4145         (enum tls_dialect): Added TLS_DIALECT_GNU2.
4146         (struct machine_function): Add tls_descriptor_call_expanded_p.
4147         (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
4148         (ix86_current_function_calls_tls_descriptor): Likewise.
4149         * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
4150         (override_options): Introduce gnu2 tls dialect.
4151         (ix86_frame_pointer_required): Functions containing TLSCALLs are
4152         not leaves.
4153         (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
4154         Likewise.
4155         (legitimize_tls_address): Adjust logic for GNU2 TLS.
4156         (ix86_init_machine_status): Initialize new field.
4157         (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
4158         (ix86_tls_module_base): New.
4159         * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
4160         * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
4161         (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
4162         (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
4163         (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
4164         (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
4165         (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
4166         (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
4167         * config/i386/predicates.md (tls_modbase_operand): New.
4168         (tp_or_register_operand): New.
4169
4170 2006-01-18  Daniel Berlin  <dberlin@dberlin.org>
4171
4172         * ipa-reference.c (check_operand):  Allow FUNCTION_DECL.
4173         (look_for_address_of): Ditto.
4174         (ipa_init): Walk the function decls.
4175         (static_execute): Don't set readonly on FUNCTION_DECL's.
4176
4177 2006-01-18  Roger Sayle  <roger@eyesopen.com>
4178
4179         * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
4180         for shifts where the source and destination registers are different.
4181
4182 2006-01-18  Paul Brook  <paul@codesourcery.com>
4183
4184         Merge from csl-arm-branch.
4185         2005-03-14  Julian Brown  <julian@codesourcery.com>
4186         * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
4187         (aeabi_llsl): Likewise.
4188         (ashrdi3): Likewise.
4189         (aeabi_lasr): Likewise.
4190         (lshrdi3): Likewise.
4191         (aeabi_llsr): Likewise.
4192         2005-03-10  Julian Brown  <julian@codesourcery.com>
4193         * config.gcc: Disable shared libgcc for SymbianOS.
4194         * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
4195
4196 2006-01-18  DJ Delorie  <dj@redhat.com>
4197
4198         * c-pragma.c (handle_pragma_diagnostic): New.
4199         (init_pragma): Register it.
4200         * doc/extend.texi: Document it.
4201
4202         * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
4203         * diagnostic.h (diagnostic_classify_diagnostic): Declare.
4204         (diagnostic_context): Add classify_diagnostic[].
4205         * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
4206         as errors if they're overridden to DK_WARNING.
4207         (diagnostic_initialize): Initialize classify_diagnostic[].
4208         (diagnostic_set_kind_override): New.
4209         (diagnostic_report_diagnostic): Check for kind changes.
4210         * opts.c (common_handle_option): Take lang_mask.  Update callers.
4211         Handle OPT_Werror_.
4212         * common.opt (Werror=): New.
4213         * doc/invoke.texi: Document -Werror=*
4214
4215 2006-01-18  Jeff Law  <law@redhat.com>
4216
4217         * tree-vrp.c (test_for_singularity): Correct test for new
4218         min limit.  Use operand_equal_p rather than pointer equality
4219         for testing if new min/max values are equal.
4220
4221         * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
4222         using range information until after propagation and folding.
4223
4224 2006-01-18  Richard Henderson  <rth@redhat.com>
4225             Aldy Hernandez  <aldyh@redhat.com>
4226             Jakub Jelinek  <jakub@redhat.com>
4227             Diego Novillo  <dnovillo@redhat.com>
4228
4229         * omp-low.c: New file.
4230         * c-omp.c: New file.
4231
4232 2006-01-18  Richard Henderson  <rth@redhat.com>
4233             Jakub Jelinek  <jakub@redhat.com>
4234             Diego Novillo  <dnovillo@redhat.com>
4235
4236         * doc/invoke.texi: Document -fopenmp.
4237         * tree-dump.h (debug_function): Declare.
4238         * hooks.c (hook_bool_tree_bool_false): New function.
4239         (hook_tree_tree_null): Remove.
4240         (hook_tree_tree_tree_null): New.
4241         * hooks.h: Update to match.
4242         * tree-pretty-print.c (debug_tree_chain): New.
4243         (print_generic_expr): Handle TDF_CHAIN.
4244         (dump_generic_node): Handle BLOCK.
4245         Do not abort with incomplete SWITCH_EXPRs.
4246         Do not dump body of an OpenMP directive if TDF_SLIM is given.
4247         <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
4248         print space after directive name.
4249         <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
4250         Handle OMP_MASTER and OMP_ORDERED.
4251         Handle printing of OMP_BODY just in one place, goto
4252         dump_omp_body in the rest of OMP_* nodes that have
4253         OMP_BODY.
4254         Don't handle clause nodes here.  Update omp statements to
4255         use dump_omp_clauses.
4256         Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
4257         OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
4258         OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
4259         GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
4260         GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
4261         GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
4262         Adjust output for GOMP_PARALLEL.
4263         (dump_omp_clauses): New.
4264         (print_declaration): Dump DECL_VALUE_EXPR.
4265         (op_symbol_1): Split out of op_symbol.
4266         (dumping_stmts): Remove.  Update all users.
4267         * cgraph.c (cgraph_analyze_queue): New.
4268         (cgraph_add_new_function): New.
4269         * cgraph.h (cgraph_analyze_queue): Declare.
4270         (cgraph_add_new_function): Declare.
4271         (cgraph_lower_function): Remove.
4272         * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
4273         nodes.  Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
4274         and TYPE_P nodes in its default clause.
4275         (empty_body_p): New.
4276         (tree_range_check_failed): New.
4277         (build5_stat): New.
4278         * tree.h (OMP_CLAUSE_REDUCTION_INIT,
4279         OMP_CLAUSE_REDUCTION_MERGE,
4280         OMP_CLAUSE_REDUCTION_PLACEHOLDER,
4281         OMP_CLAUSE_PRIVATE_DEBUG,
4282         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
4283         OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
4284         OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
4285         OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
4286         OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
4287         OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
4288         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
4289         OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
4290         OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
4291         OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
4292         OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
4293         OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
4294         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
4295         OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
4296         (TREE_RANGE_CHECK): New.
4297         (empty_body_p): Declare.
4298         (enum omp_clause_default_kind): New.
4299         (build_string_literal): Declare.
4300         (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
4301         (build5_stat, build5): Declare.
4302         * tree-pass.h (TDF_CHAIN): Define.
4303         * tree-pass.h (PROP_gimple_lomp): Define.
4304         (pass_lower_omp): Declare.
4305         * diagnostic.h (debug_tree_chain): Declare.
4306         * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
4307         mode_for_size.
4308         (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
4309         * builtins.c (build_string_literal): Make extern.
4310         * gcc.c (include_spec_function): New.
4311         (static_spec_functions): Add it.
4312         (main): Move load of libgomp.spec ...
4313         (LINK_COMMAND_SPEC): ... here.
4314         (link_gomp_spec): New.
4315         (static_specs): Include it.
4316         (LINK_COMMAND_SPEC): Add link_gomp.
4317         (GOMP_SELF_SPECS): New.
4318         (driver_self_specs): Include it.
4319         (switch_matches): Don't mark inline.
4320         (main): Load libgomp.spec.
4321         * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
4322         OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
4323         and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
4324         * tree-gimple.h (enum omp_parallel): Declare.
4325         (determine_parallel_type): Declare.
4326         (omp_firstprivatize_variable): Declare.
4327         (omp_reduction_init): Declare.
4328         (diagnose_omp_structured_block_errors): Declare.
4329         (struct walk_stmt_info): Add want_return_expr.
4330         (struct walk_stmt_info): Add want_bind_expr, want_locations.
4331         (find_omp_clause): Declare.
4332         (insert_field_into_struct): Declare.
4333         (struct walk_stmt_info): Move from tree-nested.c
4334         (walk_stmts): Declare.
4335         * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
4336         to 200505.
4337         * cgraphunit.c (cgraph_lower_function): Make static.
4338         (cgraph_finalize_pending_functions): New.
4339         (cgraph_finalize_function): Call it.
4340         (cgraph_finalize_compilation_unit): Likewise.
4341         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
4342         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
4343         (BT_FN_UINT_UINT): New.
4344         (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
4345         DEF_FUNCTION_TYPE_VAR_4): Document.
4346         (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
4347         BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
4348         BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
4349         BT_FN_VOID_OMPFN_PTR_UINT_UINT,
4350         BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
4351         BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
4352         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
4353         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
4354         * builtins.def: Update DEF_BUILTIN comment to include COND argument.
4355         Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
4356         into separate files.
4357         (DEF_GOMP_BUILTIN): New.
4358         (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
4359         BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
4360         BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
4361         BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
4362         BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
4363         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
4364         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
4365         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
4366         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
4367         BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
4368         BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
4369         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
4370         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
4371         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
4372         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
4373         BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4374         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4375         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4376         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4377         BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
4378         BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
4379         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
4380         BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
4381         BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
4382         BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
4383         BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
4384         * sync-builtins.def: New file, moved from builtins.def.
4385         * omp-builtins.def: New file, moved from builtins.def.
4386         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
4387         * gimple-low.c (lower_function_body): Clear data.
4388         (lower_stmt): Do not handle COMPOUND_EXPR.
4389         Remove call to print_node_brief.
4390         * c-tree.h (c_finish_omp_clauses): New prototype.
4391         (C_DECL_THREADPRIVATE_P): Define.
4392         (lookup_name_no_remap, c_omp_remap_private): Remove
4393         (c_begin_omp_parallel, c_finish_omp_parallel): Update.
4394         (check_for_loop_decls): Update decl.
4395         (lookup_name_no_remap, c_omp_remap_private): Declare.
4396         (build_indirect_ref, build_modify_expr, pushdecl,
4397         pushdecl_top_level): Move to c-common.h.
4398         * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
4399         before the switch, but just in the 2 places that need it.
4400         * c-decl.c (diagnose_mismatched_decls): Do not check for
4401         mismatched thread-local attributes when OLDDECL is marked
4402         threadprivate and NEWDECL has no thread-local attributes.
4403         (merge_decls): Merge C_DECL_THREADPRIVATE_P.
4404         (c_gimple_diagnostics_recursively): Rename from
4405         c_warn_unused_result_recursively.  Invoke
4406         diagnose_omp_structured_block_errors.
4407         (check_for_loop_decls): Return a singular decl found.
4408         * langhooks.c (lhd_omp_predetermined_sharing): Return
4409         OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
4410         (lhd_omp_firstprivatize_type_sizes): New.
4411         (lhd_omp_assignment): New.
4412         (lhd_omp_predetermined_sharing): New.
4413         * langhooks.h (struct gimplify_omp_ctx): Forward declare.
4414         (struct lang_hooks_for_types): Add
4415         omp_firstprivatize_type_sizes, omp_privatize_by_reference,
4416         omp_predetermined_sharing, omp_disregard_value_expr,
4417         omp_private_debug_clause, omp_clause_default_ctor,
4418         omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
4419         (c_finish_omp_clauses): New.
4420         (c_finish_bc_stmt): Diagnose break within omp for.
4421         (c_begin_omp_parallel, c_finish_omp_parallel): New.
4422         (build_unary_op): Return error_mark after reporting
4423         a readonly_error.
4424         (build_modify_expr): Likewise.
4425         * gimplify.c: Include optabs.h and pointer-set.h.
4426         (enum gimplify_omp_var_data): Declare.
4427         (struct gimplify_omp_ctx): Declare.
4428         (struct gimplify_ctx): Add fields prev_context, combined_pre_p
4429         and combined_ctxp.
4430         (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
4431         (push_gimplify_context, pop_gimplify_context): Allow nesting.
4432         (splay_tree_compare_decl_uid): New.
4433         (new_omp_context): New.
4434         (delete_omp_context): New.
4435         (gimple_add_tmp_var): Call omp_add_variable.
4436         (gimplify_bind_expr): Likewise.
4437         (gimplify_var_or_parm_decl): If omp_notice_variable returned
4438         true, disregard DECL_VALUE_EXPR on the decl if any.
4439         (gimplify_expr_in_ctx): New.
4440         (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
4441         omp_add_variable, omp_notice_variable, omp_is_private
4442         gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
4443         gimplify_adjust_omp_clauses, gimplify_omp_parallel
4444         gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
4445         gimplify_omp_atomic_fetch_op, goa_stabilize_expr
4446         gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
4447         gimplify_omp_atomic): New.
4448         (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
4449         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
4450         OMP_CRITICAL and OMP_ATOMIC.
4451         (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
4452         * c-pragma.h (enum pragma_kind): Add
4453         PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
4454         PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
4455         PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
4456         PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
4457         PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
4458         PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
4459         PRAGMA_OMP_THREADPRIVATE.
4460         * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
4461         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
4462         OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
4463         OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
4464         OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
4465         OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
4466         OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
4467         OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
4468         OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
4469         * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
4470         * tree-ssa-dce.c (find_control_dependence): Do not assume that
4471         ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
4472         * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
4473         OpenMP directives.
4474         (struct nesting_info): Add field_map,
4475         suppress_expansion, debug_var_chain.
4476         (create_nesting_tree): Initialize them.
4477         (lookup_field_for_decl): Use field_map.
4478         (get_nonlocal_debug_decl, get_local_debug_decl): New.
4479         (convert_local_omp_clauses): New.
4480         (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
4481         (walk_body): Split out of walk_function.
4482         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
4483         (convert_nonlocal_reference): Handle omp statements.
4484         (convert_local_reference): Likewise.
4485         (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
4486         (unnest_nesting_tree): New.
4487         (lower_nested_functions): Call it.
4488         (insert_field_into_struct): Make extern.
4489         (struct walk_stmt_info): Move to tree-gimple.h.
4490         (walk_stmts): Make extern.
4491         * omp-builtins.def: New file.
4492         * tree-iterator.c (expr_only): Clarify comment.
4493         * c-common.h (pushdecl_top_level, pushdecl,
4494         build_modify_expr, build_indirect_ref,
4495         c_finish_omp_master, c_finish_omp_critical,
4496         c_finish_omp_ordered, c_finish_omp_barrier,
4497         c_finish_omp_atomic, c_finish_omp_flush,
4498         c_finish_omp_for, c_split_parallel_clauses,
4499         omp_clause_default_kind, c_omp_sharing_predetermined,
4500         c_omp_remap_decl): Declare.
4501         * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
4502         (OBJS-common): Add omp-low.o.
4503         (c-omp.o, omp-low.o): Add.
4504         (gimplify.o): Add dependency on $(OPTABS_H).
4505         (GTFILES): Add omp-low.c.
4506         (gt-stringpool.h): Add.
4507         * tree-cfg.c (set_bb_for_stmt): Do not update the
4508         block-to-labels map if we are currently expanding to RTL.
4509         (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
4510         checks.
4511         Handle IDENTIFIER_NODE.
4512         (tree_verify_flow_info): Do not ICE when emitting error
4513         messages about invalid labels.
4514         (dump_function_to_file): Reset CFUN before emitting the body
4515         of the function.
4516         (debug_function): New.
4517         * passes.c (init_optimization_passes): Schedule
4518         pass_lower_omp.
4519         * langhooks-def.h (lhd_omp_predetermined_sharing,
4520         lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
4521         Declare.
4522         (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
4523         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
4524         (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
4525         LANG_HOOKS_OMP_PREDETERMINED_SHARING,
4526         LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
4527         LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
4528         LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
4529         LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
4530         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
4531         LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
4532         (LANG_HOOK_DECLS): Use them.
4533
4534 2006-01-18  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
4535             Richard Henderson  <rth@redhat.com>
4536             Jakub Jelinek  <jakub@redhat.com>
4537             Diego Novillo  <dnovillo@redhat.com>
4538
4539         * c-parser.c (pragma_omp_clause): Define.
4540         (c_parser_declaration_or_fndef): Document OpenMP syntax.
4541         (c_parser_compound_statement): Likewise.
4542         (c_parser_statement): Likewise.
4543         (c_parser_pragma): Handle omp pragmas.
4544         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
4545         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
4546         (c_parser_omp_clause_name, check_no_duplicate_clause,
4547         c_parser_omp_variable_list,
4548         c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
4549         c_parser_omp_clause_copyprivate,
4550         c_parser_omp_clause_default,
4551         c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
4552         c_parser_omp_clause_lastprivate,
4553         c_parser_omp_clause_nowait,
4554         c_parser_omp_clause_num_threads,
4555         c_parser_omp_clause_ordered, c_parser_omp_clause_private,
4556         c_parser_omp_clause_reduction,
4557         c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
4558         c_parser_omp_all_clauses, c_parser_omp_structured_block,
4559         c_parser_omp_atomic, c_parser_omp_barrier,
4560         c_parser_omp_critical, c_parser_omp_flush,
4561         c_parser_omp_for_loop, c_parser_omp_for,
4562         c_parser_omp_master, c_parser_omp_ordered,
4563         c_parser_omp_sections_scope, c_parser_omp_sections,
4564         c_parser_omp_parallel, c_parser_omp_single,
4565         c_parser_omp_construct, c_parser_omp_threadprivate): New.
4566         * c-pragma.c (init_pragma): Do omp pragma registration here.
4567         * c.opt (fopenmp): New flag.
4568
4569 2006-01-18  Eric Christopher  <echristo@apple.com>
4570
4571         * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
4572         * config/darwin.h (GOMP_SELF_SPECS): Define.
4573
4574 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
4575
4576         * rtl.h: Remove the prototype for reg_alloc.
4577
4578 2006-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4579
4580         PR target/25731
4581         * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
4582         hppa[12]*-*-hpux11*): Override default shared libgcc version for both
4583         sjlj and dwarf2 exception handling.
4584         * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
4585         Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
4586         * pa/pa.c (function_value): Treat complex and vector types as
4587         aggregates.
4588         (function_arg): Likewise.  Only pass scalar floats in the floating
4589         point argument registers.
4590         * pa/t-slibgcc-dwarf-ver: New file.
4591         * pa/t-slibgcc-sjlj-ver: New file.
4592         * pa/t-slibgcc-elf-ver: Delete file.
4593
4594 2006-01-19  Alan Modra  <amodra@bigpond.net.au>
4595
4596         * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
4597         unlikely_test_section_p test.
4598
4599 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
4600
4601         * mode-switching.c (optimize_mode_switching): Make it static.
4602         * basic-block.h: Remove the prototype for
4603         optimize_mode_switching.
4604
4605         * modulo-sched.c (sms_schedule): Make it static.
4606         * rtl.h: Remove the prototype for sms_schedule.
4607
4608         * postreload-gcse.c (gcse_after_reload_main): Make it static.
4609         * rtl.h: Remove the prototype for gcse_after_reload_main.
4610
4611         * reg-stack.c (reg_to_stack): Make it static.
4612         * rtl.h: Remove the prototype for reg_to_stack.
4613
4614         * regrename.c (regrename_optimize, copyprop_hardreg_forward):
4615         Make them static.
4616         * rtl.h: Remove the prototypes for regrename_optimize and
4617         copyprop_hardreg_forward.
4618
4619 2006-01-18  Eric Botcazou  <ebotcazou@adacore.com>
4620
4621         * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
4622         alpha_split_tmode_pair.  Add 'mode' and 'fixup_overlap' arguments.
4623         Test against the appropriate null constant for the mode.
4624         If 'fixup_overlap' is true, swap the operands if they overlap.
4625         (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
4626         * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
4627         alpha_split_tmode_pair and adjust for above change.
4628         * config/alpha/alpha.md (movtf_internal): Adjust call to
4629         alpha_split_tfmode_pair and rely on it to swap the operands.
4630         (movti_internal): New insn and post-reload splitter.
4631         (movti): New expander.
4632
4633 2006-01-18  Philippe De Muyter  <phdm@macqel.be>
4634
4635         * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
4636         operands.
4637
4638 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
4639
4640         * rtlanal.c (global_reg_mentioned_p_1,
4641         global_reg_mentioned_p): Remove.
4642         * rtl.h: Remove the prototype for global_reg_mentioned_p.
4643
4644         * flow.c (initialize_uninitialized_subregs): Make it static.
4645         * rtl.h: Remove the prototype for
4646         initialize_uninitialized_subregs.
4647
4648         * function.c (instantiate_virtual_regs): Make it static.
4649         * function.h: Remove the prototype for
4650         instantiate_virtual_regs.
4651
4652         * regmove.c (regmove_optimize, combine_stack_adjustments):
4653         Make them static.
4654         * rtl.h: Remove the prototypes for regmove_optimize and
4655         combine_stack_adjustments.
4656
4657 2006-01-17  Roger Sayle  <roger@eyesopen.com>
4658
4659         * config/i386/i386.c (COSTS_N_BYTES): New macro.
4660         (size_cost): Encode costs in bytes so that a reg-reg addition is
4661         equivalent to COSTS_N_INSNS(1).
4662         (override_options): Use the size_cost.branch_cost as the default
4663         ix86_branch_cost when optimizing for size.
4664
4665 2006-01-18  Ben Elliston  <bje@au.ibm.com>
4666
4667         * Makefile.in (D32PBIT_FUNCS): New.
4668         (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
4669         (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
4670         D64PBIT_FUNCS and D128PBIT_FUNCS.
4671         (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
4672         * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
4673         D128PBIT are set.
4674         (decnumber_dep): Define.
4675         * doc/libgcc.texi (Decimal float library routines): New node.
4676         * config/dfp-bit.h, config/dfp-bit.c: New files.
4677
4678 2006-01-18  Ben Elliston  <bje@au.ibm.com>
4679
4680         * expr.c (emit_move_change_mode): Always adjust addresses, not
4681         just during reload.  Copy replacements only during reload.
4682         (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
4683         emit_move_via_integer.
4684
4685 2006-01-17  Shantonu Sen  <ssen@opendarwin.org>
4686
4687         * Makefile.in (check-%, check-consistency): Use $${srcdir}
4688         instead of $(srcdir) and ${srcdir}.
4689
4690 2006-01-17  Richard Earnshaw  <rearnsha@arm.com>
4691
4692         PR target/592
4693         PR middle-end/11135
4694         * arm.h (struct machine_function): Add pic_reg.
4695         * arm.c (arm_pic_register): Make unsigned.
4696         (arm_override_options): Only set arm_pic_register if
4697         TARGET_SINGLE_PIC_BASE.
4698         (use_return_insn): Only test for a pic register if it is fixed.
4699         (arm_compute_save_reg0_reg12_mask): Likewise.
4700         (thumb_compute_save_reg_mask): Likewise.
4701         (legitimate_pic_operand): Factor out some known invariants.
4702         (legitimize_pic_address): If we don't have a fixed pic register,
4703         then set up a pseudo in the function entry sequence.  Handle the
4704         pic base being in a pseudo.
4705         (arm_load_pic_register): Handle the pic register being in a pseudo.
4706         (arm_expand_prologue): Only set up the pic register if it is fixed.
4707         (thumb_expand_prologue): Likewise.
4708         * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
4709         (pic_load_addr_based_insn): Likewise.
4710         (builtin_setjmp_receiver): Don't restore the pic base if it isn't
4711         fixed.
4712
4713 2006-01-18  Ben Elliston  <bje@au.ibm.com>
4714
4715         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
4716         decimal float modes for all floating point registers.
4717
4718         * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
4719         match_code "mem" with match_test "macho_lo_sum_memory_operand".
4720
4721 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
4722
4723         PR c/25682
4724         * c-typeck.c (build_unary_op): Fold offsetof-like expressions
4725         even when the pointer is not NULL.
4726
4727 2006-01-16  Ian Lance Taylor  <ian@airs.com>
4728
4729         * common.opt (ftoplevel-reorder): New option.
4730         * cgraph.c (cgraph_asm_nodes): New global variable.
4731         (cgraph_asm_last_node): New static variable.
4732         (cgraph_order): New global variable.
4733         (cgraph_create_node): Set new order field.
4734         (cgraph_varpool_node): Likewise.
4735         (decide_is_variable_needed): Return true if not
4736         flag_toplevel_reorder.
4737         (cgraph_add_asm_node): New function.
4738         * cgraph.h (struct cgraph_node): Add order field.
4739         (struct cgraph_varpool_node): Add order field.
4740         (struct cgraph_asm_node): Define.
4741         (cgraph_asm_nodes, cgraph_order): Declare.
4742         (cgraph_add_asm_node): Declare.
4743         * cgraphunit.c (cgraph_varpool_assemble_decl): New static
4744         function.
4745         (cgraph_varpool_assemble_pending_decls): Call it.
4746         (cgraph_output_pending_asms): New static function.
4747         (cgraph_finalize_compilation_unit): Call it.
4748         (struct cgraph_order_sort): Define.
4749         (cgraph_output_in_order): New static function.
4750         (cgraph_optimize): Call cgraph_output_pending_asms.  Add code for
4751         !flag_toplevel_reorder case.
4752         * c-parser.c: Include "cgraph.h".
4753         (c_parser_asm_definition): Call cgraph_add_asm_node rather than
4754         assemble_asm.
4755         * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
4756         than -fno-unit-at-a-time.
4757         * doc/invoke.texi (Option Summary): Mention
4758         -fno-toplevel-reorder.
4759         (Optimize Options): Document -fno-toplevel-reorder.  Mention it in
4760         -funit-at-a-time documentation.
4761
4762 2006-01-17  Hans-Peter Nilsson  <hp@axis.com>
4763             Kazu Hirata  <kazu@codesourcery.com>
4764
4765         * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
4766
4767 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
4768
4769         * Makefile.in (FUNCTION_H): New.  Use it instead of
4770         function.h throughout the file.
4771         * function.h: Include tree.h.
4772
4773 2006-01-17  Ben Elliston  <bje@au.ibm.com>
4774
4775         * recog.c: Separate some functions with whitespace.
4776
4777 2006-01-16  Richard Henderson  <rth@redhat.com>
4778
4779         Merge from gomp branch:
4780         * Makefile.in (TREE_INLINE_H): New.  Use it as needed.
4781         * tree-inline.h (struct copy_body_data): Move from tree-inline.c
4782         and rename from struct inline_data.  Rename callee* to dst*;
4783         caller* to src*; add copy_decl hook, transform_call_graph_edges,
4784         transform_new_cfg, transform_return_to_modify, and
4785         transform_lang_insert_block flags; remove cloning_p, versioning_p,
4786         update_clones_p.
4787         (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
4788         (copy_decl_for_dup): Remove.
4789         * tree-inline.c (struct inline_data): Move to header.
4790         (insert_decl_map): Export.
4791         (remap_decl): Update for member name changes.  Use copy_decl hook.
4792         Allow for replacement to be a non-decl.  Remove dead code.
4793         (remap_type_1): Check for existing mapping.
4794         (remap_type): Export.
4795         (remap_decls): Update for member name changes.
4796         (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
4797         (copy_body, setup_one_parameter, declare_return_variable): Likewise.
4798         (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
4799         (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
4800         (tree_function_versioning, build_duplicate_type): Likewise.
4801         (copy_body_r): Likewise.  Export.
4802         (copy_decl_for_dup): Split into ...
4803         (copy_decl_for_dup_finish, copy_decl_to_var,
4804         copy_decl_no_change, copy_decl_maybe_to_var): ... these.
4805         (replace_ref_tree, inlining_p): Remove.
4806
4807 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
4808
4809         * ifcvt.c (if_convert): Make it static.
4810         * rtl.h: Remove the prototype for if_convert.
4811
4812         * local-alloc.c (local_alloc): Make it static.
4813         * rtl.h: Remove the prototype for local_alloc.
4814
4815         * loop.c (loop_optimize): Make it static.
4816         * cfgloop.h: Remove the prototype for loop_optimize.
4817         * rtl.h: Likewise.
4818
4819 2006-01-16  DJ Delorie  <dj@redhat.com>
4820
4821         * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
4822         mems.
4823
4824 2006-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4825
4826         * pa.md: Disparage copies between general and floating-point registers
4827         in 32-bit move patterns.
4828
4829 2006-01-16  H.J. Lu  <hongjiu.lu@intel.com>
4830
4831         PR testsuite/25741
4832         * Makefile.in (check-%): Depend on site.exp instead of
4833         $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
4834         directories.
4835
4836 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
4837
4838         * global.c (global_alloc): Make it static.
4839         * rtl.h: Remove the prototype for global_alloc.
4840
4841 2006-01-16  Richard Guenther  <rguenther@suse.de>
4842
4843         * tree-ssa-alias.c (struct used_part): Add write_only field.
4844         (get_or_create_used_part_for): Initialize it to true.
4845         (create_overlap_variables_for): Don't create structure variables
4846         for structures that only are written to.
4847         (find_used_portions): Handle MODIFY_EXPR to track whether a
4848         structure is only written to.
4849
4850 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
4851
4852         * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
4853         static.
4854         * basic-block.h: Remove the prototype for
4855         partition_hot_cold_basic_blocks.
4856
4857 2006-01-16  Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
4858
4859         * cppspec.c (lang_specific_spec_functions): Remove.
4860         * gcc.c (lookup_spec_function): Use static_spec_functions directly.
4861         * gcc.h (lang_specific_spec_functions): Remove.
4862         * gccspec.c (lang_specific_spec_functions): Remove.
4863
4864 2006-01-16  Paolo Bonzini  <bonzini@gnu.org>
4865
4866         * combine.c (record_value_for_reg): Invalidate registers
4867         if INSN is null.
4868         (record_dead_and_set_regs_1): Likewise, by passing them to
4869         record_value_for_reg.
4870         (record_dead_and_set_regs): Invalidate stores made by a
4871         call.  We do not combine across a call, but we still
4872         relied on equivalences.
4873
4874 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
4875
4876         * tree-vrp.c (extract_range_from_binary_expr): Cope with
4877         vrp_int_const_binop returning non-constant nodes.
4878
4879 2006-01-16  Paul Brook  <paul@codesourcery.com>
4880
4881         * config/m68k/m68k.c (output_move_const_into_data_reg):
4882         Output correct mnemonic for mvz and mvs.
4883
4884 2006-01-16  Gabor Loki  <loki@gcc.gnu.org>
4885
4886         * rtl-factoring.c: Add sequence abstraction algorithm.
4887         * cfgcleanup.c (outgoing_edges_match): Extra checks.
4888         (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
4889         ABNORMAL edges.
4890         (block_has_preserve_label): New function.
4891         * common.opt: Register new pass.
4892         * Makefile.in: Ditto.
4893         * passes.c: Ditto.
4894         * timevar.def: Ditto.
4895         * tree-pass.h: Ditto.
4896         * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
4897         * rtl.h (make_jump_insn_raw): Add forward decl.
4898         * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
4899
4900 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
4901             Roger Sayle  <roger@eyesopen.com>
4902
4903         * fold-const.c (fold_minmax): New static function.
4904         (fold_binary) <MIN_EXPR>: Call it.
4905         <MAX_EXPR>: Likewise.
4906         * stor-layout.c (place_field): Use DECL_SIZE consistently
4907         in the computation of the new record size.
4908
4909 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
4910
4911         * cse.c (cse_condition_code_reg): Make it static.
4912         * rtl.h: Remove the prototype for cse_condition_code_reg.
4913
4914         * combine.c (combine_instructions): Make it static.
4915         * rtl.h: Remove the prototype for combine_instructions.
4916
4917 2006-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4918
4919         PR target/25168
4920         * tree.c (get_file_function_name_long): Concatenate the first global
4921         object name with a string derived from the input filename of the object
4922         for type "F".
4923
4924 2006-01-16  Ben Elliston  <bje@au.ibm.com>
4925
4926         * config/i386/winnt-stubs.c: Update FSF address.
4927         * config/xtensa/ieee754-df.S: Ditto.
4928         * config/xtensa/ieee754-sf.S: Ditto.
4929
4930 2006-01-14  Ian Lance Taylor  <ian@airs.com>
4931
4932         * ifcvt.c (noce_init_if_info): New static function, broken out of
4933         noce_process_if_block.
4934         (noce_process_if_block): Call noce_init_if_info.
4935         (check_cond_move_block): New static function.
4936         (cond_move_process_if_block): New static function.
4937         (process_if_block): Call cond_move_process_if_block.
4938
4939 2006-01-15  Kazu Hirata  <kazu@codesourcery.com>
4940
4941         * cselib.c (hash_table): Rename to cselib_hash_table.
4942         (cselib_clear_table, discard_useless_values,
4943         remove_useless_values, cselib_lookup_mem, cselib_lookup,
4944         cselib_init, cselib_finish): Adjust uses of hash_table.
4945
4946 2006-01-14  Kazu Hirata  <kazu@codesourcery.com>
4947
4948         PR tree-optimization/25485
4949         * tree-vrp.c (extract_range_from_binary_expr): Handle cases
4950         where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
4951         is known to be false and true, respectively.
4952
4953 2006-01-14  Richard Guenther  <rguenther@suse.de>
4954
4955         PR tree-optimization/22548
4956         PR tree-optimization/22555
4957         PR tree-optimization/22501
4958         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
4959         * params.def (salias-max-array-elements): New parameter.
4960         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
4961         * doc/invoke.texi (salias-max-array-elements): Document.
4962         * tree-flow-inline.h (var_can_have_subvars): We also handle
4963         arrays now.
4964         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
4965         COMPONENT_REF.
4966         * tree-ssa-structalias.c (params.h): Include.
4967         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
4968         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
4969         (get_constraint_for): For ADDR_EXPR operating on something
4970         containing an ARRAY_REF, add all subvars to the solution.
4971         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
4972         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
4973         for creating MUST_DEFs.
4974         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
4975
4976 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
4977
4978         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
4979         functions.
4980         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
4981         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
4982         number_of_iterations_le): New functions.
4983         (number_of_iterations_special): Removed.
4984         (number_of_iterations_exit): Do not use number_of_iterations_special.
4985         * tree.c (unsigned_type_for): Always return integer type.
4986
4987 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
4988         Richard Guenther  <rguenther@suse.de>
4989
4990         PR rtl-optimization/24257
4991         * gcse.c (find_moveable_store): Only consider a store movable
4992         when the SET_SRC of the insn can be assigned to a register.
4993
4994 2006-01-14  Ian Lance Taylor  <ian@airs.com>
4995
4996         * tree.c (tree_not_class_check_failed): New function.
4997         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
4998         (tree_not_class_check_failed): Declare.
4999
5000 2006-01-13  Ian Lance Taylor  <ian@airs.com>
5001
5002         * reload1.c (do_output_reload): Add assertion rejecting a
5003         CALL_INSN.
5004
5005 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
5006
5007         * combine.c (struct reg_stat): Add new fields truncation_label and
5008         truncated_to_mode.
5009         (record_value_for_reg): Reset truncated_to_mode.
5010         (record_truncated_value): New function.
5011         (check_promoted_subreg): Call it.  Rename to check_conversions.
5012         (combine_instructions): Rename check_promoted_subreg to
5013         check_conversions.
5014         (reg_truncated_to_mode): New function.
5015         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
5016         (gen_lowpart_or_truncate): New function.
5017         (force_to_mode): Use it instead of gen_lowpart.
5018
5019 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
5020
5021         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
5022         VAR is a tag, not its type tag.
5023
5024 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
5025
5026         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
5027         alternatives to match style of other entries.
5028         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
5029
5030 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
5031
5032         PR tree-optimization/25771
5033         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
5034         SSA_NAMES.
5035
5036 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
5037
5038         PR tree-opt/24365
5039         * tree-inline.c (declare_return_variable): If the return variable
5040         was marked as a non gimple complex, set the return slot variable
5041         to be a non gimple comple variable.
5042
5043 2006-01-13  Richard Guenther  <rguenther@suse.de>
5044
5045         * builtins.c (expand_builtin_sincos): New function.
5046         (expand_builtin_mathfn_3): Remove dead code, sin and cos
5047         do not set errno.
5048         (expand_builtin): Expand sincos using expand_builtin_sincos.
5049
5050 2006-01-12  DJ Delorie  <dj@redhat.com>
5051
5052         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
5053         shift counts, separate SI shifts for m32c vs m16c, pass shift type
5054         so that constant shifts can be split.
5055         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
5056         (m32c_valid_pointer_mode): Make static.
5057         (shift_gen_func_for): New.
5058         (m32c_prepare_shift): Use it.  Split large const shifts into
5059         multiple shifts.
5060         * config/m32c/predicates.md (shiftcount_operand): Allow more
5061         general operands.
5062         (longshiftcount_operand): New.
5063         * doc/md.texi (Machine Constraints): Document In6.
5064
5065 2006-01-13  Ben Elliston  <bje@au.ibm.com>
5066
5067         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
5068         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
5069         documentation.
5070
5071 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
5072
5073         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
5074         to try to avoid clobbering pieces of structures when we know
5075         something about the whole structure.
5076         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
5077
5078 2006-01-13  Ben Elliston  <bje@au.ibm.com>
5079
5080         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
5081         return in memory, as this is no limitation is no longer present.
5082
5083 2006-01-12  DJ Delorie  <dj@redhat.com>
5084
5085         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
5086         mova with fb, and for fb+0 -> An.
5087
5088         * config/m32c/mov.md (peephole2): Fix enabling logic.
5089
5090         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
5091         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
5092         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
5093         FINI_ARRAY_SECTION_ASM_OP): Define.
5094
5095         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
5096         variable.
5097         (m32c_legitimize_reload_address): New logic to reload FB to An.
5098         (m32c_output_reg_push): Add newline.
5099         (m32c_output_reg_pop): Likewise.
5100
5101 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
5102
5103         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
5104
5105 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
5106
5107         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
5108
5109 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
5110
5111         * config/sh/predicates.md (sh_rep_vec): Add parallel to
5112         match_code.
5113
5114 2006-01-11  Ben Elliston  <bje@au.ibm.com>
5115
5116         * rtlanal.c (find_reg_note): Assert insn is not null.
5117
5118 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
5119
5120         * df-scan.c (df_hard_reg_init): Move declaration of i outside
5121         ifdef.
5122
5123 2006-01-11  Jeff Law  <law@redhat.com>
5124
5125         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
5126         hold edge pairs.
5127         (mark_threaded_blocks, register_jump_thread): New functions.
5128         (thread_through_all_blocks): Remove unwanted argument.  No
5129         longer rely on e->aux to communicate thread target info.
5130         Call mark_threaded_blocks.  Release the threaded_blocks
5131         bitmap and threaded_edges vector when complete.
5132         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
5133         (threaded_blocks): Remove.
5134         (tree_ssa_dominator_optimize): Remove initialization and
5135         finalization of threaded_blocks.  Simplify call to
5136         thread_through_all_blocks.
5137         (thread_across_edge): Call register_jump_thread rather than
5138         storing thread information into e->aux.
5139         (free_all_edge_infos): Simplify now that e->aux is no longer
5140         used to communicate with thread_through_all_blocks.
5141         * tree-flow.h (thread_through_all_blocks): Update prototype.
5142         (register_jump_thread): Prototype.
5143
5144 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
5145
5146         * df-core.c (df_compact_blocks, df_bb_replace): Use
5147         SET_BASIC_BLOCK instead of BASIC_BLOCK.
5148
5149 2006-01-11  Richard Guenther  <rguenther@suse.de>
5150
5151         PR tree-optimization/25734
5152         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
5153         stop propagation after successful propagation to the LHS.
5154
5155 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
5156
5157         * basic-block.h (control_flow_graph): Change the type of
5158         x_basic_block_info to VEC(basic_block,gc) *.
5159         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
5160         basic_block_info.
5161         (SET_BASIC_BLOCK): New.
5162         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
5163         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
5164         * cfgbuild.c (find_basic_blocks): Likewise.
5165         * cfglayout.c (fixup_reorder_chain): Likewise.
5166         * cfgrtl.c (create_basic_block_structure,
5167         rtl_create_basic_block): Likewise.
5168         * ifcvt.c (find_if_case_1): Likewise.
5169         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
5170         Likewise.
5171
5172 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
5173
5174         * Makefile.in: Removed rotted odf.c entry.
5175
5176 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
5177
5178         PR target/25706
5179         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
5180         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
5181         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
5182         output pattern modifier, not %e.
5183         * config/cris/cris.c (cris_op_str): Update comment about pattern
5184         modifier.
5185         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
5186         before falling through into...
5187         <case 'E'>: Redefined from old 'e' case.
5188
5189 2006-01-11  Jan Hubicka  <jh@suse.cz>
5190
5191         PR target/25042
5192         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
5193
5194 2006-01-11  Jan Hubicka  <jh@suse.cz>
5195
5196         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
5197         * i386.c (x86_decompose_lea): Kill.
5198         (ix86_rtx_costs): Kill.
5199
5200 2006-01-11  Jan Hubicka  <jh@suse.cz>
5201
5202         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
5203         * cgraph.h (cgraph_node): Add inline_decl.
5204         (cgraph_insert_node_to_hashtable): Declare.
5205         (save_inline_function_body): Declare.
5206         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
5207         clones.
5208         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
5209         (cgraph_function_versioning): Update call of tree_function_versioning.
5210         (save_inline_function_body): New function.
5211         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
5212         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
5213         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
5214         (cgraph_default_inline_p): Likewise.
5215         (cgraph_decide_inlining_incrementally): Likewise.
5216         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
5217         (copy_bb): Kill saving; do updating of clones.
5218         (copy_cfg_body): Kill saving.
5219         (initialize_inlined-parameters): Likewise.
5220         (expand_call_inline): Likewise.
5221         (save_body): Kill.
5222         (tree_function_versioning): New parameter "update_clones".
5223         (inlining_p): Kill saving.
5224         * tree-inline.h (tree_function_versioning): Update prototype.
5225         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
5226         saving.
5227
5228 2006-01-11  Ian Lance Taylor <ian@airs.com>
5229
5230         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
5231         Allow undoing set of machine mode.
5232         (do_SUBST): Use enums instead of is_int.
5233         (do_SUBST_MODE): New function.
5234         (SUBST_MODE): New macro.
5235         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
5236         reg and trying to replace reg_regno_rtx with a new register.
5237         (undo_all): Use new enums, handle undoing a PUT_MODE change.
5238         (simplify_set): Use SUBST_MODE.
5239         (distribute_notes): Remove code that tried to update reg notes
5240         for regno_reg_rtx changes.
5241
5242 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
5243
5244         PR tree-optimization/23109
5245         PR tree-optimization/23948
5246         PR tree-optimization/24123
5247
5248         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
5249         * tree-cfg.c (single_noncomplex_succ): New.
5250         * tree-flow.h (single_noncomplex_succ): Declare it.
5251         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
5252         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
5253         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
5254         insert_bb, register_division_in, insert_reciprocals,
5255         replace_reciprocal, free_bb): New.
5256         (execute_cse_reciprocals_1): Rewritten.
5257         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
5258         Do not commit any edge insertion.  Always compute dominators and
5259         create the allocation pool.
5260         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
5261         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
5262         * targhooks.c (default_min_divistions_for_recip_mul): New.
5263         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
5264         * passes.c (init_optimization_passes): Run recip after tree loop
5265         optimizations.
5266         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
5267
5268 2006-01-11  Danny Berlin <dberlin@dberlin.org>
5269             Kenneth Zadeck <zadeck@naturalbridge.com>
5270
5271         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
5272         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
5273         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
5274         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
5275         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
5276         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
5277         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
5278         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
5279         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
5280         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
5281         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
5282         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
5283         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
5284         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
5285         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
5286         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
5287         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
5288         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
5289         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
5290         DF_SCAN_POST_ALLOC): New macros.
5291         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
5292         df_free_bb_function, df_local_compute_function, df_init_function,
5293         df_dataflow_function, df_confluence_function_0,
5294         df_confluence_function_n, df_transfer_function,
5295         df_finalizer_function, df_free_function, df_dump_problem_function,
5296         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
5297         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
5298         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
5299         df_urec_bb_info, ) New types.
5300         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
5301         variables.
5302         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
5303         df_analyze_simple_change_some_blocks,
5304         df_analyze_simple_change_one_block, df_compact_blocks,
5305         df_bb_replace, df_bb_regno_last_use_find,
5306         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
5307         df_insn_regno_def_p, df_find_def, df_find_use,
5308         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
5309         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
5310         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
5311         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
5312         debug_df_chain, df_get_dependent_problem, df_chain_create,
5313         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
5314         df_grow_bb_info, df_chain_dump, df_print_bb_index,
5315         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
5316         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
5317         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
5318         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
5319         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
5320         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
5321         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
5322         df_ref_remove, df_insn_refs_delete, df_refs_delete,
5323         df_reorganize_refs, df_set_state, df_hard_reg_init,
5324         df_read_modify_subreg_p) New public functions.
5325         * df-core.c: The core dataflow solver and glue routines for rtl
5326         dataflow.
5327         (df_init, df_add_problem, df_set_blocks, df_finish,
5328         df_hybrid_search_forward, df_hybrid_search_backward,
5329         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
5330         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
5331         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
5332         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
5333         df_reg_defined, df_find_use, df_reg_used, df_dump,
5334         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
5335         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
5336         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
5337         debug_df_useno, reset_df_after_reload): New functions.
5338         * df-scan.c: The scanning fuctions, once in df.c, completely
5339         rewritten so that they now fully model the functionality of
5340         register usage at the backend.
5341         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
5342         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
5343         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
5344         df_grow_insn_info, df_rescan_blocks, df_ref_create,
5345         df_get_artificial_defs, df_get_artificial_uses,
5346         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
5347         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
5348         df_refs_delete, df_reorganize_refs, df_set_state,
5349         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
5350         df_def_record_1, df_defs_record, df_uses_record,
5351         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
5352         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
5353         df_record_exit_block_uses, df_hard_reg_init): New functions.
5354
5355         * df-problems.c: Seven concrete dataflow problems that use the
5356         scanning in df-scan.c and are solved by the engine in df-core.c.
5357         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
5358         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
5359         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
5360         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
5361         df_ru_free_bb_info, df_ru_alloc,
5362         df_ru_bb_local_compute_process_def,
5363         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
5364         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
5365         df_ru_transfer_function, df_ru_free, df_ru_dump,
5366         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
5367         df_rd_free_bb_info, df_rd_alloc,
5368         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
5369         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
5370         df_rd_transfer_function, df_rd_free, df_rd_dump,
5371         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
5372         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
5373         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
5374         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
5375         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
5376         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
5377         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
5378         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
5379         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
5380         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
5381         df_urec_mark_reg_change, df_urec_check_earlyclobber,
5382         df_urec_mark_reg_use_for_earlyclobber,
5383         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
5384         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
5385         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
5386         df_urec_dump, df_urec_add_problem, df_chain_alloc,
5387         df_chain_create_bb_process_use, df_chain_create_bb,
5388         df_chain_finalize, df_chain_free, df_chains_dump,
5389         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
5390         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
5391         df_reg_lifetime): New functions.
5392         * df.c: Deleted file.
5393         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
5394         consistent with new df api.
5395         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
5396         rest_of_handle_sms): Ditto.
5397         * web.c (unionfind_union, union_defs, entry_register, web_main):
5398         Ditto.
5399         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
5400         invariant_expr_equal_p, find_defs, check_dependencies,
5401         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
5402         free_inv_motion_data, move_loop_invariants): Ditto.
5403         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
5404         Update dependencies.
5405         (odf.c): Added defective entry that was deleted later in day.
5406         * sched-deps.c (sched_analyze_1): Ditto.
5407
5408 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
5409
5410         * tree-ssa-operands.c (get_expr_operands): Record addressable
5411         variables directly.  Do not call add_stmt_operands for CONST_DECLs
5412         and ARRAY_DECLs.
5413         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
5414         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
5415
5416 2006-01-11  Ben Elliston  <bje@au.ibm.com>
5417
5418         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
5419         function returns true in the positive case.
5420
5421 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5422
5423         PR target/20754
5424         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
5425         for SI, DI, SF and DF modes.  Add alternatives to copy between
5426         general and floating point registers to the 32-bit patterns.
5427         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
5428         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
5429         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
5430         generating 64-bit code.
5431         * config/pa/pa.c (output_move_double): Handle copies between general
5432         and floating registers.
5433
5434 2006-01-10  Stuart Hastings  <stuart@apple.com>
5435
5436         * config/i386/i386.md (set_got): Update.
5437         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
5438         (builtin_setjmp_receiver): Mach-O support.
5439         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
5440         (GOT_SYMBOL_NAME): Define.
5441         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
5442         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
5443         * config/i386/i386.c (override_options): Revise for Darwin.
5444         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
5445         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
5446         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
5447         * config/i386/i386-protos.h (output_set_got): Likewise.
5448         * config/darwin.c (machopic_legitimize_pic_address): Update
5449         regs_ever_live[].
5450
5451 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
5452
5453         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
5454         when MODE isn't BLKmode.
5455
5456 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5457
5458         PR rtl-optimization/25367
5459         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
5460
5461 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
5462
5463         PR target/25718
5464         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
5465         for a negative bound.
5466
5467 2006-01-10  Richard Guenther  <rguenther@suse.de>
5468
5469         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5470         Never override with anything constraint.
5471
5472 2006-01-10  Jan Beulich  <jbeulich@novell.com>
5473
5474         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
5475         256 bits when optimize_size.
5476
5477 2006-01-10  Jan Beulich  <jbeulich@novell.com>
5478
5479         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
5480         MASK_ALIGN_DOUBLE.
5481         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
5482         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
5483         arguments.
5484
5485 2006-01-10  Ben Elliston  <bje@au.ibm.com>
5486
5487         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
5488         float modes.
5489         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
5490         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
5491         (USE_FP_FOR_ARG): Reject decimal float modes.
5492         (function_arg_advance): Likewise.
5493         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
5494         (rs6000_handle_altivec_attribute): Do not permit decimal floating
5495         point types in AltiVec vectors.
5496         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
5497         (rs6000_libcall_value): Likewise.
5498
5499 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
5500
5501         * config/xtensa/ieee754-df.S: New file.
5502         * config/xtensa/ieee754-sf.S: New file.
5503         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
5504         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
5505         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
5506
5507 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
5508
5509         * config/sh/predicates.md (binary_float_operator,
5510         binary_logical_operator, commutative_float_operator,
5511         equality_comparison_operator, greater_comparison_operator,
5512         less_comparison_operator, logical_operator,
5513         noncommutative_float_operator, shift_operator,
5514         symbol_ref_operand, unary_float_operator): Remove redundant
5515         conditionals.
5516
5517 2006-01-09  Jeff Law  <law@redhat.com>
5518
5519         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
5520         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
5521         now unused arguments.  Callers updated.
5522         (eliminate_redundant_computations): Remove now unused arguments,
5523         callers updated.
5524         (local_fold): Remove, no longer used.
5525         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
5526         and moved to...
5527         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
5528         (simplify_cond): New function.
5529         (forward_propagate_into_cond): Call simplify_cond.
5530
5531 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
5532
5533         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
5534         (*vec_extractv2di_1_sse): New.
5535
5536 2006-01-09  Ben Elliston  <bje@au.ibm.com>
5537
5538         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
5539
5540 2006-01-08  Richard Guenther  <rguenther@suse.de>
5541
5542         * tree-ssa-structalias.c (get_constraint_for): Remove
5543         anyoffset argument.
5544         (get_constraint_for_component_ref): Likewise.
5545         (do_deref): Likewise.
5546         (get_constraint_for): Likewise.
5547         (do_structure_copy): Likewise.
5548         (handle_ptr_arith): Likewise.
5549         (find_func_aliases): Likewise.  Remove unused need_anyoffset
5550         variable.
5551
5552 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
5553             Kaz Kojima  <kkojima@gcc.gnu.org>
5554
5555         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
5556         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
5557         (EXTRA_CONSTRAINT_C16): Remove.
5558         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
5559         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
5560         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
5561         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
5562         constants of SHmedia.  Handle nested constant expressions of
5563         SHmedia correctly.
5564         (andcosts): Fix the costs for SHmedia constants.
5565         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
5566         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
5567         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
5568         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
5569         (movv4hi_i, movv2si_i): Likewise.
5570         (movsi_const): Adjust the second operand of ior so to match with
5571         the Csu constraint.
5572         (movdi_const, movdi_const_32bit): Likewise.
5573         (movdi_const_16bit+1): Don't sign-extend LOW.
5574         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
5575         step.
5576         (*double_shori): Fix the split condition.  Use GEN_INT instead
5577         of get_int_mode calls.  Mask lower 16-bit of the argument of
5578         the last GEN_INT.
5579         (sym2GOTPLT): Remove.
5580         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
5581         gen_rtx_UNSPEC.
5582         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
5583         instead of EXTRA_CONSTRAINT_C16.
5584
5585 2006-01-07  Ian Lance Taylor  <ian@airs.com>
5586             David Edelsohn  <edelsohn@gnu.org>
5587
5588         PR rtl-optimization/25662
5589         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
5590         for constant operands instead of simplify_gen_binary.
5591         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
5592         after trying simplify_binary_operation
5593
5594 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
5595
5596         * tree.c (iterative_hash_expr): Hash decls based on UID.
5597
5598 2006-01-06  Eric Christopher  <echristo@apple.com>
5599
5600         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
5601         (TARGET_UNWIND_EMIT): Fix spelling.
5602         * target.h (gcc_target): Add except_table_label.
5603         * except.c (output_function_exception_table): Use.
5604         * varasm.c (default_emit_except_table_label): New.
5605         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
5606         define.
5607         (asm_out): Add here.
5608         * output.h (default_emit_except_table_label): Prototype.
5609         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
5610         * config/darwin.c (darwin_emit_except_table_label): Define.
5611         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
5612
5613 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
5614
5615         PR tree-optimization/18527
5616         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5617         number_of_iterations_special, number_of_iterations_exit):
5618         Move base and step of an iv to a single structure.  Add
5619         no_overflow flag, and use it in # of iterations analysis.
5620         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
5621         folded_casts argument.
5622         (simple_iv): Pass base and step in a structure.  Set no_overflow
5623         flag.
5624         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
5625         Evaluate expensiveness of computing # of iterations instead of
5626         the final expression.
5627         * tree-scalar-evolution.h (affine_iv): New structure.
5628         (simple_iv): Declaration changed.
5629         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
5630         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
5631         find_givs_in_stmt): Changed due to simple_iv change.
5632
5633 2006-01-06  Jeff Law  <law@redhat.com>
5634
5635         PR ada/24994
5636         * tree-cfg.c (bsi_replace): Rename final argument from
5637         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
5638         change (stmt -> orig_stmt).
5639         * tree-eh.c (verify_eh_throw_stmt_node): New function.
5640         (bsi_remove): Add new argument.  Remove EH information
5641         if requested.
5642         (verify_eh_throw_table_statements): New function.
5643         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
5644         updated.
5645         * tree-optimize.c (execute_free_cfg_annotations): Verify
5646         the EH throw statement table after removing annotations.
5647         * except.h (verify_eh_throw_table_statements): Prototype.
5648         * tree-flow.h (bsi_remove): Update prototype.
5649         * tree-vrp.c (remove_range_assertions): Add new argument to
5650         bsi_remove call.
5651         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
5652         * tree-complex.c (expand_complex_div_wide): Likewise.
5653         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
5654         * tree-tailcall.c (eliminate_tailcall): Likewise.
5655         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
5656         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
5657         * tree-nrv.c (tree_nrv): Likewise.
5658         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
5659         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
5660         (combine_blocks): Likewise.
5661         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
5662         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
5663         (cleanup_control_flow): Likewise.
5664         (remove_forwarder_block): Likewise.
5665         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
5666         * tree-sra.c (sra_replace): Likewise.
5667         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
5668         (forward_propagate_single_use_vars): Likewise.
5669         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
5670         * tree-inline.c (expand_call_inline): Likewise.
5671         * tree-vect-transform.c (vect_transform_loop): Likewise.
5672         * tree-outof-ssa.c (rewrite_trees): Likewise.
5673         * tree-cfg.c (make_goto_expr_edges): Likewise.
5674         (cleanup_dead_labels): Likewise.
5675         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
5676         (bsi_move_before, bsi_move_after): Likewise.
5677         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
5678         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
5679
5680 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
5681
5682         PR tree-opt/25528
5683         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
5684         and IMAGPART_EXPR.
5685         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
5686         on non gimple variables.  Also add checks at the top for decls and
5687         mtags.
5688         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
5689         complex types.
5690         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
5691         and IMAGPART_EXPR for creating MUST_DEFs.
5692         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
5693         and NAME_MEMORY_TAG separately from the DECLs.
5694
5695 2006-01-06  Richard Guenther  <rguenther@suse.de>
5696
5697         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
5698         annotation, if necessary.
5699         * tree-ssa-pre.c (create_expression_by_pieces): Remove
5700         redundant calls to update_stmt.
5701         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
5702         Likewise.
5703
5704 2006-01-05  Richard Henderson  <rth@redhat.com>
5705
5706         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
5707
5708 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
5709
5710         * c-typeck.c: Update copyright date.
5711
5712 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
5713
5714         * c-typeck.c (build_c_cast): Always warn when casting
5715         from a pointer to an integer of different size, even if
5716         the node was constant.
5717
5718 2006-01-05  Richard Guenther  <rguenther@suse.de>
5719
5720         PR tree-optimization/22555
5721         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
5722         if one structure field is an array.
5723         * tree-ssa-operands.c (get_expr_operands): Continue scanning
5724         operands even if we found a subvar, but ignore VOPs in this
5725         case.
5726         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
5727         for renaming.
5728         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
5729
5730 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
5731
5732         PR middle-end/24998
5733         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
5734
5735 2006-01-05  Richard Guenther  <rguenther@suse.de>
5736             Diego Novillo  <dnovillo@redhat.com>
5737
5738         * tree-pass.h (TODO_remove_unused_locals): Define.
5739         * gimple-low.c (expand_var_p, remove_useless_vars,
5740         pass_remove_useless_vars): Remove.  Update all users.
5741         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
5742         (remove_unused_locals): New function.
5743         * tree-flow.h (remove_unused_locals): Declare.
5744         * passes.c (execute_todo): Call remove_unused_locals if
5745         TODO_remove_unused_locals is set.
5746         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
5747         * tree-ssa-dce.c (pass_dce): Likewise.
5748         * tree-outof-ssa.c (pass_del_ssa): Likewise.
5749
5750 2006-01-05  Richard Guenther  <rguenther@suse.de>
5751
5752         * tree-flow.h (struct fieldoff): Decompose field to
5753         type, size and decl.
5754         * tree-ssa-alias.c (create_sft): Take type as parameter.
5755         (create_overlap_variables_for): Store type, size and decl
5756         in the fieldoff structure.
5757         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
5758         of struct fieldoff.
5759         (push_fields_onto_fieldstack): Likewise.
5760         (create_variable_info_for): Likewise.  Use offset for the
5761         SFT name if the decl is not available.
5762
5763 2006-01-04  Paul Brook  <paul@codesourcery.com>
5764
5765         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
5766
5767 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
5768
5769         * lambda-code.c (can_put_in_inner_loop): Relax
5770         restrictions.
5771         (can_put_after_inner_loop): New function.
5772         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
5773         (perfect_nestify): Change to make copies and modify uses.
5774
5775 2006-01-04  Richard Henderson  <rth@redhat.com>
5776
5777         Merge from gomp branch:
5778         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
5779         via integer constant.
5780         (pragma_lex): Remove.
5781         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
5782         rather than parsing it.
5783         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
5784         handle_pragma_extern_prefix): Add %< %> quotes.
5785         (registered_pragmas): New.
5786         (c_register_pragma_1): New.
5787         (c_register_pragma): Use it.
5788         (c_register_pragma_with_expansion): Likewise.
5789         (c_invoke_pragma_handler): New.
5790         (init_pragma): Use cpp_register_deferred_pragma directly for
5791         pch_preprocess.
5792         * c-pragma.h (enum pragma_kind): New.
5793         (pragma_handler): New.
5794         (c_invoke_pragma_handler): Declare.
5795         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
5796         CPP_PRAGMA_EOL.
5797         * c-common.h (c_common_pch_pragma): Update decl.
5798         * Makefile.in (c-parser.o): Update dependencies.
5799         (GTFILES): Add c-pragma.h.
5800         * c-parser.c (struct c_token): Add pragma_kind.
5801         (struct c_parser): Add in_pragma.
5802         (c_lex_one_token): Always initialize keyword and pragma_kind.
5803         Extract data for CPP_PRAGMA.
5804         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
5805         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
5806         Don't allow CPP_PRAGMA_EOL if in_pragma.
5807         (c_parser_consume_pragma): New.
5808         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
5809         (c_parser_skip_to_end_of_parameter): Likewise.
5810         (c_parser_skip_to_end_of_block_or_statement): Likewise.
5811         (c_parser_skip_to_pragma_eol): New.
5812         (c_parser_external_declaration): Handle CPP_PRAGMA.
5813         (c_parser_compound_statement_nostart): Likewise.
5814         (c_parser_statement_after_labels): Likewise.
5815         (c_parser_pragma): New.
5816         (pragma_lex): Likewise.
5817         (c_parser_pragma_pch_preprocess): New.
5818         (c_parser_new): Merge into ...
5819         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
5820
5821 2006-01-04  Jeff Law  <law@redhat.com>
5822
5823         PR ada/24994
5824         * tree-cfg.c (bsi_replace): Remove the original statement
5825         from the EH throw statement table.
5826
5827 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
5828
5829         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
5830         make the prototype extern "C" and add throw ().
5831
5832         PR target/25554
5833         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
5834         and pos non-negative and pos + len <= 32.
5835         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
5836         drop pos + len < HOST_BITS_PER_WIDE_INT test.
5837         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
5838
5839         PR c/25559
5840         * c-common.c (handle_vector_size_attribute): Reject zero vector size
5841         as well as sizes not multiple of component size.
5842
5843         PR debug/25562
5844         * function.c (instantiate_expr): New function.
5845         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
5846         walk its DECL_VALUE_EXPR with instantiate_expr.
5847
5848         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
5849         DW_OP_deref{,_size} if address isn't going to be added.
5850
5851 2006-01-04  Ben Elliston  <bje@au.ibm.com>
5852
5853         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
5854         * config/fp-bit.c: Likewise.
5855
5856 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
5857
5858         * dominance.c: Add comment about why we use DFS numbering
5859         of dominance tree.
5860
5861 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
5862             Richard Henderson  <rth@redhat.com>
5863
5864         Merge from gomp-branch:
5865         * varasm.c (assemble_variable): Handle thread-local COMMON data.
5866         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
5867
5868 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
5869
5870         PR rtl-optimization/25578
5871         * combine.c (combine_simplify_rtx, force_to_mode): Don't
5872         pass a parameter to simplify_shift_const if changing ASHIFTRT
5873         to LSHIFTRT.
5874
5875 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
5876
5877         * builtins.c (get_builtin_sync_mem): New function.
5878         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
5879         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
5880         Call get_builtin_sync_mem to generate mem rtx.
5881
5882 2006-01-03  Richard Guenther  <rguenther@suse.de>
5883
5884         PR c/25183
5885         * stmt.c (add_case_node): Make sure to clear overflow flags
5886         from ranges.
5887
5888 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
5889
5890         Merge from gomp-branch.
5891         * config/sparc/sync.md: New file.
5892         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
5893         UNSPECV_LDSTUB): New constants.
5894         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
5895         * config/sparc/predicates.md (memory_reg_operand): New predicate.
5896         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
5897         prototype.
5898
5899 2006-01-03  Roger Sayle  <roger@eyesopen.com>
5900
5901         * combine.c (reg_subword_p): New predicate to test whether the
5902         destination of a set refers to a subword/piece of a register.
5903         (try_combine): Generalize the code to merge the setting of a
5904         pseudo to a constant followed by a set of a subword of that
5905         register to a constant.
5906
5907 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
5908
5909         * basic-block.h (control_flow_graph): Change the type of
5910         x_label_to_block_map to VEC(basic_block,gc) *.
5911         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
5912         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
5913
5914         * tree-ssa-propagate.c (cfg_blocks): Change the type to
5915         VEC(basic_block,heap) *.
5916         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
5917         ssa_prop_fini): Adjust the uses of cfg_blocks.
5918
5919 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
5920
5921         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
5922         COMPONENT_REFs.
5923         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
5924         hashing trees instead of a pointer hash.
5925         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
5926         compare for MEM_EXPR.
5927
5928         PR rtl-optimization/25130
5929         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
5930         when comparing MEMs for GCSE
5931
5932 2006-01-03  Ben Elliston  <bje@au.ibm.com>
5933
5934         * targhooks.h (default_decimal_float_supported_p): Declare.
5935         * targhooks.c (default_decimal_float_supported_p): Define.
5936         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
5937         `default_decimal_float_supported_p'.
5938         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
5939
5940 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
5941
5942         * combine.c (apply_distributive_law <SUBREG>): Check
5943         TRULY_NOOP_TRUNCATION.
5944
5945 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
5946
5947         * dwarf2out.c (have_switched_text_section): Delete.
5948         (have_multiple_function_sections): New.
5949         (have_location_lists): Make 'bool'.
5950         (add_AT_loc_list): Use 'true' not '1'.
5951         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
5952         (output_loc_list): Use have_multiple_function_sections.
5953         (output_ranges): Likewise.
5954         (dwarf2out_begin_function): Set have_multiple_function_sections if
5955         necessary.
5956         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
5957         Check function_section rather than DECL_SECTION_NAME.
5958         (dwarf2out_finish): Use have_multiple_function_sections.
5959         Don't clear have_location_lists.
5960
5961 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
5962             Jan Hubicka  <jh@suse.cz>
5963
5964         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
5965         case of conditional jump jumping to the next instruction.
5966         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
5967         cases of conditional jump jumping to the next instruction.
5968
5969 2006-01-02  Jan Hubicka  <jh@suse.cz>
5970
5971         * i386.c (*_cost): Add COSTS_N_INSNS.
5972         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
5973
5974 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
5975
5976         PR target/25259
5977         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
5978
5979 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5980
5981         * config/arm/arm.c (all_fpus): Fix comment typo.
5982         * config/darwin.c: Likewise.
5983         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
5984         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
5985         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
5986
5987 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
5988
5989         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
5990         (rs6000_split_compare_and_swapqhi): New.
5991         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
5992         (sync_compare_and_swapqhi_internal): New.
5993         * config/rs6000/rs6000-protos.h: Declare.