OSDN Git Service

* tree.c (max_int_size_in_bytes): New function, inspired from
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2006-06-23  Olivier Hainque  <hainque@adacore.com>
2
3         * tree.c (max_int_size_in_bytes): New function, inspired from
4         code in function.c:assign_temp.
5         * tree.h (max_int_size_in_bytes): Declare.
6         * function.c (assign_temp): Use it.
7         * gimplify.c (create_tmp_var): Relax the assertions on the type
8         properties, not mandating constant size any more.
9         (force_constant_size): New static function.
10         (gimple_add_tmp_var): Use it, forcing variable size to a
11         constant upper bound if it is not constant on entry.
12
13         * ada/misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
15
16 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
17
18         PR target/27789
19         * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
20         for initialization and setting of one_only flag to ...
21         (i386_pe_encode_section_info): ...here.
22         (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
23         Recheck that the symbol has not been defined.
24
25 2006-06-23  Richard Guenther  <rguenther@suse.de>
26
27         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
28         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
29         alignment requests instead.  Add verification code.
30         Add struct tree_function_decl and struct tree_binfo size to
31         extra_order_size_table.  Add missing element to size_lookup
32         table.
33
34 2006-06-22  Roger Sayle  <roger@eyesopen.com>
35             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36
37         PR middle-end/28131
38         * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
39         call to lang_hooks.types.type_for_mode returned NULL_TREE.
40
41 2006-06-23  Ben Elliston  <bje@au.ibm.com>
42
43         * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
44         negate dn -- manipulate it directly.
45
46 2006-06-22  Roger Sayle  <roger@eyesopen.com>
47             Steven Bosscher  <stevenb.gcc@gmail.com>
48
49         PR target/27531
50         * reload1.c (gen_reload): Call mark_jump_label on the new insns
51         generated by gen_move_insn to add REG_LABEL notes if necessary.
52
53 2006-06-22  Bob Wilson  <bob.wilson@acm.org>
54
55         * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
56         (leaf_entry): Remove use of MIN_ESA.
57
58 2006-06-22  Zdenek Dvorak <dvorakz@suse.cz>
59
60         PR rtl-optimization/28121
61         * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
62         the entry edge.
63
64 2006-06-21  DJ Delorie  <dj@redhat.com>
65
66         * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
67         (TN-16C-A156A/E).
68         (mulhisi3_r): Likewise.
69
70 2006-06-21  Richard Sandiford  <richard@codesourcery.com>
71
72         PR middle-end/28034
73         * coverage.c (coverage_counter_alloc): Leave the index type
74         unspecified.
75         (coverage_counter_alloc): Use null arguments for operands 2 and 3
76         of the ARRAY_REF.
77
78 2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>
79
80         * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
81         section from the "Options for Code Generation Conventions".
82
83 2006-06-21  Richard Henderson  <rth@redhat.com>
84
85         PR target/26347
86         PR target/27082
87         * config/alpha/predicates.md (small_symbolic_operand): Deny weak
88         symbols.
89         (global_symbolic_operand): Allow weak symbols, even if local_p.
90
91 2006-06-21  Eric Botcazou  <ebotcazou@adacore.com>
92
93         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
94         (find_interesting_uses_address): Punt if above function returns true.
95
96 2006-06-21  Richard Guenther  <rguenther@suse.de>
97
98         * configure: Regenerated.
99
100 2006-06-21  Joseph Myers  <joseph@codesourcery.com>
101
102         * config/mips/mips.c (function_arg): Where one part of a
103         complex argument is in registers and the other part in the stack,
104         return a REG not a PARALLEL.
105
106 2006-06-21  Mark Mitchell  <mark@codesourcery.com>
107
108         * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
109         when cross-compiling.  Do not substitute libstdcxx_incdir.
110         * configure: Regenerated.
111
112 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
113
114         * varasm.c (mergeable_string_section): Check for embedded NULs and
115         NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
116         rather than TREE_STRING_LENGTH bytes.
117
118 2006-06-21  Richard Guenther  <rguenther@suse.de>
119
120         * ggc-page.c (extra_order_size_table): Add var_ann_d,
121         tree_ssa_name, bitmap_element and phi_node with 4 arguments
122         sizes.
123
124 2006-06-21  Richrad Guenther  <rguenther@suse.de>
125
126         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
127         Limit iteration over the dominators.
128
129 2006-06-20  Roger Sayle  <roger@eyesopen.com>
130
131         * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
132         (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
133
134 2006-06-20  Richard Guenther  <rguenther@suse.de>
135         Michael Matz  <matz@suse.de>
136
137         * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
138         function.
139         * alloc-pool.c (free_alloc_pool_if_empty): New function.
140         * et-forest.h (et_free_pools): Prototype new function.
141         * et-forest.c (et_free_tree_force): Free parent occurrence. 
142         (et_free_pools): New function.
143         * dominance.c (free_dominance_info): Free et-forest alloc
144         pools.
145
146 2006-06-20  Roger Sayle  <roger@eyesopen.com>
147
148         * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
149         integer modes, attempt to directly construct an integer constant.
150
151         * fold-const.c (native_encode_vector): Determine the size of each
152         element from the vector type instead of the first vector element.
153
154         * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
155         if all of its elements/components are constant.
156         (build_constructor_from_list): Likewise.
157
158 2006-06-20  Zdenek Dvorak <dvorakz@suse.cz>
159
160         PR tree-optimization/27331
161         * tree-data-ref.c (free_data_ref): New function.
162         (create_data_ref): Fail if the data reference has unknown access
163         function.
164         (free_data_refs): Use free_data_ref.
165
166 2006-06-19  Andrew Pinski  <pinskia@gmail.com>
167
168         PR middle-end/28075
169         * tree-inline.c (setup_one_parameter): Strip useless
170         type conversion before adding it to the IR.
171         (declare_return_variable): Likewise.
172
173 2006-06-19  Martin Michlmayr  <tbm@cyrius.com>
174
175         PR c/27149
176         * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
177
178 2006-06-19  Mike Stump  <mrs@apple.com>
179
180         * tree.c (variably_modified_type_p): VM arguments don't make the
181         type a VM type.
182
183 2006-06-19  Richard Guenther  <rguenther@suse.de>
184
185         * tree-ssa-pre.c (try_combine_conversion): Strip useless
186         type conversions after folding.
187
188 2006-06-19  Richard Guenther  <rguenther@suse.de>
189
190         * ggc-page.c (extra_order_size_tab): Add entries with
191         size of struct function and basic_block.
192         (size_lookup): Extend to cover sizes up to 511.
193         (ggc_alloc_stat): Adjust user.
194         (ggc_pch_count_object): Likewise.
195         (ggc_pch_alloc_object): Likewise.
196         (ggc_pch_write_object): Likewise.
197
198 2006-06-19  Zdenek Dvorak <dvorakz@suse.cz>
199
200         * tree-ssa-loop-niter.c (implies_ge_p): New function.
201         (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
202         correctly.
203
204 2006-06-19  Denis Chertykov  <denisc@overta.ru>
205
206         * config/avr/libgcc.S : Correct my wrong previous commit.
207
208 2006-06-19  Roger Sayle  <roger@eyesopen.com>
209
210         PR target/27861
211         * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
212         have stripped a SUBREG from the shift count, so we may need to
213         convert_to_mode back to the type's mode before calling make_tree.
214         Use new_amount instead of amount to avoid expanding a tree twice.
215
216 2006-06-19  Richard Guenther  <rguenther@suse.de>
217
218         PR middle-end/28045
219         * fold-const.c (operand_equal_p): Check if the argument types
220         have the same precision before stripping NOPs.
221
222 2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
223
224         Fix PR tree-optimization/27341
225         * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
226         statement we get.
227         * tree-complex.c (pass_lower_complex): Update SMT usage.        
228
229 2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
230
231         * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"): 
232         Add a new alternative to the constraint strings. Add move of
233         operand 1 to 3 to the splitter definition.
234         ("doloop_si_long"): Second contraint alternative removed.
235
236 2006-06-08  Anatoly Sokolov <aesok@post.ru>
237
238         * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
239         (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and 
240         __AVR_HAVE_LPMX__.
241         (AVR_HAVE_MOVW) Define.
242         (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
243         (ASM_SPEC): Add avr25.
244         (LINK_SPEC): Add avr25.
245         * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
246         (base_arch_s): Add new member 'have_movw_lpmx'.
247         (avr_arch_types): Init 'have_movw_lpmx'.
248         (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
249         attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
250         attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
251         (avr_override_options): Init 'avr_have_movw_lpmx_p'.
252         (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use 
253         AVR_HAVE_MOVW.
254         (avr_file_start): Do not output '.arh' derective.
255         * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
256         (__do_copy_data): Use __AVR_HAVE_LPMX__.
257         * config/avr/avr.md (mcu_enhanced): Delete.
258         (mcu_have_movw): Define.
259         (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
260         (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
261         * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
262         (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
263         attiny84, attiny25, attiny45, attiny85, attiny261, attiny461, 
264         attiny861 and at86rf401 devices.
265
266 2006-06-18  Jie Zhang  <jie.zhang@analog.com>
267
268         * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
269         of 4096.
270
271 2006-06-17  Karl Berry  <karl@gnu.org>
272
273         * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
274         doc/gccint.texi, doc/install.texi (@dircategory): Use
275         "Software development" instead of "Programming", following
276         the Free Software Directory.
277
278 2006-06-17  Alexandre Oliva  <aoliva@redhat.com>
279
280         * config/i386/i386.c (legitimate_tls_address)
281         <TARGET_GNU2_TLS>: Add tp after DTPOFF.
282         * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
283         (*tls_dynamic_gnu2_combine_64): Likewise.
284
285 2006-06-16  Richard Guenther  <rguenther@suse.de>
286
287         PR middle-end/27116
288         * fold-const.c (negate_expr_p): Do not introduce undefined
289         overflow in negating INTEGER_CSTs.
290         (fold_negate_expr): Rename from negate_expr.  Revert last
291         change for folding BIT_NOT_EXPR.  Change semantics to
292         return NULL_TREE for non-simplified negations.  Do not
293         strip type conversions and unify type handling.
294         (negate_expr): New function, wrap around fold_negate_expr
295         but ensure building a tree always.  Strip type conversions
296         here, fold to result type.
297         (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
298
299 2006-06-16  Roger Sayle  <roger@eyesopen.com>
300
301         PR middle-end/27802
302         * reg-stack.c (subst_stack_regs): Handle noreturn function calls
303         that (would) return their results in stack registers.
304
305 2006-06-16  Michael Matz  <matz@suse.de>
306         Richard Guenther  <rguenther@suse.de>
307
308         * fold-const.c (fold_truthop): Only return new tree node if
309         we canonicalized something.
310
311 2006-06-16  Richard Guenther  <rguenther@suse.de>
312
313         * function.h (enum function_frequency): Move declaration
314         out of struct function.
315         (struct function): Move bool fields and the enum to the bitfield
316         section.  Reorder elements to avoid padding.  Remove unused
317         fields left over from the RTL inliner removal.
318         * function.c (free_after_compilation): Do not zero removed fields.
319         * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
320         (ipa-type-escape.o): Likewise.
321
322 2006-06-16  Richard Guenther  <rguenther@suse.de>
323
324         * cgraph.h (struct cgraph_local_info): Turn bool elements
325         into a bitfield.
326         (struct cgraph_node): Likewise.
327         (struct cgraph_varpool_node): Likewise.
328
329 2006-06-15  Richard Guenther  <rguenther@suse.de>
330
331         * fold-const.c (fold_truth_not_expr): Rename from
332         invert_truthvalue.  Give it fold_* semantics to avoid
333         generating garbage.
334         (invert_truthvalue): New function.  Wrapper around
335         fold_truth_not_expr.
336         (optimize_minmax_comparison): Avoid creating garbage.
337         (fold_unary): Use fold_truth_not_expr for folding
338         TRUTH_NOT_EXPR.
339         (fold_ternary): Replace uses of invert_truthvalue with
340         fold_truth_not_expr where applicable.
341         * tree.h (fold_truth_not_expr): Prototype.
342
343 2006-06-16  Richard Guenther  <rguenther@suse.de>
344
345         PR tree-optimization/27781
346         * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
347         * ipa-pure-const.c (target.h): Include.
348         (analyze_function): Do not analyze functions that do not
349         bind locally.
350
351 2006-06-15  Andrew MacLeod  <amacleod@redhat.com>
352         
353         PR middle-end/27793
354         * tree-dfa.c (referenced_vars_dup_list): Remove.
355         (find_referenced_vars): Remove assert.
356         (referenced_var_check_and_insert): Replace dup list with assert.
357         * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
358         * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
359
360 2006-06-15  Richard Guenther  <rguenther@suse.de>
361
362         * tree-ssa-structalias.c (alias_get_name): Avoid creating
363         extra unused identifiers if not dumping.
364         (create_variable_info_for): Likewise.
365
366 2006-06-15  Zdenek Dvorak <dvorakz@suse.cz>
367
368         * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
369         (derive_constant_upper_bound): Derive more precise upper bound in
370         common cases.  Return type changed to double_int.
371         (record_estimate): Reflect the changed return type of
372         derive_constant_upper_bound.
373         * double-int.c (double_int_zext, double_int_sext): Fix.
374
375 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
376
377         * configure.ac (CFLAGS): Get them from the toplevel or from the
378         configure invocation.
379         * configure: Regenerate.
380         * Makefile.in (CFLAGS): Substitute value provided by configure.
381
382 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
383
384         PR c++/26559
385         * c-common.h (c_finish_omp_atomic): Adjust declaration.
386         * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
387         rather than calling add_stmt on it.
388         * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
389
390 2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>
391
392         PR middle-end/27959
393         * reload1.c (reload): Remove registers returned by update_eliminables
394         from used_spill_regs.
395
396 2006-06-13  DJ Delorie  <dj@redhat.com>
397
398         * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
399
400 2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>
401
402         * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
403         html__strip_dir, html__mkdir_p. Enhance install-html target.
404         * configure.ac: AC_SUBST datarootdir, docdir and htmldir. 
405         * configure: Regenerate.
406
407 2006-06-13  Fariborz Jahanian <fjahanian@apple.com>
408
409         * fold-const.c (fold_cond_expr_with_comparison): Check for 
410         Objective-C++ as language in deciding COND_EXPR transformation.
411
412 2006-06-06  J"orn Rennecke <joern.rennecke@st.com>
413
414         PR target/28014:
415         * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
416         * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
417         * config/sh/lib1funcs.h (SL, SL1): Define.
418         * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
419         * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
420         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
421         (OBJS_Os_4_200): New variable.
422         ($(T)libgcc-Os-4-200.a): Use it.
423         * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
424         when dividing 1 and/or by 0.
425
426 2006-06-13  Roger Sayle  <roger@eyesopen.com>
427
428         * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
429         before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
430         * configure: Regenerate.
431
432 2006-06-13  Jie Zhang  <jie.zhang@analog.com>
433
434         * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
435         for real instruction.
436
437 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
438
439         PR middle-end/26807
440         * haifa-sched.c (check_cfg): Handle special case.
441
442 2006-06-13  Eric Botcazou  <ebotcazou@adacore.com>
443
444         PR debug/26754
445         * gimplify.c (declare_tmp_vars): Rename into declare_vars.
446         Add debug_info parameter.  Chain the vars to the BLOCK instead
447         of the BIND_EXPR if debug info are requested for them.
448         (pop_gimplify_context): Adjust for above change.
449         (gimple_add_tmp_var): Likewise.
450         * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
451         Add bool parameter.
452         * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
453         (convert_local_reference): Likewise.
454         (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
455         (finalize_nesting_tree_1): Request that debug info be emitted
456         for debug_var_chain.
457
458 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
459
460         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
461         for PR target/27863.
462
463 2006-06-13  Richard Guenther  <rguenther@suse.de>
464
465         PR middle-end/27536
466         * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
467
468 2006-06-13  Richard Guenther  <rguenther@suse.de>
469
470         PR tree-optimization/27830
471         * tree-inline.c (copy_body_r): For copying the operand
472         of an ADDR_EXPR make sure to fold &* afterwards.
473
474 2006-06-12  Eric Botcazou  <ebotcazou@adacore.com>
475
476         * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
477         lvalues in the fb_none case with side-effects.
478
479 2006-06-12  Kazu Hirata  <kazu@codesourcery.com>
480
481         * tree-flow.h: Remove the prototype for
482         compute_phi_arg_on_exit.
483         * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
484         protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
485         Remove.
486
487 2006-06-12  Mark Shinwell  <shinwell@codesourcery.com>
488
489         * builtins.c (expand_builtin_return_addr): Only use
490         frame_pointer_rtx when count == 0 and we are expanding
491         __builtin_return_address.
492
493 2006-06-12  Fred Fish  <fnf@specifix.com>
494
495         * config/mips/mips.c (mips_file_start): Create special section
496         ".gcc_compiled_longXX" for o64 ABI as well as EABI.
497
498 2006-06-11  Eric Christopher  <echristo@apple.com>
499
500         PR middle-end/27948
501         * stor-layout.c (place_field): Remove check for
502         remaining_in_alignment when aligning at the end of a run.
503
504 2006-06-11  Eric Christopher  <echristo@apple.com>
505
506         PR 27542
507         * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
508         pragma.
509
510 2006-06-11  Roger Sayle  <roger@eyesopen.com>
511
512         PR target/27858
513         Revert incorrect fix for PR target/27158
514         2006-05-08  Roger Sayle  <roger@eyesopen.com>
515         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
516         of a reg_equiv_constant if the result is a legitimate constant.
517
518 2006-06-11  Roger Sayle  <roger@eyesopen.com>
519
520         PR target/27158
521         * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
522         extract a CONST_VECTOR element and interpret it as an integer.
523         (vspltis_constant): Use const_vector_elt_as_int instead of the
524         macro CONST_VECTOR_ELT in order to handle FP vector modes.
525         * config/rs6000/predicates.md (easy_vector_const): Consider
526         floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
527
528 2006-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
529
530         PR middle-end/27942
531         * stor-layout.c (update_alignment_for_field): Don't add extra
532         alignment for packed non-bitfield fields in ms_bitfield_layout_p
533         code.
534
535 2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>
536
537         * config/mips/t-rtems: Add EL/EB multilib variants.
538
539 2006-06-09  Mike Stump  <mrs@apple.com>
540
541         * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
542
543 2006-06-09  David Daney  <ddaney@avtrex.com>
544
545         * doc/install.texi: Add binutils version recommendation for mips-*-*.
546
547 2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>
548
549         * reload.c (find_reloads): Unset force_reload for 'X' constraint.
550
551 2006-06-09  Richard Guenther  <rguenther@suse.de>
552
553         PR tree-optimization/26998
554         * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
555         of signed types, only TYPE_MIN_VALUE is special, but for both,
556         minimum and maximum value.  Likewise VR_ANTI_RANGE is special
557         in this case, as is -fwrapv.
558
559 2006-06-08  Mike Stump  <mrs@apple.com>
560
561         PR target/26427
562         * config/darwin.c (darwin_asm_output_anchor): Disable
563         -fsection-anchors on darwin for now.
564         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
565         * rs6000/rs6000.c (optimization_options): Likewise.
566
567 2006-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
568
569         PR target/27421
570         * config/i386/i386.c (classify_argument): Skip fields with invalid
571         types in unions.
572
573 2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
574
575         * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
576         (cse_insn): Likewise for the stack_pointer_rtx.
577
578 2006-06-08  Roger Sayle  <roger@eyesopen.com>
579
580         * tree-ssa-dom.c (record_conditions): Only record "unordered"
581         conditions from floating point comparisons.
582
583 2006-06-08  Paolo Bonzini  <bonzini@gnu.org>
584
585         PR middle-end/27733
586         * expmed.c (struct alg_hash_entry): Fix type of field T
587         to match synth_mult argument.
588         (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
589
590 2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
591
592         PR target/27863
593         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
594         block boundaries.
595
596 2006-06-08  Richard Guenther  <rguenther@suse.de>
597
598         PR middle-end/27116
599         * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
600         only, if overflow is defined and not trapping.
601         (negate_expr): Likewise.
602
603 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
604
605         PR tree-optimization/27872
606         * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
607         flag on the new exit edge of the unrolled loop.
608
609 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
610
611         PR rtl-optimization/26449
612         * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
613
614 2006-06-07  Andrew MacLeod  <amacleod@redhat.com>
615
616         PR middle-end/27793
617         * tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
618         referenced_variables with matching DECL_UID's.
619         (find_referenced_vars): Make sure duplicate list is empty to start.
620         (referenced_var_p): Remove.
621         (referenced_var_check_and_insert): Renamed from referenced_var_insert.
622         Check if var is in the list, and add if needed.  Update the duplicate
623         list if a different var is in the list with the same DECL_UID.
624         (add_referenced_var): Call routine to check and insert.
625         * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
626         * tree-flow.h (referenced_vars_dup_list): External declaration.
627
628 2006-06-07  Fred Fish  <fnf@specifix.com>
629
630         * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
631         into single entry.
632
633 2006-06-07  Paolo Bonzini  <bonzini@gnu.org>
634
635         PR target/27390
636         * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
637         the imaginary and real parts of a clobbered register.
638         Emit insn to set the imaginary part.
639
640 2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>
641
642         * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
643         in lieu of unwind-dw2-fde.c.
644
645 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
646
647         * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
648
649 2006-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
650
651         PR target/27842
652         * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
653         ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
654         ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
655         V4SImode temporaries and operations instead.
656
657 2006-06-06  Joseph S. Myers  <joseph@codesourcery.com>
658
659         * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
660         dp-bit.c.
661
662 2006-06-06  Mike Stump  <mrs@apple.com>
663
664         * Makefile.in: Rename to htmldir to build_htmldir to avoid
665         installing during build.
666
667 2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
668
669         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
670         value to 0.
671         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
672         * config/ia64/ia64.c (params.h): New header.
673         (ia64_optimization_options): New function to adjust parameters.
674         * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
675         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
676         * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
677
678 2006-06-05  Kazu Hirata  <kazu@codesourcery.com>
679
680         * stor-layout.c (debug_rli): Fix a typo in a debug message.
681
682 2006-06-05  Steve Ellcey  <sje@cup.hp.com>
683
684         PR target/27051
685         * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
686
687 2006-06-05  Dorit Nuzman  <dorit@il.ibm.com>
688             Victor Kaplansky  <victork@il.ibm.com>
689
690         PR tree-optimization/26360
691         * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
692         stmts.
693
694 2006-06-04  Roger Sayle  <roger@eyesopen.com>
695             Andrew Pinski  <pinskia@physics.uc.edu>
696
697         PR middle-end/27382
698         * c-common.c (c_common_truthvalue_conversion): Explicitly check
699         for LABEL_DECL before calling DECL_WEAK.
700
701         PR c/27150
702         * c-typeck.c (build_binary_op): Likewise, explicitly check for
703         LABEL_DECL and PARM_DECL.
704
705 2006-06-05  Joseph S. Myers  <joseph@codesourcery.com>
706
707         PR c/25161
708         PR c/27020
709         * c-decl.c (grokdeclarator): Disallow variably modified types at
710         file scope.  Avoid marking shared array type of constant size as
711         VLA.
712
713 2006-06-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
714
715         PR c++/27601
716         * c-common.c (fold_offsetof_1): Handle static members.
717
718 2006-06-04 Eric Christopher <echristo@apple.com>
719
720         * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
721         (debug_rli): Output value for remaining_in_alignment.
722         (update_alignment_for_field): Unconditionalize
723         ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
724         extra alignment code.
725         (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
726         ms_bitfield_layout_p code. Rewrite handling of structure fields.
727         * tree.h (record_layout_info_s): Remove prev_packed.
728         * doc/extend.texi (ms_struct): Add documentation of format.
729
730 2006-06-04  Mark Shinwell  <shinwell@codesourcery.com>
731
732         * tree.h: Declare folding_initializer.
733         * builtins.c (fold_builtin_constant_p): Give definite answer
734         if folding inside an initializer.
735         * fold-const.c: Define folding_initializer.
736         (START_FOLD_INIT): Save and then set folding_initializer.
737         (END_FOLD_INIT): Restore folding_initializer.
738
739 2006-06-04  Richard Guenther  <rguenther@suse.de>
740
741         PR tree-optimization/27039
742         * fold-const.c (fold_comparison): Handle pointer comparison
743         again for all comparison codes.  Compare offsets in signed
744         size type.
745         (fold_binary): Move code from here.
746
747 2006-06-03  Roger Sayle  <roger@eyesopen.com>
748
749         PR target/26223
750         * config/i386/i386.c (construct_container): Split static issued_error
751         flag into issued_sse_arg_error, issued_sse_ret_error and
752         issued_x87_ret_error.  Issue a daignostic if the x86-64 ABI
753         requires the use of x87 registers and the user explicitly
754         specified the -mno-80387 command line option.
755
756 2006-06-02  Geoffrey Keating  <geoffk@apple.com>
757
758         * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
759         HAVE_DECL_SIGALTSTACK.
760         (MC_FLD): New.
761         (segv_handler): Use MC_FLD.
762         * configure.ac: Check for a sigaltstack declaration.
763         Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
764         * configure: Regenerate.
765         * config.in: Regenerate.
766
767 2006-06-03  J"orn Rennecke <joern.rennecke@st.com>
768
769         PR other/27850
770         * Makefile.in (stmp-fixinc): Fix typo.
771
772 2006-06-02  Roger Sayle  <roger@eyesopen.com>
773
774         * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
775         are type correct.  Clean-up.
776         <REALPART_EXPR>: Likewise.  Optimize creal(~z) as creal(z).
777         <IMAGPART_EXPR>: Likewise.  Optimize cimag(~z) as -cimag(z).
778
779 2006-06-01  DJ Delorie  <dj@redhat.com>
780
781         * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
782         shift, as we've disabled the "switch" insn that needs it.
783
784 2006-06-01  Per Bothner  <bothner@bothner.com>
785
786         Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
787         * c-opts.c (finish_options): Use internal line 0 for <command-line>.
788         * c-ppoutput.c (cb_define): Don't increment line 0.
789
790 2006-06-01  Pete Steinmetz  <steinmtz@us.ibm.com>
791
792         * doc/invoke.texi: Add cpu_type power6.
793         * config.gcc: Add cpu_type power6.
794         * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
795         to power5+ with Altivec.
796         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
797         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
798
799 2006-05-30  Anatoly Sokolov <aesok@post.ru>
800
801         * config/avr/avr.h (SET_ASM_OP): Define.
802
803 2006-06-01  Kazu Hirata  <kazu@codesourcery.com>
804
805         * config/bfin/bfin.c: Fix comment typos.
806
807 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
808
809         PR 25453
810         * doc/install.texi: Document --enable-bootstrap and
811         --disable-bootstrap.
812
813 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
814
815         * doc/install.texi: Document that InfoZIP can replace jar.
816
817 2006-05-31  Roger Sayle  <roger@eyesopen.com>
818
819         * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
820         isn't available, directly generate the simpler x87 patterns without
821         the (use (const_int 0)).
822         * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
823         implementation isn't available.
824         (*negdf2_1): Likewise.
825         (*negxf2_1): XF mode negation is always done using the x87.
826         (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
827
828 2006-05-31  Roger Sayle  <roger@eyesopen.com>
829
830         * builtins.c (fold_builtin_cabs): Delete prototype.  Require an
831         additional FNDECL argument.  Optimize cabs(-z) and cabs(~z) as
832         cabs(z).
833         (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
834
835 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
836
837         * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
838         * config/bfin/bfin.c (basic-block.h): Include.
839         (struct machine_function): New.
840         (bfin_init_machine_status): New.
841         (override_options): Initialize init_machine_status.
842         (bfin_hardware_loop): New.
843         (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
844         (DEF_VEC_P (loop_info)): New.
845         (DEF_VEC_ALLOC_P (loop_info,heap)): New.
846         (struct loop_info): New.
847         (loop_info): New typedef.
848         (struct loop_work): New.
849         (loop_work): New typedef.
850         (DEF_VEC_O (loop_work)): New.
851         (DEF_VEC_ALLOC_O (loop_work,heap)): New.
852         (bfin_dump_loops): New.
853         (bfin_bb_in_loop): New.
854         (bfin_scan_loop): New.
855         (bfin_optimize_loop): New.
856         (bfin_reorg_loops): New.
857         (bfin_reorg): Use bfin_reorg_loops.
858         * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
859         loop registers.
860         (I_REGNO_P): Simplify.
861         (DP_REGNO_P, DPREG_P): New macros.
862         (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
863         REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
864         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
865         Add LT_REGS, LC_REGS, LB_REGS.
866         (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
867         'l' for LB_REGS.
868         (REGNO_REG_CLASS): Deal with loop registers.
869         * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
870         letters.
871         (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
872         New constants for loop registers.
873         (UNSPEC_LSETUP_END): New.
874         (seq_insns): New define_attr. Set it for appropriate insns.
875         (movsi_insn): Add alternatives for move from/to
876         loop count registers.
877         (doloop_end): New define_expand.
878         (loop_end): New define_insn.
879         (define_split for bad doloop_end): New.
880         (lsetup_with_autoinit): New define_insn.
881         (lsetup_without_autoinit): New define_insn.
882         (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
883         * config/bfin/predicates.md (lc_register_operand): New.
884         (lt_register_operand): New.
885         (lb_register_operand): New.
886         (nondp_register_operand): New.
887         (nondp_reg_or_memory_operand): New.
888         * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
889
890 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
891
892         * config/bfin/bfin.c (bfin_delegitimize_address): New.
893         (TARGET_DELEGITIMIZE_ADDRESS): Define.
894
895 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
896
897         * Makefile.in (CATALOGS): Add po/ prefix.
898         * configure: Regenerated.
899
900 2006-05-31  Richard Earnshaw  <richard.earnshaw@arm.com>
901
902         PR target/27829
903         * arm.c (arm_print_operand case 'S'): Validate that the operand is
904         a shift operand before calling shift_op.  Avoid redundant call of
905         shift_op.
906
907 2006-05-30  Naveen.H.S  <naveenh@kpitcummins.com>
908             DJ Delorie  <dj@redhat.com>
909
910         * config/m32c/m32c.c (m32c_expand_insv): Check that the value
911         we're inserting is a singlt-bit constant.
912
913 2006-05-30  Roger Sayle  <roger@eyesopen.com>
914
915         * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
916         width to HOST_WIDE_INT to avoid comparison warnings on some targets.
917
918 2006-05-30  Roger Sayle  <roger@eyesopen.com>
919
920         PR tree-optimization/23452
921         * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
922         to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
923         (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
924         complex values and with -ffast-math for FP complex values.
925
926 2006-05-30  Kazu Hirata  <kazu@codesourcery.com>
927
928         * c-common.h: Remove the prototype for yyparse.
929         * rtl.h: Remove the prototype for init_loop.
930
931 2006-05-30  Andreas Krebbel  <krebbel1@de.ibm.com>
932
933         * cse.c (validate_canon_reg, cse_insn): Don't change insns without
934         calling recog.
935
936 2006-05-30  Roger Sayle  <roger@eyesopen.com>
937
938         * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
939         and rotate cases.
940         <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
941         log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
942
943 2006-05-30  Dirk Mueller  <dmueller@suse.de>
944
945         PR c/27273
946         * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
947         for CONSTANT_CLASS_P expresisons.
948
949 2006-05-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
950
951         PR c/27718
952         * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
953
954 2006-05-30  Zdenek Dvorak <dvorakz@suse.cz>
955
956         PR tree-optimization/27779
957         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
958         initial_condition instead of CHREC_LEFT.
959
960 2006-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
961
962         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
963         * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
964         Make prototypes ISO C90.
965
966 2006-05-30  Mircea Namolaru  <namolaru@il.ibm.com>
967             Leehod Baruch    <leehod.baruch@weizmann.ac.il>
968
969         * see.c (see_analyze_one_def): Correct check.
970         (see_get_extension_data): Check if extension is parallel.
971         (see_get_extension_reg): Likewise.
972
973 2006-05-30  Uros Bizjak  <uros@kss-loka.si>
974
975         PR target/27790
976         * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
977         into register for (code == GTU).
978
979 2006-05-29  Roger Sayle  <roger@eyesopen.com>
980
981         PR tree-optimization/24964
982         * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
983         <MULT>: Minor clean-up.  Don't convert x*-1.0 into -x if we honor
984         signaling NaNs.  Optimize -x*-x as x*x for all float modes, and
985         abs(x)*abs(x) as x*x for scalar floating point modes.
986
987 2006-05-29  Sebastian Pop  <pop@cri.ensmp.fr>
988
989         PR middle-end/27745
990         * lambda-code.c (perfect_nestify): Don't copy statements
991         in the inner loop: move them to the inner loop header.
992
993 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
994
995         PR 26237
996         * c-tree.texi: Document OpenMP directives and clauses.
997
998 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
999
1000         * varasm.c (globalize_decl): Fix indentation.
1001
1002 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
1003
1004         PR 26242
1005         * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
1006         pass_fre, pass_store_ccp, pass_copy_prop,
1007         pass_store_copy_prop, pass_merge_phi, pass_nrv,
1008         pass_return_slot, pass_object_size, pass_lim,
1009         pass_linear_transform, pass_empty_loop, pass_complete_unroll,
1010         pass_loop_prefetch and pass_stdarg.
1011
1012 2005-05-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1013
1014         * config/bfin/bfin.opt (mfdpic): New option.
1015         * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
1016         (EXTRA_MULTILIB_PARTS): Likewise.
1017         (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
1018         (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
1019         multilib.
1020         * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
1021         (CRT_CALL_STATIC_FUNCTION): New.
1022         * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
1023         -shared.
1024         (CRT_CALL_STATIC_FUNCTION): New.
1025         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Handle
1026         FD-PIC moves.
1027         (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
1028         (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
1029         (initialize_trampoline): Changed to handle FD-PIC code generation.
1030         (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
1031         (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
1032         (override_options): Disallow -mid-shared-library -mfdpic combination.
1033         Can't do unaligned ops if FD-PIC.
1034         Turn off flag_pic if trying to generate non-id-shared-library
1035         non-fdpic code, since it's not supported.
1036         (bfin_assemble_integer): New function.
1037         (TARGET_ASM_INTEGER): Define.
1038         * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
1039         __BFIN_FDPIC__.
1040         * config/bfin/crtn.s: Restore them.
1041         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
1042         if TARGET_FDPIC.
1043         (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1044         LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
1045         (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
1046         (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
1047         (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
1048         call-used.
1049         (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
1050         FDPIC_REGS and FDPIC_FPTR_REGS.
1051         (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
1052         * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
1053         UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
1054         (load_funcdescsi): New pattern.
1055         (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
1056         sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
1057         call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
1058
1059 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
1060
1061         * gcse.c, rtlanal.c: Remove obsolete comments associated with
1062         loop.c.
1063
1064         * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
1065
1066         * tree-flow.h: Remove the prototype for add_type_alias.
1067         * tree-ssa-alias.c (add_type_alias): Remove.
1068
1069 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
1070
1071         * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
1072         config/fr30/fr30.md, config/i386/i386-interix.h,
1073         config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
1074         config/sh/superh64.h, config/v850/v850.c, df-core.c,
1075         df-problems.c, df.h, except.c, final.c, haifa-sched.c,
1076         lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
1077         reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
1078         tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
1079         Follow spelling conventions.
1080         * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
1081         Follow spelling conventions.
1082
1083 2006-05-27  Richard Guenther  <rguenther@suse.de>
1084
1085         PR middle-end/27773
1086         * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
1087         to produce a constant of value 1 of generic type.
1088
1089 2006-05-27  Dirk Mueller  <dmueller@suse.de>
1090
1091         * cgraphunit.c (decide_is_function_needed): Fix wrong
1092         PR reference.
1093
1094 2006-05-26  Ulrich Weigand  <uweigand@de.ibm.com>
1095
1096         PR rtl-optimization/27661
1097         * reload.c (find_reloads): When reloading a VOIDmode constant
1098         as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
1099         use Pmode as mode of the reload register.
1100
1101 2006-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1102
1103         * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
1104         is enabled at -O and above.
1105
1106 2006-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1107
1108         PR target/27571
1109         * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
1110         table data.
1111
1112 2006-05-25  Mark Mitchell  <mark@codesourcery.com>
1113
1114         PR c++/20103
1115         * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
1116         for anonymous variables explicitly declared by front ends.
1117
1118 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1119
1120         * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
1121         (struct alias_info): Add new field ref_all_symbol_mem_tag.
1122         * tree-ssa-alias.c (compute_may_aliases): If the program contains
1123         ref-all pointers, run a finalization pass for them.
1124         (compute_flow_insensitive_aliasing): Skip ref-all pointers.
1125         (finalize_ref_all_pointers): New function.
1126         (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
1127         regular pointer type to a ref-all pointer type.
1128         (get_tmt_for): Return the special memory tag for ref-all pointers.
1129
1130 2006-05-25  Richard Guenther  <rguenther@suse.de>
1131
1132         PR middle-end/27743
1133         * fold-const.c (fold_binary): Do not look at the stripped
1134         op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
1135
1136 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1137
1138         * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
1139         for LT and GT if the computed range is effectively empty.
1140
1141 2006-05-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1142
1143         PR target/27627
1144         * pa/pa-modes.def: Use mips_single_format, mips_double_format and
1145         mips_quad_format formats instead of ieee_single_format,
1146         ieee_double_format and ieee_quad_format formats, respectively.
1147
1148 2006-05-24  Zdenek Dvorak <dvorakz@suse.cz>
1149
1150         PR tree-optimization/27639
1151         PR tree-optimization/26719
1152         * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
1153         call to scev_probably_wraps_p.
1154         * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
1155         used_in_pointer_arithmetic_p, convert_step): Removed.
1156         (nowrap_type_p): New function.
1157         (scev_probably_wraps_p): Rewritten.
1158         * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
1159         chrec_convert if chrec_convert_aggressive might have been used.
1160         * tree-chrec.c (convert_affine_scev, chrec_convert_1,
1161         scev_direction): New functions.
1162         (chrec_convert): Changed to a wrapper over chrec_convert_1.
1163         * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
1164         instead of convert_step.
1165         * tree-flow.h (scev_probably_wraps_p): Declaration changed.
1166         (convert_step): Declaration removed.
1167         (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
1168
1169 2006-05-23  Kenneth Zadeck <zadeck@naturalbridge.com>
1170
1171         * df-core.c: Added to header comments.
1172         * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
1173         df_ur_bb_info, df_urec_bb_info): Added comments.
1174         * df-problems (df_ref_bitmap, ru, rd, lr, ur,
1175         urec, ri problems): Fixed header comments.
1176         (df_ru_transfer_function): Fixed in-out set dyslexia when copying
1177         code from df_rd_transfer_function.
1178
1179 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
1180
1181         * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
1182         (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
1183         MIN_UNITS_PER_WORD to set the default.  Also use it in the guard.
1184
1185 2006-05-23  Joseph Myers  <joseph@codesourcery.com>
1186
1187         * expr.c (undefined_operand_subword_p): New.
1188         (emit_move_multi_word): Do not generate move from undefined bits
1189         of a paradoxical subreg.
1190
1191 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
1192
1193         PR rtl-optimization/27736
1194         * combine.c (replaced_rhs_value): New variable.
1195         (combine_instructions): Set it.
1196         (distribute_notes): When distributing a note in replaced_rhs_insn,
1197         check whether the value was used in replaced_rhs_value.
1198
1199 2006-05-23  Andrew MacLeod  <amacleod@redhat.com>
1200
1201         PR c++/26757
1202         * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
1203         add_referenced_var instead of add_referenced_tmp_var.
1204         * tree-complex.c (create_one_component_var): Use add_referenced_var.
1205         * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
1206         add_referenced_var.
1207         * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
1208         tree_optimize_tail_calls_1): Use add_referenced_var.
1209         * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
1210         * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
1211         Use add_referenced_var.
1212         * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
1213         * gimplify.c (force_gimple_operand): Use add_referenced_var.
1214         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
1215         Use add_referenced_var.
1216         * tree-dfa.c (struct walk_state): Remove.
1217         (find_referenced_vars): Remove walk state and vars_found hash table.
1218         (make_rename_temp): Use add_referenced_var.
1219         (find_vars_r): Pass less parameters to add_referenced_var.
1220         (referenced_var_p): New.  Is var in referenced_var hash table.
1221         (referenced_var_insert): Assert var isn't already in hash table.
1222         (add_referenced_var): Don't need walk_state parameter.  Add var if it
1223         isn't already in the hash table.
1224         (add_referenced_tmp_var): Remove.
1225         (find_new_referenced_vars_1): Use add_referenced_var.
1226         * tree-ssa-pre.c (create_expression_by_pieces,
1227         insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
1228         Use add_referenced_var.
1229         * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
1230         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
1231         lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
1232         add_referenced_var.
1233         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
1234         vect_create_data_ref_ptr, vect_create_destination_var,
1235         vect_init_vector, vect_build_loop_niters,
1236         vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
1237         vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
1238         Use add_referenced_var.
1239         * tree-outof-ssa.c (create_temp): Use add_referenced_var.
1240         * tree-flow.h (add_referenced_tmp_var): Remove prototype
1241         (add_referenced_var): Add prototype.
1242         * tree-ssa-structalias.c (get_constraint_for,
1243         intra_create_variable_infos): Use add_referenced_var.
1244
1245 2006-05-23  Alexandre Oliva  <aoliva@redhat.com>
1246
1247         * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
1248         big-endian paradoxical subregs.
1249         * var-tracking.c (struct micro_operation_def): Document that,
1250         for modify micro operations, insn is the subsequent instruction.
1251         (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
1252         (var_reg_set, var_mem_set): ... new functions.
1253         (add_stores): Record subsequent insn.
1254         (compute_bb_dataflow): Use new functions for MO_USE.
1255         (emit_notes_in_bb): Use new functions for MO_USE.  Emit use
1256         notes after the insn, and modify notes before the insn known
1257         to be the subsequent one.
1258         (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
1259
1260 2006-05-23  Kazu Hirata  <kazu@codesourcery.com>
1261
1262         PR target/27696
1263         * config/i386/i386.c (ix86_expand_builtin): Use
1264         gen_sse3_monitor64 for TARGET_64BIT.
1265
1266 2006-05-22  Kenneth Zadeck <zadeck@naturalbridge.com>
1267
1268         PR rtl-optimization/26375
1269         PR rtl-optimization/26855
1270         * df-problems (df_ru_bb_local_compute_process_def): Removed update
1271         to gen set.
1272         (df_ru_bb_local_compute): Reversed statements and removed bogus
1273         comment explaining why they should be in wrong order.
1274         (df_ru_dump, df_rd_dump): Enhanced debug info.
1275         * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
1276         debug info.
1277         * ddg.c (add_deps_for_def): Converted use of reaching defs to
1278         reaching uses and fixed space problem.
1279
1280 2006-05-23  Jan Hubicka  <jh@suse.cz>
1281
1282         * cgraphunit.c (decide_is_function_needed): Also nested functions
1283         and functions declared inline can be optimized out at -O0.
1284
1285 2006-05-22  Gerald Pfeifer  <gerald@pfeifer.com>
1286
1287         * doc/install.texi (Configuration): Remove reference to CrossGCC
1288         FAQ which was gone.
1289         (Building): Ditto.
1290
1291 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
1292
1293         PR target/27266
1294         * config/i386/i386.c (ix86_expand_branch): Jump to simple if
1295         ix86_compare_emitted is non-NULL.
1296
1297 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1298
1299         PR c++/27451
1300         * stmt.c (expand_asm_operands): Skip asm statement with erroneous
1301         clobbers.
1302
1303 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
1304
1305         PR rtl-optimization/25514
1306         * combine.c (replaced_rhs_insn): New variable.
1307         (combine_instructions): Set replaced_rhs_insn when trying to replace
1308         a SET_SRC with a REG_EQUAL note.
1309         (distribute_notes): Use replaced_rhs_insn when determining the live
1310         range of a REG_DEAD register.
1311
1312 2006-18-05  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
1313             Anatoly Sokolov <aesok@post.ru>
1314
1315         * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
1316         attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
1317         attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
1318         atmega164p, atmega324p, atmega644p, atmega644, atmega329,
1319         atmega3290, atmega649, atmega6490, atmega406, atmega640,
1320         atmega1280, atmega1281, at90can32, at90can64, at90usb646,
1321         at90usb647, at90usb1286 and at90usb1287 devices.
1322         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1323         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1324
1325 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
1326
1327         * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
1328
1329 2006-05-22  Richard Guenther  <rguenther@suse.de>
1330
1331         Revert
1332         2006-01-31  Richard Guenther  <rguenther@suse.de>
1333         Paolo Bonzini  <bonzini@gnu.org>
1334
1335         * doc/install.texi (--disable-libgcc-math): Document.
1336
1337 2006-05-22  Richard Guenther  <rguenther@suse.de>
1338
1339         Revert
1340         2006-01-31  Richard Guenther  <rguenther@suse.de>
1341
1342         * doc/invoke.texi (-msselibm): Document.
1343         * target.h (expand_library_builtin): New target hook.
1344         * builtins.c (expand_builtin): Use expand_library_builtin.
1345         (default_expand_library_builtin): New function.
1346         * gcc.c (LINK_GCC_MATH_SPEC): Define.
1347         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
1348         (link_gcc_math_spec): Declare.
1349         (static_specs): Add link_gcc_math_spec.
1350         * expr.h (default_expand_library_builtin): Declare.
1351         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
1352         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
1353         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
1354         * config/i386/i386.opt (msselibm): New target option.
1355         * config/i386/i386.c (ix86_builtin_function_variants): New array.
1356         (ix86_init_sse_abi_builtins): New function.
1357         (ix86_expand_library_builtin): Likewise.
1358         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
1359         (override_options): Handle error conditions wrt -msselibm.
1360         (ix86_builtins): Add function codes for SSE2 ABI builtins.
1361         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
1362         * doc/extend.texi (__builtin_sse2_*): Document new target specific
1363         builtins.
1364
1365 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1366
1367         PR c/27420
1368         * c-common.c (self_promoting_args_p): Skip erroneous args.
1369
1370         PR c/26818
1371         * c-decl.c (finish_struct): Skip erroneous fields.
1372
1373 2006-05-22  Nick Clifton  <nickc@redhat.com>
1374
1375         * config/cris/cris.opt (march): Remove VarExists attribute.
1376         (max-stackframe=): Likewise.
1377
1378 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
1379
1380         * doc/rtl.texi: Fix a typo.
1381         * see.c: Fix comment typos.
1382
1383         * tree-ssa-structalias.h (alias_info): Remove num_references.
1384
1385 2006-05-21  Mike Stump  <mrs@apple.com>
1386
1387         * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
1388         (BAD2): Add.
1389         (darwin_pragma_options): Use BAD instead.
1390         (darwin_pragma_unused): Likewise.
1391         (darwin_pragma_ms_struct): Likewise.
1392
1393 2006-05-21  David Edelsohn  <edelsohn@gnu.org>
1394
1395         * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
1396
1397 2006-05-21  Kazu Hirata  <kazu@codesourcery.com>
1398
1399         PR rtl-optimization/27671
1400         * simplify-rtx.c (simplify_relational_operation_1): Fix
1401         simplifications of (eq/ne (xor x y) y) and
1402         (eq/ne (xor x y) x).
1403
1404         PR tree-optimization/26622.
1405         * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
1406         on arg1.
1407
1408 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
1409
1410         * tree-cfg.c: Prune whitespace.
1411         (debug_tree_cfg): Point to correct header containing the
1412         TDF_* defines.
1413
1414 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
1415
1416         PR middle-end/25776
1417         * cgraphunit.c (verify_cgraph_node): Typo in error message.
1418
1419 2006-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
1420
1421         PR middle-end/25776
1422         * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
1423         or sorry count is non zero.
1424
1425 2006-05-20  Andreas Schwab  <schwab@suse.de>
1426
1427         * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
1428
1429 2006-05-19  Daniel Berlin  <dberlin@dberlin.org>
1430             Kenneth Zadeck <zadeck@naturalbridge.com>
1431
1432         PR rtl-optimization/26855
1433
1434         * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
1435         multiword refs.
1436         (df_scan_alloc): Added code to properly handle multiword hard
1437         registers and add all_blocks parameter.
1438         (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
1439         code to properly handle multiword hard registers.
1440         (df_rescan_blocks): Added code to remove deleted blocks from
1441         bitmap.
1442         (df_ref_create_structure, df_ref_record): Added code to properly
1443         handle subregs.
1444         (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
1445         and set DF_REF_PARTIAL.
1446         (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
1447         (df_uses_record): Added DF_REF_PARTIAL for subreg.
1448         (df_scan_add_problem): Added flags parameter.
1449         (df_ref_create_structure): Changed switching structure.
1450         (df_bb_refs_record): Fixed case where duplicate artificial refs
1451         were created.  Changed location of flags.
1452         (df_record_entry_block_defs): Added code to make stack pointer
1453         live in entry block.  Refined cases where frame pointer is needed.
1454         Changed location of flags.
1455         (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
1456         (df_set_state): Removed function.
1457         (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
1458         df_insn_create_insn_record, df_insn_refs_delete,
1459         df_ref_create_structure): Formatting changes.
1460         * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
1461         df_delete_basic_block): New function.
1462         (df_init): Changed location of flags.
1463         (df_add_problem): Added flags parameter and the way flags are
1464         processed.
1465         (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
1466         debug_df_chain): Improved debugging output.
1467         (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
1468         (df_refs_chain_dump): Removed df parameter.
1469         (df_iterative_dataflow): Added consistency check.
1470         (df_prune_to_subcfg): Made public.
1471         (df_analyze_problem): Added blocks_to_init parameter and made
1472         public.
1473         (df_ref_record, df_bb_refs_record, df_mark_reg,
1474          df_record_exit_block_uses): Whitespace changes.
1475         (df_dump): Whitespace changes.
1476         * df.h: Some reordering to remove forward references.
1477         (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
1478         DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
1479         (df_ref_flags.DF_REF_CLOBBER): Deleted field.
1480         (dataflow.flags): New field.
1481         (df.flag): Deleted field.
1482         (df_alloc_function): Added additional bitmap parameter.
1483         (df_dependent_problem_function): New type.
1484         (df_problem.changeable_flags): New field.
1485         (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
1486         DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
1487         (df_mw_hardreg): New struct.
1488         (DF_INSN_UID_MWS): New macro.
1489         (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
1490         parameter.
1491         (df_add_problem, df_ru_add_problem, df_rd_add_problem,
1492         df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
1493         df_ri_add_problem, df_scan_add_problem): Added flags parameter.
1494         (df_set_state): Removed function.
1495         (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
1496         * df-problems.c (df_chain_dump): Removed df parameter.
1497         (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
1498         df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
1499         parameter.
1500         (df_ru_alloc, df_rd_alloc): Now resets all blocks.
1501         (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
1502         df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
1503         Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
1504         DF_REF_MUST_CLOBBER cases.
1505         (df_ru_bb_local_compute_process_def,
1506         df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
1507         df_lr_bb_local_compute, df_ur_bb_local_compute,
1508         df_chain_create_bb): Made subreg aware.
1509         (df_ru_bb_local_compute, df_rd_bb_local_compute,
1510         df_lr_bb_local_compute, df_lr_bb_local_compute,
1511         df_chain_create_bb): Cleanup to use proper macros.
1512         (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
1513         code to fixup bitvectors.
1514         (df_ri_alloc): Cleared lifetime.
1515         (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
1516         df_create_unused_note): New function.
1517         (df_ri_bb_compute, df_ri_compute): Added code to create/update
1518         REG_DEAD and REG_UNUSED notes as well as register information.
1519         (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
1520         df_chains_dump): Fixed crash if problem was never run.
1521         (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
1522         df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
1523         df_ri_add_problem): Processes flags in uniform manner.
1524         (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
1525         df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
1526         df_rd_dump, df_urec_free_bb_info): Formatting changes.
1527         (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
1528         df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
1529         df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
1530         df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
1531         df_ur_dump, df_urec_free_bb_info, df_urec_dump,
1532         df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
1533         * modulo-sched.c (sms_schedule): Added flag parameter to calls.
1534         * see.c (see_initialize_data): Ditto.
1535         * final.c (rest_of_clean_state) Added regstack_completed.
1536         * rtl.h (regstack_completed): Ditto.
1537         * reg-stack.c (regstack_completed): Ditto.
1538
1539 2006-05-19  Mike Stump  <mrs@apple.com>
1540
1541         * c-tree.h (default_conversion): Remove.
1542         * c-common.h (default_conversion): Add.
1543
1544 2006-05-19  Zdenek Dvorak <dvorakz@suse.cz>
1545
1546         * tree-vrp.c (valid_value_p): New function.
1547         (adjust_range_with_scev): Fail if the value of bound is not
1548         simple.
1549
1550 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
1551
1552         * config/mips/linux-unwind.h: Include <asm/unistd.h>
1553         (mips_fallback_frame_state): Use syscall numbers to determine
1554         the appropriate li instruction for the current ABI.  Only use
1555         __NR_sigreturn for o32.
1556
1557 2006-05-19  Nicolas Setton  <setton@adacore.com>
1558
1559         * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
1560         * langhooks.c (lhd_dwarf_name): New function.
1561         * langhooks-def.h (lhd_dwarf_name): Declare.
1562         (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
1563         * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
1564         * ada/misc.c (gnat_dwarf_name): New function.
1565         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
1566
1567 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
1568
1569         * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
1570         libgcc2.h.
1571         (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
1572         MIN_UNITS_PER_WORD logic from libgcc2.h.  Do nothing if
1573         LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
1574         * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
1575         Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
1576         determine the size of Wtype, etc.
1577         * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
1578         (swfloatfuncs): New variable.
1579         (dwfloatfuncs): Likewise.
1580         (lib2funcs): Remove floating-point conversion functions from
1581         initial assignment.  Use LIB2_SIDITI_CONV_FUNCS to determine
1582         the set of conversion routines needed.  Allow entries to specify
1583         an object name, filename and word size.  Update users accordingly.
1584         * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
1585         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
1586
1587         Revert:
1588
1589         2006-02-08  Roger Sayle  <roger@eyesopen.com>
1590
1591         PR target/22209
1592         * config/fixtfdi.c: New libgcc source file.
1593         * config/fixunstfdi.c: New source file.
1594         * config/floatditf.c: New source file.
1595         * config/floatunditf.c: New souce file.
1596         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
1597         files above instead of config/mips/_tilib.c.
1598         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
1599
1600 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1601
1602         * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
1603         * pa/pa-hpux11.h (LIB_SPEC): Update comment.
1604
1605 2006-05-18  Mike Stump  <mrs@apple.com>
1606
1607         Fix up vla, vm and [*] sematics.
1608
1609         PR c/18740
1610         PR c/7948
1611         PR c/25802
1612         PR c/27673
1613         * c-tree.h (struct c_arg_info): Add had_vla_unspec.
1614         (c_vla_unspec_p): Add.
1615         (c_vla_type_p): Add.
1616         * c-decl.c (struct c_scope): Add had_vla_unspec.
1617         (build_array_declarator): Add support for [*].
1618         (grokdeclarator): Likewise.
1619         (grokparms): Likewise.
1620         (get_parm_info): Likewise.
1621         * c-objc-common.c (c_vla_unspec_p): Likewise.
1622         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
1623         * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
1624         typeof when argument is a variably modified type not inside sizeof or alignof.
1625         (c_parser_direct_declarator_inner): Propagate errors.
1626         (c_parser_sizeof_expression): Add support for [*].
1627         (c_parser_parms_declarator): Initialize had_vla_unspec.
1628         (c_parser_parms_list_declarator): Likewise.
1629         * c-typeck.c (c_vla_type_p): Add.
1630         (composite_type): Add support for vla compositing.
1631         (comptypes_internal): Add support for vla compatibility.
1632         (c_expr_sizeof_expr): Evaluate vla arguments.
1633         * tree.c (variably_modified_type_p): Update comment for [*].
1634
1635 2006-05-18  Michael Matz  <matz@suse.de>
1636
1637         PR target/27599
1638         * config.host: Make assignments to host_xmake_file cumulative.
1639         * config.host (*-darwin*): Test $host, not $target.
1640
1641 2006-05-12  Stuart Hastings  <stuart@apple.com>
1642
1643         * config/i386/i386.opt (-mstackrealign): New flag.
1644         * config/i386/i386.c (force_align_arg_pointer): New attribute.
1645         (ix86_handle_cconv_attribute): Emit error when
1646         force_align_arg_pointer attribute collides with too many regparms.
1647         (ix86_function_regparm): Limit regparms when used with
1648         force_align_arg_pointer attribute.  (ix86_internal_arg_pointer):
1649         Support stack-realigning prologue in non-main functions.  Emit
1650         warning for nested functions under -mstackrealign, emit error for
1651         nested functions with force_align_arg_pointer attribute.
1652         * doc/extend.texi (force_align_arg_pointer): Document it.
1653         * doc/invoke.texi (-mstackrealign): Document it.
1654
1655 2006-05-17  Kazu Hirata  <kazu@codesourcery.com>
1656
1657         PR rtl-optimization/27477
1658         * combine.c (try_combine): Don't split a parallel consisting
1659         of two sets into two individual sets if both sets reference
1660         cc0.
1661
1662 2006-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1663
1664         * config/arm/arm.opt (target_fpe_name): Remove VarExists.
1665         * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
1666
1667         * doc/options.texi (VarExists): Updated.
1668
1669 2006-05-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1670
1671         * unwind-dw2.c: Add declarations for uw_update_context and
1672         uw_frame_state_for.
1673         * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
1674         detected, advance frame state and context once to skip over stub.
1675
1676 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
1677
1678         PR middle-end/20256
1679         PR middle-end/26435
1680         * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
1681         Call rewrite_into_loop_closed_ssa only when something changed.
1682         * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
1683         * lambda-code.c (can_convert_to_perfect_nest): Declared.
1684         (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
1685         Test for perfect_nest_p here.  Fix formating.
1686         (replace_uses_equiv_to_x_with_y): Fix formating.
1687         (stmt_uses_op): Removed.
1688         (can_convert_to_perfect_nest): Removed loopivs parameter.
1689         Complete the test by checking the scalar dependences.
1690         (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
1691         Fix formating.
1692
1693 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
1694
1695         PR bootstrap/22541
1696         From Dan Kegel <dank@kegel.com>:
1697         * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
1698
1699 2006-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1700
1701         * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
1702         if the element type is variably modified without recursing.
1703
1704 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
1705
1706         PR middle-end/27332
1707         * tree-loop-linear.c (try_interchange_loops): Test for
1708         no data dependences.
1709
1710 2006-05-17  Zdenek Dvorak <dvorakz@suse.cz>
1711
1712         PR tree-optimization/27548
1713         * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
1714         range of ssa names that appear on abnormal edges.
1715         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
1716         * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
1717
1718 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
1719
1720         PR middle-end/27620
1721         * expr.c (safe_from_p): Handle CONSTRUCTOR again.
1722
1723 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
1724
1725         PR middle-end/27415
1726         * tree.h (OMP_PARALLEL_COMBINED): Define.
1727         * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
1728         (new_omp_context): Add is_combined_parallel argument.
1729         (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
1730         new_omp_context caller.
1731         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
1732         Adjust gimplify_scan_omp_clauses callers.
1733         (omp_is_private): Issue errors if iteration variable is firstprivate
1734         or reduction in the current context.
1735         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
1736         on combined parallel workshare constructs.
1737
1738 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1739
1740         * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
1741         (gcc-options.o): New rule.
1742
1743         * optc-gen.awk: Protect variables for gcc-options.o with
1744         #ifdef GCC_DRIVER/#endif.
1745
1746 2006-05-16  Daniel Berlin <dberlin@dberlin.org>
1747
1748         Fix PR tree-optimization/27373
1749         * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
1750          (forward_propagate_addr_expr): Update call.
1751
1752 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1753
1754         * doc/options.texi: Move the Negative option.
1755
1756 2006-05-16  Richard Guenther  <rguenther@suse.de>
1757
1758         PR tree-optimization/22303
1759         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
1760         from STRING_CSTs.
1761         (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
1762         ccp_fold did not simplify the statement.
1763
1764 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1765
1766         PR driver/26885
1767         * Makefile.in (GCC_OBJS): New.
1768         (OBJS-common): Add opts-common.o.
1769         (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
1770         (cpp$(exeext)): Likewise.
1771         (gcc.o): Also depend on opts.h.
1772         (opts-common.o): New.
1773
1774         * common.opt (gcoff): Add Negative(gdwarf-2).
1775         (gdwarf-2): Add Negative(gstabs).
1776         (gstabs): Add Negative(gstabs+).
1777         (gstabs+): Add Negative(gvms).
1778         (gvms): Add Negative(gxcoff).
1779         (gxcoff): Add Negative(gxcoff+).
1780         (gxcoff+): Add Negative(gcoff).
1781         * config/i386/i386.opt (m32): Add Negative(m64).
1782         (m64): Add Negative(m32).
1783
1784         * doc/options.texi: Document the Negative option.
1785
1786         * gcc.c: Include "opts.h".
1787         (main): Call prune_options after expandargv.
1788
1789         * optc-gen.awk: Generate common declarations for all flag
1790         variables in options.c. Output the neg_index field.
1791
1792         * opts.c (find_opt): Moved to ...
1793         * opts-common.c: Here. New file.
1794
1795         * opts.h (cl_option): Add a neg_index field.
1796         (find_opt): New.
1797         (prune_options): Likewise.
1798
1799 2006-05-16  Jakub Jelinek  <jakub@redhat.com>
1800
1801         PR middle-end/27573
1802         * omp-low.c (expand_omp_parallel): Don't assert
1803         .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
1804         instead search for it.
1805
1806         PR c/27499
1807         * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
1808         is signed.
1809
1810 2006-05-16  Andreas Schwab  <schwab@suse.de>
1811
1812         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
1813         defmac.
1814
1815 2006-05-15  Roger Sayle  <roger@eyesopen.com>
1816
1817         PR target/26600
1818         * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
1819         integer constants other than zero are only legitimate on TARGET_64BIT.
1820         <CONST_VECTOR> Only zero vectors are legitimate.
1821         (ix86_cannot_force_const_mem): Integral and vector constants can
1822         always be put in the constant pool.
1823
1824 2006-05-16  DJ Delorie  <dj@redhat.com>
1825
1826         * crtstuff.c (__dso_handle): Set section from
1827         TARGET_LBIGCC_SDATA_SECTION if defined.
1828         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
1829         * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
1830
1831 2006-05-16  Danny Smith  <dannysmith@users.sourceforge.net>
1832
1833         PR target/27599
1834         * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
1835         host_xmake_file.
1836
1837 2006-05-16  Ben Elliston  <bje@au.ibm.com>
1838
1839         * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
1840
1841 2006-05-15  Per Bothner  <per@bothner.com>
1842
1843         * tree.c: (last_annotated_node): Use source_locus typedef.
1844         This permits bootstrapping with --enable-mapped-location.
1845
1846 2006-05-15  Zdenek Dvorak <dvorakz@suse.cz>
1847
1848         PR tree-optimization/26830
1849         * tree-into-ssa.c (struct ssa_name_info): Add age field.
1850         (info_for_ssa_name, current_info_for_ssa_name_age,
1851         blocks_to_update): New variables.
1852         (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
1853         (clear_ssa_name_info, initialize_flags_in_bb,
1854         mark_block_for_update): New functions.
1855         (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
1856         (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
1857         prepare_def_site_for): Use mark_block_for_update.
1858         (mark_def_interesting): Assert that the processed block is marked in
1859         blocks_to_update.  Do not take blocks argument.
1860         (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
1861         argument.
1862         (rewrite_update_init_block, rewrite_update_stmt): Only process
1863         blocks with statements to rewrite.
1864         (delete_update_ssa): Do not clear SSA_NAME_AUX.
1865         (update_ssa): Initialize and free blocks_to_update.  Do not
1866         clear flags on statements.  Do not use blocks bitmap.
1867         * tree.h (SSA_NAME_AUX): Removed.
1868         (struct tree_ssa_name): Removed aux field.
1869         * print-tree.c (print_node): Do not print SSA_NAME_AUX.
1870
1871 2006-05-15  Richard Guenther  <rguenther@suse.de>
1872
1873         PR tree-optimization/27603
1874         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
1875         Do computations in original type.
1876
1877 2006-05-15  Mircea Namolaru  <namolaru@il.ibm.com>
1878
1879         * see.c: Code style changes such as redundant paranthesis,
1880         redundant intialization of local variables etc.
1881         (see_main): Declared now as static.
1882         * doc/invoke.texi: Update that -fsee is not enabled by
1883         default at -O3.
1884
1885 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
1886
1887         * omp-low.c (check_omp_nesting_restrictions): New function.
1888         (scan_omp_1): Call it.
1889
1890         PR middle-end/27416
1891         * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
1892         construct, return *VAR.
1893
1894 2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1895
1896         PR rtl-optimization/27406
1897         * bt-load.c (migrate_btr_def): Skip the block having abnormal
1898         edges.
1899
1900 2006-05-14  Roger Sayle  <roger@eyesopen.com>
1901
1902         PR rtl-optimization/27538
1903         * combine.c (expand_compound_operation): Call gen_lowpart
1904         before calling simplify_shift_const.
1905
1906 2006-05-14  Roger Sayle  <roger@eyesopen.com>
1907
1908         PR rtl-optimization/22563
1909         * expmed.c (store_fixed_bit_field): When using AND and IOR to store
1910         a fixed width bitfield, always force the intermediates into psuedos.
1911
1912 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
1913
1914         PR 27501
1915         * mkconfig.sh: Use operator = instead of == for test.
1916
1917 2006-05-13  Nick Clifton  <nickc@redhat.com>
1918
1919         * dwarf2out.c (dbx_reg_number): Check return value from
1920         LEAF_REG_REMAP and only use it if it is valid.
1921         (multiple_reg_loc_descriptor): Likewise.
1922
1923 2006-05-13  Richard Guenther  <rguenther@suse.de>
1924
1925         * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
1926         host_xmake_file.
1927
1928 2006-05-13  Steven Bosscher  <stevenb.gcc@gmail.com>
1929
1930         * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
1931         information attached to non-INSNs such as NOTEs.
1932         (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
1933
1934 2006-05-12  Andreas Krebbel  <krebbel1@de.ibm.com>
1935
1936         * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
1937         On contraint.
1938         * config/s390/s390.md: Adjust comment describing On constraint.
1939
1940 2006-05-11  Jan Hubicka  <jh@suse.cz>
1941
1942         * cgraphunit.c (decide_is_function_needed): Don't force always_inline
1943         to be output at -O0.
1944
1945 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1946
1947         PR middle-end/27384
1948         * fold-const.c (size_binop): Move sanity check for arguments to
1949         the beginning of the function.
1950
1951         PR middle-end/27488
1952         * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
1953         expression.
1954
1955 2006-05-11  Richard Guenther  <rguenther@suse.de>
1956
1957         PR middle-end/27529
1958         * fold-const.c (fold_unary): Handle intermediate conversion
1959         to a pointer type like intermediate conversion to an integer
1960         type in folding of (T1)(T2)var to var.
1961         Match the code to the comment in the final conversion for
1962         (T1)(T2)var to (T1)var regarding to type precision.  Rather
1963         than disallow T1 being of pointer type, assert that both T1
1964         and var are of pointer type or not.  Make sure not to fall
1965         over the frontends lazyness wrt array to pointer decay though.
1966
1967 2006-05-10  Richard Earnshaw  <rearnsha@arm.com>
1968
1969         * arm.c (arm_struct_value_rtx): Delete.
1970         (TARGET_STRUCT_VALUE_RTX): Use the default definition.
1971         (arm_init_cumulative_args): Always initialize nregs to zero.
1972
1973 2006-05-10  Richard Guenther  <rguenther@suse.de>
1974
1975         PR tree-optimization/27532
1976         * tree-object-size.c (plus_expr_object_size): Fix typo.
1977
1978 2006-05-10  Kazu Hirata  <kazu@codesourcery.com>
1979
1980         PR target/24949
1981         * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
1982         ashrdi_const, ashrdi3): Use a scratch register.
1983
1984 2006-05-10  Richard Guenther  <rguenther@suse.de>
1985
1986         PR tree-optimization/27302
1987         * fold-const.c (operand_equal_p): For two comparisons,
1988         try comparison of one comparison code swapped if that yields
1989         the same code.
1990
1991 2006-05-10  Ben Elliston  <bje@au.ibm.com>
1992
1993         * tree-pretty-print.c (pretty_print_string): No need to handle
1994         '\0' as a special character.
1995
1996         * tree.h: Include "hashtab.h".
1997         (iterative_hash_expr): Use hashval_t in its prototype.
1998         * Makefile.in (TREE_H): Add $(HASHTAB_H).
1999
2000 2006-05-09  Steve Ellcey  <sje@cup.hp.com>
2001
2002         PR bootstrap/26872
2003         * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
2004         (hppa*64*-*-hpux11*): Ditto.
2005         (hppa[12]*-*-hpux11*): Ditto.
2006
2007 2006-05-09  David Edelsohn  <edelsohn@gnu.org>
2008
2009         PR target/26545
2010         * config/rs6000/aix41.h (TARGET_64BIT): Define.
2011
2012 2006-05-09  Michael Matz  <matz@suse.de>
2013
2014         * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
2015         host_extra_gcc_objs and host_xmake_file.
2016         (<*-*-linux*>): Don't overwrite host_xmake_file.
2017         * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
2018         * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
2019         (host_detect_local_cpu): Declare.
2020         (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
2021         * config/i386/i386.c (override_options): Handle -mtune=native
2022         as -mtune=generic.
2023         * config/i386/x-i386: New file.
2024         * config/i386/driver-i386.c: New file.
2025         * doc/invoke.texi (<i386 and x86-64 Options>): Describe
2026         cpu-type "native".
2027
2028 2006-05-09  Dirk Mueller  <dmueller@suse.de>
2029         Richard Guenther  <rguenther@suse.de>
2030
2031         PR middle-end/27498
2032         * fold-const.c (fold_read_from_constant_string): Relax check
2033         for matching types to matching modes.
2034
2035 2006-05-09  Zdenek Dvorak <dvorakz@suse.cz>
2036
2037         PR rtl-optimization/27335
2038         * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
2039         loops.
2040
2041 2006-05-08  Chao-ying Fu  <fu@mips.com>
2042             Richard Sandiford  <richard@codesourcery.com>
2043
2044         * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
2045         (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
2046         * config/mips/mips.md (UNSPEC_SCC): New constant.
2047         * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
2048         * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
2049         (mips_emit_compare): Use it.
2050         (mips_expand_vcondv2sf): New function.
2051
2052 2006-05-08  Daniel Berlin  <dberlin@dberlin.org>
2053
2054         Fix PR tree-optimization/27093
2055         * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
2056         renaming when they become not-used_alone.
2057
2058 2006-05-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2059
2060         * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
2061         relocation and relocation stubs.
2062
2063 2006-05-08  Eric Christopher  <echristo@apple.com>
2064
2065         * unwind-dw2-fde-darwin.c (examine_objects): Only check data
2066         section for ppc.
2067
2068 2006-05-08  Jan Hubicka  <jh@suse.cz>
2069
2070         PR middle-end/24561
2071         * cgraphunit.c (decide_is_function_needed): When not optimizing even
2072         unused static functions are needed.
2073
2074 2006-05-08  Roger Sayle  <roger@eyesopen.com>
2075
2076         PR target/27158
2077         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
2078         of a reg_equiv_constant if the result is a legitimate constant.
2079
2080 2006-05-08  Uros Bizjak  <uros@kss-loka.si>
2081
2082         PR target/27277
2083         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
2084         standard 80387 constants, raise the cost to prevent
2085         compress_float_constant() to generate load from memory.
2086
2087 2006-05-08  Kazu Hirata  <kazu@codesourcery.com>
2088
2089         * config/arm/constraints.md (c): Fix a typo.
2090
2091         * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
2092         typos.
2093
2094 2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>
2095
2096         PR target/24879
2097         * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
2098         inline function.
2099         (_mm_mwait): Likewise.
2100
2101         * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
2102         "mwait".
2103         (sse3_monitor): Make it 32bit only.
2104         (sse3_monitor64): New. 64bit monitor.
2105
2106 2006-05-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2107
2108         PR target/27421
2109         * config/i386/i386.c (classify_argument): Skip fields with invalid
2110         types.
2111
2112 2006-05-07  Richard Guenther  <rguenther@suse.de>
2113
2114         PR tree-optimization/27409
2115         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2116         Do not try to find zero-sized subvars.
2117
2118 2006-05-07  Richard Guenther  <rguenther@suse.de>
2119
2120         PR tree-optimization/27136
2121         * tree-ssa-loop-niter.c (get_val_for): Correct function
2122         comment, assert requirements.
2123         (loop_niter_by_eval): Stop processing if the iterated
2124         value did not simplify.
2125
2126 2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>
2127
2128         * opts.c (flag_see): remove its setting at -O3.
2129
2130 2006-05-07  Richard Earnshaw  <rearnsha@arm.com>
2131
2132         * genpeep.c (main): Make insn-peep.c depend on flags.h.
2133         * arm/constraints.md: New file.
2134         * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
2135         (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
2136         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
2137         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
2138         (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
2139         (EXTRA_MEMORY_CONSTRAINT): Likewise.
2140         * arm.md: Include constraints.md.
2141         (thumb_movsi_insn): Use satisfies_constraint_J.
2142         (movhi, movqi): Use satisfies_constraint_I.
2143
2144 2006-04-29 Anatoly Sokolov <aesok@post.ru>
2145
2146         * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
2147         for atmeg a645 device.
2148
2149 2006-05-06   Richard Guenther  <rguenther@suse.de>
2150
2151         PR tree-optimization/27151
2152         * tree-vect-transform.c (vectorizable_condition): Punt on
2153         values that have a different type than the condition.
2154
2155 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
2156
2157         PR/21391
2158         * c-parser.c (c_parser_cast_expression): Only insert casts into
2159         hash table if pointer.
2160         * function.c (used_types_insert_helper): Rename from
2161         used_types_insert.
2162         (used_types_insert): Call used_types_insert_helper.
2163         * function.h (used_types_insert): Accept only one argument.
2164
2165 2006-05-05  David Edelsohn  <edesohn@gnu.org>
2166
2167         * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
2168         scratch with output modifier.
2169
2170 2006-05-04  David Edelsohn  <edelsohn@gnu.org>
2171
2172         PR target/26481
2173         * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
2174         with output modifier.
2175
2176 2006-05-04  Richard Sandiford  <richard@codesourcery.com>
2177
2178         PR target/26765
2179         * config/mips/mips.c (mips_symbolic_address_p): Return true
2180         for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
2181         SYMBOL_GOTTPREL, and SYMBOL_TLS.
2182
2183 2006-05-04  Richard Guenther  <rguenther@suse.de>
2184
2185         PR tree-optimization/14287
2186         PR tree-optimization/14844
2187         PR tree-optimization/19792
2188         PR tree-optimization/21608
2189         PR tree-optimization/27090
2190         * tree-ssa-pre.c (try_combine_conversion): New function.
2191         (compute_avail): After constructing the value-handle
2192         expression, use try_combine_conversion to combine NOP_EXPRs
2193         with previous value-handle expressions and use the result if it
2194         is available.
2195
2196 2006-05-04  Joseph S. Myers  <joseph@codesourcery.com>
2197
2198         * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
2199
2200 2006-05-04  Jan Hubicka  <jh@suse.cz>
2201
2202         PR middle-end/25962
2203         * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
2204
2205 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
2206
2207         * config/bfin/predicates.md (const01_rtx): Tell generator programs
2208         that this only matches CONST_INTs.  All users changed to VOIDmode
2209         operands.
2210
2211         * config/bfin/bfin.c: Include "optabs.h".
2212         (bfin_rtx_costs): Some costs for vector operations, to allow combine
2213         to do more work.
2214         (enum bfin_builtins): Add a number of fractional and vector builtins.
2215         (bfin_init_builtins): Likewise.
2216         (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
2217         (safe_vector_operand, bfin_expand_binop_builtin,
2218         bfin_expand_unop_builtin): New functions.
2219         (bfin_expand_builtin): Handle the new builtins.
2220         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2221         __ADSPBLACKFIN__.
2222
2223 2006-05-04  Leehod Baruch  <leehod@il.ibm.com>
2224
2225         * see.c: New file.
2226         * Makefile.in (OBJS-common): Add see.o.
2227         (see.o): Add dependencies.
2228         * common.opt (fsee): New flag for the see optimization was added.
2229         * opts.c (flag_see): Initialized.
2230         * passes.c (init_optimization_passes, pass_see): New pass.
2231         * rtl.h (see_main): Declaration as extern.
2232         * timevar.def (TV_SEE): New.
2233         * tree-pass.h (pass_see): Declaration as extern.
2234         * invoke.texi (-fsee): Document.
2235         * recog.c (validate_simplify_insn): New function.
2236         * recog.h (validate_simplify_insn): Declaration as extern.
2237         * df-problems.c (df_chain_dump): Check for NULL.
2238
2239 2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
2240             Daniel Berlin  <dberlin@dberlin.org>
2241
2242         * cfgrtl.c (insert_insn_bb_end_new): New function.
2243         * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
2244
2245 2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>
2246
2247         * df.h (struct web_entry): Moved from web.c.
2248         (union_defs): Declaration as extern.
2249         (unionfind_root): Likewise.
2250         (unionfind_union): Likewise.
2251         * web.c (struct web_entry): Moved to df.h.
2252         (unionfind_root): Remove static declaration.
2253         (unionfind_union): Likewise.
2254         (union_defs): Likewise and generalize to use callback function.
2255         (web_main): Update arguments for union_defs function call.
2256
2257 2006-05-04  Richard Guenther  <rguenther@suse.de>
2258
2259         PR tree-optimization/26447
2260         * tree-ssa-pre.c (realify_fake_stores): For necessary loads
2261         produce SSA_NAME copies before the store stmt to avoid
2262         breaking exception handling.
2263
2264 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
2265
2266         PR middle-end/27388
2267         * gimplify.c (omp_is_private): If var is shared in some outer context,
2268         return false instead of true.  Stop searching on parallel context
2269         boundary.
2270
2271 2006-05-03  Alexandre Oliva  <aoliva@redhat.com>
2272
2273         PR java/8260
2274         * coverage.c: Use get_gcov_unsigned_t() instead of
2275         unsigned_type_node all over.
2276
2277 2006-05-02  Andrew MacLeod  <amacleod@redhat.com>
2278
2279         PR tree-optimization/27381
2280         * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
2281         maintain the same immediate_use links.
2282         * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
2283         node rather than segfaulting.
2284
2285 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2286
2287         PR fortran/27395
2288         * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
2289         rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
2290         bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
2291
2292 2006-05-02  Daniel Berlin  <dberlin@dberlin.org>
2293
2294         Fix PR tree-optimization/26626
2295         * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
2296         always.
2297         * tree-ssa-operands.c (access_can_touch_variable): Allow
2298         typecasting through union pointers.
2299
2300 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2301
2302         PR c++/26943
2303         * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
2304         (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
2305         to find if var will be a global variable even in the nested context.
2306         (omp_copy_decl): Only check for global variable at the end, it might
2307         be overridden in outer contexts.
2308         (scan_sharing_clauses): For global variables don't create a field.
2309         (lower_rec_input_clauses): Do nothing for global shared variables.
2310         Emit a barrier at the end of ILIST if there were any decls in both
2311         firstprivate and lastprivate clauses.
2312         (lower_send_clauses): Do nothing for global variables except for
2313         COPYIN.
2314
2315 2006-05-02  Zdenek Dvorak <dvorakz@suse.cz>
2316
2317         * tree.c (unsigned_type_for, signed_type_for): Make sure a type
2318         of the correct signedness is returned.
2319
2320 2006-05-02  Jeff Law  <law@redhat.com>
2321
2322         PR tree-optimization/27364
2323         * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
2324         multiply expressions.
2325
2326 2006-05-02  Tom Tromey  <tromey@redhat.com>
2327
2328         * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
2329
2330 2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
2331
2332         PR target/27387
2333         * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
2334         -mthumb -fPIC are used.
2335
2336 2006-05-02  Stanislaw Skowronek  <skylark@linux-mips.org>
2337             Joshua Kinard  <kumba@gentoo.org>
2338
2339         PR target/25871
2340         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
2341         with 64-bit pointers.
2342
2343 2006-05-02  Paul Brook  <paul@codesourcery.com>
2344
2345         * config/arm/arm.c (add_minipool_forward_ref): Check if insn
2346         and pool overlap.
2347         (create_fix_barrier): Check that a suitable barrier location is
2348         found.
2349         (arm_reorg): Include ftmp->address in allowable range of addresses.
2350
2351 2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
2352
2353         PR ada/27366
2354         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
2355         on Cygwin.
2356
2357 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2358
2359         PR middle-end/27337
2360         * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
2361         around RESULT_DECL for result passed by reference.
2362         (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
2363         * omp-low.c (use_pointer_for_field): Don't look at
2364         DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
2365         (scan_omp_1): Call remap_decl on RESULT_DECLs.
2366         (lower_rec_input_clauses): Don't allocate VLA memory for the second
2367         time or var for passing by reference for
2368         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
2369         TREE_ADDRESSABLE variables when passing by reference.
2370
2371         * omp-low.c (dump_omp_region): Fix output formatting.
2372
2373         PR middle-end/27328
2374         * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
2375         (expand_omp_parallel): Likewise.
2376         * tree-cfg.c (move_sese_region_to_fn): Likewise.
2377
2378         PR middle-end/27325
2379         * omp-low.c (lower_omp_sections): Call maybe_catch_exception
2380         on statement list containing also constructors and destructors.
2381         (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
2382
2383         PR middle-end/27310
2384         * except.c (duplicate_eh_regions): Fix clearing of
2385         cfun->eh->region_array entries.
2386
2387 2006-05-01  DJ Delorie  <dj@redhat.com>
2388
2389         * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
2390         build!=host.
2391         (gcc_cv_objdump): Likewise.
2392         * configure: Regenerated.
2393
2394 2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
2395
2396         PR target/27374
2397         * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
2398         templates for case 3 and 4.
2399
2400 2006-05-01  DJ Delorie  <dj@redhat.com>
2401
2402         * vec.c: Include bconfig.h when appropriate.
2403         * Makefile.in (build/vec.o): Adjust dependencies.
2404         * mkconfig.sh: Make sure config.h isn't used for build machine
2405         compiles.
2406
2407 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
2408
2409         * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
2410         variables.
2411         (mark_phi_for_rewrite): New function.
2412         (insert_phi_nodes_for, mark_use_interesting): Call
2413         mark_phi_for_rewrite.
2414         (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
2415         (update_ssa): Initialize and free phis_to_rewrite.
2416
2417 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
2418
2419         PR rtl-optimization/27291
2420         * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
2421         folded to a constant.
2422
2423 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
2424
2425         PR tree-optimization/27283
2426         * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
2427         not whole # of iteration descriptions.
2428         (niter_for_exit): Return just # of iterations.  Fail if # of iterations
2429         uses abnormal ssa name.
2430         (niter_for_single_dom_exit): Ditto.
2431         (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
2432         return just the number of iterations.
2433
2434 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
2435
2436         PR tree-optimization/27144
2437         * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
2438         (record_estimate): Only record constant upper bound.
2439         (infer_loop_bounds_from_undefined): Call
2440         compute_estimated_nb_iterations just once.
2441         (proved_non_wrapping_p): Renamed to ...
2442         (n_of_executions_at_most): ... this.  Expect bound to be a constant.
2443         (convert_step_widening, scev_probably_wraps_p): Call
2444         n_of_executions_at_most instead of proved_non_wrapping_p.
2445         (substitute_in_loop_info): Do not replace values in bounds.
2446         * cfgloop.h (struct nb_iter_bound): Remove "additional" field.  Update
2447         comments.
2448
2449 2006-05-01  Richard Henderson  <rth@redhat.com>
2450
2451         PR c/27358
2452         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
2453         c_parser_skip_to_pragma_eol.  Convert to switch statement.  Handle
2454         CPP_PRAGMA.
2455
2456 2006-05-01  Roger Sayle  <roger@eyesopen.com>
2457
2458         * c-typeck.c (parser_build_binary_op): Don't call the function
2459         unsigned_conversion_warning to spot operand/result type overflow.
2460         (build_binary_op): Instead, call convert_and_check instead of
2461         convert to report the problem when the operands are promoted.
2462         * c-common.c (unsigned_conversion_warning): Make static.
2463         * c-common.h (unsigned_conversion_warning): Delete prototype.
2464
2465 2006-05-01  Richard Guenther  <rguenther@suse.de>
2466
2467         PR tree-optimization/26726
2468         * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
2469         problem ...
2470         (find_interesting_uses_address): ... we work around here
2471         by folding INDIRECT_REFs in the substituted base.
2472
2473 2006-05-01  Diego Novillo  <dnovillo@redhat.com>
2474
2475         * omp-low.c (dump_omp_region): Add newlines.
2476
2477 2006-04-30  Roger Sayle  <roger@eyesopen.com>
2478
2479         * common.opt (Woverflow): New command line option.
2480         * c-common.c (constant_expression_warning): Check warn_overflow.
2481         (overflow_waring): Pass OPT_Woverflow to warning.
2482         (unsigned_conversion_warning): Likewise.
2483         (convert_and_check): Likewise.
2484         * doc/invoke.texi: Document new command line option.
2485
2486 2006-04-30  David Edelsohn  <edelsohn@gnu.org>
2487
2488         * config/rs6000/rs6000.c (rs6000_override_options): Enable
2489         TARGET_NO_FP_IN_TOC for section anchors.
2490         (optimization_options): Enable section anchors for all
2491         non-"Objective" languages.
2492
2493 2006-04-28  Eric Christopher  <echristo@apple.com>
2494
2495         * config/darwin-c.c (darwin_ms_struct): Move this
2496         (darwin_set_default_type_attributes): and this...
2497         * config/darwin.c: ... here.
2498         * config/darwin.h (darwin_ms_struct): Declare.
2499
2500 2006-04-28  Andrew MacLeod  <amacleod@redhat.com>
2501
2502         * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
2503
2504 2006-04-28  Roger Sayle  <roger@eyesopen.com>
2505
2506         PR c/25309
2507         * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
2508         (push_array_bounds): Delete prototype.  Change BOUNDS argument to
2509         an unsigned HOST_WIDE_INT.
2510         (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
2511         array index.
2512         (really_start_incremental_init): No need to call convert because
2513         bitsize_zero_node is already of type bitsizetype.
2514         (push_init_level): Extract the value of constructor_index as an
2515         unsigned HOST_WIDE_INT quantity, using tree_low_cst.
2516         (process_init_element): Likewise.
2517
2518 2006-04-28  Joseph S. Myers  <joseph@codesourcery.com>
2519
2520         * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
2521         value before passing to make_relative_prefix.
2522
2523 2006-04-28  Alan Modra  <amodra@bigpond.net.au>
2524
2525         PR middle-end/27260
2526         * builtins.c (expand_builtin_memset): Expand val in original mode.
2527
2528 2006-04-27  Eric Christopher  <echristo@apple.com>
2529
2530         * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
2531         with #ifndef/#endif.
2532         * config/darwin-c.c (darwin_ms_struct): New.
2533         (darwin_pragma_ms_struct): Ditto.
2534         (darwin_set_default_type_attributes): Ditto.
2535         * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
2536         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
2537         Register ms_struct pragma.
2538         * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
2539         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
2540         * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
2541         darwin_set_default_type_attributes if TARGET_MACHO.
2542
2543 2006-04-27  Andrew MacLeod  <amacleod@redhat.com>
2544
2545         PR tree-optimization/26854
2546         * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
2547         * doc/tree-ssa.texi: Update immuse iterator documentation.
2548         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
2549         * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
2550         * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
2551         first_safe_imm_use, next_safe_imm_use): Remove.
2552         (end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
2553         (end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
2554         (move_use_after_head): New.  Helper function to sort immuses in a stmt.
2555         (link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
2556         (first_imm_use_stmt): New.  Get first stmt in an immuse list.
2557         (next_imm_use_stmt): New.  Get next stmt in an immuse list.
2558         (first_imm_use_on_stmt): New.  Get first immuse on a stmt.
2559         (end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
2560         (next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
2561         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
2562         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
2563         (perfect_nestify): Use new iterator.
2564         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
2565         iterator.
2566         * tree-flow.h (struct immediate_use_iterator_d): Add comments.
2567         (next_imm_name): New field in struct immediate_use_iterator_d.
2568         (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
2569         (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
2570         FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
2571         * tree-cfg.c (replace_uses_by): Use new iterator.
2572         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
2573         * tree-ssa-operands.c (correct_use_link): Remove.
2574         (finalize_ssa_use_ops): No longer call correct_use_link.
2575
2576 2006-04-27  Stuart Hastings  <stuart@apple.com>
2577
2578         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
2579         * config/t-darwin (crt3.o): Use it.
2580         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
2581         'pmode', use Pmode instead of SImode for SYMBOL_REF.
2582         * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
2583         call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
2584         call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
2585         support.
2586
2587 2006-04-27  Roger Sayle  <roger@eyesopen.com>
2588
2589         * expmed.c (store_fixed_bit_field): If we're not optimizing for
2590         size, force the intermediate into a new pseudo rather instead of
2591         performing both a bitwise AND and a bitwise IOR in memory.
2592
2593 2006-04-27  Richard Guenther  <rguenther@suse.de>
2594
2595         PR rtl-optimization/26685
2596         * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
2597         this one "max-flow-memory-locations".
2598
2599 2006-04-27  Richard Guenther  <rguenther@suse.de>
2600
2601         PR tree-optimization/25148
2602         * tree-vrp.c (compare_values): Remove code dealing with
2603         comparisons against type min/max value.  Honour overflow
2604         and negative constants in code dealing with comparisons
2605         of plus and minus expressions.
2606         (value_inside_range): Use fold_binary with LE_EXPR and
2607         GE_EXPR rather than compare_values.
2608
2609 2006-04-27  Dirk Mueller  <dmueller@suse.de>
2610
2611         * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
2612         prototype for SSE.
2613
2614 2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>
2615
2616         * basic-block.h (safe_insert_insn_on_edge): Removed.
2617         * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
2618
2619 2006-04-26  David Edelsohn  <edelsohn@gnu.org>
2620             Paolo Bonzini  <bonzini@gnu.org>
2621
2622         PR middle-end/27282
2623         * combine.c (simplify_and_const_int_1): Use gen_int_mode.
2624         (simplify_and_const_int): Same.
2625
2626 2006-04-26  Aldy Hernandez  <aldyh@redhat.com>
2627
2628         * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
2629
2630 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2631
2632         PR c/26171
2633         * cgraph.c (cgraph_varpool_finalize_decl): Don't call
2634         cgraph_varpool_assemble_pending_decls if -fopenmp, unless
2635         cgraph_global_info_ready.
2636
2637         PR middle-end/26913
2638         * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
2639
2640         PR c/25996
2641         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
2642         either decl or init is error_mark_node.
2643
2644         PR middle-end/25989
2645         * tree-flow.h (struct omp_region): Add sched_kind.
2646         * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
2647         instead of extracting omp for data.
2648         (expand_omp_for): Save extracted sched_kind.
2649
2650 2006-04-25  Roger Sayle  <roger@eyesopen.com>
2651
2652         * expmed.c (store_bit_field): Also check whether the bitsize is
2653         valid for the machine's "insv" instruction before moving the
2654         target into a pseudo for use with the insv.
2655         * config/i386/predicates.md (const8_operand): New predicate.
2656         * config/i386/i386.md (extv, extzv, insv): Use the new
2657         const8_operand predicate where appropriate.
2658
2659 2006-04-25  DJ Delorie  <dj@redhat.com>
2660
2661         * doc/install.texi (Specific): Clarify that this is not a list of
2662         supported hosts or targets.
2663
2664 2006-04-25  Richard Sandiford  <richard@codesourcery.com>
2665
2666         PR rtl-optimization/26725
2667         * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
2668         block's BB_DIRTY flag.
2669
2670 2006-04-25  Geoffrey Keating  <geoffk@apple.com>
2671
2672         * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
2673         are no branches.
2674
2675         * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
2676         to print an integer.
2677
2678 2006-04-25  David Edelsohn  <edelsohn@gnu.org>
2679
2680         * varasm.c (align_variable): New function.
2681         (get_block_for_decl): Apply align_variable to DECL before
2682         calculating section information.
2683         (assemble_variable): Split out alignment computation.
2684
2685 2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>
2686
2687         * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
2688         machines.
2689
2690 2006-04-25  Bernd Schmidt  <bernd.schmidt@analog.com>
2691
2692         * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
2693         MODE_PARTIAL_INT mode.
2694         * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
2695         * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
2696         for CONST_INTs.
2697         (hard_regno_mode_ok): V2PDImode is ok for accumulators.
2698         * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
2699         V2PDImode.
2700         * config/bfin/predicates.md (const01_operand, vec_shift_operand):
2701         New predicates.
2702         * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
2703         New constants.
2704         (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
2705         MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
2706         MACFLAG_IH): Likewise.
2707         (movstricthi_1): Renamed from "*movstricthi".
2708         (load_accumulator, load_accumulator_pair, movsi_insv, insv,
2709         ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
2710         abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
2711         movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
2712         movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
2713         movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
2714         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
2715         sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
2716         addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
2717         mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
2718         ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
2719         flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
2720         flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
2721         flag_macv2hi_parts, flag_macv2hi_parts_acconly,
2722         flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
2723
2724         * doc/rtl.texi (ss_ashift): Improve wording.
2725
2726 2006-04-24  Geoffrey Keating  <geoffk@apple.com>
2727
2728         * dwarf2out.c (verify_marks_clear): New.
2729         (prune_unused_types): Call verify_marks_clear initially, not
2730         prune_unmark_dies.
2731
2732 2006-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2733
2734         * rtl.def (SS_ASHIFT, SS_NEG): New codes.
2735         * doc/rtl.texi: Document them.
2736         * simplify-rtx.c (simplify_unary_operation,
2737         simplify_binary_operation_1): Don't abort when we see them.
2738
2739 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
2740
2741         Revert:
2742         2006-04-23  Mark Mitchell  <mark@codesourcery.com>
2743         * configure.ac: Completely disregard languages that are not
2744         enabled.
2745         * configure: Regenerated.
2746
2747 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
2748         Richard Guenther  <rguenther@suse.de>
2749
2750         PR tree-optimization/27236
2751         * tree-inline.c (copy_body_r): Make sure to copy
2752         TREE_THIS_VOLATILE flag.
2753
2754 2006-04-24  Richard Guenther  <rguenther@suse.de>
2755
2756         PR middle-end/26869
2757         * tree-complex.c (update_parameter_components): Don't handle
2758         unused parameters which have no default def.
2759
2760 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
2761         Richard Guenther  <rguenther@suse.de>
2762
2763         PR tree-optimization/27218
2764         * tree-inline.c (expand_call_inline): Strip useless type
2765         conversions for the return slot address.
2766
2767 2006-04-24  Richard Guenther  <rguenther@suse.de>
2768
2769         * cfgloop.h (struct loops): Remove unused field array.  Reorder
2770         state after num.
2771         (LOOP_PREFETCH): Remove.
2772
2773 2006-04-24  Richard Guenther  <rguenther@suse.de>
2774
2775         PR tree-optimization/22525
2776         * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
2777         variable, adjust types of generated expressions.
2778
2779 2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2780
2781         * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
2782         (tree-vect-patterns.o): Likewise.
2783         (jump.o): Likewise.
2784         (cselib.o): Likewise.
2785         (loop-doloop.o): Likewise.
2786         (regclass.o): Likewise.
2787         (reload1.o): Likewise.
2788         (explow.o): Replace target.h with $(TARGET_H).
2789         (ipa-prop.o): Likewise.
2790         (ipa-cp.o): Likewise.
2791         (ipa-inline.o): Likewise.
2792         (reorg.o): Likewise.
2793         (reg-stack.o): Likewise.
2794
2795 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2796
2797         * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
2798
2799 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
2800
2801         * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
2802
2803         * configure.ac: Completely disregard languages that are not
2804         enabled.
2805         * configure: Regenerated.
2806
2807         PR c++/26534
2808         * c-common.h (c_build_bitfield_integer_type): Declare.
2809         * c-decl.c (c_build_bitfield_integer_type): Move to ...
2810         * c-common.c (c_build_bitfield_integer_type): ... here.
2811
2812 2006-04-23  Roger Sayle  <roger@eyesopen.com>
2813
2814         PR target/21283
2815         * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
2816         a SImode SUBREG of a floating point register after no_new_pseudos.
2817
2818 2006-04-23  Roger Sayle  <roger@eyesopen.com>
2819
2820         * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
2821         identify potentially eliminable registers to additionally catch
2822         VIRTUAL_INCOMING_ARGS_REGNUM.
2823         (addsi3): Update the conditions on when to use addsi_small_int.
2824
2825 2006-04-23  Roger Sayle  <roger@eyesopen.com>
2826
2827         PR target/16641
2828         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
2829         STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
2830         rtx to stack_pointer_rtx or frame_pointer_rtx directly.
2831
2832 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2833
2834         * fold-const.c (range_predecessor): Use operand_equal_p
2835         as the predicate for equality.
2836         (range_successor): Likewise.
2837
2838 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
2839
2840         Revert:
2841         * config/soft-fp/op-common.h: Fix a typo.
2842
2843 2006-04-22  Frank Ch. Eigler  <fche@redhat.com>
2844
2845         PR libmudflap/26864
2846         * common.opt (flag_mudflap_threads): Overload flag_mudflap.
2847         * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
2848
2849 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
2850
2851         * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
2852         Fix comment typos.
2853         * doc/tm.texi: Fix a typo.
2854
2855 2006-04-21  Geoffrey Keating  <geoffk@apple.com>
2856
2857         * dwarf2out.c (struct die_struct): Document that die_sib makes
2858         a circular linked list.
2859         (FOR_EACH_CHILD): New.
2860         (reverse_die_lists): Delete.
2861         (reverse_all_dies): Delete.
2862         (add_dwarf_attr): Correct documentation.
2863         (remove_child_with_prev): New.
2864         (remove_child_TAG): Update for change to die_struct, use
2865         remove_child_with_prev.
2866         (add_child_die): Update for change to die_struct.
2867         (splice_child_die): Use remove_child_with_prev and add_child_die.
2868         (print_die): Use FOR_EACH_CHILD.
2869         (die_checksum): Likewise.
2870         (assign_symbol_names): Likewise.
2871         (output_location_lists): Likewise.
2872         (build_abbrev_table): Likewise.
2873         (calc_die_sizes): Likewise.
2874         (mark_dies): Likewise.
2875         (unmark_dies): Likewise.
2876         (unmark_all_dies): Likewise.
2877         (output_die): Likewise.
2878         (prune_unused_types_mark): Likewise.
2879         (prune_unused_types_walk): Likewise.
2880         (same_die_p): Update for change to die_struct.
2881         (break_out_includes): Likewise.
2882         (prune_unused_types_prune): Likewise.
2883         (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
2884         (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
2885         it's already clear.
2886         (dwarf2out_finish): Don't call reverse_all_dies.
2887
2888 2006-04-21  Eric Christopher  <echristo@apple.com>
2889
2890         * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
2891         in comments and function names.
2892
2893 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2894
2895         PR c/25875
2896         * c-typeck.c (digest_init): Robustify.
2897
2898         * c-typeck.c (pop_init_level): Simplify.
2899
2900 2006-04-21  Steve Ellcey  <sje@cup.hp.com>
2901
2902         * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
2903
2904 2006-04-21  Paul Brook  <paul@codesourcery.com>
2905
2906         * config/arm/arm.c (arm_override_options): Error on iWMMXt and
2907         hardware floating point.
2908
2909 2006-04-21  David Edelsohn  <edelsohn@gnu.org>
2910
2911         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
2912         NON_FLOAT_REGS.
2913
2914 2006-04-21  Nick Clifton  <nickc@redhat.com>
2915
2916         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
2917         OPT_EXTRA_PARTS.
2918
2919 2006-04-21  Alan Modra  <amodra@bigpond.net.au>
2920
2921         PR target/27230
2922         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2923         C++ lang type in traceback table for Objective-C++.
2924
2925         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
2926
2927 2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2928
2929         * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
2930
2931 2006-04-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2932
2933         PR mudflap/26789
2934         * tree-mudflap.c (mudflap_finish_file): Skip function when there
2935         were errors.  Remove check for erroneous objects.
2936
2937 2006-04-20  Jeff Law  <law@redhat.com>
2938
2939         PR tree-optimization/26854
2940         * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
2941         checking for zero or one use.
2942         * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
2943         * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
2944         * tree-ssa-reassoc.c (negate_value): Similarly.
2945         (reassociate_bb): Similarly.
2946
2947 2006-04-20  Jakub Jelinek  <jakub@redhat.com>
2948
2949         * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
2950         TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
2951         than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
2952
2953 2006-04-20  Alan Modra  <amodra@bigpond.net.au>
2954
2955         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
2956         fp regs if the last fp arg doesn't fit in regs.
2957
2958 2006-04-20  Kaz Kojima  <kkojima@gcc.gnu.org>
2959
2960         PR target/27182
2961         * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
2962         that the last insn has the REG_INC note.
2963
2964 2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
2965             Nathan Sidwell  <nathan@codesourcery.com>
2966
2967         PR c/26774
2968         * stor-layout.c (update_alignment_for_field): Do not align
2969         ERROR_MARK nodes.
2970         (place_union_field): Place union field at the start of the union.
2971         (place_field): Move ERROR_MARK check later, and use the current
2972         allocation position to maintain monotonicity.
2973
2974 2006-04-19  Zdenek Dvorak <dvorakz@suse.cz>
2975
2976         * dominance.c: Include timevar.h.
2977         (calculate_dominance_info): Use TV_DOMINANCE.
2978         * timevar.def (TV_DOMINANCE): New timevar.
2979         * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
2980
2981 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2982
2983         PR rtl-optimization/14261
2984         * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
2985         move would be an INSV insn.
2986         (noce_process_if_block): Don't optimize if the destination is a
2987         ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
2988
2989 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2990
2991         * config/s390/s390.md: Add comments with the instructions emitted
2992         by an insn pattern if macros are used.
2993
2994 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
2995
2996         PR rtl-optimization/26026
2997         * fold-const.c (fold_binary): Optimize div and mod where the divisor
2998         is a known power of two shifted left a variable amount.
2999
3000 2006-04-18  Geoffrey Keating  <geoffk@apple.com>
3001
3002         * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
3003         to hash table twice when the debug_str section has SECTION_MERGE.
3004
3005 2006-04-18  Joseph S. Myers  <joseph@codesourcery.com>
3006
3007         * config/soft-fp: New directory.  From glibc.
3008         * config/soft-fp/t-softfp: New.
3009         * config/soft-fp/README: New.
3010         * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
3011         * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
3012         (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
3013         (LIBGCC_DEPS): Add $(SFP_MACHINE).
3014         * config.gcc: Use rs6000/t-fprules-fpbit or
3015         rs6000/t-fprules-softfp and soft-fp/t-softfp together with
3016         rs6000/t-fprules.
3017         * config/rs6000/sfp-machine.h: New.  Based on glibc.
3018         * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
3019         New.
3020         * config/rs6000/t-fprules: Remove fp-bit rules.
3021         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
3022         * config/rs6000/t-linux64: Likewise.  Remove duplicates from
3023         LIB2FUNCS_EXTRA.  Remove fp-bit rules.
3024         (softfp_wrap_start, softfp_wrap_end): New.
3025
3026 2006-04-18  DJ Delorie  <dj@redhat.com>
3027
3028         * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
3029
3030 2006-04-18  Devang Patel  <dpatel@apple.com>
3031
3032         * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
3033
3034 2006-04-18  Nick Clifton  <nickc@redhat.com>
3035
3036         * config/sh/t-symbian: Add rule to build sh-c.o
3037         * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
3038         of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
3039         (sh_symbian_encode_section_info): Likewise.
3040
3041 2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>
3042
3043         * builtins.c (expand_builtin_strcmp): Cover label definition of
3044         do_libcall with HAVE_cmpstrnsi.
3045
3046 2006-04-18  Kazu Hirata  <kazu@codesourcery.com>
3047
3048         * function.c (temp_slots_at_level, max_slot_level): Use VEC
3049         instead of VARRAY.
3050         * function.h (temp_slot_p): New.
3051         (function): Change the type of x_used_temp_slots to
3052         VEC(temp_slot_p,gc) *.
3053
3054 2006-04-18  Nick Clifton  <nickc@redhat.com>
3055
3056         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
3057         flag_strength_reduce.
3058
3059         * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
3060
3061 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
3062
3063         PR target/27117
3064
3065         Partial revert of revision 112637
3066         2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
3067                     Dale Johannesen  <dalej@apple.com>
3068
3069         PR target/19653
3070         * regclass.c (struct reg_pref): Update documentation.
3071         (regclass): Set prefclass to NO_REGS if memory is the best option.
3072         (record_reg_classes): Cope with a prefclass set to NO_REGS.
3073
3074 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
3075
3076         PR tree-optimization/26821
3077         * tree-ssa-math-opts.c (get_constant_one): New.
3078         (insert_reciprocals): Use it.
3079
3080 2006-04-17  Geoffrey Keating  <geoffk@apple.com>
3081
3082         * dwarf2out.c (free_AT): Delete.
3083         (remove_AT): Update string ref counts.
3084         (remove_child_TAG): Don't call free_die.
3085         (free_die): Delete.
3086         (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
3087         or DW_TAG_GNU_EINCL.
3088         (prune_unused_types_walk_attribs): Reset string refcounts.
3089         (prune_unused_types_update_strings): New.
3090         (prune_unused_types_prune): Don't make unnecessary stores.  Don't
3091         call free_die.  Do call prune_unused_types_update_strings.
3092         (prune_unused_types): Empty debug_str_hash.
3093
3094 2006-04-17  Roger Sayle  <roger@eyesopen.com>
3095
3096         * expr.c (expand_assignment): Optimize away no-op moves where the
3097         source and destination are equal and have no side-effects.
3098
3099 2006-04-17  Richard Guenther  <rguenther@suse.de>
3100
3101         PR target/26826
3102         * reload.c (push_reload): Guard calls to get_secondary_mem
3103         for memory subregs.
3104
3105 2006-04-16  Kazu Hirata  <kazu@codesourcery.com>
3106
3107         * alias.c (reg_base_value, old_reg_base_value): Change the
3108         type to VEC(rtx,gc) *.
3109         (REG_BASE_VALUE, find_base_value, record_set,
3110         init_alias_analysis): Use VEC instead of VARRAY.
3111
3112         * alias.c (alias_sets): Change the type to
3113         VEC(alias_set_entry,gc) *.
3114         (get_alias_set_entry, new_alias_set, record_alias_subset): Use
3115         VEC instead of VARRAY.
3116         (last_alias_set): Remove.
3117
3118         * cgraph.h (cgraph_edge_p): New.
3119         Update the prototype of cgraph_function_versioning.
3120         * cgraphunit.c (cgraph_copy_node_for_versioning,
3121         cgraph_function_versioning): Use VEC instead of VARRAY.
3122         * ipa-cp.c (ipcp_insert_stage): Likewise.
3123
3124 2006-04-16  Roger Sayle  <roger@eyesopen.com>
3125
3126         PR target/26961
3127         * fold-const.c (fold_ternary): When converting "A ? B : C" into either
3128         "A op B" or "A op C", we may need to convert A to the type of B and C.
3129
3130 2006-04-16  Adam Nemet  <anemet@caviumnetworks.com>
3131
3132         * target.h (struct gcc_target): Add mode_rep_extended.
3133         * rtlanal.c (num_sign_bit_copies_in_rep): New global.
3134         (init_num_sign_bit_copies_in_rep): Initialize it using
3135         mode_rep_extended.
3136         (truncate_to_mode): Use it.
3137         (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
3138         * targhooks.h (default_mode_rep_extended): Declare it.
3139         * targhooks.c (default_mode_rep_extended): Define it.
3140         * target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
3141         default_mode_rep_extended.
3142         (TARGET_INITIALIZER): Include it.
3143         * doc/tm.texi (Misc): Document it.
3144         * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
3145         (mips_truncated_to_mode): New function.
3146
3147 2006-04-16  Roger Sayle  <roger@eyesopen.com>
3148
3149         PR middle-end/25474
3150         * expr.c (compress_float_constant): Copy the narrow constant into
3151         a new pseudo before extending it to its final width.
3152
3153 2006-04-16  Roger Sayle  <roger@eyesopen.com>
3154             Andrew Pinski  <pinskia@gcc.gnu.org>
3155             Dale Johannesen  <dalej@apple.com>
3156
3157         PR target/24076
3158         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
3159         special case code to implement V8HImode and V16QImode with SSE2.
3160
3161 2006-04-15  Roger Sayle  <roger@eyesopen.com>
3162
3163         * config/i386/i386.c (ix86_va_start): Ensure all integer constant
3164         trees are constructed with a suitable tree type.
3165
3166 2006-04-15  Roger Sayle  <roger@eyesopen.com>
3167
3168         * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
3169         (integer_onep): Likewise.
3170         (integer_all_onesp): Likewise.
3171         (integer_pow2p): Likewise.
3172         (integer_nonzerop): Likewise.
3173         (real_zerop): Likewise.
3174         (real_onep): Likewise.
3175         (real_twop): Likewise.
3176         (real_minus_onep): Likewise.
3177         (int_size_in_bytes): Likewise.
3178         (host_integerp): Likewise.
3179
3180 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
3181
3182         * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
3183         jump.c, mips-tfile.c, omp-low.c, sched-int.h,
3184         tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
3185
3186         * tree-ssa-structalias.h (alias_info): Remove num_references.
3187
3188 2006-04-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3189
3190         * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
3191         (output_bvb patterns): Likewise.
3192         * pa.c (output_bb): Use 'bb' insn for long branch case.
3193         (output_bvb): Likewise use '{bvb|bb}' for long branch case.
3194         (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
3195         1.  Correct length operand for alternatives 1 and 2.
3196         (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
3197         1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.
3198
3199 2006-04-14  Roger Sayle  <roger@eyesopen.com>
3200
3201         * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
3202         is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
3203         were accidentally reverted by r112959.
3204
3205 2006-04-15  Jakub Jelinek  <jakub@redhat.com>
3206
3207         PR middle-end/26823
3208         * except.h (eh_region_outermost): New prototype.
3209         * except.c (eh_region_outermost): New function.
3210         * tree-cfg.c (find_outermost_region_in_block): Use it.
3211
3212 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
3213
3214         * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
3215         of VARRAY.
3216         * reload1.c (reg_equiv_memory_loc_varray): Rename to
3217         reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
3218         (init_reload, reload): Use VEC instead of VARRAY.
3219         * reload.h: Update the prototype for
3220         reg_equiv_memory_loc_varray.
3221
3222 2006-04-14  Alexey Starovoytov  <alexey.starovoytov@sun.com>
3223             Eric Botcazou  <ebotcazou@libertysurf.fr>
3224
3225         * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
3226         register save area.
3227
3228 2005-04-13  Uros Bizjak  <uros@kss-loka.si>
3229
3230         PR middle-end/27134
3231         * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
3232         to expand fallback builtin function call.
3233
3234 2006-04-14  Alan Modra  <amodra@bigpond.net.au>
3235
3236         PR middle-end/27095
3237         * builtins.c: (expand_builtin_memset): Stabilize args before expansion
3238         and emit libcall here in case the builtin fails.
3239         (expand_builtin_strcmp): Always emit the libcall here on failure.
3240
3241 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
3242
3243         * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
3244         * flow.c (reg_n_info): Change the type to
3245         VEC(reg_info_p,heap) *.
3246         * regclass.c (allocate_reg_info, free_reg_info): Use VEC
3247         instead of VARRAY.
3248         * regs.h (reg_info_p): New.
3249         (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
3250         REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
3251         REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
3252         instead of VARRAY.
3253
3254 2006-04-13  Eric Botcazou  <ebotcazou@adacore.com>
3255
3256         * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
3257         defaulting to 100.
3258         * params.h (MAX_SCHED_READY_INSNS): New macro.
3259         * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
3260         past MAX_SCHED_READY_INSNS during the first scheduling pass.
3261         (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
3262         the ready list for 1 cycle during the first scheduling pass.
3263         * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
3264
3265 2006-04-13  Richard Henderson  <rth@redhat.com>
3266
3267         PR libgomp/26651
3268         * gimple-low.c (lower_omp_directive): Remove dead code.
3269         (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
3270         * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
3271         * omp-low.c (struct omp_region): Move to tree-flow.h.
3272         (root_omp_region): Export.
3273         (omp_regions, lookup_omp_region): Remove.
3274         (determine_parallel_type): Update for struct omp_region changes.
3275         (dump_omp_region): Dump regions with block numbers.
3276         (new_omp_region): Take type and block instead of stmt; malloc
3277         instead of ggc.
3278         (free_omp_region_1, free_omp_regions): New.
3279         (expand_parallel_call): Take entry_stmt as argument; update for
3280         changes to omp_region.
3281         (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
3282         (remove_exit_barriers): New.
3283         (expand_omp_parallel): Update for struct omp_region changes.
3284         (expand_omp_synch): Likewise.
3285         (expand_omp): Likewise.
3286         (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
3287         (expand_omp_for_static_chunk): Likewise.
3288         (expand_omp_for): Likewise.
3289         (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
3290         (expand_omp_sections): Similarly, with GOMP_sections_end.
3291         (expand_omp_single): New.
3292         (build_omp_regions_1): Update for OMP_CONTINUE.
3293         (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
3294         (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
3295         OMP_SECTIONS_SECTIONS.
3296         (lower_omp_single_simple): Don't emit barrier here.
3297         (lower_omp_single_copy): Likewise.
3298         (lower_omp_single): Fix bindings, and lower to straightline now.
3299         (lower_omp_master, lower_omp_ordered): Likewise.
3300         (lower_omp_critical): Likewise.
3301         (lower_omp_for): Likewise.  Emit OMP_CONTINUE.
3302         * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
3303         omp edges, free it afterward.
3304         (make_omp_sections_edges): Remove.
3305         (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
3306         (move_stmt_r): Handle OMP_CONTINUE.
3307         * tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
3308         statement pointers to basic blocks.  Add type member.
3309         (root_omp_region, new_omp_region, free_omp_regions): Declare.
3310         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
3311         * tree-inline.c (estimate_num_insns_1): Likewise.
3312         * tree-pretty-print.c (dump_generic_node): Likewise.
3313         * tree-ssa-operands.c (get_expr_operands): Likewise.
3314         * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
3315         (OMP_RETURN): Rename from OMP_RETURN_EXPR.
3316         (OMP_CONTINUE): New.
3317         * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
3318         (OMP_SECTIONS_SECTIONS): Remove.
3319         (OMP_SECTION_LAST): New.
3320         (OMP_RETURN_NOWAIT): New.
3321
3322 2006-04-13  Roger Sayle  <roger@eyesopen.com>
3323
3324         * fold-const.c (native_encode_vector, native_interpret_real):
3325         Correct obvious mistakes in the previous check-in.
3326
3327 2006-04-13  Roger Sayle  <roger@eyesopen.com>
3328
3329         * fold-const.c (native_encode_expr): New function to encode
3330         the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
3331         or VECTOR_CST into a specified buffer.
3332         (native_encode_int): New function.
3333         (native_encode_real): New function.
3334         (native_encode_complex): New function.
3335         (native_encode_vector): New function.
3336         (native_interpret_expr): Inverse of native_encode_expr to convert
3337         a target representation into an INTEGER_CST, REAL_CST etc...
3338         (native_interpret_int): New function.
3339         (native_interpret_real): New function.
3340         (native_interpret_complex): New function.
3341         (native_interpret_vector): New function.
3342         (fold_view_convert_expr): New function to constant fold/evaluate
3343         a VIEW_CONVERT_EXPR of a suitable constant expression.
3344         (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
3345         Change call of build1 to fold_build1 when constructing a
3346         VIEW_CONVERT_EXPR.
3347
3348 2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
3349             Ulrich Weigand  <uweigand@de.ibm.com>
3350
3351         PR target/27006
3352         * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
3353         to be even.
3354
3355 2006-04-13  Alan Modra  <amodra@bigpond.net.au>
3356
3357         PR target/26459
3358         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3359         optimize to lo_sum for DFmode if !TARGET_FPRS.
3360
3361 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
3362
3363         * tree-ssa-alias.c (set_initial_properties, init_alias_info,
3364         delete_alias_info, compute_flow_sensitive_aliasing,
3365         group_aliases): Use VEC instead of VARRAY.
3366         * tree-ssa-structalias.c (update_alias_info): Likewise.
3367         * tree-ssa-structalias.h (alias_info): Change the type of
3368         processed_ptrs to VEC(tree,heap) *.
3369
3370 2006-04-12  J"orn Rennecke <joern.rennecke@st.com>
3371
3372         PR target/27060
3373         * config/sh/lib1funcs.h: New file, broken out of:
3374         * config/sh/lib1funcs.asm.
3375         * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
3376         New macros.
3377         * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
3378         * config/sh/lib1funcs-Os-4-200.asm: New file.
3379         * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
3380         * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
3381         (EXTRA_MULTILIB_PARTS): Include it.
3382         ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
3383         ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
3384         * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
3385         * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
3386         TARGET_SH2.
3387
3388 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
3389
3390         * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
3391         * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
3392         tpa_compact, root_var_init, type_var_init): Use VEC instead of
3393         VARRAY.
3394         * tree-ssa-live.h: Include vecprim.h.
3395         (tree_partition_associator_d): Change the type of
3396         first_partition to VEC(int,heap) *.
3397         (tpa_first_partition): Use VEC instead of VARRAY.
3398
3399         * Makefile.in (GTFILES): Move functions.h after tree.h.
3400         * function.c (reset_block_changes, record_block_change,
3401         check_block_change, free_block_changes): Use VEC instead of
3402         VARRAY.
3403         * function.h (function): Change the type of
3404         ib_boundaries_block to VEC(tree,gc) *.
3405         * tree-inline.c (copy_cfg_body): Initialize
3406         ib_boundaries_block to NULL instead of (varray_type) 0.
3407
3408 2006-04-12  Roger Sayle  <roger@eyesopen.com>
3409
3410         * expr.c (emit_group_store): Correct operand order in call to
3411         subreg_lowpart_offset.  Always create paradoxical SUBREGs with
3412         a SUBREG_BYTE of zero.
3413
3414 2006-04-12  Richard Guenther  <rguenther@suse.de>
3415
3416         * profile.c (compute_branch_probabilities): Remove code
3417         encapsulated in !ir_type (), which are remanents of the
3418         removed RTL profiling code.
3419         * rtl-profile.c: Remove.
3420
3421 2006-04-12  Alan Modra  <amodra@bigpond.net.au>
3422
3423         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
3424         magic NULL_RTX comment.
3425         (function_arg): Store entire fp arg to mem if any part should go
3426         on stack.
3427         (rs6000_arg_partial_bytes): Adjust for above change.
3428
3429 2006-04-11  Roger Sayle  <roger@eyesopen.com>
3430
3431         * dwarf2out.c (output_call_frame_info): Create debug_frame_section
3432         if it hasn't been initialized by dwarf2out_init.
3433
3434 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
3435
3436         * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
3437         symbolic constants in branch patterns.
3438
3439 2006-04-11  Roger Sayle  <roger@eyesopen.com>
3440
3441         * caller-save.c: #include "addresses.h" after #include "tm_p.h".
3442
3443 2006-04-11  Richard Sandiford  <richard@codesourcery.com>
3444
3445         PR rtl-optimization/27073
3446         * gcse.c (try_replace_reg): Revert last change.  Continue to search
3447         for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
3448         on the former.
3449
3450 2006-04-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
3451
3452         * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
3453         aggregate types other than record and union types.
3454         (function_arg): Likewise.
3455         (function_arg_pass_by_reference): In 64-bit mode, return 0 for
3456         small arrays.
3457         (function_value): In 64-bit mode, return objects that require it
3458         in FP registers.
3459
3460 2006-04-11  Roger Sayle  <roger@eyesopen.com>
3461
3462         * dwarf2out.c (premark_used_types): Remove problematic prototype.
3463
3464 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
3465
3466         * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
3467
3468 2006-04-03  Jeff Law  <law@redhat.com>
3469
3470         PR/27087
3471         * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
3472         alias information too.
3473
3474 2006-04-10  Mike Frysinger  <vapier@gentoo.org>
3475
3476         * Makefile.in (gcc-cross): Add $(exeext) to target name.
3477
3478 2006-04-10  Aldy Hernandez  <aldyh@redhat.com>
3479
3480         PR/21391
3481         * dwarf2out.c (struct die_struct): Add die_perennial_p field.
3482         (premark_used_types_helper): New.
3483         (premark_used_types): New.
3484         (gen_subprogram_die): Call premark_used_types.
3485         (prune_unused_types_walk): Do not prune perennial dies.
3486