OSDN Git Service

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