OSDN Git Service

* c-tree.h (default_conversion): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-05-19  Mike Stump  <mrs@apple.com>
2
3         * c-tree.h (default_conversion): Remove.
4         * c-common.h (default_conversion): Add.
5
6 2006-05-19  Zdenek Dvorak <dvorakz@suse.cz>
7
8         * tree-vrp.c (valid_value_p): New function.
9         (adjust_range_with_scev): Fail if the value of bound is not
10         simple.
11
12 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
13
14         * config/mips/linux-unwind.h: Include <asm/unistd.h>
15         (mips_fallback_frame_state): Use syscall numbers to determine
16         the appropriate li instruction for the current ABI.  Only use
17         __NR_sigreturn for o32.
18
19 2006-05-19  Nicolas Setton  <setton@adacore.com>
20
21         * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
22         * langhooks.c (lhd_dwarf_name): New function.
23         * langhooks-def.h (lhd_dwarf_name): Declare.
24         (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
25         * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
26         * ada/misc.c (gnat_dwarf_name): New function.
27         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
28         
29 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
30
31         * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
32         libgcc2.h.
33         (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
34         MIN_UNITS_PER_WORD logic from libgcc2.h.  Do nothing if
35         LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
36         * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
37         Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
38         determine the size of Wtype, etc.
39         * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
40         (swfloatfuncs): New variable.
41         (dwfloatfuncs): Likewise.
42         (lib2funcs): Remove floating-point conversion functions from
43         initial assignment.  Use LIB2_SIDITI_CONV_FUNCS to determine
44         the set of conversion routines needed.  Allow entries to specify
45         an object name, filename and word size.  Update users accordingly.
46         * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
47         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
48
49         Revert:
50
51         2006-02-08  Roger Sayle  <roger@eyesopen.com>
52
53         PR target/22209
54         * config/fixtfdi.c: New libgcc source file.
55         * config/fixunstfdi.c: New source file.
56         * config/floatditf.c: New source file.
57         * config/floatunditf.c: New souce file.
58         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
59         files above instead of config/mips/_tilib.c.
60         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
61
62 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
63
64         * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
65         * pa/pa-hpux11.h (LIB_SPEC): Update comment.
66
67 2006-05-18  Mike Stump  <mrs@apple.com>
68
69         Fix up vla, vm and [*] sematics.
70
71         PR c/18740
72         PR c/7948
73         PR c/25802
74         PR c/27673
75         * c-tree.h (struct c_arg_info): Add had_vla_unspec.
76         (c_vla_unspec_p): Add.
77         (c_vla_type_p): Add.
78         * c-decl.c (struct c_scope): Add had_vla_unspec.
79         (build_array_declarator): Add support for [*].
80         (grokdeclarator): Likewise.
81         (grokparms): Likewise.
82         (get_parm_info): Likewise.
83         * c-objc-common.c (c_vla_unspec_p): Likewise.
84         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
85         * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
86         typeof when argument is a variably modified type not inside sizeof or alignof.
87         (c_parser_direct_declarator_inner): Propagate errors.
88         (c_parser_sizeof_expression): Add support for [*].
89         (c_parser_parms_declarator): Initialize had_vla_unspec.
90         (c_parser_parms_list_declarator): Likewise.
91         * c-typeck.c (c_vla_type_p): Add.
92         (composite_type): Add support for vla compositing.
93         (comptypes_internal): Add support for vla compatibility.
94         (c_expr_sizeof_expr): Evaluate vla arguments.
95         * tree.c (variably_modified_type_p): Update comment for [*].
96
97 2006-05-18  Michael Matz  <matz@suse.de>
98
99         PR target/27599
100         * config.host: Make assignments to host_xmake_file cumulative.
101         * config.host (*-darwin*): Test $host, not $target.
102
103 2006-05-12  Stuart Hastings  <stuart@apple.com>
104
105         * config/i386/i386.opt (-mstackrealign): New flag.
106         * config/i386/i386.c (force_align_arg_pointer): New attribute.
107         (ix86_handle_cconv_attribute): Emit error when
108         force_align_arg_pointer attribute collides with too many regparms.
109         (ix86_function_regparm): Limit regparms when used with
110         force_align_arg_pointer attribute.  (ix86_internal_arg_pointer):
111         Support stack-realigning prologue in non-main functions.  Emit
112         warning for nested functions under -mstackrealign, emit error for
113         nested functions with force_align_arg_pointer attribute.
114         * doc/extend.texi (force_align_arg_pointer): Document it.
115         * doc/invoke.texi (-mstackrealign): Document it.
116
117 2006-05-17  Kazu Hirata  <kazu@codesourcery.com>
118
119         PR rtl-optimization/27477
120         * combine.c (try_combine): Don't split a parallel consisting
121         of two sets into two individual sets if both sets reference
122         cc0.
123
124 2006-05-17  H.J. Lu  <hongjiu.lu@intel.com>
125
126         * config/arm/arm.opt (target_fpe_name): Remove VarExists.
127         * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
128
129         * doc/options.texi (VarExists): Updated.
130
131 2006-05-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
132
133         * unwind-dw2.c: Add declarations for uw_update_context and
134         uw_frame_state_for.
135         * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
136         detected, advance frame state and context once to skip over stub.
137
138 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
139
140         PR middle-end/20256
141         PR middle-end/26435
142         * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
143         Call rewrite_into_loop_closed_ssa only when something changed.
144         * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
145         * lambda-code.c (can_convert_to_perfect_nest): Declared.
146         (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
147         Test for perfect_nest_p here.  Fix formating.
148         (replace_uses_equiv_to_x_with_y): Fix formating.
149         (stmt_uses_op): Removed.
150         (can_convert_to_perfect_nest): Removed loopivs parameter.
151         Complete the test by checking the scalar dependences.
152         (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
153         Fix formating.
154
155 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
156
157         PR bootstrap/22541
158         From Dan Kegel <dank@kegel.com>:
159         * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
160
161 2006-05-17  Eric Botcazou  <ebotcazou@adacore.com>
162
163         * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
164         if the element type is variably modified without recursing.
165
166 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
167
168         PR middle-end/27332
169         * tree-loop-linear.c (try_interchange_loops): Test for
170         no data dependences.
171
172 2006-05-17  Zdenek Dvorak <dvorakz@suse.cz>
173
174         PR tree-optimization/27548
175         * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
176         range of ssa names that appear on abnormal edges.
177         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
178         * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
179
180 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
181
182         PR middle-end/27620
183         * expr.c (safe_from_p): Handle CONSTRUCTOR again.
184
185 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
186
187         PR middle-end/27415
188         * tree.h (OMP_PARALLEL_COMBINED): Define.
189         * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
190         (new_omp_context): Add is_combined_parallel argument.
191         (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
192         new_omp_context caller.
193         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
194         Adjust gimplify_scan_omp_clauses callers.
195         (omp_is_private): Issue errors if iteration variable is firstprivate
196         or reduction in the current context.
197         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
198         on combined parallel workshare constructs.
199
200 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
201
202         * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
203         (gcc-options.o): New rule.
204
205         * optc-gen.awk: Protect variables for gcc-options.o with
206         #ifdef GCC_DRIVER/#endif.
207
208 2006-05-16  Daniel Berlin <dberlin@dberlin.org>
209
210         Fix PR tree-optimization/27373
211         * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
212          (forward_propagate_addr_expr): Update call.
213
214 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
215
216         * doc/options.texi: Move the Negative option.
217
218 2006-05-16  Richard Guenther  <rguenther@suse.de>
219
220         PR tree-optimization/22303
221         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
222         from STRING_CSTs.
223         (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
224         ccp_fold did not simplify the statement.
225
226 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
227
228         PR driver/26885
229         * Makefile.in (GCC_OBJS): New.
230         (OBJS-common): Add opts-common.o.
231         (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
232         (cpp$(exeext)): Likewise.
233         (gcc.o): Also depend on opts.h.
234         (opts-common.o): New.
235
236         * common.opt (gcoff): Add Negative(gdwarf-2).
237         (gdwarf-2): Add Negative(gstabs).
238         (gstabs): Add Negative(gstabs+).
239         (gstabs+): Add Negative(gvms).
240         (gvms): Add Negative(gxcoff).
241         (gxcoff): Add Negative(gxcoff+).
242         (gxcoff+): Add Negative(gcoff).
243         * config/i386/i386.opt (m32): Add Negative(m64).
244         (m64): Add Negative(m32).
245
246         * doc/options.texi: Document the Negative option.
247
248         * gcc.c: Include "opts.h".
249         (main): Call prune_options after expandargv.
250
251         * optc-gen.awk: Generate common declarations for all flag
252         variables in options.c. Output the neg_index field.
253
254         * opts.c (find_opt): Moved to ...
255         * opts-common.c: Here. New file.
256
257         * opts.h (cl_option): Add a neg_index field.
258         (find_opt): New.
259         (prune_options): Likewise.
260
261 2006-05-16  Jakub Jelinek  <jakub@redhat.com>
262
263         PR middle-end/27573
264         * omp-low.c (expand_omp_parallel): Don't assert
265         .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
266         instead search for it.
267
268         PR c/27499
269         * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
270         is signed.
271
272 2006-05-16  Andreas Schwab  <schwab@suse.de>
273
274         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
275         defmac.
276
277 2006-05-15  Roger Sayle  <roger@eyesopen.com>
278
279         PR target/26600
280         * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
281         integer constants other than zero are only legitimate on TARGET_64BIT.
282         <CONST_VECTOR> Only zero vectors are legitimate.
283         (ix86_cannot_force_const_mem): Integral and vector constants can
284         always be put in the constant pool.
285
286 2006-05-16  DJ Delorie  <dj@redhat.com>
287
288         * crtstuff.c (__dso_handle): Set section from
289         TARGET_LBIGCC_SDATA_SECTION if defined.
290         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
291         * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
292
293 2006-05-16  Danny Smith  <dannysmith@users.sourceforge.net>
294
295         PR target/27599
296         * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
297         host_xmake_file.
298
299 2006-05-16  Ben Elliston  <bje@au.ibm.com>
300
301         * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
302
303 2006-05-15  Per Bothner  <per@bothner.com>
304
305         * tree.c: (last_annotated_node): Use sources_locus typedef.
306         This permits bootstrapping with --enable-mapped-location.
307
308 2006-05-15  Zdenek Dvorak <dvorakz@suse.cz>
309
310         PR tree-optimization/26830
311         * tree-into-ssa.c (struct ssa_name_info): Add age field.
312         (info_for_ssa_name, current_info_for_ssa_name_age,
313         blocks_to_update): New variables.
314         (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
315         (clear_ssa_name_info, initialize_flags_in_bb,
316         mark_block_for_update): New functions.
317         (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
318         (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
319         prepare_def_site_for): Use mark_block_for_update.
320         (mark_def_interesting): Assert that the processed block is marked in
321         blocks_to_update.  Do not take blocks argument.
322         (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
323         argument.
324         (rewrite_update_init_block, rewrite_update_stmt): Only process
325         blocks with statements to rewrite.
326         (delete_update_ssa): Do not clear SSA_NAME_AUX.
327         (update_ssa): Initialize and free blocks_to_update.  Do not
328         clear flags on statements.  Do not use blocks bitmap.
329         * tree.h (SSA_NAME_AUX): Removed.
330         (struct tree_ssa_name): Removed aux field.
331         * print-tree.c (print_node): Do not print SSA_NAME_AUX.
332
333 2006-05-15  Richard Guenther  <rguenther@suse.de>
334
335         PR tree-optimization/27603
336         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
337         Do computations in original type.
338
339 2006-05-15  Mircea Namolaru  <namolaru@il.ibm.com>
340
341         * see.c: Code style changes such as redundant paranthesis,
342         redundant intialization of local variables etc.
343         (see_main): Declared now as static.
344         * doc/invoke.texi: Update that -fsee is not enabled by
345         default at -O3.
346
347 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
348
349         * omp-low.c (check_omp_nesting_restrictions): New function.
350         (scan_omp_1): Call it.
351
352         PR middle-end/27416
353         * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
354         construct, return *VAR.
355
356 2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
357
358         PR rtl-optimization/27406
359         * bt-load.c (migrate_btr_def): Skip the block having abnormal
360         edges.
361
362 2006-05-14  Roger Sayle  <roger@eyesopen.com>
363
364         PR rtl-optimization/27538
365         * combine.c (expand_compound_operation): Call gen_lowpart
366         before calling simplify_shift_const.
367
368 2006-05-14  Roger Sayle  <roger@eyesopen.com>
369
370         PR rtl-optimization/22563
371         * expmed.c (store_fixed_bit_field): When using AND and IOR to store
372         a fixed width bitfield, always force the intermediates into psuedos.
373
374 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
375
376         PR 27501
377         * mkconfig.sh: Use operator = instead of == for test.
378
379 2006-05-13  Nick Clifton  <nickc@redhat.com>
380
381         * dwarf2out.c (dbx_reg_number): Check return value from
382         LEAF_REG_REMAP and only use it if it is valid.
383         (multiple_reg_loc_descriptor): Likewise.
384
385 2006-05-13  Richard Guenther  <rguenther@suse.de>
386
387         * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
388         host_xmake_file.
389
390 2006-05-13  Steven Bosscher  <stevenb.gcc@gmail.com>
391
392         * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
393         information attached to non-INSNs such as NOTEs.
394         (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
395
396 2006-05-12  Andreas Krebbel  <krebbel1@de.ibm.com>
397
398         * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
399         On contraint.
400         * config/s390/s390.md: Adjust comment describing On constraint.
401
402 2006-05-11  Jan Hubicka  <jh@suse.cz>
403
404         * cgraphunit.c (decide_is_function_needed): Don't force always_inline
405         to be output at -O0.
406
407 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
408
409         PR middle-end/27384
410         * fold-const.c (size_binop): Move sanity check for arguments to
411         the beginning of the function.
412
413         PR middle-end/27488
414         * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
415         expression.
416
417 2006-05-11  Richard Guenther  <rguenther@suse.de>
418
419         PR middle-end/27529
420         * fold-const.c (fold_unary): Handle intermediate conversion
421         to a pointer type like intermediate conversion to an integer
422         type in folding of (T1)(T2)var to var.
423         Match the code to the comment in the final conversion for
424         (T1)(T2)var to (T1)var regarding to type precision.  Rather
425         than disallow T1 being of pointer type, assert that both T1
426         and var are of pointer type or not.  Make sure not to fall
427         over the frontends lazyness wrt array to pointer decay though.
428
429 2006-05-10  Richard Earnshaw  <rearnsha@arm.com>
430
431         * arm.c (arm_struct_value_rtx): Delete.
432         (TARGET_STRUCT_VALUE_RTX): Use the default definition.
433         (arm_init_cumulative_args): Always initialize nregs to zero.
434
435 2006-05-10  Richard Guenther  <rguenther@suse.de>
436
437         PR tree-optimization/27532
438         * tree-object-size.c (plus_expr_object_size): Fix typo.
439
440 2006-05-10  Kazu Hirata  <kazu@codesourcery.com>
441
442         PR target/24949
443         * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
444         ashrdi_const, ashrdi3): Use a scratch register.
445
446 2006-05-10  Richard Guenther  <rguenther@suse.de>
447
448         PR tree-optimization/27302
449         * fold-const.c (operand_equal_p): For two comparisons,
450         try comparison of one comparison code swapped if that yields
451         the same code.
452
453 2006-05-10  Ben Elliston  <bje@au.ibm.com>
454
455         * tree-pretty-print.c (pretty_print_string): No need to handle
456         '\0' as a special character.
457
458         * tree.h: Include "hashtab.h".
459         (iterative_hash_expr): Use hashval_t in its prototype.
460         * Makefile.in (TREE_H): Add $(HASHTAB_H).
461
462 2006-05-09  Steve Ellcey  <sje@cup.hp.com>
463
464         PR bootstrap/26872
465         * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
466         (hppa*64*-*-hpux11*): Ditto.
467         (hppa[12]*-*-hpux11*): Ditto.
468
469 2006-05-09  David Edelsohn  <edelsohn@gnu.org>
470
471         PR target/26545
472         * config/rs6000/aix41.h (TARGET_64BIT): Define.
473
474 2006-05-09  Michael Matz  <matz@suse.de>
475
476         * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
477         host_extra_gcc_objs and host_xmake_file.
478         (<*-*-linux*>): Don't overwrite host_xmake_file.
479         * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
480         * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
481         (host_detect_local_cpu): Declare.
482         (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
483         * config/i386/i386.c (override_options): Handle -mtune=native
484         as -mtune=generic.
485         * config/i386/x-i386: New file.
486         * config/i386/driver-i386.c: New file.
487         * doc/invoke.texi (<i386 and x86-64 Options>): Describe
488         cpu-type "native".
489
490 2006-05-09  Dirk Mueller  <dmueller@suse.de>
491         Richard Guenther  <rguenther@suse.de>
492
493         PR middle-end/27498
494         * fold-const.c (fold_read_from_constant_string): Relax check
495         for matching types to matching modes.
496
497 2006-05-09  Zdenek Dvorak <dvorakz@suse.cz>
498
499         PR rtl-optimization/27335
500         * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
501         loops.
502
503 2006-05-08  Chao-ying Fu  <fu@mips.com>
504             Richard Sandiford  <richard@codesourcery.com>
505
506         * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
507         (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
508         * config/mips/mips.md (UNSPEC_SCC): New constant.
509         * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
510         * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
511         (mips_emit_compare): Use it.
512         (mips_expand_vcondv2sf): New function.
513
514 2006-05-08  Daniel Berlin  <dberlin@dberlin.org>
515
516         Fix PR tree-optimization/27093
517         * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
518         renaming when they become not-used_alone.
519
520 2006-05-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
521
522         * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
523         relocation and relocation stubs.
524
525 2006-05-08  Eric Christopher  <echristo@apple.com>
526
527         * unwind-dw2-fde-darwin.c (examine_objects): Only check data
528         section for ppc.
529
530 2006-05-08  Jan Hubicka  <jh@suse.cz>
531
532         PR middle-end/25962
533         * cgraphunit.c (decide_is_function_needed): When not optimizing even
534         unused static functions are needed.
535
536 2006-05-08  Roger Sayle  <roger@eyesopen.com>
537
538         PR target/27158
539         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
540         of a reg_equiv_constant if the result is a legitimate constant.
541
542 2006-05-08  Uros Bizjak  <uros@kss-loka.si>
543
544         PR target/27277
545         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
546         standard 80387 constants, raise the cost to prevent
547         compress_float_constant() to generate load from memory.
548
549 2006-05-08  Kazu Hirata  <kazu@codesourcery.com>
550
551         * config/arm/constraints.md (c): Fix a typo.
552
553         * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
554         typos.
555
556 2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>
557
558         PR target/24879
559         * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
560         inline function.
561         (_mm_mwait): Likewise.
562
563         * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
564         "mwait".
565         (sse3_monitor): Make it 32bit only.
566         (sse3_monitor64): New. 64bit monitor.
567
568 2006-05-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
569
570         PR target/27421
571         * config/i386/i386.c (classify_argument): Skip fields with invalid
572         types.
573
574 2006-05-07  Richard Guenther  <rguenther@suse.de>
575
576         PR tree-optimization/27409
577         * tree-ssa-structalias.c (get_constraint_for_component_ref):
578         Do not try to find zero-sized subvars.
579
580 2006-05-07  Richard Guenther  <rguenther@suse.de>
581
582         PR tree-optimization/27136
583         * tree-ssa-loop-niter.c (get_val_for): Correct function
584         comment, assert requirements.
585         (loop_niter_by_eval): Stop processing if the iterated
586         value did not simplify.
587
588 2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>
589
590         * opts.c (flag_see): remove its setting at -O3.
591
592 2006-05-07  Richard Earnshaw  <rearnsha@arm.com>
593
594         * genpeep.c (main): Make insn-peep.c depend on flags.h.
595         * arm/constraints.md: New file.
596         * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
597         (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
598         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
599         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
600         (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
601         (EXTRA_MEMORY_CONSTRAINT): Likewise.
602         * arm.md: Include constraints.md.
603         (thumb_movsi_insn): Use satisfies_constraint_J.
604         (movhi, movqi): Use satisfies_constraint_I.
605
606 2006-04-29 Anatoly Sokolov <aesok@post.ru>
607
608         * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
609         for atmeg a645 device.
610
611 2006-05-06   Richard Guenther  <rguenther@suse.de>
612
613         PR tree-optimization/27151
614         * tree-vect-transform.c (vectorizable_condition): Punt on
615         values that have a different type than the condition.
616
617 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
618
619         PR/21391
620         * c-parser.c (c_parser_cast_expression): Only insert casts into
621         hash table if pointer.
622         * function.c (used_types_insert_helper): Rename from
623         used_types_insert.
624         (used_types_insert): Call used_types_insert_helper.
625         * function.h (used_types_insert): Accept only one argument.
626
627 2006-05-05  David Edelsohn  <edesohn@gnu.org>
628
629         * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
630         scratch with output modifier.
631
632 2006-05-04  David Edelsohn  <edelsohn@gnu.org>
633
634         PR target/26481
635         * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
636         with output modifier.
637
638 2006-05-04  Richard Sandiford  <richard@codesourcery.com>
639
640         PR target/26765
641         * config/mips/mips.c (mips_symbolic_address_p): Return true
642         for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
643         SYMBOL_GOTTPREL, and SYMBOL_TLS.
644
645 2006-05-04  Richard Guenther  <rguenther@suse.de>
646
647         PR tree-optimization/14287
648         PR tree-optimization/14844
649         PR tree-optimization/19792
650         PR tree-optimization/21608
651         PR tree-optimization/27090
652         * tree-ssa-pre.c (try_combine_conversion): New function.
653         (compute_avail): After constructing the value-handle
654         expression, use try_combine_conversion to combine NOP_EXPRs
655         with previous value-handle expressions and use the result if it
656         is available.
657
658 2006-05-04  Joseph S. Myers  <joseph@codesourcery.com>
659
660         * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
661
662 2006-05-04  Jan Hubicka  <jh@suse.cz>
663
664         PR middle-end/25962
665         * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
666
667 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
668
669         * config/bfin/predicates.md (const01_rtx): Tell generator programs
670         that this only matches CONST_INTs.  All users changed to VOIDmode
671         operands.
672
673         * config/bfin/bfin.c: Include "optabs.h".
674         (bfin_rtx_costs): Some costs for vector operations, to allow combine
675         to do more work.
676         (enum bfin_builtins): Add a number of fractional and vector builtins.
677         (bfin_init_builtins): Likewise.
678         (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
679         (safe_vector_operand, bfin_expand_binop_builtin,
680         bfin_expand_unop_builtin): New functions.
681         (bfin_expand_builtin): Handle the new builtins.
682         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
683         __ADSPBLACKFIN__.
684
685 2006-05-04  Leehod Baruch  <leehod@il.ibm.com>
686
687         * see.c: New file.
688         * Makefile.in (OBJS-common): Add see.o.
689         (see.o): Add dependencies.
690         * common.opt (fsee): New flag for the see optimization was added.
691         * opts.c (flag_see): Initialized.
692         * passes.c (init_optimization_passes, pass_see): New pass.
693         * rtl.h (see_main): Declaration as extern.
694         * timevar.def (TV_SEE): New.
695         * tree-pass.h (pass_see): Declaration as extern.
696         * invoke.texi (-fsee): Document.
697         * recog.c (validate_simplify_insn): New function.
698         * recog.h (validate_simplify_insn): Declaration as extern.
699         * df-problems.c (df_chain_dump): Check for NULL.
700
701 2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
702             Daniel Berlin  <dberlin@dberlin.org>
703
704         * cfgrtl.c (insert_insn_bb_end_new): New function.
705         * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
706
707 2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>
708
709         * df.h (struct web_entry): Moved from web.c.
710         (union_defs): Declaration as extern.
711         (unionfind_root): Likewise.
712         (unionfind_union): Likewise.
713         * web.c (struct web_entry): Moved to df.h.
714         (unionfind_root): Remove static declaration.
715         (unionfind_union): Likewise.
716         (union_defs): Likewise and generalize to use callback function.
717         (web_main): Update arguments for union_defs function call.
718
719 2006-05-04  Richard Guenther  <rguenther@suse.de>
720
721         PR tree-optimization/26447
722         * tree-ssa-pre.c (realify_fake_stores): For necessary loads
723         produce SSA_NAME copies before the store stmt to avoid
724         breaking exception handling.
725
726 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
727
728         PR middle-end/27388
729         * gimplify.c (omp_is_private): If var is shared in some outer context,
730         return false instead of true.  Stop searching on parallel context
731         boundary.
732
733 2006-05-03  Alexandre Oliva  <aoliva@redhat.com>
734
735         PR java/8260
736         * coverage.c: Use get_gcov_unsigned_t() instead of
737         unsigned_type_node all over.
738
739 2006-05-02  Andrew MacLeod  <amacleod@redhat.com>
740
741         PR tree-optimization/27381
742         * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
743         maintain the same immediate_use links.
744         * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
745         node rather than segfaulting.
746
747 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
748
749         PR fortran/27395
750         * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
751         rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
752         bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
753
754 2006-05-02  Daniel Berlin  <dberlin@dberlin.org>
755
756         Fix PR tree-optimization/26626
757         * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
758         always.
759         * tree-ssa-operands.c (access_can_touch_variable): Allow
760         typecasting through union pointers.
761
762 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
763
764         PR c++/26943
765         * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
766         (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
767         to find if var will be a global variable even in the nested context.
768         (omp_copy_decl): Only check for global variable at the end, it might
769         be overridden in outer contexts.
770         (scan_sharing_clauses): For global variables don't create a field.
771         (lower_rec_input_clauses): Do nothing for global shared variables.
772         Emit a barrier at the end of ILIST if there were any decls in both
773         firstprivate and lastprivate clauses.
774         (lower_send_clauses): Do nothing for global variables except for
775         COPYIN.
776
777 2006-05-02  Zdenek Dvorak <dvorakz@suse.cz>
778
779         * tree.c (unsigned_type_for, signed_type_for): Make sure a type
780         of the correct signedness is returned.
781
782 2006-05-02  Jeff Law  <law@redhat.com>
783
784         PR tree-optimization/27364
785         * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
786         multiply expressions.
787
788 2006-05-02  Tom Tromey  <tromey@redhat.com>
789
790         * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
791
792 2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
793
794         PR target/27387
795         * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
796         -mthumb -fPIC are used.
797
798 2006-05-02  Stanislaw Skowronek  <skylark@linux-mips.org>
799             Joshua Kinard  <kumba@gentoo.org>
800
801         PR target/25871
802         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
803         with 64-bit pointers.
804
805 2006-05-02  Paul Brook  <paul@codesourcery.com>
806
807         * config/arm/arm.c (add_minipool_forward_ref): Check if insn
808         and pool overlap.
809         (create_fix_barrier): Check that a suitable barrier location is
810         found.
811         (arm_reorg): Include ftmp->address in allowable range of addresses.
812
813 2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
814
815         PR ada/27366
816         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
817         on Cygwin.
818
819 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
820
821         PR middle-end/27337
822         * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
823         around RESULT_DECL for result passed by reference.
824         (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
825         * omp-low.c (use_pointer_for_field): Don't look at
826         DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
827         (scan_omp_1): Call remap_decl on RESULT_DECLs.
828         (lower_rec_input_clauses): Don't allocate VLA memory for the second
829         time or var for passing by reference for
830         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
831         TREE_ADDRESSABLE variables when passing by reference.
832
833         * omp-low.c (dump_omp_region): Fix output formatting.
834
835         PR middle-end/27328
836         * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
837         (expand_omp_parallel): Likewise.
838         * tree-cfg.c (move_sese_region_to_fn): Likewise.
839
840         PR middle-end/27325
841         * omp-low.c (lower_omp_sections): Call maybe_catch_exception
842         on statement list containing also constructors and destructors.
843         (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
844
845         PR middle-end/27310
846         * except.c (duplicate_eh_regions): Fix clearing of
847         cfun->eh->region_array entries.
848
849 2006-05-01  DJ Delorie  <dj@redhat.com>
850
851         * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
852         build!=host.
853         (gcc_cv_objdump): Likewise.
854         * configure: Regenerated.
855
856 2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
857
858         PR target/27374
859         * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
860         templates for case 3 and 4.
861
862 2006-05-01  DJ Delorie  <dj@redhat.com>
863
864         * vec.c: Include bconfig.h when appropriate.
865         * Makefile.in (build/vec.o): Adjust dependencies.
866         * mkconfig.sh: Make sure config.h isn't used for build machine
867         compiles.
868
869 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
870
871         * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
872         variables.
873         (mark_phi_for_rewrite): New function.
874         (insert_phi_nodes_for, mark_use_interesting): Call
875         mark_phi_for_rewrite.
876         (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
877         (update_ssa): Initialize and free phis_to_rewrite.
878
879 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
880
881         PR rtl-optimization/27291
882         * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
883         folded to a constant.
884
885 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
886
887         PR tree-optimization/27283
888         * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
889         not whole # of iteration descriptions.
890         (niter_for_exit): Return just # of iterations.  Fail if # of iterations
891         uses abnormal ssa name.
892         (niter_for_single_dom_exit): Ditto.
893         (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
894         return just the number of iterations.
895
896 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
897
898         PR tree-optimization/27144
899         * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
900         (record_estimate): Only record constant upper bound.
901         (infer_loop_bounds_from_undefined): Call
902         compute_estimated_nb_iterations just once.
903         (proved_non_wrapping_p): Renamed to ...
904         (n_of_executions_at_most): ... this.  Expect bound to be a constant.
905         (convert_step_widening, scev_probably_wraps_p): Call
906         n_of_executions_at_most instead of proved_non_wrapping_p.
907         (substitute_in_loop_info): Do not replace values in bounds.
908         * cfgloop.h (struct nb_iter_bound): Remove "additional" field.  Update
909         comments.
910
911 2006-05-01  Richard Henderson  <rth@redhat.com>
912
913         PR c/27358
914         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
915         c_parser_skip_to_pragma_eol.  Convert to switch statement.  Handle
916         CPP_PRAGMA.
917
918 2006-05-01  Roger Sayle  <roger@eyesopen.com>
919
920         * c-typeck.c (parser_build_binary_op): Don't call the function
921         unsigned_conversion_warning to spot operand/result type overflow.
922         (build_binary_op): Instead, call convert_and_check instead of
923         convert to report the problem when the operands are promoted.
924         * c-common.c (unsigned_conversion_warning): Make static.
925         * c-common.h (unsigned_conversion_warning): Delete prototype.
926
927 2006-05-01  Richard Guenther  <rguenther@suse.de>
928
929         PR tree-optimization/26726
930         * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
931         problem ...
932         (find_interesting_uses_address): ... we work around here
933         by folding INDIRECT_REFs in the substituted base.
934
935 2006-05-01  Diego Novillo  <dnovillo@redhat.com>
936
937         * omp-low.c (dump_omp_region): Add newlines.
938
939 2006-04-30  Roger Sayle  <roger@eyesopen.com>
940
941         * common.opt (Woverflow): New command line option.
942         * c-common.c (constant_expression_warning): Check warn_overflow.
943         (overflow_waring): Pass OPT_Woverflow to warning.
944         (unsigned_conversion_warning): Likewise.
945         (convert_and_check): Likewise.
946         * doc/invoke.texi: Document new command line option.
947
948 2006-04-30  David Edelsohn  <edelsohn@gnu.org>
949
950         * config/rs6000/rs6000.c (rs6000_override_options): Enable
951         TARGET_NO_FP_IN_TOC for section anchors.
952         (optimization_options): Enable section anchors for all
953         non-"Objective" languages.
954
955 2006-04-28  Eric Christopher  <echristo@apple.com>
956
957         * config/darwin-c.c (darwin_ms_struct): Move this
958         (darwin_set_default_type_attributes): and this...
959         * config/darwin.c: ... here.
960         * config/darwin.h (darwin_ms_struct): Declare.
961
962 2006-04-28  Andrew MacLeod  <amacleod@redhat.com>
963
964         * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
965
966 2006-04-28  Roger Sayle  <roger@eyesopen.com>
967
968         PR c/25309
969         * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
970         (push_array_bounds): Delete prototype.  Change BOUNDS argument to
971         an unsigned HOST_WIDE_INT.
972         (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
973         array index.
974         (really_start_incremental_init): No need to call convert because
975         bitsize_zero_node is already of type bitsizetype.
976         (push_init_level): Extract the value of constructor_index as an
977         unsigned HOST_WIDE_INT quantity, using tree_low_cst.
978         (process_init_element): Likewise.
979
980 2006-04-28  Joseph S. Myers  <joseph@codesourcery.com>
981
982         * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
983         value before passing to make_relative_prefix.
984
985 2006-04-28  Alan Modra  <amodra@bigpond.net.au>
986
987         PR middle-end/27260
988         * builtins.c (expand_builtin_memset): Expand val in original mode.
989
990 2006-04-27  Eric Christopher  <echristo@apple.com>
991
992         * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
993         with #ifndef/#endif.
994         * config/darwin-c.c (darwin_ms_struct): New.
995         (darwin_pragma_ms_struct): Ditto.
996         (darwin_set_default_type_attributes): Ditto.
997         * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
998         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
999         Register ms_struct pragma.
1000         * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
1001         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
1002         * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
1003         darwin_set_default_type_attributes if TARGET_MACHO.
1004
1005 2006-04-27  Andrew MacLeod  <amacleod@redhat.com>
1006
1007         PR tree-optimization/26854
1008         * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
1009         * doc/tree-ssa.texi: Update immuse iterator documentation.
1010         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
1011         * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
1012         * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
1013         first_safe_imm_use, next_safe_imm_use): Remove.
1014         (end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
1015         (end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
1016         (move_use_after_head): New.  Helper function to sort immuses in a stmt.
1017         (link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
1018         (first_imm_use_stmt): New.  Get first stmt in an immuse list.
1019         (next_imm_use_stmt): New.  Get next stmt in an immuse list.
1020         (first_imm_use_on_stmt): New.  Get first immuse on a stmt.
1021         (end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
1022         (next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
1023         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
1024         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
1025         (perfect_nestify): Use new iterator.
1026         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
1027         iterator.
1028         * tree-flow.h (struct immediate_use_iterator_d): Add comments.
1029         (next_imm_name): New field in struct immediate_use_iterator_d.
1030         (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
1031         (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
1032         FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
1033         * tree-cfg.c (replace_uses_by): Use new iterator.
1034         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
1035         * tree-ssa-operands.c (correct_use_link): Remove.
1036         (finalize_ssa_use_ops): No longer call correct_use_link.
1037
1038 2006-04-27  Stuart Hastings  <stuart@apple.com>
1039
1040         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
1041         * config/t-darwin (crt3.o): Use it.
1042         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
1043         'pmode', use Pmode instead of SImode for SYMBOL_REF.
1044         * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
1045         call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
1046         call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
1047         support.
1048
1049 2006-04-27  Roger Sayle  <roger@eyesopen.com>
1050
1051         * expmed.c (store_fixed_bit_field): If we're not optimizing for
1052         size, force the intermediate into a new pseudo rather instead of
1053         performing both a bitwise AND and a bitwise IOR in memory.
1054
1055 2006-04-27  Richard Guenther  <rguenther@suse.de>
1056
1057         PR rtl-optimization/26685
1058         * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
1059         this one "max-flow-memory-locations".
1060
1061 2006-04-27  Richard Guenther  <rguenther@suse.de>
1062
1063         PR tree-optimization/25148
1064         * tree-vrp.c (compare_values): Remove code dealing with
1065         comparisons against type min/max value.  Honour overflow
1066         and negative constants in code dealing with comparisons
1067         of plus and minus expressions.
1068         (value_inside_range): Use fold_binary with LE_EXPR and
1069         GE_EXPR rather than compare_values.
1070
1071 2006-04-27  Dirk Mueller  <dmueller@suse.de>
1072
1073         * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
1074         prototype for SSE.
1075
1076 2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>
1077
1078         * basic-block.h (safe_insert_insn_on_edge): Removed.
1079         * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
1080
1081 2006-04-26  David Edelsohn  <edelsohn@gnu.org>
1082             Paolo Bonzini  <bonzini@gnu.org>
1083
1084         PR middle-end/27282
1085         * combine.c (simplify_and_const_int_1): Use gen_int_mode.
1086         (simplify_and_const_int): Same.
1087
1088 2006-04-26  Aldy Hernandez  <aldyh@redhat.com>
1089
1090         * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
1091
1092 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
1093
1094         PR c/26171
1095         * cgraph.c (cgraph_varpool_finalize_decl): Don't call
1096         cgraph_varpool_assemble_pending_decls if -fopenmp, unless
1097         cgraph_global_info_ready.
1098
1099         PR middle-end/26913
1100         * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
1101
1102         PR c/25996
1103         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
1104         either decl or init is error_mark_node.
1105
1106         PR middle-end/25989
1107         * tree-flow.h (struct omp_region): Add sched_kind.
1108         * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
1109         instead of extracting omp for data.
1110         (expand_omp_for): Save extracted sched_kind.
1111
1112 2006-04-25  Roger Sayle  <roger@eyesopen.com>
1113
1114         * expmed.c (store_bit_field): Also check whether the bitsize is
1115         valid for the machine's "insv" instruction before moving the
1116         target into a pseudo for use with the insv.
1117         * config/i386/predicates.md (const8_operand): New predicate.
1118         * config/i386/i386.md (extv, extzv, insv): Use the new
1119         const8_operand predicate where appropriate.
1120
1121 2006-04-25  DJ Delorie  <dj@redhat.com>
1122
1123         * doc/install.texi (Specific): Clarify that this is not a list of
1124         supported hosts or targets.
1125
1126 2006-04-25  Richard Sandiford  <richard@codesourcery.com>
1127
1128         PR rtl-optimization/26725
1129         * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
1130         block's BB_DIRTY flag.
1131
1132 2006-04-25  Geoffrey Keating  <geoffk@apple.com>
1133
1134         * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
1135         are no branches.
1136
1137         * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
1138         to print an integer.
1139
1140 2006-04-25  David Edelsohn  <edelsohn@gnu.org>
1141
1142         * varasm.c (align_variable): New function.
1143         (get_block_for_decl): Apply align_variable to DECL before
1144         calculating section information.
1145         (assemble_variable): Split out alignment computation.
1146
1147 2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>
1148
1149         * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
1150         machines.
1151
1152 2006-04-25  Bernd Schmidt  <bernd.schmidt@analog.com>
1153
1154         * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
1155         MODE_PARTIAL_INT mode.
1156         * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
1157         * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
1158         for CONST_INTs.
1159         (hard_regno_mode_ok): V2PDImode is ok for accumulators.
1160         * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
1161         V2PDImode.
1162         * config/bfin/predicates.md (const01_operand, vec_shift_operand):
1163         New predicates.
1164         * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
1165         New constants.
1166         (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
1167         MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
1168         MACFLAG_IH): Likewise.
1169         (movstricthi_1): Renamed from "*movstricthi".
1170         (load_accumulator, load_accumulator_pair, movsi_insv, insv,
1171         ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
1172         abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
1173         movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
1174         movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
1175         movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
1176         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
1177         sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
1178         addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
1179         mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
1180         ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
1181         flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
1182         flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
1183         flag_macv2hi_parts, flag_macv2hi_parts_acconly,
1184         flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
1185
1186         * doc/rtl.texi (ss_ashift): Improve wording.
1187
1188 2006-04-24  Geoffrey Keating  <geoffk@apple.com>
1189
1190         * dwarf2out.c (verify_marks_clear): New.
1191         (prune_unused_types): Call verify_marks_clear initially, not
1192         prune_unmark_dies.
1193
1194 2006-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1195
1196         * rtl.def (SS_ASHIFT, SS_NEG): New codes.
1197         * doc/rtl.texi: Document them.
1198         * simplify-rtx.c (simplify_unary_operation,
1199         simplify_binary_operation_1): Don't abort when we see them.
1200
1201 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
1202
1203         Revert:
1204         2006-04-23  Mark Mitchell  <mark@codesourcery.com>
1205         * configure.ac: Completely disregard languages that are not
1206         enabled.
1207         * configure: Regenerated.
1208
1209 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
1210         Richard Guenther  <rguenther@suse.de>
1211
1212         PR tree-optimization/27236
1213         * tree-inline.c (copy_body_r): Make sure to copy
1214         TREE_THIS_VOLATILE flag.
1215
1216 2006-04-24  Richard Guenther  <rguenther@suse.de>
1217
1218         PR middle-end/26869
1219         * tree-complex.c (update_parameter_components): Don't handle
1220         unused parameters which have no default def.
1221
1222 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
1223         Richard Guenther  <rguenther@suse.de>
1224
1225         PR tree-optimization/27218
1226         * tree-inline.c (expand_call_inline): Strip useless type
1227         conversions for the return slot address.
1228
1229 2006-04-24  Richard Guenther  <rguenther@suse.de>
1230
1231         * cfgloop.h (struct loops): Remove unused field array.  Reorder
1232         state after num.
1233         (LOOP_PREFETCH): Remove.
1234
1235 2006-04-24  Richard Guenther  <rguenther@suse.de>
1236
1237         PR tree-optimization/22525
1238         * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
1239         variable, adjust types of generated expressions.
1240
1241 2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>
1242
1243         * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
1244         (tree-vect-patterns.o): Likewise.
1245         (jump.o): Likewise.
1246         (cselib.o): Likewise.
1247         (loop-doloop.o): Likewise.
1248         (regclass.o): Likewise.
1249         (reload1.o): Likewise.
1250         (explow.o): Replace target.h with $(TARGET_H).
1251         (ipa-prop.o): Likewise.
1252         (ipa-cp.o): Likewise.
1253         (ipa-inline.o): Likewise.
1254         (reorg.o): Likewise.
1255         (reg-stack.o): Likewise.
1256
1257 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
1258
1259         * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
1260
1261 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
1262
1263         * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
1264
1265         * configure.ac: Completely disregard languages that are not
1266         enabled.
1267         * configure: Regenerated.
1268
1269         PR c++/26534
1270         * c-common.h (c_build_bitfield_integer_type): Declare.
1271         * c-decl.c (c_build_bitfield_integer_type): Move to ...
1272         * c-common.c (c_build_bitfield_integer_type): ... here.
1273
1274 2006-04-23  Roger Sayle  <roger@eyesopen.com>
1275
1276         PR target/21283
1277         * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
1278         a SImode SUBREG of a floating point register after no_new_pseudos.
1279
1280 2006-04-23  Roger Sayle  <roger@eyesopen.com>
1281
1282         * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
1283         identify potentially eliminable registers to additionally catch
1284         VIRTUAL_INCOMING_ARGS_REGNUM.
1285         (addsi3): Update the conditions on when to use addsi_small_int.
1286
1287 2006-04-23  Roger Sayle  <roger@eyesopen.com>
1288
1289         PR target/16641
1290         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
1291         STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
1292         rtx to stack_pointer_rtx or frame_pointer_rtx directly.
1293
1294 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
1295
1296         * fold-const.c (range_predecessor): Use operand_equal_p
1297         as the predicate for equality.
1298         (range_successor): Likewise.
1299
1300 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
1301
1302         Revert:
1303         * config/soft-fp/op-common.h: Fix a typo.
1304
1305 2006-04-22  Frank Ch. Eigler  <fche@redhat.com>
1306
1307         PR libmudflap/26864
1308         * common.opt (flag_mudflap_threads): Overload flag_mudflap.
1309         * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
1310
1311 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
1312
1313         * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
1314         Fix comment typos.
1315         * doc/tm.texi: Fix a typo.
1316
1317 2006-04-21  Geoffrey Keating  <geoffk@apple.com>
1318
1319         * dwarf2out.c (struct die_struct): Document that die_sib makes
1320         a circular linked list.
1321         (FOR_EACH_CHILD): New.
1322         (reverse_die_lists): Delete.
1323         (reverse_all_dies): Delete.
1324         (add_dwarf_attr): Correct documentation.
1325         (remove_child_with_prev): New.
1326         (remove_child_TAG): Update for change to die_struct, use
1327         remove_child_with_prev.
1328         (add_child_die): Update for change to die_struct.
1329         (splice_child_die): Use remove_child_with_prev and add_child_die.
1330         (print_die): Use FOR_EACH_CHILD.
1331         (die_checksum): Likewise.
1332         (assign_symbol_names): Likewise.
1333         (output_location_lists): Likewise.
1334         (build_abbrev_table): Likewise.
1335         (calc_die_sizes): Likewise.
1336         (mark_dies): Likewise.
1337         (unmark_dies): Likewise.
1338         (unmark_all_dies): Likewise.
1339         (output_die): Likewise.
1340         (prune_unused_types_mark): Likewise.
1341         (prune_unused_types_walk): Likewise.
1342         (same_die_p): Update for change to die_struct.
1343         (break_out_includes): Likewise.
1344         (prune_unused_types_prune): Likewise.
1345         (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
1346         (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
1347         it's already clear.
1348         (dwarf2out_finish): Don't call reverse_all_dies.
1349
1350 2006-04-21  Eric Christopher  <echristo@apple.com>
1351
1352         * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
1353         in comments and function names.
1354
1355 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1356
1357         PR c/25875
1358         * c-typeck.c (digest_init): Robustify.
1359
1360         * c-typeck.c (pop_init_level): Simplify.
1361
1362 2006-04-21  Steve Ellcey  <sje@cup.hp.com>
1363
1364         * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
1365
1366 2006-04-21  Paul Brook  <paul@codesourcery.com>
1367
1368         * config/arm/arm.c (arm_override_options): Error on iWMMXt and
1369         hardware floating point.
1370
1371 2006-04-21  David Edelsohn  <edelsohn@gnu.org>
1372
1373         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
1374         NON_FLOAT_REGS.
1375
1376 2006-04-21  Nick Clifton  <nickc@redhat.com>
1377
1378         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
1379         OPT_EXTRA_PARTS.
1380
1381 2006-04-21  Alan Modra  <amodra@bigpond.net.au>
1382
1383         PR target/27230
1384         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
1385         C++ lang type in traceback table for Objective-C++.
1386
1387         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
1388
1389 2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1390
1391         * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
1392
1393 2006-04-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1394
1395         PR mudflap/26789
1396         * tree-mudflap.c (mudflap_finish_file): Skip function when there
1397         were errors.  Remove check for erroneous objects.
1398
1399 2006-04-20  Jeff Law  <law@redhat.com>
1400
1401         PR tree-optimization/26854
1402         * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
1403         checking for zero or one use.
1404         * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
1405         * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
1406         * tree-ssa-reassoc.c (negate_value): Similarly.
1407         (reassociate_bb): Similarly.
1408
1409 2006-04-20  Jakub Jelinek  <jakub@redhat.com>
1410
1411         * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
1412         TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
1413         than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
1414
1415 2006-04-20  Alan Modra  <amodra@bigpond.net.au>
1416
1417         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
1418         fp regs if the last fp arg doesn't fit in regs.
1419
1420 2006-04-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1421
1422         PR target/27182
1423         * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
1424         that the last insn has the REG_INC note.
1425
1426 2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
1427             Nathan Sidwell  <nathan@codesourcery.com>
1428
1429         PR c/26774
1430         * stor-layout.c (update_alignment_for_field): Do not align
1431         ERROR_MARK nodes.
1432         (place_union_field): Place union field at the start of the union.
1433         (place_field): Move ERROR_MARK check later, and use the current
1434         allocation position to maintain monotonicity.
1435
1436 2006-04-19  Zdenek Dvorak <dvorakz@suse.cz>
1437
1438         * dominance.c: Include timevar.h.
1439         (calculate_dominance_info): Use TV_DOMINANCE.
1440         * timevar.def (TV_DOMINANCE): New timevar.
1441         * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
1442
1443 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1444
1445         PR rtl-optimization/14261
1446         * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
1447         move would be an INSV insn.
1448         (noce_process_if_block): Don't optimize if the destination is a
1449         ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
1450
1451 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1452
1453         * config/s390/s390.md: Add comments with the instructions emitted
1454         by an insn pattern if macros are used.
1455
1456 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
1457
1458         PR rtl-optimization/26026
1459         * fold-const.c (fold_binary): Optimize div and mod where the divisor
1460         is a known power of two shifted left a variable amount.
1461
1462 2006-04-18  Geoffrey Keating  <geoffk@apple.com>
1463
1464         * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
1465         to hash table twice when the debug_str section has SECTION_MERGE.
1466
1467 2006-04-18  Joseph S. Myers  <joseph@codesourcery.com>
1468
1469         * config/soft-fp: New directory.  From glibc.
1470         * config/soft-fp/t-softfp: New.
1471         * config/soft-fp/README: New.
1472         * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
1473         * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
1474         (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
1475         (LIBGCC_DEPS): Add $(SFP_MACHINE).
1476         * config.gcc: Use rs6000/t-fprules-fpbit or
1477         rs6000/t-fprules-softfp and soft-fp/t-softfp together with
1478         rs6000/t-fprules.
1479         * config/rs6000/sfp-machine.h: New.  Based on glibc.
1480         * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
1481         New.
1482         * config/rs6000/t-fprules: Remove fp-bit rules.
1483         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
1484         * config/rs6000/t-linux64: Likewise.  Remove duplicates from
1485         LIB2FUNCS_EXTRA.  Remove fp-bit rules.
1486         (softfp_wrap_start, softfp_wrap_end): New.
1487
1488 2006-04-18  DJ Delorie  <dj@redhat.com>
1489
1490         * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
1491
1492 2006-04-18  Devang Patel  <dpatel@apple.com>
1493
1494         * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
1495
1496 2006-04-18  Nick Clifton  <nickc@redhat.com>
1497
1498         * config/sh/t-symbian: Add rule to build sh-c.o
1499         * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
1500         of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
1501         (sh_symbian_encode_section_info): Likewise.
1502
1503 2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>
1504
1505         * builtins.c (expand_builtin_strcmp): Cover label definition of
1506         do_libcall with HAVE_cmpstrnsi.
1507
1508 2006-04-18  Kazu Hirata  <kazu@codesourcery.com>
1509
1510         * function.c (temp_slots_at_level, max_slot_level): Use VEC
1511         instead of VARRAY.
1512         * function.h (temp_slot_p): New.
1513         (function): Change the type of x_used_temp_slots to
1514         VEC(temp_slot_p,gc) *.
1515
1516 2006-04-18  Nick Clifton  <nickc@redhat.com>
1517
1518         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
1519         flag_strength_reduce.
1520
1521         * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
1522
1523 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
1524
1525         PR target/27117
1526
1527         Partial revert of revision 112637
1528         2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
1529                     Dale Johannesen  <dalej@apple.com>
1530
1531         PR target/19653
1532         * regclass.c (struct reg_pref): Update documentation.
1533         (regclass): Set prefclass to NO_REGS if memory is the best option.
1534         (record_reg_classes): Cope with a prefclass set to NO_REGS.
1535
1536 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
1537
1538         PR tree-optimization/26821
1539         * tree-ssa-math-opts.c (get_constant_one): New.
1540         (insert_reciprocals): Use it.
1541
1542 2006-04-17  Geoffrey Keating  <geoffk@apple.com>
1543
1544         * dwarf2out.c (free_AT): Delete.
1545         (remove_AT): Update string ref counts.
1546         (remove_child_TAG): Don't call free_die.
1547         (free_die): Delete.
1548         (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
1549         or DW_TAG_GNU_EINCL.
1550         (prune_unused_types_walk_attribs): Reset string refcounts.
1551         (prune_unused_types_update_strings): New.
1552         (prune_unused_types_prune): Don't make unnecessary stores.  Don't
1553         call free_die.  Do call prune_unused_types_update_strings.
1554         (prune_unused_types): Empty debug_str_hash.
1555
1556 2006-04-17  Roger Sayle  <roger@eyesopen.com>
1557
1558         * expr.c (expand_assignment): Optimize away no-op moves where the
1559         source and destination are equal and have no side-effects.
1560
1561 2006-04-17  Richard Guenther  <rguenther@suse.de>
1562
1563         PR target/26826
1564         * reload.c (push_reload): Guard calls to get_secondary_mem
1565         for memory subregs.
1566
1567 2006-04-16  Kazu Hirata  <kazu@codesourcery.com>
1568
1569         * alias.c (reg_base_value, old_reg_base_value): Change the
1570         type to VEC(rtx,gc) *.
1571         (REG_BASE_VALUE, find_base_value, record_set,
1572         init_alias_analysis): Use VEC instead of VARRAY.
1573
1574         * alias.c (alias_sets): Change the type to
1575         VEC(alias_set_entry,gc) *.
1576         (get_alias_set_entry, new_alias_set, record_alias_subset): Use
1577         VEC instead of VARRAY.
1578         (last_alias_set): Remove.
1579
1580         * cgraph.h (cgraph_edge_p): New.
1581         Update the prototype of cgraph_function_versioning.
1582         * cgraphunit.c (cgraph_copy_node_for_versioning,
1583         cgraph_function_versioning): Use VEC instead of VARRAY.
1584         * ipa-cp.c (ipcp_insert_stage): Likewise.
1585
1586 2006-04-16  Roger Sayle  <roger@eyesopen.com>
1587
1588         PR target/26961
1589         * fold-const.c (fold_ternary): When converting "A ? B : C" into either
1590         "A op B" or "A op C", we may need to convert A to the type of B and C.
1591
1592 2006-04-16  Adam Nemet  <anemet@caviumnetworks.com>
1593
1594         * target.h (struct gcc_target): Add mode_rep_extended.
1595         * rtlanal.c (num_sign_bit_copies_in_rep): New global.
1596         (init_num_sign_bit_copies_in_rep): Initialize it using
1597         mode_rep_extended.
1598         (truncate_to_mode): Use it.
1599         (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
1600         * targhooks.h (default_mode_rep_extended): Declare it.
1601         * targhooks.c (default_mode_rep_extended): Define it.
1602         * target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
1603         default_mode_rep_extended.
1604         (TARGET_INITIALIZER): Include it.
1605         * doc/tm.texi (Misc): Document it.
1606         * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
1607         (mips_truncated_to_mode): New function.
1608
1609 2006-04-16  Roger Sayle  <roger@eyesopen.com>
1610
1611         PR middle-end/25474
1612         * expr.c (compress_float_constant): Copy the narrow constant into
1613         a new pseudo before extending it to its final width.
1614
1615 2006-04-16  Roger Sayle  <roger@eyesopen.com>
1616             Andrew Pinski  <pinskia@gcc.gnu.org>
1617             Dale Johannesen  <dalej@apple.com>
1618
1619         PR target/24076
1620         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
1621         special case code to implement V8HImode and V16QImode with SSE2.
1622
1623 2006-04-15  Roger Sayle  <roger@eyesopen.com>
1624
1625         * config/i386/i386.c (ix86_va_start): Ensure all integer constant
1626         trees are constructed with a suitable tree type.
1627
1628 2006-04-15  Roger Sayle  <roger@eyesopen.com>
1629
1630         * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
1631         (integer_onep): Likewise.
1632         (integer_all_onesp): Likewise.
1633         (integer_pow2p): Likewise.
1634         (integer_nonzerop): Likewise.
1635         (real_zerop): Likewise.
1636         (real_onep): Likewise.
1637         (real_twop): Likewise.
1638         (real_minus_onep): Likewise.
1639         (int_size_in_bytes): Likewise.
1640         (host_integerp): Likewise.
1641
1642 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
1643
1644         * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
1645         jump.c, mips-tfile.c, omp-low.c, sched-int.h,
1646         tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
1647
1648         * tree-ssa-structalias.h (alias_info): Remove num_references.
1649
1650 2006-04-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1651
1652         * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
1653         (output_bvb patterns): Likewise.
1654         * pa.c (output_bb): Use 'bb' insn for long branch case.
1655         (output_bvb): Likewise use '{bvb|bb}' for long branch case.
1656         (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
1657         1.  Correct length operand for alternatives 1 and 2.
1658         (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
1659         1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.
1660
1661 2006-04-14  Roger Sayle  <roger@eyesopen.com>
1662
1663         * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
1664         is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
1665         were accidentally reverted by r112959.
1666
1667 2006-04-15  Jakub Jelinek  <jakub@redhat.com>
1668
1669         PR middle-end/26823
1670         * except.h (eh_region_outermost): New prototype.
1671         * except.c (eh_region_outermost): New function.
1672         * tree-cfg.c (find_outermost_region_in_block): Use it.
1673
1674 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
1675
1676         * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
1677         of VARRAY.
1678         * reload1.c (reg_equiv_memory_loc_varray): Rename to
1679         reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
1680         (init_reload, reload): Use VEC instead of VARRAY.
1681         * reload.h: Update the prototype for
1682         reg_equiv_memory_loc_varray.
1683
1684 2006-04-14  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1685             Eric Botcazou  <ebotcazou@libertysurf.fr>
1686
1687         * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
1688         register save area.
1689
1690 2005-04-13  Uros Bizjak  <uros@kss-loka.si>
1691
1692         PR middle-end/27134
1693         * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
1694         to expand fallback builtin function call.
1695
1696 2006-04-14  Alan Modra  <amodra@bigpond.net.au>
1697
1698         PR middle-end/27095
1699         * builtins.c: (expand_builtin_memset): Stabilize args before expansion
1700         and emit libcall here in case the builtin fails.
1701         (expand_builtin_strcmp): Always emit the libcall here on failure.
1702
1703 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
1704
1705         * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
1706         * flow.c (reg_n_info): Change the type to
1707         VEC(reg_info_p,heap) *.
1708         * regclass.c (allocate_reg_info, free_reg_info): Use VEC
1709         instead of VARRAY.
1710         * regs.h (reg_info_p): New.
1711         (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
1712         REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
1713         REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
1714         instead of VARRAY.
1715
1716 2006-04-13  Eric Botcazou  <ebotcazou@adacore.com>
1717
1718         * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
1719         defaulting to 100.
1720         * params.h (MAX_SCHED_READY_INSNS): New macro.
1721         * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
1722         past MAX_SCHED_READY_INSNS during the first scheduling pass.
1723         (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
1724         the ready list for 1 cycle during the first scheduling pass.
1725         * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
1726
1727 2006-04-13  Richard Henderson  <rth@redhat.com>
1728
1729         PR libgomp/26651
1730         * gimple-low.c (lower_omp_directive): Remove dead code.
1731         (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
1732         * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
1733         * omp-low.c (struct omp_region): Move to tree-flow.h.
1734         (root_omp_region): Export.
1735         (omp_regions, lookup_omp_region): Remove.
1736         (determine_parallel_type): Update for struct omp_region changes.
1737         (dump_omp_region): Dump regions with block numbers.
1738         (new_omp_region): Take type and block instead of stmt; malloc
1739         instead of ggc.
1740         (free_omp_region_1, free_omp_regions): New.
1741         (expand_parallel_call): Take entry_stmt as argument; update for
1742         changes to omp_region.
1743         (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
1744         (remove_exit_barriers): New.
1745         (expand_omp_parallel): Update for struct omp_region changes.
1746         (expand_omp_synch): Likewise.
1747         (expand_omp): Likewise.
1748         (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
1749         (expand_omp_for_static_chunk): Likewise.
1750         (expand_omp_for): Likewise.
1751         (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
1752         (expand_omp_sections): Similarly, with GOMP_sections_end.
1753         (expand_omp_single): New.
1754         (build_omp_regions_1): Update for OMP_CONTINUE.
1755         (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
1756         (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
1757         OMP_SECTIONS_SECTIONS.
1758         (lower_omp_single_simple): Don't emit barrier here.
1759         (lower_omp_single_copy): Likewise.
1760         (lower_omp_single): Fix bindings, and lower to straightline now.
1761         (lower_omp_master, lower_omp_ordered): Likewise.
1762         (lower_omp_critical): Likewise.
1763         (lower_omp_for): Likewise.  Emit OMP_CONTINUE.
1764         * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
1765         omp edges, free it afterward.
1766         (make_omp_sections_edges): Remove.
1767         (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
1768         (move_stmt_r): Handle OMP_CONTINUE.
1769         * tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
1770         statement pointers to basic blocks.  Add type member.
1771         (root_omp_region, new_omp_region, free_omp_regions): Declare.
1772         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
1773         * tree-inline.c (estimate_num_insns_1): Likewise.
1774         * tree-pretty-print.c (dump_generic_node): Likewise.
1775         * tree-ssa-operands.c (get_expr_operands): Likewise.
1776         * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
1777         (OMP_RETURN): Rename from OMP_RETURN_EXPR.
1778         (OMP_CONTINUE): New.
1779         * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
1780         (OMP_SECTIONS_SECTIONS): Remove.
1781         (OMP_SECTION_LAST): New.
1782         (OMP_RETURN_NOWAIT): New.
1783
1784 2006-04-13  Roger Sayle  <roger@eyesopen.com>
1785
1786         * fold-const.c (native_encode_vector, native_interpret_real):
1787         Correct obvious mistakes in the previous check-in.
1788
1789 2006-04-13  Roger Sayle  <roger@eyesopen.com>
1790
1791         * fold-const.c (native_encode_expr): New function to encode
1792         the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
1793         or VECTOR_CST into a specified buffer.
1794         (native_encode_int): New function.
1795         (native_encode_real): New function.
1796         (native_encode_complex): New function.
1797         (native_encode_vector): New function.
1798         (native_interpret_expr): Inverse of native_encode_expr to convert
1799         a target representation into an INTEGER_CST, REAL_CST etc...
1800         (native_interpret_int): New function.
1801         (native_interpret_real): New function.
1802         (native_interpret_complex): New function.
1803         (native_interpret_vector): New function.
1804         (fold_view_convert_expr): New function to constant fold/evaluate
1805         a VIEW_CONVERT_EXPR of a suitable constant expression.
1806         (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
1807         Change call of build1 to fold_build1 when constructing a
1808         VIEW_CONVERT_EXPR.
1809
1810 2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
1811             Ulrich Weigand  <uweigand@de.ibm.com>
1812
1813         PR target/27006
1814         * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
1815         to be even.
1816
1817 2006-04-13  Alan Modra  <amodra@bigpond.net.au>
1818
1819         PR target/26459
1820         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
1821         optimize to lo_sum for DFmode if !TARGET_FPRS.
1822
1823 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
1824
1825         * tree-ssa-alias.c (set_initial_properties, init_alias_info,
1826         delete_alias_info, compute_flow_sensitive_aliasing,
1827         group_aliases): Use VEC instead of VARRAY.
1828         * tree-ssa-structalias.c (update_alias_info): Likewise.
1829         * tree-ssa-structalias.h (alias_info): Change the type of
1830         processed_ptrs to VEC(tree,heap) *.
1831
1832 2006-04-12  J"orn Rennecke <joern.rennecke@st.com>
1833
1834         PR target/27060
1835         * config/sh/lib1funcs.h: New file, broken out of:
1836         * config/sh/lib1funcs.asm.
1837         * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
1838         New macros.
1839         * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
1840         * config/sh/lib1funcs-Os-4-200.asm: New file.
1841         * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
1842         * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
1843         (EXTRA_MULTILIB_PARTS): Include it.
1844         ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
1845         ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
1846         * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
1847         * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
1848         TARGET_SH2.
1849
1850 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
1851
1852         * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
1853         * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
1854         tpa_compact, root_var_init, type_var_init): Use VEC instead of
1855         VARRAY.
1856         * tree-ssa-live.h: Include vecprim.h.
1857         (tree_partition_associator_d): Change the type of
1858         first_partition to VEC(int,heap) *.
1859         (tpa_first_partition): Use VEC instead of VARRAY.
1860
1861         * Makefile.in (GTFILES): Move functions.h after tree.h.
1862         * function.c (reset_block_changes, record_block_change,
1863         check_block_change, free_block_changes): Use VEC instead of
1864         VARRAY.
1865         * function.h (function): Change the type of
1866         ib_boundaries_block to VEC(tree,gc) *.
1867         * tree-inline.c (copy_cfg_body): Initialize
1868         ib_boundaries_block to NULL instead of (varray_type) 0.
1869
1870 2006-04-12  Roger Sayle  <roger@eyesopen.com>
1871
1872         * expr.c (emit_group_store): Correct operand order in call to
1873         subreg_lowpart_offset.  Always create paradoxical SUBREGs with
1874         a SUBREG_BYTE of zero.
1875
1876 2006-04-12  Richard Guenther  <rguenther@suse.de>
1877
1878         * profile.c (compute_branch_probabilities): Remove code
1879         encapsulated in !ir_type (), which are remanents of the
1880         removed RTL profiling code.
1881         * rtl-profile.c: Remove.
1882
1883 2006-04-12  Alan Modra  <amodra@bigpond.net.au>
1884
1885         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
1886         magic NULL_RTX comment.
1887         (function_arg): Store entire fp arg to mem if any part should go
1888         on stack.
1889         (rs6000_arg_partial_bytes): Adjust for above change.
1890
1891 2006-04-11  Roger Sayle  <roger@eyesopen.com>
1892
1893         * dwarf2out.c (output_call_frame_info): Create debug_frame_section
1894         if it hasn't been initialized by dwarf2out_init.
1895
1896 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
1897
1898         * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
1899         symbolic constants in branch patterns.
1900
1901 2006-04-11  Roger Sayle  <roger@eyesopen.com>
1902
1903         * caller-save.c: #include "addresses.h" after #include "tm_p.h".
1904
1905 2006-04-11  Richard Sandiford  <richard@codesourcery.com>
1906
1907         PR rtl-optimization/27073
1908         * gcse.c (try_replace_reg): Revert last change.  Continue to search
1909         for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
1910         on the former.
1911
1912 2006-04-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1913
1914         * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
1915         aggregate types other than record and union types.
1916         (function_arg): Likewise.
1917         (function_arg_pass_by_reference): In 64-bit mode, return 0 for
1918         small arrays.
1919         (function_value): In 64-bit mode, return objects that require it
1920         in FP registers.
1921
1922 2006-04-11  Roger Sayle  <roger@eyesopen.com>
1923
1924         * dwarf2out.c (premark_used_types): Remove problematic prototype.
1925
1926 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
1927
1928         * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
1929
1930 2006-04-03  Jeff Law  <law@redhat.com>
1931
1932         PR/27087
1933         * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
1934         alias information too.
1935
1936 2006-04-10  Mike Frysinger  <vapier@gentoo.org>
1937
1938         * Makefile.in (gcc-cross): Add $(exeext) to target name.
1939
1940 2006-04-10  Aldy Hernandez  <aldyh@redhat.com>
1941
1942         PR/21391
1943         * dwarf2out.c (struct die_struct): Add die_perennial_p field.
1944         (premark_used_types_helper): New.
1945         (premark_used_types): New.
1946         (gen_subprogram_die): Call premark_used_types.
1947         (prune_unused_types_walk): Do not prune perennial dies.
1948         * function.c (used_types_insert): New.
1949         * function.h (struct function): Add used_types_hash field.
1950         (used_types_insert): Add prototype.
1951         * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
1952         * c-parser.c (c_parser_cast_expression): Save casted types in used
1953         types hash table.
1954
1955 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
1956
1957         PR target/26459
1958         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
1959         rs6000_explicit_options.float_gprs.
1960
1961 2006-04-10  Roger Sayle  <roger@eyesopen.com>
1962
1963         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
1964         from ix86_expand_vector_init_low_nonzero.  Take an additional
1965         one_var argument indicating which element is non-zero.  Support
1966         one_var != 0 for V4SFmode and V4SImode by permuting the result.
1967         (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
1968         with one_var instead of ix86_expand_vector_init_low_nonzero.
1969
1970 2006-04-10  Kazu Hirata  <kazu@codesourcery.com>
1971
1972         * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
1973         tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
1974         global.o, cfglayout.o, lambda-code.o, reg-stack.o,
1975         build/genextract.o): Depend on vecprim.h.
1976         * cfglayout.c, df-problems.c, function.c, genextract.c,
1977         global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
1978         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
1979         vecprim.h.
1980         * vecprim.h: New.
1981
1982 2006-04-10  Geoffrey Keating  <geoffk@apple.com>
1983
1984         * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
1985         Declare VECs of this type.
1986         (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
1987         (remove_children): Delete.
1988         (add_dwarf_attr): Use VEC routines.
1989         (add_AT_flag): Update for changes to add_dwarf_attr.
1990         (add_AT_int): Likewise.
1991         (add_AT_unsigned): Likewise.
1992         (add_AT_long_long): Likewise.
1993         (add_AT_vec): Likewise.
1994         (add_AT_string): Likewise.
1995         (add_AT_die_ref): Likewise.
1996         (add_AT_fde_ref): Likewise.
1997         (add_AT_loc): Likewise.
1998         (add_AT_loc_list): Likewise.
1999         (add_AT_addr): Likewise.
2000         (add_AT_lbl_id): Likewise.
2001         (add_AT_lineptr): Likewise.
2002         (add_AT_macptr): Likewise.
2003         (add_AT_offset): Likewise.
2004         (add_AT_range_list): Likewise.
2005         (get_AT): Use VEC_iterate.
2006         (remove_AT): Use VEC_ordered_remove.
2007         (free_die): Fold remove_children into here; have it use VEC_iterate.
2008         (print_die): Use VEC_iterate on attrs.
2009         (reverse_die_lists): Don't reverse attr lists.
2010         (die_checksum): Use VEC_iterate on attrs.
2011         (same_die_p): Likewise.
2012         (output_location_lists): Likewise.
2013         (build_abbrev_table): Likewise.
2014         (size_of_die): Likewise.
2015         (unmark_all_dies): Likewise.
2016         (output_abbrev_section): Likewise.
2017         (output_die): Likewise.
2018         (prune_unused_types_walk_attribs): Likewise.
2019
2020 2006-04-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2021
2022         * doc/install.texi (*-*-solaris2*): Point to the configure page.
2023
2024 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
2025
2026         PR debug/27057
2027         * dwarf2out.c (is_symbol_die): Return true also for namespaces.
2028
2029 2006-04-09  Roger Sayle  <roger@eyesopen.com>
2030
2031         * expr.c (store_constructor): Don't bother clearing target if
2032         we're about to assign a vector to it using vec_init_optab.
2033
2034 2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
2035
2036         * tree-ssa-alias.c (lhs_may_store_to): New function.
2037         (recalculate_used_alone): Handle LHS of calls.
2038
2039 2006-04-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2040
2041         PR target/27034
2042         PR target/26508
2043         * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
2044         * pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
2045         (LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
2046         (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
2047         (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
2048         (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
2049         section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
2050         stubs.  Add ".align 8" directives before all ".dword" directives.
2051         (GTHREAD_USE_WEAK): Revise comment.
2052         (TARGET_ATTRIBUTE_WEAK): Define.
2053         * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
2054         dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
2055         * stublib.c: New file.
2056
2057         PR target/26743
2058         PR target/11254
2059         PR target/10274
2060         * pa.md (cbranch patterns): Revise arguments used in calls to
2061         output_cbranch, output_bb and output_bvd.  Add long branch length
2062         attributes.
2063         (fbranch patterns): Handle long branches.
2064         (jump): Revise length check.  Revise arguments for output_lbranch call.
2065         Add long branch length attributes.
2066         (decrement_and_branch_until_zero): Add long branch length attributes.
2067         (output_movb, output_parallel_addb and output_parallel_movb patterns):
2068         Likewise.  Revise arguments for output_parallel_addb and
2069         output_parallel_movb calls.
2070         * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
2071         output_parallel_movb and output_parallel_addb): Update prototypes.
2072         * pa.c (output_cbranch): Revise arguments.  Correct handling of
2073         nullification in long branches.
2074         (output_lbranch): Add new argument to control extraction of delay
2075         instruction.
2076         (output_bb): Handle long branches.
2077         (output_bvb, output_dbra, output_movb, output_parallel_movb,
2078         output_parallel_addb): Likewise.
2079
2080 2006-04-09  Richard Sandiford  <richard@codesourcery.com>
2081
2082         PR rtl-optimization/27073
2083         * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
2084         not REG_EQUIVs.
2085
2086 2006-04-08  Daniel Berlin  <dberlin@dberlin.org>
2087
2088         * tree.h (tree_memory_tag): Add old_used_alone.
2089         (SMT_OLD_USED_ALONE): New macro.
2090         * tree-ssa-alias.c (recalculate_used_alone): Stop
2091         marking things for renaming unnecessarily.
2092
2093 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
2094
2095         * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
2096         config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
2097         config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
2098         haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
2099         sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
2100         tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
2101         tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
2102         spelling convensions.
2103         * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
2104         doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
2105         typos.  Follow spelling conventions.
2106
2107 2006-04-07  DJ Delorie  <dj@redhat.com>
2108
2109         * config/m32c/m32c.c (m32c_function_arg): Structures are always
2110         passed on the stack.
2111         (m32c_init_cumulative_args): When a function returns a structure,
2112         always pass the pointer to that return area on the stack.
2113         (m32c_function_arg_advance): Don't increment the parameter number
2114         if we're processing the returned structure pointer.
2115         (pushm_info): Reverse order of registers.
2116
2117 2006-04-07  Sebastian Pop  <pop@cri.ensmp.fr>
2118
2119         * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
2120         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
2121         number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
2122         estimate_numbers_of_iterations_loop): Use build_int_cst instead of
2123         build_int_cst_type.
2124         * tree-chrec.c (chrec_fold_multiply_poly_poly,
2125         chrec_fold_multiply): Same.
2126         * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
2127         force_expr_to_var_cost): Same.
2128         * tree-mudflap.c (mf_xform_derefs_1): Same.
2129         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
2130
2131 2006-04-07  David Edelsohn  <edelsohn@gnu.org>
2132
2133         * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
2134         treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
2135         insn.
2136
2137 2006-04-07  Jan Hubicka  <jh@suse.cz>
2138
2139         * ipa-inline.c (cgraph_early_inlining): Collect garbage.
2140
2141 2006-04-07  Richard Guenther  <rguenther@suse.de>
2142
2143         PR tree-optimization/26135
2144         * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
2145         loads for store copy-prop.
2146         (copy_prop_visit_stmt): Likewise.
2147
2148 2006-04-05  Robert Millan  <robertmh@gnu.org>
2149
2150         * config/i386/linux.h: Add a comment to mark macros that are
2151         being overriden in config/k*bsd-gnu.h.
2152         * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
2153         DYNAMIC_LINKER.
2154         * config/knetbsd-gnu.h: Ditto.
2155
2156 2006-04-06  Jan Hubicka  <jh@suse.cz>
2157
2158         PR profile/20815
2159         PR profile/26399
2160         * coverage.c (coverage_checksum_string): Reorganize loop to not read
2161         after buffer.
2162
2163 2006-04-06  Mike Stump  <mrs@apple.com>
2164
2165         * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
2166         for HAVE_nonlocal_goto to be consistent.
2167         (expand_builtin_nonlocal_goto): Likewise.
2168         (expand_builtin_strcmp): Use #ifdef instead of #if
2169         for HAVE_cmpstrnsi to be consistent.
2170
2171 2006-04-05  DJ Delorie  <dj@redhat.com>
2172
2173         * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
2174         vs m32c.
2175
2176 2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2177
2178         * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
2179         got-relative addressing for anything but SImode.
2180
2181         * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
2182         even if the calling function doesn't modify them.
2183
2184 2006-04-05  Richard Guenther  <rguenther@suse.de>
2185
2186         PR tree-optimization/26919
2187         * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
2188         to cgraph_estimate_size_after_inlining.
2189
2190 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
2191
2192         * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
2193
2194 2006-04-05  Sebastian Pop  <pop@cri.ensmp.fr>
2195
2196         PR tree-optimization/26996
2197         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
2198         VECTOR_TYPE variables.
2199
2200 2006-04-05  Richard Guenther  <rguenther@suse.de>
2201
2202         PR tree-optimization/26763
2203         * fold-const.c (fold_comparison): Move folding of
2204         PTR + CST CMP PTR + CST ...
2205         (fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
2206
2207 2006-04-05  Gerald Pfeifer  <gerald@pfeifer.com>
2208
2209         * doc/install.texi (Prerequisites): Refine some wording on
2210         bootstrapping and ksh.
2211         Move the version numbers of DejaGnu here from the testing section
2212         and fix casing of names.
2213         Fix markup and clarify wording for autogen requirements.
2214         Refer to GCJ instead of just java.
2215         Refer to SVN instead of CVS.
2216         Describe diffutils as useful instead of necessary.
2217         (Downloading the source): Refer to SVN instead of CVS.
2218         Adjust a link to our web site accordingly.
2219         (Configuration): Fix casing of Bison.
2220         (Building): Refer to SVN instead of CVS.
2221         Fix a sentence on the use of Bison and remove duplicate (and
2222         incorrect) version number of Bison requirement.
2223         Remove one redundant list of packages needed for building.
2224         (Specific): Avoid reference to CVS.
2225
2226 2006-04-04  Eric Christopher  <echristo@apple.com>
2227
2228         * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
2229         (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
2230         (rs6000_handle_struct_attribute): New.
2231         (rs6000_ms_bitfield_layout_p): Ditto.
2232
2233 2006-04-04  Geoffrey Keating  <geoffk@apple.com>
2234
2235         * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
2236         NULL for dso parameter to atexit_common.
2237
2238 2006-04-04  Eric Christopher  <echristo@apple.com>
2239
2240         * config/i386/i386.c (machopic_output_stub): Output \t
2241         between instructions and operands.
2242
2243 2006-04-04  David Edelsohn  <edelsohn@gnu.org>
2244
2245         * config/rs6000/rs6000.c (num_insns_constant_wide): Change
2246         satisfies_constraint_[IL] to explicit tests on value.
2247
2248 2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
2249
2250         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2251         set_nb_iterations_in_loop): Use build_int_cst instead of
2252         build_int_cst_type.
2253         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
2254         build_int_cst instead of convert.
2255
2256 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
2257
2258         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
2259         new value 2 for incoming.
2260         * function.c (expand_function_start): Call struct_value_rtx
2261         with incoming as 2.
2262         * config/sparc/sparc.md: Comment updated_return.
2263         * config/sparc/sparc.opt: Add -mstd-struct-return option.
2264         * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
2265         struct return if sparc_std_struct_return and incoming is 2.
2266         (print_operand): Do not adjust return if
2267         sparc_std_struct_return.
2268
2269 2006-04-04  Roger Sayle  <roger@eyesopen.com>
2270
2271         * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
2272         convert in the middle-end.
2273         * expr.c (store_expr, store_constructor, get_inner_reference,
2274         expand_expr_real_1, string_constant, try_casesi, try_tablejump):
2275         Likewise.
2276         * tree.c (build_range_type): Likewise.
2277
2278 2006-04-04  Tom Tromey  <tromey@redhat.com>
2279
2280         * doc/install.texi (Prerequisites): Mention jar.
2281
2282 2006-04-04  Daniel Berlin  <dberlin@dberlin.org>
2283
2284         * doc/tree-ssa.texi (Preserving the virtual ssa form): New
2285         subsection.
2286
2287 2006-04-04  Matthias Klose  <doko@debian.org>
2288
2289         * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
2290         * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
2291         strings.
2292
2293 2006-04-03  Geoffrey Keating  <geoffk@apple.com>
2294
2295         * doc/extend.texi (Function Attributes): Rewrite visibility
2296         attribute documentation.
2297         * doc/invoke.texi (C++ Dialect Options): Rewrite
2298         -fvisibility-inlines-hidden documentation to describe something
2299         entirely different, although in practise compatible.
2300         (Code Gen Options): Warn about system headers in -fvisibiltity=
2301         documentation.
2302
2303         * doc/extend.texi (Other Builtins): Document that
2304         __builtin_nan is a compile-time constant only when its argument
2305         is valid.
2306
2307 2006-04-03  Adam Nemet  <anemet@caviumnetworks.com>
2308
2309         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
2310         trying to remove TRUNCATE check if all bits outside the new mode
2311         are identical to the sign bit.
2312
2313 2006-04-03  Jeff Law  <law@redhat.com>
2314
2315         * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
2316         and operand scanning in some common cases.
2317
2318 2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
2319             Dale Johannesen  <dalej@apple.com>
2320
2321         PR target/19653
2322         * regclass.c (struct reg_pref): Update documentation.
2323         (regclass): Set prefclass to NO_REGS if memory is the best option.
2324         (record_reg_classes): Cope with a prefclass set to NO_REGS.
2325         * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
2326         into account.  For non-registers, equate an empty preferred
2327         reload class to a `!' in the constraint; move the if clause to
2328         do so after those that reject the insn.
2329         (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
2330         return NO_REGS.
2331         (find_dummy_reload): Likewise.
2332         * doc/tm.texi (Register Classes): Document what it means
2333         if PREFERRED_*_RELOAD_CLASS return NO_REGS.
2334         * config/i386/i386.c (ix86_preferred_reload_class): Force
2335         using SSE registers (and return NO_REGS for floating-point
2336         constants) if math is done with SSE.
2337         (ix86_preferred_output_reload_class): New.
2338         * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
2339         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
2340         * config/i386/i386.md: Remove # register preferences.
2341
2342 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
2343
2344         PR bootstrap/26992
2345         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
2346         chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
2347         the type of nb_iter.
2348         (instantiate_parameters_1): Convert the operands before calling
2349         chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
2350         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
2351
2352 2006-04-02  Roger Sayle  <roger@eyesopen.com>
2353
2354         * builtins.c (dummy_object): Use build_int_cst instead of convert.
2355         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
2356         instead of convert.
2357         * dojump.c (do_jump): Likewise.
2358         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
2359         * gimplify.c (gimple_boolify, gimplify_init_constructor,
2360         gimplify_boolean_expr): Likewise.
2361         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2362         * varasm.c (array_size_for_constructor): Likewise.
2363         * tree-object-size.c (compute_object_offset): Likewise.
2364
2365 2006-04-02  Roger Sayle  <roger@eyesopen.com>
2366
2367         PR middle-end/26977
2368         * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
2369         NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
2370
2371 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
2372
2373         PR tree-optimization/26939
2374         * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
2375
2376 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
2377
2378         * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
2379         at_stmt.  Convert the type of operands before calling
2380         build_polynomial_chrec.
2381         (add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
2382         add_to_evolution_1.
2383         (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
2384         (instantiate_parameters_1): Convert the type of operands before calling
2385         build_polynomial_chrec.
2386         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2387         chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
2388         reset_evolution_in_loop): Insert asserts to check the types of the
2389         operands.
2390         (chrec_type): Moved...
2391         (eq_evolutions_p): Use operand_equal_p.
2392         * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
2393         the types of the operands.
2394         (chrec_type): ...here.
2395         * tree-data-ref.c (create_data_ref): Convert the operands before
2396         calling chrec_replace_initial_condition.
2397         (same_access_functions, analyze_subscript_affine_affine,
2398         analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
2399         (compute_subscript_distance, analyze_ziv_subscript,
2400         analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
2401         analyze_miv_subscript): Convert the operands before calling
2402         chrec_fold_minus or chrec_fold_plus.
2403
2404 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
2405
2406         * tree-data-ref.c (compute_all_dependences): Use a pointer to
2407         the dependence_relations vector.
2408         (compute_data_dependences_for_loop): Adjust call to
2409         compute_all_dependences.
2410
2411 2006-04-01  Roger Sayle  <roger@eyesopen.com>
2412             Richard Henderson  <rth@redhat.com>
2413
2414         * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
2415         gimple_boolify on the condition before calling gimplify_expr.
2416
2417 2006-03-31  Bob Wilson  <bob.wilson@acm.org>
2418
2419         * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
2420         to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
2421         the frame size.  Update to use the new macros.
2422         * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
2423         * config/xtensa/ieee754-df.S: Likewise.
2424
2425 2006-03-31  Richard Henderson  <rth@redhat.com>
2426
2427         * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
2428         (make_edges): ... here.  Control fallthru creation with a local
2429         variable.  Do not play with fake edges.
2430         (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
2431         (make_goto_expr_edges): Don't play with fake edges.  Make for_call
2432         a boolean.
2433
2434 2006-04-01  Joseph S. Myers  <joseph@codesourcery.com>
2435
2436         * dwarf2.h (DW64_CIE_ID): Define.
2437         * dwarf2out.c (DWARF_CIE_ID): Define.
2438         (output_call_frame_info): Output 0xffffffff before standard 8-byte
2439         length header.  Use DWARF_CIE_ID.
2440         (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
2441         dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
2442
2443 2006-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2444
2445         * config/sh/linux-atomic.asm: New file.
2446         * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
2447
2448 2006-03-31  DJ Delorie  <dj@redhat.com>
2449
2450         * config/m32c/cond.md: Set condition flags properly throughout.
2451         * config/m32c/minmax.md: Likewise.
2452         * config/m32c/prologue.md: Likewise.
2453         * config/m32c/bitops.md: Likewise.
2454         * config/m32c/muldiv.md: Likewise.
2455         * config/m32c/mov.md: Likewise.
2456         * config/m32c/addsub.md: Likewise.
2457         * config/m32c/m32c.md: Likewise.
2458         * config/m32c/jump.md: Likewise.
2459         * config/m32c/shift.md: Likewise.
2460
2461         * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
2462         conditionally output the pattern for this.
2463         * config/m32c/m32c.c (flags_needed_for_conditional): New.
2464         (m32c_compare_redundant): New.
2465         (m32c_output_compare): New.
2466         * config/m32c/m32c-protos.h (m32c_output_compare): New.
2467
2468         * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
2469         dest, not src.  Allow other 4-byte modes.
2470
2471 2006-03-30  Denis Chertykov  <denisc@overta.ru>
2472
2473         * doc/md.texi: Refer to avr/constraints.md instead of
2474         avr/avr.h.
2475
2476 2006-03-30  Roger Sayle  <roger@eyesopen.com>
2477
2478         * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
2479         signed vs. unsigned comparison failures on some hosts.
2480
2481 2006-03-31  Alan Modra  <amodra@bigpond.net.au>
2482
2483         PR target/26459
2484         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
2485         change to FLOAT_REGS.
2486
2487         * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
2488         (rs6000_override_options): Use it.
2489         (rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
2490         only for -mabi=spe/no-spe and -mabi=altivec.
2491
2492 2006-03-30  Geoffrey Keating  <geoffk@apple.com>
2493
2494         * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
2495         !Zdynamiclib.
2496
2497 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
2498
2499         * Makefile.in: Rename docdir to gcc_docdir.
2500
2501 2006-03-30  Roger Sayle  <roger@eyesopen.com>
2502
2503         PR target/17959
2504         * expr.c (emit_group_store): Optimize group stores into a pseudo
2505         register by using a paradoxical subreg to initialize the destination
2506         if the first or last member of the group specifies a "low part".
2507
2508 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2509
2510         PR target/26734
2511         * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
2512         * target.h (struct gcc_target.speculate_insn): Change type of the
2513         second parameter to 'int'.
2514         * lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
2515         the second operand of the DEPS_LIST.
2516         (copy_DEPS_LIST_list): Update reference to the second operand of the
2517         DEPS_LIST.
2518         * rtl.h (alloc_DEPS_LIST): Update signature.
2519         * sched-int.h (ds_t): Change typedef to 'int'.
2520         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2521
2522 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2523
2524         * haifa-sched.c (try_ready): Change condition to restore
2525         non-speculative pattern of the instruction.
2526         (process_insn_depend_be_in_spec): Code to keep probability of the
2527         speculative dependence non-decreasing.
2528
2529 2006-03-30  Jie Zhang  <jie.zhang@analog.com>
2530
2531         * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
2532         (single_move_for_movmem): ... this. Also change all uses.
2533         (bfin_expand_strmov): Renamed to...
2534         (bfin_expand_movmem): ... this. Also change all uses.
2535         * config/bfin/bfin.md (movstrsi): Renamed to...
2536         (movstrsi): ...this.
2537
2538 2006-03-30  Paolo Bonzini  <bonzini@gnu.org>
2539
2540         PR tree-optimization/26830
2541
2542         * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
2543         (copy_prop_visit_stmt): Remove write-only variable ann.
2544         (init_copy_prop): Check variable loop depth here.  Do not simulate
2545         memory-tag and virtual operand PHIs except for store copy prop.
2546
2547 2006-03-30  Richard Guenther  <rguenther@suse.de>
2548
2549         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
2550         variants with double arguments.
2551
2552 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
2553
2554         * genpreds.c (write_tm_constrs_h): Delete variable p.
2555         * genconditions.c (write_header): Add tm-constrs.h to included
2556         headers.
2557         * genpeep.c (main): Add toplev.h to included headers.
2558         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
2559         (build/genpeep.o): Add toplev.h dependency.
2560         * config/rs6000/constraints.md: Add "W" constraint.
2561
2562 2006-03-29  Roger Sayle  <roger@eyesopen.com>
2563
2564         * stor-layout.c (mode_for_size_tree): Remove restiction on type
2565         sizes by correctly testing whether the size fits a host integer.
2566         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
2567         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
2568         SImode range for the default sizetype and bitsizetype.
2569
2570 2006-03-29  Roger Sayle  <roger@eyesopen.com>
2571
2572         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
2573         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
2574         quickly if the argument is already of the correct type.
2575         Call fold_build1 instead of build1.  Tidy up blank lines.
2576
2577 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
2578
2579         * genemit.c (main): Add tm-constrs.h to included headers.
2580         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
2581         * genpeep.c (main): Add tm-constrs.h to included headers.
2582         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
2583         (write_tm_constrs_h): this and write complete file.
2584         (write_tm_preds_h): Do not emit satisfies_constraint fns.
2585         (write_insn_preds_c): Add tm-constrs.h to included headers.
2586         (gen_constrs): New variable.
2587         (parse_option): Parse "-c".
2588         (main): Invoke write_tm_constrs_h.
2589         * genrecog.c (write_header): Add tm-constrs.h to included headers.
2590         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
2591         (object_out_file): Add tm-constrs.h dependency.
2592         (insn-emit.o): Same.
2593         (insn-output.o): Same.
2594         (insn-peep.o): Same.
2595         (insn-preds.o): Same.
2596         (insn-recog.o): Same.
2597         (tm-constsr.h): New target.
2598         (s-constrs-h): New target.
2599
2600         * config/rs6000/constraints.md: New file.
2601         * config/rs6000/rs6000.c: Include tm-constrs.h.
2602         (num_insn_constant_wide): Convert to satisfies_constraint.
2603         (rs6000_rtx_costs): Convert to satisfies_constraint.
2604         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
2605         (CONST_OK_FOR_LETTER_P): Delete.
2606         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2607         (EXTRA_CONSTRAINT): Delete.
2608         (EXTRA_MEMORY_CONSTRAINT): Delete.
2609         (EXTRA_ADDRESS_CONSTRAINT): Delete.
2610         * config/rs6000/predicates.md: Convert to satisfies_constraint.
2611         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
2612         satisfies_constraint.
2613
2614         * config/i386/i386.c: Include tm-constrs.h.
2615
2616 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
2617
2618         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
2619         * tree-data-ref.c (find_data_references_in_loop,
2620         compute_data_dependences_for_loop): Use pointers to VEC.
2621         (analyze_all_data_dependences): Adjust calls.
2622         * tree-data-ref.h (find_data_references_in_loop,
2623         compute_data_dependences_for_loop): Adjust declarations.
2624         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
2625         compute_data_dependences_for_loop.
2626
2627 2006-03-29  Paul Brook  <paul@codesourcery.com>
2628
2629         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
2630         (movdf_vfp): Ditto.
2631
2632 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
2633
2634         PR tree-optimization/26859
2635         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
2636         division by zero.
2637         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
2638         for the step after fold_convert.
2639
2640 2006-03-29  Paul Brook  <paul@codesourcery.com>
2641
2642         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
2643         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
2644
2645 2006-03-29  Paul Brook  <paul@codesourcery.com>
2646
2647         PR middle-end/23623
2648         * targhooks.c (default_narrow_bitfield): New fuction.
2649         * targhooks.h (default_narrow_bitfield): add prototype.
2650         * target.h (gcc_target): Add narrow_volatile_bitfield.
2651         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2652         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
2653         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
2654         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
2655
2656 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
2657
2658         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
2659         tmake_file.
2660         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
2661         (NR_C_MODES): Add TDmode, DDmode and SDmode.
2662         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
2663         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
2664         (s390_function_arg_float): Allow SDmode and DDmode values to be
2665         passed in floating point registers.
2666         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
2667         check with SCALAR_FLOAT_MODE_P.
2668         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
2669
2670 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
2671
2672         PR tree-optimization/25985
2673         * tree-ssa-loop-niter.c (number_of_iterations_le,
2674         number_of_iterations_ne): Make comments more precise.
2675         (number_of_iterations_cond): Add only_exit argument.  Use the
2676         fact that signed variables do not overflow only when only_exit
2677         is true.
2678         (loop_only_exit_p): New.
2679         (number_of_iterations_exit): Pass result of loop_only_exit_p to
2680         number_of_iterations_cond.
2681
2682 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
2683
2684         PR tree-optimization/26643
2685         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
2686         bit_field_refs.
2687
2688 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2689
2690         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
2691         (divsi3_i4_int): Likewise.
2692
2693 2006-03-28  Roger Sayle  <roger@eyesopen.com>
2694
2695         * expr.c (emit_group_store): Only create a new pseudo reg if the
2696         quantity it needs to hold isn't already a suitable pseudo.
2697
2698 2006-03-28  Jeff Law  <law@redhat.com>
2699
2700         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
2701         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
2702
2703 2006-03-28  Roger Sayle  <roger@eyesopen.com>
2704
2705         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
2706         the equivalent ~X & Y, and the symmetry related transformations.
2707         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
2708         ~X & Y, and symmetry related transforms.
2709
2710 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2711
2712         Revert my 2006-03-27 patches.
2713
2714 2006-03-28  Roger Sayle  <roger@eyesopen.com>
2715
2716         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
2717         ~(T1)X, when T1 and T2 are integer types of the same precision
2718         and (T2)X isn't an extension.
2719
2720 2006-03-28  Jeff Law  <law@redhat.com>
2721
2722         PR tree-optimization/26796
2723         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
2724         need EH edge cleanups rather than purging them immediately.
2725         (eliminate_degenerate_phis): Handle queued EH cleanups.
2726
2727 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
2728
2729         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
2730         from parent_var.
2731
2732 2006-03-27  Roger Sayle  <roger@eyesopen.com>
2733
2734         PR middle-end/22524
2735         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
2736         cast BIT_NOT_EXPR operand to the correct type.
2737
2738 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
2739
2740         * tree-loop-linear.c: Don't include varray.h.
2741         (gather_interchange_stats, try_interchange_loops,
2742         linear_transform_loops): Use VEC instead of VARRAY.
2743         * lambda-mat.c: Don't include varray.h.
2744         * tree-chrec.c: Same.
2745         * lambda-trans.c: Same.
2746         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
2747         VEC instead of VARRAY.
2748         * tree-vectorizer.h: Idem.
2749         * tree-data-ref.c (dump_data_references,
2750         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
2751         initialize_data_dependence_relation, finalize_ddr_dependent,
2752         compute_all_dependences, find_data_references_in_loop,
2753         compute_data_dependences_for_loop, analyze_all_data_dependences,
2754         free_dependence_relation, free_dependence_relations,
2755         free_data_refs): Idem.
2756         * tree-data-ref.h (data_reference_p, subscript_p): New.
2757         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
2758         VEC instead of VARRAY.
2759         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
2760         (find_data_references_in_loop, compute_data_dependences_for_loop,
2761         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
2762         dump_data_dependence_relations, free_dependence_relations,
2763         free_data_refs): Adjust declaration.
2764         (lambda_transform_legal_p): Move declaration here...
2765         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
2766         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
2767         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
2768         vect_analyze_data_refs): Use VEC instead of VARRAY.
2769         * lambda.h (lambda_transform_legal_p): ...from here.
2770         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
2771         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
2772         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
2773         tree-chrec.o): Don't depend on VARRAY_H.
2774
2775 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2776
2777         * rtl.def (Copyright): Update date.
2778         (DEPS_LIST): Change type of the second operand to 'int'.
2779         * target.h (Copyright): Update date.
2780         (struct gcc_target.speculate_insn): Change type of the second parameter
2781         to 'int'.
2782         * lists.c (Copyright): Update date.
2783         (alloc_DEPS_LIST): Change signature.  Update reference to the second
2784         operand of the DEPS_LIST.
2785         (copy_DEPS_LIST_list): Update reference to the second operand of the
2786         DEPS_LIST.
2787         * rtl.h (Copyright): Update date.
2788         (alloc_DEPS_LIST): Update signature.
2789         * sched-int.h (Copyright): Update date.
2790         (ds_t): Change typedef to 'int'.
2791         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
2792
2793 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
2794
2795         * haifa-sched.c (Copyright): Update date.
2796         (try_ready): Change condition to restore non-speculative pattern
2797         of the instruction.
2798         (process_insn_depend_be_in_spec): Code to keep probability of the
2799         speculative dependence non-decreasing.
2800
2801 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
2802
2803         * regrename.c (replace_oldest_value_addr): Initialize a variable to
2804         shut up the compiler.
2805
2806 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
2807
2808         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
2809         to use lib prefix for target.
2810         ($(T)libic_invalidate_array_4-200.a): Likewise.
2811         ($(T)libic_invalidate_array_4a.a): Likewise.
2812
2813 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
2814             J"orn Rennecke <joern.rennecke@st.com>
2815
2816         * superh.opt: New file.
2817         * sh.c (boardtype, osruntime): Remove.
2818         * superh.h (SUBTARGET_OPTIONS): Remove.
2819         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
2820
2821         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
2822         arguments with ^ and/or [].
2823
2824         * config.gcc (sh-*-*): Add quoting to account for quirk of
2825         Solaris /bin/sh.
2826         Replace == with = in enable_incomplete_targets test.
2827
2828         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
2829         with MASK_LITTLE_ENDIAN.
2830
2831         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
2832         * config/sh/sh.opt: Added to some comments.
2833         * config/sh/superh.h: Removed some chaff.
2834
2835         * config/sh/sh.opt: Add m4-[1234]00* options.
2836         * config/sh/sh.c (sh_handle_option): Likewise.
2837         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
2838         (ic_invalidate_array_4-100.o): New rule.
2839         ($(T)libic_invalidate_array_4-100.a): Likewise.
2840         (ic_invalidate_array_4-200.o): Likewise.
2841         ($(T)libic_invalidate_array_4-200.a): Likewise.
2842         (ic_invalidate_array_4a.o): Likewise.
2843         ($(T)libic_invalidate_array_4a.a): Likewise.
2844         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
2845         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
2846         m4-200*, and m4a*.
2847         * config/sh/crt1.asm: Merged in profiling code.
2848         * config/sh/superh.h (STARTFILE_SPEC): Override.
2849         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
2850         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
2851         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
2852
2853         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
2854         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
2855         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
2856
2857         * sh.opt (mpretend-cmove): New option.
2858         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
2859         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
2860         (movsicc): Add TARGET_PRETEND_CMOVE code.
2861
2862 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2863
2864         * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
2865         s390_class_max_nregs): New function prototypes.
2866         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
2867         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
2868         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
2869         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
2870
2871 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
2872
2873         * dwarf2out.c (add_location_or_const_value_attribute): Call
2874         tree_add_const_value_attribute if nothing else works.
2875         (reference_to_unused): New.
2876         (rtl_for_decl_init): Use reference_to_unused to decide whether
2877         to output an initializer.
2878
2879 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
2880
2881         PR target/26459
2882         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
2883         peephole removing spe frob_di_df_2.
2884
2885 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
2886
2887         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
2888         (subscript_dependence_tester_1): Declared.
2889         (print_dir_vectors, print_dist_vectors): New.
2890         (debug_data_dependence_relation): New.
2891         (dump_data_dependence_relation): Print more details.
2892         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
2893         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
2894         (save_dist_v, save_dir_v, add_outer_distances,
2895         build_classic_dist_vector_1): New.
2896         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
2897         Don't test for lambda_vector_lexico_pos.
2898         (same_access_functions, add_multivariate_self_dist,
2899         add_other_self_distances, dir_from_dist): New.
2900         (build_classic_dir_vector): Replace implementation almost identical to
2901         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
2902         dir_from_dist.
2903         (subscript_dependence_tester_1): New.
2904         (subscript_dependence_tester): Handle the lexicographically negative
2905         distance vectors by recomputing the dependence relation.
2906         (compute_affine_dependence): Remove parameter loop_nest_depth.
2907         (compute_self_dependence): Don't call compute_subscript_distance.
2908         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
2909         Add a parameter for the loop_nest.
2910         (find_loop_nest_1, find_loop_nest): New.
2911         (compute_data_dependences_for_loop): Compute the loop nest, and give
2912         up if the nest is not well formed.
2913         * tree-data-ref.h (loop_p): New.
2914         (struct data_dependence_relation): Replace size_vect field with
2915         loop_nest, a vec of loops.
2916         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
2917         (DDR_LOOP_NEST): New.
2918         (print_dir_vectors, print_dist_vectors,
2919         debug_data_dependence_relation): Declared.
2920         (index_in_loop_nest): New.
2921         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
2922         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
2923         distance.
2924
2925 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
2926
2927         * simplify-rtx.c (simplify_relational_operation): Call
2928         simplify_relational_operation_1 even if mode is VOIDmode.
2929
2930 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
2931
2932         PR tree-optimization/26804
2933         * tree.h (DECL_CALL_CLOBBERED): New macro.
2934         (tree_decl_common): Add call_clobbered_flag.
2935         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
2936         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
2937         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
2938         (mark_non_addressable): Ditto.
2939         * tree-ssa.c (verify_call_clobbered): New function.
2940         (verify_alias_info): Use it.
2941         * tree-pass.h (pass_reset_cc_flags): New prototype.
2942         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
2943         (reset_cc_flags): New function.
2944         * passes.c (init_optimization_passes): Call reset_cc_flags after
2945         initializing referenced_vars.
2946
2947 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
2948             Roger Sayle  <roger@eyesopen.com>
2949
2950         PR middle-end/26717
2951         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
2952         to 1.0 for non-real operands. Implement A / A optimization for
2953         complex operands.
2954
2955 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
2956
2957         * config/i386/i386.c (size_cost): Correct the comment for
2958         cost of storing fp registers.
2959         (i386_cost): Likewise.
2960         (i486_cost): Likewise.
2961         (pentium_cost): Likewise.
2962         (pentiumpro_cost): Likewise.
2963         (k6_cost): Likewise.
2964         (athlon_cost): Likewise.
2965         (k8_cost): Likewise.
2966         (pentium4_cost): Likewise.
2967         (nocona_cost): Likewise.
2968         (generic64_cost): Likewise.
2969         (generic32_cost): Likewise.
2970
2971 2006-03-24  Denis Chertykov  <denisc@overta.ru>
2972
2973         * config/avr/avr-protos.h (extra_constraint): Delete.
2974         (extra_constraint_Q): New declaration.
2975         * config/avr/constraints.md: New file.
2976         * config/avr/avr.md: Include it.
2977         (REG_X, REG_Y, REG_Z, REG_W): New constants.
2978         (TMP_REGNO, ZERO_REGNO): Likewise.
2979         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
2980         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
2981         (extra_constraint): Delete.
2982         (extra_constraint_Q): Test for memory constraint 'Q'.
2983         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
2984         (REG_CLASS_FROM_LETTER): Delete.
2985         (CONST_OK_FOR_LETTER_P): Delete.
2986         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
2987         (EXTRA_CONSTRAINT): Delete.
2988         (TMP_REGNO): Delete.
2989         (ZERO_REGNO): Delete.
2990
2991 2006-03-24  Jeff Law  <law@redhat.com>
2992
2993         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
2994         directly.  Call mark_new_vars_to_rename slightly earlier.
2995
2996 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
2997
2998         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
2999         (is_cxx): Likewise.
3000         (gen_compile_unit_die): Use new language types for Objective-C and
3001         Objective-C++.
3002         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
3003         DW_LANG_C_plus_plus.
3004
3005         PR 26793
3006         * config/t-darwin (crt3.o): Work around bug 26840.
3007         * config/darwin-crt3.c: Rewrite.
3008         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
3009
3010 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
3011
3012         * doc/invoke.texi: Document -femit-class-debug-always
3013         * common.opt: Add -femit-class-debug-always.
3014
3015 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3016
3017         * config/s390/s390.c (s390_decompose_address): Allow SImode for
3018         index and base register.
3019         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
3020         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
3021         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
3022         REGNO_OK_FOR_INDEX_P.
3023         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
3024         ADDR_REGNO_P.
3025         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
3026         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
3027         REG_OK_FOR_BASE_P): Definitions removed.
3028
3029 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
3030
3031         PR middle-end/26611
3032         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
3033         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
3034         set yet or weren't marked as local yet.
3035
3036 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
3037
3038         * regrename.c (scan_rtx_address): Initialize a variable to shut up
3039         the compiler.
3040
3041 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3042
3043         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
3044         (rs6000_legitimate_small_data_p): Delete.
3045         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
3046         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
3047         and make static.  Add forward declaration.  Update uses.
3048         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
3049         of offsettable_memref_p.
3050         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
3051         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
3052
3053 2006-03-24  Jeff Law  <law@redhat.com>
3054
3055         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
3056         around bug in immediate-use iterator.
3057
3058 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
3059
3060         PR target/26607
3061         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
3062         or __LITTLE_ENDIAN__.
3063
3064 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
3065
3066         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
3067         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
3068         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
3069         * config/sh/sh.opt (mdiv=): Amend description.
3070         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
3071         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
3072         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
3073         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
3074         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
3075         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
3076         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
3077         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
3078         TARGET_DIVIDE_CALL_FP.
3079
3080 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3081
3082         * haifa-sched.c (choose_ready): Fix type of the local variable.
3083         Move local variables.  Add comment.
3084         (check_reg_live): Change signature.  Make callable from debugger.
3085         * sched-int.h (check_reg_live): Update signature.
3086         * sched-ebb.c (check_reg_live): Update parameters.
3087         * sched-rgn.c (check_reg_live): Ditto.
3088         (region_head_or_leaf_p): Check pointer before dereferencing.
3089         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
3090         before reload on optimization levels below 1.
3091
3092 2006-03-23  Richard Henderson  <rth@redhat.com>
3093
3094         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
3095         tls symbols.
3096
3097         PR target/26347
3098         * config/alpha/predicates.md (local_symbolic_operand): Reject
3099         weak symbols.
3100
3101 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
3102
3103         PR tree-opt/26795
3104         * tree-ssa-pre.c (create_value_expr_from): Don't reject
3105         expressions which have overflowed constants.
3106
3107 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
3108
3109         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
3110
3111 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
3112
3113         * cfgloopmanip.c (create_loop_notes): Removed.
3114         * final.c (final_scan_insn): Do not handle loop notes.
3115         * jump.c (squeeze_notes): Ditto.
3116         * cfglayout.c (skip_insns_after_block,
3117         duplicate_insn_chain): Ditto.
3118         * cfgcleanup.c (rest_of_handle_jump2): Do not call
3119         create_loop_notes.
3120         * cfgloop.h (create_loop_notes): Declaration removed.
3121
3122 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
3123
3124         * varasm.c (output_constant_pool): Restore fnname and fndecl
3125         arguments.
3126         (assemble_start_function): Adjust call accordingly.
3127         (assemble_end_function): Likewise.
3128
3129 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3130
3131         PR mudflap/26789
3132         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
3133
3134         PR mudflap/26790
3135         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
3136
3137 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3138
3139         PR driver/22600
3140         * system.h (ICE_EXIT_CODE): New macro.
3141         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
3142         (diagnostic_action_after_output): Likewise.
3143         * gcc.c (fatal_ice): New function.
3144         (execute): Use it instead of fatal.
3145         (fancy_abort): Likewise.
3146         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
3147
3148 2006-03-22  Jeff Law  <law@redhat.com>
3149
3150         * loop-unroll.c (analyze_iv_to_split_insn): Handle
3151         iv_analyze_result returning false.
3152
3153 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
3154
3155         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
3156
3157 2006-03-22  Richard Henderson  <rth@redhat.com>
3158
3159         PR middle-end/26084
3160         * except.c (duplicate_eh_regions_0): New.
3161         (duplicate_eh_region_1): Duplicate the children of the node as
3162         well as the node itself.  Link them up properly.
3163         (duplicate_eh_region_2): Merge into ...
3164         (duplicate_eh_regions): ... here.  Take copy_region argument, and
3165         copy only a sub-tree if asked.  Simplify copying and fixup.
3166         (eh_region_outer_p): New.
3167         * except.h (duplicate_eh_regions): Update decl.
3168         (eh_region_outer_p): Declare.
3169         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
3170         (lower_omp_master): Likewise.
3171         (lower_omp_ordered): Likewise.
3172         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
3173         (move_stmt_r): Use it to remap labels.  Handle recursion vs
3174         remap_decls_p properly.
3175         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
3176         (find_outermost_region_in_block): New.
3177         (new_label_mapper): New.
3178         (move_sese_region_to_fn): Copy eh information to the new function
3179         properly.
3180         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
3181         argument.
3182         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
3183         number.
3184
3185 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
3186
3187         * doc/md.texi (-mshared): Mention that -mshared code can be linked
3188         into shared libraries.
3189
3190 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
3191
3192         * doc/md.texi: Refer to i386/constraints.md instead of
3193         i386/predicates.md.
3194         * config/i386/constraints.md: New file, extracted from...
3195         * config/i386/predicates.md: ...here.
3196         * config/i386/i386.md: Include constraints.md.
3197
3198 2006-03-21  Jason Merrill  <jason@redhat.com>
3199
3200         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
3201
3202         PR middle-end/20297
3203         * expr.c (init_block_move_fn): Force default visibility.
3204         (init_block_clear_fn): Likewise.
3205         * builtins.c (expand_builtin_fork_or_exec): Likewise.
3206         * targhooks.c (default_external_stack_protect_fail): Likewise.
3207
3208 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
3209
3210         * config/mips/predicates.md (const_call_insn_operand): Allow direct
3211         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
3212         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
3213         Use TARGET_OLDABI instead of !TARGET_NEWABI.
3214         (loadgp): Use mips_current_loadgp_style.
3215         (loadgp_noshared): New pattern.
3216         (sibcall_internal): Use MIPS_CALL.
3217         (sibcall_value_internal): Likewise.
3218         (sibcall_value_multiple_internal): Likewise.
3219         (call_internal): Likewise.
3220         (call_value_internal): Likewise.
3221         (call_value_multiple_internal): Likewise.
3222         (call_split): Use MIPS_CALL and add an 'S' constraint.
3223         (call_value_split): Likewise.
3224         (call_value_multiple_split): Likewise.
3225         * config/mips/mips.opt (-mabicalls): Tweak docstring.
3226         (-mshared): New option.
3227         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
3228         (mips_current_loadgp_style): Declare.
3229         * config/mips/mips.c (mips_classify_symbol): Avoid using
3230         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
3231         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
3232         TARGET_ABSOLUTE_ABICALLS.
3233         (override_options): Adjust comments.  Improve the warning that is
3234         issued when -mabicalls and -G are used together.
3235         (mips_file_start): Remove comment.
3236         (mips_current_loadgp_style): New function.
3237         (mips_gnu_local_gp): New variable.
3238         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
3239         LOADGP_ABSOLUTE.
3240         (mips_output_function_prologue): Use mips_current_laodgp_style.
3241         (mips_expand_prologue): Call mips_emit_loadgp before emitting
3242         the cprestore instruction.
3243         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
3244         live for TARGET_ABSOLUTE_ABICALLS.
3245         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
3246         (ASM_SPEC): Pass down -mshared and -mno-shared.
3247         (MIPS_CALL): New macro.
3248         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
3249         definition.
3250         * doc/invoke.texi (-mabicalls): Update documentation.
3251         (-mshared): Document.
3252
3253 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
3254
3255         * config/ia64/unwind-hpux.c: New file.
3256         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
3257
3258 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
3259
3260         PR libgomp/26384
3261         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
3262
3263 2006-03-21  Jeff Law  <law@redhat.com>
3264
3265         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
3266         type conversions of a VR_VARYING source to a wider type.
3267
3268 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3269
3270         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
3271         tm_file on Solaris 10 and later.
3272         (sparc64-*-solaris2*): Likewise.
3273         (sparc-*-solaris2*): Likewise.
3274         * config/sol26.h: Rename to config/sol2-6.h.
3275         * config/sol2-10.h: New file.
3276
3277 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
3278
3279         PR tree-opt/26781
3280         * tree-ssa-pre.c (create_component_ref_by_pieces):
3281         Handle STRING_CST.
3282
3283 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3284
3285         PR c++/26690
3286         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
3287         return it immediately.
3288
3289 2006-03-21  Michael Matz  <matz@suse.de>
3290
3291         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
3292         New members.
3293         (remove_arc, add_arc): Update num_out_arcs member.
3294         (set_out_arc_insns_equiv_num): Returns nothing instead of number
3295         of out arcs.
3296         (cache_presence): New function.
3297         (compare_states_for_equiv): New function.
3298         (state_is_differed): Don't take number of outargs, adjust callers.
3299         Use new invariant for speeding up.
3300         (init_equiv_class): Create initial classes based on sorted
3301         input.
3302         (partition_equiv_class): Don't track out_arcs_num.
3303         (evaluate_equiv_classes): Call cache_presence on all states and
3304         sort them.
3305
3306 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
3307
3308         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
3309         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
3310         (bfin_valid_reg_p): Test for pseudos explicitly and use only
3311         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
3312         callers changed.
3313         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
3314         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
3315         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
3316         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3317         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
3318         macros.
3319         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
3320         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
3321         (REGNO_REG_CLASS): ARGP is in PREGS.
3322         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
3323         IREGS.
3324         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
3325         to deal with those addresses.
3326         * addresses.h: New file.
3327         * caller-save.c: Include "addresses.h".
3328         (init_caller_save): Use new base_reg_class function.
3329         * rtl-factoring.c: Include "addresses.h".
3330         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
3331         * recog.c: Include "addresses.h".
3332         (preprocess_constraints): Use new base_reg_class function.
3333         * regrename.c: Include "addresses.h".
3334         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
3335         functions.  Keep track of a new var INDEX_CODE to compute valid
3336         classes.
3337         (replace_oldest_value_addr): Likewise.
3338         (replace_oldest_value_mem): Use base_reg_class.
3339         * reload.c: Include "addresses.h".
3340         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
3341         (find_reloads): Use new base_reg_class function.
3342         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
3343         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
3344         all callers and prototype changed.
3345         * reload1.c: Include "addresses.h".
3346         (maybe_fix_stack_asms): Use base_reg_class.
3347         * regclass.c: Include "addresses.h".
3348         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
3349         (init_reg_autoinc): Use new base_reg_class function.
3350         (record_reg_classes): Likewise.
3351         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
3352         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
3353         Use new args to compute necessary class.
3354
3355         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
3356         regrename.o, rtl-factoring.o): Update dependencies.
3357         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
3358         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
3359         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
3360         REG_OK_FOR_INDEX_P): Delete documentation.
3361
3362 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
3363
3364         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
3365         from V7 to V9 for Solaris 7 and above.
3366
3367 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
3368
3369         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
3370         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
3371         argument pointers may not alias any other storage.
3372         * common.opt: Define option -fargument-noalias-anything.
3373         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
3374         alias semantics is specified by flag_argument_noalias > 2.
3375
3376 2006-03-20  Jeff Law  <law@redhat.com>
3377
3378         * tree-pass.h (pass_phi_only_copy_prop): Delete.
3379         (pass_phi_only_cprop): Declare.
3380         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
3381         with phi_only_cprop
3382         * tree-ssa-dom.c (degenerate_phi_result): New function.
3383         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
3384         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
3385         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
3386         (eliminate_degenerate_phis): Likewise.
3387         (pass_phi_only_cprop): New pass descriptor.
3388         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
3389         support code.  Callers updated.
3390         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
3391         (store_copy_prop): Likewise.
3392         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
3393
3394 2006-03-20  Jason Merrill  <jason@redhat.com>
3395
3396         PR c++/21764
3397         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
3398         (push_visibility, pop_visibility): Likewise.
3399         * c-pragma.h: Declare them.
3400
3401 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3402
3403         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
3404
3405         * config/sh/sh.c (find_regmode_weight): Change the type of the first
3406         parameter and use get_ebb_head_tail.
3407         (sh_md_init_global): Adjust uses of find_regmode_weight.
3408
3409 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
3410
3411         * function.h (struct function) <x_tail_recursion_reentry>:
3412         Rename to x_stack_check_probe_note.
3413         (tail_recursion_reentry): Rename to stack_check_probe_note.
3414         * function.c: Replace tail_recursion_reentry with
3415         stack_check_probe_note everywhere.
3416         (expand_function_start): Only emit a note for
3417         stack_check_probe_note with -fstack-protect.
3418         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
3419
3420         * emit-rtl.c (remove_unnecessary_notes): Remove.
3421         (pass_remove_unnecessary_notes): Remove.
3422         * rtl.h (remove_unnecessary_notes): Remove prototype.
3423         * final.c (final_start_function): Don't call remove_unnecessary_notes.
3424         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
3425         * passes.c (pass_remove_unnecessary_notes): Don't run it.
3426
3427 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
3428
3429         PR tree-opt/26629
3430         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
3431         (valid_in_set): Handle ARRAY_REF.
3432         Change "if min_variant or VH" to asserts.
3433         (create_component_ref_by_pieces): Handle ARRAY_REF.
3434         (create_expression_by_pieces): Likewise.
3435         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
3436
3437 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
3438
3439         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
3440         is operand of switch, not str[0].
3441
3442 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
3443
3444         * config/rs6000/rs6000.c (rs6000_handle_option): Use
3445         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
3446
3447 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
3448
3449         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
3450         end of insn_extra_address_constraint declaration.
3451
3452 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
3453
3454         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
3455         (no-sum-in-toc): Same.
3456         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
3457         variables.
3458         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
3459         NO_FP_IN_TOC for -fPIC instead of mask.
3460
3461         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
3462         (BOOT_LDFLAGS): Delete.
3463         (LDFLAGS): Delete.
3464         * config/rs6000/t-aix52: Same.
3465
3466         * config/rs6000/rs6000.md (store_multiple_power): Delete.
3467         (stmsi[345678]_power): New.
3468
3469 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
3470
3471         * config/ia64/ia64.opt: Add empty line to end of file.
3472
3473 2006-03-17  Richard Guenther  <rguenther@suse.de>
3474
3475         PR middle-end/26721
3476         * builtins.c (get_pointer_alignment): For component style references
3477         adjust alignment to the component type alignment.  Make sure
3478         to adjust alignment for component access of constants.
3479
3480 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
3481
3482         * config/rs6000/rs6000.md (strlensi): Emit barrier after
3483         unconditional jump.
3484
3485 2006-03-17  Paul Brook  <paul@codesourcery.com>
3486
3487         * doc/install.texi: Docuemnt --with-mode.
3488         * config.gcc: Add --with-mode for arm*-*-*.
3489         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
3490
3491 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
3492
3493         * sh.c (max_labelno_before_reorg): New variable.
3494         (sh_reorg): Initialize it.
3495         (find_barrier): Check max_labelno_before_reorg before using
3496         label_to_alignment.  Take length of explicit alignment insns
3497         into account.  When seeing a UNSPECV_CONST_END, return it.
3498
3499         * sh.c (fixup_mova): Set mode of affected label to QImode.
3500         (untangle_mova): New function.
3501         (find_barrier): Use it.  Check mode of label before decrementing
3502         num_mova.
3503         (sh_reorg): Likewise.
3504         Set mode of all insns back to VOIDmode.
3505
3506         * sh.c (MOVA_LABELREF): New macro.
3507         (mova_p, fixup_mova, sh_reorg): Use it.
3508         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
3509         ADDR_DIFF_VEC matches mova.
3510
3511 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
3512
3513         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
3514         with ATTRIBUTE_UNUSED.
3515
3516 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
3517
3518         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
3519         pointer, instead of assuming it is possible to derive the
3520         correct args size from a call insn.
3521
3522 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3523
3524         * rtl.h (CONST_INT_P): Define.
3525         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
3526         instead of GET_CODE(x) == CONST_INT.
3527         (vax_rtx_costs): Likewise.
3528         (vax_output_int_move): Likewise.
3529         (vax_output_int_add): Likewise.
3530         (legitimate_constant_address_p): Likewise.
3531         (index_term_p): Likewise.
3532         * config/vax/vax.h (PRINT_OPERAND): Likewise.
3533         * config/vax/vax.md (and<mode>3): Likewise.
3534         (ashrsi3): Likewise.
3535         (extv): Likewise.
3536         (movstricthi): Likewise.
3537         (movstrictqi): Likewise.
3538         (rotrsi3): Likewise.
3539         (five unnamed insns): Likewise.
3540
3541 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
3542
3543         * doc/tm.texi (SDB and DWARF): Add extra parameter to
3544         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
3545         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
3546         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
3547         Pass to ASM_OUTPUT_DWARF_OFFSET.
3548         * dwarf2out.c (debug_frame_section): New.
3549         (output_call_frame_info): Use debug_frame_section.  Pass it to
3550         dw2_asm_output_offset.
3551         (output_die): Pass appropriate section to dw2_asm_output_offset.
3552         (output_compilation_unit_header): Likewise.
3553         (output_pubnames): Likewise.
3554         (output_aranges): Likewise.
3555         (enum dw_val_class): Break dw_val_class_lbl_offset into
3556         dw_val_class_lineptr and dw_val_class_macptr.
3557         (add_AT_lbl_offset): Delete.
3558         (add_AT_lineptr): New.
3559         (add_AT_macptr): New.
3560         (AT_lbl): Expect a lineptr or macptr.
3561         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
3562         (attr_checksum): Likewise.
3563         (same_dw_val_p): Likewise.
3564         (size_of_die): Likewise.
3565         (value_format): Likewise.
3566         (output_die): Likewise.
3567         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
3568         add_AT_lbl_offset.
3569         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3570         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
3571         * config/darwin-protos.h (darwin_file_start): New.
3572         (darwin_asm_output_dwarf_offset): New.
3573         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
3574         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
3575         darwin_file_start.
3576         * config/darwin.c (darwin_emit_unwind_label): Don't output label
3577         if not EH section; simplify.
3578         (darwin_file_start): New.
3579         (darwin_asm_output_dwarf_offset): New.
3580         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
3581         mark as 'debug'.
3582         (DEBUG_INFO_SECTION): Likewise.
3583         (DEBUG_ABBREV_SECTION): Likewise.
3584         (DEBUG_ARANGES_SECTION): Likewise.
3585         (DEBUG_MACINFO_SECTION): Likewise.
3586         (DEBUG_LINE_SECTION): Likewise.
3587         (DEBUG_LOC_SECTION): Likewise.
3588         (DEBUG_PUBNAMES_SECTION): Likewise.
3589         (DEBUG_STR_SECTION): Likewise.
3590         (DEBUG_RANGES_SECTION): Likewise.
3591         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
3592         (ASM_OUTPUT_DWARF_OFFSET): New.
3593
3594 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
3595
3596         * config.gcc (tm_defines): Always add to previous value rather
3597         than replacing it.
3598
3599 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
3600
3601         * config/mips/predicates.md (splittable_const_int_operand): New,
3602         split from move_operand.
3603         (splittable_symbolic_operand): New.
3604         (move_operand): Add commentary.  Use splittable_const_int_operand.
3605         Inline mips_atomic_symbolic_constant_p.
3606         * config/mips/mips.md: Add combine splitters for handling moves
3607         of splittable_const_int_operands and splittable_symbolic_operands.
3608         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
3609         (mips_split_symbol): Declare.
3610         (mips_move_integer): Declare.
3611         * config/mips/mips.c (mips_split_p): Make global.
3612         (TARGET_MIN_ANCHOR_OFFSET): Override default.
3613         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
3614         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
3615         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
3616         (mips_offset_within_object_p): Handle block symbols.
3617         (mips_atomic_symbolic_constant_p): Delete.
3618         (mips_cannot_force_const_mem): Return false for constants that
3619         mips_legitimize_move can handle.
3620         (mips_use_blocks_for_constant_p): New function.
3621         (mips_split_symbol): Make global.
3622         (mips_move_integer): Likewise.  Add a temporary register argument.
3623         (mips_legitimize_const_move): Use splittable_const_int_operand and
3624         splittable_symbolic_operand.
3625         (mips_use_anchors_for_symbol_p): New function.
3626         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
3627         (mips_split_p): Declare.
3628
3629 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
3630
3631         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
3632         (mips*-*-linux*): Likewise.
3633
3634 2006-03-16  Roger Sayle  <roger@eyesopen.com>
3635             Daniel Speyer  <dspeyer@wam.umd.edu>
3636
3637         PR middle-end/18259
3638         * tree-dump.c (dump_real): New function.
3639         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
3640         * Makefile.in (REAL_H): New macro for dependencies on real.h.
3641         (tree-dump.o): Add $(REAL_H) to the dependencies.
3642
3643 2006-03-16  Roger Sayle  <roger@eyesopen.com>
3644
3645         PR middle-end/21781
3646         * real.c (real_from_string): If the mantissa is zero, don't bother
3647         parsing the exponent as the result should always be zero.
3648
3649 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3650
3651         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
3652
3653 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3654
3655         * config/ia64/ia64.c (stops_p): Added explicit initialization.
3656         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
3657         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
3658         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
3659         ia64_sched_finish_global): New static functions to implement
3660         hooks from gcc_target.sched.
3661         (spec_check_no, max_uid, pending_data_specs): New static variables.
3662         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
3663         ia64_spec_check_src_p): New static functions.
3664         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
3665         (TARGET_SCHED_ADJUST_COST): Removed.
3666         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
3667         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
3668         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
3669         TARGET_SCHED_GEN_CHECK,
3670         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3671         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
3672         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
3673         Fixed to handle speculation checks.
3674         (rtx_needs_barrier): Fixed to handle speculative loads and
3675         their checks.
3676         (ia64_variable_issue): Added code to count speculative loads and their
3677         checks.
3678         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
3679         speculative loads.
3680         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
3681         New enumerations.
3682         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
3683         New constants.
3684         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
3685         (ia64_reorg): Reset stops_p to NULL after it is freed.
3686         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
3687         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
3688         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
3689         chk_a.
3690         (data_speculative, control_speculative, check_load): New attributes.
3691         (mov<mode>_advanced, mov<mode>_speculative,
3692         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
3693         zero_extend<mode>di2_speculative,
3694         zero_extend<mode>di2_speculative_advanced): New patterns for
3695         data and control speculative loads.
3696         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
3697         check loads.
3698         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
3699         New pattern for data and control speculation checks.
3700         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
3701         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
3702         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
3703         Auxiliary definitions for the patterns.
3704         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
3705         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
3706         constraints.
3707         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
3708         for speculation.
3709         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
3710         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
3711         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
3712         New resource constraints.
3713         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
3714         for speculation.
3715         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
3716         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
3717         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
3718         msched-in-control-spec, msched-ldc, msched-control-ldc,
3719         msched-spec-verbose, msched-prefer-non-data-spec-insns,
3720         msched-prefer-non-control-spec-insns,
3721         msched-count-spec-in-critical-path): New flags to tune speculative
3722         scheduling.
3723         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
3724         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
3725         msched-in-control-spec, msched-ldc, msched-control-ldc,
3726         msched-spec-verbose, msched-prefer-non-data-spec-insns,
3727         msched-prefer-non-control-spec-insns,
3728         msched-count-spec-in-critical-path): Document new flags.
3729
3730 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3731
3732         * target.h (struct spec_info_def): New opaque declaration.
3733         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
3734         speculate_insn, needs_block_p, gen_check,
3735         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
3736         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
3737         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
3738         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
3739         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3740         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
3741         gcc_target.sched.
3742         (TARGET_SCHED): Use new macros.
3743         * rtl.h (copy_DEPS_LIST_list): New prototype.
3744         * sched-int.h (struct sched_info): Change signature of new_ready field,
3745         adjust all initializations. New fields: add_remove_insn,
3746         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
3747         region_head_or_leaf_p.
3748         (struct spec_info_def): New structure declaration.
3749         (spec_info_t): New typedef.
3750         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
3751         recovery_block, orig_pat.
3752         (glat_start, glat_end): New variables declaraions.
3753         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
3754         New access macros.
3755         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
3756         DETACH_LIFE_INFO, USE_GLAT.
3757         (enum SPEC_SCHED_FLAGS): New enumeration.
3758         (NOTE_NOTE_BB_P): New macro.
3759         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
3760         attach_life_info, debug_spec_status, check_reg_live): New functions.
3761         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
3762         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
3763         sched-ebb.c
3764         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
3765         * ddg.c (get_block_head_tail): Adjust all uses.
3766         * modulo-sched.c (get_block_head_tail): Adjust all uses.
3767         (sms_sched_info): Initialize new fields.
3768         (contributes_to_priority): Removed.
3769         * haifa-sched.c (params.h): New include.
3770         (get_block_head_tail): Adjust all uses.
3771         (ISSUE_POINTS): New macro.
3772         (glat_start, glat_end): New global variables.
3773         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
3774         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
3775         old_last_basic_block, before_recovery, current_sched_info_var,
3776         rgn_n_insns, luid): New static variables.
3777         (insn_cost1): New function.  Move logic from insn_cost to here.
3778         (find_insn_reg_weight1): New function.  Move logic from
3779         find_insn_reg_weight to here.
3780         (reemit_notes, move_insn, max_issue): Change signature.
3781         (move_insn1): Removed.
3782         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
3783         extend_bb): New static functions to support extension of scheduler's
3784         data structures.
3785         (generate_recovery_code, process_insn_depend_be_in_spec,
3786         begin_speculative_block, add_to_speculative_block,
3787         init_before_recovery, create_recovery_block, create_check_block_twin,
3788         fix_recovery_deps): New static functions to support
3789         generation of recovery code.
3790         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
3791         restore_bb_notes, move_block_after_check, move_succs): New static
3792         functions to support ebb scheduling.
3793         (init_glat, init_glat1, attach_life_info1, free_glat): New static
3794         functions to support handling of register live information.
3795         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
3796         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
3797         add_jump_dependencies): New static functions.
3798         (check_cfg, has_edge_p, check_sched_flags): New static functions for
3799         consistancy checking.
3800         (debug_spec_status): New function to call from debugger.
3801         (priority): Added code to handle speculation checks.
3802         (rank_for_schedule): Added code to distinguish speculative instructions.
3803         (schedule_insn): Added code to handle speculation checks.
3804         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
3805         Fixed to handle ebbs.
3806         (move_insn): Added code to handle ebb scheduling.
3807         (max_issue): Added code to use ISSUE_POINTS of instructions.
3808         (choose_ready): Added code to choose between speculative and
3809         non-speculative instructions.
3810         (schedule_block): Added code to handle ebb scheduling and scheduling of
3811         speculative instructions.
3812         (sched_init): Initialize new variables.
3813         (sched_finish): Free new variables.  Print statistics.
3814         (try_ready): Added code to handle speculative instructions.
3815         * lists.c (copy_DEPS_LIST_list): New function.
3816         * sched-deps.c (extend_dependency_caches): New function.  Move logic
3817         from create_dependency_caches to here.
3818         (get_dep_weak, ds_merge): Make global.
3819         * genattr.c (main): Code to output prototype for
3820         dfa_clear_single_insn_cache.
3821         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
3822         (output_dfa_clean_insn_cache_func): Code to output
3823         dfa_clear_single_insn_cache function.
3824         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
3825         n_insns.
3826         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
3827         Removed.
3828         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
3829         New static variables.
3830         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
3831         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
3832         struct sched_info.
3833         (ebb_sched_info): Initialize new fields.
3834         (get_block_head_tail): Adjust all uses.
3835         (compute_jump_reg_dependencies): Fixed to use glat_start.
3836         (schedule_ebb): Code to remove unreachable last block.
3837         (schedule_ebbs): Added code to update register live information.
3838         * sched-rgn.c (region_sched_info): Initialize new fields.
3839         (get_block_head_tail): Adjust all uses.
3840         (last_was_jump): Removed.  Adjust users.
3841         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
3842         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
3843         Implement new hooks.
3844         (check_dead_notes1): New static function.
3845         (struct region): New fields: dont_calc_deps, has_real_ebb.
3846         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
3847         (BB_TO_BLOCK): Fixed to handle EBBs.
3848         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
3849         (ebb_head): New static variable.
3850         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
3851         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
3852         new fields.
3853         (compute_dom_prob_ps): New assertion.
3854         (check_live_1, update_live_1): Fixed to work with glat_start instead of
3855         global_live_at_start.
3856         (init_ready_list): New assertions.
3857         (can_schedule_ready_p): Split update code to begin_schedule_ready.
3858         (new_ready): Add support for BEGIN_CONTROL speculation.
3859         (schedule_insns): Fixed code that updates register live information
3860         to handle EBBs.
3861         (schedule_region): Fixed to handle EBBs.
3862         (init_regions): Use extend_regions and check_dead_notes1.
3863         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
3864         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
3865         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
3866         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
3867         TARGET_SCHED_GEN_CHECK,
3868         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
3869         TARGET_SCHED_SET_SCHED_FLAGS): Document.
3870         * doc/invoke.texi (max-sched-insn-conflict-delay,
3871         sched-spec-prob-cutoff): Document.
3872
3873 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3874
3875         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
3876         inter_tick, queue_index.
3877         (struct sched_info): Change signature of init_ready_list field.
3878         Adjust all initializations.
3879         (RESOLVED_DEPS): New access macro.
3880         (ready_add): Remove prototype.
3881         (try_ready): Add prototype.
3882         * sched-rgn.c (init_ready_list): Use try_ready.
3883         (schedule_region): Initialize
3884         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
3885         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
3886         (init_ready_list): Use try_ready.
3887         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
3888         * lists.c (remove_list_elem): Remove `static'.
3889         (remove_free_INSN_LIST_elem): New function.
3890         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
3891         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
3892         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
3893         New constants.
3894         (readyp): New variable.
3895         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
3896         change_queue_index, resolve_dep): New static functions.
3897         (try_ready): New function.  Adjust callers in sched-rgn.c and
3898         sched-ebb.c to use it instead of ready_add.
3899         (clock_var): Move at the begining of file.
3900         (rank_for_schedule): Fix typo.
3901         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
3902         (ready_lastpos): Enforce assertion.
3903         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
3904         update all callers.
3905         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
3906         (schedule_insn): Rewrite to use try_ready and resolve_dep.
3907         (queue_to_ready): Use free_INSN_LIST_list.
3908         (early_queue_to_ready): Fix typo.
3909         (schedule_block): Init readyp.  Move init_ready_list call after the
3910         initialization of clock_var.  Fix error in rejecting insn by
3911         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
3912         that previously corrected INSN_TICKs.  Add code for handling
3913         QUEUE_INDEX.
3914         (set_priorities): Fix typo.
3915         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
3916         Clarify comment and code that keeps current_sched_info->next_tail
3917         non-null.
3918
3919 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3920
3921         * sched-rgn.c (extend_rgns): New static function.
3922         (find_rgns): Use it.
3923         (gather_region_statistics, print_region_statistics): New static
3924         functions.
3925         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
3926         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3927
3928 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
3929             Andrey Belevantsev <abel@ispras.ru>
3930
3931         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
3932         * lists.c (unused_deps_list): New variable.
3933         (free_list): Add assertions to verify the proper distinguishing
3934         between INSN_LISTs and DEPS_LISTs.
3935         (find_list_elem, remove_list_elem, remove_list_node): New static
3936         functions.
3937         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
3938         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
3939         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
3940         (alloc_INSN_LIST): Assert that the list we're working on is indeed
3941         an INSN_LIST.
3942         (free_INSN_LIST_node): Likewise.
3943         * modulo-sched.c (current_sched_info): Initialize flags field.
3944         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
3945         * rtl.def (DEPS_LIST): Define.
3946         * rtl.h: Declare new functions from lists.c.
3947         * sched-deps.c (spec_dependency_cache): New static variable.
3948         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
3949         (add_dependence): Change return type to void.  Move the logic to ...
3950         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
3951         (delete_all_dependences): Add comment about forward_dependency_cache.
3952         Handle spec_dependency_cache.  Handle DEPS_LISTs.
3953         (fixup_sched_groups): Clarify the change of priority of output
3954         and anti dependencies.
3955         (sched_analyze_2): Adjust add_dependence calls to create data
3956         speculative dependence.
3957         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
3958         Adjust all callers.  Handle DEPS_LISTS.
3959         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
3960         presence of speculation.
3961         (init_dependency_caches, free_dependency_caches):
3962         Handle spec_dependency_cache.
3963         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
3964         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
3965         New static functions.
3966         (add_or_update_back_dep, add_or_update_back_forw_dep,
3967         add_back_forw_dep, delete_back_forw_dep): New functions.
3968         * sched-int.h (ds_t, dw_t): New typedefs.
3969         (struct sched_info): Add new field flags.
3970         (struct haifa_insn_data): Add new bitfield has_internal_dep.
3971         Prototype new sched-deps.c functions.
3972         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
3973         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
3974         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
3975         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
3976         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
3977         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
3978         New constants.
3979         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
3980         New enums.
3981         * sched-rgn.c (current_sched_info): Initialize flags field.
3982         (schedule_insns): Initialize current_sched_info before the sched_init
3983         call.
3984         * sched-ebb.c (current_sched_info): Initialize flags field.
3985         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
3986         Call add_or_update_back_dep instead of add_dependence.
3987         Create control speculative dependencies.
3988         (schedule_insns): Initialize current_sched_info before the sched_init
3989         call.
3990
3991 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3992
3993         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
3994         fs->signal_frame.
3995         (sh_fallback_frame_state): Likewise.
3996
3997 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
3998
3999         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
4000         Do switch on default_use_cxa_atexit.
4001         (powerpc*-*-darwin*): Build crt2.o on powerpc.
4002         * config/darwin-crt3.o: New.
4003         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
4004         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
4005         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
4006         OS version.
4007    &nbs