OSDN Git Service

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