arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2006-10-17  Paul Brook  <paul@codesourcery.com>
2
3         * config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
4
5 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
6
7         * doc/contrib.texi, doc/install.texi, doc/standards.texi:
8         Standardize on "GNU Fortran" as the official name of the Fortran
9         compiler.
10
11 2006-10-16  Mike Stump  <mrs@apple.com>
12
13         * doc/invoke.texi (Darwin Options): Document -mkernel.
14         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
15         -mkernel support.
16         (C_COMMON_OVERRIDE_OPTIONS): Add -mkernel support.  Add
17         SUBTARGET_C_COMMON_OVERRIDE_OPTIONS callout.
18         (CC1_SPEC): Don't turn on -fPIC when -mkernel is given.
19         (OS_MISSING_ALTIVEC): Add.
20         * config/i386/i386.c (override_options): Add
21         SUBSUBTARGET_OVERRIDE_OPTIONS callout.
22         * config/i386/darwin.h (CC1_SPEC): Don't turn on -fPIC when
23         -mkernel, -static or -mdynamic-no-pic is given.
24         (C_COMMON_OVERRIDE_OPTIONS): Add.
25         * config/darwin.opt (fapple-kext): Add.
26         (mkernel): Add.
27         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add
28         -fapple-kext, -findirect-virtual-calls, -fterminated-vtables and
29         -mkernel support.
30         (SUBSUBTARGET_OVERRIDE_OPTIONS): Add.
31         (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Add.
32         (CPP_SPEC): Move defines for __DYNAMIC__ and __STATIC__ from here...
33         (SUBTARGET_ATTRIBUTE_TABLE): Add apple_kext_compatibility.
34         (TARGET_CXX_CDTOR_RETURNS_THIS): Add.
35         (flag_mkernel): Add.
36         (flag_apple_kext): Add.
37         (TARGET_KEXTABI): Add.
38         * config/darwin.c (darwin_handle_kext_attribute): Add.
39         (DARWIN_VTABLE_P): Add.
40         (darwin_binds_local_p): Add partial support for rebinding vtables
41         in kexts.
42         (darwin_kextabi_p): Add.
43         (darwin_override_options): Add.
44         * config/darwin-protos.h (darwin_handle_kext_attribute): Add.
45         (darwin_kextabi_p): Add.
46         (darwin_override_options): Add.
47         * config/darwin-c.c (darwin_cpp_builtins): ... move defines for
48         __DYNAMIC__ and __STATIC__ here.
49
50 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
51
52         * doc/sourcebuild.texi, doc/makefile.texi, doc/install.texi:
53         Added mention of "make pdf" target, and Texinfo requirements for
54         same.
55
56 2006-10-16  DJ Delorie  <dj@redhat.com>
57
58         * config/s390/s390.c (s390_decompose_address): Allow symbol+offset
59         into the GOT in case we need a subreg of the address.
60
61 2006-10-16  Richard Guenther  <rguenther@suse.de>
62
63         PR target/25519
64         * doc/extend.texi (X86 Built-in Functions): Fix typos in
65         SSE builtin documentation.  Document SSE2 builtins.
66
67 2006-10-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
68
69         * pa64-hpux.h (LINK_SPEC): Force __cxa_finalize to be an undefined
70         symbol in the output file for non-shared links when -nostdlib or
71         -nodefaultlibs isn't specified.
72
73         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*): Default to
74         posix thread support.
75
76 2006-10-15  Jan Hubicka  <jh@suse.cz>
77
78         PR middle-end/29241
79         * cgraphunit.c (cgraph_preserve_function_body_p): Preserve functions
80         declared always_inline even when not inlining.
81
82 2006-10-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
83             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
84             Andrew Pinski  <pinskia@gmail.com>
85
86         PR middle-end/29111
87         * builtins.c (get_pointer_alignment): Return 0 if TER is not run.
88
89 2006-10-15  Jan Hubicka  <jh@suse.cz>
90             Richard Guenther  <rguenther@suse.de>
91
92         PR middle-end/29299
93         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
94         process_function_and_variable_attributes on all variables, including
95         those discovered during cgraph construction phase.
96
97 2006-10-15  Bernhard Fischer  <aldot@gcc.gnu.org>
98
99         * final.c: Update Copyright year. Commentary typo fix. Fix whitespace
100
101 2006-10-14  Uros Bizjak  <uros@kss-loka.si>
102
103         * config/i386/athlon.md (athlon_fist): Add fisttp.
104
105 2006-10-13  David Edelsohn  <edelsohn@gnu.org>
106             Ian Lance Taylor  <ian@airs.com>
107
108         PR middle-end/29250
109         * expr.c (expand_expr_real_1) <NON_LVALUE_EXPR, NOP_EXPR,
110         CONVERT_EXPR>: Change EXPAND_SUM modifier to EXPAND_NORMAL when
111         recursing.
112
113 2006-10-14  Kazu Hirata  <kazu@codesourcery.com>
114
115         * config/score/score.c, config/score/score.h: Fix comment
116         typos.
117
118 2006-10-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
119
120         PR bootstrap/29402
121         * Makefile.in (ALL_GTFILES_H): Use $(sort ...) instead of
122         shell pipeline.
123
124 2006-10-13  Eric Christopher  <echristo@apple.com>
125
126         * config/darwin.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
127
128 2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
129
130         Revert this change:
131         2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
132         * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
133         alignment supported by 32-bit ELF.
134
135 2006-10-13  Eric Christopher  <echristo@apple.com>
136
137         * config/darwin.c (darwin_emit_unwind_label): Strip
138         name encoding. Use DECL_ASSEMBLER_NAME_SET_P.
139
140 2006-10-13  Richard Guenther  <rguenther@suse.de>
141
142         PR tree-optimization/29446
143         * tree-vrp.c (fix_equivalence_set): Remove.
144         (extract_range_from_assert): Do not call fix_equivalence_set.
145         (debug_value_range): Print a newline.
146         (compare_name_with_value): For equivalence sets with
147         inconsistent value ranges conservatively bail out.
148         (compare_names): Likewise.
149
150 2006-10-13  David Edelsohn  <edelsohn@gnu.org>
151
152         * doc/install.texi (*-ibm-aix*): Add comment about 32-bit GMP
153         and MPFR for gfortran.
154
155 2006-10-13  Carlos O'Donell  <carlos@codesourcery.com>
156
157         * config/elfos.h (MAX_OFILE_ALIGNMENT): Default to largest
158         alignment supported by 32-bit ELF.
159
160 2006-10-13  Paolo Bonzini  <bonzini@gnu.org>
161
162         PR c/29092
163
164         * c-typeck.c (digest_init): Always allow initializing vectors
165         that have static storage duration with compound literals.
166         * tree.c (build_type_attribute_qual_variant): New, based on
167         build_type_attribute_variant.
168         (build_type_attribute_variant): Rewrite using the former.
169         (make_vector_type): Use build_type_attribute_qual_variant to build
170         type variants.  Use type_hash_canon on the others.
171
172 2006-10-13  Daniel Berlin <dberlin@dberlin.org>
173             Ramana Radhakrishnan  <ramana.radhakrishnan@celunite.com>
174
175         * tree-flow-inline.h (zero_ssa_operands): Fix comment.
176
177 2006-10-12  Jan Hubicka  <jh@suse.cz>
178
179         PR c/28419
180         * c-decl.c (c_make_fname_decl): Do not segfault in case where
181         current_function_decl is set but current_function_scope is not.
182
183 2006-10-12  Jie Zhang  <jie.zhang@analog.com>
184
185         * config/bfin/bfin.md (eh_return): Call emit_jump_insn instead of
186         emit_insn to emit eh_return_internal instruction.
187         (eh_return_internal): Explicitly set pc.
188
189 2006-10-11  Richard Guenther  <rguenther@suse.de>
190
191         PR tree-optimization/28230
192         * tree-vrp.c (vrp_int_const_binop): Move flag_wrapv handling
193         to the correct place.
194
195 2006-10-11  Richard Guenther  <rguenther@suse.de>
196
197         PR inline-asm/29119
198         * gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
199         addressable.
200
201 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
202
203         * configure.ac: Added pdf to "Make-hooks"
204         * Makefile.in: Added TEXI2PDF definition, and various pdf-file
205         targets and *.pdf file patterns in cleanup targets.
206         * configure: Regenerated.
207
208 2006-10-10  Anatoly Sokolov <aesok@post.ru>
209
210         * config/avr/predicates.md: New file.
211         * config/avr/avr.md: Include it.
212         (REG_SP): New constant.
213         (peepholes): Use predicates.
214         (sbrx_branch, sbrx_and_branchhi, sbrx_and_branchsi, branch, rvbranch,
215         difficult_branch,  difficult_rvbranch, cbi, sbi, sbix_branch,
216         sbix_branch_bit7, sbix_branch_tmp, sbix_branch_tmp_bit7): Ditto.
217
218 2006-10-10  Adam Nemet  <anemet@caviumnetworks.com>
219
220         * config/mips/mips.c (mips_save_restore_reg): Use gen_frame_mem to
221         avoid alias set 0.
222
223 2006-10-10  Jakub Jelinek  <jakub@redhat.com>
224
225         PR middle-end/29272
226         * builtins.c (var_decl_component_p): New function.
227         (fold_builtin_memset, fold_builtin_memory_op): Restrict
228         single entry optimization to variables and components thereof.
229
230 2006-10-10  Richard Guenther  <rguenther@suse.de>
231
232         PR rtl-optimization/29323
233         * except.c (set_nothrow_function_flags): For functions
234         that do not bind local bail out early.
235
236 2006-10-10  Ben Elliston  <bje@au.ibm.com>
237
238         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -m to the
239         -mdlmzb option.
240
241 2006-10-09  Richard Henderson  <rth@redhat.com>
242
243         Revert emutls patch.
244
245 2006-10-09  Richard Guenther  <rguenther@suse.de>
246
247         PR middle-end/29254
248         * cgraphunit.c (verify_cgraph_node): Bail out on earlier
249         errors.
250
251 2006-10-09  Steve Ellcey  <sje@cup.hp.com>
252
253         PR target/27880
254         * unwind-c.c (PERSONALITY_FUNCTION): Ifdef use of _Unwind_GetIPInfo.
255         * configure.ac (HAVE_GETIPINFO): Check for _Unwind_GetIPInfo.
256         * configure: Regenerate.
257         * config.in: Regenerate.
258
259 2006-10-09  Aldy Hernandez  <aldyh@redhat.com>
260
261         * tree-mudflap.c (mf_xform_derefs_1): Add parentheses around TREE_TYPE.
262
263 2006-10-08  Richard Sandiford  <richard@codesourcery.com>
264
265         * config/mips/mips.c (mips_legitimize_tls_address): Implement
266         all TLS models in the same way as local exec if !TARGET_ABICALLS.
267         Remove stray newline.
268
269 2006-10-08  Richard Sandiford  <richard@codesourcery.com>
270
271         * config/mips/mips.c (mips_classify_symbol): Do not return
272         SYMBOL_SMALL_DATA if SYMBOL_REF_WEAK.
273         (mips_in_small_data_p): Tweak comments.
274
275 2006-10-08  Richard Sandiford  <richard@codesourcery.com>
276
277         * config/mips/elf.h (HANDLE_PRAGMA_PUSH_POP): Define.
278
279 2006-10-07  Kazu Hirata  <kazu@codesourcery.com>
280
281         * gimplify.c, sched-int.h: Fix comment typos.
282
283         * sched-int.h: Fix comment typos.
284
285 2006-10-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
286
287         * sched-int.h (IS_SPECULATION_CHECK_P, IS_SPECULATION_SIMPLE_CHECK_P):
288         New macros.
289         * sched-ebb.c (begin_schedule_ready): Use them.
290         * haifa-sched.c (schedule_insn, move_insn, try_ready,
291         add_to_speculative_block, create_check_block_twin, speculate_insn,
292         fix_jump_move, move_block_after_check): Ditto.
293         * sched-rgn.c (new_ready): Ditto.
294
295 2006-10-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
296
297         PR rtl-optimization/29128
298         * sched-int.h (IS_SPECULATION_BRANCHY_CHECK_P): New macro.
299         * sched-ebb.c (advance_target_bb): Use it to fix condition to
300         allow interblock movement of speculation checks.
301
302 2006-10-06  Zdenek Dvorak <dvorakz@suse.cz>
303
304         PR middle-end/29256
305         * tree-ssa-loop-ivopts.c (determine_base_object): Handle pointers
306         casted to integer type.
307         (get_address_cost): Decrease cost of [symbol + index] addressing modes
308         if they are significantly more expensive than [reg + index] ones.
309
310 2006-10-06  Jakub Jelinek  <jakub@redhat.com>
311
312         PR tree-optimization/29330
313         * tree-data-ref.c (free_data_ref): Use DR_FREE_ACCESS_FNS macro.
314         (initialize_data_dependence_relation): Clear DDR_LOOP_NEST pointer
315         on newly allocated ddrs.
316         (find_loop_nest_1, find_loop_nest): Change LOOP_NEST to a pointer
317         to VEC (loop_p, heap) pointer.
318         (compute_data_dependences_for_loop): Adjust caller.
319         (free_dependence_relations): Free DDR_LOOP_NEST.
320
321         * tree-loop-linear.c (linear_transform_loops): Don't forget to
322         free DEPENDENCE_RELATIONS and DATAREFS.
323
324         PR target/28924
325         * builtins.c (expand_builtin_sync_operation,
326         expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set):
327         Use convert_to_mode to handle promoted arguments.
328
329 2006-10-06  J"orn Rennecke  <joern.rennecke@st.com>
330
331         * print-tree.c (print_node_brief, print_node): Print sign of Inf.
332
333 2006-10-06  J"orn Rennecke  <joern.rennecke@st.com>
334
335         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Define.
336
337 2006-10-05  Uros Bizjak  <uros@kss-loka.si>
338
339         * config/i386/sync.md ("sync_add<mode>", "sync_sub<mode>",
340         "sync_ior<mode>", "sync_and<mode>", "sync_xor<mode>"):
341         Use <modeconstraint> instead of "r" as operand 1 constraint.
342
343 2006-10-06  Olivier Hainque  <hainque@adacore.com>
344
345         * gimplify.c (gimplify_type_sizes) [POINTER_TYPE, REFERENCE_TYPE]:
346         Don't recurse on the pointed-to type.
347         * c-decl.c (grokdeclarator) [cdk_pointer]: If we are in a NORMAL or
348         DECL context, attach an artificial TYPE_DECL to anonymous pointed-to
349         types with components of variable size.
350
351 2006-10-06  Danny Smith  <dannysmith@users.sourceforge.net>
352
353         config/i386/mingw32.h (GOMP_SELF_SPECS): Add -mthreads for openmp.
354
355 2006-10-06  Jakub Jelinek  <jakub@redhat.com>
356
357         PR tree-optimization/29290
358         * tree-loop-linear.c (linear_transform_loops): Bail if loop_nest has
359         multiple exits.
360
361         PR target/29198
362         * config/i386/i386.c (legitimize_pic_address): Reject TLS symbols.
363         * config/i386/predicates.md (local_symbolic_operand): Likewise.
364
365         PR c/29091
366         * varasm.c (output_constant): If TREE_VECTOR_CST_ELTS chain is shorter than
367         the number of vector elements fill the rest with zeros.
368
369 2006-10-05  Richard Sandiford  <richard@codesourcery.com>
370
371         * config/mips/mips.c (mips_pass_by_reference): Do not return false
372         for EABI if type is NULL.  Use a size check based on GET_MODE_SIZE
373         instead.
374
375 2006-10-05  Bernd Schmidt  <bernd.schmidt@analog.com>
376
377         * config/bfin/bfin.md (subsi3): Lose expander, change previously
378         unnamed pattern into subsi3.  Use correct constraints/predicates.
379         * config/bfin/bfin.h (CONST_OK_FOR_K): Handle "KN7".
380         * config/bfin/predicates.md (reg_or_neg7bit_operand_p): New.
381
382 2006-10-05  Ira Rosen  <irar@il.ibm.com>
383
384         * doc/loop.texi: Add data references analysis description.
385
386 2006-10-04  Brooks Moses  <bmoses@stanford.edu>
387
388         * doc/gcov.texi: Add formatting to "Invoking gcov" section head.
389
390 2006-10-04  Richard Henderson  <rth@redhat.com>
391             Jakub Jelinek  <jakub@redhat.com>
392
393         * Makefile.in (libgcc.mk, LIBGCC_DEPS): Add emutls.c.
394         * builtin-types.def (BT_WORD): Make unsigned.
395         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
396         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
397         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
398         * c-decl.c (grokdeclarator): Don't error if !have_tls.
399         * c-parser.c (c_parser_omp_threadprivate): Likewise.
400         * cgraph.c (decide_is_variable_needed): Look at force_output.
401         Recurse for emulated tls.
402         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Remove
403         checks redundant with decide_is_variable_needed.
404         (cgraph_build_static_cdtor): Do cgraph_varpool_assemble_pending_decls.
405         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
406         emulated tls.
407         * expr.c (emutls_var_address): New.
408         (expand_expr_real_1): Expand emulated tls.
409         (expand_expr_addr_expr_1): Likewise.
410         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
411         * output.h (emutls_finish): Declare.
412         * toplev.c (compile_file): Call it.
413         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
414         address before wrapping in CONST.
415         * varasm.c (emutls_htab, emutls_object_type): New.
416         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
417         (get_emutls_object_name, get_emutls_object_type): New.
418         (get_emutls_init_templ_addr, emutls_decl): New.
419         (emutls_common_1, emutls_finish): New.
420         (assemble_variable): When emulating tls, swap decls; generate
421         constructor for the emutls objects.
422         (do_assemble_alias): When emulating tls, swap decl and target name.
423         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
424         for emulated tls.
425         * emutls.c: New file.
426         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
427         tls_object for real tls.
428
429 2006-10-04  Zack Weinberg  <zackw@panix.com>
430
431         Fix bug in constraint-check generator, reported by Rask Ingemann
432         Lambertsen:
433         * genpreds.c (add_constraint): Don't remove anything from the
434         expression here.
435         (write_tm_constrs_h): Detect whether "op" argument is used, and
436         mark it ARG_UNUSED if it isn't.
437         (write_insn_const_int_ok_for_constraint): Skip the part of the
438         expression that would test whether "op" (which is not available
439         here) is a CONST_INT.
440
441 2006-10-04  Ryan Mansfield  <rmansfield@qnx.com>
442
443         PR c++/28448
444         * doc/invoke.texi (fdiagnostics-show-option): Fix typos.
445
446 2006-10-03  Geoffrey Keating  <geoffk@apple.com>
447
448         * config/i386/darwin-libgcc.10.5.ver: Update to symbol list for
449         current Leopard versions.
450         * config/rs6000/darwin-libgcc.10.5.ver: Likewise.
451
452 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
453
454         * doc/install.texi: Fix typos.
455
456 2006-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
457
458         * builtins.c (expand_builtin_return_addr): Deal with FRAME_ADDR_RTX.
459         * doc/tm.texi (Basic Stack Layout): Document FRAME_ADDR_RTX.
460         * config/sparc/sparc.h (FRAME_ADDR_RTX): Define.
461
462 2006-10-02  Jack Howarth  <howarth@bromo.med.uc.edu>
463
464         * unwind-dw2-fde-darwin.c (getsectdatafromheader_64): Fix first
465         arg to be struct mach_header_64* instead.
466
467 2006-10-02  Jakub Jelinek  <jakub@redhat.com>
468
469         PR c/29154
470         * gimplify.c (gimplify_self_mod_expr): Run inner expression's post
471         side effects after the outer expression's post side effects.
472
473 2006-10-01  Sandra Loosemore  <sandra@codesourcery.com>
474
475         * tree.h (DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET):  Fix
476         comments to reflect actual behavior and relationship between
477         DECL_FIELD_OFFSET, DECL_FIELD_BIT_OFFSET, and DECL_OFFSET_ALIGN.
478
479         * doc/c-tree.texi (Working with declarations): Fix documentation
480         of FIELD_DECL likewise.
481
482 2006-10-01  Ryan Mansfield  <rmansfield@qnx.com>
483
484         PR c/20533
485         * doc/extend.texi: Add used variable attribute description.
486
487 2006-09-30  Joseph S. Myers  <joseph@codesourcery.com>
488
489         PR c/24010
490         * c.opt (Woverride-init): New.
491         * c-opts.c (c_common_post_options): Default warn_override_init to
492         extra_warnings.
493         * c-typeck.c (add_pending_init, output_init_element): Warn for
494         overriding initializers without side effects.
495         * doc/invoke.texi (-Woverride-init): Document.
496         (-Wextra): Update.
497
498 2006-09-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
499
500         PR rtl-optimization/28096
501         * ifcvt.c (check_cond_move_block): Return FALSE if the source of an
502         assignment has already been used as a destination earlier in the block.
503
504 2006-09-29  Eric Botcazou  <ebotcazou@adacore.com>
505
506         * builtins.c (expand_builtin_setjmp): Delete.
507         (expand_builtin) <BUILT_IN_SETJMP>: Mark as unreachable.
508         <BUILT_IN_SETJMP_SETUP>: New case.
509         <BUILT_IN_SETJMP_DISPATCHER>: Likewise.
510         <BUILT_IN_SETJMP_RECEIVER>: Likewise.
511         * builtins.def (BUILT_IN_SETJMP_SETUP): New built-in stub.
512         (BUILT_IN_SETJMP_DISPATCHER): Likewise.
513         (BUILT_IN_SETJMP_RECEIVER): Likewise.
514         * gimple-low.c (struct lower_data): New field calls_builtin_setjmp.
515         (lower_function_body): Initialize it to false.  If it is set to true
516         at the end of the processing, emit the setjmp dispatcher.
517         (lower_stmt) <CALL_EXPR>: Invoke lower_builtin_setjmp if the callee
518         is __builtin_setjmp and set calls_builtin_setjmp to true as well.
519         <MODIFY_EXPR>: Fall through to above case if there is a CALL_EXPR
520         on the rhs of the assignment.
521         (lower_builtin_setjmp): New function.
522         * tree.c (build_common_builtin_nodes): Build BUILT_IN_SETJMP_SETUP,
523         BUILT_IN_SETJMP_DISPATCHER and BUILT_IN_SETJMP_RECEIVER nodes.
524         * tree-cfg.c (make_exit_edges) <CALL_EXPR>: Use specific predicate
525         to detect calls that can go to non-local labels.  Use specific
526         helper to create the abnormal edges associated with them.
527         <MODIFY_EXPR>: Likewise.
528         (make_abnormal_goto_edges): New function extracted from...
529         (make_goto_expr_edges): ...here.  Call it for computed gotos.
530         (simple_goto_p): Minor tweak.
531         (tree_can_make_abnormal_goto): New predicate.
532         (tree_redirect_edge_and_branch): Return zero on all abnormal edges.
533         (tree_purge_dead_abnormal_call_edges): New function.
534         * tree-flow.h (tree_can_make_abnormal_goto): Declare.
535         (tree_purge_dead_abnormal_call_edges): Likewise.
536         (make_abnormal_goto_edges): Likewise.
537         * tree-inline.c (expand_call_inline): Simplify statement frobbing.
538         Purge all dead abnormal edges if the call was in the last statement.
539         * tree-optimize.c (has_abnormal_outgoing_edge_p): New predicate.
540         (execute_fixup_cfg): If there are non-local labels in the function,
541         scan the basic blocks and split them at calls that can go to non-local
542         labels or add missing abnormal call edges.  Write down the CFG in the
543         dump file.
544         (pass_fixup_cfg): Remove TODO_dump_func flag.
545         * unwind-sjlj.c: Poison setjmp.
546         * doc/install.texi (enable-sjlj-exceptions): Use more general wording.
547         * doc/tm.texi (DWARF2_UNWIND_INFO): Likewise.
548         (TARGET_UNWIND_TABLES_DEFAULT): Fix typo.
549         (DONT_USE_BUILTIN_SETJMP): Document it.
550
551 2006-09-28  Geoffrey Keating  <geoffk@apple.com>
552
553         PR target/28617
554         * config/rs6000/rs6000.h [IN_LIBGCC2] (TARGET_POWERPC64): Define
555         to 1 when __ppc64__ is defined.
556         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add ppc64-fp.c and
557         darwin-64.c.
558         * config/rs6000/ppc64-fp.c: Also compile when __ppc64__ is defined.
559
560 2006-09-28  Steve Ellcey  <sje@cup.hp.com>
561
562         * config/ia64/t-hpux (LIB2FUNCS_EXTRA): Remove unwind-hpux.c.
563         * config/ia64/unwind-hpux.c: Delete.
564
565 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
566
567         * gimplify.c (gimplify_init_ctor_preeval): Call maybe_with_size_expr
568         on the element before gimplifying it, instead of punting if it is of
569         variable size.
570
571 2006-09-28  Zdenek Dvorak <dvorakz@suse.cz>
572
573         * doc/loop.texi: New file.
574         * doc/gccint.texi: Reference loop.texi.
575         * Makefile.in (loop.texi): Add.
576
577 2006-09-27  Geoffrey Keating  <geoffk@apple.com>
578
579         * config/darwin.h (ENABLE_EXECUTE_STACK): New, use getpagesize not
580         __sysctl.
581         * config/rs6000/darwin.h (ENABLE_EXECUTE_STACK): Remove.
582         * config/i386/darwin.h (ENABLE_EXECUTE_STACK): Remove.
583
584 2006-09-28  Kaz Kojima  <kkojima@gcc.gnu.org>
585
586         * config/sh/sh.md (divsi_inv_m0): Remove unused variable.
587
588 2006-09-27  Steven G. Kargl  <kargl@gcc.gnu.org>
589
590         * doc/install.texi: Document required versions of GMP and MPFR.
591
592 2006-09-27  Paul Brook  <paul@codesourcery.com>
593
594         PR target/29230
595         * config/arm/arm.md (arith_adjacentmem): Handle large offsets.
596
597 2006-09-27  Richard Sandiford  <richard@codesourcery.com>
598
599         * reload1.c (alter_reg): Require the alignment of the stack slot to
600         be at least reg_max_ref_width bytes.
601         (scan_paradoxical_subregs): Record the largest width in
602         reg_max_ref_width.
603
604 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
605
606         PR middle-end/25261
607         PR middle-end/28790
608         * tree-nested.c (struct nesting_info): Added static_chain_added.
609         (convert_call_expr): Set static_chain_added when adding static
610         chain.  Handle OMP_PARALLEL and OMP_SECTION.
611
612 2006-09-25  Matthias Klose  <doko@debian.org>
613
614         * doc/invoke.texi: Add missing full stop.
615
616 2006-09-25  Richard Henderson  <rth@redhat.com>
617
618         * cgraph.c (dump_cgraph_varpool_node): Don't crash if called
619         before cgraph_function_flags_ready.
620
621 2006-09-24  Zdenek Dvorak <dvorakz@suse.cz>
622             Adam Nemet  <anemet@caviumnetworks.com>
623
624         * tree-ssa-loop-ivopts.c (aff_combination_convert,
625         determine_common_wider_type): New functions.
626         (get_computation_aff): Use them to simplify arithmetic between
627         UBASE and CBASE if they are shortened from the same type.
628
629 2006-09-24  Kazu Hirata  <kazu@codesourcery.com>
630
631         PR target/28911
632         * config/m68k/m68k.md (negsf2, negdf2, negxf2): Use
633         -2147483647 - 1 instead of 0x80000000.
634
635 2006-09-23  Revital1 Eres  <ERES@il.ibm.com>
636
637         * flags.h (HONOR_NANS): Fix typo in comment.
638
639 2006-09-23  Uros Bizjak <uros@kss-loka.si>
640
641         * config/i386/driver-i386.c (host_detect_local_cpu): Add prototype.
642
643 2006-09-23  Jakub Jelinek  <jakub@redhat.com>
644
645         PR c/28706
646         PR c/28712
647         * tree.c (merge_attributes, attribute_list_contained): If both
648         TREE_VALUEs are TREE_LISTs, use simple_cst_list_equal instead of
649         simple_cst_equal.
650         * c-typeck.c (comptypes_internal): Don't consider aggregates
651         in different TUs as compatible if there one set of attributes is
652         not a subset of the other type's attributes.
653         (composite_type): Try harder not to create a new aggregate type.
654
655 2006-09-22  Geoffrey Keating  <geoffk@apple.com>
656
657         * config/i386/driver-i386.c: Always define host_detect_local_cpu.
658         * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386
659         or x86_64 host.  Define HAVE_LOCAL_CPU_DETECT.
660         (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather
661         than replicating condition above.
662         * config.host (i[34567]86-*-*): Always use driver-i386.o.
663
664         * config/darwin.h (LINK_SYSROOT_SPEC): New.
665         (LINK_SPEC): If TARGET_SYSTEM_ROOT is defined, pass it to
666         the linker by default.
667
668 2006-09-22  Mike Stump  <mrs@apple.com>
669
670         * config/rs6000/darwin.h (PROFILE_HOOK): Reassociate comment with
671         code.
672
673 2006-09-22  Richard Guenther  <rguenther@suse.de>
674
675         PR middle-end/28964
676         * cfgexpand.c (stack_var_size_cmp): Use DECL_UID to make
677         sort of stack variables stable.
678
679 2006-09-22  Peter Bergner <bergner@vnet.ibm.com>
680
681         PR middle-end/28690
682         * explow.c (force_reg): Set REG_POINTER flag according to
683         MEM_POINTER flag.
684
685 2006-09-22  Zdenek Dvorak <dvorakz@suse.cz>
686
687         PR tree-optimization/28888
688         * tree-if-conv.c (combine_blocks): Rewritten.
689         * tree-cfg.c (tree_verify_flow_info): Check that edges with
690         EDGE_TRUE/FALSE_VALUE follow COND_EXPR.
691
692 2006-09-22  Jakub Jelinek  <jakub@redhat.com>
693
694         * tree-ssa-propagate.c (set_rhs): Copy EXPR_LOCATION if
695         needed.
696
697 2006-09-21  Richard Sandiford  <richard@codesourcery.com>
698
699         * varasm.c (copy_constant): Fix reversed gcc_assert check.
700
701 2006-09-21  Janis Johnson  <janis187@us.ibm.com>
702
703         * ginclude/decfloat.h (DEC*_DEN): Define using the correct builtins.
704
705 2006-09-21  Roger Sayle  <roger@eyesopen.com>
706
707         PR debug/29132
708         * dwarf2out.c (dwarf2out_begin_prologue): Initialise the current label,
709         dw_fde_current_label, to be the start of the function, i.e. the same
710         value as dw_fde_begin.
711
712 2006-09-20  Richard Sandiford  <richard@codesourcery.com>
713
714         * config/mips/mips.c (CODE_FOR_mips_abs_ps): Delete.
715         * config/mips/mips.md (UNSPEC_ABS_PS): New constant.
716         (UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2)
717         (UNSPEC_SINGLE_CC, UNSPEC_SCC): Bump values by 1.
718         (*nmadd<mode>, *nmadd<mode>_fastmath): Require !HONOR_NANS.
719         (*nmsub<mode>, *nmsub<mode>_fastmath): Likewise.
720         (abs<mode>2, neg<mode>2): Likewise.
721         * config/mips/mips-ps-3d.md (mips_abs_ps): New define_expand.
722         (*mips_abs_ps): New define_insn.
723
724 2006-09-20  Josh Conner  <jconner@apple.com>
725
726         PR middle-end/25505
727         * calls.c (expand_call): Allow reuse of structure return stack
728         temp.
729
730 2006-09-20  Paul Brook  <paul@codesourcery.com>
731
732         * config/arm/unwind-arm.c (selfrel_offset31): Clear top bit for
733         positive offsets.
734
735 2006-09-20  Janis Johnson  <janis187@us.ibm.com>
736
737         * doc/extend.texi (Decimal Float): Update for latest draft TR,
738         clean up terminology.
739
740 2006-09-20  Steve Ellcey  <sje@cup.hp.com>
741
742         PR target/28574
743         * ifcvt.c (dead_or_predicable): Don't predicate then blocks
744         with tablejumps in them.
745
746 2006-09-20  Jakub Jelinek  <jakub@redhat.com>
747
748         PR middle-end/28046
749         * c-omp.c (c_finish_omp_atomic): If ADDR is not simple enough,
750         wrap it into TARGET_EXPR.
751
752 2006-09-20  Eric Christopher  <echristo@apple.com>
753
754         * config/i386/i386.c (x86_fisttp): Remove.
755         * config/i386/i386.h (x86_fisttp): Ditto.
756         (TARGET_FISTTP): Ditto.
757
758 2006-09-19  Eric Christopher  <echristo@apple.com>
759
760         * doc/tm.texi (OBJC_JBLEN): Describe.
761         * config/i386/darwin.h (OBJC_JBLEN): Define.
762         * config/rs6000/darwin.h: Ditto.
763
764 2006-09-19  Steven Bosscher  <steven@gcc.gnu.org>
765
766         PR rtl-optimization/21299
767         * reload1.c (reload): Purge invalid ASMs in the final pass.
768
769 2006-09-19  Steve Ellcey  <sje@cup.hp.com>
770
771         PR  28490
772         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow function
773         pointers as legitimate constants.
774
775 2006-09-19  Paul Brook  <paul@codesourcery.com>
776
777         PR target/28516
778         * config/arm/arm.c (arm_unwind_emit_set): Handle reg = sp + const.
779
780 2006-09-17  Zdenek Dvorak <dvorakz@suse.cz>
781
782         PR tree-optimization/28887
783         * tree-ssa-loop-prefetch.c (analyze_ref): Strip nonaddressable
784         component parts from the reference.
785         (gather_memory_references_ref): Record the reference without the
786         nonaddressable component parts.
787
788 2006-09-17  Steven Bosscher  <steven@gcc.gnu.org>
789
790         PR c/25993
791         * c-opts.c (c_common_handle_option): Ignore the -std options
792         if the input language is assembly.
793
794 2006-09-17  Ira Rosen  <irar@il.ibm.com>
795
796         PR tree-opt/21591
797         * tree-data-ref.c (ptr_decl_may_alias_p): Look for the name memory
798         tag first.
799         (ptr_ptr_may_alias_p): Likewise.
800         (record_record_differ_p): New function.
801         (base_object_differ_p): Call record_record_differ_p.
802
803 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
804
805         PR tree-opt/29059
806         * tree-ssa-propagate.c (set_rhs): Reject MODIFY_EXPR right
807         away for the expr argument.
808
809 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
810
811         PR tree-opt/27742
812         * tree-vectorizer.c (vectorize_loops): Clear vect_loop_location
813         before using it for dumping after vectorizing loops.
814
815 2006-09-16  Andrew Pinski  <pinskia@physics.uc.edu>
816             Jack Howarth  <howarth@bromo.med.uc.edu>
817
818         PR target/29030
819         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_recurse)
820         skip on error_mark_node.
821         (rs6000_darwin64_record_arg_recurse): Likewise.
822
823 2006-09-16  Steven Bosscher  <steven@gcc.gnu.org>
824
825         * rtl.h (LABEL_OUTSIDE_LOOP_P): Remove.
826         * doc/rtl.texi: Remove related documentation.
827
828 2006-09-16  Bernd Schmidt  <bernd.schmidt@analog.com>
829
830         * loop-doloop.c (doloop_optimize): Remove bogus arg from debugging
831         printf.
832
833 2006-09-15  Jim Wilson  <wilson@specifix.com>
834
835         * config/ia64/ia64.c (ia64_legitimate_constant_p, cast CONST):
836         Handle symbol offsets same as they are handled in ia64_expand_move
837         and move_operand.
838
839 2006-09-16  Andreas Tobler  <a.tobler@schweiz.org>
840
841         * loop-doloop.c (doloop_optimize): Change type of max_cost to int.
842         Add forgotten parameter to the fprintf call.
843
844 2006-09-15  Steve Ellcey  <sje@cup.hp.com>
845
846         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Add define.
847
848 2006-09-15  Uros Bizjak <uros@kss-loka.si>
849
850         * doc/contrib.texi: Add my entry.
851
852 2006-09-15  Nick Clifton  <nickc@redhat.com>
853
854         * doc/md.texi (Processor pipeline description): Fix typo in
855         example of how to use the absence_set directive and reword the
856         description to make it slightly easier to read.
857
858 2006-09-15  Bernd Schmidt  <bernd.schmidt@analog.com>
859
860         * params.def (PARAM_MAX_ITERATIONS_COMPUTATION_COST): New.
861         * loop-doloop.c (doloop_optimize): Use it to limit costs of
862         expanding the number of iterations.
863         * config/bfin/bfin.c (bfin_rtx_costs): Handle UDIV, UMOD.
864
865         * cfgrtl.c (emit_insn_at_entry): New function.
866         * rtl.h (emit_insn_at_entry): Declare it.
867         * integrate.c (emit_initial_value_sets): Use it.
868
869         * cfgrtl.c (emit_insn_at_entry): Use gcc_assert, not abort.
870
871         * config/bfin/bfin.c (struct loop_info): New members block_bitmap and
872         bad.
873         (struct loop_work and related VEC declarations): Delete.
874         (bfin_dump_loops): Print out new member bad.
875         (bfin_bb_in_loop): Use plain bitmap test.  Don't recurse.
876         (bfin_scan_loop): Don't recurse.
877         (bfin_optimize_loop): Don't use a loop depth of -1 to indicate bad
878         loops.  No longer need to update outer loops if the current one is
879         found bad.  Move some validitiy checks to bfin_discover_loop.
880         (bfin_discover_loop): New function, mostly split from bfin_reorg_loops,
881         but changed not to check for nesting.  Also changed to use the new bad
882         flag.
883         (bfin_reorg_loops): Use bfin_discover_loop to find single loops one at a
884         time.  Use bitmap based test to discover loop nesting.
885
886 2006-09-15  Kazu Hirata  <kazu@codesourcery.com>
887
888         * doc/tm.texi (TARGET_FUNCTION_VALUE): Put @deftypefn all in
889         one line.
890
891 2006-09-14  Richard Guenther  <rguenther@suse.de>
892             Kazu Hirata  <kazu@codesourcery.com>
893
894         PR middle-end/28884.
895         * doc/tm.texi (TARGET_FUNCTION_VALUE): Document.
896         (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE): Deprecate.
897         Replace mentions of FUNCTION_VALUE and FUNCTION_OUTGOING_VALUE
898         with TARGET_FUNCTION_VALUE.
899
900 2006-09-14  Anatoly Sokolov <aesok@post.ru>
901
902         PR target/26504
903         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define.
904
905 2006-09-13  Aldy Hernandez  <aldyh@redhat.com>
906
907         * doc/tree-ssa.texi (Jumps): RESULT_DECL can also be an operand
908         of a RETURN_EXPR
909
910 2006-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
911
912         PR debug/28980
913         * dwarf2out.c (loc_descriptor_from_tree_1): Handle
914         FUNCTION_DECL.
915
916 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
917
918         * basic_block.h (bb_has_eh_pred): Fix comment.
919
920 2006-09-13  Andreas Krebbel  <krebbel1@de.ibm.com>
921
922         * flow.c (calculate_global_regs_live): Invalidate eh registers
923         on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge.
924         (propagate_block): Handle eh registers as if they were set at basic
925         block start.
926         * except.c (dw2_build_landing_pads): Don't emit clobbers for eh
927         registers.
928         * global.c (global_conflicts): Make eh registers to conflict with
929         pseudos live at basic block begin.
930         * basic_block.h (bb_has_eh_pred): New function.
931
932 2006-09-13  Richard Sandiford  <richard@codesourcery.com>
933
934         PR rtl-optimization/28982
935         * reload.c (find_reloads_address_1): Use RELOAD_OTHER for the
936         index of a PRE_MODIFY or POST_MODIFY address.
937         * reload1.c (inc_for_reload): Use find_replacement on the original
938         base and index registers.
939
940 2006-09-12  H.J. Lu  <hongjiu.lu@intel.com>
941
942         * doc/invoke.texi (mpreferred-stack-boundary): Remove exception
943         for -Os. Update __m128 alignment requirement.
944
945 2006-09-13  Jan Hubicka  <jh@suse.cz>
946
947         * cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
948
949 2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
950
951         PR rtl-optimization/28243
952         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
953         the insn to which the note was originally attached.
954
955 2006-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
956             Roger Sayle  <roger@eyesopen.com>
957
958         * dwarf2out.c (file_table_last_lookup): Move this GC'd declaration
959         outside of #ifdef DWARF2_DEBUGGING_INFO to fix bootstrap failure
960         on platforms that don't use dwarf for debug info.
961
962 2006-09-12  Jason Merrill  <jason@redhat.com>
963
964         PR middle-end/28493
965         * builtins.c (expand_builtin_setjmp_receiver): Clobber
966         hard_frame_pointer_rtx after using it to update the frame pointer.
967
968 2006-09-12  Roger Sayle  <roger@eyesopen.com>
969
970         * target-def.h (TARGET_ASM_OPEN_PAREN): Guard with an #ifndef.
971         (TARGET_ASM_CLOSE_PAREN): Likewise.
972         * config/alpha/osf5.h (TARGET_ASM_OPEN_PAREN): Define.
973         (TARGET_ASM_CLOSE_PAREN): Likewise.
974
975 2006-09-12  Roger Sayle  <roger@eyesopen.com>
976
977         PR target/22223
978         * config/alpha/alpha.c (alpha_start_function): Don't emit stack
979         frame information for frames larger than 512 Kbytes on Tru64 when
980         using the native assembler.
981
982 2006-09-12  Roger Sayle  <roger@eyesopen.com>
983
984         PR middle-end/4520
985         PR bootstrap/28784
986         * cselib.c (cselib_hash_rtx): Avoid hashing on the address of labels
987         and symbols.  Instead use the implementation from cse.c's hash_rtx.
988
989 2006-09-12  Jan Hubicka  <jh@suse.cz>
990
991         PR rtl-optimization/28071
992         * tree-vect-transform.c (vect_create_data_ref_ptr): Kill cast.
993         (vect_transform_loop): Likewise.
994         * tree-vectorizer.c (new_loop_vec_info): Likewise.
995         (new_loop_vec_info): Likewise.
996         (destroy_loop_vec_info): Likewise.
997         * tree-dfa.c (create_var_ann): Use GCC_CNEW.
998         (create_stmt_ann): Likewise.
999         (create_tree_ann): Rename to ...
1000         (create_tree_common_ann): ... this one; allocate only the common part
1001         of annotations.
1002         * tree-vn.c (set_value_handle): Use get_tree_common_ann.
1003         (get_value_handle): Likewise.
1004         * tree-ssa-pre.c (phi_translate): Delay annotation allocation for
1005         get_tree_common_ann.
1006         * tree-vectorizer.h (set_stmt_info): Take stmt annotation.
1007         (vinfo_for_stmt): Use stmt annotations.
1008         * tree-flow.h (tree_ann_common_t): New type.
1009         (tree_common_ann, get_tree_common_ann, create_tree_common_ann): New.
1010         (tree_ann, get_tree_ann, create_tree_ann): New.
1011         * tree-flow-inline.h (get_function_ann): Do more type checking.
1012         (stmt_ann): Likewise.
1013         (tree_ann): Rename to ...
1014         (tree_common_ann): ... this one; return ony common_ann
1015         (get_tree_ann): Rename to ...
1016         (tree_common_ann): This one; return only common_ann.
1017         * tree-vect-patterns.c (vect_pattern_recog_1): Update call
1018         of set_stmt_info.
1019
1020 2006-09-11  Geoffrey Keating  <geoffk@apple.com>
1021
1022         * config.gcc (i[34567]86-*-darwin*): Set with_arch and
1023         with_cpu by default.
1024
1025         * dwarf2out.c (dwarf_file_data): New.
1026         (enum dw_val_class): Add dw_val_class_file.
1027         (struct dw_val_struct): Add val_file.
1028         (file_table): Change to a hash table.
1029         (file_table_emitted): Delete.
1030         (file_table_last_lookup_index): Delete.
1031         (emitcount): Delete.
1032         (last_emitted_file): New.
1033         (lookup_filename): Change prototype to return a struct dwarf_file_data.
1034         (init_file_table): Delete.
1035         (maybe_emit_file): Change prototype to take a struct dwarf_file_data.
1036         (AT_addr): Add comment.
1037         (add_AT_file): New.
1038         (AT_file): New.
1039         (get_AT_file): New.
1040         (print_die): Handle dw_val_class_file.
1041         (print_dwarf_line_table): Update for new file table structure.
1042         (attr_checksum): Do checksum a filename.
1043         (same_dw_val_p, same_attr_p): Do compare a filename.
1044         (size_of_die): Handle dw_val_class_file.
1045         (value_format): Likewise.
1046         (output_die): Likewise.  Also, call maybe_emit_file here.
1047         (struct file_info): Constify filenames.  Make file_idx a pointer
1048         to a struct dwarf_file_data.
1049         (struct dir_info): Constify directory names.  Remove 'used' field.
1050         (struct file_name_acquire_data): New.
1051         (file_name_acquire): New.
1052         (output_file_names): Modify to handle new file data structures.
1053         (add_src_coords_attributes): Use add_AT_file.
1054         (add_call_src_coords_attributes): Likewise.
1055         (dwarf2out_imported_module_or_decl): Likewise.
1056         (gen_subprogram_die): Modify for new file data structures.
1057         (gen_variable_die): Likewise.
1058         (file_table_eq): New.
1059         (file_table_hash): New.
1060         (file_table_last_lookup): New.
1061         (lookup_filename): Rewrite to handle new file data structures.
1062         (maybe_emit_file): Rewrite to handle new file data structures.
1063         (dwarf2out_source_line): Always call lookup_filename and
1064         maybe_emit_file.
1065         (dwarf2out_init): Create file_table here.
1066         (prune_unused_types_walk_attribs): Don't call maybe_emit_file here.
1067         (file_table_relative_p): New.
1068         (dwarf2out_finish): Change detection of relative filenames
1069         to work with new file data structures.  Move output_line_info call
1070         after debug_info output.
1071
1072 2006-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1073
1074         PR target/13685
1075         PR target/27537
1076         PR target/28621
1077         * config/i386/i386.c (override_options): Always default to 16
1078         byte stack boundary.
1079
1080 2006-09-11  Alexandre Oliva  <aoliva@redhat.com>
1081
1082         PR target/28672
1083         * var-tracking.c (dump_dataflow_set): Start dumping at
1084         register zero.
1085         (clobber_variable_part): Kill only the variable part in
1086         registers holding it, leaving other variables alone.
1087
1088 2006-09-11  Josh Triplett  <josh@freedesktop.org>
1089
1090         * doc/extend.texi (Other Builtins): Actually use the macro
1091         argument in the documentation example for
1092         __builtin_types_compatible_p.
1093
1094 2006-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1095
1096         PR rtl-optimization/28726
1097         * sched-deps.c (sched_analyze_reg): New function extracted from...
1098         (sched_analyze_1): ...here.  Call it to analyze references to
1099         registers.  Treat again writes to a stack register as writing to the
1100         register.
1101         (sched_analyze_2): ...and here.  Call it to analyze references to
1102         registers.  Treat again reads of a stack register as reading the
1103         register.
1104
1105 2006-09-11  Guenter Roeck  <guenter@roeck-us.net>
1106             David Edelsohn  <edelsohn@gnu.org>
1107
1108         PR target/27287
1109         * config/rs6000/spe.md (frob_df_di): Remove %H.
1110         (frob_di_df): Remove %H.  Change evmergelo to mr.
1111         (frob_di_df_2): Remove %H.  Change evldd to two loads.
1112
1113 2006-09-11  Hideki Iwamoto  <h-iwamoto@kit.hi-ho.ne.jp>
1114
1115         * doc/cpp.texi: Fix names of charset options.
1116
1117 2006-09-10  Andrew Pinski  <pinskia@physics.uc.edu>
1118
1119         PR target/29009
1120         * config/i386/i386.c (override_options): Use 128-bit
1121         stack boundary always for 64bits.
1122
1123 2006-09-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1124
1125         PR rtl-optimization/28636
1126         * combine.c (force_to_mode): Test for side-effects before
1127         substituting by zero.
1128         (simplify_shift_const): Likewise for zero or other constants.
1129
1130 2006-09-10  Steven Bosscher  <steven@gcc.gnu.org>
1131
1132         PR middle-end/26983
1133         * builtins.c (expand_builtin_setjmp): Force next_lab to be
1134         preserved.
1135
1136 2006-09-10  Richard Sandiford  <richard@codesourcery.com>
1137
1138         PR target/29006
1139         * config/mips/mips-protos.h (mips_mem_fits_mode_p): Declare.
1140         * config/mips/mips.c (mips_expand_unaligned_store): Use the mode
1141         returned by mode_for_size, rather than the mode of src itself,
1142         to choose between 32-bit and 64-bit patterns.
1143         (mips_mem_fits_mode_p): New function.
1144         * config/mips/mips.md (mov_<load>l, mov_<load>r): Use it to check
1145         that the size of the source matches the size of the destination.
1146         (mov_<store>l, mov_<store>r): Likewise.
1147
1148 2006-09-10  Eric Christopher  <echristo@apple.com>
1149
1150         * config/darwin.c (machopic_select_rtx_section): Add CONST_VECTOR
1151         for literal16.
1152
1153 2006-09-09  Eric Christopher  <echristo@apple.com>
1154
1155         PR target/28995
1156         * config/darwin.c (machopic_select_rtx_section): Add TARGET_64BIT
1157         for literal16.
1158
1159 2006-09-09  Roger Sayle  <roger@eyesopen.com>
1160             Nicolas Setton <setton@adacore.com>
1161
1162         * dwarf2out.c (convert_cfa_to_fb_loc_list): Handle DW_CFA_set_loc.
1163
1164 2006-09-10  Andreas Schwab  <schwab@suse.de>
1165
1166         * config/m68k/m68k.md (bungt_rev): New pattern.
1167
1168 2006-09-09  Paolo Bonzini  <bonzini@gnu.org>
1169             Dale Johannesen  <dalej@apple.com>
1170
1171         PR target/26778
1172         * regclass.c (struct reg_pref): Update documentation.
1173         (regclass): Set prefclass to NO_REGS if memory is the best option.
1174         (record_reg_classes): Cope with a prefclass set to NO_REGS.
1175
1176 2006-09-08  Eric Christopher  <echristo@apple.com>
1177
1178         * config.gcc (i?86-*-darwin): Add 64-bit HWI support.
1179         * config/t-slibgcc-darwin: Support x86_64 multilib.
1180         * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION):
1181         Return 1 for x86_64-darwin.
1182         * config/i386/t-darwin: Add m64 multilib.
1183         (LIB2_SIDITI_CONV_FUNCS): Use.
1184         (LIB2FUNCS_EXTRA): Ditto.
1185         * config/i386/darwin.h: Support x86_64.
1186         * config/i386/i386.c (override_options): Turn on flag_pic
1187         for x86_64-darwin. Disable flag_omit_pointer.
1188         (get_pc_thunk_name): Assert !TARGET_64BIT.
1189         (legitimate_address_p): Disable machopic addressing for
1190         x86_64.
1191         (legitimize_pic_address): Ditto.
1192         (ix86_expand_move): Ditto.
1193         (ix86_expand_call): Ditto.
1194         (machopic_output_stub): Ditto.
1195         * config/darwin.c (machopic_select_section): Support literal16.
1196         (machopic_select_rtx_section): Ditto.
1197         * config/darwin-sections.def: Ditto.
1198         * config/darwin-64.c: New.
1199
1200 2006-09-08  Joseph S. Myers  <joseph@codesourcery.com>
1201
1202         PR c/28504
1203         * c-tree.h (struct c_arg_info): Add pending_sizes.
1204         * c-parser.c (c_parser_parms_declarator,
1205         c_parser_parms_list_declarator): Initialize pending_sizes.
1206         * c-decl.c (get_parm_info): Initialize pending_sizes.
1207         (get_parm_info): Set pending_sizes.
1208         (grokdeclarator): Call put_pending_sizes for parameters for
1209         function definition only.
1210
1211 2006-09-07  Jason Merrill  <jason@redhat.com>
1212
1213         PR middle-end/27724
1214         * varasm.c (output_constant): Only strip actual no-op conversions.
1215
1216         PR target/13685
1217         * config/i386/i386.c (override_options): Use 128-bit
1218         stack boundary if -msse.
1219
1220 2006-09-07  Eric Christopher  <echristo@apple.com>
1221
1222         * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
1223         comment.
1224         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
1225         Redefine.
1226
1227 2006-09-07  Geoffrey Keating  <geoffk@apple.com>
1228
1229         * dwarf2out.c: Remove strange characters from comment above
1230         dwarf2out_frame_debug_expr.
1231
1232 2006-09-07  Eric Christopher  <echristo@apple.com>
1233
1234         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Move from here...
1235         * config/darwin.h: ... to here.
1236
1237 2006-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1238
1239         * config/i386/i386.c (x86_partial_flag_reg_stall): New.
1240
1241         * config/i386/i386.h (x86_partial_flag_reg_stall): New.
1242         (TARGET_PARTIAL_FLAG_REG_STALL): New.
1243
1244         * config/i386/i386.md (*ashldi3_cmp_rex64): Disabled for
1245         TARGET_PARTIAL_FLAG_REG_STALL.
1246         (*ashldi3_cconly_rex64): Likewise.
1247         (*ashlsi3_cmp): Likewise.
1248         (*ashlsi3_cconly): Likewise.
1249         (*ashlsi3_cmp_zext): Likewise.
1250         (*ashlhi3_cmp): Likewise.
1251         (*ashlhi3_cconly): Likewise.
1252         (*ashlqi3_cmp): Likewise.
1253         (*ashlqi3_cconly): Likewise.
1254         (*ashrdi3_cmp_rex64): Likewise.
1255         (*ashrdi3_cconly_rex64): Likewise.
1256         (*ashrsi3_cmp): Likewise.
1257         (*ashrsi3_cconly): Likewise.
1258         (*ashrsi3_cmp_zext): Likewise.
1259         (*ashrhi3_cmp): Likewise.
1260         (*ashrhi3_cconly): Likewise.
1261         (*ashrqi3_cmp): Likewise.
1262         (*ashrqi3_cconly): Likewise.
1263         (*lshrdi3_cmp_rex64): Likewise.
1264         (*lshrdi3_cconly_rex64): Likewise.
1265         (*lshrsi3_cmp): Likewise.
1266         (*lshrsi3_cconly): Likewise.
1267         (*lshrsi3_cmp_zext): Likewise.
1268         (*lshrhi3_cmp): Likewise.
1269         (*lshrhi3_cconly): Likewise.
1270         (*lshrqi2_cmp): Likewise.
1271         (*lshrqi2_cconly): Likewise.
1272
1273 2006-09-07 Uros Bizjak <uros@kss-loka.si>
1274
1275         PR target/28946
1276         * config/i386/i386.md ("*ashldi3_cconly_rex64", "*ashlsi3_cconly",
1277         "*ashlhi3_cconly", "*ashlqi3_cconly", "*ashrdi3_one_bit_cconly_rex64",
1278         "*ashrdi3_cconly_rex64", "*ashrsi3_one_bit_cconly", "*ashrsi3_cconly",
1279         "*ashrhi3_one_bit_cconly", "*ashrhi3_cconly",
1280         "*ashrqi3_one_bit_cconly", "*ashrqi3_cconly",
1281         "*lshrdi3_cconly_one_bit_rex64", "*lshrdi3_cconly_rex64",
1282         "*lshrsi3_one_bit_cconly", "*lshrsi3_cconly",
1283         "*lshrhi3_one_bit_cconly", "*lshrhi3_cconly",
1284         "*lshrqi2_one_bit_cconly", "*lshrqi2_cconly": New patterns to
1285         implement only CC setting effects of shift instructions.
1286
1287 2006-09-07  Martin Michlmayr  <tbm@cyrius.com>
1288
1289         * doc/contrib.texi: Add myself.
1290
1291 2006-09-07  Andrew Pinski  <pinskia@physics.uc.edu>
1292
1293         PR middle-end/28862
1294         * stor-layout.c (relayout_decl): Don't zero the alignment if it
1295         was set by the user.
1296
1297 2006-09-07  Paolo Bonzini  <bonzini@gnu.org>
1298
1299         PR target/27117
1300         * config/sh/sh.md (divsi_inv_qitable, divsi_inv_hitable): New patterns.
1301         (divsi_inv_m1): Use them.
1302         (UNSPEC_DIV_INV_TABLE): New constant.
1303
1304 2006-09-06  James E Wilson  <wilson@specifix.com>
1305
1306         PR rtl-opt/27883
1307         * flow.c (update_life_info): If UPDATE_LIFE_LOCAL and PROP_DEATH_NOTES
1308         then call count_or_remove_death_notes.
1309
1310 2006-09-06  Jason Merrill  <jason@redhat.com>
1311
1312         PR c++/27371
1313         * tree-inline.c (copy_result_decl_to_var): New fn.
1314         (declare_return_variable): Use it.  Call declare_inline_vars here.
1315         (expand_call_inline): Not here.
1316
1317 2006-09-06  Diego Novillo  <dnovillo@redhat.com>
1318
1319         * doc/contrib.texi: Update my entry.
1320
1321 2006-09-06  Nick Clifton  <nickc@redhat.com>
1322
1323         * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.
1324
1325 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
1326
1327         PR tree-opt/28937
1328         * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int.
1329         (canonicalize_induction_variables): Likewise.
1330         (tree_unroll_loops_completely): Likewise.
1331         (tree_ssa_prefetch_arrays): Likewise.
1332         (remove_empty_loops): Likewise.
1333         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return
1334         TODO_cleanup_cfg instead of directly calling
1335         cleanup_tree_cfg_loop.
1336         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
1337         Likewise.
1338         (tree_unroll_loops_completely): Likewise.
1339         (remove_empty_loops): Likewise.
1340         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
1341         * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value
1342         of tree_ssa_unswitch_loops.
1343         (tree_ssa_loop_ivcanon): Use the return value of
1344         canonicalize_induction_variables.
1345         (tree_ssa_empty_loop): Use the return value of
1346         remove_empty_loops.
1347         (tree_complete_unroll): Use the return value of
1348         tree_unroll_loops_completely.
1349         (tree_ssa_loop_prefetch): Use the return value of
1350         tree_ssa_prefetch_arrays.
1351         * passes.c (execute_todo): Before Cleanup CFG, set
1352         updating_used_alone and after cleanup CFG, call
1353         recalculate_used_alone.
1354
1355 2006-09-05  Andrew Pinski  <pinskia@physics.uc.edu>
1356
1357         PR tree-opt/28952
1358         * tree-vect-transform.c (vectorizable_condition): Move the check
1359         for the type after the check for simple condition.
1360
1361 2006-09-05  J"orn Rennecke  <joern.rennecke@st.com>
1362             Kaz Kojima  <kkojima@gcc.gnu.org>
1363
1364         PR target/28764
1365         * mode-switching.c (optimize_mode_switching): Make the destination
1366         block of an abnormal edge have no anticipatable mode.  Don't
1367         insert mode switching code at the end of the source block of
1368         an abnormal edge.
1369
1370 2006-09-05  Paolo Bonzini  <bonzini@gnu.org>
1371
1372         PR rtl-optimization/26847
1373         * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix.
1374         (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno.
1375         (simplify_plus_minus): Count n_constants while filling ops.  Replace
1376         qsort with insertion sort.  Before going through the array to simplify
1377         pairs, sort it.  Delay early exit until after the first sort, exiting
1378         only if no swaps occurred.  Simplify pairs in reversed order, without
1379         special-casing the first iteration.  Pack ops after simplifying pairs.
1380
1381 2006-09-05  Anatoly Sokolov <aesok@post.ru>
1382
1383         * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.
1384         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1385         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1386         (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED.
1387
1388 2006-09-05  Richard Guenther  <rguenther@suse.de>
1389
1390         PR tree-optimization/28900
1391         * tree-if-conv.c (find_phi_replacement_condition): Gimplify
1392         compound conditional before creating COND_EXPR condition.
1393
1394 2006-09-05  Richard Guenther  <rguenther@suse.de>
1395
1396         PR tree-optimization/28905
1397         * tree-vrp.c (fix_equivalence_set): Manually implement
1398         !value_ranges_intersect_p to also handle symbolic ranges.
1399
1400 2006-09-05  Richard Guenther  <rguenther@suse.de>
1401
1402         PR middle-end/28935
1403         * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition
1404         of a COND_EXPR.
1405
1406 2006-09-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1407
1408         PR rtl-optimization/27616
1409         * cse.c (table_size): New static variable.
1410         (new_basic_block): Initialize it to 0.
1411         (remove_from_table): Decrement it.
1412         (insert): Increment it.
1413         (fold_rtx_mem_1): New function, renamed from fold_rtx_mem.
1414         (fold_rtx_mem): Enforce a cap on the recursion depth.  Call
1415         fold_rtx_mem_1 if under the cap.
1416         (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little
1417         the lookup of the equivalent expression and test for equality of the
1418         first operand of the equivalent expression before in turn looking up
1419         an equivalent constant for the second operand.
1420
1421 2006-09-02  Geoffrey Keating  <geoffk@apple.com>
1422
1423         Revert this change:
1424         2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
1425         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
1426         pointer, instead of assuming it is possible to derive the
1427         correct args size from a call insn.
1428
1429 2006-09-02  Jakub Jelinek  <jakub@redhat.com>
1430
1431         PR middle-end/27567
1432         * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove.
1433         (fold_builtin_mempcpy): Rename to...
1434         (fold_builtin_memory_op): ... this.  Optimize one element copy
1435         into an assignment.
1436         (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New
1437         functions.
1438         (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR.
1439         (expand_builtin_memcpy, expand_builtin_mempcpy,
1440         expand_builtin_memmove): Likewise.  Use fold_builtin_memory_op.
1441         (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and
1442         BUILT_IN_BCOPY.  Use fold_builtin_memory_op for
1443         BUILT_IN_MEM{CPY,PCPY,MOVE}.
1444
1445 2006-09-01  DJ Delorie  <dj@redhat.com>
1446
1447         * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.
1448         (stzx_16): Likewise.
1449         ("stzx_24_<mode>"): Likewise.
1450         ("stzx_reversed_<mode>"): Likewise, and make mode-specific.
1451         ("cmp<mode>_op"): New.
1452         (cmp<mode>): Change to expander; just save operands.
1453         (b<code>_op): New.
1454         (b<code>): Change to expander, emit compare here.
1455         (s<code>_op): Change to use split and expander.
1456         (s<code>_24_op): Likewise.
1457         (s<code>_<mode>): New.
1458         (s<code>_<mode>_24): New.
1459         (movqicc_<code>_<mode): New.
1460         (movhicc_<code>_<mode>): New.
1461         (s<code>): New.
1462         (s<code>_24): New.
1463         * config/m32c/m32c.c (compare_op0, compare_op1): New.
1464         (m32c_pend_compare): New.
1465         (m32c_unpend_compare): New.
1466         (m32c_expand_scc): New.
1467         (m32c_expand_movcc): Emit the compare also.
1468         * config/m32c/predicates.md (mra_nopp_operand): New.
1469
1470 2006-09-01  J"orn Rennecke  <joern.rennecke@st.com>
1471         Richard Guenther  <rguenther@suse.de>
1472         Adam Nemet  <anemet@caviumnetworks.com>
1473
1474         PR middle-end/27226
1475         * builtins.c (get_pointer_alignment): Handle more forms
1476         of base addresses that can be used to derive more precise
1477         information about alignment.
1478
1479 2006-09-01  Jason Merrill  <jason@redhat.com>
1480
1481         PR c++/28899
1482         * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle
1483         want_value.
1484
1485         * gimplify.c (voidify_wrapper_expr): Handle null type.
1486
1487 2006-09-01  Josh Conner  <jconner@apple.com>
1488
1489         PR c++/25505
1490         * tree-nrv.c (dest_safe_for_nrv_p): New function.
1491         (execute_return_slot_opt): Use it.
1492
1493 2006-08-31  Josh Conner  <jconner@apple.com>
1494
1495         PR c++/25505
1496         * tree-gimple.c (is_gimple_mem_rhs): Recognize functions
1497         returning aggregates.
1498
1499 2006-08-31  Zdenek Dvorak <dvorakz@suse.cz>
1500
1501         PR tree-optimization/28839
1502         * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in
1503         blocks in that phi arguments appear.
1504
1505 2006-08-31  Roger Sayle  <roger@eyesopen.com>
1506
1507         PR other/22313
1508         * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is
1509         NULL, otherwise use an advance_loc4 to adjust relative to the
1510         current label.
1511         (output_cfi) <DW_CFA_set_loc>: Update the current label.
1512         (dwarf2out_switch_text_section): Reset the current label to avoid
1513         using advance_loc4 over section boundaries.
1514
1515 2006-08-31  Andreas Krebbel  <krebbel1@de.ibm.com>
1516
1517         PR target/24367
1518         * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like
1519         r12 + SYMBOLIC_CONST.
1520
1521 2006-08-30  Richard Guenther  <rguenther@suse.de>
1522
1523         * Makefile.in (see.o): Add $(EXPR_H) dependency.
1524
1525 2006-08-30  Zdenek Dvorak <dvorakz@suse.cz>
1526
1527         PR rtl-optimization/27735
1528         * cfgloopmanip.c (fix_loop_placements, fix_bb_placements, unloop):
1529         Add new argument to keep track of whether an irreducible region
1530         was affected.  All callers changed.
1531         (fix_irreducible_loops): Removed.
1532         (remove_path): Call mark_irreducible_loops if EDGE_IRREDUCIBLE_LOOP
1533         flags were invalidated.
1534
1535 2006-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1536
1537         * config/i386/i386.md (*fop_df_comm_mixed): Match DF operands
1538         instead of SF operands.
1539         (*fop_df_comm_sse): Likewise.
1540         (*fop_df_comm_i387): Likewise.
1541         (*fop_df_1_mixed): Likewise.
1542         (*fop_df_1_sse): Likewise.
1543
1544 2006-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
1545             J"orn Rennecke  <joern.rennecke@st.com>
1546
1547         PR tree-optimization/17506
1548         * tree-ssa.c (warn_uninit): If warning about a location outside of
1549         the current function, note where the variable was declared.
1550
1551 2006-08-28  Zdenek Dvorak <dvorakz@suse.cz>
1552
1553         PR tree-optimization/28411
1554         * double-int.c (double_int_div): Use double_int_divmod.
1555         (double_int_divmod, double_int_sdivmod, double_int_udivmod,
1556         double_int_mod, double_int_smod, double_int_umod): New functions.
1557         * double-int.h (double_int_divmod, double_int_sdivmod,
1558         double_int_udivmod, double_int_mod, double_int_smod, double_int_umod):
1559         Declare.
1560         * tree-ssa-loop-ivopts.c (constant_multiple_of): Returns the result
1561         in double_int.
1562         (get_computation_aff, get_computation_cost_at): Handle double_int
1563         return type of constant_multiple_of.
1564
1565 2006-08-28  Kazu Hirata  <kazu@codesourcery.com>
1566
1567         PR middle-end/26632
1568         * convert.c (convert_to_integer): Set TREE_NO_WARNING to 1 on
1569         an implicit conversion.
1570
1571 2006-08-28  Prafulla Thakare  <prafullat@kpitcummins.com>
1572
1573         * config/h8300/h8300.c (TARGET_DEFAULT_TARGET_FLAGS): New.
1574
1575 2006-08-27  Roger Sayle  <roger@eyesopen.com>
1576
1577         * ifcvt.c (cheap_bb_rtx_cost_p): Don't speculatively execute
1578         x87 instructions.
1579
1580 2006-08-27  Kazu Hirata  <kazu@codesourcery.com>
1581
1582         * config/i386/crtfastmath.c: Fix a comment typo.
1583
1584 2006-08-26  Roger Sayle  <roger@eyesopen.com>
1585
1586         * tree.h (CASE_LOW_SEEN, CASE_HIGH_SEEN): New macros for manipulating
1587         temporary visit flags on CASE_LABEL_EXPRs.
1588         * c-common.c (match_case_to_enum): Add function comment.  Avoid
1589         O(N) loop, by looking up both CASE_LOW_SEEN and CASE_HIGH_SEEN.
1590         (c_do_switch_warnings):  Reorganize to record CASE_LOW_SEEN and
1591         CASE_HIGH_SEEN for enumerated types.  If the switch expression is
1592         a constant, only warn if that constant value isn't handled.
1593
1594 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
1595
1596         PR c++/24009
1597         * input.h (restore_input_file_stack): Declare.
1598         (INPUT_FILE_STACK_BITS): Define.
1599         * toplev.c (fs_p, input_file_stack_history,
1600         input_file_stack_restored, restore_input_file_stack): New.
1601         (push_srcloc, pop_srcloc): Check for input_file_stack_tick
1602         overflowing INPUT_FILE_STACK_BITS bits.  Save new state of stack.
1603         (pop_srcloc): Don't free old state of stack.
1604
1605 2006-08-26  David Edelsohn  <edelsohn@gnu.org>
1606
1607         PR target/27544
1608         * doc/extend.texi (PowerPC Variable Attributes): Mention altivec.
1609         (PowerPC Type Attributes): New.
1610
1611 2006-08-26  Bob Wilson  <bob.wilson@acm.org>
1612
1613         * config/xtensa/xtensa.c (function_arg_boundary): New.
1614         (function_arg, xtensa_gimplify_va_arg_expr): Limit alignment to
1615         STACK_BOUNDARY.
1616         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Move code to new
1617         function_arg_boundary function that limits alignment to STACK_BOUNDARY.
1618
1619 2006-08-26  Jakub Jelinek  <jakub@redhat.com>
1620
1621         PR middle-end/28683
1622         * cfgexpand.c (add_reg_br_prob_note): Check if last has exactly
1623         3 following insns.
1624
1625 2006-08-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1626
1627         * flow.c (verify_wide_reg): Use internal_error for consistency failure.
1628         (verify_local_live_at_start): Likewise.
1629
1630 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
1631
1632         PR c/27893
1633         * gimplify.c (gimplify_decl_expr, gimplify_init_ctor_preeval,
1634         omp_add_variable): Treat sizes as variable whenever not
1635         INTEGER_CST.
1636
1637 2006-08-26  Richard Guenther  <rguenther@suse.de>
1638
1639         PR middle-end/28814
1640         * fold-const.c (fold_binary): Fold temporary to correct
1641         type before constructing new comparison.
1642
1643 2006-08-25  Fariborz Jahanian  <fjahanian@apple.com>
1644
1645         PR c/28418
1646         * c-gimplify.c (gimplify_compound_literal_expr): Don't add
1647         variable again if DECL_SEEN_IN_BIND_EXPR_P.
1648
1649 2006-08-25  Joseph S. Myers  <joseph@codesourcery.com>
1650
1651         PR c/28299
1652         * c-decl.c (start_function): Don't try to process prototype
1653         information from old declaration that isn't a function.
1654
1655 2006-08-25  Jan Hubicka  <jh@suse.cz>
1656
1657         PR target/28621
1658         * config/i386/crtfastmath.c (set_fast_math): Force stack alignment.
1659
1660 2006-08-25  Alan Modra  <amodra@bigpond.net.au>
1661
1662         PR target/27075
1663         * config/rs6000/rs6000.c (print_operand): Only use e500 %y syntax
1664         for 8 byte objects.
1665
1666 2006-08-25  J"orn Rennecke  <joern.rennecke@st.com>
1667
1668         PR tree-optimization/16876
1669         * c-typeck.c (c_convert_parm_for_inlining): Don't take early
1670         exit if PARM doesn't match VALUE.
1671
1672 2006-08-25  Bob Wilson  <bob.wilson@acm.org>
1673
1674         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
1675         literal_prefix directive.
1676         (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
1677         * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1678         * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
1679
1680 2006-08-25  David Edelsohn  <edelsohn@gnu.org>
1681
1682         PR target/28753
1683         * config/rs6000/rs6000.md (movcc_internal1): Change operand 1
1684         predicate to general_operand.  Add 0->y and I->r alternatives.
1685
1686 2006-08-25  Kazu Hirata  <kazu@codesourcery.com>
1687
1688         * doc/tm.texi: Fix a typo.
1689         * predict.c: Fix comment typos.
1690
1691 2006-08-25  Nick Clifton  <nickc@redhat.com>
1692
1693         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1694         assertions of "cpu" and "machine".
1695
1696 2006-08-24  Andrew Pinski  <pinskia@physics.uc.edu>
1697
1698         PR tree-opt/28807
1699         * tree-ssa-operands.c (access_can_touch_variable): Don't say
1700         the access through a base which has an alias set of 0 cannot
1701         touch the variable.
1702
1703 2006-08-24  Bill Wendling  <wendling@apple.com>
1704
1705         * doc/tm.texi (TARGET_DEFAULT_PACK_STRUCT): Fixed English.
1706
1707 2006-08-24  Jan Hubicka  <jh@suse.cz>
1708
1709         * reload1.c (emit_reload_insns): Fix yet another typo in my patch.
1710
1711 2006-08-24  Jan Hubicka  <jh@suse.cz>
1712
1713         PR debug/26881
1714         * cgraph.c: Fix comments.
1715         (cgraph_varpool_mark_needed_node): Mark only variables not already
1716         output to file.
1717         * cgraphunit.c: Update comments; include gt-cgraphunit.h
1718         (cgraph_varpool_assembled_nodes_queue): New static variable.
1719         (cgraph_varpool_assemble_decl): Record output decls for debug out code.
1720         (cgraph_varpool_output_debug_info): New function.
1721         (cgraph_finalize_compilation_unit, cgraph_optimize): Call it.
1722         * Makefile.in: Add gt-cgraphunit.h
1723
1724 2006-08-24  Jan Hubicka  <jh@suse.cz>
1725
1726         * predict.c (probability_reliable_p): New predicate.
1727         (edge_probability_reliable_p, br_prob_note_reliable_p): Likewise.
1728         (predict_loops): Do not predict loop exit with less than 2%
1729         probability.
1730         * basic-block.h (edge_probability_reliable_p,
1731         br_prob_note_reliable_p): Declare.
1732         * ia64.h (ia64_print_operand): Do not disable on-chip branch
1733         prediction when static predictor is not reliable.
1734         * rs6000.c (output_cbranch): Likewise.
1735
1736 2006-08-23  Stuart Hastings  <stuart@apple.com>
1737
1738         PR 28825
1739         * gcc/config/i386/i386.c (ix86_expand_vector_init_duplicate,
1740         ix86_expand_vector_init_one_nonzero): Remove TARGET_SSE test.
1741
1742 2006-08-21  Geoffrey Keating  <geoffk@apple.com>
1743
1744         PR debug/28692
1745         * dwarf2out.c (rtl_for_decl_init): Don't try to create RTL for
1746         complex values, nor for generic vector values.
1747
1748 2006-08-22  Richard Guenther  <rguenther@suse.de>
1749
1750         PR middle-end/28776
1751         * tree-scalar-evolution.c (fold_used_pointer): Add at_stmt
1752         parameter.  Convert arguments to arithmetic expression to the
1753         chrecs type.
1754         (analyze_scalar_evolution_1): Adjust caller.
1755
1756 2006-08-22  Jan Hubicka  <jh@suse.cz>
1757
1758         Patch by Paolo Bonzini
1759         * reload1.c (emit_reload_insns): Fix incorrect bracketing introduced by
1760         my previous patch.
1761
1762 2006-08-22  Daniel Berlin  <dberlin@dberlin.org>
1763
1764         PR tree-optimization/28003
1765         * tree-ssa-alias.c (compute_may_aliases): Compute call clobbered
1766         before grouping aliases.
1767
1768 2006-08-22  Roger Sayle  <roger@eyesopen.com>
1769
1770         * config/i386/i386.c (ix86_value_regno): Don't return FIRST_MMX_REG
1771         if !TARGET_MMX, and don't return FIRST_SSE_REG if !TARGET_SSE.
1772
1773 2006-08-21  Jason Merrill  <jason@redhat.com>
1774
1775         PR c++/27115
1776         * gimplify.c (voidify_wrapper_expr): Handle STATEMENT_LIST as a
1777         wrapper.  Loop to handle nested wrappers.
1778         (gimplify_bind_expr): Remove temp parameter.
1779         (gimplify_modify_expr_rhs): Handle CLEANUP_POINT_EXPR, BIND_EXPR
1780         and STATEMENT_LIST on the rhs.
1781         (gimplify_statement_list): Voidify the STATEMENT_LIST.
1782         (gimplify_expr): Pass pre_p to gimplify_statement_list.
1783         (gimplify_target_expr): Remove special BIND_EXPR handling.
1784
1785 2006-08-21  J"orn Rennecke  <joern.rennecke@st.com>
1786
1787         * config/sh/lib1funcs-Os-4-200.asm: Guard entire file with
1788         #if !__SHMEDIA__ .
1789
1790 2006-08-21  Olivier Hainque  <hainque@adacore.com>
1791
1792         * gimplify.c (gimplify_init_constructor) <RECORD,UNION,ARRAY types>:
1793         Arrange for the temporary captures of components overlapping the lhs
1794         to happen before the lhs is possibly cleared.
1795
1796 2006-08-21  Mark Shinwell  <shinwell@codesourcery.com>
1797
1798         * config/arm/pr-support.c (__gnu_unwind_execute): Insert " + 1" in
1799         necessary places to pass the correct "number of registers" values
1800         to _Unwind_VRS_Pop.
1801
1802 2006-08-20  Jan Hubicka  <jh@suse.cz>
1803
1804         * tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
1805         (create_name_tags): Instead of quadratic checking use hashtable.
1806         * bitmap.h: Include hashtab.h.
1807         (bitmap_hash): Declare.
1808         * bitmap.c (bitmap_hash): New function.
1809
1810 2006-08-20  Jan Hubicka  <jh@suse.cz>
1811
1812         PR rtl-optimization/28071
1813         * tree-optimize.c (tree_rest_of_compilation): Do not remove edges
1814         twice.
1815         * tree-inline.c (copy_bb): Use cgraph_set_call_stmt.
1816         * ipa-inline.c (cgraph_check_inline_limits): Add one_only argument.
1817         (cgraph_decide_inlining, cgraph_decide_inlining_of_small_function,
1818         cgraph_decide_inlining_incrementally): Update use of
1819         cgraph_check_inline_limits.
1820         * cgraph.c (edge_hash, edge_eq): New function.
1821         (cgraph_edge, cgraph_set_call_stmt, cgraph_create_edge,
1822         cgraph_edge_remove_caller, cgraph_node_remove_callees,
1823         cgraph_remove_node): Maintain call site hash.
1824         * cgraph.h (struct cgraph_node): Add call_site_hash.
1825         (cgraph_set_call_stmt): New function.
1826
1827 2006-08-20  Jan Hubicka  <jh@suse.cz>
1828
1829         PR rtl-optimization/28071
1830         * reload1.c (reg_has_output_reload): Turn into regset.
1831         (reload_as_needed, forget_old_reloads_1, forget_marked_reloads,
1832         choose_reload_regs, emit_reload_insns): Update to new
1833         reg_has_output_reload.
1834
1835 2006-08-20  Jan Hubicka  <jh@suse.cz>
1836
1837         PR middle-end/28779
1838         * ipa-inline.c (cgraph_decide_inlining, cgraph_early_inlining): Compute
1839         function body sizes.
1840         * cgraphunit.c (cgraph_analyze_function): Don't do so.
1841
1842 2006-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
1843
1844         PR target/28648 c:
1845         * tree.c (handle_dll_attribute): Return early if not a
1846         var or function decl.
1847
1848 2006-08-18  Joseph Myers  <joseph@codesourcery.com>
1849
1850         PR target/27565
1851         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): For SPE, only adjust
1852         alignment of SPE vector types.
1853
1854 2006-08-18  Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
1855
1856         * tree.c (is_attribute_with_length_p): Remove a duplicated assert.
1857
1858 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
1859
1860         PR c/28744
1861         * cgraph.h (struct cgraph_node): Remove externally_visible
1862         bitfield.
1863         * cgraphunit.c (process_function_and_variable_attributes): Set
1864         local.externally_visible rather than externally_visible.
1865
1866         PR c/28744
1867         * c-common.c (handle_externally_visible_attribute): First look
1868         at TREE_CODE and only if it is function or var decl, check for
1869         non-public objects.  Don't warn for DECL_EXTERNAL.
1870         * cgraphunit.c (process_function_and_variable_attributes): Warn
1871         if externally_visible attribute is used on non-public object.
1872
1873 2006-08-17  Jan Hubicka  <jh@suse.cz>
1874
1875         PR tree-optimization/27865
1876         * reload1.c (forget_marked_reloads): New function.
1877         (forget_old_reloads_1): When data are passed, just mark the registers
1878         for later removal.
1879         (reload_as_needed): Use the new mechanizm.
1880
1881 2006-08-17  Alexandre Oliva  <aoliva@redhat.com>
1882
1883         PR target/28146
1884         * reload.h (reg_equiv_alt_mem_list): New declaration.
1885         * reload1.c (reg_equiv_alt_mem_list): New definition.
1886         (reload): Initialize it and release it.
1887         (delete_output_reload): Use it.
1888         * reload.c (push_reg_equiv_alt_mem): New function.
1889         (find_reloads_toplev): Call it.
1890         (find_reloads_address, find_reloads_address_1): Likewise.
1891         (find_reloads_subreg_address): Likewise.
1892
1893 2006-08-17  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1894
1895         PR rtl-optimization/28489
1896         * sched-ebb.c (begin_schedule_ready): Create basic block
1897         at the right place.
1898         (advance_target_bb): Skip empty blocks.
1899         * haifa-sched.c (bb_note): Make global.
1900         * sched-int.h (bb_note): Add prototype.
1901
1902 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1903
1904         PR tree-optimization/27865
1905         * tree-vrp.c (adjust_range_with_scev): Do not use TYPE_{MIN,MAX}_VALUE
1906         for pointer types.
1907         * tree-scalar-evolution.c (fold_used_pointer_cast, pointer_offset_p,
1908         fold_used_pointer, pointer_used_p): New functions.
1909         (analyze_scalar_evolution_1): Use fold_used_pointer.
1910         * tree-chrec.c (convert_affine_scev): Convert no-op casts correctly.
1911         * tree-ssa-loop-ivopts.c (generic_type_for): Return integral type
1912         for pointers.
1913
1914 2006-08-17  Paolo Bonzini <bonzini@gnu.org>
1915
1916         PR c++/28573
1917         * c-common.c (fold_offsetof_1): Add an argument and recurse down to it
1918         or the INTEGER_CST.  Fail on a CALL_EXPR.
1919         (fold_offsetof): Pass new argument to fold_offsetof_1.
1920         * c-parser.c (c_parser_postfix_expression): Don't include a NULL
1921         operand into an INDIRECT_REF.
1922         * c-typeck.c (build_unary_op): Adjust call to fold_offsetof.
1923
1924 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1925
1926         PR gcov/profile/26570
1927         * value-prof.c (static_values): Removed.
1928         (tree_find_values_to_profile): Do not set static_values.
1929         (find_values_to_profile): Do not free static_values.
1930         * profile.c (instrument_values): Do not free the values.
1931         (branch_prob): Free the values.
1932
1933 2006-08-16  Naveen.H.S  <naveenh@kpitcummins.com>
1934
1935         * config/m32c/m32c_lib1.S (__mulsi3): Use only registers for dest.
1936
1937 2006-08-16  Joseph S. Myers  <joseph@codesourcery.com>
1938
1939         PR c/27697
1940         * c-typeck.c (build_component_ref): Combine qualifiers of
1941         structure or union and field.
1942
1943 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1944
1945         PR rtl-optimization/28071
1946         * basic-block.h (bb_dom_dfs_in, bb_dom_dfs_out): Declare.
1947         * dominance.c (bb_dom_dfs_in, bb_dom_dfs_out): New functions.
1948         * tree-into-ssa.c (struct dom_dfsnum): New.
1949         (cmp_dfsnum, find_dfsnum_interval, prune_unused_phi_nodes): New
1950         functions.
1951         (insert_phi_nodes_for): Use prune_unused_phi_nodes instead of
1952         compute_global_livein.
1953         (prepare_block_for_update, prepare_use_sites_for): Mark the uses
1954         in phi nodes in the correct blocks.
1955
1956 2006-08-16  Zdenek Dvorak <dvorakz@suse.cz>
1957
1958         PR tree-optimization/28364
1959         * tree-ssa-loop-ivopts.c (aff_combination_to_tree): Handle zero
1960         correctly.
1961         (fold_affine_expr): New function.
1962         (may_eliminate_iv): Use fold_affine_expr.
1963
1964 2006-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1965
1966         PR c/27489
1967         * c-typeck.c (c_start_case): Handle invalid orig_type correctly.
1968         Clean up.
1969
1970 2006-08-16  Mike Stump  <mrs@apple.com>
1971
1972         * doc/invoke.texi (-Wno-deprecated-declarations): Fixup use of pxref.
1973         * doc/cppopts.texi (-MD): Likewise.
1974
1975 2006-08-15  Danny Smith  <dannysmith@users.sourceforge.net>
1976
1977         PR c/28287
1978         * c-common.c (handle_weak_attribute): Ignore and warn if
1979         not a FUNCTION_ or VAR_DECL.
1980
1981 2006-07-15  Mike Stump  <mrs@apple.com>
1982
1983         PR c/28280
1984         * c-parser.c (c_parser_typeof_specifier): Don't use
1985         c_finish_expr_stmt, open code desired semantics instead.
1986
1987 2006-08-15  Nick Clifton  <nickc@redhat.com>
1988
1989         * config.gcc (x86-mingw32): Add a gthr-win32.h including makefile
1990         fragment to tmake_file only if threads are enabled.
1991         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Move to...
1992         * config/i386/t-gthr-win32: New file. ... here.
1993
1994 2006-08-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1995
1996         PR c/28649
1997         * c-parser.c (c_parser_compound_statement_nostart): Reset
1998         parser->error after each statement.
1999
2000 2006-08-15  Jakub Jelinek  <jakub@redhat.com>
2001
2002         PR middle-end/28713
2003         * omp-low.c (lower_omp_parallel): Convert t to
2004         receiver_decl's type.
2005         (expand_omp_parallel): STRIP_NOPS from the MODIFY_EXPR
2006         source before comparison.
2007
2008         PR middle-end/28724
2009         * gimplify.c (gimplify_omp_atomic_pipeline): Convert oldival
2010         to itype in assignment to oldival2.
2011
2012 2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>
2013
2014         PR c/27490
2015         PR c/27489
2016         * c-typeck.c (build_compound_expr): If the second expression
2017         is an error mark, then just return an error mark instead of
2018         creating a COMPOUND_EXPR.
2019
2020 2006-07-14  Mike Stump  <mrs@apple.com>
2021
2022         * Makefile.in (LIBGCC_DEPS): Don't depend on LANGUAGES.
2023
2024 2006-08-14  Kazu Hirata  <kazu@codesourcery.com>
2025
2026         * c-decl.c, var-tracking.c: Fix comment typos.
2027
2028 2006-08-14  Richard Sandiford  <richard@codesourcery.com>
2029
2030         PR rtl-optimization/28634
2031         * reorg.c (fill_slots_from_thread): Do not assume A + X - X == A
2032         for floating-point modes unless flag_unsafe_math_optimizations.
2033
2034 2006-08-13  Alexandre Oliva  <aoliva@redhat.com>
2035             Andrew Pinski  <pinskia@physics.uc.edu>
2036
2037         PR c/27184
2038         * tree.c (build_array_type): Unify array types with
2039         unspecified index_type.
2040         * c-decl.c (grokdeclarator): Make sure we do not modify a
2041         unified incomplete array type.
2042         * c-typeck.c (store_init_value): Create distinct type before
2043         filling in the index type in an initializer from a compound
2044         literal.
2045
2046         * c-decl.c (grokdeclarator): Remove code where we copy the
2047         array type over.
2048
2049 2006-08-13  Andrew Pinski  <pinskia@physics.uc.edu>
2050
2051         * tree-pass.h (TODO_update_ssa): Fix which bit is used to take
2052         into account for TODO_dump_cgraph.
2053         (TODO_update_ssa_no_phi): Likewise.
2054         (TODO_update_ssa_full_phi): Likewise.
2055         (TODO_update_ssa_only_virtuals): Likewise.
2056         (TODO_remove_unused_locals): Likewise.
2057         (TODO_set_props): Likewise.
2058         (TODO_update_stmt_usage): Likewise.
2059
2060 2006-08-13  Dirk Mueller  <dmueller@suse.de>
2061
2062         * c-common.c (strict_aliasing_warning): Fix formatting.
2063
2064 2006-08-13  Matthias Klose  <doko@debian.org>
2065
2066         * doc/invoke.texi: Fix spelling errors.
2067
2068 2006-08-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
2069
2070         PR rtl-optimization/23454
2071         * reorg.c (relax_delay_slots): Update comment.
2072
2073 2006-08-11  Richard Guenther  <rguenther@suse.de>
2074
2075         PR middle-end/28651
2076         * simplify-rtx.c (simplify_const_relational_operation):
2077         Simplify A CMP B to A - B CMP 0 only for EQ and NE comparison
2078         codes.
2079
2080 2006-08-10  Eric Botcazou  <ebotcazou@adacore.com>
2081
2082         * tree.c (build1_stat): Also propagate the TREE_CONSTANT and
2083         TREE_INVARIANT flags for a VIEW_CONVERT_EXPR.
2084
2085 2006-08-10  Paul Brook  <paul@codesourcery.com>
2086
2087         * final.c (final_scan_insn): Clear current_insn_predicate before
2088         outputting inline asm.
2089
2090 2006-08-10  Dorit Nuzman  <dorit@il.ibm.com>
2091
2092         PR tree-optimization/26197
2093         * tree-ssa-alias.c (new_type_alias): Takes additional argument. Calls
2094         get_ref_base_and_extent and overlap_subvar to add only relevant
2095         subvars as may-aliases.
2096         (add_may_alias_for_new_tag): New function, factored out of
2097         new_type_alias.
2098         * tree-vect-transform.c (vect_create_data_ref_ptr): Call new_type_alias
2099         with additional argument.
2100         * tree-flow.h (new_type_alias): Takes additional argument.
2101
2102 2006-08-09  Nathan Sidwell  <nathan@codesourcery.com>
2103
2104         * gcov.c (no_data_file): New flag.
2105         (read_count_file): Set it if data file not present.  Assume counts
2106         zero if not found.
2107         (output_lines): Don't name the data file, if there wasn't one.
2108
2109 2006-08-09  Eric Botcazou  <ebotcazou@adacore.com>
2110
2111         * config/rs6000/rs6000.c (print_operand) <D>: Fix comment and adjust.
2112         (rs6000_generate_compare): Tweak comments.
2113         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Fix comment.
2114
2115 2006-08-09  Alexandre Oliva  <aoliva@redhat.com>
2116
2117         * var-tracking.c (enum micro_operation_type): Add MO_COPY.
2118         (var_debug_decl): New function.
2119         (var_reg_set): Follow debug decl link.  Add location even if
2120         reg is already known to hold some other variable.
2121         (var_mem_set): Follow debug decl link.
2122         (var_reg_delete_and_set, var_mem_delete_and_set): Follow debug
2123         decl link.  Delete other known locations of the variable part
2124         if requested.
2125         (var_reg_delete, var_mem_delete): Delete other known locations
2126         of the variable part if requested.
2127         (same_variable_part_p): New function.
2128         (add_stores): Select MO_COPY when appropriate.
2129         (vt_initialize): Handle it.
2130         (compute_bb_dataflow, emit_notes_in_bb): Likewise.  Delete
2131         known locations for MO_SET and MO_CLOBBER.
2132         (find_variable_location_part): New function.
2133         (set_variable_part, delete_variable_part): Use it.
2134         (clobber_variable_part): New function.
2135         * dwarf2out.c (dwarf2out_var_location): Do not follow debug
2136         decl link.
2137
2138 2006-08-07  Victor Kaplansky <victork@il.ibm.com>
2139
2140         PR tree-optimization/26969
2141         * tree-vect-analyze.c (vect_analyze_loop_form): Add check of latch
2142         with an empty list of PHIs.
2143
2144 2006-08-06  Paolo Bonzini  <bonzini@gnu.org>
2145
2146         PR target/27827
2147
2148         * conffig/i386/i386.md: Add peephole2 to avoid "fld %st"
2149         instructions.
2150
2151 2006-08-06  Andreas Schwab  <schwab@suse.de>
2152
2153         * config/m68k/m68k.c (m68k_output_function_epilogue): Fix format
2154         string.  Whitespace and comment fixup.
2155
2156 2006-08-05  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2157
2158         PR c/28502
2159         * c-decl.c (validate_proto_after_old_defn): Return false on invalid
2160         argument.
2161
2162         PR c/27721
2163         * c-typeck.c (build_modify_expr): Test earlier for non-lvalues.
2164
2165         PR c/28136
2166         * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.
2167
2168 2006-08-04  Jan Hubicka  <jh@suse.cz>
2169
2170         PR target/26655
2171         PR target/28270
2172         * reload.c (push_reload): Patch out the mismatching instruction;
2173         return early.
2174         (find_reload): Bail out if the instruction was patched out.
2175
2176 2006-08-04  Jan Hubicka  <jh@suse.cz>
2177
2178         PR tree-optimization/24888
2179         * tree-inline.c (expand_call_inline): Do not re-record variables.
2180         (declare_inline_vars): Add variable to unexpanded_var_list.
2181
2182 2006-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2183             Roger Sayle  <roger@eyesopen.com>
2184
2185         PR rtl-optimization/26244
2186         * cse.c (fold_rtx): Correctly associate shifts when const_arg1 and/or
2187         inner_const are negative or greater than or equal to the bitsize of
2188         MODE.  If SHIFT_COUNT_TRUNCATED is false, the values aren't associated.
2189         Otherwise, the values are masked using GET_MODE_BITSIZE (mode) - 1.
2190         Simplify complicated if statement.  For ASHIFT and LSHIFTRT, return
2191         CONST0_RTX (mode) when the new shift count is greater than or equal to
2192         to the bitsize of the object being shifted and XEXP (y, 0) has no side
2193         effects.
2194
2195 2006-08-04  Kazu Hirata  <kazu@codesourcery.com>
2196
2197         * tree-cfg.c: Fix a comment typo.
2198
2199 2006-08-03  Mark Mitchell  <mark@codesourcery.com>
2200
2201         PR c++/28148
2202         * varasm.c (output_constant): Give the front end another chance to
2203         expand constants, after stripping NOPs.
2204
2205 2006-08-03  Jan Hubicka  <jh@suse.cz>
2206
2207         * domwalk.c (walk_dominator_tree): Reorganize to non-recursive
2208         implementation.
2209
2210 2006-08-03  Dorit Nuzman  <dorit@il.ibm.com>
2211
2212         PR tree-optimization/27770
2213         * tree-vectorizer.h (get_vectype_for_scalar_type): Function
2214         declaration removed (moved to tree-flow.h).
2215         (vect_can_force_dr_alignment_p): Likewise.
2216         * tree-flow.h (get_vectype_for_scalar_type): New function declaration
2217         (moved from tree-vectorizer.h).
2218         (vect_can_force_dr_alignment_p): Likewise.
2219         * tree-vectorizer.c (vect_print_dump_info): Allow calling this function
2220         from outside the vectorizer - in particular from cgraph stage.
2221         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Don't increase
2222         the alignment of global arrays when -fsection-anchors is enabled.
2223         * cgraphunit.c (cgraph_increase_alignment): New function.
2224         (cgraph_optimize): Call cgraph_increase_alignment.
2225
2226 2006-08-03  David Edelsohn  <edelsohn@gnu.org>
2227
2228         PR target/27566
2229         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
2230         not reload a SPE symbol_ref into a lo_sum address.
2231
2232 2006-08-02  Daniel Jacobowitz  <dan@codesourcery.com>
2233
2234         PR debug/28063
2235         * dwarf2out.c (prune_unused_types_prune): Move call to
2236         prune_unused_types_update_strings to cover the parent DIE also.
2237
2238 2006-08-02  Jan Hubicka  <jh@suse.cz>
2239
2240         PR gcov/profile/28480
2241         * tree-cfg.c (change_bb_for_stmt): New function.
2242         (tree_merge_blocks, tree_split_blocks): Use it.
2243
2244 2006-08-01  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2245
2246         PR c++/28250
2247         PR c++/28257
2248         PR c++/28259
2249         PR c++/28267
2250         * toplev.c (compile_file): Return early on errorcount or sorrycount.
2251         * cgraphunit.c (cgraph_finalize_compilation_unit): Likewise.
2252         (cgraph_optimize): Likewise.
2253
2254 2006-08-01  Stuart Hastings  <stuart@apple.com>
2255
2256         * rtl.h (UINTVAL) New.
2257         * config/rs6000/rs6000.c (SMALL_INT) Use it.
2258         * testsuite/gcc.dg/20060801-1.c: New.
2259
2260 2006-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
2261
2262         PR debug/23336
2263         * c-typeck.c (build_external_type): Mark used enum types.
2264         * dwarf2out.c (dwarf2out_abstract_function): Save and restore
2265         cfun also.
2266         (gen_subprogram_die): Whitespace fix.
2267
2268 2006-08-01  Jan Hubicka  <jh@suse.cz>
2269
2270         * tree-outof-ssa.c (check_replaceable): Do not allocate def_vars
2271         bitmap when not needed.
2272         * tree-ssa-pre.c (bitmap_set_and, bitmap_set_and_compl): Free temporary
2273         bitmaps.
2274
2275 2006-08-01  Dirk Mueller  <dmueller@suse.de>
2276
2277         * tree-vrp.c (fix_equivalence_set): Avoid bitmap memory leak.
2278
2279 2006-07-31  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2280
2281         * Makefile.in: Revert part of previous patch:
2282         Replace $(VARRAY_H) by varray.h in definition of BASIC_BLOCK_H
2283         and REGS_H.
2284
2285 2006-07-30  Eric Christopher  <echristo@apple.com>
2286
2287         PR target/27543
2288         * doc/extend.texi (i386 Variable Attributes): Add anchor.
2289         (PowerPC Variable Attributes): New section.
2290
2291 2006-07-30  Atsushi Nemoto  <anemo@mba.ocn.ne.jp>
2292
2293         PR target/28126 (partial fix)
2294         * config/mips/mips.md (tls_get_tp_<mode>): Set can_delay to no.
2295
2296 2006-07-28  Jan Hubicka  <jh@suse.cz>
2297
2298         PR rtl-optimization/28071
2299         * cfgrtl.c (rtl_delete_block): Free regsets.
2300         * flow.c (allocate_bb_life_data): Re-use regsets if available.
2301
2302 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2303
2304         * Makefile.in: Use $(HEADER_H) instead of header.h in dependencies
2305         and variables used in dependencies.
2306
2307 2006-07-27  Arjan van de Ven <arjan@linux.intel.com>
2308
2309         * config/i386/i386.md (stack_tls_protect_set_di) Use %gs rather than
2310         %fs for -mcmodel=kernel.
2311         (stack_tls_protect_test_di): Likewise.
2312
2313 2006-07-27  Carlos O'Donell  <carlos@codesourcery.com>
2314
2315         * Makefile.in: Use mkinstalldirs.
2316
2317 2006-07-27  H.J. Lu  <hongjiu.lu@intel.com>
2318
2319         PR driver/28437
2320         * opts-common.c (prune_options): Skip joined switches.
2321
2322 2006-07-27  Jan Hubicka  <jh@suse.cz>
2323
2324         PR rtl-optimization/28071
2325         * cselib.c (cselib_process_insn): Don't remove useless values too
2326         often for very large hashtables.
2327
2328 2006-07-27  Jan Hubicka  <jh@suse.cz>
2329
2330         PR rtl-optimization/28071
2331         * global.c (greg_obstack): New obstack.
2332         (allocate_bb_info): Use it.
2333         (free_bb_info): Likewise.
2334         (modify_reg_pav): Likewise.
2335
2336 2006-07-27  Roger Sayle  <roger@eyesopen.com>
2337
2338         * builtins.c (fold_fixed_mathfn): When long and long long are the
2339         same size, canonicalize llceil*, llfloor*, llround* and llrint*
2340         functions to their lceil*, lfloor*, lround* and lrint* forms.
2341
2342 2006-07-27  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2343
2344         PR gcc/28508
2345         * config/m32r/m32r.md (branch_insn): Reduce pc range for short
2346         branch.
2347         (rev_branch_insn): Likewise.
2348
2349 2006-07-27  Jan Hubicka  <jh@suse.cz>
2350
2351         PR rtl-optimization/28071
2352         * regmove.c (reg_is_remote_constant_p): Avoid quadratic behaviour.
2353         (reg_set_in_bb, max_reg_computed): New static variables.
2354         (regmove_optimize): Free the new array.
2355         (fixup_match_1): Update call of reg_is_remote_constant_p.
2356
2357 2006-07-26  Jan Hubicka  <jh@suse.cz>
2358
2359         PR tree-optimization/27882
2360         * cgraph.c (cgraph_remove_node): Clear needed, reachable, next, previous
2361         and decl fields.
2362         * cgraphunit.c (cgraph_reset_node): Expect cgraph_remove_node to kill
2363         next pointer
2364         (cgraph_analyze_compilation_unit): Likewise.
2365         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2366         * ipa-inline.c (cgraph_decide_recursive_inlining): Likewise.
2367         (cgraph_early_inlinine): Make order garbage collected.
2368         * Makefile.in (gt-ipa-inline): New garbagecollected file.
2369
2370 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
2371
2372         * dbxout.c (output_types_sort): Add a comment.
2373         (output_used_types): Free the VEC.
2374
2375 2006-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
2376
2377         * function.c (reorder_fix_fragments): Delete.
2378         (reorder_blocks): Don't call it.
2379         (reorder_blocks_1): Put all subblocks under the origin block.
2380
2381 2006-07-26  Zdenek Dvorak <dvorakz@suse.cz>
2382
2383         PR rtl-optimization/27907
2384         * expr.c (force_operand): Use convert_move to handle FLOAT_EXTEND and
2385         FLOAT_TRUNCATE.
2386
2387 2006-07-25  Roger Sayle  <roger@eyesopen.com>
2388
2389         PR middle-end/28473
2390         * convert.c (convert_to_integer): When transforming (T)foo(x) into
2391         bar(x) check that bar's result type can represent all the values of T.
2392
2393 2006-07-25  Zdenek Dvorak <dvorakz@suse.cz>
2394
2395         * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure.
2396
2397 2006-07-25  Nick Clifton  <nickc@redhat.com>
2398
2399         * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the
2400         size_lookup[] array.
2401         (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
2402         (ggc_pch_count_object): Likewise.
2403         (ggc_pch_alloc_object): Likewise.
2404         (ggc_pch_write_object): Likewise.
2405         (init_ggc): Do not attempt to initialize entries in the
2406         size_lookup[] array for objects whose size is greater than than
2407         the length of the array.
2408
2409 2006-07-25  Daniel Jacobowitz  <dan@codesourcery.com>
2410
2411         * dbxout.c (output_used_types_helper): Push queued types
2412         on a VEC.
2413         (output_types_sort): New.
2414         (output_used_types): Collect used types on a VEC and sort them
2415         before emission.
2416
2417 2006-07-24  Richard Guenther  <rguenther@suse.de>
2418
2419         PR middle-end/28463
2420         * cgraph.c (cgraph_remove_node): Do not check if dumps
2421         are enabled.
2422         * cgraphunit.c (cgraph_optimize): Likewise.
2423
2424 2006-07-24  Jan Hubicka  <jh@suse.cz>
2425
2426         PR rtl-optimization/28071
2427         * tree-cfg.c (tree_split_block): Do not allocate new stmt_list nodes.
2428         * tree-iterator.c (tsi_split_statement_list_before): Do not crash when
2429         splitting before first stmt.
2430
2431 2006-07-24  Jan Hubicka  <jh@suse.cz>
2432
2433         PR rtl-optimization/28071
2434         * ipa-inline.c (update_caller_keys): Remove edges that
2435         are no longer inline candidates.
2436
2437 2006-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
2438
2439         PR debug/27473
2440         * dbxout.c (output_used_types_helper, output_used_types): New.
2441         (dbxout_symbol): Call output_used_types.
2442
2443 2006-07-23  Jan Hubicka  <jh@suse.cz>
2444
2445         PR c/25795
2446         PR c++/27369
2447         * cgraph.c (cgraph_varpool_nodes): Export.
2448         (decide_is_variable_needed): Ignored "used" attribute in
2449         unit-at-a-time mode.
2450         * cgraph.h (cgraph_varpool_nodes): Declare.
2451         * cgraphunit.c (decide_is_function_needed): Ignored "used" attribute in
2452         unit-at-a-time mode.
2453
2454 2006-07-23  Roger Sayle  <roger@eyesopen.com>
2455
2456         PR target/28247
2457         * gthr-solaris.h: Prototype __gthrw forms of thr_self, mutex_init and
2458         mutex_destroy even when !_LIBOOBJC.  Remove duplicate prototype of
2459         the __gthrw form of thr_keycreate.
2460         (__gthread_key_delete): Silence the unused argument warning.
2461
2462 2006-07-23  Steven Bosscher  <steven@gcc.gnu.org>
2463
2464         PR debug/25468
2465         * config/elfos.h (ASM_OUTPUT_ASCII): Remove 'register' marks.
2466         Cache the last found '\0' marker to avoid quadratic behavior.
2467
2468 2006-07-23  Jan Hubicka  <jh@suse.cz>
2469
2470         * i386.md (subsi_3_zext): Fix output template.
2471
2472 2006-07-21  Mike Stump  <mrs@apple.com>
2473
2474         * doc/invoke.texi (C++ Dialect Options): Note that
2475         -fvisibility-inlines-hidden doesn't affect explicitly
2476         instantiationed inline methods.
2477
2478 2006-07-20  Roger Sayle  <roger@eyesopen.com>
2479
2480         * config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
2481         if the target assembler is GNU binutils' gas.
2482         * config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
2483         whether to pass GNU gas or native as command line options.
2484
2485 2006-07-20  Jason Merrill  <jason@redhat.com>
2486
2487         * tree.c (remove_attribute): New fn.
2488         * tree.h: Declare it.
2489
2490 2006-07-20  Paul Brook  <paul@codesourcery.com>
2491
2492         PR 27363
2493         * cse.c (cse_insn): Add destination addresses to hash table. Check if
2494         they are invalidated by this instruction.
2495
2496 2006-07-21  Danny Smith  <dannysmith@users.sourceforge.net>
2497
2498         PR target/28427
2499         * config/i386/cygming.h (MAX_OFILE_ALIGNMENT): Define.
2500
2501 2006-07-20  Eric Christopher  <echristo@apple.com>
2502
2503         PR target/26877
2504         * config/i386/i386.h (OPTION_DEFAULT_SPECS): Reorder.
2505
2506 2006-07-19  Eric Christopher  <echristo@apple.com>
2507
2508         * config/t-slibgcc-darwin (stmp-lipo): Remove.
2509         Rewrite dependencies for libgcc_s.1.dylib.
2510
2511 2006-07-19  Jakub Jelinek  <jakub@redhat.com>
2512
2513         * except.c (duplicate_eh_regions_1): Clear next_peer.
2514
2515 2006-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2516
2517         * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
2518         -mlongcall does not guarantee all calls will be long.
2519         * doc/extend.texi (long_call/short_call): Document that longcall
2520         does not guarantee a long call will be used.
2521         (longcall/shortcall): Likewise.
2522
2523 2006-07-18  Roger Sayle  <roger@eyesopen.com>
2524
2525         PR middle-end/28283
2526         * expmed.c (expand_shift): Additionally check that the shift_cost
2527         is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
2528         before implementing a LSHIFT_EXPR as a sequence of additions.
2529         * config/sh/sh.c (shift_costs): Return MAX_COST to inform the
2530         middle-end that DImode shifts need to be synthesized by expand.
2531
2532 2006-07-18  Diego Novillo  <dnovillo@redhat.com>
2533
2534         PR 28410
2535         * tree-ssa-operands.c (access_can_touch_variable): Update
2536         comment.
2537         Return true if ALIAS is .GLOBAL_VAR.
2538
2539 2006-07-18  David Daney  <ddaney@avtrex.com>
2540
2541         * gcc.c (display_help): Fix typo in help text.
2542
2543 2006-07-18  Olivier Hainque  <hainque@adacore.com>
2544
2545         * tree.h (categorize_ctor_elements): Adjust prototype and add
2546         descriptive comment, both in accordance with the interface change
2547         described below.
2548         * varasm.c (constructor_static_from_elts_p): New function.
2549         Whether a constructor node is a valid static constant initializer
2550         if all its elements are.
2551         (initializer_constant_valid_p) <CONSTRUCTOR value>: Use it.
2552         * output.h: Declare it.
2553         * expr.c (categorize_ctor_elements_1): Return whether the constructor
2554         is a valid constant initializer instead of computing the number of
2555         non-constant elements.  Use constructor_static_from_elts_p for this
2556         purpose.  Replace the head comment with an indication that this is a
2557         helper for categorize_ctor_elements.
2558         (categorize_ctor_elements): Same interface change as for the _1
2559         helper.  Former head comment from this helper moved here, adjusted to
2560         account for the interface changes.
2561         (mostly_zeros_p): Adjust call to categorize_ctor_elements.
2562         (all_zeros_p): Likewise.
2563         * gimplify.c (gimplify_init_constructor): Decide whether we can make
2564         static versions of the constructor from the categorize_ctor_elements
2565         return value instead of the formerly computed number of non-constant
2566         elements.
2567
2568 2006-07-18  Paolo Bonzini  <bonzini@gnu.org>
2569
2570         * configure: Regenerate.
2571         * Makefile.in (build_libsubdir): New configure substitution
2572         (build_libobjdir): New variable.
2573         (BUILD_LIBIBERTY): Use it.
2574
2575 2006-07-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2576
2577         PR c/28286
2578         * c-pragma.c (handle_pragma_pack): Handle invalid constants.
2579
2580 2006-07-18  Alexandre Oliva  <aoliva@redhat.com>
2581
2582         PR c/26993
2583         * c-common.c (handle_weakref_attribute): Ignore attribute in
2584         the same conditions the alias attribute is ignored.
2585
2586 2006-07-17  Carlos O'Donell  <carlos@codesourcery.com>
2587
2588         * dbxout.c (dbxout_function_end): Do not increment scope_labelno.
2589         (dbxout_begin_prologue): Increment scope_labelno.
2590
2591 2006-07-17  Richard Henderson  <rth@redhat.com>
2592
2593         PR 27889
2594         * tree-nested.c (create_tmp_var_for): Set DECL_COMPLEX_GIMPLE_REG_P
2595         if needed.
2596
2597 2006-07-17  Roger Sayle  <roger@eyesopen.com>
2598             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2599
2600         * config/i386/gmon-sol2.c: Silence compilation warnings by partially
2601         synchronizing code with config/sparc/gmon-sol2.c.  Remove #if 0
2602         blocks.  #include "tconfig.h" and "tsystem.h" to prototype system
2603         functions such as sbrk, write, etc..  Add function prototypes.
2604         Convert function declarations from K&R to ISO C.  Cast pointers
2605         to "long" and "unsigned long" instead of "int" and "unsigned int".
2606         Convert tokens following #endif into comments.
2607
2608 2006-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
2609
2610         * invoke.texi: Remove mention of f77; Reformat table for
2611         inline parameter options correctly; mention that -malign-double
2612         is default on x86-64 targets.
2613
2614 2006-07-17  Zdenek Dvorak <dvorakz@suse.cz>
2615
2616         * tree-chrec.c (avoid_arithmetics_in_type_p): New.
2617         (convert_affine_scev, chrec_convert_aggressive): Use
2618         avoid_arithmetics_in_type_p.  Do not check for the subtypes
2619         separately.
2620
2621 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
2622
2623         PR middle-end/28403
2624         * optabs.c (expand_doubleword_shift): Wrap the call to
2625         do_compare_rtx_and_jump with NO_DEFER_POP and OK_DEFER_POP.
2626
2627 2006-07-17  Richard Sandiford  <richard@codesourcery.com>
2628
2629         PR middle-end/28402
2630         * optabs.c (expand_binop): Pass next_methods rather than methods
2631         to expand_doubleword_shift.
2632
2633 2006-07-17  J"orn Rennecke  <joern.rennecke@st.com>
2634
2635         PR other/28251
2636         * tree.h (dump_addr): Declare.
2637         * print-tree.c (dump_addr): New function.
2638         (print_node_brief, print_node): Use it.
2639         * print-rtl.c (print_rtx): Likewise.
2640         * common.opt (-fdump-noaddr): New option.
2641         * doc/invoke.texi (-fdump-noaddr): Document.
2642         * loop-unroll.c (si_info_hash): Make hash independent of addresses.
2643         (ve_info_hash): Likewise.
2644
2645 2006-07-13  Andrew Haley  <aph@redhat.com>
2646
2647         PR tree-optimization/19505
2648         * tree-cfgcleanup.c (tree_forwarder_block_p): If we have an EH
2649         edge leaving this block, make sure that the destination of this
2650         block has only one predecessor.
2651
2652 2006-07-17  Richard Guenther  <rguenther@suse.de>
2653
2654         PR tree-optimization/28238
2655         * tree-inline.c (copy_bb): Check if we produced valid
2656         gimple copying and substituting a stmt.  If not, gimplify
2657         it.
2658
2659 2006-07-16  Eric Botcazou  <ebotcazou@adacore.com>
2660
2661         * optabs.c (maybe_encapsulate_block): New function extracted from...
2662         (emit_libcall_block): ...here.  Invoke it on the block of insns to
2663         maybe emit REG_LIBCALL/REG_RETVAL notes around the block.
2664         (emit_no_conflict_block): Likewise.
2665
2666 2006-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
2667
2668         * doc/install.texi (sparc-sun-solaris2*): Add GMP version number.
2669
2670 2006-07-15  Roger Sayle  <roger@eyesopen.com>
2671
2672         * tree-gimple.c (is_gimple_stmt): Sink test of IS_EMPTY_STMT into
2673         a new NOP_EXPR case of the switch statement.
2674
2675 2006-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2676
2677         PR middle-end/28160
2678         * stor-layout.c (place_field): Take the bit field with
2679         an excessive size into account in the ms-bitfiled case.
2680
2681         PR middle-end/28161
2682         * stor-layout.c (place_field): Use DECL_BIT_FIELD_TYPE of
2683         the previous bit field.
2684
2685 2006-07-14  Eliot Dresselhaus  <eliot@sonic.net>
2686
2687         PR target/27287
2688         * config/rs6000/spe.md (frob_di_df_2): Add m->r alternative.
2689
2690 2006-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
2691
2692         * config/s390/linux-unwind.h (s390_fallback_frame_state): Detect
2693         signal frames correctly even when the signal was installed with
2694         sa_restorer set.
2695
2696 2006-07-14  Carlos O'Donell  <carlos@codesourcery.com>
2697
2698         * dbxout.c (dbxout_begin_prologue): Emit LFBB label at function start.
2699         (dbxout_function_end): Use local label LFBB. Remove hook
2700         DBX_OUTPUT_NFUN.
2701         (dbxout_source_line): Use local label LFBB.
2702         (dbxout_block): Likewise.
2703         (dbx_output_lbrac): Remove hook DBX_OUTPUT_LBRAC.
2704         (dbx_output_rbrac): Remove hook DBX_OUTPUT_RBRAC.
2705         * config/rs6000/linux64.h: Remove DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC,
2706         and DBX_OUTPUT_NFUN.
2707
2708 2006-07-13  Janis Johnson  <janis187@us.ibm.com>
2709
2710         * doc/sourcebuild.texi (Test Directives): Document dg-shouldfail.
2711
2712 2006-07-13  Jan Hubicka  <jh@suse.cz>
2713
2714         * cgraphunit.c (cgraph_varpool_analyze_pending_decls): Call
2715         align_variable.
2716         * output.h (align_variable): Declare.
2717         * varasm.c (align_variable): Export.
2718         * value-prof.c (tree_value_profile_transformations): Recompute iterator
2719         when basic block changed.
2720
2721 2006-07-13  Nick Clifton  <nickc@redhat.com>
2722
2723         * config/sh/sh.c (sh_reorg): Ignore deleted insns whilst
2724         walking the LOG_LINKS chain.
2725
2726 2006-07-12  Geoffrey Keating  <geoffk@apple.com>
2727
2728         * doc/invoke.texi (C++ Dialect Options): Explain difference
2729         between -fvisibility-inlines-hidden and setting hidden
2730         visibility explicitly.
2731
2732 2006-07-12  Eric Christopher  <echristo@apple.com>
2733
2734         * config/t-slibgcc-darwin (SHLIB_LINK): Don't munge stmp-lipo.
2735         (stmp-lipo): Depend on libgcc.a.
2736
2737 2006-07-12  Kazu Hirata  <kazu@codesourcery.com>
2738
2739         * tree.c: Fix a comment typo.
2740
2741 2006-07-12  Naveen.H.S  <naveenh@kpitcummins.com>
2742
2743         * config/m32c/muldiv.md (umulhisi3_c): Use only registers for
2744         dest.
2745         (umulhisi3_r): Likewise.
2746
2747 2006-07-12  Paolo Carlini  <pcarlini@suse.de>
2748
2749         PR libstdc++/27878
2750         * doc/install.texi (mips-sgi-irix6): Add note about IRIX 6.5.x,
2751         x < 19, vs wchar_t support.
2752
2753 2006-07-12  Nick Clifton  <nickc@redhat.com>
2754
2755         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Use -isa=sh4-up
2756         instead of -isa=sh4.
2757
2758 2006-07-12  Mike Stump  <mrs@apple.com>
2759
2760         * protoize.c (edit_fn_definition): Add volatile to clean_text_p.
2761
2762 2006-07-10  Eric Christopher  <echristo@apple.com>
2763
2764         * config/t-slibgcc-darwin: Rewrite.
2765
2766 2006-07-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2767
2768         PR bootstrap/20437
2769         * Makefile.in (configure): add missing aclocal.m4 and acinclude.m4
2770         dependencies.
2771
2772 2006-07-08  Matthias Klose  <doko@debian.org>
2773
2774         * doc/sourcebuild.texi: Fix typo.
2775
2776 2006-07-07  Mike Stump  <mrs@apple.com>
2777
2778         * toplev.c (process_options): Don't give -ffunction-sections may
2779         affect debugging warning for Mach-O.
2780
2781 2006-07-07  James E Wilson  <wilson@specifix.com>
2782
2783         * config/mips/mips.md (cpu): Add sb1a.
2784         * config/mips/sb1.md: Modify almost all patterns to accept sb1a in
2785         addition to sb1.  Adjust comments to clarify SB-1A differences from
2786         SB-1.
2787         (ir_sb1a_load): New.  Modify bypasses to use it.
2788         (ir_sb1a_simple_alu): Likewise.
2789         * config/mips/mips.c (mips_cpu_info_table): Add sb1a.
2790         (mips_rtx_cost_data): Add PROCESSOR_SB1A support.
2791         (mips_issue_rate): Add PROCESSOR_SB1A.
2792         (mips_multipass_dfa_lookahead): Use TUNE_SB1 instead of PROCESSOR_SB1.
2793         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1A.
2794         (TARGET_SB1): Add PROCESSOR_SB1A check.
2795         (TUNE_SB1): Likewise.
2796
2797         * config/mips/mips-protos.h (mips_store_data_bypass_p): New.
2798         * config/mips/mips.c (mips_store_data_bypass_p): New.
2799         * config/mips/sb1.md: Use mips_store_data_bypass_p instead of
2800         store_data_bypass_p.
2801
2802 2006-07-08  Paul Brook  <paul@codesourcery.com>
2803
2804         PR target/27991
2805         * config/m68k/m68k.md: Add r-m patterns for 68881 movxf.
2806
2807 2006-07-07   Richard Guenther  <rguenther@suse.de>
2808
2809         PR middle-end/28268
2810         * tree.h (build_one_cst): Declare.
2811         * tree.c (build_one_cst): New function.
2812         * tree-ssa-math-opts.c (get_constant_one): Remove.
2813         (insert_reciprocals): Use build_one_cst.
2814         * fold-const.c (fold_plusminus_mult): Likewise.
2815
2816 2006-07-07  Roger Sayle  <roger@eyesopen.com>
2817
2818         * pointer-set.c (pointer_set_destroy): Correct whitespace.
2819         * cfgloopanal.c (dump_graph): Likewise.
2820         * dojump.c (discard_pending_stack_adjust): Likewise.
2821         * fix-header.c (TARGET_EXTRA_INCLUDE, TARGET_EXTRA_PRE_INCLUDES):
2822         Likewise.
2823         * alloc-pool.c (dump_alloc_pool_statistics): Likewise.
2824         * function.c (finalize_block_changes): Likewise.
2825         * gcc-common.c (ggc_free_overhead, dump_gcc_loc_statistics): Likewise.
2826         * tree-ssa-dce.c (clear_control_dependence_bitmap): Likewise.
2827         * rtl.c (dump_rtx_statistics): Likewise.
2828         * tree-ssa-structalias.c (sort_fieldstack, init_alias_heapvars):
2829         Likewise.
2830         * varray.c (dump_varray_statistics): Likewise.
2831         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
2832         decode_decimal64, encode_decimal128, decode_decimal128,
2833         decimal_real_to_decimal): Likewise.
2834
2835 2006-07-07  Richard Guenther  <rguenther@suse.de>
2836
2837         PR tree-optimization/28187
2838         * tree-vrp.c (vrp_operand_equal_p): New function.
2839         (vrp_bitmap_equal_p): Likewise.
2840         (update_value_range): Use them to compare old and new
2841         max and min values.
2842
2843 2006-07-06  Roger Sayle  <roger@eyesopen.com>
2844
2845         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Add
2846         a default case to switch statement to silence compiler warnings.
2847
2848 2006-07-06  Roger Sayle  <roger@eyesopen.com>
2849
2850         PR target/27968
2851         * configure.ac (HAVE_AS_IX86_FFREEP): On x86 targets check whether
2852         the configured assembler supports the x87's ffreep mnemonic.
2853         * configure: Regenerate.
2854         * config.in: Regenerate.
2855
2856         * config/i386/i386.c (output_387_ffreep): New function.
2857         (output_fp_compare): Use output_387_ffreep to emit ffreep insns.
2858         (output_387_reg_move): Likewise.
2859
2860 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2861
2862         Port to hosts whose 'sort' and 'tail' implementations
2863         treat operands with leading '+' as file names, as POSIX
2864         has required since 2001.  However, make sure the code still
2865         works on pre-POSIX hosts.
2866         * Makefile.in (slowcompare): Port to POSIX 1003.1-2001,
2867         which says you should use "tail -c +N" rather than "tail +Nc".
2868         Fix a bug: the old code incorrectly skipped 15 bytes, not 16.
2869
2870 2006-07-06  Zdenek Dvorak <dvorakz@suse.cz>
2871
2872         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Fix typo in
2873         argument name.
2874
2875 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
2876
2877         PR target/28150
2878         * config/rs6000/rs6000.c (rs6000_legitimate_address): Do not allow
2879         PRE_{INC,DEC} of TFmode.
2880
2881 2006-07-06  David Edelsohn  <edelsohn@gnu.org>
2882             Alan Modra  <amodra@bigpond.net.au>
2883
2884         PR target/28170
2885         * config/rs6000/rs6000.c (insvdi_rshift_rlwimi_p): Correct shiftop
2886         bounds. Simplify.
2887
2888 2006-07-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2889
2890         PR target/28285
2891         * config/alpha/predicates.md (alpha_swapped_comparison_operator):
2892         Remove duplicate gtu.
2893
2894 2006-07-05  Jason Merrill  <jason@redhat.com>
2895
2896         PR c++/13983
2897         PR c++/17519
2898         * stor-layout.c (finish_record_layout): Copy TYPE_PACKED to variants.
2899         * c-common.c (handle_packed_attribute): So don't copy it here.
2900         * c-decl.c (finish_struct): Don't copy TYPE_ALIGN.
2901
2902 2006-07-05  Mike Stump  <mrs@apple.com>
2903
2904         * doc/invoke.texi (Invoking G++): Clarify prose for g++.
2905
2906 2006-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2907
2908         PR target/26146
2909         * config.gcc: Check with_cpu for i[34567]86--*-solaris2.1[0-9]*.
2910
2911 2006-07-05  Richard Guenther  <rguenther@suse.de>
2912
2913         PR target/28158
2914         * config/i386/i386.md (*negdf2_1): Restrict pattern to
2915         TARGET_SSE2 targets if using SSE math.
2916         (*absdf2_1): Likewise.
2917
2918 2006-07-05  Richard Guenther  <rguenther@suse.de>
2919
2920         PR tree-optimization/28162
2921         * fold-const.c (fold_binary): For (-A) * (-B) -> A * B
2922         make sure to convert the operands to the correct type.
2923
2924 2006-07-04  Paolo Bonzini  <bonzini@gnu.org>
2925
2926         PR tree-optimization/28218
2927
2928         * tree-ssa-math-opts.c (execute_cse_reciprocals): Fix calls
2929         to calculate and free the dominator information.
2930
2931 2006-07-04  Peter O'Gorman  <peter@pogma.com>
2932
2933         * mklibgcc.in: chmod 644 before ranlib during install.
2934
2935 2006-07-04  Andrew Stubbs <andrew.stubbs@st.com>
2936             J"orn Rennecke <joern.rennecke@st.com>
2937
2938         * configure.ac (.eh_frame data check): Use diff -b.
2939
2940 2006-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2941
2942         PR bootstrap/18058
2943         * Makefile.in (BUILD_RTL): Add build/vec.o.
2944         (build/gencondmd.o): Filter out -fkeep-inline-functions.
2945         (build/genextract): Delete.
2946         (build/genautomata): Likewise.
2947
2948 2006-07-04  Alan Modra  <amodra@bigpond.net.au>
2949
2950         PR target/28207
2951         * config/rs6000/rs6000.c (function_arg_boundary): Double-word align
2952         128-bit IBM long doubles for ABI_V4.
2953
2954 2006-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2955
2956         * tree.c (range_in_array_bounds_p): New predicate.
2957         * tree.h (range_in_array_bounds_p): Declare it.
2958         * tree-eh.c (tree_could_trap_p) <ARRAY_RANGE_REF>: Use it to
2959         return a less conservative answer.
2960         * tree-sra.c (struct sra_elt): Add new pointer field 'groups'
2961         and flag 'is_group'.
2962         (IS_ELEMENT_FOR_GROUP): New macro.
2963         (FOR_EACH_ACTUAL_CHILD): Likewise.
2964         (next_child_for_group): New helper function.
2965         (can_completely_scalarize_p): Take into account groups.
2966         (sra_hash_tree): Handle RANGE_EXPR.
2967         (sra_elt_eq): Likewise.
2968         (lookup_element): Be prepared for handling groups.
2969         (is_valid_const_index): Delete.
2970         (maybe_lookup_element_for_expr) <ARRAY_REF>: Use in_array_bounds_p
2971         instead of is_valid_const_index.
2972         <ARRAY_RANGE_REF>: New case.
2973         (sra_walk_expr) <ARRAY_REF>: Use in_array_bounds_p instead of
2974         is_valid_const_index.
2975         <ARRAY_RANGE_REF>: Do not unconditionally punt.
2976         (scan_dump): Dump info for groups too.
2977         (decide_instantiation_1): Likewise.
2978         (decide_block_copy): Assert that the element is not a group.
2979         Propagate decision to groups.
2980         (generate_one_element_ref): Handle RANGE_EXPR.
2981         (mark_no_warning): Iterate over actual childs.
2982         (generate_copy_inout): Likewise.
2983         (generate_element_copy): Likewise.
2984         (generate_element_zero): Likewise.
2985         (generate_element_init_1): Likewise.
2986         (dump_sra_elt_name): Handle RANGE_EXPR.
2987
2988 2006-07-03  Roger Sayle  <roger@eyesopen.com>
2989
2990         PR tree-optimization/26251
2991         * tree-ssa-threadupdate.c (redirection_block_p): New function.
2992         (thread_block): When optimizing for size refuse to thread jumps
2993         that would require duplication of blocks other than redirection
2994         blocks.
2995
2996 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
2997
2998         * configure.ac: Fix thinko in previous check-in.
2999         * configure: Regenerate.
3000
3001 2006-07-03  Paolo Bonzini  <bonzini@gnu.org>
3002
3003         PR other/27063
3004         * configure.ac (for lang...): Simplify nesting of conditionals.
3005         Test subdir_requires for non-enabled languages.  Move processing
3006         of lang_opt_files and lang_tree_fiels below that test.
3007         * configure: Regenerate.
3008         * doc/sourcebuild.texi (Front End Config): Document subdir_requires.
3009
3010 2006-07-01  Martin Michlmayr  <tbm@cyrius.com>
3011
3012         * doc/gcov.texi (Invoking Gcov): Add a missing word.
3013
3014 2006-06-30  Kazu Hirata  <kazu@codesourcery.com>
3015
3016         * cfgexpand.c, config/i386/i386.c, genpreds.c, tree-cfg.c: Fix
3017         comment typos.
3018
3019 2006-06-29  Jason Merrill  <jason@redhat.com>
3020
3021         PR c++/26905
3022         PR c++/26612
3023         PR c++/27000
3024         PR c++/26984
3025         PR c++/19134
3026         * tree.c (build_decl_stat): Don't hande #pragma visibility here.
3027         * c-common.c (c_determine_visibility): Handle it here.
3028         * c-decl.c (finish_decl): Call c_determine_visibility for
3029         functions, too.
3030         * flags.h (enum symbol_visibility): Sort from most to least visibility.
3031         * tree.h: Likewise.
3032         * varasm.c (default_assemble_visibility): Likewise.
3033         * c-common.c (handle_visibility_attribute): Complain about trying
3034         to give visibility to an already defined class, or trying to change
3035         declared visibility. Always attach the attribute.
3036
3037         PR c++/26905
3038         PR c++/21675
3039         PR c++/17470
3040         * attribs.c (decl_attributes): Ignore type-in-place attributes
3041         once the type has been defined.
3042
3043 2006-06-29  Roger Sayle  <roger@eyesopen.com>
3044
3045         PR middle-end/27428
3046         * c-lex.c (c_lex_with_flags) <CPP_N_INVALID>: Increment errorcount
3047         to indicate the cpplib has issued an error message for us.
3048
3049 2006-06-29  Asher Langton  <langton2@llnl.gov>
3050
3051         PR target/25765
3052         * config/i386/i386.c (ix86_output_function_epilogue): Don't
3053         insert a label at the end of an function under Mach-O.
3054
3055 2006-06-29  Eric Christopher  <echristo@apple.com>
3056             Evan Cheng  <evan.cheng@apple.com>
3057
3058         * predicates.md (vector_all_ones_operand): New.
3059         (nonimmediate_or_sse_const_operand): Ditto.
3060         * config/i386/i386-protos.h (standard_sse_constant_opcode): Declare.
3061         * config/i386/i386.c (standard_sse_constant_opcode): Define.
3062         (standard_sse_mode_p): Ditto.
3063         (standard_sse_constant_p): Add case for -1 vector.
3064         (ix86_expand_vector_move): Try to use.
3065         * sse.md (*mov<mode>_internal): Use nonimmediate_or_sse_const_operand.
3066         Call standard_sse_constant_opcode.
3067         (*movv4sf_internal): Ditto.
3068         (*movv2df_internal): Ditto.
3069
3070 2006-06-29  Roger Sayle  <roger@eyesopen.com>
3071
3072         * genpreds.c (write_match_code_switch): Correctly use XSTR instead
3073         of XEXP to extract the operands of a MATCH_CODE rtx.
3074
3075 2006-06-28  Andrew Pinski  <pinskia@gmail.com>
3076
3077         * tree.c (tree_size): Do not waste tail padding in
3078         struct tree_string and make the size be the same as
3079         build_string will generate.
3080
3081 2006-06-28  Jason Merrill  <jason@redhat.com>
3082
3083         PR c++/27768
3084         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
3085         may_aliases already in the tag's annotations to the bitmap.
3086
3087 2006-06-28  Roger Sayle  <roger@eyesopen.com>
3088
3089         * genpreds.c (write_predicate_stmts) <IOR>: Add missing break.
3090
3091 2006-06-28  Roger Sayle  <roger@eyesopen.com>
3092
3093         * genpreds.c (generate_switch_p): New function.
3094         (add_mode_tests): Push the new mode test down inside an AND expr
3095         if this allows the switch-suitable MATCH_CODE to be near the root.
3096         (write_match_code_switch): New function to write a MATCH_CODE as
3097         a switch statement.
3098         (write_predicate_stmts): New function to write a predicate RTX
3099         expression as a sequence of statements.
3100         (write_one_predicate_function): Use write_predicate_stmts.
3101         (write_tm_constrs_h): Likewise.
3102
3103 2006-06-26  Fred Fish  <fnf@specifix.com>
3104
3105         * config/mips/t-sb1: New file.
3106         * config.gcc (mipsisa64sb1-*-elf*): Add mips/t-sb1 to
3107         tmake_file list.
3108
3109 2006-06-26  DJ Delorie  <dj@redhat.com>
3110
3111         * config/m32c/m32c.c (m32c_print_operand): Fix sign-merging logic.
3112
3113 2006-06-26  Naveen H.S  <naveenh@kpitcummins.com>
3114             Jayant Sonar  <jayants@kpitcummins.com>
3115             Jaydeep Vipradas  <jaydeepv@kpitcummins.com>
3116
3117         * config/m32c/addsub.md (addsi3, addsi3_1, addsi3_2): New.
3118         (subsi3, subsi3_1, subsi3_2): New.
3119         * config/m32c/bitops.md (andsi3, iorsi3, xorsi3): New.
3120         * config/m32c/mov.md (SI mov peephole): New.
3121         * config/m32c/m32.c (m32c_immd_dbl_mov): New.
3122         * config/m32c/m32c-protos.h (m32c_immd_dbl_mov): New.
3123
3124 2006-06-26  Olivier Hainque  <hainque@adacore.com>
3125
3126         * function.c (aggregate_value_p): Honor DECL_BY_REFERENCE on
3127         a CALL_EXPR target function declaration.
3128
3129 2006-06-26  Richard Guenther  <rguenther@suse.de>
3130
3131         * tree.c (build_string): Do not waste tail padding in
3132         struct tree_string.
3133
3134 2006-06-26  Richard Guenther  <rguenther@suse.de>
3135
3136         * ggc-page.c (init_ggc): Add missing element to size_lookup
3137         table.
3138
3139         Revert
3140         2006-06-23  Richard Guenther  <rguenther@suse.de>
3141
3142         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
3143         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
3144         alignment requests instead.  Add verification code.
3145         Add struct tree_function_decl and struct tree_binfo size to
3146         extra_order_size_table.  Add missing element to size_lookup
3147         table.
3148
3149 2006-06-25  Eric Botcazou  <ebotcazou@adacore.com>
3150
3151         PR middle-end/28151
3152         * fold-const.c (const_binop): Be prepared for self returning zero.
3153         Simplify code handling complex values.
3154
3155 2006-06-24  Olivier Hainque  <hainque@adacore.com>
3156
3157         * gimplify.c (gimplify_scalar_mode_aggregate_compare): New function.
3158         (gimplify_expr): Use it for tcc_comparison of operands of non BLKmode
3159         aggregate types.
3160
3161 2006-06-24  Olivier Hainque  <hainque@adacore.com>
3162
3163         * tree-ssa-loop-im.c (for_each_index): Handle ARRAY_RANGE_REF as
3164         ARRAY_REF, so have the callback called for the low bound expression.
3165
3166 2006-06-23  Janis Johnson  <janis187@us.ibm.com>
3167
3168         * tree.h (DECIMAL_FLOAT_TYPE_P): New.
3169         * c-typeck.c (c_common_type): Disallow operations on decimal float
3170         types and other float types.
3171         * convert.c (convert_to_real): Don't ignore conversions involving
3172         decimal float types.
3173
3174 2006-06-23  Olivier Hainque  <hainque@adacore.com>
3175
3176         * tree.c (max_int_size_in_bytes): New function, inspired from
3177         code in function.c:assign_temp.
3178         * tree.h (max_int_size_in_bytes): Declare.
3179         * function.c (assign_temp): Use it.
3180         * gimplify.c (create_tmp_var): Relax the assertions on the type
3181         properties, not mandating constant size any more.
3182         (force_constant_size): New static function.
3183         (gimple_add_tmp_var): Use it, forcing variable size to a
3184         constant upper bound if it is not constant on entry.
3185
3186 2006-06-23  Danny Smith   <dannysmith@users.sourceforge.net>
3187
3188         PR target/27789
3189         * config/i386/winnt.c (ix86_handle_selectany_attribute): Move check
3190         for initialization and setting of one_only flag to ...
3191         (i386_pe_encode_section_info): ...here.
3192         (i386_pe_dllimport_p): Check for DECL_DLLIMPORT_P also.
3193         Recheck that the symbol has not been defined.
3194
3195 2006-06-23  Richard Guenther  <rguenther@suse.de>
3196
3197         * ggc-page.c (init_ggc): Do not round up the extra_order_size_table
3198         sizes to MAX_ALIGNMENT.  Fix the size_lookup table to honour
3199         alignment requests instead.  Add verification code.
3200         Add struct tree_function_decl and struct tree_binfo size to
3201         extra_order_size_table.  Add missing element to size_lookup
3202         table.
3203
3204 2006-06-22  Roger Sayle  <roger@eyesopen.com>
3205             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3206
3207         PR middle-end/28131
3208         * expr.c (expand_expr_real_1) <VECTOR_CST>: Check whether the
3209         call to lang_hooks.types.type_for_mode returned NULL_TREE.
3210
3211 2006-06-23  Ben Elliston  <bje@au.ibm.com>
3212
3213         * dfp.c (decimal_to_decnumber): Do not use decNumberNegate to
3214         negate dn -- manipulate it directly.
3215
3216 2006-06-22  Roger Sayle  <roger@eyesopen.com>
3217             Steven Bosscher  <stevenb.gcc@gmail.com>
3218
3219         PR target/27531
3220         * reload1.c (gen_reload): Call mark_jump_label on the new insns
3221         generated by gen_move_insn to add REG_LABEL notes if necessary.
3222
3223 2006-06-22  Bob Wilson  <bob.wilson@acm.org>
3224
3225         * config/xtensa/lib1funcs.asm (MIN_ESA): Delete.
3226         (leaf_entry): Remove use of MIN_ESA.
3227
3228 2006-06-22  Zdenek Dvorak <dvorakz@suse.cz>
3229
3230         PR rtl-optimization/28121
3231         * cfgexpand.c (tree_expand_cfg): Clean EDGE_EXECUTABLE flag from
3232         the entry edge.
3233
3234 2006-06-21  DJ Delorie  <dj@redhat.com>
3235
3236         * config/m32c/muldiv.md (mulhisi3_i): Only use registers for dest
3237         (TN-16C-A156A/E).
3238         (mulhisi3_r): Likewise.
3239
3240 2006-06-21  Richard Sandiford  <richard@codesourcery.com>
3241
3242         PR middle-end/28034
3243         * coverage.c (coverage_counter_alloc): Leave the index type
3244         unspecified.
3245         (coverage_counter_alloc): Use null arguments for operands 2 and 3
3246         of the ARRAY_REF.
3247
3248 2006-06-21  Andrew Pinski  <pinskia@physics.uc.edu>
3249
3250         * doc/invoke.texi (-fopenmp) Move to "Options Controlling C Dialect"
3251         section from the "Options for Code Generation Conventions".
3252
3253 2006-06-21  Richard Henderson  <rth@redhat.com>
3254
3255         PR target/26347
3256         PR target/27082
3257         * config/alpha/predicates.md (small_symbolic_operand): Deny weak
3258         symbols.
3259         (global_symbolic_operand): Allow weak symbols, even if local_p.
3260
3261 2006-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3262
3263         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): New function.
3264         (find_interesting_uses_address): Punt if above function returns true.
3265
3266 2006-06-21  Richard Guenther  <rguenther@suse.de>
3267
3268         * configure: Regenerated.
3269
3270 2006-06-21  Joseph Myers  <joseph@codesourcery.com>
3271
3272         * config/mips/mips.c (function_arg): Where one part of a
3273         complex argument is in registers and the other part in the stack,
3274         return a REG not a PARALLEL.
3275
3276 2006-06-21  Mark Mitchell  <mark@codesourcery.com>
3277
3278         * configure.ac: Set gcc_gxx_include_dir to $target/include/c++
3279         when cross-compiling.  Do not substitute libstdcxx_incdir.
3280         * configure: Regenerated.
3281
3282 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3283
3284         * varasm.c (mergeable_string_section): Check for embedded NULs and
3285         NUL termination in the first int_size_in_bytes (TREE_TYPE (decl))
3286         rather than TREE_STRING_LENGTH bytes.
3287
3288 2006-06-21  Richard Guenther  <rguenther@suse.de>
3289
3290         * ggc-page.c (extra_order_size_table): Add var_ann_d,
3291         tree_ssa_name, bitmap_element and phi_node with 4 arguments
3292         sizes.
3293
3294 2006-06-21  Richrad Guenther  <rguenther@suse.de>
3295
3296         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
3297         Limit iteration over the dominators.
3298
3299 2006-06-20  Roger Sayle  <roger@eyesopen.com>
3300
3301         * config/mips/iris6.h (LIB_SPEC): Add support for -pthread.
3302         (SUBTARGET_CPP_SPEC): Define _REENTERANT if -pthread specified.
3303
3304 2006-06-20  Richard Guenther  <rguenther@suse.de>
3305         Michael Matz  <matz@suse.de>
3306
3307         * alloc-pool.h (free_alloc_pool_if_empty): Prototype new
3308         function.
3309         * alloc-pool.c (free_alloc_pool_if_empty): New function.
3310         * et-forest.h (et_free_pools): Prototype new function.
3311         * et-forest.c (et_free_tree_force): Free parent occurrence.
3312         (et_free_pools): New function.
3313         * dominance.c (free_dominance_info): Free et-forest alloc
3314         pools.
3315
3316 2006-06-20  Roger Sayle  <roger@eyesopen.com>
3317
3318         * expr.c (expand_expr_real_1) <VECTOR_CST>: For vector constants with
3319         integer modes, attempt to directly construct an integer constant.
3320
3321         * fold-const.c (native_encode_vector): Determine the size of each
3322         element from the vector type instead of the first vector element.
3323
3324         * tree.c (build_constructor_single): Mark a CONSTRUCTOR as constant,
3325         if all of its elements/components are constant.
3326         (build_constructor_from_list): Likewise.
3327
3328 2006-06-20  Zdenek Dvorak <dvorakz@suse.cz>
3329
3330         PR tree-optimization/27331
3331         * tree-data-ref.c (free_data_ref): New function.
3332         (create_data_ref): Fail if the data reference has unknown access
3333         function.
3334         (free_data_refs): Use free_data_ref.
3335
3336 2006-06-19  Andrew Pinski  <pinskia@gmail.com>
3337
3338         PR middle-end/28075
3339         * tree-inline.c (setup_one_parameter): Strip useless
3340         type conversion before adding it to the IR.
3341         (declare_return_variable): Likewise.
3342
3343 2006-06-19  Martin Michlmayr  <tbm@cyrius.com>
3344
3345         PR c/27149
3346         * c-common.c (c_common_truthvalue_conversion): Fix grammar in warning.
3347
3348 2006-06-19  Mike Stump  <mrs@apple.com>
3349
3350         * tree.c (variably_modified_type_p): VM arguments don't make the
3351         type a VM type.
3352
3353 2006-06-19  Richard Guenther  <rguenther@suse.de>
3354
3355         * tree-ssa-pre.c (try_combine_conversion): Strip useless
3356         type conversions after folding.
3357
3358 2006-06-19  Richard Guenther  <rguenther@suse.de>
3359
3360         * ggc-page.c (extra_order_size_tab): Add entries with
3361         size of struct function and basic_block.
3362         (size_lookup): Extend to cover sizes up to 511.
3363         (ggc_alloc_stat): Adjust user.
3364         (ggc_pch_count_object): Likewise.
3365         (ggc_pch_alloc_object): Likewise.
3366         (ggc_pch_write_object): Likewise.
3367
3368 2006-06-19  Zdenek Dvorak <dvorakz@suse.cz>
3369
3370         * tree-ssa-loop-niter.c (implies_ge_p): New function.
3371         (derive_constant_upper_bound): Handle OP0 - CST in unsigned types
3372         correctly.
3373
3374 2006-06-19  Denis Chertykov  <denisc@overta.ru>
3375
3376         * config/avr/libgcc.S : Correct my wrong previous commit.
3377
3378 2006-06-19  Roger Sayle  <roger@eyesopen.com>
3379
3380         PR target/27861
3381         * expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
3382         have stripped a SUBREG from the shift count, so we may need to
3383         convert_to_mode back to the type's mode before calling make_tree.
3384         Use new_amount instead of amount to avoid expanding a tree twice.
3385
3386 2006-06-19  Richard Guenther  <rguenther@suse.de>
3387
3388         PR middle-end/28045
3389         * fold-const.c (operand_equal_p): Check if the argument types
3390         have the same precision before stripping NOPs.
3391
3392 2006-06-19  Daniel Berlin  <dberlin@dberlin.org>
3393
3394         Fix PR tree-optimization/27341
3395         * tree-cfg.c (gimplify_val): Call mark_new_vars_to_rename on the
3396         statement we get.
3397         * tree-complex.c (pass_lower_complex): Update SMT usage.
3398
3399 2006-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3400
3401         * config/s390/s390.md ("doloop_si64", "doloop_si31", "doloop_di"):
3402         Add a new alternative to the constraint strings. Add move of
3403         operand 1 to 3 to the splitter definition.
3404         ("doloop_si_long"): Second contraint alternative removed.
3405
3406 2006-06-08  Anatoly Sokolov <aesok@post.ru>
3407
3408         * config/avr/avr.h (avr_have_movw_lpmx_p): Declare.
3409         (TARGET_CPU_CPP_BUILTINS): Add __AVR_HAVE_MOVW__ and
3410         __AVR_HAVE_LPMX__.
3411         (AVR_HAVE_MOVW) Define.
3412         (ASSEMBLER_DIALECT): Use AVR_HAVE_MOVW.
3413         (ASM_SPEC): Add avr25.
3414         (LINK_SPEC): Add avr25.
3415         * config/avr/avr.c (avr_have_movw_lpmx_p): Add.
3416         (base_arch_s): Add new member 'have_movw_lpmx'.
3417         (avr_arch_types): Init 'have_movw_lpmx'.
3418         (avr_mcu_types): Add 'avr25'. Move attiny13, attiny2313, attiny24,
3419         attiny44, attiny84, attiny25, attiny45, attiny85, attiny261,
3420         attiny461, attiny861 and at86rf401 in 'avr25' arhitecture.
3421         (avr_override_options): Init 'avr_have_movw_lpmx_p'.
3422         (output_movhi, output_movsisf, ashlsi3_out, avr_rtx_costs): Use
3423         AVR_HAVE_MOVW.
3424         (avr_file_start): Do not output '.arh' derective.
3425         * config/avr/libgcc.S (mov_l): Use __AVR_HAVE_MOVW__.
3426         (__do_copy_data): Use __AVR_HAVE_LPMX__.
3427         * config/avr/avr.md (mcu_enhanced): Delete.
3428         (mcu_have_movw): Define.
3429         (negsi2, extendhisi2, zero_extendhisi2): Use 'mcu_have_movw'.
3430         (call_insn, call_value_insn): Use 'call_insn' and __AVR_HAVE_MOVW__.
3431         * config/avr/t-avr(MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Add avr25.
3432         (MULTILIB_MATCHES): Add attiny13, attiny2313, attiny24, attiny44,
3433         attiny84, attiny25, attiny45, attiny85, attiny261, attiny461,
3434         attiny861 and at86rf401 devices.
3435
3436 2006-06-18  Jie Zhang  <jie.zhang@analog.com>
3437
3438         * config/bfin/bfin.c (MAX_LOOP_LENGTH): Define to be 2042 instead
3439         of 4096.
3440
3441 2006-06-17  Karl Berry  <karl@gnu.org>
3442
3443         * doc/cpp.texi, doc/cppinternals.texi, doc/gcc.texi,
3444         doc/gccint.texi, doc/install.texi (@dircategory): Use
3445         "Software development" instead of "Programming", following
3446         the Free Software Directory.
3447
3448 2006-06-17  Alexandre Oliva  <aoliva@redhat.com>
3449
3450         * config/i386/i386.c (legitimate_tls_address)
3451         <TARGET_GNU2_TLS>: Add tp after DTPOFF.
3452         * config/i386/i386.md (*tls_dynamic_gnu2_combine_32): Adjust.
3453         (*tls_dynamic_gnu2_combine_64): Likewise.
3454
3455 2006-06-16  Richard Guenther  <rguenther@suse.de>
3456
3457         PR middle-end/27116
3458         * fold-const.c (negate_expr_p): Do not introduce undefined
3459         overflow in negating INTEGER_CSTs.
3460         (fold_negate_expr): Rename from negate_expr.  Revert last
3461         change for folding BIT_NOT_EXPR.  Change semantics to
3462         return NULL_TREE for non-simplified negations.  Do not
3463         strip type conversions and unify type handling.
3464         (negate_expr): New function, wrap around fold_negate_expr
3465         but ensure building a tree always.  Strip type conversions
3466         here, fold to result type.
3467         (fold_unary): Use fold_negate_expr for folding NEGATE_EXPR.
3468
3469 2006-06-16  Roger Sayle  <roger@eyesopen.com>
3470
3471         PR middle-end/27802
3472         * reg-stack.c (subst_stack_regs): Handle noreturn function calls
3473         that (would) return their results in stack registers.
3474
3475 2006-06-16  Michael Matz  <matz@suse.de>
3476         Richard Guenther  <rguenther@suse.de>
3477
3478         * fold-const.c (fold_truthop): Only return new tree node if
3479         we canonicalized something.
3480
3481 2006-06-16  Richard Guenther  <rguenther@suse.de>
3482
3483         * function.h (enum function_frequency): Move declaration
3484         out of struct function.
3485         (struct function): Move bool fields and the enum to the bitfield
3486         section.  Reorder elements to avoid padding.  Remove unused
3487         fields left over from the RTL inliner removal.
3488         * function.c (free_after_compilation): Do not zero removed fields.
3489         * Makefile.in (ipa-reference.o): Add $(FUNCTION_H) dependency.
3490         (ipa-type-escape.o): Likewise.
3491
3492 2006-06-16  Richard Guenther  <rguenther@suse.de>
3493
3494         * cgraph.h (struct cgraph_local_info): Turn bool elements
3495         into a bitfield.
3496         (struct cgraph_node): Likewise.
3497         (struct cgraph_varpool_node): Likewise.
3498
3499 2006-06-15  Richard Guenther  <rguenther@suse.de>
3500
3501         * fold-const.c (fold_truth_not_expr): Rename from
3502         invert_truthvalue.  Give it fold_* semantics to avoid
3503         generating garbage.
3504         (invert_truthvalue): New function.  Wrapper around
3505         fold_truth_not_expr.
3506         (optimize_minmax_comparison): Avoid creating garbage.
3507         (fold_unary): Use fold_truth_not_expr for folding
3508         TRUTH_NOT_EXPR.
3509         (fold_ternary): Replace uses of invert_truthvalue with
3510         fold_truth_not_expr where applicable.
3511         * tree.h (fold_truth_not_expr): Prototype.
3512
3513 2006-06-16  Richard Guenther  <rguenther@suse.de>
3514
3515         PR tree-optimization/27781
3516         * Makefile.in (ipa-pure-const.o): Add $(TARGET_H) dependency.
3517         * ipa-pure-const.c (target.h): Include.
3518         (analyze_function): Do not analyze functions that do not
3519         bind locally.
3520
3521 2006-06-15  Andrew MacLeod  <amacleod@redhat.com>
3522
3523         PR middle-end/27793
3524         * tree-dfa.c (referenced_vars_dup_list): Remove.
3525         (find_referenced_vars): Remove assert.
3526         (referenced_var_check_and_insert): Replace dup list with assert.
3527         * tree-ssa.c (delete_tree_ssa): Remove dup list processing.
3528         * tree-flow.h (referenced_vars_dup_list): Remove extern decl.
3529
3530 2006-06-15  Richard Guenther  <rguenther@suse.de>
3531
3532         * tree-ssa-structalias.c (alias_get_name): Avoid creating
3533         extra unused identifiers if not dumping.
3534         (create_variable_info_for): Likewise.
3535
3536 2006-06-15  Zdenek Dvorak <dvorakz@suse.cz>
3537
3538         * tree-ssa-loop-niter.c (implies_nonnegative_p): New function.
3539         (derive_constant_upper_bound): Derive more precise upper bound in
3540         common cases.  Return type changed to double_int.
3541         (record_estimate): Reflect the changed return type of
3542         derive_constant_upper_bound.
3543         * double-int.c (double_int_zext, double_int_sext): Fix.
3544
3545 2006-06-15  Paolo Bonzini  <bonzini@gnu.org>
3546
3547         * configure.ac (CFLAGS): Get them from the toplevel or from the
3548         configure invocation.
3549         * configure: Regenerate.
3550         * Makefile.in (CFLAGS): Substitute value provided by configure.
3551
3552 2006-06-14  Mark Mitchell  <mark@codesourcery.com>
3553
3554         PR c++/26559
3555         * c-common.h (c_finish_omp_atomic): Adjust declaration.
3556         * c-omp.c (c_finish_omp_atomic): Return the expression to perform,
3557         rather than calling add_stmt on it.
3558         * c-parser.c (c_parser_omp_atomic): Adjust accordingly.
3559
3560 2006-06-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3561
3562         PR middle-end/27959
3563         * reload1.c (reload): Remove registers returned by update_eliminables
3564         from used_spill_regs.
3565
3566 2006-06-13  DJ Delorie  <dj@redhat.com>
3567
3568         * config/m32c/muldiv.md (mulpsi3): Expect arbitrary constants.
3569
3570 2006-06-13  Carlos O'Donell  <carlos@codesourcery.com>
3571
3572         * Makefile.in: Define HTMLS_BUILD, HTMLS_INSTALL,
3573         html__strip_dir, html__mkdir_p. Enhance install-html target.
3574         * configure.ac: AC_SUBST datarootdir, docdir and htmldir.
3575         * configure: Regenerate.
3576
3577 2006-06-13  Fariborz Jahanian <fjahanian@apple.com>
3578
3579         * fold-const.c (fold_cond_expr_with_comparison): Check for
3580         Objective-C++ as language in deciding COND_EXPR transformation.
3581
3582 2006-06-06  J"orn Rennecke <joern.rennecke@st.com>
3583
3584         PR target/28014:
3585         * config/sh/t-sh (LIB1ASMFUNCS): Add _udiv_qrnnd16
3586         * config/sh/sh.c (print_operand): Add !SHMEDIA functionality to 'M'.
3587         * config/sh/lib1funcs.h (SL, SL1): Define.
3588         * config/sh/lib1funcs.asm (__udiv_qrnnd16): New hidden function.
3589         * longlong.h (__sh__): Define umul_ppmm, udiv_qrnnd and sub_ddmmss.
3590         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): New rule.
3591         (OBJS_Os_4_200): New variable.
3592         ($(T)libgcc-Os-4-200.a): Use it.
3593         * sh.md (udivsi3): For TARGET_DIVIDE_CALL_TABLE, avoid function call
3594         when dividing 1 and/or by 0.
3595
3596 2006-06-13  Roger Sayle  <roger@eyesopen.com>
3597
3598         * configure.ac (HAS_MCONTEXT_T_UNDERSCORES): Include <sys/signal.h>
3599         before <ucontext.h> to define sigset_t required by <sys/ucontext.h>.
3600         * configure: Regenerate.
3601
3602 2006-06-13  Jie Zhang  <jie.zhang@analog.com>
3603
3604         * config/bfin/bfin.c (bfin_reorg_loops): Only call recog_memoized ()
3605         for real instruction.
3606
3607 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3608
3609         PR middle-end/26807
3610         * haifa-sched.c (check_cfg): Handle special case.
3611
3612 2006-06-13  Eric Botcazou  <ebotcazou@adacore.com>
3613
3614         PR debug/26754
3615         * gimplify.c (declare_tmp_vars): Rename into declare_vars.
3616         Add debug_info parameter.  Chain the vars to the BLOCK instead
3617         of the BIND_EXPR if debug info are requested for them.
3618         (pop_gimplify_context): Adjust for above change.
3619         (gimple_add_tmp_var): Likewise.
3620         * tree-gimple.h (declare_tmp_vars): Rename into declare_vars.
3621         Add bool parameter.
3622         * tree-nested.c (convert_nonlocal_reference): Adjust for above change.
3623         (convert_local_reference): Likewise.
3624         (get_local_debug_decl): Set DECL_IGNORED_P on the original variable.
3625         (finalize_nesting_tree_1): Request that debug info be emitted
3626         for debug_var_chain.
3627
3628 2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3629
3630         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Fix the patch
3631         for PR target/27863.
3632
3633 2006-06-13  Richard Guenther  <rguenther@suse.de>
3634
3635         PR middle-end/27536
3636         * except.c (output_ttype): Expand type with EXPAND_INITIALIZER.
3637
3638 2006-06-13  Richard Guenther  <rguenther@suse.de>
3639
3640         PR tree-optimization/27830
3641         * tree-inline.c (copy_body_r): For copying the operand
3642         of an ADDR_EXPR make sure to fold &* afterwards.
3643
3644 2006-06-12  Eric Botcazou  <ebotcazou@adacore.com>
3645
3646         * gimplify.c (gimplify_expr): Treat VIEW_CONVERT_EXPR like other
3647         lvalues in the fb_none case with side-effects.
3648
3649 2006-06-12  Kazu Hirata  <kazu@codesourcery.com>
3650
3651         * tree-flow.h: Remove the prototype for
3652         compute_phi_arg_on_exit.
3653         * tree-ssa-loop-ivopts.c (protect_loop_closed_ssa_form_use,
3654         protect_loop_closed_ssa_form, compute_phi_arg_on_exit):
3655         Remove.
3656
3657 2006-06-12  Mark Shinwell  <shinwell@codesourcery.com>
3658
3659         * builtins.c (expand_builtin_return_addr): Only use
3660         frame_pointer_rtx when count == 0 and we are expanding
3661         __builtin_return_address.
3662
3663 2006-06-12  Fred Fish  <fnf@specifix.com>
3664
3665         * config/mips/mips.c (mips_file_start): Create special section
3666         ".gcc_compiled_longXX" for o64 ABI as well as EABI.
3667
3668 2006-06-11  Eric Christopher  <echristo@apple.com>
3669
3670         PR middle-end/27948
3671         * stor-layout.c (place_field): Remove check for
3672         remaining_in_alignment when aligning at the end of a run.
3673
3674 2006-06-11  Eric Christopher  <echristo@apple.com>
3675
3676         PR 27542
3677         * doc/extend.texi (Structure-Packing Pragmas): Document ms_struct
3678         pragma.
3679
3680 2006-06-11  Roger Sayle  <roger@eyesopen.com>
3681
3682         PR target/27858
3683         Revert incorrect fix for PR target/27158
3684         2006-05-08  Roger Sayle  <roger@eyesopen.com>
3685         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
3686         of a reg_equiv_constant if the result is a legitimate constant.
3687
3688 2006-06-11  Roger Sayle  <roger@eyesopen.com>
3689
3690         PR target/27158
3691         * config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
3692         extract a CONST_VECTOR element and interpret it as an integer.
3693         (vspltis_constant): Use const_vector_elt_as_int instead of the
3694         macro CONST_VECTOR_ELT in order to handle FP vector modes.
3695         * config/rs6000/predicates.md (easy_vector_const): Consider
3696         floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.
3697
3698 2006-06-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3699
3700         PR middle-end/27942
3701         * stor-layout.c (update_alignment_for_field): Don't add extra
3702         alignment for packed non-bitfield fields in ms_bitfield_layout_p
3703         code.
3704
3705 2006-06-09  Ralf Corsepius  <ralf.corsepius@rtems.org>
3706
3707         * config/mips/t-rtems: Add EL/EB multilib variants.
3708
3709 2006-06-09  Mike Stump  <mrs@apple.com>
3710
3711         * c-typeck.c (c_begin_vm_scope): Fix file_scope processing.
3712
3713 2006-06-09  David Daney  <ddaney@avtrex.com>
3714
3715         * doc/install.texi: Add binutils version recommendation for mips-*-*.
3716
3717 2006-06-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3718
3719         * reload.c (find_reloads): Unset force_reload for 'X' constraint.
3720
3721 2006-06-09  Richard Guenther  <rguenther@suse.de>
3722
3723         PR tree-optimization/26998
3724         * tree-vrp.c (extract_range_from_unary_expr): For NEGATE_EXPR
3725         of signed types, only TYPE_MIN_VALUE is special, but for both,
3726         minimum and maximum value.  Likewise VR_ANTI_RANGE is special
3727         in this case, as is -fwrapv.
3728
3729 2006-06-08  Mike Stump  <mrs@apple.com>
3730
3731         PR target/26427
3732         * config/darwin.c (darwin_asm_output_anchor): Disable
3733         -fsection-anchors on darwin for now.
3734         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Likewise.
3735         * rs6000/rs6000.c (optimization_options): Likewise.
3736
3737 2006-06-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3738
3739         PR target/27421
3740         * config/i386/i386.c (classify_argument): Skip fields with invalid
3741         types in unions.
3742
3743 2006-06-08  Steven Bosscher  <steven@gcc.gnu.org>
3744
3745         * cse.c (flush_hash_table): Use VOIDmode to invalidate a REG.
3746         (cse_insn): Likewise for the stack_pointer_rtx.
3747
3748 2006-06-08  Roger Sayle  <roger@eyesopen.com>
3749
3750         * tree-ssa-dom.c (record_conditions): Only record "unordered"
3751         conditions from floating point comparisons.
3752
3753 2006-06-08  Paolo Bonzini  <bonzini@gnu.org>
3754
3755         PR middle-end/27733
3756         * expmed.c (struct alg_hash_entry): Fix type of field T
3757         to match synth_mult argument.
3758         (NUM_ALG_HASH_ENTRIES): Make it bigger for 64-bit HOST_WIDE_INT.
3759
3760 2006-06-08  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3761
3762         PR target/27863
3763         * haifa-sched.c (unlink_other_notes, unlink_line_notes): Update basic
3764         block boundaries.
3765
3766 2006-06-08  Richard Guenther  <rguenther@suse.de>
3767
3768         PR middle-end/27116
3769         * fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
3770         only, if overflow is defined and not trapping.
3771         (negate_expr): Likewise.
3772
3773 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
3774
3775         PR tree-optimization/27872
3776         * tree-ssa-loop-manip.c (tree_unroll_loop): Set EDGE_IRREDUCIBLE_LOOP
3777         flag on the new exit edge of the unrolled loop.
3778
3779 2006-06-07  Zdenek Dvorak <dvorakz@suse.cz>
3780
3781         PR rtl-optimization/26449
3782         * loop-invariant.c (move_invariant_reg): Fail if force_operand fails.
3783
3784 2006-06-07  Andrew MacLeod  <amacleod@redhat.com>
3785
3786         PR middle-end/27793
3787         * tree-dfa.c (referenced_vars_dup_list): New.  List of duplicate
3788         referenced_variables with matching DECL_UID's.
3789         (find_referenced_vars): Make sure duplicate list is empty to start.
3790         (referenced_var_p): Remove.
3791         (referenced_var_check_and_insert): Renamed from referenced_var_insert.
3792         Check if var is in the list, and add if needed.  Update the duplicate
3793         list if a different var is in the list with the same DECL_UID.
3794         (add_referenced_var): Call routine to check and insert.
3795         * tree-ssa.c (delete_tree_ssa): Clear var_ann's on duplicates.
3796         * tree-flow.h (referenced_vars_dup_list): External declaration.
3797
3798 2006-06-07  Fred Fish  <fnf@specifix.com>
3799
3800         * config/mips/t-elf (MULTILIB_MATCHES): Combine two entries
3801         into single entry.
3802
3803 2006-06-07  Paolo Bonzini  <bonzini@gnu.org>
3804
3805         PR target/27390
3806         * reg-stack.c (subst_stack_regs_pat): Reorder resetting of
3807         the imaginary and real parts of a clobbered register.
3808         Emit insn to set the imaginary part.
3809
3810 2006-06-06  Peter Lemieszewski  <lemie@us.ibm.com>
3811
3812         * config/s390/t-tpf (LIB2ADDEH): Include unwind-dw2-fde-glibc.c
3813         in lieu of unwind-dw2-fde.c.
3814
3815 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3816
3817         * config/i386/mingw32.h (GOMP_SELF_SPECS): Define.
3818
3819 2006-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3820
3821         PR target/27842
3822         * config/rs6000/altivec.md (UNSPEC_VSLW): Remove.
3823         ("altivec_vspltisw_v4sf", "altivec_vslw_v4sf"): Remove.
3824         ("mulv4sf3", "absv4sf3", "negv4sf3"): Adapt users to use
3825         V4SImode temporaries and operations instead.
3826
3827 2006-06-06  Joseph S. Myers  <joseph@codesourcery.com>
3828
3829         * config/mips/t-linux64 (tp-bit.c): Append to tp-bit.c, not
3830         dp-bit.c.
3831
3832 2006-06-06  Mike Stump  <mrs@apple.com>
3833
3834         * Makefile.in: Rename to htmldir to build_htmldir to avoid
3835         installing during build.
3836
3837 2006-06-06  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3838
3839         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): Change default
3840         value to 0.
3841         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
3842         * config/ia64/ia64.c (params.h): New header.
3843         (ia64_optimization_options): New function to adjust parameters.
3844         * config/ia64/ia64-protos.h (ia64_optimization_options): New prototype.
3845         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): New macro.
3846         * config/ia64/t-ia64 (ia64.o): Add dependence from params.h .
3847
3848 2006-06-05  Kazu Hirata  <kazu@codesourcery.com>
3849
3850         * stor-layout.c (debug_rli): Fix a typo in a debug message.
3851
3852 2006-06-05  Steve Ellcey  <sje@cup.hp.com>
3853
3854         PR target/27051
3855         * config/ia64/ia64.c (ia64_select_rtx_section): Check TARGET_NO_SDATA.
3856
3857 2006-06-05  Dorit Nuzman  <dorit@il.ibm.com>
3858             Victor Kaplansky  <victork@il.ibm.com>
3859
3860         PR tree-optimization/26360
3861         * tree-vectorizer.c (destroy_loop_vec_info): Remove (dead) pattern
3862         stmts.
3863
3864 2006-06-04  Roger Sayle  <roger@eyesopen.com>
3865             Andrew Pinski  <pinskia@physics.uc.edu>
3866
3867         PR middle-end/27382
3868         * c-common.c (c_common_truthvalue_conversion): Explicitly check
3869         for LABEL_DECL before calling DECL_WEAK.
3870
3871         PR c/27150
3872         * c-typeck.c (build_binary_op): Likewise, explicitly check for
3873         LABEL_DECL and PARM_DECL.
3874
3875 2006-06-05  Joseph S. Myers  <joseph@codesourcery.com>
3876
3877         PR c/25161
3878         PR c/27020
3879         * c-decl.c (grokdeclarator): Disallow variably modified types at
3880         file scope.  Avoid marking shared array type of constant size as
3881         VLA.
3882
3883 2006-06-04  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3884
3885         PR c++/27601
3886         * c-common.c (fold_offsetof_1): Handle static members.
3887
3888 2006-06-04 Eric Christopher <echristo@apple.com>
3889
3890         * stor-layout.c (start_record_layout): Initialize remaining_in_alignment.
3891         (debug_rli): Output value for remaining_in_alignment.
3892         (update_alignment_for_field): Unconditionalize
3893         ms_bitfield_layout_p code. Handle non-bitfield fields. Remove
3894         extra alignment code.
3895         (place_field): Don't realign if ms_bitfield_layout_p. Unconditionalize
3896         ms_bitfield_layout_p code. Rewrite handling of structure fields.
3897         * tree.h (record_layout_info_s): Remove prev_packed.
3898         * doc/extend.texi (ms_struct): Add documentation of format.
3899
3900 2006-06-04  Mark Shinwell  <shinwell@codesourcery.com>
3901
3902         * tree.h: Declare folding_initializer.
3903         * builtins.c (fold_builtin_constant_p): Give definite answer
3904         if folding inside an initializer.
3905         * fold-const.c: Define folding_initializer.
3906         (START_FOLD_INIT): Save and then set folding_initializer.
3907         (END_FOLD_INIT): Restore folding_initializer.
3908
3909 2006-06-04  Richard Guenther  <rguenther@suse.de>
3910
3911         PR tree-optimization/27039
3912         * fold-const.c (fold_comparison): Handle pointer comparison
3913         again for all comparison codes.  Compare offsets in signed
3914         size type.
3915         (fold_binary): Move code from here.
3916
3917 2006-06-03  Roger Sayle  <roger@eyesopen.com>
3918
3919         PR target/26223
3920         * config/i386/i386.c (construct_container): Split static issued_error
3921         flag into issued_sse_arg_error, issued_sse_ret_error and
3922         issued_x87_ret_error.  Issue a daignostic if the x86-64 ABI
3923         requires the use of x87 registers and the user explicitly
3924         specified the -mno-80387 command line option.
3925
3926 2006-06-02  Geoffrey Keating  <geoffk@apple.com>
3927
3928         * config/rs6000/host-darwin.c (sigaltstack): Protect prototype with
3929         HAVE_DECL_SIGALTSTACK.
3930         (MC_FLD): New.
3931         (segv_handler): Use MC_FLD.
3932         * configure.ac: Check for a sigaltstack declaration.
3933         Compute HAS_MCONTEXT_T_UNDERSCORES on Darwin.
3934         * configure: Regenerate.
3935         * config.in: Regenerate.
3936
3937 2006-06-03  J"orn Rennecke <joern.rennecke@st.com>
3938
3939         PR other/27850
3940         * Makefile.in (stmp-fixinc): Fix typo.
3941
3942 2006-06-02  Roger Sayle  <roger@eyesopen.com>
3943
3944         * fold-const.c (fold_unary) <CONJ_EXPR>: Ensure folded expressions
3945         are type correct.  Clean-up.
3946         <REALPART_EXPR>: Likewise.  Optimize creal(~z) as creal(z).
3947         <IMAGPART_EXPR>: Likewise.  Optimize cimag(~z) as -cimag(z).
3948
3949 2006-06-01  DJ Delorie  <dj@redhat.com>
3950
3951         * config/v850/v850.h (ASM_OUTPUT_ADDR_DIFF_ELT): Disabled the
3952         shift, as we've disabled the "switch" insn that needs it.
3953
3954 2006-06-01  Per Bothner  <bothner@bothner.com>
3955
3956         Suppress extra '#1 <built-in> or '#1 <command line>' on -dD output.
3957         * c-opts.c (finish_options): Use internal line 0 for <command-line>.
3958         * c-ppoutput.c (cb_define): Don't increment line 0.
3959
3960 2006-06-01  Pete Steinmetz  <steinmtz@us.ibm.com>
3961
3962         * doc/invoke.texi: Add cpu_type power6.
3963         * config.gcc: Add cpu_type power6.
3964         * config/rs6000/rs6000.c (rs6000_override_options): Alias power6
3965         to power5+ with Altivec.
3966         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power6.
3967         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add power6.
3968
3969 2006-05-30  Anatoly Sokolov <aesok@post.ru>
3970
3971         * config/avr/avr.h (SET_ASM_OP): Define.
3972
3973 2006-06-01  Kazu Hirata  <kazu@codesourcery.com>
3974
3975         * config/bfin/bfin.c: Fix comment typos.
3976
3977 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
3978
3979         PR 25453
3980         * doc/install.texi: Document --enable-bootstrap and
3981         --disable-bootstrap.
3982
3983 2006-06-01  Paolo Bonzini  <bonzini@gnu.org>
3984
3985         * doc/install.texi: Document that InfoZIP can replace jar.
3986
3987 2006-05-31  Roger Sayle  <roger@eyesopen.com>
3988
3989         * config/i386/i386.c (ix86_expand_fp_absneg_operator): When SSE
3990         isn't available, directly generate the simpler x87 patterns without
3991         the (use (const_int 0)).
3992         * config/i386/i386.md (*negsf2_1): Enable pre-reload if the SSE
3993         implementation isn't available.
3994         (*negdf2_1): Likewise.
3995         (*negxf2_1): XF mode negation is always done using the x87.
3996         (*abssf2_1, *absdf2_1, *absxf2_1): Likewise^3 for fabs.
3997
3998 2006-05-31  Roger Sayle  <roger@eyesopen.com>
3999
4000         * builtins.c (fold_builtin_cabs): Delete prototype.  Require an
4001         additional FNDECL argument.  Optimize cabs(-z) and cabs(~z) as
4002         cabs(z).
4003         (fold_builtin_decl) <BUILT_IN_CABS>: Update fold_builtin_cabs call.
4004
4005 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
4006
4007         * config/bfin/bfin-protos.h (bfin_hardware_loop): Declare.
4008         * config/bfin/bfin.c (basic-block.h): Include.
4009         (struct machine_function): New.
4010         (bfin_init_machine_status): New.
4011         (override_options): Initialize init_machine_status.
4012         (bfin_hardware_loop): New.
4013         (MAX_LOOP_DEPTH, MAX_LOOP_LENGTH): Define.
4014         (DEF_VEC_P (loop_info)): New.
4015         (DEF_VEC_ALLOC_P (loop_info,heap)): New.
4016         (struct loop_info): New.
4017         (loop_info): New typedef.
4018         (struct loop_work): New.
4019         (loop_work): New typedef.
4020         (DEF_VEC_O (loop_work)): New.
4021         (DEF_VEC_ALLOC_O (loop_work,heap)): New.
4022         (bfin_dump_loops): New.
4023         (bfin_bb_in_loop): New.
4024         (bfin_scan_loop): New.
4025         (bfin_optimize_loop): New.
4026         (bfin_reorg_loops): New.
4027         (bfin_reorg): Use bfin_reorg_loops.
4028         * config/bfin/bfin.h (FIRST_PSEUDO_REGISTER): Adjust for adding
4029         loop registers.
4030         (I_REGNO_P): Simplify.
4031         (DP_REGNO_P, DPREG_P): New macros.
4032         (REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
4033         REG_ALLOC_ORDER): Add LT0, LT1, LC0, LC1, LB0, LB1.
4034         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
4035         Add LT_REGS, LC_REGS, LB_REGS.
4036         (REG_CLASS_FROM_LETTER): Add 't' for LT_REGS, 'k' for LC_REGS,
4037         'l' for LB_REGS.
4038         (REGNO_REG_CLASS): Deal with loop registers.
4039         * config/bfin/bfin.md: Add comment for 't', 'k', 'l' constraint
4040         letters.
4041         (REG_LT0, REG_LT1, REG_LC0, REG_LC1, REG_LB0, REG_LB1):
4042         New constants for loop registers.
4043         (UNSPEC_LSETUP_END): New.
4044         (seq_insns): New define_attr. Set it for appropriate insns.
4045         (movsi_insn): Add alternatives for move from/to
4046         loop count registers.
4047         (doloop_end): New define_expand.
4048         (loop_end): New define_insn.
4049         (define_split for bad doloop_end): New.
4050         (lsetup_with_autoinit): New define_insn.
4051         (lsetup_without_autoinit): New define_insn.
4052         (rep_movsi, rep_movhi): Clobber LT1, LC1, LB1.
4053         * config/bfin/predicates.md (lc_register_operand): New.
4054         (lt_register_operand): New.
4055         (lb_register_operand): New.
4056         (nondp_register_operand): New.
4057         (nondp_reg_or_memory_operand): New.
4058         * doc/md.texi: Document Blackfin new 't', 'k', 'l' constraint letters.
4059
4060 2006-05-31  Jie Zhang  <jie.zhang@analog.com>
4061
4062         * config/bfin/bfin.c (bfin_delegitimize_address): New.
4063         (TARGET_DELEGITIMIZE_ADDRESS): Define.
4064
4065 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
4066
4067         * Makefile.in (CATALOGS): Add po/ prefix.
4068         * configure: Regenerated.
4069
4070 2006-05-31  Richard Earnshaw  <richard.earnshaw@arm.com>
4071
4072         PR target/27829
4073         * arm.c (arm_print_operand case 'S'): Validate that the operand is
4074         a shift operand before calling shift_op.  Avoid redundant call of
4075         shift_op.
4076
4077 2006-05-30  Naveen.H.S  <naveenh@kpitcummins.com>
4078             DJ Delorie  <dj@redhat.com>
4079
4080         * config/m32c/m32c.c (m32c_expand_insv): Check that the value
4081         we're inserting is a singlt-bit constant.
4082
4083 2006-05-30  Roger Sayle  <roger@eyesopen.com>
4084
4085         * simplify-rtx.c (simplify_binary_operation_1) <LSHIFTRT>: Cast
4086         width to HOST_WIDE_INT to avoid comparison warnings on some targets.
4087
4088 2006-05-30  Roger Sayle  <roger@eyesopen.com>
4089
4090         PR tree-optimization/23452
4091         * fold-const.c (fold_mult_zconjz): New subroutine of fold_binary,
4092         to optimize z * conj(z) as realpart(z)^2 + imagpart(z)^2.
4093         (fold_binary) <MULT_EXPR>: Call fold_mult_zconjz for integral
4094         complex values and with -ffast-math for FP complex values.
4095
4096 2006-05-30  Kazu Hirata  <kazu@codesourcery.com>
4097
4098         * c-common.h: Remove the prototype for yyparse.
4099         * rtl.h: Remove the prototype for init_loop.
4100
4101 2006-05-30  Andreas Krebbel  <krebbel1@de.ibm.com>
4102
4103         * cse.c (validate_canon_reg, cse_insn): Don't change insns without
4104         calling recog.
4105
4106 2006-05-30  Roger Sayle  <roger@eyesopen.com>
4107
4108         * simplify-rtx.c (simplify_binary_operation): Unfactor the shift
4109         and rotate cases.
4110         <LSHIFTRT>: Optimize (lshiftrt (clz X) C) as (eq X 0) where C is
4111         log2(GET_MODE_BITSIZE(X)) on targets with the appropriate semantics.
4112
4113 2006-05-30  Dirk Mueller  <dmueller@suse.de>
4114
4115         PR c/27273
4116         * c-common.c (convert_and_check): Only track TREE_CONSTANT_OVERFLOW
4117         for CONSTANT_CLASS_P expresisons.
4118
4119 2006-05-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4120
4121         PR c/27718
4122         * c-typeck.c (c_expr_sizeof_type): Handle invalid types.
4123
4124 2006-05-30  Zdenek Dvorak <dvorakz@suse.cz>
4125
4126         PR tree-optimization/27779
4127         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Use
4128         initial_condition instead of CHREC_LEFT.
4129
4130 2006-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
4131
4132         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Fix type of begin_label.
4133         * config/m32r/initfini.c (__do_global_dtors, __do_global_ctors):
4134         Make prototypes ISO C90.
4135
4136 2006-05-30  Mircea Namolaru  <namolaru@il.ibm.com>
4137             Leehod Baruch    <leehod.baruch@weizmann.ac.il>
4138
4139         * see.c (see_analyze_one_def): Correct check.
4140         (see_get_extension_data): Check if extension is parallel.
4141         (see_get_extension_reg): Likewise.
4142
4143 2006-05-30  Uros Bizjak  <uros@kss-loka.si>
4144
4145         PR target/27790
4146         * config/i386/i386.c (ix86_expand_int_vcond): Force cop0
4147         into register for (code == GTU).
4148
4149 2006-05-29  Roger Sayle  <roger@eyesopen.com>
4150
4151         PR tree-optimization/24964
4152         * simplify-rtx.c (simplify_binary_operation_1): Add function comment.
4153         <MULT>: Minor clean-up.  Don't convert x*-1.0 into -x if we honor
4154         signaling NaNs.  Optimize -x*-x as x*x for all float modes, and
4155         abs(x)*abs(x) as x*x for scalar floating point modes.
4156
4157 2006-05-29  Sebastian Pop  <pop@cri.ensmp.fr>
4158
4159         PR middle-end/27745
4160         * lambda-code.c (perfect_nestify): Don't copy statements
4161         in the inner loop: move them to the inner loop header.
4162
4163 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
4164
4165         PR 26237
4166         * c-tree.texi: Document OpenMP directives and clauses.
4167
4168 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
4169
4170         * varasm.c (globalize_decl): Fix indentation.
4171
4172 2006-05-29  Diego Novillo  <dnovillo@redhat.com>
4173
4174         PR 26242
4175         * doc/passes.texi: Add documentation for pass_vrp, pass_ipa_pta,
4176         pass_fre, pass_store_ccp, pass_copy_prop,
4177         pass_store_copy_prop, pass_merge_phi, pass_nrv,
4178         pass_return_slot, pass_object_size, pass_lim,
4179         pass_linear_transform, pass_empty_loop, pass_complete_unroll,
4180         pass_loop_prefetch and pass_stdarg.
4181
4182 2005-05-29  Bernd Schmidt  <bernd.schmidt@analog.com>
4183
4184         * config/bfin/bfin.opt (mfdpic): New option.
4185         * config/bfin/t-bfin-elf (EXTRA_PARTS): Add crtbeginS.o and crtendS.o.
4186         (EXTRA_MULTILIB_PARTS): Likewise.
4187         (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS): Use -fpic.
4188         (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Build one extra -mfdpic
4189         multilib.
4190         * config/bfin/elf.h (STARTFILE_SPEC): Don't link in crt0.o if -shared.
4191         (CRT_CALL_STATIC_FUNCTION): New.
4192         * config/bfin/uclinux.h (STARTFILE_SPEC): Don't link in crt0.o if
4193         -shared.
4194         (CRT_CALL_STATIC_FUNCTION): New.
4195         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Handle
4196         FD-PIC moves.
4197         (n_pregs_to_save): PIC register doesn't need to be saved with FD-PIC.
4198         (print_operand): Handle UNSPEC_MOVE_FDPIC and UNSPEC_FUNCDESC_GOT17M4.
4199         (initialize_trampoline): Changed to handle FD-PIC code generation.
4200         (expand_move): If TARGET_FDPIC, use emit_pic_move as needed.
4201         (bfin_expand_call): Generate FD-PIC calls if TARGET_FDPIC.
4202         (override_options): Disallow -mid-shared-library -mfdpic combination.
4203         Can't do unaligned ops if FD-PIC.
4204         Turn off flag_pic if trying to generate non-id-shared-library
4205         non-fdpic code, since it's not supported.
4206         (bfin_assemble_integer): New function.
4207         (TARGET_ASM_INTEGER): Define.
4208         * config/bfin/crti.s (__init, __fini): Save P3 on the stack if
4209         __BFIN_FDPIC__.
4210         * config/bfin/crtn.s: Restore them.
4211         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __BFIN_FDPIC__
4212         if TARGET_FDPIC.
4213         (DRIVER_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4214         LINK_GCC_C_SEQUENCE_SPEC, ASM_SPEC, LINK_SPEC): New macros.
4215         (FDPIC_FPTR_REGNO, FDPIC_REGNO, OUR_FDPIC_REG): New macros.
4216         (TRAMPOLINE_SIZE, TRAMPOLINE_TEMPLATE): Adjust for FD-PIC.
4217         (CONDITIONAL_REGISTER_USAGE): If TARGET_FDPIC, FDPIC_REGNO is
4218         call-used.
4219         (enum reg_class, REG_CLASS_CONTENTS, REG_CLASS_NAMES): Add
4220         FDPIC_REGS and FDPIC_FPTR_REGS.
4221         (REG_CLASS_FROM_LETTER): Use 'Z' and 'Y' for them.
4222         * config/bfin/bfin.md (UNSPEC_MOVE_FDPIC, UNSPEC_FUNCDESC_GOT17M4,
4223         UNSPEC_VOLATILE_LOAD_FUNCDESC): New constants.
4224         (load_funcdescsi): New pattern.
4225         (call_symbol_fdpic, sibcall_symbol_fdpic, call_value_symbol_fdpic,
4226         sibcall_value_symbol_fdpic, call_insn_fdpic, sibcall_insn_fdpic,
4227         call_value_insn_fdpic, sibcall_value_insn_fdpic): New patterns.
4228
4229 2006-05-29  Kazu Hirata  <kazu@codesourcery.com>
4230
4231         * gcse.c, rtlanal.c: Remove obsolete comments associated with
4232         loop.c.
4233
4234         * config/bfin/bfin.h (PARM_BOUNDRY, STACK_BOUNDRY): Remove.
4235
4236         * tree-flow.h: Remove the prototype for add_type_alias.
4237         * tree-ssa-alias.c (add_type_alias): Remove.
4238
4239 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
4240
4241         * cfgcleanup.c, cfgexpand.c, cgraphunit.c, config/arm/arm.c,
4242         config/fr30/fr30.md, config/i386/i386-interix.h,
4243         config/i386/i386.c, config/i386/i386.md, config/sh/superh.h,
4244         config/sh/superh64.h, config/v850/v850.c, df-core.c,
4245         df-problems.c, df.h, except.c, final.c, haifa-sched.c,
4246         lambda-code.c, libgcc2.h, omp-low.c, optabs.c, predict.c,
4247         reload.c, tree-flow.h, tree-outof-ssa.c, tree-ssa-dce.c,
4248         tree-ssa-pre.c, tree-vect-transform.c: Fix comment typos.
4249         Follow spelling conventions.
4250         * doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix typos.
4251         Follow spelling conventions.
4252
4253 2006-05-27  Richard Guenther  <rguenther@suse.de>
4254
4255         PR middle-end/27773
4256         * fold-const.c (fold_plusminus_mult_expr): Use fold_convert
4257         to produce a constant of value 1 of generic type.
4258
4259 2006-05-27  Dirk Mueller  <dmueller@suse.de>
4260
4261         * cgraphunit.c (decide_is_function_needed): Fix wrong
4262         PR reference.
4263
4264 2006-05-26  Ulrich Weigand  <uweigand@de.ibm.com>
4265
4266         PR rtl-optimization/27661
4267         * reload.c (find_reloads): When reloading a VOIDmode constant
4268         as address due to an EXTRA_MEMORY_CONSTRAINT or 'o' constraint,
4269         use Pmode as mode of the reload register.
4270
4271 2006-05-26  Eric Botcazou  <ebotcazou@adacore.com>
4272
4273         * doc/invoke.texi (Optimize Options): Document that -funit-at-a-time
4274         is enabled at -O and above.
4275
4276 2006-05-26  Steven Bosscher  <steven@gcc.gnu.org>
4277
4278         PR target/27571
4279         * config/alpha/alpha.c (alpha_does_function_need_gp): Skip jump
4280         table data.
4281
4282 2006-05-25  Mark Mitchell  <mark@codesourcery.com>
4283
4284         PR c++/20103
4285         * gimplify.c (gimplify_decl_expr): Do not call gimple_add_tmp_var
4286         for anonymous variables explicitly declared by front ends.
4287
4288 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4289
4290         * tree-ssa-structalias.h (PTR_IS_REF_ALL): New macro.
4291         (struct alias_info): Add new field ref_all_symbol_mem_tag.
4292         * tree-ssa-alias.c (compute_may_aliases): If the program contains
4293         ref-all pointers, run a finalization pass for them.
4294         (compute_flow_insensitive_aliasing): Skip ref-all pointers.
4295         (finalize_ref_all_pointers): New function.
4296         (is_escape_site): Return ESCAPE_BAD_CAST for conversion from a
4297         regular pointer type to a ref-all pointer type.
4298         (get_tmt_for): Return the special memory tag for ref-all pointers.
4299
4300 2006-05-25  Richard Guenther  <rguenther@suse.de>
4301
4302         PR middle-end/27743
4303         * fold-const.c (fold_binary): Do not look at the stripped
4304         op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.
4305
4306 2006-05-25  Eric Botcazou  <ebotcazou@adacore.com>
4307
4308         * tree-vrp.c (extract_range_from_assert): Set the range to VARYING
4309         for LT and GT if the computed range is effectively empty.
4310
4311 2006-05-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4312
4313         PR target/27627
4314         * pa/pa-modes.def: Use mips_single_format, mips_double_format and
4315         mips_quad_format formats instead of ieee_single_format,
4316         ieee_double_format and ieee_quad_format formats, respectively.
4317
4318 2006-05-24  Zdenek Dvorak <dvorakz@suse.cz>
4319
4320         PR tree-optimization/27639
4321         PR tree-optimization/26719
4322         * tree-vrp.c (adjust_range_with_scev): Use scev_direction and adjust
4323         call to scev_probably_wraps_p.
4324         * tree-ssa-loop-niter.c (compare_trees, convert_step_widening,
4325         used_in_pointer_arithmetic_p, convert_step): Removed.
4326         (nowrap_type_p): New function.
4327         (scev_probably_wraps_p): Rewritten.
4328         * tree-scalar-evolution.c (instantiate_parameters_1): Do not call
4329         chrec_convert if chrec_convert_aggressive might have been used.
4330         * tree-chrec.c (convert_affine_scev, chrec_convert_1,
4331         scev_direction): New functions.
4332         (chrec_convert): Changed to a wrapper over chrec_convert_1.
4333         * tree-ssa-loop-ivopts.c (idx_find_step): Use convert_affine_scev
4334         instead of convert_step.
4335         * tree-flow.h (scev_probably_wraps_p): Declaration changed.
4336         (convert_step): Declaration removed.
4337         (convert_affine_scev, nowrap_type_p, scev_direction): Declare.
4338
4339 2006-05-23  Kenneth Zadeck <zadeck@naturalbridge.com>
4340
4341         * df-core.c: Added to header comments.
4342         * df.h (df_ru_bb_info, df_rd_bb_info, df_lr_bb_info,
4343         df_ur_bb_info, df_urec_bb_info): Added comments.
4344         * df-problems (df_ref_bitmap, ru, rd, lr, ur,
4345         urec, ri problems): Fixed header comments.
4346         (df_ru_transfer_function): Fixed in-out set dyslexia when copying
4347         code from df_rd_transfer_function.
4348
4349 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
4350
4351         * libgcc2.c (LIBGCC2_MAX_UNITS_PER_WORD): New macro.
4352         (LIBGCC2_UNITS_PER_WORD): Use LIBGCC2_MAX_UNITS_PER_WORD rather than
4353         MIN_UNITS_PER_WORD to set the default.  Also use it in the guard.
4354
4355 2006-05-23  Joseph Myers  <joseph@codesourcery.com>
4356
4357         * expr.c (undefined_operand_subword_p): New.
4358         (emit_move_multi_word): Do not generate move from undefined bits
4359         of a paradoxical subreg.
4360
4361 2006-05-23  Richard Sandiford  <richard@codesourcery.com>
4362
4363         PR rtl-optimization/27736
4364         * combine.c (replaced_rhs_value): New variable.
4365         (combine_instructions): Set it.
4366         (distribute_notes): When distributing a note in replaced_rhs_insn,
4367         check whether the value was used in replaced_rhs_value.
4368
4369 2006-05-23  Andrew MacLeod  <amacleod@redhat.com>
4370
4371         PR c++/26757
4372         * tree-ssa-loop-im.c (determine_invariantness_stmt): Use
4373         add_referenced_var instead of add_referenced_tmp_var.
4374         * tree-complex.c (create_one_component_var): Use add_referenced_var.
4375         * tree-ssa-loop-manip.c (create_iv, tree_unroll_loop): Use
4376         add_referenced_var.
4377         * tree-tailcall.c (adjust_accumulator_values, adjust_return_value,
4378         tree_optimize_tail_calls_1): Use add_referenced_var.
4379         * tree-ssa-loop-ivopts.c (create_new_iv): Use add_referenced_var.
4380         * tree-ssa-alias.c (create_memory_tag, create_global_var, create_sft):
4381         Use add_referenced_var.
4382         * tree-if-conv.c (ifc_temp_var): Use add_referenced_var.
4383         * gimplify.c (force_gimple_operand): Use add_referenced_var.
4384         * tree-ssa-phiopt.c (conditional_replacement, abs_replacement):
4385         Use add_referenced_var.
4386         * tree-dfa.c (struct walk_state): Remove.
4387         (find_referenced_vars): Remove walk state and vars_found hash table.
4388         (make_rename_temp): Use add_referenced_var.
4389         (find_vars_r): Pass less parameters to add_referenced_var.
4390         (referenced_var_p): New.  Is var in referenced_var hash table.
4391         (referenced_var_insert): Assert var isn't already in hash table.
4392         (add_referenced_var): Don't need walk_state parameter.  Add var if it
4393         isn't already in the hash table.
4394         (add_referenced_tmp_var): Remove.
4395         (find_new_referenced_vars_1): Use add_referenced_var.
4396         * tree-ssa-pre.c (create_expression_by_pieces,
4397         insert_into_preds_of_block, insert_extra_phis, realify_fake_stores):
4398         Use add_referenced_var.
4399         * tree-vect-patterns.c (vect_pattern_recog_1): Use add_referenced_var.
4400         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
4401         lambda_loopnest_to_gcc_loopnest, perfect_nestify): Use
4402         add_referenced_var.
4403         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
4404         vect_create_data_ref_ptr, vect_create_destination_var,
4405         vect_init_vector, vect_build_loop_niters,
4406         vect_generate_tmps_on_preheader, vect_update_ivs_after_vectorizer,
4407         vect_gen_niters_for_prolog_loop, vect_create_cond_for_align_checks):
4408         Use add_referenced_var.
4409         * tree-outof-ssa.c (create_temp): Use add_referenced_var.
4410         * tree-flow.h (add_referenced_tmp_var): Remove prototype
4411         (add_referenced_var): Add prototype.
4412         * tree-ssa-structalias.c (get_constraint_for,
4413         intra_create_variable_infos): Use add_referenced_var.
4414
4415 2006-05-23  Alexandre Oliva  <aoliva@redhat.com>
4416
4417         * simplify-rtx.c (simplify_subreg): Adjust REG_OFFSET for
4418         big-endian paradoxical subregs.
4419         * var-tracking.c (struct micro_operation_def): Document that,
4420         for modify micro operations, insn is the subsequent instruction.
4421         (var_reg_delete_and_set, var_mem_delete_and_set): Split into...
4422         (var_reg_set, var_mem_set): ... new functions.
4423         (add_stores): Record subsequent insn.
4424         (compute_bb_dataflow): Use new functions for MO_USE.
4425         (emit_notes_in_bb): Use new functions for MO_USE.  Emit use
4426         notes after the insn, and modify notes before the insn known
4427         to be the subsequent one.
4428         (vt_initialize): Invert sorting of MO_CLOBBERs and MO_SETs.
4429
4430 2006-05-23  Kazu Hirata  <kazu@codesourcery.com>
4431
4432         PR target/27696
4433         * config/i386/i386.c (ix86_expand_builtin): Use
4434         gen_sse3_monitor64 for TARGET_64BIT.
4435
4436 2006-05-22  Kenneth Zadeck <zadeck@naturalbridge.com>
4437
4438         PR rtl-optimization/26375
4439         PR rtl-optimization/26855
4440         * df-problems (df_ru_bb_local_compute_process_def): Removed update
4441         to gen set.
4442         (df_ru_bb_local_compute): Reversed statements and removed bogus
4443         comment explaining why they should be in wrong order.
4444         (df_ru_dump, df_rd_dump): Enhanced debug info.
4445         * modulo-sched.c (sms_schedule, tree_opt_pass pass_sms): Enhanced
4446         debug info.
4447         * ddg.c (add_deps_for_def): Converted use of reaching defs to
4448         reaching uses and fixed space problem.
4449
4450 2006-05-23  Jan Hubicka  <jh@suse.cz>
4451
4452         * cgraphunit.c (decide_is_function_needed): Also nested functions
4453         and functions declared inline can be optimized out at -O0.
4454
4455 2006-05-22  Gerald Pfeifer  <gerald@pfeifer.com>
4456
4457         * doc/install.texi (Configuration): Remove reference to CrossGCC
4458         FAQ which was gone.
4459         (Building): Ditto.
4460
4461 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
4462
4463         PR target/27266
4464         * config/i386/i386.c (ix86_expand_branch): Jump to simple if
4465         ix86_compare_emitted is non-NULL.
4466
4467 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4468
4469         PR c++/27451
4470         * stmt.c (expand_asm_operands): Skip asm statement with erroneous
4471         clobbers.
4472
4473 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
4474
4475         PR rtl-optimization/25514
4476         * combine.c (replaced_rhs_insn): New variable.
4477         (combine_instructions): Set replaced_rhs_insn when trying to replace
4478         a SET_SRC with a REG_EQUAL note.
4479         (distribute_notes): Use replaced_rhs_insn when determining the live
4480         range of a REG_DEAD register.
4481
4482 2006-18-05  Joerg Wunsch <j.gnu@uriah.heep.sax.de>
4483             Anatoly Sokolov <aesok@post.ru>
4484
4485         * config/avr/avr.c (avr_mcu_types): Add support for attiny261,
4486         attiny461, attiny861, attiny25, attiny45, attiny85, attiny24,
4487         attiny44, attiny84, at90pwm2, at90pwm3, atmega165p, atmega169p,
4488         atmega164p, atmega324p, atmega644p, atmega644, atmega329,
4489         atmega3290, atmega649, atmega6490, atmega406, atmega640,
4490         atmega1280, atmega1281, at90can32, at90can64, at90usb646,
4491         at90usb647, at90usb1286 and at90usb1287 devices.
4492         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4493         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4494
4495 2006-05-22  Richard Sandiford  <richard@codesourcery.com>
4496
4497         * mklibgcc.in (lib2funcs): Remove _floatdidf from initial assignment.
4498
4499 2006-05-22  Richard Guenther  <rguenther@suse.de>
4500
4501         Revert
4502         2006-01-31  Richard Guenther  <rguenther@suse.de>
4503         Paolo Bonzini  <bonzini@gnu.org>
4504
4505         * doc/install.texi (--disable-libgcc-math): Document.
4506
4507 2006-05-22  Richard Guenther  <rguenther@suse.de>
4508
4509         Revert
4510         2006-01-31  Richard Guenther  <rguenther@suse.de>
4511
4512         * doc/invoke.texi (-msselibm): Document.
4513         * target.h (expand_library_builtin): New target hook.
4514         * builtins.c (expand_builtin): Use expand_library_builtin.
4515         (default_expand_library_builtin): New function.
4516         * gcc.c (LINK_GCC_MATH_SPEC): Define.
4517         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
4518         (link_gcc_math_spec): Declare.
4519         (static_specs): Add link_gcc_math_spec.
4520         * expr.h (default_expand_library_builtin): Declare.
4521         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
4522         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
4523         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
4524         * config/i386/i386.opt (msselibm): New target option.
4525         * config/i386/i386.c (ix86_builtin_function_variants): New array.
4526         (ix86_init_sse_abi_builtins): New function.
4527         (ix86_expand_library_builtin): Likewise.
4528         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
4529         (override_options): Handle error conditions wrt -msselibm.
4530         (ix86_builtins): Add function codes for SSE2 ABI builtins.
4531         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
4532         * doc/extend.texi (__builtin_sse2_*): Document new target specific
4533         builtins.
4534
4535 2006-05-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4536
4537         PR c/27420
4538         * c-common.c (self_promoting_args_p): Skip erroneous args.
4539
4540         PR c/26818
4541         * c-decl.c (finish_struct): Skip erroneous fields.
4542
4543 2006-05-22  Nick Clifton  <nickc@redhat.com>
4544
4545         * config/cris/cris.opt (march): Remove VarExists attribute.
4546         (max-stackframe=): Likewise.
4547
4548 2006-05-22  Kazu Hirata  <kazu@codesourcery.com>
4549
4550         * doc/rtl.texi: Fix a typo.
4551         * see.c: Fix comment typos.
4552
4553         * tree-ssa-structalias.h (alias_info): Remove num_references.
4554
4555 2006-05-21  Mike Stump  <mrs@apple.com>
4556
4557         * config/darwin-c.c (BAD): Conditionalize on OPT_Wpragmas.
4558         (BAD2): Add.
4559         (darwin_pragma_options): Use BAD instead.
4560         (darwin_pragma_unused): Likewise.
4561         (darwin_pragma_ms_struct): Likewise.
4562
4563 2006-05-21  David Edelsohn  <edelsohn@gnu.org>
4564
4565         * config/rs6000/rs6000.md (floatsitf2): Remove constraints.
4566
4567 2006-05-21  Kazu Hirata  <kazu@codesourcery.com>
4568
4569         PR rtl-optimization/27671
4570         * simplify-rtx.c (simplify_relational_operation_1): Fix
4571         simplifications of (eq/ne (xor x y) y) and
4572         (eq/ne (xor x y) x).
4573
4574         PR tree-optimization/26622.
4575         * fold-const.c (fold_ternary) <COND_EXPR>: Call fold_convert
4576         on arg1.
4577
4578 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
4579
4580         * tree-cfg.c: Prune whitespace.
4581         (debug_tree_cfg): Point to correct header containing the
4582         TDF_* defines.
4583
4584 2006-05-21  Bernhard Fischer  <aldot@gcc.gnu.org>
4585
4586         PR middle-end/25776
4587         * cgraphunit.c (verify_cgraph_node): Typo in error message.
4588
4589 2006-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
4590
4591         PR middle-end/25776
4592         * cgraphunit.c (cgraph_optimize): Don't run ipa passes if error
4593         or sorry count is non zero.
4594
4595 2006-05-20  Andreas Schwab  <schwab@suse.de>
4596
4597         * config/pa/pa-linux.h (STRING_ASM_OP): Prepend and append a tab.
4598
4599 2006-05-19  Daniel Berlin  <dberlin@dberlin.org>
4600             Kenneth Zadeck <zadeck@naturalbridge.com>
4601
4602         PR rtl-optimization/26855
4603
4604         * df-scan.c (mw_reg_pool, mw_link_pool): New allocation pools for
4605         multiword refs.
4606         (df_scan_alloc): Added code to properly handle multiword hard
4607         registers and add all_blocks parameter.
4608         (df_scan_free_internal, df_insn_refs_delete, df_ref_record): Added
4609         code to properly handle multiword hard registers.
4610         (df_rescan_blocks): Added code to remove deleted blocks from
4611         bitmap.
4612         (df_ref_create_structure, df_ref_record): Added code to properly
4613         handle subregs.
4614         (df_ref_record_1): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER
4615         and set DF_REF_PARTIAL.
4616         (df_defs_record): Changed DF_REF_CLOBBER into DF_REF_MUST_CLOBBER.
4617         (df_uses_record): Added DF_REF_PARTIAL for subreg.
4618         (df_scan_add_problem): Added flags parameter.
4619         (df_ref_create_structure): Changed switching structure.
4620         (df_bb_refs_record): Fixed case where duplicate artificial refs
4621         were created.  Changed location of flags.
4622         (df_record_entry_block_defs): Added code to make stack pointer
4623         live in entry block.  Refined cases where frame pointer is needed.
4624         Changed location of flags.
4625         (df_record_exit_block_uses, df_insn_refs_record): Changed location of flags.
4626         (df_set_state): Removed function.
4627         (df_grow_reg_info, df_reg_chain_unlink, df_ref_remove,
4628         df_insn_create_insn_record, df_insn_refs_delete,
4629         df_ref_create_structure): Formatting changes.
4630         * df-core.c (df_mvs_dump, df_set_flags, df_clear_flags,
4631         df_delete_basic_block): New function.
4632         (df_init): Changed location of flags.
4633         (df_add_problem): Added flags parameter and the way flags are
4634         processed.
4635         (df_insn_uid_debug, df_ref_debug, debug_df_defno, debug_df_ref,
4636         debug_df_chain): Improved debugging output.
4637         (df_insn_debug, df_insn_uid_debug): Added multiword reg support.
4638         (df_refs_chain_dump): Removed df parameter.
4639         (df_iterative_dataflow): Added consistency check.
4640         (df_prune_to_subcfg): Made public.
4641         (df_analyze_problem): Added blocks_to_init parameter and made
4642         public.
4643         (df_ref_record, df_bb_refs_record, df_mark_reg,
4644          df_record_exit_block_uses): Whitespace changes.
4645         (df_dump): Whitespace changes.
4646         * df.h: Some reordering to remove forward references.
4647         (df_ref_flags.DF_REF_MW_HARDREG, DF_REF_PARTIAL,
4648         DF_REF_MUST_CLOBBER, DF_REF_MAY_CLOBBER): New fields.
4649         (df_ref_flags.DF_REF_CLOBBER): Deleted field.
4650         (dataflow.flags): New field.
4651         (df.flag): Deleted field.
4652         (df_alloc_function): Added additional bitmap parameter.
4653         (df_dependent_problem_function): New type.
4654         (df_problem.changeable_flags): New field.
4655         (df_ref_flags.DF_REF_DIES_AFTER_THIS_USE, DF_SCAN_INITIAL,
4656         DF_SCAN_GLOBAL, DF_SCAN_POST_ALLOC, df_state): Removed.
4657         (df_mw_hardreg): New struct.
4658         (DF_INSN_UID_MWS): New macro.
4659         (df_refs_chain_dump, df_ref_debug, df_chain_dump): Removed df
4660         parameter.
4661         (df_add_problem, df_ru_add_problem, df_rd_add_problem,
4662         df_lr_add_problem, df_ur_add_problem, df_urec_add_problem,
4663         df_ri_add_problem, df_scan_add_problem): Added flags parameter.
4664         (df_set_state): Removed function.
4665         (df_set_flags, df_clear_flags, df_delete_basic_block) New functions.
4666         * df-problems.c (df_chain_dump): Removed df parameter.
4667         (df_ru_alloc, df_rd_alloc, df_lr_alloc, df_ur_alloc,
4668         df_urec_alloc, df_chain_alloc, df_ri_alloc): Added all blocks
4669         parameter.
4670         (df_ru_alloc, df_rd_alloc): Now resets all blocks.
4671         (df_rd_bb_local_compute_process_def, df_ur_bb_local_compute,
4672         df_chain_create_bb, df_create_unused_note, df_ri_bb_compute):
4673         Split DF_REF_CLOBBER into DF_REF_MAY_CLOBBER and
4674         DF_REF_MUST_CLOBBER cases.
4675         (df_ru_bb_local_compute_process_def,
4676         df_rd_bb_local_compute_process_def, df_lr_bb_local_compute,
4677         df_lr_bb_local_compute, df_ur_bb_local_compute,
4678         df_chain_create_bb): Made subreg aware.
4679         (df_ru_bb_local_compute, df_rd_bb_local_compute,
4680         df_lr_bb_local_compute, df_lr_bb_local_compute,
4681         df_chain_create_bb): Cleanup to use proper macros.
4682         (df_ur_local_finalize, df_urec_local_finalize): Removed unnecessary
4683         code to fixup bitvectors.
4684         (df_ri_alloc): Cleared lifetime.
4685         (df_ignore_stack_reg, df_kill_notes, df_set_notes_for_mw,
4686         df_create_unused_note): New function.
4687         (df_ri_bb_compute, df_ri_compute): Added code to create/update
4688         REG_DEAD and REG_UNUSED notes as well as register information.
4689         (df_ru_dump, df_rd_dump, df_lr_dump, df_ur_dump, df_urec_dump,
4690         df_chains_dump): Fixed crash if problem was never run.
4691         (df_ru_add_problem, df_rd_add_problem, df_lr_add_problem,
4692         df_ur_add_problem, df_urec_add_problem, df_chain_add_problem,
4693         df_ri_add_problem): Processes flags in uniform manner.
4694         (df_ru_alloc, df_ru_local_compute, df_ru_confluence_n, df_ru_free,
4695         df_ru_dump, df_rd_local_compute, df_rd_confluence_n, df_rd_free,
4696         df_rd_dump, df_urec_free_bb_info): Formatting changes.
4697         (df_ru_free_bb_info, df_ru_bb_local_compute, df_ru_dump,
4698         df_rd_free_bb_info, df_rd_bb_local_compute_process_def,
4699         df_rd_bb_local_compute, df_rd_dump, df_lr_free_bb_info,
4700         df_lr_bb_local_compute, df_lr_local_compute, df_ur_free_bb_info,
4701         df_ur_dump, df_urec_free_bb_info, df_urec_dump,
4702         df_chain_create_bb, df_ri_bb_compute): Whitespace changes.
4703         * modulo-sched.c (sms_schedule): Added flag parameter to calls.
4704         * see.c (see_initialize_data): Ditto.
4705         * final.c (rest_of_clean_state) Added regstack_completed.
4706         * rtl.h (regstack_completed): Ditto.
4707         * reg-stack.c (regstack_completed): Ditto.
4708
4709 2006-05-19  Mike Stump  <mrs@apple.com>
4710
4711         * c-tree.h (default_conversion): Remove.
4712         * c-common.h (default_conversion): Add.
4713
4714 2006-05-19  Zdenek Dvorak <dvorakz@suse.cz>
4715
4716         * tree-vrp.c (valid_value_p): New function.
4717         (adjust_range_with_scev): Fail if the value of bound is not
4718         simple.
4719
4720 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
4721
4722         * config/mips/linux-unwind.h: Include <asm/unistd.h>
4723         (mips_fallback_frame_state): Use syscall numbers to determine
4724         the appropriate li instruction for the current ABI.  Only use
4725         __NR_sigreturn for o32.
4726
4727 2006-05-19  Nicolas Setton  <setton@adacore.com>
4728
4729         * langhooks.h (struct lang_hooks): Add dwarf_name language hook.
4730         * langhooks.c (lhd_dwarf_name): New function.
4731         * langhooks-def.h (lhd_dwarf_name): Declare.
4732         (LANG_HOOKS_DWARF_NAME): New macro, defaults to lhd_dwarf_name.
4733         * dwarf2out.c (dwarf2_name): Use the dwarf_name language hook.
4734         * ada/misc.c (gnat_dwarf_name): New function.
4735         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
4736
4737 2006-05-19  Richard Sandiford  <richard@codesourcery.com>
4738
4739         * libgcc2.c (MIN_UNITS_PER_WORD): Move default definition from
4740         libgcc2.h.
4741         (LIBGCC2_UNITS_PER_WORD): Provide default definition, using old
4742         MIN_UNITS_PER_WORD logic from libgcc2.h.  Do nothing if
4743         LIBGCC2_UNITS_PER_WORD > MIN_UNITS_PER_WORD.
4744         * libgcc2.h (MIN_UNITS_PER_WORD): Remove definition from here.
4745         Use LIBGCC2_UNITS_PER_WORD rather than MIN_UNITS_PER_WORD to
4746         determine the size of Wtype, etc.
4747         * mklibgcc.in (LIB2_SIDITI_CONV_FUNCS): New argument.
4748         (swfloatfuncs): New variable.
4749         (dwfloatfuncs): Likewise.
4750         (lib2funcs): Remove floating-point conversion functions from
4751         initial assignment.  Use LIB2_SIDITI_CONV_FUNCS to determine
4752         the set of conversion routines needed.  Allow entries to specify
4753         an object name, filename and word size.  Update users accordingly.
4754         * Makefile.in (libgcc.mk): Pass LIB2_SIDITI_CONV_FUNCS.
4755         * config/mips/t-mips (LIB2_SIDITI_CONV_FUNCS): Define.
4756
4757         Revert:
4758
4759         2006-02-08  Roger Sayle  <roger@eyesopen.com>
4760
4761         PR target/22209
4762         * config/fixtfdi.c: New libgcc source file.
4763         * config/fixunstfdi.c: New source file.
4764         * config/floatditf.c: New source file.
4765         * config/floatunditf.c: New souce file.
4766         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
4767         files above instead of config/mips/_tilib.c.
4768         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
4769
4770 2006-05-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4771
4772         * pa/t-hpux-shlib (SHLIB_LINK): Remove `-lc'.
4773         * pa/pa-hpux11.h (LIB_SPEC): Update comment.
4774
4775 2006-05-18  Mike Stump  <mrs@apple.com>
4776
4777         Fix up vla, vm and [*] sematics.
4778
4779         PR c/18740
4780         PR c/7948
4781         PR c/25802
4782         PR c/27673
4783         * c-tree.h (struct c_arg_info): Add had_vla_unspec.
4784         (c_vla_unspec_p): Add.
4785         (c_vla_type_p): Add.
4786         * c-decl.c (struct c_scope): Add had_vla_unspec.
4787         (build_array_declarator): Add support for [*].
4788         (grokdeclarator): Likewise.
4789         (grokparms): Likewise.
4790         (get_parm_info): Likewise.
4791         * c-objc-common.c (c_vla_unspec_p): Likewise.
4792         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Likewise.
4793         * c-parser.c (c_parser_typeof_specifier): Evaluate arguments to
4794         typeof when argument is a variably modified type not inside sizeof or alignof.
4795         (c_parser_direct_declarator_inner): Propagate errors.
4796         (c_parser_sizeof_expression): Add support for [*].
4797         (c_parser_parms_declarator): Initialize had_vla_unspec.
4798         (c_parser_parms_list_declarator): Likewise.
4799         * c-typeck.c (c_vla_type_p): Add.
4800         (composite_type): Add support for vla compositing.
4801         (comptypes_internal): Add support for vla compatibility.
4802         (c_expr_sizeof_expr): Evaluate vla arguments.
4803         * tree.c (variably_modified_type_p): Update comment for [*].
4804
4805 2006-05-18  Michael Matz  <matz@suse.de>
4806
4807         PR target/27599
4808         * config.host: Make assignments to host_xmake_file cumulative.
4809         * config.host (*-darwin*): Test $host, not $target.
4810
4811 2006-05-12  Stuart Hastings  <stuart@apple.com>
4812
4813         * config/i386/i386.opt (-mstackrealign): New flag.
4814         * config/i386/i386.c (force_align_arg_pointer): New attribute.
4815         (ix86_handle_cconv_attribute): Emit error when
4816         force_align_arg_pointer attribute collides with too many regparms.
4817         (ix86_function_regparm): Limit regparms when used with
4818         force_align_arg_pointer attribute.  (ix86_internal_arg_pointer):
4819         Support stack-realigning prologue in non-main functions.  Emit
4820         warning for nested functions under -mstackrealign, emit error for
4821         nested functions with force_align_arg_pointer attribute.
4822         * doc/extend.texi (force_align_arg_pointer): Document it.
4823         * doc/invoke.texi (-mstackrealign): Document it.
4824
4825 2006-05-17  Kazu Hirata  <kazu@codesourcery.com>
4826
4827         PR rtl-optimization/27477
4828         * combine.c (try_combine): Don't split a parallel consisting
4829         of two sets into two individual sets if both sets reference
4830         cc0.
4831
4832 2006-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4833
4834         * config/arm/arm.opt (target_fpe_name): Remove VarExists.
4835         * config/rs6000/rs6000.opt (TARGET_NO_FP_IN_TOC): Likewise.
4836
4837         * doc/options.texi (VarExists): Updated.
4838
4839 2006-05-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4840
4841         * unwind-dw2.c: Add declarations for uw_update_context and
4842         uw_frame_state_for.
4843         * pa/hpux-unwind.h (pa_fallback_frame_state): When an export stub is
4844         detected, advance frame state and context once to skip over stub.
4845
4846 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
4847
4848         PR middle-end/20256
4849         PR middle-end/26435
4850         * tree-loop-linear.c (linear_transform_loops): Don't test perfect_nest_p.
4851         Call rewrite_into_loop_closed_ssa only when something changed.
4852         * lambda.h (gcc_loopnest_to_lambda_loopnest): Update declaration.
4853         * lambda-code.c (can_convert_to_perfect_nest): Declared.
4854         (gcc_loopnest_to_lambda_loopnest): Removed need_perfect_nest parameter.
4855         Test for perfect_nest_p here.  Fix formating.
4856         (replace_uses_equiv_to_x_with_y): Fix formating.
4857         (stmt_uses_op): Removed.
4858         (can_convert_to_perfect_nest): Removed loopivs parameter.
4859         Complete the test by checking the scalar dependences.
4860         (perfect_nestify): Remove the test for can_convert_to_perfect_nest.
4861         Fix formating.
4862
4863 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4864
4865         PR bootstrap/22541
4866         From Dan Kegel <dank@kegel.com>:
4867         * Makefile.in: Strip "dir/../" combinations from SYSTEM_INCLUDE_DIR.
4868
4869 2006-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4870
4871         * tree.c (variably_modified_type_p) <ARRAY_TYPE>: Return true
4872         if the element type is variably modified without recursing.
4873
4874 2006-05-17  Sebastian Pop  <pop@cri.ensmp.fr>
4875
4876         PR middle-end/27332
4877         * tree-loop-linear.c (try_interchange_loops): Test for
4878         no data dependences.
4879
4880 2006-05-17  Zdenek Dvorak <dvorakz@suse.cz>
4881
4882         PR tree-optimization/27548
4883         * tree-scalar-evolution.c (scev_const_prop): Do not prolong life
4884         range of ssa names that appear on abnormal edges.
4885         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Export.
4886         * tree-flow.h (contains_abnormal_ssa_name_p): Declare.
4887
4888 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4889
4890         PR middle-end/27620
4891         * expr.c (safe_from_p): Handle CONSTRUCTOR again.
4892
4893 2006-05-17  Jakub Jelinek  <jakub@redhat.com>
4894
4895         PR middle-end/27415
4896         * tree.h (OMP_PARALLEL_COMBINED): Define.
4897         * gimplify.c (struct gimplify_omp_ctx): Add is_combined_parallel field.
4898         (new_omp_context): Add is_combined_parallel argument.
4899         (gimplify_scan_omp_clauses): Add in_combined_parallel argument, adjust
4900         new_omp_context caller.
4901         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
4902         Adjust gimplify_scan_omp_clauses callers.
4903         (omp_is_private): Issue errors if iteration variable is firstprivate
4904         or reduction in the current context.
4905         * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED
4906         on combined parallel workshare constructs.
4907
4908 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4909
4910         * Makefile.in (GCC_OBJS): Replace options.o with gcc-options.o.
4911         (gcc-options.o): New rule.
4912
4913         * optc-gen.awk: Protect variables for gcc-options.o with
4914         #ifdef GCC_DRIVER/#endif.
4915
4916 2006-05-16  Daniel Berlin <dberlin@dberlin.org>
4917
4918         Fix PR tree-optimization/27373
4919         * tree-ssa-forwprop.c: (forward_propagate_addr_expr_1): Add argument.
4920          (forward_propagate_addr_expr): Update call.
4921
4922 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4923
4924         * doc/options.texi: Move the Negative option.
4925
4926 2006-05-16  Richard Guenther  <rguenther@suse.de>
4927
4928         PR tree-optimization/22303
4929         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle reads
4930         from STRING_CSTs.
4931         (evaluate_stmt): Fall back to fold_const_aggregate_ref, if
4932         ccp_fold did not simplify the statement.
4933
4934 2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4935
4936         PR driver/26885
4937         * Makefile.in (GCC_OBJS): New.
4938         (OBJS-common): Add opts-common.o.
4939         (xgcc$(exeext)): Replace gcc.o with $(GCC_OBJS).
4940         (cpp$(exeext)): Likewise.
4941         (gcc.o): Also depend on opts.h.
4942         (opts-common.o): New.
4943
4944         * common.opt (gcoff): Add Negative(gdwarf-2).
4945         (gdwarf-2): Add Negative(gstabs).
4946         (gstabs): Add Negative(gstabs+).
4947         (gstabs+): Add Negative(gvms).
4948         (gvms): Add Negative(gxcoff).
4949         (gxcoff): Add Negative(gxcoff+).
4950         (gxcoff+): Add Negative(gcoff).
4951         * config/i386/i386.opt (m32): Add Negative(m64).
4952         (m64): Add Negative(m32).
4953
4954         * doc/options.texi: Document the Negative option.
4955
4956         * gcc.c: Include "opts.h".
4957         (main): Call prune_options after expandargv.
4958
4959         * optc-gen.awk: Generate common declarations for all flag
4960         variables in options.c. Output the neg_index field.
4961
4962         * opts.c (find_opt): Moved to ...
4963         * opts-common.c: Here. New file.
4964
4965         * opts.h (cl_option): Add a neg_index field.
4966         (find_opt): New.
4967         (prune_options): Likewise.
4968
4969 2006-05-16  Jakub Jelinek  <jakub@redhat.com>
4970
4971         PR middle-end/27573
4972         * omp-low.c (expand_omp_parallel): Don't assert
4973         .OMP_DATA_I = &.OMP_DATA_O is the first statement in the block,
4974         instead search for it.
4975
4976         PR c/27499
4977         * gimplify.c (gimplify_omp_for): Remove assertion that iteration var
4978         is signed.
4979
4980 2006-05-16  Andreas Schwab  <schwab@suse.de>
4981
4982         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Add missing @end
4983         defmac.
4984
4985 2006-05-15  Roger Sayle  <roger@eyesopen.com>
4986
4987         PR target/26600
4988         * config/i386/i386.c (legitimate_constant_p) <CONST_DOUBLE>: TImode
4989         integer constants other than zero are only legitimate on TARGET_64BIT.
4990         <CONST_VECTOR> Only zero vectors are legitimate.
4991         (ix86_cannot_force_const_mem): Integral and vector constants can
4992         always be put in the constant pool.
4993
4994 2006-05-16  DJ Delorie  <dj@redhat.com>
4995
4996         * crtstuff.c (__dso_handle): Set section from
4997         TARGET_LBIGCC_SDATA_SECTION if defined.
4998         * doc/tm.texi (TARGET_LIBGCC_SDATA_SECTION): Document.
4999         * config/mips/mips.h (TARGET_LIBGCC_SDATA_SECTION): Define.
5000
5001 2006-05-16  Danny Smith  <dannysmith@users.sourceforge.net>
5002
5003         PR target/27599
5004         * config.host (i[34567]86-*-mingw*): Append i386/x-mingw32 to
5005         host_xmake_file.
5006
5007 2006-05-16  Ben Elliston  <bje@au.ibm.com>
5008
5009         * tree-cfg.c (split_edge_bb_loc): Remove unused variable `src'.
5010
5011 2006-05-15  Per Bothner  <per@bothner.com>
5012
5013         * tree.c: (last_annotated_node): Use source_locus typedef.
5014         This permits bootstrapping with --enable-mapped-location.
5015
5016 2006-05-15  Zdenek Dvorak <dvorakz@suse.cz>
5017
5018         PR tree-optimization/26830
5019         * tree-into-ssa.c (struct ssa_name_info): Add age field.
5020         (info_for_ssa_name, current_info_for_ssa_name_age,
5021         blocks_to_update): New variables.
5022         (get_ssa_name_ann): Use info_for_ssa_name instead of SSA_NAME_AUX.
5023         (clear_ssa_name_info, initialize_flags_in_bb,
5024         mark_block_for_update): New functions.
5025         (mark_def_sites, rewrite_stmt): Assert that blocks_to_update is NULL.
5026         (insert_phi_nodes_for, mark_use_interesting, prepare_block_for_update,
5027         prepare_def_site_for): Use mark_block_for_update.
5028         (mark_def_interesting): Assert that the processed block is marked in
5029         blocks_to_update.  Do not take blocks argument.
5030         (prepare_use_sites_for, prepare_names_to_update): Do not take blocks
5031         argument.
5032         (rewrite_update_init_block, rewrite_update_stmt): Only process
5033         blocks with statements to rewrite.
5034         (delete_update_ssa): Do not clear SSA_NAME_AUX.
5035         (update_ssa): Initialize and free blocks_to_update.  Do not
5036         clear flags on statements.  Do not use blocks bitmap.
5037         * tree.h (SSA_NAME_AUX): Removed.
5038         (struct tree_ssa_name): Removed aux field.
5039         * print-tree.c (print_node): Do not print SSA_NAME_AUX.
5040
5041 2006-05-15  Richard Guenther  <rguenther@suse.de>
5042
5043         PR tree-optimization/27603
5044         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
5045         Do computations in original type.
5046
5047 2006-05-15  Mircea Namolaru  <namolaru@il.ibm.com>
5048
5049         * see.c: Code style changes such as redundant paranthesis,
5050         redundant intialization of local variables etc.
5051         (see_main): Declared now as static.
5052         * doc/invoke.texi: Update that -fsee is not enabled by
5053         default at -O3.
5054
5055 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
5056
5057         * omp-low.c (check_omp_nesting_restrictions): New function.
5058         (scan_omp_1): Call it.
5059
5060         PR middle-end/27416
5061         * omp-low.c (build_outer_var_ref): If VAR is reference in orphaned
5062         construct, return *VAR.
5063
5064 2006-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5065
5066         PR rtl-optimization/27406
5067         * bt-load.c (migrate_btr_def): Skip the block having abnormal
5068         edges.
5069
5070 2006-05-14  Roger Sayle  <roger@eyesopen.com>
5071
5072         PR rtl-optimization/27538
5073         * combine.c (expand_compound_operation): Call gen_lowpart
5074         before calling simplify_shift_const.
5075
5076 2006-05-14  Roger Sayle  <roger@eyesopen.com>
5077
5078         PR rtl-optimization/22563
5079         * expmed.c (store_fixed_bit_field): When using AND and IOR to store
5080         a fixed width bitfield, always force the intermediates into psuedos.
5081
5082 2006-05-14  Bernhard Fischer  <aldot@gcc.gnu.org>
5083
5084         PR 27501
5085         * mkconfig.sh: Use operator = instead of == for test.
5086
5087 2006-05-13  Nick Clifton  <nickc@redhat.com>
5088
5089         * dwarf2out.c (dbx_reg_number): Check return value from
5090         LEAF_REG_REMAP and only use it if it is valid.
5091         (multiple_reg_loc_descriptor): Likewise.
5092
5093 2006-05-13  Richard Guenther  <rguenther@suse.de>
5094
5095         * config.host <i[34567]86-*-cygwin*>: Append i386/x-cygwin to
5096         host_xmake_file.
5097
5098 2006-05-13  Steven Bosscher  <stevenb.gcc@gmail.com>
5099
5100         * df-core.c (df_bb_regno_last_use_find): Do not look for dataflow
5101         information attached to non-INSNs such as NOTEs.
5102         (df_bb_regno_first_def_find, df_bb_regno_last_def_find): Likewise.
5103
5104 2006-05-12  Andreas Krebbel  <krebbel1@de.ibm.com>
5105
5106         * config/s390/s390.c (s390_const_ok_for_constraint_p): Disallow -4G for
5107         On contraint.
5108         * config/s390/s390.md: Adjust comment describing On constraint.
5109
5110 2006-05-11  Jan Hubicka  <jh@suse.cz>
5111
5112         * cgraphunit.c (decide_is_function_needed): Don't force always_inline
5113         to be output at -O0.
5114
5115 2006-05-11  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5116
5117         PR middle-end/27384
5118         * fold-const.c (size_binop): Move sanity check for arguments to
5119         the beginning of the function.
5120
5121         PR middle-end/27488
5122         * fold-const.c (tree_expr_nonnegative_p): Return early on invalid
5123         expression.
5124
5125 2006-05-11  Richard Guenther  <rguenther@suse.de>
5126
5127         PR middle-end/27529
5128         * fold-const.c (fold_unary): Handle intermediate conversion
5129         to a pointer type like intermediate conversion to an integer
5130         type in folding of (T1)(T2)var to var.
5131         Match the code to the comment in the final conversion for
5132         (T1)(T2)var to (T1)var regarding to type precision.  Rather
5133         than disallow T1 being of pointer type, assert that both T1
5134         and var are of pointer type or not.  Make sure not to fall
5135         over the frontends lazyness wrt array to pointer decay though.
5136
5137 2006-05-10  Richard Earnshaw  <rearnsha@arm.com>
5138
5139         * arm.c (arm_struct_value_rtx): Delete.
5140         (TARGET_STRUCT_VALUE_RTX): Use the default definition.
5141         (arm_init_cumulative_args): Always initialize nregs to zero.
5142
5143 2006-05-10  Richard Guenther  <rguenther@suse.de>
5144
5145         PR tree-optimization/27532
5146         * tree-object-size.c (plus_expr_object_size): Fix typo.
5147
5148 2006-05-10  Kazu Hirata  <kazu@codesourcery.com>
5149
5150         PR target/24949
5151         * config/m68k/m68k.md (ashrdi_const32, ashrdi_const32_mem,
5152         ashrdi_const, ashrdi3): Use a scratch register.
5153
5154 2006-05-10  Richard Guenther  <rguenther@suse.de>
5155
5156         PR tree-optimization/27302
5157         * fold-const.c (operand_equal_p): For two comparisons,
5158         try comparison of one comparison code swapped if that yields
5159         the same code.
5160
5161 2006-05-10  Ben Elliston  <bje@au.ibm.com>
5162
5163         * tree-pretty-print.c (pretty_print_string): No need to handle
5164         '\0' as a special character.
5165
5166         * tree.h: Include "hashtab.h".
5167         (iterative_hash_expr): Use hashval_t in its prototype.
5168         * Makefile.in (TREE_H): Add $(HASHTAB_H).
5169
5170 2006-05-09  Steve Ellcey  <sje@cup.hp.com>
5171
5172         PR bootstrap/26872
5173         * config.gcc (hppa[12]*-*-hpux10*): Set gas to yes.
5174         (hppa*64*-*-hpux11*): Ditto.
5175         (hppa[12]*-*-hpux11*): Ditto.
5176
5177 2006-05-09  David Edelsohn  <edelsohn@gnu.org>
5178
5179         PR target/26545
5180         * config/rs6000/aix41.h (TARGET_64BIT): Define.
5181
5182 2006-05-09  Michael Matz  <matz@suse.de>
5183
5184         * config.host (<i[34567]86-*-*, x86_64-*-*>): Set
5185         host_extra_gcc_objs and host_xmake_file.
5186         (<*-*-linux*>): Don't overwrite host_xmake_file.
5187         * gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
5188         * config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
5189         (host_detect_local_cpu): Declare.
5190         (CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
5191         * config/i386/i386.c (override_options): Handle -mtune=native
5192         as -mtune=generic.
5193         * config/i386/x-i386: New file.
5194         * config/i386/driver-i386.c: New file.
5195         * doc/invoke.texi (<i386 and x86-64 Options>): Describe
5196         cpu-type "native".
5197
5198 2006-05-09  Dirk Mueller  <dmueller@suse.de>
5199         Richard Guenther  <rguenther@suse.de>
5200
5201         PR middle-end/27498
5202         * fold-const.c (fold_read_from_constant_string): Relax check
5203         for matching types to matching modes.
5204
5205 2006-05-09  Zdenek Dvorak <dvorakz@suse.cz>
5206
5207         PR rtl-optimization/27335
5208         * loop-unroll.c (peel_loops_completely): Use loops->parray to walk the
5209         loops.
5210
5211 2006-05-08  Chao-ying Fu  <fu@mips.com>
5212             Richard Sandiford  <richard@codesourcery.com>
5213
5214         * config/mips/mips-ps-3d.md (scc_ps, s<code>_ps): New patterns.
5215         (vcondv2sf, sminv2sf3, smaxv2sf3): Likewise.
5216         * config/mips/mips.md (UNSPEC_SCC): New constant.
5217         * config/mips/mips-protos.h (mips_expand_vcondv2sf): Declare.
5218         * config/mips/mips.c (mips_reverse_fp_cond_p): New function.
5219         (mips_emit_compare): Use it.
5220         (mips_expand_vcondv2sf): New function.
5221
5222 2006-05-08  Daniel Berlin  <dberlin@dberlin.org>
5223
5224         Fix PR tree-optimization/27093
5225         * tree-ssa-alias.c (recalculate_used_alone): Mark variables for
5226         renaming when they become not-used_alone.
5227
5228 2006-05-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5229
5230         * hpux-unwind.h (pa_fallback_frame_state): Handle return parameter
5231         relocation and relocation stubs.
5232
5233 2006-05-08  Eric Christopher  <echristo@apple.com>
5234
5235         * unwind-dw2-fde-darwin.c (examine_objects): Only check data
5236         section for ppc.
5237
5238 2006-05-08  Jan Hubicka  <jh@suse.cz>
5239
5240         PR middle-end/24561
5241         * cgraphunit.c (decide_is_function_needed): When not optimizing even
5242         unused static functions are needed.
5243
5244 2006-05-08  Roger Sayle  <roger@eyesopen.com>
5245
5246         PR target/27158
5247         * reload.c (find_reloads_toplev): Only return the simplified SUBREG
5248         of a reg_equiv_constant if the result is a legitimate constant.
5249
5250 2006-05-08  Uros Bizjak  <uros@kss-loka.si>
5251
5252         PR target/27277
5253         * config/i386/i386.c (ix86_rtx_costs) [FLOAT_EXTEND]: For
5254         standard 80387 constants, raise the cost to prevent
5255         compress_float_constant() to generate load from memory.
5256
5257 2006-05-08  Kazu Hirata  <kazu@codesourcery.com>
5258
5259         * config/arm/constraints.md (c): Fix a typo.
5260
5261         * see.c, tree-flow-inline.h, tree-phinodes.c: Fix comment
5262         typos.
5263
5264 2006-05-07  H.J. Lu  <hongjiu.lu@intel.com>
5265
5266         PR target/24879
5267         * config/i386/pmmintrin.h (_mm_monitor): Remove macro. Use
5268         inline function.
5269         (_mm_mwait): Likewise.
5270
5271         * config/i386/sse.md (sse3_mwait): Replace "mwait\t%0, %1" with
5272         "mwait".
5273         (sse3_monitor): Make it 32bit only.
5274         (sse3_monitor64): New. 64bit monitor.
5275
5276 2006-05-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5277
5278         PR target/27421
5279         * config/i386/i386.c (classify_argument): Skip fields with invalid
5280         types.
5281
5282 2006-05-07  Richard Guenther  <rguenther@suse.de>
5283
5284         PR tree-optimization/27409
5285         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5286         Do not try to find zero-sized subvars.
5287
5288 2006-05-07  Richard Guenther  <rguenther@suse.de>
5289
5290         PR tree-optimization/27136
5291         * tree-ssa-loop-niter.c (get_val_for): Correct function
5292         comment, assert requirements.
5293         (loop_niter_by_eval): Stop processing if the iterated
5294         value did not simplify.
5295
5296 2006-05-07  Mircea Namolaru  <namolaru@il.ibm.com>
5297
5298         * opts.c (flag_see): remove its setting at -O3.
5299
5300 2006-05-07  Richard Earnshaw  <rearnsha@arm.com>
5301
5302         * genpeep.c (main): Make insn-peep.c depend on flags.h.
5303         * arm/constraints.md: New file.
5304         * arm.h (REG_CLASS_FROM_LETTER_P): Delete.
5305         (CONST_OK_FOR_ARM_LETTER, CONST_OK_FOR_THUMB_LETTER)
5306         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_ARM_LETTER)
5307         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT_STR_ARM)
5308         (CONSTRAINT_LEN, EXTRA_CONSTRAINT_THUMB, EXTRA_CONSTRAINT_STR)
5309         (EXTRA_MEMORY_CONSTRAINT): Likewise.
5310         * arm.md: Include constraints.md.
5311         (thumb_movsi_insn): Use satisfies_constraint_J.
5312         (movhi, movqi): Use satisfies_constraint_I.
5313
5314 2006-04-29 Anatoly Sokolov <aesok@post.ru>
5315
5316         * config/avr/avr.h (CRT_BINUTILS_SPECS): Fixed crt* file name
5317         for atmeg a645 device.
5318
5319 2006-05-06   Richard Guenther  <rguenther@suse.de>
5320
5321         PR tree-optimization/27151
5322         * tree-vect-transform.c (vectorizable_condition): Punt on
5323         values that have a different type than the condition.
5324
5325 2006-05-03  Aldy Hernandez  <aldyh@redhat.com>
5326
5327         PR/21391
5328         * c-parser.c (c_parser_cast_expression): Only insert casts into
5329         hash table if pointer.
5330         * function.c (used_types_insert_helper): Rename from
5331         used_types_insert.
5332         (used_types_insert): Call used_types_insert_helper.
5333         * function.h (used_types_insert): Accept only one argument.
5334
5335 2006-05-05  David Edelsohn  <edesohn@gnu.org>
5336
5337         * config/rs6000/rs6000.md: Mark all "X" constraints for clobbered
5338         scratch with output modifier.
5339
5340 2006-05-04  David Edelsohn  <edelsohn@gnu.org>
5341
5342         PR target/26481
5343         * config/rs6000/rs6000.md (stmsi_power): Mark clobber constraint
5344         with output modifier.
5345
5346 2006-05-04  Richard Sandiford  <richard@codesourcery.com>
5347
5348         PR target/26765
5349         * config/mips/mips.c (mips_symbolic_address_p): Return true
5350         for SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL, SYMBOL_TPREL,
5351         SYMBOL_GOTTPREL, and SYMBOL_TLS.
5352
5353 2006-05-04  Richard Guenther  <rguenther@suse.de>
5354
5355         PR tree-optimization/14287
5356         PR tree-optimization/14844
5357         PR tree-optimization/19792
5358         PR tree-optimization/21608
5359         PR tree-optimization/27090
5360         * tree-ssa-pre.c (try_combine_conversion): New function.
5361         (compute_avail): After constructing the value-handle
5362         expression, use try_combine_conversion to combine NOP_EXPRs
5363         with previous value-handle expressions and use the result if it
5364         is available.
5365
5366 2006-05-04  Joseph S. Myers  <joseph@codesourcery.com>
5367
5368         * config/mips/linux64.h (DWARF_OFFSET_SIZE): Remove.
5369
5370 2006-05-04  Jan Hubicka  <jh@suse.cz>
5371
5372         PR middle-end/25962
5373         * cgraphunit.c (verify_cgraph_node): Fix cgraph_hash testing.
5374
5375 2006-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
5376
5377         * config/bfin/predicates.md (const01_rtx): Tell generator programs
5378         that this only matches CONST_INTs.  All users changed to VOIDmode
5379         operands.
5380
5381         * config/bfin/bfin.c: Include "optabs.h".
5382         (bfin_rtx_costs): Some costs for vector operations, to allow combine
5383         to do more work.
5384         (enum bfin_builtins): Add a number of fractional and vector builtins.
5385         (bfin_init_builtins): Likewise.
5386         (struct builtin_description, bdesc_2arg, bdesc_1arg): New.
5387         (safe_vector_operand, bfin_expand_binop_builtin,
5388         bfin_expand_unop_builtin): New functions.
5389         (bfin_expand_builtin): Handle the new builtins.
5390         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5391         __ADSPBLACKFIN__.
5392
5393 2006-05-04  Leehod Baruch  <leehod@il.ibm.com>
5394
5395         * see.c: New file.
5396         * Makefile.in (OBJS-common): Add see.o.
5397         (see.o): Add dependencies.
5398         * common.opt (fsee): New flag for the see optimization was added.
5399         * opts.c (flag_see): Initialized.
5400         * passes.c (init_optimization_passes, pass_see): New pass.
5401         * rtl.h (see_main): Declaration as extern.
5402         * timevar.def (TV_SEE): New.
5403         * tree-pass.h (pass_see): Declaration as extern.
5404         * invoke.texi (-fsee): Document.
5405         * recog.c (validate_simplify_insn): New function.
5406         * recog.h (validate_simplify_insn): Declaration as extern.
5407         * df-problems.c (df_chain_dump): Check for NULL.
5408
5409 2006-05-04  Kenneth Zadeck <zadeck@naturalbridge.com>
5410             Daniel Berlin  <dberlin@dberlin.org>
5411
5412         * cfgrtl.c (insert_insn_bb_end_new): New function.
5413         * basic-block.h (insert_insn_bb_end_new): Declaration as extern.
5414
5415 2006-05-04  Leehod Baruch  <leehod.baruch@weizmann.ac.il>
5416
5417         * df.h (struct web_entry): Moved from web.c.
5418         (union_defs): Declaration as extern.
5419         (unionfind_root): Likewise.
5420         (unionfind_union): Likewise.
5421         * web.c (struct web_entry): Moved to df.h.
5422         (unionfind_root): Remove static declaration.
5423         (unionfind_union): Likewise.
5424         (union_defs): Likewise and generalize to use callback function.
5425         (web_main): Update arguments for union_defs function call.
5426
5427 2006-05-04  Richard Guenther  <rguenther@suse.de>
5428
5429         PR tree-optimization/26447
5430         * tree-ssa-pre.c (realify_fake_stores): For necessary loads
5431         produce SSA_NAME copies before the store stmt to avoid
5432         breaking exception handling.
5433
5434 2006-05-04  Jakub Jelinek  <jakub@redhat.com>
5435
5436         PR middle-end/27388
5437         * gimplify.c (omp_is_private): If var is shared in some outer context,
5438         return false instead of true.  Stop searching on parallel context
5439         boundary.
5440
5441 2006-05-03  Alexandre Oliva  <aoliva@redhat.com>
5442
5443         PR java/8260
5444         * coverage.c: Use get_gcov_unsigned_t() instead of
5445         unsigned_type_node all over.
5446
5447 2006-05-02  Andrew MacLeod  <amacleod@redhat.com>
5448
5449         PR tree-optimization/27381
5450         * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument,
5451         maintain the same immediate_use links.
5452         * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker
5453         node rather than segfaulting.
5454
5455 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
5456
5457         PR fortran/27395
5458         * gimplify.c (gimplify_scan_omp_clauses): Compare OMP_CLAUSE_CODE
5459         rather than TREE_CODE to OMP_CLAUSE_REDUCTION.  Set also GOVD_SEEN
5460         bit for OMP_CLAUSE_REDUCTION_PLACEHOLDER.
5461
5462 2006-05-02  Daniel Berlin  <dberlin@dberlin.org>
5463
5464         Fix PR tree-optimization/26626
5465         * tree-ssa-structalias.c (compute_points_to_sets): For now, solve
5466         always.
5467         * tree-ssa-operands.c (access_can_touch_variable): Allow
5468         typecasting through union pointers.
5469
5470 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
5471
5472         PR c++/26943
5473         * omp-low.c (maybe_lookup_decl_in_outer_ctx): New function.
5474         (build_outer_var_ref): Use maybe_lookup_decl_in_outer_ctx
5475         to find if var will be a global variable even in the nested context.
5476         (omp_copy_decl): Only check for global variable at the end, it might
5477         be overridden in outer contexts.
5478         (scan_sharing_clauses): For global variables don't create a field.
5479         (lower_rec_input_clauses): Do nothing for global shared variables.
5480         Emit a barrier at the end of ILIST if there were any decls in both
5481         firstprivate and lastprivate clauses.
5482         (lower_send_clauses): Do nothing for global variables except for
5483         COPYIN.
5484
5485 2006-05-02  Zdenek Dvorak <dvorakz@suse.cz>
5486
5487         * tree.c (unsigned_type_for, signed_type_for): Make sure a type
5488         of the correct signedness is returned.
5489
5490 2006-05-02  Jeff Law  <law@redhat.com>
5491
5492         PR tree-optimization/27364
5493         * tree-vrp.c (vrp_int_const_binop): Fix detection of overflow from
5494         multiply expressions.
5495
5496 2006-05-02  Tom Tromey  <tromey@redhat.com>
5497
5498         * tree-flow-inline.h (op_iter_init_phiuse): Fixed typo.
5499
5500 2006-05-02  Kazu Hirata  <kazu@codesourcery.com>
5501
5502         PR target/27387
5503         * arm.c (arm_output_mi_thunk): Use pc-relative addressing when
5504         -mthumb -fPIC are used.
5505
5506 2006-05-02  Stanislaw Skowronek  <skylark@linux-mips.org>
5507             Joshua Kinard  <kumba@gentoo.org>
5508
5509         PR target/25871
5510         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Avoid 32-bit moves
5511         with 64-bit pointers.
5512
5513 2006-05-02  Paul Brook  <paul@codesourcery.com>
5514
5515         * config/arm/arm.c (add_minipool_forward_ref): Check if insn
5516         and pool overlap.
5517         (create_fix_barrier): Check that a suitable barrier location is
5518         found.
5519         (arm_reorg): Include ftmp->address in allowable range of addresses.
5520
5521 2006-05-02  David Billinghurst <David.Billinghurst@riotinto.com>
5522
5523         PR ada/27366
5524         * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment
5525         on Cygwin.
5526
5527 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
5528
5529         PR middle-end/27337
5530         * gimplify.c (gimplify_scan_omp_clauses): Handle INDIRECT_REF
5531         around RESULT_DECL for result passed by reference.
5532         (gimplify_expr): Call omp_notice_variable when RESULT_DECL is seen.
5533         * omp-low.c (use_pointer_for_field): Don't look at
5534         DECL_HAS_VALUE_EXPR_P for RESULT_DECLs.
5535         (scan_omp_1): Call remap_decl on RESULT_DECLs.
5536         (lower_rec_input_clauses): Don't allocate VLA memory for the second
5537         time or var for passing by reference for
5538         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses.  Allow creation of
5539         TREE_ADDRESSABLE variables when passing by reference.
5540
5541         * omp-low.c (dump_omp_region): Fix output formatting.
5542
5543         PR middle-end/27328
5544         * omp-low.c (remove_exit_barrier): Handle NULL exit_bb.
5545         (expand_omp_parallel): Likewise.
5546         * tree-cfg.c (move_sese_region_to_fn): Likewise.
5547
5548         PR middle-end/27325
5549         * omp-low.c (lower_omp_sections): Call maybe_catch_exception
5550         on statement list containing also constructors and destructors.
5551         (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.
5552
5553         PR middle-end/27310
5554         * except.c (duplicate_eh_regions): Fix clearing of
5555         cfun->eh->region_array entries.
5556
5557 2006-05-01  DJ Delorie  <dj@redhat.com>
5558
5559         * configure.ac (gcc_cv_nm): Don't use an in-tree nm if
5560         build!=host.
5561         (gcc_cv_objdump): Likewise.
5562         * configure: Regenerated.
5563
5564 2006-05-01  Kazu Hirata  <kazu@codesourcery.com>
5565
5566         PR target/27374
5567         * config/arm/vfp.md (*arm_movdi_vfp): Correct the output
5568         templates for case 3 and 4.
5569
5570 2006-05-01  DJ Delorie  <dj@redhat.com>
5571
5572         * vec.c: Include bconfig.h when appropriate.
5573         * Makefile.in (build/vec.o): Adjust dependencies.
5574         * mkconfig.sh: Make sure config.h isn't used for build machine
5575         compiles.
5576
5577 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
5578
5579         * tree-into-ssa.c (phis_to_rewrite, blocks_with_phis_to_rewrite): New
5580         variables.
5581         (mark_phi_for_rewrite): New function.
5582         (insert_phi_nodes_for, mark_use_interesting): Call
5583         mark_phi_for_rewrite.
5584         (rewrite_update_phi_arguments): Traverse only phis in phis_to_rewrite.
5585         (update_ssa): Initialize and free phis_to_rewrite.
5586
5587 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
5588
5589         PR rtl-optimization/27291
5590         * loop-doloop.c (add_test, doloop_modify): Handle the case condition is
5591         folded to a constant.
5592
5593 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
5594
5595         PR tree-optimization/27283
5596         * tree-ssa-loop-ivopts.c (struct nfe_cache_elt): Store just trees,
5597         not whole # of iteration descriptions.
5598         (niter_for_exit): Return just # of iterations.  Fail if # of iterations
5599         uses abnormal ssa name.
5600         (niter_for_single_dom_exit): Ditto.
5601         (find_induction_variables, may_eliminate_iv): Expect niter_for_exit to
5602         return just the number of iterations.
5603
5604 2006-05-01  Zdenek Dvorak <dvorakz@suse.cz>
5605
5606         PR tree-optimization/27144
5607         * tree-ssa-loop-niter.c (derive_constant_upper_bound): New function.
5608         (record_estimate): Only record constant upper bound.
5609         (infer_loop_bounds_from_undefined): Call
5610         compute_estimated_nb_iterations just once.
5611         (proved_non_wrapping_p): Renamed to ...
5612         (n_of_executions_at_most): ... this.  Expect bound to be a constant.
5613         (convert_step_widening, scev_probably_wraps_p): Call
5614         n_of_executions_at_most instead of proved_non_wrapping_p.
5615         (substitute_in_loop_info): Do not replace values in bounds.
5616         * cfgloop.h (struct nb_iter_bound): Remove "additional" field.  Update
5617         comments.
5618
5619 2006-05-01  Richard Henderson  <rth@redhat.com>
5620
5621         PR c/27358
5622         * c-parser.c (c_parser_skip_to_end_of_block_or_statement): Move after
5623         c_parser_skip_to_pragma_eol.  Convert to switch statement.  Handle
5624         CPP_PRAGMA.
5625
5626 2006-05-01  Roger Sayle  <roger@eyesopen.com>
5627
5628         * c-typeck.c (parser_build_binary_op): Don't call the function
5629         unsigned_conversion_warning to spot operand/result type overflow.
5630         (build_binary_op): Instead, call convert_and_check instead of
5631         convert to report the problem when the operands are promoted.
5632         * c-common.c (unsigned_conversion_warning): Make static.
5633         * c-common.h (unsigned_conversion_warning): Delete prototype.
5634
5635 2006-05-01  Richard Guenther  <rguenther@suse.de>
5636
5637         PR tree-optimization/26726
5638         * tree-ssa-loop-ivopts.c (idx_find_step): Mark source of the
5639         problem ...
5640         (find_interesting_uses_address): ... we work around here
5641         by folding INDIRECT_REFs in the substituted base.
5642
5643 2006-05-01  Diego Novillo  <dnovillo@redhat.com>
5644
5645         * omp-low.c (dump_omp_region): Add newlines.
5646
5647 2006-04-30  Roger Sayle  <roger@eyesopen.com>
5648
5649         * common.opt (Woverflow): New command line option.
5650         * c-common.c (constant_expression_warning): Check warn_overflow.
5651         (overflow_waring): Pass OPT_Woverflow to warning.
5652         (unsigned_conversion_warning): Likewise.
5653         (convert_and_check): Likewise.
5654         * doc/invoke.texi: Document new command line option.
5655
5656 2006-04-30  David Edelsohn  <edelsohn@gnu.org>
5657
5658         * config/rs6000/rs6000.c (rs6000_override_options): Enable
5659         TARGET_NO_FP_IN_TOC for section anchors.
5660         (optimization_options): Enable section anchors for all
5661         non-"Objective" languages.
5662
5663 2006-04-28  Eric Christopher  <echristo@apple.com>
5664
5665         * config/darwin-c.c (darwin_ms_struct): Move this
5666         (darwin_set_default_type_attributes): and this...
5667         * config/darwin.c: ... here.
5668         * config/darwin.h (darwin_ms_struct): Declare.
5669
5670 2006-04-28  Andrew MacLeod  <amacleod@redhat.com>
5671
5672         * tree-ssa-dom.c (propagate_rhs_into_lhs): Fix assert clause.
5673
5674 2006-04-28  Roger Sayle  <roger@eyesopen.com>
5675
5676         PR c/25309
5677         * c-typeck.c (struct spelling): Make I an unsigned HOST_WIDE_INT.
5678         (push_array_bounds): Delete prototype.  Change BOUNDS argument to
5679         an unsigned HOST_WIDE_INT.
5680         (print_spelling): Use HOST_WIDE_INT_PRINT_UNSIGNED to output the
5681         array index.
5682         (really_start_incremental_init): No need to call convert because
5683         bitsize_zero_node is already of type bitsizetype.
5684         (push_init_level): Extract the value of constructor_index as an
5685         unsigned HOST_WIDE_INT quantity, using tree_low_cst.
5686         (process_init_element): Likewise.
5687
5688 2006-04-28  Joseph S. Myers  <joseph@codesourcery.com>
5689
5690         * gcc.c (process_command): Add program name to GCC_EXEC_PREFIX
5691         value before passing to make_relative_prefix.
5692
5693 2006-04-28  Alan Modra  <amodra@bigpond.net.au>
5694
5695         PR middle-end/27260
5696         * builtins.c (expand_builtin_memset): Expand val in original mode.
5697
5698 2006-04-27  Eric Christopher  <echristo@apple.com>
5699
5700         * target-def.h (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Bracket
5701         with #ifndef/#endif.
5702         * config/darwin-c.c (darwin_ms_struct): New.
5703         (darwin_pragma_ms_struct): Ditto.
5704         (darwin_set_default_type_attributes): Ditto.
5705         * config/darwin-protos.h (darwin_pragma_ms_struct): Declare.
5706         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS):
5707         Register ms_struct pragma.
5708         * config/i386/darwin.h (REGISTER_TARGET_PRAGMAS): Declare.
5709         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Ditto.
5710         * config/rs6000/rs6000.c (rs6000_set_default_type_attributes): Call
5711         darwin_set_default_type_attributes if TARGET_MACHO.
5712
5713 2006-04-27  Andrew MacLeod  <amacleod@redhat.com>
5714
5715         PR tree-optimization/26854
5716         * tree-vrp.c (remove_range_assertions): Use new Immuse iterator.
5717         * doc/tree-ssa.texi: Update immuse iterator documentation.
5718         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Use new iterator.
5719         * tree-ssa-dom.c (propagate_rhs_into_lhs): Use new iterator.
5720         * tree-flow-inline.h (end_safe_imm_use_traverse, end_safe_imm_use_p,
5721         first_safe_imm_use, next_safe_imm_use): Remove.
5722         (end_imm_use_stmt_p): New.  Check for end of immuse stmt traversal.
5723         (end_imm_use_stmt_traverse): New.  Terminate immuse stmt traversal.
5724         (move_use_after_head): New.  Helper function to sort immuses in a stmt.
5725         (link_use_stmts_after): New.  Link all immuses in a stmt consescutively.
5726         (first_imm_use_stmt): New.  Get first stmt in an immuse list.
5727         (next_imm_use_stmt): New.  Get next stmt in an immuse list.
5728         (first_imm_use_on_stmt): New.  Get first immuse on a stmt.
5729         (end_imm_use_on_stmt_p): New.  Check for end of immuses on a stmt.
5730         (next_imm_use_on_stmt): New.  Move to next immuse on a stmt.
5731         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Use new iterator.
5732         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use new iterator.
5733         (perfect_nestify): Use new iterator.
5734         * tree-vect-transform.c (vect_create_epilog_for_reduction): Use new
5735         iterator.
5736         * tree-flow.h (struct immediate_use_iterator_d): Add comments.
5737         (next_imm_name): New field in struct immediate_use_iterator_d.
5738         (FOR_EACH_IMM_USE_SAFE, BREAK_FROM_SAFE_IMM_USE): Remove.
5739         (FOR_EACH_IMM_USE_STMT, BREAK_FROM_IMM_USE_STMT,
5740         FOR_EACH_IMM_USE_ON_STMT): New immediate use iterator macros.
5741         * tree-cfg.c (replace_uses_by): Use new iterator.
5742         * tree-ssa-threadedge.c (lhs_of_dominating_assert): Use new iterator.
5743         * tree-ssa-operands.c (correct_use_link): Remove.
5744         (finalize_ssa_use_ops): No longer call correct_use_link.
5745
5746 2006-04-27  Stuart Hastings  <stuart@apple.com>
5747
5748         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): New.
5749         * config/t-darwin (crt3.o): Use it.
5750         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Remove
5751         'pmode', use Pmode instead of SImode for SYMBOL_REF.
5752         * config/rs6000/rs6000.md (call_indirect_nonlocal_sysv,
5753         call_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
5754         call_value_nonlocal_sysv): Suffix with the "P" macro for 32/64
5755         support.
5756
5757 2006-04-27  Roger Sayle  <roger@eyesopen.com>
5758
5759         * expmed.c (store_fixed_bit_field): If we're not optimizing for
5760         size, force the intermediate into a new pseudo rather instead of
5761         performing both a bitwise AND and a bitwise IOR in memory.
5762
5763 2006-04-27  Richard Guenther  <rguenther@suse.de>
5764
5765         PR rtl-optimization/26685
5766         * params.def (PARAM_MAX_CSE_INSNS): Correct typo that named
5767         this one "max-flow-memory-locations".
5768
5769 2006-04-27  Richard Guenther  <rguenther@suse.de>
5770
5771         PR tree-optimization/25148
5772         * tree-vrp.c (compare_values): Remove code dealing with
5773         comparisons against type min/max value.  Honour overflow
5774         and negative constants in code dealing with comparisons
5775         of plus and minus expressions.
5776         (value_inside_range): Use fold_binary with LE_EXPR and
5777         GE_EXPR rather than compare_values.
5778
5779 2006-04-27  Dirk Mueller  <dmueller@suse.de>
5780
5781         * config/i386/xmmintrin.h (_mm_shuffle_pi16): Declare
5782         prototype for SSE.
5783
5784 2006-04-26  Kenneth Zadeck <zadeck@naturalbridge.com>
5785
5786         * basic-block.h (safe_insert_insn_on_edge): Removed.
5787         * cfgrtl.c (mark_killed_regs, safe_insert_insn_on_edge): Removed.
5788
5789 2006-04-26  David Edelsohn  <edelsohn@gnu.org>
5790             Paolo Bonzini  <bonzini@gnu.org>
5791
5792         PR middle-end/27282
5793         * combine.c (simplify_and_const_int_1): Use gen_int_mode.
5794         (simplify_and_const_int): Same.
5795
5796 2006-04-26  Aldy Hernandez  <aldyh@redhat.com>
5797
5798         * tree-ssa-dse.c (dse_optimize_stmt): Remove unused variable USE.
5799
5800 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
5801
5802         PR c/26171
5803         * cgraph.c (cgraph_varpool_finalize_decl): Don't call
5804         cgraph_varpool_assemble_pending_decls if -fopenmp, unless
5805         cgraph_global_info_ready.
5806
5807         PR middle-end/26913
5808         * tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
5809
5810         PR c/25996
5811         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for if
5812         either decl or init is error_mark_node.
5813
5814         PR middle-end/25989
5815         * tree-flow.h (struct omp_region): Add sched_kind.
5816         * omp-low.c (expand_parallel_call): Use region->inner->sched_kind
5817         instead of extracting omp for data.
5818         (expand_omp_for): Save extracted sched_kind.
5819
5820 2006-04-25  Roger Sayle  <roger@eyesopen.com>
5821
5822         * expmed.c (store_bit_field): Also check whether the bitsize is
5823         valid for the machine's "insv" instruction before moving the
5824         target into a pseudo for use with the insv.
5825         * config/i386/predicates.md (const8_operand): New predicate.
5826         * config/i386/i386.md (extv, extzv, insv): Use the new
5827         const8_operand predicate where appropriate.
5828
5829 2006-04-25  DJ Delorie  <dj@redhat.com>
5830
5831         * doc/install.texi (Specific): Clarify that this is not a list of
5832         supported hosts or targets.
5833
5834 2006-04-25  Richard Sandiford  <richard@codesourcery.com>
5835
5836         PR rtl-optimization/26725
5837         * cfgrtl.c (rtl_redirect_edge_and_branch_force): Set the source
5838         block's BB_DIRTY flag.
5839
5840 2006-04-25  Geoffrey Keating  <geoffk@apple.com>
5841
5842         * dwarf2out.c (size_of_locs): Don't fill dw_loc_addr if there
5843         are no branches.
5844
5845         * dwarf2asm.c (dw2_asm_output_data): Don't generate RTL just
5846         to print an integer.
5847
5848 2006-04-25  David Edelsohn  <edelsohn@gnu.org>
5849
5850         * varasm.c (align_variable): New function.
5851         (get_block_for_decl): Apply align_variable to DECL before
5852         calculating section information.
5853         (assemble_variable): Split out alignment computation.
5854
5855 2006-04-25  Andreas Krebbel  <krebbel1@de.ibm.com>
5856
5857         * expmed.c (store_bit_field): Handle paradoxical subregs on big endian
5858         machines.
5859
5860 2006-04-25  Bernd Schmidt  <bernd.schmidt@analog.com>
5861
5862         * genmodes.c (make_vector_mode): Allow making VECTOR_MODE_INT of a
5863         MODE_PARTIAL_INT mode.
5864         * config/bfin/bfin-modes.def: Add V2PDI and V2SI.
5865         * config/bfin/bfin.c (print_operand): Add macflag and mac/msu modifiers
5866         for CONST_INTs.
5867         (hard_regno_mode_ok): V2PDImode is ok for accumulators.
5868         * config/bfin/bfin.h (CLASS_MAX_NREGS, HARD_REGNO_NREGS): Handle
5869         V2PDImode.
5870         * config/bfin/predicates.md (const01_operand, vec_shift_operand):
5871         New predicates.
5872         * config/bfin/bfin.md (UNSPEC_MUL_WITH_FLAG, UNSPEC_MAC_WITH_FLAG):
5873         New constants.
5874         (MACFLAG_NONE, MACFLAG_T, MACFLAG_FU, MACFLAG_TFU, MACFLAG_IS,
5875         MACFLAG_IU, MACFLAG_W32, MACFLAG_M, MACFLAG_S2RND, MACFLAG_ISS2,
5876         MACFLAG_IH): Likewise.
5877         (movstricthi_1): Renamed from "*movstricthi".
5878         (load_accumulator, load_accumulator_pair, movsi_insv, insv,
5879         ssaddsi3, sssubsi3, ssnegsi2, signbitssi2, smaxhi3, sminhi3,
5880         abshi2, neghi2, ssneghi2, signbitshi2, movhi_low2high,
5881         movhi_high2high, movhi_low2low, movhi_high2low, movhiv2hi_low,
5882         movhiv2hi_high, composev2hi, movv2hi_hi, movv2hi_hi_low,
5883         movv2hi_hi_high, ssaddhi3, sssubhi3, ssaddv2hi3, sssubv2hi3,
5884         addsubv2hi3, subaddv2hi3, ssaddsubv2hi3, sssubaddv2hi3,
5885         sublohiv2hi3, subhilov2hi3, sssublohiv2hi3, sssubhilov2hi3,
5886         addlohiv2hi3, addhilov2hi3, ssaddlohiv2hi3, ssaddhilov2hi3,
5887         mulhisi_ll, mulhisi_lh, mulhisi_hl, mulhisi_hh, ssnegv2hi2,
5888         ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3, packv2hi,
5889         flag_mulhi, flag_mulhisi_parts, flag_machi, flag_machi_acconly,
5890         flag_macinithi, flag_macinit1hi, flag_mulv2hi, flag_mulv2hi_parts,
5891         flag_macv2hi_parts, flag_macv2hi_parts_acconly,
5892         flag_macinitv2hi_parts, flag_macinit1v2hi_parts): New patterns.
5893
5894         * doc/rtl.texi (ss_ashift): Improve wording.
5895
5896 2006-04-24  Geoffrey Keating  <geoffk@apple.com>
5897
5898         * dwarf2out.c (verify_marks_clear): New.
5899         (prune_unused_types): Call verify_marks_clear initially, not
5900         prune_unmark_dies.
5901
5902 2006-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
5903
5904         * rtl.def (SS_ASHIFT, SS_NEG): New codes.
5905         * doc/rtl.texi: Document them.
5906         * simplify-rtx.c (simplify_unary_operation,
5907         simplify_binary_operation_1): Don't abort when we see them.
5908
5909 2006-04-24  Mark Mitchell  <mark@codesourcery.com>
5910
5911         Revert:
5912         2006-04-23  Mark Mitchell  <mark@codesourcery.com>
5913         * configure.ac: Completely disregard languages that are not
5914         enabled.
5915         * configure: Regenerated.
5916
5917 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
5918         Richard Guenther  <rguenther@suse.de>
5919
5920         PR tree-optimization/27236
5921         * tree-inline.c (copy_body_r): Make sure to copy
5922         TREE_THIS_VOLATILE flag.
5923
5924 2006-04-24  Richard Guenther  <rguenther@suse.de>
5925
5926         PR middle-end/26869
5927         * tree-complex.c (update_parameter_components): Don't handle
5928         unused parameters which have no default def.
5929
5930 2006-04-24  Andrew Pinski  <pinskia@gcc.gnu.org>
5931         Richard Guenther  <rguenther@suse.de>
5932
5933         PR tree-optimization/27218
5934         * tree-inline.c (expand_call_inline): Strip useless type
5935         conversions for the return slot address.
5936
5937 2006-04-24  Richard Guenther  <rguenther@suse.de>
5938
5939         * cfgloop.h (struct loops): Remove unused field array.  Reorder
5940         state after num.
5941         (LOOP_PREFETCH): Remove.
5942
5943 2006-04-24  Richard Guenther  <rguenther@suse.de>
5944
5945         PR tree-optimization/22525
5946         * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
5947         variable, adjust types of generated expressions.
5948
5949 2006-04-23  H.J. Lu  <hongjiu.lu@intel.com>
5950
5951         * Makefile.in (c-convert.o): Add dependency on $(TARGET_H)
5952         (tree-vect-patterns.o): Likewise.
5953         (jump.o): Likewise.
5954         (cselib.o): Likewise.
5955         (loop-doloop.o): Likewise.
5956         (regclass.o): Likewise.
5957         (reload1.o): Likewise.
5958         (explow.o): Replace target.h with $(TARGET_H).
5959         (ipa-prop.o): Likewise.
5960         (ipa-cp.o): Likewise.
5961         (ipa-inline.o): Likewise.
5962         (reorg.o): Likewise.
5963         (reg-stack.o): Likewise.
5964
5965 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5966
5967         * tree-tailcall.c (pass_tail_recursion): Use gate_tail_calls too.
5968
5969 2006-04-23  Mark Mitchell  <mark@codesourcery.com>
5970
5971         * print-tree.c (print_node): Print DECL_BIT_FIELD_TYPE.
5972
5973         * configure.ac: Completely disregard languages that are not
5974         enabled.
5975         * configure: Regenerated.
5976
5977         PR c++/26534
5978         * c-common.h (c_build_bitfield_integer_type): Declare.
5979         * c-decl.c (c_build_bitfield_integer_type): Move to ...
5980         * c-common.c (c_build_bitfield_integer_type): ... here.
5981
5982 2006-04-23  Roger Sayle  <roger@eyesopen.com>
5983
5984         PR target/21283
5985         * config/fr30/fr30.md (define_split): Avoid calling gen_lowpart on
5986         a SImode SUBREG of a floating point register after no_new_pseudos.
5987
5988 2006-04-23  Roger Sayle  <roger@eyesopen.com>
5989
5990         * config/fr30/fr30.md (addsi_small_int): Use REGNO_PTR_FRAME_P to
5991         identify potentially eliminable registers to additionally catch
5992         VIRTUAL_INCOMING_ARGS_REGNUM.
5993         (addsi3): Update the conditions on when to use addsi_small_int.
5994
5995 2006-04-23  Roger Sayle  <roger@eyesopen.com>
5996
5997         PR target/16641
5998         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Check REGNO for
5999         STACK_POINTER_RTX and FRAME_POINTER_RTX instead of comparing the
6000         rtx to stack_pointer_rtx or frame_pointer_rtx directly.
6001
6002 2006-04-23  Eric Botcazou  <ebotcazou@adacore.com>
6003
6004         * fold-const.c (range_predecessor): Use operand_equal_p
6005         as the predicate for equality.
6006         (range_successor): Likewise.
6007
6008 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
6009
6010         Revert:
6011         * config/soft-fp/op-common.h: Fix a typo.
6012
6013 2006-04-22  Frank Ch. Eigler  <fche@redhat.com>
6014
6015         PR libmudflap/26864
6016         * common.opt (flag_mudflap_threads): Overload flag_mudflap.
6017         * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
6018
6019 2006-04-22  Kazu Hirata  <kazu@codesourcery.com>
6020
6021         * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
6022         Fix comment typos.
6023         * doc/tm.texi: Fix a typo.
6024
6025 2006-04-21  Geoffrey Keating  <geoffk@apple.com>
6026
6027         * dwarf2out.c (struct die_struct): Document that die_sib makes
6028         a circular linked list.
6029         (FOR_EACH_CHILD): New.
6030         (reverse_die_lists): Delete.
6031         (reverse_all_dies): Delete.
6032         (add_dwarf_attr): Correct documentation.
6033         (remove_child_with_prev): New.
6034         (remove_child_TAG): Update for change to die_struct, use
6035         remove_child_with_prev.
6036         (add_child_die): Update for change to die_struct.
6037         (splice_child_die): Use remove_child_with_prev and add_child_die.
6038         (print_die): Use FOR_EACH_CHILD.
6039         (die_checksum): Likewise.
6040         (assign_symbol_names): Likewise.
6041         (output_location_lists): Likewise.
6042         (build_abbrev_table): Likewise.
6043         (calc_die_sizes): Likewise.
6044         (mark_dies): Likewise.
6045         (unmark_dies): Likewise.
6046         (unmark_all_dies): Likewise.
6047         (output_die): Likewise.
6048         (prune_unused_types_mark): Likewise.
6049         (prune_unused_types_walk): Likewise.
6050         (same_die_p): Update for change to die_struct.
6051         (break_out_includes): Likewise.
6052         (prune_unused_types_prune): Likewise.
6053         (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
6054         (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
6055         it's already clear.
6056         (dwarf2out_finish): Don't call reverse_all_dies.
6057
6058 2006-04-21  Eric Christopher  <echristo@apple.com>
6059
6060         * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
6061         in comments and function names.
6062
6063 2006-04-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6064
6065         PR c/25875
6066         * c-typeck.c (digest_init): Robustify.
6067
6068         * c-typeck.c (pop_init_level): Simplify.
6069
6070 2006-04-21  Steve Ellcey  <sje@cup.hp.com>
6071
6072         * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
6073
6074 2006-04-21  Paul Brook  <paul@codesourcery.com>
6075
6076         * config/arm/arm.c (arm_override_options): Error on iWMMXt and
6077         hardware floating point.
6078
6079 2006-04-21  David Edelsohn  <edelsohn@gnu.org>
6080
6081         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
6082         NON_FLOAT_REGS.
6083
6084 2006-04-21  Nick Clifton  <nickc@redhat.com>
6085
6086         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
6087         OPT_EXTRA_PARTS.
6088
6089 2006-04-21  Alan Modra  <amodra@bigpond.net.au>
6090
6091         PR target/27230
6092         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
6093         C++ lang type in traceback table for Objective-C++.
6094
6095         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
6096
6097 2006-04-20  H.J. Lu  <hongjiu.lu@intel.com>
6098
6099         * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
6100
6101 2006-04-20  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6102
6103         PR mudflap/26789
6104         * tree-mudflap.c (mudflap_finish_file): Skip function when there
6105         were errors.  Remove check for erroneous objects.
6106
6107 2006-04-20  Jeff Law  <law@redhat.com>
6108
6109         PR tree-optimization/26854
6110         * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
6111         checking for zero or one use.
6112         * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
6113         * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
6114         * tree-ssa-reassoc.c (negate_value): Similarly.
6115         (reassociate_bb): Similarly.
6116
6117 2006-04-20  Jakub Jelinek  <jakub@redhat.com>
6118
6119         * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
6120         TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
6121         than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
6122
6123 2006-04-20  Alan Modra  <amodra@bigpond.net.au>
6124
6125         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
6126         fp regs if the last fp arg doesn't fit in regs.
6127
6128 2006-04-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6129
6130         PR target/27182
6131         * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
6132         that the last insn has the REG_INC note.
6133
6134 2006-04-19  Carlos O'Donell  <carlos@codesourcery.com>
6135             Nathan Sidwell  <nathan@codesourcery.com>
6136
6137         PR c/26774
6138         * stor-layout.c (update_alignment_for_field): Do not align
6139         ERROR_MARK nodes.
6140         (place_union_field): Place union field at the start of the union.
6141         (place_field): Move ERROR_MARK check later, and use the current
6142         allocation position to maintain monotonicity.
6143
6144 2006-04-19  Zdenek Dvorak <dvorakz@suse.cz>
6145
6146         * dominance.c: Include timevar.h.
6147         (calculate_dominance_info): Use TV_DOMINANCE.
6148         * timevar.def (TV_DOMINANCE): New timevar.
6149         * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
6150
6151 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
6152
6153         PR rtl-optimization/14261
6154         * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
6155         move would be an INSV insn.
6156         (noce_process_if_block): Don't optimize if the destination is a
6157         ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
6158
6159 2006-04-19  Andreas Krebbel  <krebbel1@de.ibm.com>
6160
6161         * config/s390/s390.md: Add comments with the instructions emitted
6162         by an insn pattern if macros are used.
6163
6164 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
6165
6166         PR rtl-optimization/26026
6167         * fold-const.c (fold_binary): Optimize div and mod where the divisor
6168         is a known power of two shifted left a variable amount.
6169
6170 2006-04-18  Geoffrey Keating  <geoffk@apple.com>
6171
6172         * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
6173         to hash table twice when the debug_str section has SECTION_MERGE.
6174
6175 2006-04-18  Joseph S. Myers  <joseph@codesourcery.com>
6176
6177         * config/soft-fp: New directory.  From glibc.
6178         * config/soft-fp/t-softfp: New.
6179         * config/soft-fp/README: New.
6180         * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
6181         * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
6182         (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
6183         (LIBGCC_DEPS): Add $(SFP_MACHINE).
6184         * config.gcc: Use rs6000/t-fprules-fpbit or
6185         rs6000/t-fprules-softfp and soft-fp/t-softfp together with
6186         rs6000/t-fprules.
6187         * config/rs6000/sfp-machine.h: New.  Based on glibc.
6188         * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
6189         New.
6190         * config/rs6000/t-fprules: Remove fp-bit rules.
6191         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
6192         * config/rs6000/t-linux64: Likewise.  Remove duplicates from
6193         LIB2FUNCS_EXTRA.  Remove fp-bit rules.
6194         (softfp_wrap_start, softfp_wrap_end): New.
6195
6196 2006-04-18  DJ Delorie  <dj@redhat.com>
6197
6198         * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
6199
6200 2006-04-18  Devang Patel  <dpatel@apple.com>
6201
6202         * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
6203
6204 2006-04-18  Nick Clifton  <nickc@redhat.com>
6205
6206         * config/sh/t-symbian: Add rule to build sh-c.o
6207         * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
6208         of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
6209         (sh_symbian_encode_section_info): Likewise.
6210
6211 2006-04-18  Andreas Krebbel  <krebbel1@de.ibm.com>
6212
6213         * builtins.c (expand_builtin_strcmp): Cover label definition of
6214         do_libcall with HAVE_cmpstrnsi.
6215
6216 2006-04-18  Kazu Hirata  <kazu@codesourcery.com>
6217
6218         * function.c (temp_slots_at_level, max_slot_level): Use VEC
6219         instead of VARRAY.
6220         * function.h (temp_slot_p): New.
6221         (function): Change the type of x_used_temp_slots to
6222         VEC(temp_slot_p,gc) *.
6223
6224 2006-04-18  Nick Clifton  <nickc@redhat.com>
6225
6226         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
6227         flag_strength_reduce.
6228
6229         * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
6230
6231 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
6232
6233         PR target/27117
6234
6235         Partial revert of revision 112637
6236         2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
6237                     Dale Johannesen  <dalej@apple.com>
6238
6239         PR target/19653
6240         * regclass.c (struct reg_pref): Update documentation.
6241         (regclass): Set prefclass to NO_REGS if memory is the best option.
6242         (record_reg_classes): Cope with a prefclass set to NO_REGS.
6243
6244 2006-04-18  Paolo Bonzini  <bonzini@gnu.org>
6245
6246         PR tree-optimization/26821
6247         * tree-ssa-math-opts.c (get_constant_one): New.
6248         (insert_reciprocals): Use it.
6249
6250 2006-04-17  Geoffrey Keating  <geoffk@apple.com>
6251
6252         * dwarf2out.c (free_AT): Delete.
6253         (remove_AT): Update string ref counts.
6254         (remove_child_TAG): Don't call free_die.
6255         (free_die): Delete.
6256         (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
6257         or DW_TAG_GNU_EINCL.
6258         (prune_unused_types_walk_attribs): Reset string refcounts.
6259         (prune_unused_types_update_strings): New.
6260         (prune_unused_types_prune): Don't make unnecessary stores.  Don't
6261         call free_die.  Do call prune_unused_types_update_strings.
6262         (prune_unused_types): Empty debug_str_hash.
6263
6264 2006-04-17  Roger Sayle  <roger@eyesopen.com>
6265
6266         * expr.c (expand_assignment): Optimize away no-op moves where the
6267         source and destination are equal and have no side-effects.
6268
6269 2006-04-17  Richard Guenther  <rguenther@suse.de>
6270
6271         PR target/26826
6272         * reload.c (push_reload): Guard calls to get_secondary_mem
6273         for memory subregs.
6274
6275 2006-04-16  Kazu Hirata  <kazu@codesourcery.com>
6276
6277         * alias.c (reg_base_value, old_reg_base_value): Change the
6278         type to VEC(rtx,gc) *.
6279         (REG_BASE_VALUE, find_base_value, record_set,
6280         init_alias_analysis): Use VEC instead of VARRAY.
6281
6282         * alias.c (alias_sets): Change the type to
6283         VEC(alias_set_entry,gc) *.
6284         (get_alias_set_entry, new_alias_set, record_alias_subset): Use
6285         VEC instead of VARRAY.
6286         (last_alias_set): Remove.
6287
6288         * cgraph.h (cgraph_edge_p): New.
6289         Update the prototype of cgraph_function_versioning.
6290         * cgraphunit.c (cgraph_copy_node_for_versioning,
6291         cgraph_function_versioning): Use VEC instead of VARRAY.
6292         * ipa-cp.c (ipcp_insert_stage): Likewise.
6293
6294 2006-04-16  Roger Sayle  <roger@eyesopen.com>
6295
6296         PR target/26961
6297         * fold-const.c (fold_ternary): When converting "A ? B : C" into either
6298         "A op B" or "A op C", we may need to convert A to the type of B and C.
6299
6300 2006-04-16  Adam Nemet  <anemet@caviumnetworks.com>
6301
6302         * target.h (struct gcc_target): Add mode_rep_extended.
6303         * rtlanal.c (num_sign_bit_copies_in_rep): New global.
6304         (init_num_sign_bit_copies_in_rep): Initialize it using
6305         mode_rep_extended.
6306         (truncate_to_mode): Use it.
6307         (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
6308         * targhooks.h (default_mode_rep_extended): Declare it.
6309         * targhooks.c (default_mode_rep_extended): Define it.
6310         * target-def.h (TARGET_MODE_REP_EXTENDED): New macro.  Default to
6311         default_mode_rep_extended.
6312         (TARGET_INITIALIZER): Include it.
6313         * doc/tm.texi (Misc): Document it.
6314         * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
6315         (mips_truncated_to_mode): New function.
6316
6317 2006-04-16  Roger Sayle  <roger@eyesopen.com>
6318
6319         PR middle-end/25474
6320         * expr.c (compress_float_constant): Copy the narrow constant into
6321         a new pseudo before extending it to its final width.
6322
6323 2006-04-16  Roger Sayle  <roger@eyesopen.com>
6324             Andrew Pinski  <pinskia@gcc.gnu.org>
6325             Dale Johannesen  <dalej@apple.com>
6326
6327         PR target/24076
6328         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
6329         special case code to implement V8HImode and V16QImode with SSE2.
6330
6331 2006-04-15  Roger Sayle  <roger@eyesopen.com>
6332
6333         * config/i386/i386.c (ix86_va_start): Ensure all integer constant
6334         trees are constructed with a suitable tree type.
6335
6336 2006-04-15  Roger Sayle  <roger@eyesopen.com>
6337
6338         * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
6339         (integer_onep): Likewise.
6340         (integer_all_onesp): Likewise.
6341         (integer_pow2p): Likewise.
6342         (integer_nonzerop): Likewise.
6343         (real_zerop): Likewise.
6344         (real_onep): Likewise.
6345         (real_twop): Likewise.
6346         (real_minus_onep): Likewise.
6347         (int_size_in_bytes): Likewise.
6348         (host_integerp): Likewise.
6349
6350 2006-04-15  Kazu Hirata  <kazu@codesourcery.com>
6351
6352         * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
6353         jump.c, mips-tfile.c, omp-low.c, sched-int.h,
6354         tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
6355
6356         * tree-ssa-structalias.h (alias_info): Remove num_references.
6357
6358 2006-04-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6359
6360         * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
6361         (output_bvb patterns): Likewise.
6362         * pa.c (output_bb): Use 'bb' insn for long branch case.
6363         (output_bvb): Likewise use '{bvb|bb}' for long branch case.
6364         (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
6365         1.  Correct length operand for alternatives 1 and 2.
6366         (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
6367         1, 2 and 3.  Correct length operand for alternatives 1, 2 and 3.
6368
6369 2006-04-14  Roger Sayle  <roger@eyesopen.com>
6370
6371         * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
6372         is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
6373         were accidentally reverted by r112959.
6374
6375 2006-04-15  Jakub Jelinek  <jakub@redhat.com>
6376
6377         PR middle-end/26823
6378         * except.h (eh_region_outermost): New prototype.
6379         * except.c (eh_region_outermost): New function.
6380         * tree-cfg.c (find_outermost_region_in_block): Use it.
6381
6382 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
6383
6384         * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
6385         of VARRAY.
6386         * reload1.c (reg_equiv_memory_loc_varray): Rename to
6387         reg_equiv_memory_loc_vec.  Change the type to VEC(rtx,gc) *.
6388         (init_reload, reload): Use VEC instead of VARRAY.
6389         * reload.h: Update the prototype for
6390         reg_equiv_memory_loc_varray.
6391
6392 2006-04-14  Alexey Starovoytov  <alexey.starovoytov@sun.com>
6393             Eric Botcazou  <ebotcazou@libertysurf.fr>
6394
6395         * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
6396         register save area.
6397
6398 2005-04-13  Uros Bizjak  <uros@kss-loka.si>
6399
6400         PR middle-end/27134
6401         * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
6402         to expand fallback builtin function call.
6403
6404 2006-04-14  Alan Modra  <amodra@bigpond.net.au>
6405
6406         PR middle-end/27095
6407         * builtins.c: (expand_builtin_memset): Stabilize args before expansion
6408         and emit libcall here in case the builtin fails.
6409         (expand_builtin_strcmp): Always emit the libcall here on failure.
6410
6411 2006-04-14  Kazu Hirata  <kazu@codesourcery.com>
6412
6413         * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
6414         * flow.c (reg_n_info): Change the type to
6415         VEC(reg_info_p,heap) *.
6416         * regclass.c (allocate_reg_info, free_reg_info): Use VEC
6417         instead of VARRAY.
6418         * regs.h (reg_info_p): New.
6419         (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
6420         REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
6421         REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
6422         instead of VARRAY.
6423
6424 2006-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6425
6426         * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
6427         defaulting to 100.
6428         * params.h (MAX_SCHED_READY_INSNS): New macro.
6429         * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
6430         past MAX_SCHED_READY_INSNS during the first scheduling pass.
6431         (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
6432         the ready list for 1 cycle during the first scheduling pass.
6433         * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
6434
6435 2006-04-13  Richard Henderson  <rth@redhat.com>
6436
6437         PR libgomp/26651
6438         * gimple-low.c (lower_omp_directive): Remove dead code.
6439         (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
6440         * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
6441         * omp-low.c (struct omp_region): Move to tree-flow.h.
6442         (root_omp_region): Export.
6443         (omp_regions, lookup_omp_region): Remove.
6444         (determine_parallel_type): Update for struct omp_region changes.
6445         (dump_omp_region): Dump regions with block numbers.
6446         (new_omp_region): Take type and block instead of stmt; malloc
6447         instead of ggc.
6448         (free_omp_region_1, free_omp_regions): New.
6449         (expand_parallel_call): Take entry_stmt as argument; update for
6450         changes to omp_region.
6451         (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
6452         (remove_exit_barriers): New.
6453         (expand_omp_parallel): Update for struct omp_region changes.
6454         (expand_omp_synch): Likewise.
6455         (expand_omp): Likewise.
6456         (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
6457         (expand_omp_for_static_chunk): Likewise.
6458         (expand_omp_for): Likewise.
6459         (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
6460         (expand_omp_sections): Similarly, with GOMP_sections_end.
6461         (expand_omp_single): New.
6462         (build_omp_regions_1): Update for OMP_CONTINUE.
6463         (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
6464         (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
6465         OMP_SECTIONS_SECTIONS.
6466         (lower_omp_single_simple): Don't emit barrier here.
6467         (lower_omp_single_copy): Likewise.
6468         (lower_omp_single): Fix bindings, and lower to straightline now.
6469         (lower_omp_master, lower_omp_ordered): Likewise.
6470         (lower_omp_critical): Likewise.
6471         (lower_omp_for): Likewise.  Emit OMP_CONTINUE.
6472         * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
6473         omp edges, free it afterward.
6474         (make_omp_sections_edges): Remove.
6475         (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
6476         (move_stmt_r): Handle OMP_CONTINUE.
6477         * tree-flow.h (struct omp_region): Move from omp-low.c.  Switch
6478         statement pointers to basic blocks.  Add type member.
6479         (root_omp_region, new_omp_region, free_omp_regions): Declare.
6480         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
6481         * tree-inline.c (estimate_num_insns_1): Likewise.
6482         * tree-pretty-print.c (dump_generic_node): Likewise.
6483         * tree-ssa-operands.c (get_expr_operands): Likewise.
6484         * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
6485         (OMP_RETURN): Rename from OMP_RETURN_EXPR.
6486         (OMP_CONTINUE): New.
6487         * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
6488         (OMP_SECTIONS_SECTIONS): Remove.
6489         (OMP_SECTION_LAST): New.
6490         (OMP_RETURN_NOWAIT): New.
6491
6492 2006-04-13  Roger Sayle  <roger@eyesopen.com>
6493
6494         * fold-const.c (native_encode_vector, native_interpret_real):
6495         Correct obvious mistakes in the previous check-in.
6496
6497 2006-04-13  Roger Sayle  <roger@eyesopen.com>
6498
6499         * fold-const.c (native_encode_expr): New function to encode
6500         the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
6501         or VECTOR_CST into a specified buffer.
6502         (native_encode_int): New function.
6503         (native_encode_real): New function.
6504         (native_encode_complex): New function.
6505         (native_encode_vector): New function.
6506         (native_interpret_expr): Inverse of native_encode_expr to convert
6507         a target representation into an INTEGER_CST, REAL_CST etc...
6508         (native_interpret_int): New function.
6509         (native_interpret_real): New function.
6510         (native_interpret_complex): New function.
6511         (native_interpret_vector): New function.
6512         (fold_view_convert_expr): New function to constant fold/evaluate
6513         a VIEW_CONVERT_EXPR of a suitable constant expression.
6514         (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
6515         Change call of build1 to fold_build1 when constructing a
6516         VIEW_CONVERT_EXPR.
6517
6518 2006-04-13  Paolo Bonzini  <bonzini@gnu.org>
6519             Ulrich Weigand  <uweigand@de.ibm.com>
6520
6521         PR target/27006
6522         * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
6523         to be even.
6524
6525 2006-04-13  Alan Modra  <amodra@bigpond.net.au>
6526
6527         PR target/26459
6528         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6529         optimize to lo_sum for DFmode if !TARGET_FPRS.
6530
6531 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
6532
6533         * tree-ssa-alias.c (set_initial_properties, init_alias_info,
6534         delete_alias_info, compute_flow_sensitive_aliasing,
6535         group_aliases): Use VEC instead of VARRAY.
6536         * tree-ssa-structalias.c (update_alias_info): Likewise.
6537         * tree-ssa-structalias.h (alias_info): Change the type of
6538         processed_ptrs to VEC(tree,heap) *.
6539
6540 2006-04-12  J"orn Rennecke <joern.rennecke@st.com>
6541
6542         PR target/27060
6543         * config/sh/lib1funcs.h: New file, broken out of:
6544         * config/sh/lib1funcs.asm.
6545         * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
6546         New macros.
6547         * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
6548         * config/sh/lib1funcs-Os-4-200.asm: New file.
6549         * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
6550         * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
6551         (EXTRA_MULTILIB_PARTS): Include it.
6552         ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
6553         ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
6554         * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
6555         * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
6556         TARGET_SH2.
6557
6558 2006-04-12  Kazu Hirata  <kazu@codesourcery.com>
6559
6560         * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
6561         * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
6562         tpa_compact, root_var_init, type_var_init): Use VEC instead of
6563         VARRAY.
6564         * tree-ssa-live.h: Include vecprim.h.
6565         (tree_partition_associator_d): Change the type of
6566         first_partition to VEC(int,heap) *.
6567         (tpa_first_partition): Use VEC instead of VARRAY.
6568
6569         * Makefile.in (GTFILES): Move functions.h after tree.h.
6570         * function.c (reset_block_changes, record_block_change,
6571         check_block_change, free_block_changes): Use VEC instead of
6572         VARRAY.
6573         * function.h (function): Change the type of
6574         ib_boundaries_block to VEC(tree,gc) *.
6575         * tree-inline.c (copy_cfg_body): Initialize
6576         ib_boundaries_block to NULL instead of (varray_type) 0.
6577
6578 2006-04-12  Roger Sayle  <roger@eyesopen.com>
6579
6580         * expr.c (emit_group_store): Correct operand order in call to
6581         subreg_lowpart_offset.  Always create paradoxical SUBREGs with
6582         a SUBREG_BYTE of zero.
6583
6584 2006-04-12  Richard Guenther  <rguenther@suse.de>
6585
6586         * profile.c (compute_branch_probabilities): Remove code
6587         encapsulated in !ir_type (), which are remanents of the
6588         removed RTL profiling code.
6589         * rtl-profile.c: Remove.
6590
6591 2006-04-12  Alan Modra  <amodra@bigpond.net.au>
6592
6593         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
6594         magic NULL_RTX comment.
6595         (function_arg): Store entire fp arg to mem if any part should go
6596         on stack.
6597         (rs6000_arg_partial_bytes): Adjust for above change.
6598
6599 2006-04-11  Roger Sayle  <roger@eyesopen.com>
6600
6601         * dwarf2out.c (output_call_frame_info): Create debug_frame_section
6602         if it hasn't been initialized by dwarf2out_init.
6603
6604 2006-04-11  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
6605
6606         * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
6607         symbolic constants in branch patterns.
6608
6609 2006-04-11  Roger Sayle  <roger@eyesopen.com>
6610
6611         * caller-save.c: #include "addresses.h" after #include "tm_p.h".
6612
6613 2006-04-11  Richard Sandiford  <richard@codesourcery.com>
6614
6615         PR rtl-optimization/27073
6616         * gcse.c (try_replace_reg): Revert last change.  Continue to search
6617         for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
6618         on the former.
6619
6620 2006-04-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
6621
6622         * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
6623         aggregate types other than record and union types.
6624         (function_arg): Likewise.
6625         (function_arg_pass_by_reference): In 64-bit mode, return 0 for
6626         small arrays.
6627         (function_value): In 64-bit mode, return objects that require it
6628         in FP registers.
6629
6630 2006-04-11  Roger Sayle  <roger@eyesopen.com>
6631
6632         * dwarf2out.c (premark_used_types): Remove problematic prototype.
6633
6634 2006-04-11  Jakub Jelinek  <jakub@redhat.com>
6635
6636         * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
6637
6638 2006-04-03  Jeff Law  <law@redhat.com>
6639
6640         PR/27087
6641         * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
6642         alias information too.
6643
6644 2006-04-10  Mike Frysinger  <vapier@gentoo.org>
6645
6646         * Makefile.in (gcc-cross): Add $(exeext) to target name.
6647
6648 2006-04-10  Aldy Hernandez  <aldyh@redhat.com>
6649
6650         PR/21391
6651         * dwarf2out.c (struct die_struct): Add die_perennial_p field.
6652         (premark_used_types_helper): New.
6653         (premark_used_types): New.
6654         (gen_subprogram_die): Call premark_used_types.
6655         (prune_unused_types_walk): Do not prune perennial dies.
6656         * function.c (used_types_insert): New.
6657         * function.h (struct function): Add used_types_hash field.
6658         (used_types_insert): Add prototype.
6659         * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
6660         * c-parser.c (c_parser_cast_expression): Save casted types in used
6661         types hash table.
6662
6663 2006-04-11  Mark Mitchell  <mark@codesourcery.com>
6664
6665         PR target/26459
6666         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
6667         rs6000_explicit_options.float_gprs.
6668
6669 2006-04-10  Roger Sayle  <roger@eyesopen.com>
6670
6671         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
6672         from ix86_expand_vector_init_low_nonzero.  Take an additional
6673         one_var argument indicating which element is non-zero.  Support
6674         one_var != 0 for V4SFmode and V4SImode by permuting the result.
6675         (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
6676         with one_var instead of ix86_expand_vector_init_low_nonzero.
6677
6678 2006-04-10  Kazu Hirata  <kazu@codesourcery.com>
6679
6680         * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
6681         tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
6682         global.o, cfglayout.o, lambda-code.o, reg-stack.o,
6683         build/genextract.o): Depend on vecprim.h.
6684         * cfglayout.c, df-problems.c, function.c, genextract.c,
6685         global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
6686         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
6687         vecprim.h.
6688         * vecprim.h: New.
6689
6690 2006-04-10  Geoffrey Keating  <geoffk@apple.com>
6691
6692         * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
6693         Declare VECs of this type.
6694         (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
6695         (remove_children): Delete.
6696         (add_dwarf_attr): Use VEC routines.
6697         (add_AT_flag): Update for changes to add_dwarf_attr.
6698         (add_AT_int): Likewise.
6699         (add_AT_unsigned): Likewise.
6700         (add_AT_long_long): Likewise.
6701         (add_AT_vec): Likewise.
6702         (add_AT_string): Likewise.
6703         (add_AT_die_ref): Likewise.
6704         (add_AT_fde_ref): Likewise.
6705         (add_AT_loc): Likewise.
6706         (add_AT_loc_list): Likewise.
6707         (add_AT_addr): Likewise.
6708         (add_AT_lbl_id): Likewise.
6709         (add_AT_lineptr): Likewise.
6710         (add_AT_macptr): Likewise.
6711         (add_AT_offset): Likewise.
6712         (add_AT_range_list): Likewise.
6713         (get_AT): Use VEC_iterate.
6714         (remove_AT): Use VEC_ordered_remove.
6715         (free_die): Fold remove_children into here; have it use VEC_iterate.
6716         (print_die): Use VEC_iterate on attrs.
6717         (reverse_die_lists): Don't reverse attr lists.
6718         (die_checksum): Use VEC_iterate on attrs.
6719         (same_die_p): Likewise.
6720         (output_location_lists): Likewise.
6721         (build_abbrev_table): Likewise.
6722         (size_of_die): Likewise.
6723         (unmark_all_dies): Likewise.
6724         (output_abbrev_section): Likewise.
6725         (output_die): Likewise.
6726         (prune_unused_types_walk_attribs): Likewise.
6727
6728 2006-04-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6729
6730         * doc/install.texi (*-*-solaris2*): Point to the configure page.
6731
6732 2006-04-10  Jakub Jelinek  <jakub@redhat.com>
6733
6734         PR debug/27057
6735         * dwarf2out.c (is_symbol_die): Return true also for namespaces.
6736
6737 2006-04-09  Roger Sayle  <roger@eyesopen.com>
6738
6739         * expr.c (store_constructor): Don't bother clearing target if
6740         we're about to assign a vector to it using vec_init_optab.
6741
6742 2006-04-10 Daniel Berlin  <dberlin@dberlin.org>
6743
6744         * tree-ssa-alias.c (lhs_may_store_to): New function.
6745         (recalculate_used_alone): Handle LHS of calls.
6746
6747 2006-04-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6748
6749         PR target/27034
6750         PR target/26508
6751         * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
6752         * pa64-hpux.h (LIB_SPEC): Correct typo.  Don't append milli.a.
6753         (LINK_GCC_C_SEQUENCE_SPEC): Define.  Append milli.a here.
6754         (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
6755         (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
6756         (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
6757         section.  Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
6758         stubs.  Add ".align 8" directives before all ".dword" directives.
6759         (GTHREAD_USE_WEAK): Revise comment.
6760         (TARGET_ATTRIBUTE_WEAK): Define.
6761         * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
6762         dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
6763         * stublib.c: New file.
6764
6765         PR target/26743
6766         PR target/11254
6767         PR target/10274
6768         * pa.md (cbranch patterns): Revise arguments used in calls to
6769         output_cbranch, output_bb and output_bvd.  Add long branch length
6770         attributes.
6771         (fbranch patterns): Handle long branches.
6772         (jump): Revise length check.  Revise arguments for output_lbranch call.
6773         Add long branch length attributes.
6774         (decrement_and_branch_until_zero): Add long branch length attributes.
6775         (output_movb, output_parallel_addb and output_parallel_movb patterns):
6776         Likewise.  Revise arguments for output_parallel_addb and
6777         output_parallel_movb calls.
6778         * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
6779         output_parallel_movb and output_parallel_addb): Update prototypes.
6780         * pa.c (output_cbranch): Revise arguments.  Correct handling of
6781         nullification in long branches.
6782         (output_lbranch): Add new argument to control extraction of delay
6783         instruction.
6784         (output_bb): Handle long branches.
6785         (output_bvb, output_dbra, output_movb, output_parallel_movb,
6786         output_parallel_addb): Likewise.
6787
6788 2006-04-09  Richard Sandiford  <richard@codesourcery.com>
6789
6790         PR rtl-optimization/27073
6791         * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
6792         not REG_EQUIVs.
6793
6794 2006-04-08  Daniel Berlin  <dberlin@dberlin.org>
6795
6796         * tree.h (tree_memory_tag): Add old_used_alone.
6797         (SMT_OLD_USED_ALONE): New macro.
6798         * tree-ssa-alias.c (recalculate_used_alone): Stop
6799         marking things for renaming unnecessarily.
6800
6801 2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
6802
6803         * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
6804         config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
6805         config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
6806         haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
6807         sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
6808         tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
6809         tree-vect-patterns.c, tree-vrp.c: Fix comment typos.  Follow
6810         spelling convensions.
6811         * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
6812         doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
6813         typos.  Follow spelling conventions.
6814
6815 2006-04-07  DJ Delorie  <dj@redhat.com>
6816
6817         * config/m32c/m32c.c (m32c_function_arg): Structures are always
6818         passed on the stack.
6819         (m32c_init_cumulative_args): When a function returns a structure,
6820         always pass the pointer to that return area on the stack.
6821         (m32c_function_arg_advance): Don't increment the parameter number
6822         if we're processing the returned structure pointer.
6823         (pushm_info): Reverse order of registers.
6824
6825 2006-04-07  Sebastian Pop  <pop@cri.ensmp.fr>
6826
6827         * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
6828         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
6829         number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
6830         estimate_numbers_of_iterations_loop): Use build_int_cst instead of
6831         build_int_cst_type.
6832         * tree-chrec.c (chrec_fold_multiply_poly_poly,
6833         chrec_fold_multiply): Same.
6834         * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
6835         force_expr_to_var_cost): Same.
6836         * tree-mudflap.c (mf_xform_derefs_1): Same.
6837         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
6838
6839 2006-04-07  David Edelsohn  <edelsohn@gnu.org>
6840
6841         * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
6842         treat CONST_DOUBLE as INTVAL.  and64_2_operands require an extra
6843         insn.
6844
6845 2006-04-07  Jan Hubicka  <jh@suse.cz>
6846
6847         * ipa-inline.c (cgraph_early_inlining): Collect garbage.
6848
6849 2006-04-07  Richard Guenther  <rguenther@suse.de>
6850
6851         PR tree-optimization/26135
6852         * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
6853         loads for store copy-prop.
6854         (copy_prop_visit_stmt): Likewise.
6855
6856 2006-04-05  Robert Millan  <robertmh@gnu.org>
6857
6858         * config/i386/linux.h: Add a comment to mark macros that are
6859         being overriden in config/k*bsd-gnu.h.
6860         * config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
6861         DYNAMIC_LINKER.
6862         * config/knetbsd-gnu.h: Ditto.
6863
6864 2006-04-06  Jan Hubicka  <jh@suse.cz>
6865
6866         PR profile/20815
6867         PR profile/26399
6868         * coverage.c (coverage_checksum_string): Reorganize loop to not read
6869         after buffer.
6870
6871 2006-04-06  Mike Stump  <mrs@apple.com>
6872
6873         * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
6874         for HAVE_nonlocal_goto to be consistent.
6875         (expand_builtin_nonlocal_goto): Likewise.
6876         (expand_builtin_strcmp): Use #ifdef instead of #if
6877         for HAVE_cmpstrnsi to be consistent.
6878
6879 2006-04-05  DJ Delorie  <dj@redhat.com>
6880
6881         * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
6882         vs m32c.
6883
6884 2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
6885
6886         * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
6887         got-relative addressing for anything but SImode.
6888
6889         * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
6890         even if the calling function doesn't modify them.
6891
6892 2006-04-05  Richard Guenther  <rguenther@suse.de>
6893
6894         PR tree-optimization/26919
6895         * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
6896         to cgraph_estimate_size_after_inlining.
6897
6898 2006-04-05  Alan Modra  <amodra@bigpond.net.au>
6899
6900         * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
6901
6902 2006-04-05  Sebastian Pop  <pop@cri.ensmp.fr>
6903
6904         PR tree-optimization/26996
6905         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
6906         VECTOR_TYPE variables.
6907
6908 2006-04-05  Richard Guenther  <rguenther@suse.de>
6909
6910         PR tree-optimization/26763
6911         * fold-const.c (fold_comparison): Move folding of
6912         PTR + CST CMP PTR + CST ...
6913         (fold_binary): ... here.  Fold only for EQ_EXPR and NE_EXPR.
6914
6915 2006-04-05  Gerald Pfeifer  <gerald@pfeifer.com>
6916
6917         * doc/install.texi (Prerequisites): Refine some wording on
6918         bootstrapping and ksh.
6919         Move the version numbers of DejaGnu here from the testing section
6920         and fix casing of names.
6921         Fix markup and clarify wording for autogen requirements.
6922         Refer to GCJ instead of just java.
6923         Refer to SVN instead of CVS.
6924         Describe diffutils as useful instead of necessary.
6925         (Downloading the source): Refer to SVN instead of CVS.
6926         Adjust a link to our web site accordingly.
6927         (Configuration): Fix casing of Bison.
6928         (Building): Refer to SVN instead of CVS.
6929         Fix a sentence on the use of Bison and remove duplicate (and
6930         incorrect) version number of Bison requirement.
6931         Remove one redundant list of packages needed for building.
6932         (Specific): Avoid reference to CVS.
6933
6934 2006-04-04  Eric Christopher  <echristo@apple.com>
6935
6936         * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
6937         (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
6938         (rs6000_handle_struct_attribute): New.
6939         (rs6000_ms_bitfield_layout_p): Ditto.
6940
6941 2006-04-04  Geoffrey Keating  <geoffk@apple.com>
6942
6943         * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
6944         NULL for dso parameter to atexit_common.
6945
6946 2006-04-04  Eric Christopher  <echristo@apple.com>
6947
6948         * config/i386/i386.c (machopic_output_stub): Output \t
6949         between instructions and operands.
6950
6951 2006-04-04  David Edelsohn  <edelsohn@gnu.org>
6952
6953         * config/rs6000/rs6000.c (num_insns_constant_wide): Change
6954         satisfies_constraint_[IL] to explicit tests on value.
6955
6956 2006-04-04  Sebastian Pop  <pop@cri.ensmp.fr>
6957
6958         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
6959         set_nb_iterations_in_loop): Use build_int_cst instead of
6960         build_int_cst_type.
6961         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
6962         build_int_cst instead of convert.
6963
6964 2006-04-04  Carlos O'Donell  <carlos@codesourcery.com>
6965
6966         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
6967         new value 2 for incoming.
6968         * function.c (expand_function_start): Call struct_value_rtx
6969         with incoming as 2.
6970         * config/sparc/sparc.md: Comment updated_return.
6971         * config/sparc/sparc.opt: Add -mstd-struct-return option.
6972         * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
6973         struct return if sparc_std_struct_return and incoming is 2.
6974         (print_operand): Do not adjust return if
6975         sparc_std_struct_return.
6976
6977 2006-04-04  Roger Sayle  <roger@eyesopen.com>
6978
6979         * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
6980         convert in the middle-end.
6981         * expr.c (store_expr, store_constructor, get_inner_reference,
6982         expand_expr_real_1, string_constant, try_casesi, try_tablejump):
6983         Likewise.
6984         * tree.c (build_range_type): Likewise.
6985
6986 2006-04-04  Tom Tromey  <tromey@redhat.com>
6987
6988         * doc/install.texi (Prerequisites): Mention jar.
6989
6990 2006-04-04  Daniel Berlin  <dberlin@dberlin.org>
6991
6992         * doc/tree-ssa.texi (Preserving the virtual ssa form): New
6993         subsection.
6994
6995 2006-04-04  Matthias Klose  <doko@debian.org>
6996
6997         * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
6998
6999         PR bootstrap/26764
7000         PR bootstrap/27334
7001         * Makefile.in (s-macro_list): Conform to POSIX rules in single quoted
7002         strings.
7003
7004 2006-04-03  Geoffrey Keating  <geoffk@apple.com>
7005
7006         * doc/extend.texi (Function Attributes): Rewrite visibility
7007         attribute documentation.
7008         * doc/invoke.texi (C++ Dialect Options): Rewrite
7009         -fvisibility-inlines-hidden documentation to describe something
7010         entirely different, although in practise compatible.
7011         (Code Gen Options): Warn about system headers in -fvisibility=
7012         documentation.
7013
7014         * doc/extend.texi (Other Builtins): Document that
7015         __builtin_nan is a compile-time constant only when its argument
7016         is valid.
7017
7018 2006-04-03  Adam Nemet  <anemet@caviumnetworks.com>
7019
7020         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
7021         trying to remove TRUNCATE check if all bits outside the new mode
7022         are identical to the sign bit.
7023
7024 2006-04-03  Jeff Law  <law@redhat.com>
7025
7026         * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
7027         and operand scanning in some common cases.
7028
7029 2006-04-03  Paolo Bonzini  <bonzini@gnu.org>
7030             Dale Johannesen  <dalej@apple.com>
7031
7032         PR target/19653
7033         * regclass.c (struct reg_pref): Update documentation.
7034         (regclass): Set prefclass to NO_REGS if memory is the best option.
7035         (record_reg_classes): Cope with a prefclass set to NO_REGS.
7036         * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
7037         into account.  For non-registers, equate an empty preferred
7038         reload class to a `!' in the constraint; move the if clause to
7039         do so after those that reject the insn.
7040         (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
7041         return NO_REGS.
7042         (find_dummy_reload): Likewise.
7043         * doc/tm.texi (Register Classes): Document what it means
7044         if PREFERRED_*_RELOAD_CLASS return NO_REGS.
7045         * config/i386/i386.c (ix86_preferred_reload_class): Force
7046         using SSE registers (and return NO_REGS for floating-point
7047         constants) if math is done with SSE.
7048         (ix86_preferred_output_reload_class): New.
7049         * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
7050         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
7051         * config/i386/i386.md: Remove # register preferences.
7052
7053 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
7054
7055         PR bootstrap/26992
7056         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
7057         chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
7058         the type of nb_iter.
7059         (instantiate_parameters_1): Convert the operands before calling
7060         chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
7061         * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
7062
7063 2006-04-02  Roger Sayle  <roger@eyesopen.com>
7064
7065         * builtins.c (dummy_object): Use build_int_cst instead of convert.
7066         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
7067         instead of convert.
7068         * dojump.c (do_jump): Likewise.
7069         * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
7070         * gimplify.c (gimple_boolify, gimplify_init_constructor,
7071         gimplify_boolean_expr): Likewise.
7072         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7073         * varasm.c (array_size_for_constructor): Likewise.
7074         * tree-object-size.c (compute_object_offset): Likewise.
7075
7076 2006-04-02  Roger Sayle  <roger@eyesopen.com>
7077
7078         PR middle-end/26977
7079         * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
7080         NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
7081
7082 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
7083
7084         PR tree-optimization/26939
7085         * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
7086
7087 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
7088
7089         * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
7090         at_stmt.  Convert the type of operands before calling
7091         build_polynomial_chrec.
7092         (add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
7093         add_to_evolution_1.
7094         (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
7095         (instantiate_parameters_1): Convert the type of operands before calling
7096         build_polynomial_chrec.
7097         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
7098         chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
7099         reset_evolution_in_loop): Insert asserts to check the types of the
7100         operands.
7101         (chrec_type): Moved...
7102         (eq_evolutions_p): Use operand_equal_p.
7103         * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
7104         the types of the operands.
7105         (chrec_type): ...here.
7106         * tree-data-ref.c (create_data_ref): Convert the operands before
7107         calling chrec_replace_initial_condition.
7108         (same_access_functions, analyze_subscript_affine_affine,
7109         analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
7110         (compute_subscript_distance, analyze_ziv_subscript,
7111         analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
7112         analyze_miv_subscript): Convert the operands before calling
7113         chrec_fold_minus or chrec_fold_plus.
7114
7115 2006-04-02  Sebastian Pop  <pop@cri.ensmp.fr>
7116
7117         * tree-data-ref.c (compute_all_dependences): Use a pointer to
7118         the dependence_relations vector.
7119         (compute_data_dependences_for_loop): Adjust call to
7120         compute_all_dependences.
7121
7122 2006-04-01  Roger Sayle  <roger@eyesopen.com>
7123             Richard Henderson  <rth@redhat.com>
7124
7125         * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
7126         gimple_boolify on the condition before calling gimplify_expr.
7127
7128 2006-03-31  Bob Wilson  <bob.wilson@acm.org>
7129
7130         * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
7131         to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
7132         the frame size.  Update to use the new macros.
7133         * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
7134         * config/xtensa/ieee754-df.S: Likewise.
7135
7136 2006-03-31  Richard Henderson  <rth@redhat.com>
7137
7138         * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
7139         (make_edges): ... here.  Control fallthru creation with a local
7140         variable.  Do not play with fake edges.
7141         (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
7142         (make_goto_expr_edges): Don't play with fake edges.  Make for_call
7143         a boolean.
7144
7145 2006-04-01  Joseph S. Myers  <joseph@codesourcery.com>
7146
7147         * dwarf2.h (DW64_CIE_ID): Define.
7148         * dwarf2out.c (DWARF_CIE_ID): Define.
7149         (output_call_frame_info): Output 0xffffffff before standard 8-byte
7150         length header.  Use DWARF_CIE_ID.
7151         (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
7152         dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
7153
7154 2006-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7155
7156         * config/sh/linux-atomic.asm: New file.
7157         * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
7158
7159 2006-03-31  DJ Delorie  <dj@redhat.com>
7160
7161         * config/m32c/cond.md: Set condition flags properly throughout.
7162         * config/m32c/minmax.md: Likewise.
7163         * config/m32c/prologue.md: Likewise.
7164         * config/m32c/bitops.md: Likewise.
7165         * config/m32c/muldiv.md: Likewise.
7166         * config/m32c/mov.md: Likewise.
7167         * config/m32c/addsub.md: Likewise.
7168         * config/m32c/m32c.md: Likewise.
7169         * config/m32c/jump.md: Likewise.
7170         * config/m32c/shift.md: Likewise.
7171
7172         * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
7173         conditionally output the pattern for this.
7174         * config/m32c/m32c.c (flags_needed_for_conditional): New.
7175         (m32c_compare_redundant): New.
7176         (m32c_output_compare): New.
7177         * config/m32c/m32c-protos.h (m32c_output_compare): New.
7178
7179         * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
7180         dest, not src.  Allow other 4-byte modes.
7181
7182 2006-03-30  Denis Chertykov  <denisc@overta.ru>
7183
7184         * doc/md.texi: Refer to avr/constraints.md instead of
7185         avr/avr.h.
7186
7187 2006-03-30  Roger Sayle  <roger@eyesopen.com>
7188
7189         * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
7190         signed vs. unsigned comparison failures on some hosts.
7191
7192 2006-03-31  Alan Modra  <amodra@bigpond.net.au>
7193
7194         PR target/26459
7195         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
7196         change to FLOAT_REGS.
7197
7198         * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
7199         (rs6000_override_options): Use it.
7200         (rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
7201         only for -mabi=spe/no-spe and -mabi=altivec.
7202
7203 2006-03-30  Geoffrey Keating  <geoffk@apple.com>
7204
7205         * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
7206         !Zdynamiclib.
7207
7208 2006-03-30  Carlos O'Donell  <carlos@codesourcery.com>
7209
7210         * Makefile.in: Rename docdir to gcc_docdir.
7211
7212 2006-03-30  Roger Sayle  <roger@eyesopen.com>
7213
7214         PR target/17959
7215         * expr.c (emit_group_store): Optimize group stores into a pseudo
7216         register by using a paradoxical subreg to initialize the destination
7217         if the first or last member of the group specifies a "low part".
7218
7219 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7220
7221         PR target/26734
7222         * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
7223         * target.h (struct gcc_target.speculate_insn): Change type of the
7224         second parameter to 'int'.
7225         * lists.c (alloc_DEPS_LIST): Change signature.  Update reference to
7226         the second operand of the DEPS_LIST.
7227         (copy_DEPS_LIST_list): Update reference to the second operand of the
7228         DEPS_LIST.
7229         * rtl.h (alloc_DEPS_LIST): Update signature.
7230         * sched-int.h (ds_t): Change typedef to 'int'.
7231         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
7232
7233 2006-03-30  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7234
7235         * haifa-sched.c (try_ready): Change condition to restore
7236         non-speculative pattern of the instruction.
7237         (process_insn_depend_be_in_spec): Code to keep probability of the
7238         speculative dependence non-decreasing.
7239
7240 2006-03-30  Jie Zhang  <jie.zhang@analog.com>
7241
7242         * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
7243         (single_move_for_movmem): ... this. Also change all uses.
7244         (bfin_expand_strmov): Renamed to...
7245         (bfin_expand_movmem): ... this. Also change all uses.
7246         * config/bfin/bfin.md (movstrsi): Renamed to...
7247         (movstrsi): ...this.
7248
7249 2006-03-30  Paolo Bonzini  <bonzini@gnu.org>
7250
7251         PR tree-optimization/26830
7252
7253         * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
7254         (copy_prop_visit_stmt): Remove write-only variable ann.
7255         (init_copy_prop): Check variable loop depth here.  Do not simulate
7256         memory-tag and virtual operand PHIs except for store copy prop.
7257
7258 2006-03-30  Richard Guenther  <rguenther@suse.de>
7259
7260         * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
7261         variants with double arguments.
7262
7263 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
7264
7265         * genpreds.c (write_tm_constrs_h): Delete variable p.
7266         * genconditions.c (write_header): Add tm-constrs.h to included
7267         headers.
7268         * genpeep.c (main): Add toplev.h to included headers.
7269         * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
7270         (build/genpeep.o): Add toplev.h dependency.
7271         * config/rs6000/constraints.md: Add "W" constraint.
7272
7273 2006-03-29  Roger Sayle  <roger@eyesopen.com>
7274
7275         * stor-layout.c (mode_for_size_tree): Remove restiction on type
7276         sizes by correctly testing whether the size fits a host integer.
7277         (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
7278         to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
7279         SImode range for the default sizetype and bitsizetype.
7280
7281 2006-03-29  Roger Sayle  <roger@eyesopen.com>
7282
7283         * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
7284         and TREE_CONSTANT_OVERFLOW bits of the argument.  Return
7285         quickly if the argument is already of the correct type.
7286         Call fold_build1 instead of build1.  Tidy up blank lines.
7287
7288 2006-03-29  David Edelsohn  <edelsohn@gnu.org>
7289
7290         * genemit.c (main): Add tm-constrs.h to included headers.
7291         * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
7292         * genpeep.c (main): Add tm-constrs.h to included headers.
7293         * genpreds.c (write_satisfies_constraint_fns): Rename to ...
7294         (write_tm_constrs_h): this and write complete file.
7295         (write_tm_preds_h): Do not emit satisfies_constraint fns.
7296         (write_insn_preds_c): Add tm-constrs.h to included headers.
7297         (gen_constrs): New variable.
7298         (parse_option): Parse "-c".
7299         (main): Invoke write_tm_constrs_h.
7300         * genrecog.c (write_header): Add tm-constrs.h to included headers.
7301         * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
7302         (object_out_file): Add tm-constrs.h dependency.
7303         (insn-emit.o): Same.
7304         (insn-output.o): Same.
7305         (insn-peep.o): Same.
7306         (insn-preds.o): Same.
7307         (insn-recog.o): Same.
7308         (tm-constsr.h): New target.
7309         (s-constrs-h): New target.
7310
7311         * config/rs6000/constraints.md: New file.
7312         * config/rs6000/rs6000.c: Include tm-constrs.h.
7313         (num_insn_constant_wide): Convert to satisfies_constraint.
7314         (rs6000_rtx_costs): Convert to satisfies_constraint.
7315         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
7316         (CONST_OK_FOR_LETTER_P): Delete.
7317         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7318         (EXTRA_CONSTRAINT): Delete.
7319         (EXTRA_MEMORY_CONSTRAINT): Delete.
7320         (EXTRA_ADDRESS_CONSTRAINT): Delete.
7321         * config/rs6000/predicates.md: Convert to satisfies_constraint.
7322         * config/rs6000/rs6000.md: Include constraints.md.  Convert to
7323         satisfies_constraint.
7324
7325         * config/i386/i386.c: Include tm-constrs.h.
7326
7327 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
7328
7329         * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
7330         * tree-data-ref.c (find_data_references_in_loop,
7331         compute_data_dependences_for_loop): Use pointers to VEC.
7332         (analyze_all_data_dependences): Adjust calls.
7333         * tree-data-ref.h (find_data_references_in_loop,
7334         compute_data_dependences_for_loop): Adjust declarations.
7335         * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
7336         compute_data_dependences_for_loop.
7337
7338 2006-03-29  Paul Brook  <paul@codesourcery.com>
7339
7340         * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
7341         (movdf_vfp): Ditto.
7342
7343 2006-03-29  Sebastian Pop  <pop@cri.ensmp.fr>
7344
7345         PR tree-optimization/26859
7346         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
7347         division by zero.
7348         (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
7349         for the step after fold_convert.
7350
7351 2006-03-29  Paul Brook  <paul@codesourcery.com>
7352
7353         * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
7354         (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
7355
7356 2006-03-29  Paul Brook  <paul@codesourcery.com>
7357
7358         PR middle-end/23623
7359         * targhooks.c (default_narrow_bitfield): New fuction.
7360         * targhooks.h (default_narrow_bitfield): add prototype.
7361         * target.h (gcc_target): Add narrow_volatile_bitfield.
7362         * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
7363         * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
7364         * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
7365         * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
7366
7367 2006-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
7368
7369         * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
7370         tmake_file.
7371         * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
7372         (NR_C_MODES): Add TDmode, DDmode and SDmode.
7373         (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
7374         (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
7375         (s390_function_arg_float): Allow SDmode and DDmode values to be
7376         passed in floating point registers.
7377         (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
7378         check with SCALAR_FLOAT_MODE_P.
7379         (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
7380
7381 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
7382
7383         PR tree-optimization/25985
7384         * tree-ssa-loop-niter.c (number_of_iterations_le,
7385         number_of_iterations_ne): Make comments more precise.
7386         (number_of_iterations_cond): Add only_exit argument.  Use the
7387         fact that signed variables do not overflow only when only_exit
7388         is true.
7389         (loop_only_exit_p): New.
7390         (number_of_iterations_exit): Pass result of loop_only_exit_p to
7391         number_of_iterations_cond.
7392
7393 2006-03-28  Zdenek Dvorak <dvorakz@suse.cz>
7394
7395         PR tree-optimization/26643
7396         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
7397         bit_field_refs.
7398
7399 2006-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
7400
7401         * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
7402         (divsi3_i4_int): Likewise.
7403
7404 2006-03-28  Roger Sayle  <roger@eyesopen.com>
7405
7406         * expr.c (emit_group_store): Only create a new pseudo reg if the
7407         quantity it needs to hold isn't already a suitable pseudo.
7408
7409 2006-03-28  Jeff Law  <law@redhat.com>
7410
7411         * timevar.def (TV_TREE_PHI_CPROP): New timevar.
7412         * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
7413
7414 2006-03-28  Roger Sayle  <roger@eyesopen.com>
7415
7416         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
7417         the equivalent ~X & Y, and the symmetry related transformations.
7418         (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
7419         ~X & Y, and symmetry related transforms.
7420
7421 2006-03-28  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7422
7423         Revert my 2006-03-27 patches.
7424
7425 2006-03-28  Roger Sayle  <roger@eyesopen.com>
7426
7427         * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
7428         ~(T1)X, when T1 and T2 are integer types of the same precision
7429         and (T2)X isn't an extension.
7430
7431 2006-03-28  Jeff Law  <law@redhat.com>
7432
7433         PR tree-optimization/26796
7434         * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
7435         need EH edge cleanups rather than purging them immediately.
7436         (eliminate_degenerate_phis): Handle queued EH cleanups.
7437
7438 2006-03-28  Daniel Berlin  <dberlin@dberlin.org>
7439
7440         * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
7441         from parent_var.
7442
7443 2006-03-27  Roger Sayle  <roger@eyesopen.com>
7444
7445         PR middle-end/22524
7446         * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
7447         cast BIT_NOT_EXPR operand to the correct type.
7448
7449 2006-03-27  Sebastian Pop  <pop@cri.ensmp.fr>
7450
7451         * tree-loop-linear.c: Don't include varray.h.
7452         (gather_interchange_stats, try_interchange_loops,
7453         linear_transform_loops): Use VEC instead of VARRAY.
7454         * lambda-mat.c: Don't include varray.h.
7455         * tree-chrec.c: Same.
7456         * lambda-trans.c: Same.
7457         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
7458         VEC instead of VARRAY.
7459         * tree-vectorizer.h: Idem.
7460         * tree-data-ref.c (dump_data_references,
7461         dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
7462         initialize_data_dependence_relation, finalize_ddr_dependent,
7463         compute_all_dependences, find_data_references_in_loop,
7464         compute_data_dependences_for_loop, analyze_all_data_dependences,
7465         free_dependence_relation, free_dependence_relations,
7466         free_data_refs): Idem.
7467         * tree-data-ref.h (data_reference_p, subscript_p): New.
7468         (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
7469         VEC instead of VARRAY.
7470         (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
7471         (find_data_references_in_loop, compute_data_dependences_for_loop,
7472         dump_ddrs, dump_dist_dir_vectors, dump_data_references,
7473         dump_data_dependence_relations, free_dependence_relations,
7474         free_data_refs): Adjust declaration.
7475         (lambda_transform_legal_p): Move declaration here...
7476         * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
7477         vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
7478         vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
7479         vect_analyze_data_refs): Use VEC instead of VARRAY.
7480         * lambda.h (lambda_transform_legal_p): ...from here.
7481         * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
7482         * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
7483         * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
7484         tree-chrec.o): Don't depend on VARRAY_H.
7485
7486 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7487
7488         * rtl.def (Copyright): Update date.
7489         (DEPS_LIST): Change type of the second operand to 'int'.
7490         * target.h (Copyright): Update date.
7491         (struct gcc_target.speculate_insn): Change type of the second parameter
7492         to 'int'.
7493         * lists.c (Copyright): Update date.
7494         (alloc_DEPS_LIST): Change signature.  Update reference to the second
7495         operand of the DEPS_LIST.
7496         (copy_DEPS_LIST_list): Update reference to the second operand of the
7497         DEPS_LIST.
7498         * rtl.h (Copyright): Update date.
7499         (alloc_DEPS_LIST): Update signature.
7500         * sched-int.h (Copyright): Update date.
7501         (ds_t): Change typedef to 'int'.
7502         (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
7503
7504 2006-03-27  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7505
7506         * haifa-sched.c (Copyright): Update date.
7507         (try_ready): Change condition to restore non-speculative pattern
7508         of the instruction.
7509         (process_insn_depend_be_in_spec): Code to keep probability of the
7510         speculative dependence non-decreasing.
7511
7512 2006-03-27  Bernd Schmidt  <bernd.schmidt@analog.com>
7513
7514         * regrename.c (replace_oldest_value_addr): Initialize a variable to
7515         shut up the compiler.
7516
7517 2006-03-27  J"orn Rennecke <joern.rennecke@st.com>
7518
7519         * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
7520         to use lib prefix for target.
7521         ($(T)libic_invalidate_array_4-200.a): Likewise.
7522         ($(T)libic_invalidate_array_4a.a): Likewise.
7523
7524 2006-03-27  Andrew Stubbs <andrew.stubbs@st.com>
7525             J"orn Rennecke <joern.rennecke@st.com>
7526
7527         * superh.opt: New file.
7528         * sh.c (boardtype, osruntime): Remove.
7529         * superh.h (SUBTARGET_OPTIONS): Remove.
7530         * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
7531
7532         * config.gcc (sh*-*-*): Don't use c-c ranges for tr.  Quote sed
7533         arguments with ^ and/or [].
7534
7535         * config.gcc (sh-*-*): Add quoting to account for quirk of
7536         Solaris /bin/sh.
7537         Replace == with = in enable_incomplete_targets test.
7538
7539         * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
7540         with MASK_LITTLE_ENDIAN.
7541
7542         * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
7543         * config/sh/sh.opt: Added to some comments.
7544         * config/sh/superh.h: Removed some chaff.
7545
7546         * config/sh/sh.opt: Add m4-[1234]00* options.
7547         * config/sh/sh.c (sh_handle_option): Likewise.
7548         * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
7549         (ic_invalidate_array_4-100.o): New rule.
7550         ($(T)libic_invalidate_array_4-100.a): Likewise.
7551         (ic_invalidate_array_4-200.o): Likewise.
7552         ($(T)libic_invalidate_array_4-200.a): Likewise.
7553         (ic_invalidate_array_4a.o): Likewise.
7554         ($(T)libic_invalidate_array_4a.a): Likewise.
7555         * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
7556         * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
7557         m4-200*, and m4a*.
7558         * config/sh/crt1.asm: Merged in profiling code.
7559         * config/sh/superh.h (STARTFILE_SPEC): Override.
7560         * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
7561         Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
7562         * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
7563
7564         * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
7565         * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
7566         MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
7567
7568         * sh.opt (mpretend-cmove): New option.
7569         * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
7570         * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
7571         (movsicc): Add TARGET_PRETEND_CMOVE code.
7572
7573 2006-03-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7574
7575         * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
7576         s390_class_max_nregs): New function prototypes.
7577         * config/s390/s390.c (REGNO_PAIR_OK): New macro.
7578         (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
7579         * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
7580         CLASS_MAX_NREGS): Macro bodies replaced by function calls.
7581
7582 2006-03-26  Geoffrey Keating  <geoffk@apple.com>
7583
7584         * dwarf2out.c (add_location_or_const_value_attribute): Call
7585         tree_add_const_value_attribute if nothing else works.
7586         (reference_to_unused): New.
7587         (rtl_for_decl_init): Use reference_to_unused to decide whether
7588         to output an initializer.
7589
7590 2006-03-27  Alan Modra  <amodra@bigpond.net.au>
7591
7592         PR target/26459
7593         * config/rs6000/rs6000.md (DF reg move peephole): Prevent
7594         peephole removing spe frob_di_df_2.
7595
7596 2006-03-26  Sebastian Pop  <pop@cri.ensmp.fr>
7597
7598         * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
7599         (subscript_dependence_tester_1): Declared.
7600         (print_dir_vectors, print_dist_vectors): New.
7601         (debug_data_dependence_relation): New.
7602         (dump_data_dependence_relation): Print more details.
7603         (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
7604         (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
7605         (save_dist_v, save_dir_v, add_outer_distances,
7606         build_classic_dist_vector_1): New.
7607         (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
7608         Don't test for lambda_vector_lexico_pos.
7609         (same_access_functions, add_multivariate_self_dist,
7610         add_other_self_distances, dir_from_dist): New.
7611         (build_classic_dir_vector): Replace implementation almost identical to
7612         build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
7613         dir_from_dist.
7614         (subscript_dependence_tester_1): New.
7615         (subscript_dependence_tester): Handle the lexicographically negative
7616         distance vectors by recomputing the dependence relation.
7617         (compute_affine_dependence): Remove parameter loop_nest_depth.
7618         (compute_self_dependence): Don't call compute_subscript_distance.
7619         (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
7620         Add a parameter for the loop_nest.
7621         (find_loop_nest_1, find_loop_nest): New.
7622         (compute_data_dependences_for_loop): Compute the loop nest, and give
7623         up if the nest is not well formed.
7624         * tree-data-ref.h (loop_p): New.
7625         (struct data_dependence_relation): Replace size_vect field with
7626         loop_nest, a vec of loops.
7627         (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
7628         (DDR_LOOP_NEST): New.
7629         (print_dir_vectors, print_dist_vectors,
7630         debug_data_dependence_relation): Declared.
7631         (index_in_loop_nest): New.
7632         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
7633         DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
7634         distance.
7635
7636 2006-03-25  Adam Nemet  <anemet@caviumnetworks.com>
7637
7638         * simplify-rtx.c (simplify_relational_operation): Call
7639         simplify_relational_operation_1 even if mode is VOIDmode.
7640
7641 2006-03-25  Daniel Berlin  <dberlin@dberlin.org>
7642
7643         PR tree-optimization/26804
7644         * tree.h (DECL_CALL_CLOBBERED): New macro.
7645         (tree_decl_common): Add call_clobbered_flag.
7646         * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
7647         (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
7648         (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
7649         (mark_non_addressable): Ditto.
7650         * tree-ssa.c (verify_call_clobbered): New function.
7651         (verify_alias_info): Use it.
7652         * tree-pass.h (pass_reset_cc_flags): New prototype.
7653         * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
7654         (reset_cc_flags): New function.
7655         * passes.c (init_optimization_passes): Call reset_cc_flags after
7656         initializing referenced_vars.
7657
7658 2006-03-25  Uros Bizjak  <uros@kss-loka.si>
7659             Roger Sayle  <roger@eyesopen.com>
7660
7661         PR middle-end/26717
7662         * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
7663         to 1.0 for non-real operands. Implement A / A optimization for
7664         complex operands.
7665
7666 2006-03-25  H.J. Lu  <hongjiu.lu@intel.com>
7667
7668         * config/i386/i386.c (size_cost): Correct the comment for
7669         cost of storing fp registers.
7670         (i386_cost): Likewise.
7671         (i486_cost): Likewise.
7672         (pentium_cost): Likewise.
7673         (pentiumpro_cost): Likewise.
7674         (k6_cost): Likewise.
7675         (athlon_cost): Likewise.
7676         (k8_cost): Likewise.
7677         (pentium4_cost): Likewise.
7678         (nocona_cost): Likewise.
7679         (generic64_cost): Likewise.
7680         (generic32_cost): Likewise.
7681
7682 2006-03-24  Denis Chertykov  <denisc@overta.ru>
7683
7684         * config/avr/avr-protos.h (extra_constraint): Delete.
7685         (extra_constraint_Q): New declaration.
7686         * config/avr/constraints.md: New file.
7687         * config/avr/avr.md: Include it.
7688         (REG_X, REG_Y, REG_Z, REG_W): New constants.
7689         (TMP_REGNO, ZERO_REGNO): Likewise.
7690         (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
7691         * config/avr/avr.c (avr_reg_class_from_letter): Delete.
7692         (extra_constraint): Delete.
7693         (extra_constraint_Q): Test for memory constraint 'Q'.
7694         * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
7695         (REG_CLASS_FROM_LETTER): Delete.
7696         (CONST_OK_FOR_LETTER_P): Delete.
7697         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7698         (EXTRA_CONSTRAINT): Delete.
7699         (TMP_REGNO): Delete.
7700         (ZERO_REGNO): Delete.
7701
7702 2006-03-24  Jeff Law  <law@redhat.com>
7703
7704         * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
7705         directly.  Call mark_new_vars_to_rename slightly earlier.
7706
7707 2006-03-24  Geoffrey Keating  <geoffk@apple.com>
7708
7709         * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
7710         (is_cxx): Likewise.
7711         (gen_compile_unit_die): Use new language types for Objective-C and
7712         Objective-C++.
7713         (dwarf2out_decl): Use is_cxx rather than testing explicitly against
7714         DW_LANG_C_plus_plus.
7715
7716         PR 26793
7717         * config/t-darwin (crt3.o): Work around bug 26840.
7718         * config/darwin-crt3.c: Rewrite.
7719         * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
7720
7721 2006-03-24  Carlos O'Donell  <carlos@codesourcery.com>
7722
7723         * doc/invoke.texi: Document -femit-class-debug-always
7724         * common.opt: Add -femit-class-debug-always.
7725
7726 2006-03-24  Andreas Krebbel  <krebbel1@de.ibm.com>
7727
7728         * config/s390/s390.c (s390_decompose_address): Allow SImode for
7729         index and base register.
7730         (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
7731         print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
7732         with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
7733         REGNO_OK_FOR_INDEX_P.
7734         * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
7735         ADDR_REGNO_P.
7736         (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
7737         REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
7738         REG_OK_FOR_BASE_P): Definitions removed.
7739
7740 2006-03-24  Jakub Jelinek  <jakub@redhat.com>
7741
7742         PR middle-end/26611
7743         * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
7744         non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
7745         set yet or weren't marked as local yet.
7746
7747 2006-03-24  Bernd Schmidt  <bernd.schmidt@analog.com>
7748
7749         * regrename.c (scan_rtx_address): Initialize a variable to shut up
7750         the compiler.
7751
7752 2006-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7753
7754         * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
7755         (rs6000_legitimate_small_data_p): Delete.
7756         * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
7757         (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
7758         and make static.  Add forward declaration.  Update uses.
7759         (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
7760         of offsettable_memref_p.
7761         * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
7762         Use rs6000_offsettable_memref_p instead of a less accurate predicate.
7763
7764 2006-03-24  Jeff Law  <law@redhat.com>
7765
7766         * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
7767         around bug in immediate-use iterator.
7768
7769 2006-03-24  Alan Modra  <amodra@bigpond.net.au>
7770
7771         PR target/26607
7772         * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
7773         or __LITTLE_ENDIAN__.
7774
7775 2006-03-23  J"orn Rennecke <joern.rennecke@st.com>
7776
7777         * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
7778         * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
7779         * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
7780         * config/sh/sh.opt (mdiv=): Amend description.
7781         * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
7782         (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
7783         (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
7784         SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
7785         (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
7786         Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
7787         * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
7788         (udivsi3, divsi3): Use them.  Check TARGET_DIVIDE_CALL_TABLE /
7789         TARGET_DIVIDE_CALL_FP.
7790
7791 2006-03-23  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
7792
7793         * haifa-sched.c (choose_ready): Fix type of the local variable.
7794         Move local variables.  Add comment.
7795         (check_reg_live): Change signature.  Make callable from debugger.
7796         * sched-int.h (check_reg_live): Update signature.
7797         * sched-ebb.c (check_reg_live): Update parameters.
7798         * sched-rgn.c (check_reg_live): Ditto.
7799         (region_head_or_leaf_p): Check pointer before dereferencing.
7800         * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
7801         before reload on optimization levels below 1.
7802
7803 2006-03-23  Richard Henderson  <rth@redhat.com>
7804
7805         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
7806         tls symbols.
7807
7808         PR target/26347
7809         * config/alpha/predicates.md (local_symbolic_operand): Reject
7810         weak symbols.
7811
7812 2006-03-23  Andrew Pinski  <pinskia@physics.uc.edu>
7813
7814         PR tree-opt/26795
7815         * tree-ssa-pre.c (create_value_expr_from): Don't reject
7816         expressions which have overflowed constants.
7817
7818 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
7819
7820         * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
7821
7822 2006-03-23  Zdenek Dvorak <dvorakz@suse.cz>
7823
7824         * cfgloopmanip.c (create_loop_notes): Removed.
7825         * final.c (final_scan_insn): Do not handle loop notes.
7826         * jump.c (squeeze_notes): Ditto.
7827         * cfglayout.c (skip_insns_after_block,
7828         duplicate_insn_chain): Ditto.
7829         * cfgcleanup.c (rest_of_handle_jump2): Do not call
7830         create_loop_notes.
7831         * cfgloop.h (create_loop_notes): Declaration removed.
7832
7833 2006-03-23  Richard Sandiford  <richard@codesourcery.com>
7834
7835         * varasm.c (output_constant_pool): Restore fnname and fndecl
7836         arguments.
7837         (assemble_start_function): Adjust call accordingly.
7838         (assemble_end_function): Likewise.
7839
7840 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7841
7842         PR mudflap/26789
7843         * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
7844
7845         PR mudflap/26790
7846         * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
7847
7848 2006-03-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7849
7850         PR driver/22600
7851         * system.h (ICE_EXIT_CODE): New macro.
7852         * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
7853         (diagnostic_action_after_output): Likewise.
7854         * gcc.c (fatal_ice): New function.
7855         (execute): Use it instead of fatal.
7856         (fancy_abort): Likewise.
7857         * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
7858
7859 2006-03-22  Jeff Law  <law@redhat.com>
7860
7861         * loop-unroll.c (analyze_iv_to_split_insn): Handle
7862         iv_analyze_result returning false.
7863
7864 2006-03-22  Jie Zhang  <jie.zhang@analog.com>
7865
7866         * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
7867
7868 2006-03-22  Richard Henderson  <rth@redhat.com>
7869
7870         PR middle-end/26084
7871         * except.c (duplicate_eh_regions_0): New.
7872         (duplicate_eh_region_1): Duplicate the children of the node as
7873         well as the node itself.  Link them up properly.
7874         (duplicate_eh_region_2): Merge into ...
7875         (duplicate_eh_regions): ... here.  Take copy_region argument, and
7876         copy only a sub-tree if asked.  Simplify copying and fixup.
7877         (eh_region_outer_p): New.
7878         * except.h (duplicate_eh_regions): Update decl.
7879         (eh_region_outer_p): Declare.
7880         * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
7881         (lower_omp_master): Likewise.
7882         (lower_omp_ordered): Likewise.
7883         * tree-cfg.c (struct move_stmt_d): Add new_label_map.
7884         (move_stmt_r): Use it to remap labels.  Handle recursion vs
7885         remap_decls_p properly.
7886         (move_block_to_fn): Pass in new_label_map.  Remap RESX_EXPR.
7887         (find_outermost_region_in_block): New.
7888         (new_label_mapper): New.
7889         (move_sese_region_to_fn): Copy eh information to the new function
7890         properly.
7891         * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
7892         argument.
7893         * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
7894         number.
7895
7896 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
7897
7898         * doc/md.texi (-mshared): Mention that -mshared code can be linked
7899         into shared libraries.
7900
7901 2006-03-22  Richard Sandiford  <richard@codesourcery.com>
7902
7903         * doc/md.texi: Refer to i386/constraints.md instead of
7904         i386/predicates.md.
7905         * config/i386/constraints.md: New file, extracted from...
7906         * config/i386/predicates.md: ...here.
7907         * config/i386/i386.md: Include constraints.md.
7908
7909 2006-03-21  Jason Merrill  <jason@redhat.com>
7910
7911         * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
7912
7913         PR middle-end/20297
7914         * expr.c (init_block_move_fn): Force default visibility.
7915         (init_block_clear_fn): Likewise.
7916         * builtins.c (expand_builtin_fork_or_exec): Likewise.
7917         * targhooks.c (default_external_stack_protect_fail): Likewise.
7918
7919 2006-03-21  Richard Sandiford  <richard@codesourcery.com>
7920
7921         * config/mips/predicates.md (const_call_insn_operand): Allow direct
7922         calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
7923         * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
7924         Use TARGET_OLDABI instead of !TARGET_NEWABI.
7925         (loadgp): Use mips_current_loadgp_style.
7926         (loadgp_noshared): New pattern.
7927         (sibcall_internal): Use MIPS_CALL.
7928         (sibcall_value_internal): Likewise.
7929         (sibcall_value_multiple_internal): Likewise.
7930         (call_internal): Likewise.
7931         (call_value_internal): Likewise.
7932         (call_value_multiple_internal): Likewise.
7933         (call_split): Use MIPS_CALL and add an 'S' constraint.
7934         (call_value_split): Likewise.
7935         (call_value_multiple_split): Likewise.
7936         * config/mips/mips.opt (-mabicalls): Tweak docstring.
7937         (-mshared): New option.
7938         * config/mips/mips-protos.h (mips_loadgp_style): New enum.
7939         (mips_current_loadgp_style): Declare.
7940         * config/mips/mips.c (mips_classify_symbol): Avoid using
7941         SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS.  Use SYMBOL_GENERAL
7942         rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
7943         TARGET_ABSOLUTE_ABICALLS.
7944         (override_options): Adjust comments.  Improve the warning that is
7945         issued when -mabicalls and -G are used together.
7946         (mips_file_start): Remove comment.
7947         (mips_current_loadgp_style): New function.
7948         (mips_gnu_local_gp): New variable.
7949         (mips_emit_loadgp): Use mips_current_loadgp_style.  Handle
7950         LOADGP_ABSOLUTE.
7951         (mips_output_function_prologue): Use mips_current_laodgp_style.
7952         (mips_expand_prologue): Call mips_emit_loadgp before emitting
7953         the cprestore instruction.
7954         (mips_extra_live_on_entry): Fix reversed test.  Don't make $25
7955         live for TARGET_ABSOLUTE_ABICALLS.
7956         * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
7957         (ASM_SPEC): Pass down -mshared and -mno-shared.
7958         (MIPS_CALL): New macro.
7959         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
7960         definition.
7961         * doc/invoke.texi (-mabicalls): Update documentation.
7962         (-mshared): Document.
7963
7964 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
7965
7966         * config/ia64/unwind-hpux.c: New file.
7967         * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
7968
7969 2006-03-21  Steve Ellcey  <sje@cup.hp.com>
7970
7971         PR libgomp/26384
7972         * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
7973
7974 2006-03-21  Jeff Law  <law@redhat.com>
7975
7976         * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
7977         type conversions of a VR_VARYING source to a wider type.
7978
7979 2006-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7980
7981         * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
7982         tm_file on Solaris 10 and later.
7983         (sparc64-*-solaris2*): Likewise.
7984         (sparc-*-solaris2*): Likewise.
7985         * config/sol26.h: Rename to config/sol2-6.h.
7986         * config/sol2-10.h: New file.
7987
7988 2006-03-21  Andrew Pinski  <pinskia@physics.uc.edu>
7989
7990         PR tree-opt/26781
7991         * tree-ssa-pre.c (create_component_ref_by_pieces):
7992         Handle STRING_CST.
7993
7994 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
7995
7996         PR c++/26690
7997         * tree.c (get_callee_fndecl): If CALL is error_mark_node,
7998         return it immediately.
7999
8000 2006-03-21  Michael Matz  <matz@suse.de>
8001
8002         * genautomata.c (<struct state>, num_out_arcs, presence_signature):
8003         New members.
8004         (remove_arc, add_arc): Update num_out_arcs member.
8005         (set_out_arc_insns_equiv_num): Returns nothing instead of number
8006         of out arcs.
8007         (cache_presence): New function.
8008         (compare_states_for_equiv): New function.
8009         (state_is_differed): Don't take number of outargs, adjust callers.
8010         Use new invariant for speeding up.
8011         (init_equiv_class): Create initial classes based on sorted
8012         input.
8013         (partition_equiv_class): Don't track out_arcs_num.
8014         (evaluate_equiv_classes): Call cache_presence on all states and
8015         sort them.
8016
8017 2006-03-21  Bernd Schmidt  <bernd.schmidt@analog.com>
8018
8019         * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
8020         * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
8021         (bfin_valid_reg_p): Test for pseudos explicitly and use only
8022         REGNO_MODE_CODE_OK_FOR_BASE_P.  New args MODE and OUTER_CODE; all
8023         callers changed.
8024         * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
8025         (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
8026         (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
8027         (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8028         REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
8029         macros.
8030         (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
8031         REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
8032         (REGNO_REG_CLASS): ARGP is in PREGS.
8033         * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
8034         IREGS.
8035         (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
8036         to deal with those addresses.
8037         * addresses.h: New file.
8038         * caller-save.c: Include "addresses.h".
8039         (init_caller_save): Use new base_reg_class function.
8040         * rtl-factoring.c: Include "addresses.h".
8041         (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
8042         * recog.c: Include "addresses.h".
8043         (preprocess_constraints): Use new base_reg_class function.
8044         * regrename.c: Include "addresses.h".
8045         (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
8046         functions.  Keep track of a new var INDEX_CODE to compute valid
8047         classes.
8048         (replace_oldest_value_addr): Likewise.
8049         (replace_oldest_value_mem): Use base_reg_class.
8050         * reload.c: Include "addresses.h".
8051         (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
8052         (find_reloads): Use new base_reg_class function.
8053         (find_reloads_address): Likewise; also use regno_ok_for_base_p.
8054         (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
8055         all callers and prototype changed.
8056         * reload1.c: Include "addresses.h".
8057         (maybe_fix_stack_asms): Use base_reg_class.
8058         * regclass.c: Include "addresses.h".
8059         (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
8060         (init_reg_autoinc): Use new base_reg_class function.
8061         (record_reg_classes): Likewise.
8062         (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
8063         OUTER_CODE and INDEX_CODE.  All callers and prototype changed.
8064         Use new args to compute necessary class.
8065
8066         * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
8067         regrename.o, rtl-factoring.o): Update dependencies.
8068         * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
8069         (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
8070         (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
8071         REG_OK_FOR_INDEX_P): Delete documentation.
8072
8073 2006-03-21  Alexey Starovoytov  <alexey.starovoytov@sun.com>
8074
8075         * config.gcc (sparc-*-solaris2*): Change the default CPU setting
8076         from V7 to V9 for Solaris 7 and above.
8077
8078 2006-03-21  Toon Moene  <toon@moene.indiv.nluug.nl>
8079
8080         * doc/invoke.texi: Document new flag -fargument-noalias-anything.
8081         * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
8082         argument pointers may not alias any other storage.
8083         * common.opt: Define option -fargument-noalias-anything.
8084         * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
8085         alias semantics is specified by flag_argument_noalias > 2.
8086
8087 2006-03-20  Jeff Law  <law@redhat.com>
8088
8089         * tree-pass.h (pass_phi_only_copy_prop): Delete.
8090         (pass_phi_only_cprop): Declare.
8091         * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
8092         with phi_only_cprop
8093         * tree-ssa-dom.c (degenerate_phi_result): New function.
8094         (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
8095         (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
8096         (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
8097         (eliminate_degenerate_phis): Likewise.
8098         (pass_phi_only_cprop): New pass descriptor.
8099         * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
8100         support code.  Callers updated.
8101         (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
8102         (store_copy_prop): Likewise.
8103         (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
8104
8105 2006-03-20  Jason Merrill  <jason@redhat.com>
8106
8107         PR c++/21764
8108         * c-pragma.c (visstack): Move out of handle_pragma_visibility.
8109         (push_visibility, pop_visibility): Likewise.
8110         * c-pragma.h: Declare them.
8111
8112 2006-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8113
8114         * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
8115
8116         * config/sh/sh.c (find_regmode_weight): Change the type of the first
8117         parameter and use get_ebb_head_tail.
8118         (sh_md_init_global): Adjust uses of find_regmode_weight.
8119
8120 2006-03-20  Steven Bosscher  <stevenb.gcc@gmail.com>
8121
8122         * function.h (struct function) <x_tail_recursion_reentry>:
8123         Rename to x_stack_check_probe_note.
8124         (tail_recursion_reentry): Rename to stack_check_probe_note.
8125         * function.c: Replace tail_recursion_reentry with
8126         stack_check_probe_note everywhere.
8127         (expand_function_start): Only emit a note for
8128         stack_check_probe_note with -fstack-protect.
8129         * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
8130
8131         * emit-rtl.c (remove_unnecessary_notes): Remove.
8132         (pass_remove_unnecessary_notes): Remove.
8133         * rtl.h (remove_unnecessary_notes): Remove prototype.
8134         * final.c (final_start_function): Don't call remove_unnecessary_notes.
8135         * tree-pass.h (pass_remove_unnecessary_notes): Remove.
8136         * passes.c (pass_remove_unnecessary_notes): Don't run it.
8137
8138 2006-03-20  Andrew Pinski  <pinskia@physics.uc.edu>
8139
8140         PR tree-opt/26629
8141         * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
8142         (valid_in_set): Handle ARRAY_REF.
8143         Change "if min_variant or VH" to asserts.
8144         (create_component_ref_by_pieces): Handle ARRAY_REF.
8145         (create_expression_by_pieces): Likewise.
8146         (can_PRE_operation): ARRAY_REFs can now be PRE'd.
8147
8148 2006-03-20  David Edelsohn  <edelsohn@gnu.org>
8149
8150         * genpreds.c (write_insn_extra_address_constraint): Argument `c'
8151         is operand of switch, not str[0].
8152
8153 2006-03-20  Alan Modra  <amodra@bigpond.net.au>
8154
8155         * config/rs6000/rs6000.c (rs6000_handle_option): Use
8156         TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
8157
8158 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
8159
8160         * genpreds.c (write_tm_preds_h): Add semicolon and newline at
8161         end of insn_extra_address_constraint declaration.
8162
8163 2006-03-19  David Edelsohn  <edelsohn@gnu.org>
8164
8165         * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
8166         (no-sum-in-toc): Same.
8167         * config/rs6000/rs6000.c (rs6000_handle_option): Use new
8168         variables.
8169         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
8170         NO_FP_IN_TOC for -fPIC instead of mask.
8171
8172         * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
8173         (BOOT_LDFLAGS): Delete.
8174         (LDFLAGS): Delete.
8175         * config/rs6000/t-aix52: Same.
8176
8177         * config/rs6000/rs6000.md (store_multiple_power): Delete.
8178         (stmsi[345678]_power): New.
8179
8180 2006-03-17  Steve Ellcey  <sje@cup.hp.com>
8181
8182         * config/ia64/ia64.opt: Add empty line to end of file.
8183
8184 2006-03-17  Richard Guenther  <rguenther@suse.de>
8185
8186         PR middle-end/26721
8187         * builtins.c (get_pointer_alignment): For component style references
8188         adjust alignment to the component type alignment.  Make sure
8189         to adjust alignment for component access of constants.
8190
8191 2006-03-17  David Edelsohn  <edelsohn@gnu.org>
8192
8193         * config/rs6000/rs6000.md (strlensi): Emit barrier after
8194         unconditional jump.
8195
8196 2006-03-17  Paul Brook  <paul@codesourcery.com>
8197
8198         * doc/install.texi: Docuemnt --with-mode.
8199         * config.gcc: Add --with-mode for arm*-*-*.
8200         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
8201
8202 2006-03-17  J"orn Rennecke <joern.rennecke@st.com>
8203
8204         * sh.c (max_labelno_before_reorg): New variable.
8205         (sh_reorg): Initialize it.
8206         (find_barrier): Check max_labelno_before_reorg before using
8207         label_to_alignment.  Take length of explicit alignment insns
8208         into account.  When seeing a UNSPECV_CONST_END, return it.
8209
8210         * sh.c (fixup_mova): Set mode of affected label to QImode.
8211         (untangle_mova): New function.
8212         (find_barrier): Use it.  Check mode of label before decrementing
8213         num_mova.
8214         (sh_reorg): Likewise.
8215         Set mode of all insns back to VOIDmode.
8216
8217         * sh.c (MOVA_LABELREF): New macro.
8218         (mova_p, fixup_mova, sh_reorg): Use it.
8219         (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
8220         ADDR_DIFF_VEC matches mova.
8221
8222 2006-03-17  Steven Bosscher  <stevenb.gcc@gmail.com>
8223
8224         * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
8225         with ATTRIBUTE_UNUSED.
8226
8227 2006-03-17  Alexandre Oliva  <aoliva@redhat.com>
8228
8229         * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
8230         pointer, instead of assuming it is possible to derive the
8231         correct args size from a call insn.
8232
8233 2006-03-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8234
8235         * rtl.h (CONST_INT_P): Define.
8236         * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
8237         instead of GET_CODE(x) == CONST_INT.
8238         (vax_rtx_costs): Likewise.
8239         (vax_output_int_move): Likewise.
8240         (vax_output_int_add): Likewise.
8241         (legitimate_constant_address_p): Likewise.
8242         (index_term_p): Likewise.
8243         * config/vax/vax.h (PRINT_OPERAND): Likewise.
8244         * config/vax/vax.md (and<mode>3): Likewise.
8245         (ashrsi3): Likewise.
8246         (extv): Likewise.
8247         (movstricthi): Likewise.
8248         (movstrictqi): Likewise.
8249         (rotrsi3): Likewise.
8250         (five unnamed insns): Likewise.
8251
8252 2006-03-16  Geoffrey Keating  <geoffk@apple.com>
8253
8254         * doc/tm.texi (SDB and DWARF): Add extra parameter to
8255         ASM_OUTPUT_DWARF_OFFSET.  Use @var to indicate metavariables.
8256         * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
8257         * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
8258         Pass to ASM_OUTPUT_DWARF_OFFSET.
8259         * dwarf2out.c (debug_frame_section): New.
8260         (output_call_frame_info): Use debug_frame_section.  Pass it to
8261         dw2_asm_output_offset.
8262         (output_die): Pass appropriate section to dw2_asm_output_offset.
8263         (output_compilation_unit_header): Likewise.
8264         (output_pubnames): Likewise.
8265         (output_aranges): Likewise.
8266         (enum dw_val_class): Break dw_val_class_lbl_offset into
8267         dw_val_class_lineptr and dw_val_class_macptr.
8268         (add_AT_lbl_offset): Delete.
8269         (add_AT_lineptr): New.
8270         (add_AT_macptr): New.
8271         (AT_lbl): Expect a lineptr or macptr.
8272         (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
8273         (attr_checksum): Likewise.
8274         (same_dw_val_p): Likewise.
8275         (size_of_die): Likewise.
8276         (value_format): Likewise.
8277         (output_die): Likewise.
8278         (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
8279         add_AT_lbl_offset.
8280         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
8281         * config/i386/i386.c (x86_file_start): Call darwin_file_start.
8282         * config/darwin-protos.h (darwin_file_start): New.
8283         (darwin_asm_output_dwarf_offset): New.
8284         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
8285         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
8286         darwin_file_start.
8287         * config/darwin.c (darwin_emit_unwind_label): Don't output label
8288         if not EH section; simplify.
8289         (darwin_file_start): New.
8290         (darwin_asm_output_dwarf_offset): New.
8291         * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
8292         mark as 'debug'.
8293         (DEBUG_INFO_SECTION): Likewise.
8294         (DEBUG_ABBREV_SECTION): Likewise.
8295         (DEBUG_ARANGES_SECTION): Likewise.
8296         (DEBUG_MACINFO_SECTION): Likewise.
8297         (DEBUG_LINE_SECTION): Likewise.
8298         (DEBUG_LOC_SECTION): Likewise.
8299         (DEBUG_PUBNAMES_SECTION): Likewise.
8300         (DEBUG_STR_SECTION): Likewise.
8301         (DEBUG_RANGES_SECTION): Likewise.
8302         (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
8303         (ASM_OUTPUT_DWARF_OFFSET): New.
8304
8305 2006-03-16  Joseph S. Myers  <joseph@codesourcery.com>
8306
8307         * config.gcc (tm_defines): Always add to previous value rather
8308         than replacing it.
8309
8310 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
8311
8312         * config/mips/predicates.md (splittable_const_int_operand): New,
8313         split from move_operand.
8314         (splittable_symbolic_operand): New.
8315         (move_operand): Add commentary.  Use splittable_const_int_operand.
8316         Inline mips_atomic_symbolic_constant_p.
8317         * config/mips/mips.md: Add combine splitters for handling moves
8318         of splittable_const_int_operands and splittable_symbolic_operands.
8319         * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
8320         (mips_split_symbol): Declare.
8321         (mips_move_integer): Declare.
8322         * config/mips/mips.c (mips_split_p): Make global.
8323         (TARGET_MIN_ANCHOR_OFFSET): Override default.
8324         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
8325         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
8326         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
8327         (mips_offset_within_object_p): Handle block symbols.
8328         (mips_atomic_symbolic_constant_p): Delete.
8329         (mips_cannot_force_const_mem): Return false for constants that
8330         mips_legitimize_move can handle.
8331         (mips_use_blocks_for_constant_p): New function.
8332         (mips_split_symbol): Make global.
8333         (mips_move_integer): Likewise.  Add a temporary register argument.
8334         (mips_legitimize_const_move): Use splittable_const_int_operand and
8335         splittable_symbolic_operand.
8336         (mips_use_anchors_for_symbol_p): New function.
8337         * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
8338         (mips_split_p): Declare.
8339
8340 2006-03-16  Richard Sandiford  <richard@codesourcery.com>
8341
8342         * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
8343         (mips*-*-linux*): Likewise.
8344
8345 2006-03-16  Roger Sayle  <roger@eyesopen.com>
8346             Daniel Speyer  <dspeyer@wam.umd.edu>
8347
8348         PR middle-end/18259
8349         * tree-dump.c (dump_real): New function.
8350         (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
8351         * Makefile.in (REAL_H): New macro for dependencies on real.h.
8352         (tree-dump.o): Add $(REAL_H) to the dependencies.
8353
8354 2006-03-16  Roger Sayle  <roger@eyesopen.com>
8355
8356         PR middle-end/21781
8357         * real.c (real_from_string): If the mantissa is zero, don't bother
8358         parsing the exponent as the result should always be zero.
8359
8360 2006-03-16  Andreas Krebbel  <krebbel1@de.ibm.com>
8361
8362         * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
8363
8364 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8365
8366         * config/ia64/ia64.c (stops_p): Added explicit initialization.
8367         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
8368         ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
8369         ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
8370         ia64_sched_finish_global): New static functions to implement
8371         hooks from gcc_target.sched.
8372         (spec_check_no, max_uid, pending_data_specs): New static variables.
8373         (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
8374         ia64_spec_check_src_p): New static functions.
8375         (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
8376         (TARGET_SCHED_ADJUST_COST): Removed.
8377         (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
8378         TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
8379         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
8380         TARGET_SCHED_GEN_CHECK,
8381         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
8382         TARGET_SCHED_SET_SCHED_FLAGS): New macros.
8383         (update_set_flags, group_barrier_needed, set_src_needs_barrier):
8384         Fixed to handle speculation checks.
8385         (rtx_needs_barrier): Fixed to handle speculative loads and
8386         their checks.
8387         (ia64_variable_issue): Added code to count speculative loads and their
8388         checks.
8389         (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
8390         speculative loads.
8391         (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
8392         New enumerations.
8393         (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
8394         New constants.
8395         (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
8396         (ia64_reorg): Reset stops_p to NULL after it is freed.
8397         * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
8398         UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
8399         (itanium_class): chk_s renamed to chk_s_i.  New constants: chk_s_f,
8400         chk_a.
8401         (data_speculative, control_speculative, check_load): New attributes.
8402         (mov<mode>_advanced, mov<mode>_speculative,
8403         mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
8404         zero_extend<mode>di2_speculative,
8405         zero_extend<mode>di2_speculative_advanced): New patterns for
8406         data and control speculative loads.
8407         (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
8408         check loads.
8409         (advanced_load_check_clr_<mode>, speculation_check_<mode>):
8410         New pattern for data and control speculation checks.
8411         (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
8412         ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
8413         reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
8414         Auxiliary definitions for the patterns.
8415         * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
8416         1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
8417         constraints.
8418         (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
8419         for speculation.
8420         (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
8421         * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
8422         2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
8423         New resource constraints.
8424         (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
8425         for speculation.
8426         (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
8427         * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
8428         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
8429         msched-in-control-spec, msched-ldc, msched-control-ldc,
8430         msched-spec-verbose, msched-prefer-non-data-spec-insns,
8431         msched-prefer-non-control-spec-insns,
8432         msched-count-spec-in-critical-path): New flags to tune speculative
8433         scheduling.
8434         * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
8435         msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
8436         msched-in-control-spec, msched-ldc, msched-control-ldc,
8437         msched-spec-verbose, msched-prefer-non-data-spec-insns,
8438         msched-prefer-non-control-spec-insns,
8439         msched-count-spec-in-critical-path): Document new flags.
8440
8441 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8442
8443         * target.h (struct spec_info_def): New opaque declaration.
8444         (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
8445         speculate_insn, needs_block_p, gen_check,
8446         first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
8447         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
8448         TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
8449         TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
8450         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
8451         TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
8452         gcc_target.sched.
8453         (TARGET_SCHED): Use new macros.
8454         * rtl.h (copy_DEPS_LIST_list): New prototype.
8455         * sched-int.h (struct sched_info): Change signature of new_ready field,
8456         adjust all initializations. New fields: add_remove_insn,
8457         begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
8458         region_head_or_leaf_p.
8459         (struct spec_info_def): New structure declaration.
8460         (spec_info_t): New typedef.
8461         (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
8462         recovery_block, orig_pat.
8463         (glat_start, glat_end): New variables declaraions.
8464         (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
8465         New access macros.
8466         (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
8467         DETACH_LIFE_INFO, USE_GLAT.
8468         (enum SPEC_SCHED_FLAGS): New enumeration.
8469         (NOTE_NOTE_BB_P): New macro.
8470         (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
8471         attach_life_info, debug_spec_status, check_reg_live): New functions.
8472         (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
8473         all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
8474         sched-ebb.c
8475         (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
8476         * ddg.c (get_block_head_tail): Adjust all uses.
8477         * modulo-sched.c (get_block_head_tail): Adjust all uses.
8478         (sms_sched_info): Initialize new fields.
8479         (contributes_to_priority): Removed.
8480         * haifa-sched.c (params.h): New include.
8481         (get_block_head_tail): Adjust all uses.
8482         (ISSUE_POINTS): New macro.
8483         (glat_start, glat_end): New global variables.
8484         (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
8485         nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
8486         old_last_basic_block, before_recovery, current_sched_info_var,
8487         rgn_n_insns, luid): New static variables.
8488         (insn_cost1): New function.  Move logic from insn_cost to here.
8489         (find_insn_reg_weight1): New function.  Move logic from
8490         find_insn_reg_weight to here.
8491         (reemit_notes, move_insn, max_issue): Change signature.
8492         (move_insn1): Removed.
8493         (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
8494         extend_bb): New static functions to support extension of scheduler's
8495         data structures.
8496         (generate_recovery_code, process_insn_depend_be_in_spec,
8497         begin_speculative_block, add_to_speculative_block,
8498         init_before_recovery, create_recovery_block, create_check_block_twin,
8499         fix_recovery_deps): New static functions to support
8500         generation of recovery code.
8501         (fix_jump_move, find_fallthru_edge, dump_new_block_header,
8502         restore_bb_notes, move_block_after_check, move_succs): New static
8503         functions to support ebb scheduling.
8504         (init_glat, init_glat1, attach_life_info1, free_glat): New static
8505         functions to support handling of register live information.
8506         (associate_line_notes_with_blocks, change_pattern, speculate_insn,
8507         sched_remove_insn, clear_priorities, calc_priorities, bb_note,
8508         add_jump_dependencies): New static functions.
8509         (check_cfg, has_edge_p, check_sched_flags): New static functions for
8510         consistancy checking.
8511         (debug_spec_status): New function to call from debugger.
8512         (priority): Added code to handle speculation checks.
8513         (rank_for_schedule): Added code to distinguish speculative instructions.
8514         (schedule_insn): Added code to handle speculation checks.
8515         (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
8516         Fixed to handle ebbs.
8517         (move_insn): Added code to handle ebb scheduling.
8518         (max_issue): Added code to use ISSUE_POINTS of instructions.
8519         (choose_ready): Added code to choose between speculative and
8520         non-speculative instructions.
8521         (schedule_block): Added code to handle ebb scheduling and scheduling of
8522         speculative instructions.
8523         (sched_init): Initialize new variables.
8524         (sched_finish): Free new variables.  Print statistics.
8525         (try_ready): Added code to handle speculative instructions.
8526         * lists.c (copy_DEPS_LIST_list): New function.
8527         * sched-deps.c (extend_dependency_caches): New function.  Move logic
8528         from create_dependency_caches to here.
8529         (get_dep_weak, ds_merge): Make global.
8530         * genattr.c (main): Code to output prototype for
8531         dfa_clear_single_insn_cache.
8532         * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
8533         (output_dfa_clean_insn_cache_func): Code to output
8534         dfa_clear_single_insn_cache function.
8535         * sched-ebb.c (target_n_insns): Remove.  Adjust all users to use
8536         n_insns.
8537         (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
8538         Removed.
8539         (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
8540         New static variables.
8541         (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
8542         fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
8543         struct sched_info.
8544         (ebb_sched_info): Initialize new fields.
8545         (get_block_head_tail): Adjust all uses.
8546         (compute_jump_reg_dependencies): Fixed to use glat_start.
8547         (schedule_ebb): Code to remove unreachable last block.
8548         (schedule_ebbs): Added code to update register live information.
8549         * sched-rgn.c (region_sched_info): Initialize new fields.
8550         (get_block_head_tail): Adjust all uses.
8551         (last_was_jump): Removed.  Adjust users.
8552         (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
8553         add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
8554         Implement new hooks.
8555         (check_dead_notes1): New static function.
8556         (struct region): New fields: dont_calc_deps, has_real_ebb.
8557         (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
8558         (BB_TO_BLOCK): Fixed to handle EBBs.
8559         (EBB_FIRST_BB, EBB_LAST_BB): New macros.
8560         (ebb_head): New static variable.
8561         (debug_regions, contributes_to_priority): Fixed to handle EBBs.
8562         (find_single_block_regions, find_rgns, find_more_rgns): Initialize
8563         new fields.
8564         (compute_dom_prob_ps): New assertion.
8565         (check_live_1, update_live_1): Fixed to work with glat_start instead of
8566         global_live_at_start.
8567         (init_ready_list): New assertions.
8568         (can_schedule_ready_p): Split update code to begin_schedule_ready.
8569         (new_ready): Add support for BEGIN_CONTROL speculation.
8570         (schedule_insns): Fixed code that updates register live information
8571         to handle EBBs.
8572         (schedule_region): Fixed to handle EBBs.
8573         (init_regions): Use extend_regions and check_dead_notes1.
8574         * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
8575         PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
8576         * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
8577         TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
8578         TARGET_SCHED_GEN_CHECK,
8579         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
8580         TARGET_SCHED_SET_SCHED_FLAGS): Document.
8581         * doc/invoke.texi (max-sched-insn-conflict-delay,
8582         sched-spec-prob-cutoff): Document.
8583
8584 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8585
8586         * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
8587         inter_tick, queue_index.
8588         (struct sched_info): Change signature of init_ready_list field.
8589         Adjust all initializations.
8590         (RESOLVED_DEPS): New access macro.
8591         (ready_add): Remove prototype.
8592         (try_ready): Add prototype.
8593         * sched-rgn.c (init_ready_list): Use try_ready.
8594         (schedule_region): Initialize
8595         current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
8596         * sched-ebb.c (new_ready): Remove.  Adjust ebb_sched_info.
8597         (init_ready_list): Use try_ready.
8598         (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
8599         * lists.c (remove_list_elem): Remove `static'.
8600         (remove_free_INSN_LIST_elem): New function.
8601         * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
8602         * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
8603         (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
8604         New constants.
8605         (readyp): New variable.
8606         (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
8607         change_queue_index, resolve_dep): New static functions.
8608         (try_ready): New function.  Adjust callers in sched-rgn.c and
8609         sched-ebb.c to use it instead of ready_add.
8610         (clock_var): Move at the begining of file.
8611         (rank_for_schedule): Fix typo.
8612         (queue_insn): Add assertion.  Handle QUEUE_INDEX.
8613         (ready_lastpos): Enforce assertion.
8614         (ready_add): Make it static.  Handle QUEUE_INDEX.  Add new argument,
8615         update all callers.
8616         (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
8617         (schedule_insn): Rewrite to use try_ready and resolve_dep.
8618         (queue_to_ready): Use free_INSN_LIST_list.
8619         (early_queue_to_ready): Fix typo.
8620         (schedule_block): Init readyp.  Move init_ready_list call after the
8621         initialization of clock_var.  Fix error in rejecting insn by
8622         targetm.sched.dfa_new_cycle.  Add call to fix_inter_tick.  Remove code
8623         that previously corrected INSN_TICKs.  Add code for handling
8624         QUEUE_INDEX.
8625         (set_priorities): Fix typo.
8626         (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
8627         Clarify comment and code that keeps current_sched_info->next_tail
8628         non-null.
8629
8630 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8631
8632         * sched-rgn.c (extend_rgns): New static function.
8633         (find_rgns): Use it.
8634         (gather_region_statistics, print_region_statistics): New static
8635         functions.
8636         * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
8637         * doc/invoke.texi (max-sched-extend-regions-iters): Document.
8638
8639 2006-03-16  Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
8640             Andrey Belevantsev <abel@ispras.ru>
8641
8642         * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
8643         * lists.c (unused_deps_list): New variable.
8644         (free_list): Add assertions to verify the proper distinguishing
8645         between INSN_LISTs and DEPS_LISTs.
8646         (find_list_elem, remove_list_elem, remove_list_node): New static
8647         functions.
8648         (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
8649         remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
8650         remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
8651         (alloc_INSN_LIST): Assert that the list we're working on is indeed
8652         an INSN_LIST.
8653         (free_INSN_LIST_node): Likewise.
8654         * modulo-sched.c (current_sched_info): Initialize flags field.
8655         * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
8656         * rtl.def (DEPS_LIST): Define.
8657         * rtl.h: Declare new functions from lists.c.
8658         * sched-deps.c (spec_dependency_cache): New static variable.
8659         (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
8660         (add_dependence): Change return type to void.  Move the logic to ...
8661         (add_or_update_back_dep_1): ... here.  Handle speculative dependencies.
8662         (delete_all_dependences): Add comment about forward_dependency_cache.
8663         Handle spec_dependency_cache.  Handle DEPS_LISTs.
8664         (fixup_sched_groups): Clarify the change of priority of output
8665         and anti dependencies.
8666         (sched_analyze_2): Adjust add_dependence calls to create data
8667         speculative dependence.
8668         (add_forward_dependence): Renamed to add_forw_dep, change prototype.
8669         Adjust all callers.  Handle DEPS_LISTS.
8670         (compute_forward_dependences): Use add_forw_dep.  Sort LOG_LINKs in
8671         presence of speculation.
8672         (init_dependency_caches, free_dependency_caches):
8673         Handle spec_dependency_cache.
8674         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
8675         estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
8676         New static functions.
8677         (add_or_update_back_dep, add_or_update_back_forw_dep,
8678         add_back_forw_dep, delete_back_forw_dep): New functions.
8679         * sched-int.h (ds_t, dw_t): New typedefs.
8680         (struct sched_info): Add new field flags.
8681         (struct haifa_insn_data): Add new bitfield has_internal_dep.
8682         Prototype new sched-deps.c functions.
8683         (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
8684         (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
8685         MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
8686         BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
8687         SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
8688         SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
8689         New constants.
8690         (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
8691         New enums.
8692         * sched-rgn.c (current_sched_info): Initialize flags field.
8693         (schedule_insns): Initialize current_sched_info before the sched_init
8694         call.
8695         * sched-ebb.c (current_sched_info): Initialize flags field.
8696         (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
8697         Call add_or_update_back_dep instead of add_dependence.
8698         Create control speculative dependencies.
8699         (schedule_insns): Initialize current_sched_info before the sched_init
8700         call.
8701
8702 2006-03-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8703
8704         * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
8705         fs->signal_frame.
8706         (sh_fallback_frame_state): Likewise.
8707
8708 2006-03-15  Geoffrey Keating  <geoffk@apple.com>
8709
8710         * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
8711         Do switch on default_use_cxa_atexit.
8712         (powerpc*-*-darwin*): Build crt2.o on powerpc.
8713         * config/darwin-crt3.o: New.
8714         * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
8715         to 10.3.  Pass '-multiply_defined suppress' if crt3.o is in use.
8716         (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
8717         OS version.
8718         * config/rs6000/t-darwin: Move crt2.o building to here.
8719         * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
8720         Mac OS version for using __cxa_get_exception_ptr.  Don't test versions
8721         of __cxa_atexit.
8722
8723 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8724
8725         * config/vax/vax.c (nonindexed_address_p): Change logical negation
8726         from '! xxx' to '!xxx' for coding-style conformance.
8727         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
8728         (EXTRA_CONSTRAINT): Likewise.
8729         * config/vax/vax.md (four unnamed insns): Likewise.
8730
8731 2006-03-15  Paul Brook  <paul@codesourcery.com>
8732
8733         * config/arm/arm.c (minipool_pad): New.
8734         (add_minipool_forward_ref): Include pool alignment padding in address
8735         calculation.
8736         (push_minipool_fix): Set minipool_pad.
8737         (minipool_pad): Ditto.
8738
8739 2006-03-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8740
8741         * config/vax/vax.c (split_quadword_operands): Use MEM_P()
8742         instead of GET_CODE() == MEM and REG_P() instead of
8743         GET_CODE() == REG.
8744         (print_operand_address): Likewise.
8745         (vax_address_cost): Likewise.
8746         (vax_rtx_costs): Likewise.
8747         (vax_notice_update_cc): Likewise.
8748         (vax_output_int_add): Likewise.
8749         (INDEX_REGISTER_P): Likewise.
8750         (BASE_REGISTER_P): Likewise.
8751         (nonindexed_address_p): Likewise.
8752         (vax_mode_dependent_address_p): Likewise.
8753         * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
8754         (PRINT_OPERAND): Likewise.
8755         * config/vax/vax.md (ashlsi3): Likewise.
8756         (ashlsi3): Likewise.
8757         (some more unnamed insns): Likewise.
8758
8759 2006-03-15  Kazu Hirata  <kazu@codesourcery.com>
8760
8761         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
8762         iterator-style macro.
8763         (mark_control_dependent_edges_necessary): Update the use of
8764         EXECUTE_IF_CONTROL_DEPENDENT.
8765
8766 2006-03-15  J"orn Rennecke <joern.rennecke@st.com>
8767
8768         * config/sh/predicates.md (cache_address_operand): Special.
8769         (ua_address_operand): Likewise.
8770
8771 2006-03-15  Zdenek Dvorak <dvorakz@suse.cz>
8772
8773         * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
8774         loop notes.
8775         * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
8776
8777 2006-03-15  Andreas Schwab  <schwab@suse.de>
8778
8779         * gensupport.c (identify_predicable_attribute): Don't free p_false
8780         when it is still in use.
8781
8782 2006-03-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
8783
8784         * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
8785         the default setting here.
8786
8787 2006-03-14  Steven Bosscher  <stevenb.gcc@gmail.com>
8788
8789         * tree-pass.h (pass_cfg): Remove.
8790         * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
8791         * passes.c (pass_cfg): Don't run it.
8792
8793 2006-03-14  Kazu Hirata  <kazu@codesourcery.com>
8794
8795         * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
8796         * reg-stack.c (stack_regs_mentioned_data): Change the type to
8797         VEC(char,heap) *.
8798         (stack_regs_mentioned): Update the uses of
8799         stack_regs_mentioned_data.  Don't access the array beyond its
8800         end.
8801         (reg_to_stack): Update the uses of stack_regs_mentioned_data.
8802         Don't include gt-reg-stack.h.
8803
8804         * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
8805         * system.h (UNALIGNED_WORD_ASM_OP): Poison.
8806
8807         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
8808
8809         PR middle-end/26684
8810         * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
8811         STACK_REGS.
8812
8813 2006-03-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8814
8815         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
8816
8817 2006-03-14  Richard Guenther  <rguenther@suse.de>
8818
8819         PR tree-optimization/26672
8820         * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
8821         SSA form.
8822
8823 2006-03-14  Richard Guenther  <rguenther@suse.de>
8824
8825         PR tree-optimization/26667
8826         * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
8827         node for the callees.  Always allow inlining if it will shrink
8828         the function size.
8829
8830 2006-03-14  Richard Guenther  <rguenther@suse.de>
8831
8832         PR middle-end/26659
8833         * builtins.c (get_pointer_alignment): Prefer alignment
8834         information from decls over that from types.
8835
8836 2006-03-14  Andrew Pinski  <pinskia@physics.uc.edu>
8837
8838         PR target/26657
8839         * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
8840
8841 2006-03-14  Joseph S. Myers  <joseph@codesourcery.com>
8842
8843         * config/rs6000/rs6000.opt (mdlmzb): New option.
8844         (msched-prolog, msched-epilog): Use Var not Mask.
8845         * doc/invoke.texi (-mdlmzb): Document.
8846         * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
8847         MASK_SCHED_PROLOG.
8848         (rs6000_override_options): Enable -mdlmzb for 405 and 440.
8849         * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
8850
8851 2006-03-13  Uttam Pawar  <uttamp@us.ibm.com>
8852
8853         PR rtl-optimization/25739
8854         * bt-load.c (augment_live_range): Free tos pointer.
8855
8856         * gensupport.c (identify_predicable_attribute): Free
8857         p_false pointer.
8858         * gcov.c (create_file_names): Free name pointer.
8859
8860 2006-03-13  Roger Sayle  <roger@eyesopen.com>
8861
8862         PR middle-end/26557
8863         * stmt.c (emit_case_nodes): Handle the case where the index is a
8864         CONST_INT, where the comparison mode is specified by the index type.
8865
8866 2006-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8867
8868         * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
8869         is defined.
8870
8871 2006-03-13  Richard Sandiford  <richard@codesourcery.com>
8872
8873         * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
8874         (*branch_fp_inverted): Likewise.
8875
8876 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
8877
8878         PR middle-end/25989
8879         * omp-low.c (expand_omp_for_generic): Mark istart0
8880         and iend0 as addressable.
8881
8882 2006-03-13  Jie Zhang  <jie.zhang@analog.com>
8883
8884         * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
8885
8886 2006-03-13  Jeff Law  <law@redhat.com>
8887
8888         * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
8889         virtual operands are interesting.
8890         (vrp_visit_stmt): Corresponding changes.
8891
8892 2006-03-13  Bernd Schmidt  <bernd.schmidt@analog.com>
8893
8894         * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
8895         of RETS.
8896         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
8897         TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
8898         * config/bfin/crti.S: Use it instead of __PIC__.
8899         * config/bfin/crtn.S: Likewise.
8900
8901         * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
8902         call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
8903         not if flag_pic.
8904         Lose 'G' modifier for call operand.
8905         * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
8906         recognize 'G' modifier.
8907
8908 2006-03-13  Eric Botcazou  <ebotcazou@adacore.com>
8909
8910         PR middle-end/18859
8911         * gimplify.c (gimplify_switch_expr): Discard empty ranges.
8912         * stmt.c (expand_case): Likewise.
8913
8914 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8915
8916         PR rtl-optimization/26254
8917         * loop-invariant.c (seq_insns_valid_p): New function.
8918         (move_invariant_reg): Only emit new code if it is valid.
8919
8920 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8921
8922         * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
8923         Removed.
8924         (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
8925         (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
8926         (commit_one_edge_insertion): Do not look for loop notes.
8927
8928 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8929
8930         * jump.c (follow_jumps): Do not check for loop notes.  Move check for
8931         flag_test_coverage out of loop.
8932
8933 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8934
8935         * final.c (shorten_branches): Remove outdated comment, and turn
8936         the if branch that guards it to continue.
8937
8938 2006-03-13  Zdenek Dvorak <dvorakz@suse.cz>
8939
8940         * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
8941         * cfgloop.h (struct loop): Remove unused fields.
8942
8943 2006-03-13  Kazu Hirata  <kazu@codesourcery.com>
8944
8945         * doc/invoke.texi (-fdump-rtl-loop): Remove.
8946         (-dL, -fdump-rtl-loop2): Update the dump file names
8947
8948         * doc/invoke.texi: Update dump file names.
8949
8950 2006-03-12  Steven Bosscher  <stevenb.gcc@gmail.com>
8951
8952         * predict.c (estimate_probability): Remove.
8953         * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
8954         * basic-block.h (estimate_probability): Remove prototype.
8955         * passes.c (finish_optimization_passes): Dump branch prediction or
8956         profiling heuristics to the .profile tree dump.
8957         (init_optimization_passes): Unqueue pass_branch_prob.
8958
8959         * doc/invoke.texi (-fdump-rtl-bp): Remove.
8960
8961 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
8962
8963         * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
8964         * rtl.h (LABEL_NEXTREF): Remove field accessor.
8965
8966 2006-03-11  Eric Botcazou  <ebotcazou@adacore.com>
8967
8968         * function.h (frame_offset_overflow): Declare.
8969         * function.c (frame_offset_overflow): New function.
8970         (assign_stack_local_1): Call it to detect that the offset overflows.
8971         * cfgexpand.c (alloc_stack_frame_space): Likewise.
8972
8973 2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>
8974
8975         * config/sh/sh.c: Include alloc-pool.h.
8976         (label_ref_list_pool): New alloc pool.
8977         (label_ref_list_t): New type for lists of labels.
8978         (struct pool_node): Make wend a label_ref_list_t.
8979         (add_constant): Use the new type, eradicate LABEL_NEXTREF
8980         references.
8981         (dump_table): Likewise.
8982         (sh_reorg): Set up the alloc pool before using add_constant and
8983         dump_table, and destroy it when finishing.
8984
8985 2006-03-11  Richard Sandiford  <richard@codesourcery.com>
8986
8987         * config/mips/mips.c: Remove redundant comment.
8988
8989 2006-03-10  Jason Merrill  <jason@redhat.com>
8990
8991         PR c/26004
8992         * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
8993         the target was declared 'register'.
8994
8995 2006-03-10  Adam Nemet  <anemet@caviumnetworks.com>
8996
8997         * genpreds.c (write_insn_constraint_len): Change definition of
8998         insn_constraint_len to return size_t to match the declaration.
8999
9000 2006-03-10  DJ Delorie  <dj@redhat.com>
9001
9002         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
9003         start at zero.
9004         (m32c_expand_insv): Fix test for an AND mask.
9005
9006 2006-03-10  Richard Guenther  <rguenther@suse.de>
9007
9008         PR middle-end/26565
9009         * builtins.c (get_pointer_alignment): Handle component
9010         references for field alignment.
9011
9012 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
9013
9014         * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
9015         when building with libgloss.
9016         (sh*elf): Implement --without-fp option.
9017         (sh64-superh-linux*): Don't multilib.
9018
9019 2006-03-10  J"orn Rennecke <joern.rennecke@st.com>
9020
9021         * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
9022
9023 2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>
9024
9025         * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
9026         Set it when one of the replacement functions returned true.
9027         Return TODO_cleanup_cfg if cfgchanged is true.
9028         (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
9029
9030 2006-03-09  Adam Nemet  <anemet@caviumnetworks.com>
9031
9032         * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
9033         instead of gen_lowpart.
9034
9035 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
9036
9037         * config/mips/mips-protos.h (mips_output_conditional_branch): Change
9038         interface.
9039         (mips_output_order_conditional_branch): Declare.
9040         * config/mips/mips.h (MIPS_BRANCH): New macro.
9041         * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
9042         for the comparison.  Use gen_condjump.
9043         (mips_output_conditional_branch): Rework interface to take the
9044         asm templates for a direct branch and the inverse of a direct branch.
9045         (mips_output_order_conditional_branch): New function.
9046         (mips_builtin_branch_and_move): New function.
9047         (mips_expand_builtin_compare): Use it.  Use VOIDmode for the
9048         branch condition.  Use gen_single_cc as the condition for
9049         __builtin_mips_upper_* or __builtin_mips_lower_*.
9050         (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
9051         Use VOIDmode for the branch condition.
9052         * config/mips/predicates.md (order_operator): New predicate.
9053         * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
9054         (branch_fp): Rename to...
9055         (*branch_fp): ...this.  Remove mode from comparison operator.
9056         Use new mips_output_conditional_branch interface.
9057         (branch_fp_inverted): Rename to...
9058         (*branch_fp_inverted): ...this and update as for *branch_fp.
9059         (*branch_zero<mode>): Rename to...
9060         (*branch_order<mode>): ...this.  Remove mode from comparison operator.
9061         Use mips_output_order_conditional_branch.  Only accept ordered
9062         comparisons.
9063         (*branch_zero<mode>_inverted): Rename to...
9064         (*branch_order<mode>_inverted): ...this and update as for
9065         *branch_order<mode>.
9066         (*branch_equality<mode>): Accept zero as the second operand to
9067         the equality operator.  Use the new mips_output_conditional_branch
9068         interface.
9069         (*branch_equality<mode>_inverted): Likewise.
9070         (condjump): New expander.
9071         * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
9072         operator.
9073         * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
9074         (bc1any2t, bc1any2f): Likewise.
9075         (single_cc): New expander.
9076         (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
9077
9078 2006-03-09  Richard Sandiford  <richard@codesourcery.com>
9079
9080         * doc/md.texi: Update documentation of MIPS constraints.
9081         * config/mips/constraints.md: New file.
9082         * config/mips/mips.md: Include it.
9083         * config/mips/mips.c (mips_char_to_class): Delete.
9084         (override_options): Don't initialize mips_char_to_class.
9085         * config/mips/mips.h (mips_char_to_class): Delete.
9086         (REG_CLASS_FROM_LETTER): Delete.
9087         (CONST_OK_FOR_LETTER_P): Delete.
9088         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9089         (EXTRA_CONSTRAINT_Y): Delete.
9090         (EXTRA_CONSTRAINT_STR): Delete.
9091         (CONSTRAINT_LEN): Delete.
9092         (EXTRA_MEMORY_CONSTRAINT): Delete.
9093
9094 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
9095
9096         * tree-cfg.c (move_block_to_fn): Remove the statements from the
9097         original fn's eh regions.
9098
9099 2006-03-09  Eric Botcazou  <ebotcazou@adacore.com>
9100
9101         * fold-const.c (build_range_check): Make sure to use a valid type to
9102         apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
9103         transformation.
9104
9105         (range_predecessor): New static function.
9106         (range_successor): Likewise.
9107         (merge_ranges): Use them to compute predecessors and successors of
9108         range bounds.
9109
9110 2006-03-09  Roger Sayle  <roger@eyesopen.com>
9111
9112         PR middle-end/26561
9113         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
9114         X op C3, consider whether C3 overflows towards +Inf or -Inf.
9115
9116 2006-03-08  DJ Delorie  <dj@redhat.com>
9117
9118         * config/m32c/addsub.md (addqi3): Disparage a0/a1.
9119         (addpsi3): Expand to include memory operands.  Remove
9120         reload-specific splits.
9121         * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
9122         (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
9123         (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
9124         (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
9125         (shift1_qi, shift1_hi, insv): New.
9126         * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
9127         (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
9128         cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
9129         cond_to_int): New.
9130         * config/m32c/m32c-protos.h: Update as needed.
9131         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
9132         default the Rcr, Rcl, Raw, and Ral constraints.  Add Ra0 and Ra1.
9133         Fail for unrecognized R* constraints.
9134         (m32c_cannot_change_mode_class): Be more picky about pseudos.
9135         (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
9136         (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
9137         Add Sp constraint.
9138         (m32c_init_libfuncs): New.
9139         (m32c_legitimate_address_p): Add debug wrapper.
9140         (m32c_rtx_costs): New.
9141         (m32c_address_cost): New.
9142         (conversions): Add 'B' prefix.
9143         (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
9144         operands, or word regnames for QI operands.  'B' prints bit
9145         position.
9146         (m32c_expand_setmemhi): New.
9147         (m32c_expand_movmemhi): New.
9148         (m32c_expand_movstr): New.
9149         (m32c_expand_cmpstr): New.
9150         (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
9151         (m32c_expand_neg_mulpsi3): Handle non-ints.
9152         (m32c_cmp_flg_0): New.
9153         (m32c_expand_movcc): New.
9154         (m32c_expand_insv): New.
9155         (m32c_scc_pattern): New.
9156         * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS.  Take
9157         a0/a1 out of SIregs.
9158         (STORE_FLAG_VALUE): New.
9159         * config/m32c/m32c.md: Add unspecs for string moves.  Define various mode and
9160         code macros.
9161         (no_insn): New.
9162         * config/m32c/mov.md: Make constraints more liberal.
9163         (zero_extendqihi2): Optimize r0/r1 case.
9164         * config/m32c/muldiv.md (mulpsi3): Check for intvals.
9165         * config/m32c/predicates.md (m32c_any_operand): New.
9166         (m32c_nonimmediate_operand): New.
9167         (m32c_hl_operand): New.
9168         (m32c_r3_operand): New.
9169         (ap_operand): New.
9170         (ma_operand): New.
9171         (memsym_operand): New.
9172         (memimmed_operand): New.
9173         (a_qi_operand): New.
9174         (m32c_eqne_operator): New.
9175         (m32c_1bit8_operand): New.
9176         (m32c_1bit16_operand): New.
9177         (m32c_1mask8_operand): New.
9178         (m32c_1mask16_operand): New.
9179         * config/m32c/blkmov.md: New file.
9180         * config/m32c/t-m32c (MD_FILES): Add blkmov.
9181
9182 2006-03-08  Andreas Tobler  <a.tobler@schweiz.ch>
9183
9184         * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
9185         unsigned to fix signed/unsigned comparison issue in
9186         DWARF2_FRAME_REG_OUT.
9187         (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
9188         unsigned comparison issue in DWARF2_FRAME_REG_OUT.
9189
9190         * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
9191         of ptr into the ENABLE_CHECKING section.
9192
9193 2006-03-08  Jeff Law  <law@redhat.com>
9194
9195         * tree-vrp.c (infer_value_range): Only count pointer uses
9196         and dereferences if -fdelete-null-pointer-checks is enabled.
9197
9198         * tree-vrp.c (find_assert_locations): Infer value ranges for
9199         single use pointers, but do not create ASSERT_EXPRs for them.
9200         When a non-null range is inferred for a pointer, backwards
9201         propagate that range to other equivalent pointers through the
9202         use-def chain.
9203
9204 2006-03-08  Paolo Bonzini  <bonzini@gnu.org>
9205
9206         PR bootstrap/26500
9207         * Makefile.in (dvi, html, install-info): Invoke the corresponding
9208         language hook targets.
9209         * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
9210         objcp/Make-lang.in: Create stub rules for dvi, html, install-info
9211         if language hook targets were missing.
9212
9213 2006-03-07  Zdenek Dvorak <dvorakz@suse.cz>
9214
9215         * tree-ssa-opfinalize.h: Removed.
9216         * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
9217         dependency.
9218         * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
9219         (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
9220         INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
9221         add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
9222         finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
9223         finalize_ssa_v_must_def_ops): New.
9224
9225 2006-03-07  Kenneth Zadeck <zadeck@naturalbridge.com>
9226
9227         * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
9228         block as parameter.
9229
9230 2006-03-07  Geoffrey Keating  <geoffk@apple.com>
9231
9232         * varasm.c (assemble_end_function): Say that 'fnname' is unused.
9233
9234         * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
9235         addresses with offsets; reorganize.
9236
9237         * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
9238         (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
9239         (expand_builtin_init_dwarf_reg_sizes): Likewise.
9240
9241 2006-03-08  David Billinghurst <David.Billinghurst@riotinto.com>
9242
9243         PR target/26588
9244         * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
9245
9246 2006-03-08  Ben Elliston  <bje@au.ibm.com>
9247
9248         * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
9249
9250 2006-03-07  Aldy Hernandez  <aldyh@redhat.com>
9251
9252         PR gomp/26238
9253         * doc/passes.texi (Tree-SSA passes): Document omp lowering and
9254         expansion.
9255
9256 2006-03-07  Richard Guenther  <rguenther@suse.de>
9257
9258         PR tree-optimization/26587
9259         * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
9260
9261 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
9262
9263         * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
9264
9265 2006-03-07  Richard Sandiford  <richard@codesourcery.com>
9266
9267         * hooks.c (hook_bool_mode_rtx_true): New function.
9268         * hooks.h (hook_bool_mode_rtx_true): Declare.
9269         * toplev.c (compile_file): Call output_shared_constant_pool.
9270         * varasm.c (shared_constant_pool): New variable.
9271         (assemble_start_function, assemble_end_function): Remove arguments
9272         from call to output_constant_pool.
9273         (create_constant_pool): New function, split out from...
9274         (init_varasm_status): ...here.
9275         (force_const_mem): Choose between the shared and per-function constant
9276         pools.  Set current_function_uses_const_pool when reusing old entries
9277         as well as when creating new ones.
9278         (mark_constant): Ignore data argument.
9279         (mark_constants): Remove pool argument.
9280         (mark_constant_pool): Likewise.  Use current_function_uses_const_pool
9281         to decide whether the function uses a constant pool.
9282         (output_constant_pool_contents): New function, split out from...
9283         (output_constant_pool): ...here.
9284         (output_shared_constant_pool): New function.
9285         (init_varasm_once): Initialize shared_constant_pool.
9286         * output.h (output_constant_pool): Delete.
9287         (output_shared_constant_pool): Declare.
9288         * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
9289         * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
9290
9291 2006-03-06  Nick Clifton  <nickc@redhat.com>
9292
9293         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
9294         flag_strength_reduce.
9295
9296 2006-03-06  Ben Elliston  <bje@au.ibm.com>
9297
9298         * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
9299         x86_64-*-linux* configurations.
9300
9301         * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
9302         (LIBGCC2_WORDS_BIG_ENDIAN): Define.
9303
9304 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
9305
9306         * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
9307         Remove.
9308         * basic-block.h: Remove the extern for
9309         rediscover_loops_after_threading.
9310
9311         * cfgloop.c (cancel_loop): Make it static.
9312         * cfgloop.h: Remove the prototype for cancel_loop.
9313
9314         * flow.c (recompute_reg_usage): Make it static.
9315         * rtl.h: Remove the prototype for recompute_reg_usage.
9316
9317         * function.c (use_return_register): Make it static.
9318         * function.h: Remove the prototype.
9319
9320 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
9321
9322         * recog.c (volatile_mem_p, validate_change_maybe_volatile):
9323         Remove.
9324         * recog.h: Remove the prototype for
9325         validate_change_maybe_volatile.
9326
9327 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
9328
9329         * rtlanal.c (replace_reg): Remove.
9330         * rtl.h: Remove the prototype for replace_reg.
9331
9332 2006-03-05  Kazu Hirata  <kazu@codesourcery.com>
9333
9334         * regclass.c (reg_scan_update): Remove.
9335         (reg_scan_mark_refs): Remove the last argument.
9336         * rtl.h: Remove the prototype for reg_scan_update.
9337
9338 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
9339
9340         * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
9341         combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
9342         config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
9343         config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
9344         df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
9345         loop-invariant.c, omp-low.c, opts.c, passes.c,
9346         rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
9347         tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
9348         tree-ssa-structalias.c, tree-ssa-threadedge.c,
9349         tree-ssa-threadupdate.c, tree-vect-patterns.c,
9350         tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
9351         unwind-dw2.c: Fix comment typos.  Follow spelling conventions.
9352
9353 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
9354
9355         * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
9356         * dwarf2out.h: Remove the prototype for
9357         dwarf2out_add_library_unit_info.
9358
9359 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
9360
9361         * tree.c (add_var_to_bind_expr): Remove.
9362         * tree.h: Remove the prototype for add_var_to_bind_expr.
9363
9364 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
9365
9366         * regclass.c (n_non_fixed_regs): Remove.
9367         (init_reg_sets_1, globalize_reg): Remove all uses of
9368         n_non_fixed_regs.
9369         * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
9370
9371 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
9372
9373         * rtlanal.c (insns_safe_to_move_p): Remove.
9374         * rtl.h: Remove the prototype for insns_safe_to_move_p.
9375
9376 2006-03-04  Kazu Hirata  <kazu@codesourcery.com>
9377
9378         * expmed.c (expand_mult_add): Remove.
9379         * expr.h: Remove the prototype for expand_mult_add.
9380
9381 2006-03-04  Jakub Jelinek  <jakub@redhat.com>
9382
9383         * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
9384         and REG_SAVED_VAL_EXP constants.
9385         * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
9386         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
9387         Handle regs stored by value.
9388         (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
9389         (execute_cfa_program): Handle DW_CFA_val_offset,
9390         DW_CFA_val_offset_sf and DW_CFA_val_expression.
9391         (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
9392         value specially.  Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
9393         (uw_install_context_1): Handle target regs stored by value.
9394
9395 2006-03-03  Daniel Berlin  <dberlin@dberlin.org>
9396
9397         * tree-sra.c (tree_sra): Return todoflags;
9398         (generate_one_element): Set TODO_update_smt_usage if needed.
9399         (pass_sra): Remove TODO_update_smt_usage.
9400         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
9401         parameter.
9402         (tree_ssa_forward_propagate_single_use_vars): Return
9403         TODO_update_smt_usage if we need to update SMT usage.
9404         (pass_forwprop): Remove TODO_update_smt_usage.
9405
9406 2006-03-03  Diego Novillo  <dnovillo@redhat.com>
9407
9408         * tree-ssa-operands.c: Tidy whitespace.  Fix spelling.
9409         (correct_use_link): Remove reference to get_stmt_operands.
9410         (update_stmt_operands): Likewise.
9411         (get_modify_expr_operands): New function factored out of
9412         parse_ssa_operands and get_expr_operands.
9413         Try to create V_MUST_DEFs for LHS by default.
9414         (get_expr_operands) <case MODIFY_EXPR>: Call
9415         get_modify_expr_operands.
9416         <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
9417         <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
9418         (parse_ssa_operands) <case MODIFY_EXPR>: Call
9419         get_modify_expr_operands.
9420
9421 2006-03-03  Kazu Hirata  <kazu@codesourcery.com>
9422
9423         * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
9424         * tree-flow.h: Remove the prototype for
9425         referenced_var_lookup_if_exists.
9426
9427 2006-03-03  Steve Ellcey  <sje@cup.hp.com>
9428
9429         PR rtl-optimization/26345
9430         PR target/19061
9431         * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
9432
9433 2006-03-03  Roger Sayle  <roger@eyesopen.com>
9434
9435         PR tree-optimization/26524
9436         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
9437         fold_convert to create a constant of the appropriate type.
9438
9439 2006-03-03  Richard Sandiford  <richard@codesourcery.com>
9440
9441         * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
9442         SYMBOL_REF_IN_BLOCK_P.
9443         * doc/rtl.texi: Likewise.  Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
9444         of SYMBOL_FLAG_IN_BLOCK.
9445         * gengtype.c (adjust_field_rtx_def): Use SYMBOL_REF_HAS_BLOCK_INFO_P
9446         instead of SYMBOL_REF_IN_BLOCK_P.
9447         * explow.c (use_anchored_address): Likewise.
9448         * rtl.c (rtx_size): Likewise.
9449         * varasm.c (create_block_symbol): Set SYMBOL_FLAG_HAS_BLOCK_INFO
9450         instead of SYMBOL_FLAG_IN_BLOCK.
9451         (make_decl_rtl): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
9452         SYMBOL_REF_IN_BLOCK_P.
9453         (assemble_variable): Likewise.
9454         (output_constant_def_contents): Likewise.
9455         (output_constant_pool): Likewise.
9456         (default_encode_section_info): Preserve SYMBOL_FLAG_HAS_BLOCK_INFO
9457         instead of SYMBOL_FLAG_IN_BLOCK.
9458         * rtl.h (block_symbol): Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
9459         SYMBOL_REF_IN_BLOCK_P.
9460         (SYMBOL_REF_BLOCK): Likewise.
9461         (SYMBOL_REF_OFFSET): Likewise.
9462         (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_HAS_BLOCK_INFO_P instead of
9463         SYMBOL_REF_IN_BLOCK_P.
9464         (SYMBOL_FLAG_IN_BLOCK): Replace with...
9465         (SYMBOL_FLAG_HAS_BLOCK_INFO): ...this.
9466         (SYMBOL_REF_IN_BLOCK_P): Replace with...
9467         (SYMBOL_REF_HAS_BLOCK_INFO_P): ...this.
9468
9469 2006-03-03  Jakub Jelinek  <jakub@redhat.com>
9470
9471         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Fix pasto.
9472
9473 2006-03-02  Roger Sayle  <roger@eyesopen.com>
9474
9475         * simplify-rtx.c (simplify_unary_operation): When simplifying
9476         (neg (lt X 0)) into (ashiftrt X C) or (lshiftrt X C), make sure
9477         that we perform the right shift in the appropriate mode, and
9478         then extend or truncate the result to requested mode.
9479
9480 2006-03-03  Zdenek Dvorak <dvorakz@suse.cz>
9481
9482         * gengtype.c (main): Handle double_int type.
9483         * tree.h (struct tree_int_cst): Make type of int_cst double_int.
9484         * double-int.c: New file.
9485         * double-int.h: New file.
9486         * system.h: Include doubleint.h.
9487         * Makefile.in (SYSTEM_H): Include double-int.h.
9488         (double-int.o): Add.
9489
9490 2006-03-03  Joseph S. Myers  <joseph@codesourcery.com>
9491
9492         PR bootstrap/26478
9493         * Makefile.in (stmp-int-hdrs): Remove include/unwind.h before
9494         copying over it.
9495
9496 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
9497
9498         * tree-vrp.c (remove_range_assertions): Do not update statements
9499         unnecessarily.
9500
9501 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
9502
9503         * cse.c (rest_of_handle_cse): Do not pass CLEANUP_PRE_LOOP to cfg
9504         cleanup.
9505         * gcse.c (rest_of_handle_gcse): Ditto.
9506         * except.c (gate_handle_eh): Ditto.
9507         * cfgcleanup.c (rest_of_handle_jump2): Ditto.
9508         * basic-block.h (CLEANUP_PRE_LOOP): Remove.
9509
9510 2006-03-02  Eric Christopher  <echristo@apple.com>
9511
9512         * config/i386/i386.c (machopic_output_stub): Add indirection to
9513         jump.
9514
9515 2006-03-02  Zdenek Dvorak <dvorakz@suse.cz>
9516
9517         * loop.c: Removed.
9518
9519 2006-03-02  David S. Miller  <davem@sunset.davemloft.net>
9520
9521         Sun Niagara specific optimizations.
9522         * config.gcc: Recognize niagara as target.
9523         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Mention Niagara.
9524         (TARGET_CPU_niagara): Define.
9525         (CPP_CPU64_DEFAULT_SPEC): Define __sparc_v9__ for Niagara.
9526         (ASM_CPU64_DEFAULT_SPEC): Pass -Av9b for Niagara.
9527         (CPP_CPU_SPEC): Handle -mcpu=niagara.
9528         (ASM_CPU_SPEC): Likewise.
9529         (PROCESSOR_NIAGARA): New enum entry.
9530         (REGISTER_MOVE_COST): Handle Niagara.
9531         (BRANCH_COST, PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES): Likewise.
9532         * config/sparc/sparc.c (niagara_costs): New processor_costs entry.
9533         (sparc_override_options): Recognize "niagara", set appropriate
9534         default MASK_* values for it, and align functions to 32-bytes
9535         by default just like ULTRASPARC/ULTRASPARC3.
9536         (sparc_initialize_trampoline): Handle niagara like ultrasparc.
9537         (sparc64_initialize_trampoline): Likewise.
9538         (sparc_use_sched_lookahead): Use zero for niagara.
9539         (sparc_issue_rate): Use one for niagara.
9540         * config/sparc/niagara.md: New file.
9541         * config/sparc/sparc.md: Include it.
9542         * config/sparc/sol2-bi.h (CPP_CPU64_DEFAULT_SPEC,
9543         ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Set appropriately
9544         when default cpu is niagara.
9545         (CPP_CPU_SPEC): Handle -mcpu=niagara.
9546         (ASM_CPU_SPEC): Likewise.
9547         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Set appropriately
9548         when default cpu is niagara.
9549         (ASM_CPU_SPEC): Handle -mcpu=niagara.
9550         * config/sparc/linux64.h: Handle a default of TARGET_CPU_niagara
9551         just like v9/ultrasparc/ultrasparc3.
9552         * doc/invoke.texi: Add documentation for "niagara" and improve
9553         existing documentation for ultrasparc variants.
9554
9555 2006-03-02  Diego Novillo  <dnovillo@redhat.com>
9556
9557         * tree-ssa-operands.c (update_stmt_operands): Update documentation.
9558
9559 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
9560
9561         * doc/tm.texi (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Document.
9562         (ASM_OUTPUT_BSS): Describe the two ways of handling global BSS,
9563         and say that only one is needed.
9564         * doc/rtl.texi (SYMBOL_REF_BLOCK): Say that the block can be null.
9565         * target.h (have_switchable_bss_sections): New hook.
9566         * explow.c (use_anchored_address): Check that the symbol is in a block.
9567         * varasm.c (tls_comm_section, comm_section, lcomm_section)
9568         (bss_noswitch_section): New variables.
9569         (get_unnamed_section): Add SECTION_UNNAMED to the flags.
9570         (get_noswitch_section): New function.
9571         (get_block_for_section): Allow SECT to be null.
9572         (unlikely_text_section_p): Use SECTION_STYLE.
9573         (bss_initializer_p): New function.
9574         (get_variable_section): Move earlier in file.  Take a new argument,
9575         prefer_noswitch_p.  Move bss checks from assemble_variable to here.
9576         Return one of the new *_sections in such cases.
9577         (get_block_for_decl): New function, extracting some logic from
9578         use_blocks_for_decl_p.
9579         (change_symbol_section): Remove in favor of...
9580         (change_symbol_block): ...this new function.
9581         (use_blocks_for_decl_p): Remove checks now performed by
9582         get_block_for_decl.
9583         (make_decl_rtl): Use change_symbol_block and get_block_for_decl.
9584         (ASM_EMIT_LOCAL, ASM_EMIT_BSS, ASM_EMIT_COMMON): Delete in favor of...
9585         (emit_local, emit_bss, emit_common): ...these new functions.
9586         Return true if the alignment was honored.
9587         (emit_tls_common): New function.
9588         (asm_emit_uninitialised): Delete.
9589         (assemble_variable_noswitch): New function, split out from...
9590         (assemble_variable): ...here.  Don't make decisions about common
9591         variables here.  Globalize all public decls that go into non-common
9592         sections.  Check whether SYMBOL_REF_BLOCK is null.
9593         (output_constant_def_contents): Check whether SYMBOL_REF_BLOCK is null.
9594         (output_constant_pool): Likewise.
9595         (init_varasm_once): Initialize the new section variables.
9596         (have_global_bss_p): New function.
9597         (categorize_decl_for_section): Use bss_initializer_p.
9598         (switch_to_section): Use SECTION_STYLE.  Abort for SECTION_NOSWITCH.
9599         (place_block_symbol): Assert that the symbol must be in a block.
9600         * target-def.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): New macro.
9601         (TARGET_INITIALIZER): Include it.
9602         * rtl.h (SYMBOL_REF_BLOCK): Document the null alternative.
9603         * output.h (SECTION_STYLE_MASK, SECTION_COMMON): New macros.
9604         (SECTION_MACH_DEP): Bump by two.
9605         (SECTION_UNNAMED, SECTION_NOSWITCH): New macros.
9606         (unnamed_section): Mention SECTION_UNNAMED in comment.
9607         (named_section): Likewise SECTION_NAMED.
9608         (noswitch_section_callback): New type.
9609         (noswitch_section): New structure.
9610         (section): Add a noswitch_section alternative.
9611         (SECTION_STYLE): New macro.
9612         (tls_comm_section, comm_section, lcomm_section): Declare.
9613         (bss_noswitch_section, have_global_bss_p): Declare.
9614         * config/elfos.h (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
9615         * config/iq2000/iq2000.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
9616         Override.
9617         * config/v850/v850.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Override.
9618         * config/stormy16/stormy16.c (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS):
9619         Override.
9620
9621 2006-03-02  Daniel Berlin <dberlin@dberlin.org>
9622
9623         * tree-vrp.c (execute_vrp): Return value.
9624         * regrename.c (rest_of_handle_regrename): Ditto.
9625         * tree-into-ssa.c (rewrite_into_ssa): Ditto.
9626         * tree-complex.c (tree_lower_complex): Ditto.
9627         (tree_lower_complex_O0): Ditto.
9628         * tracer.c (rest_of_handle_tracer): Ditto.
9629         * postreload-gcse.c (rest_of_handle_gcse2): Ditto.
9630         * postreload.c (rest_of_handle_postreload): Ditto.
9631         * tree-tailcall.c (execute_tail_recursion): Ditto.
9632         (execute_tail_calls): Ditto.
9633         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
9634         * tree.h (init_function_for_compilation): Ditto.
9635         * ipa-cp.c (ipcp_driver): Ditto.
9636         * tree-scalar-evolution.c (scev_const_prop): Ditto.
9637         * tree-scalar-evolution.h (scev_const_prop): Ditto.
9638         * final.c (compute_alignments): Ditto.
9639         (rest_of_handle_final): Ditto.
9640         (rest_of_handle_shorten_branches): Ditto.
9641         (rest_of_clean_state): Ditto.
9642         * omp-low.c (execute_expand_omp): Ditto.
9643         (execute_lower_omp): Ditto.
9644         * tree-ssa-dse.c (tree_ssa_dse): Ditto.
9645         * ipa-reference.c (static_execute): Ditto.
9646         * tree-ssa-uncprop.c (tree_ssa_uncprop): Ditto.
9647         * reorg.c (rest_of_handle_delay_slots): Ditto.
9648         (rest_of_handle_machine_reorg): Ditto.
9649         * cgraphunit.c (rebuild_cgraph_edges): Ditto.
9650         * flow.c (recompute_reg_usage): Ditto.
9651         (rest_of_handle_remove_death_notes): Ditto.
9652         (rest_of_handle_life): Ditto.
9653         (rest_of_handle_flow2): Ditto.
9654         * tree-ssa-copyrename.c (rename_ssa_copies): Ditto.
9655         * tree-ssa-ccp.c (do_ssa_ccp): Ditto.
9656         (do_ssa_store_ccp): Ditto.
9657         (execute_fold_all_builtins): Ditto.
9658         * mode-switching.c (rest_of_handle_mode_switching): Ditto.
9659         * modulo-sched.c (rest_of_handle_sms): Ditto.
9660         * ipa-pure-const.c (static_execute): Ditto.
9661         * cse.c (rest_of_handle_cse): Ditto.
9662         (rest_of_handle_cse2): Ditto.
9663         * web.c (rest_of_handle_web): Ditto.
9664         * tree-stdarg.c (execute_optimize_stdarg): Ditto.
9665         * tree-ssa-math-opts.c (execute_cse_reciprocals): Ditto.
9666         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Ditto.
9667         * tree-nrv.c (tree_nrv): Ditto.
9668         (execute_return_slot_opt): Ditto.
9669         * tree-ssa-alias.c (compute_may_aliases): Ditto.
9670         (create_structure_vars): Ditto.
9671         * loop-init.c (rtl_loop_init): Ditto.
9672         (rtl_loop_done): Ditto.
9673         (rtl_move_loop_invariants): Ditto.
9674         (rtl_unswitch): Ditto.
9675         (rtl_unroll_and_peel_loops): Ditto.
9676         (rtl_doloop): Ditto.
9677         * gimple-low.c (lower_function_body): Ditto.
9678         (mark_used_blocks): Ditto.
9679         * tree-ssa-sink.c (execute_sink_code): Ditto.
9680         * ipa-inline.c (cgraph_decide_inlining): Ditto.
9681         (cgraph_early_inlining): Ditto.
9682         * global.c (rest_of_handle_global_alloc): Ditto.
9683         * jump.c (cleanup_barriers): Ditto.
9684         (purge_line_number_notes): Ditto.
9685         * ifcvt.c (rest_of_handle_if_conversion): Ditto.
9686         (rest_of_handle_if_after_reload): Ditto.
9687         * tree-ssa-loop.c (tree_ssa_loop_init): Ditto.
9688         (tree_ssa_loop_im): Ditto.
9689         (tree_ssa_loop_unswitch): Ditto.
9690         (tree_vectorize): Ditto.
9691         (tree_linear_transform): Ditto.
9692         (tree_ssa_loop_ivcanon): Ditto.
9693         (tree_ssa_empty_loop): Ditto.
9694         (tree_ssa_loop_bounds): Ditto.
9695         (tree_complete_unroll): Ditto.
9696         (tree_ssa_loop_prefetch): Ditto.
9697         (tree_ssa_loop_ivopts): Ditto.
9698         (tree_ssa_loop_done): Ditto.
9699         * predict.c (tree_estimate_probability): Ditto.
9700         * recog.c (split_all_insns_noflow): Ditto.
9701         (rest_of_handle_peephole2): Ditto.
9702         (rest_of_handle_split_all_insns): Ditto.
9703         * tree-eh.c (lower_eh_constructs): Ditto.
9704         * regmove.c (rest_of_handle_regmove): Ditto.
9705         (rest_of_handle_stack_adjustments): Ditto.
9706         * local-alloc.c (rest_of_handle_local_alloc): Ditto.
9707         * function.c (instantiate_virtual_regs): Ditto.
9708         (init_function_for_compilation): Ditto.
9709         (rest_of_handle_check_leaf_regs): Ditto.
9710         * gcse.c (rest_of_handle_jump_bypass): Ditto.
9711         (rest_of_handle_gcse): Ditto.
9712         * ipa-type-escape.c (type_escape_execute): Ditto.
9713         * alias.c (rest_of_handle_cfg): Ditto.
9714         * tree-if-conv.c (main_tree_if_conversion): Ditto.
9715         * profile.c (rest_of_handle_branch_prob): Ditto.
9716         * tree-ssa-phiopt.c (tree_ssa_phiopt): Ditto.
9717         * rtl-factoring.c (rest_of_rtl_seqabstr): Ditto.
9718         * bt-load.c (rest_of_handle_branch_target_load_optimize): Ditto
9719         * tree-dfa.c (find_referenced_vars): Ditto.
9720         * except.c (set_nothrow_function_flags): Ditto.
9721         (convert_to_eh_region_ranges): Ditto.
9722         (rest_of_handle_eh): Ditto.
9723         * emit-rtl.c (unshare_all_rtl): Ditto.
9724         (remove_unnecessary_notes): Ditto.
9725         * except.h (set_nothrow_function_flags): Ditto.
9726         (convert_to_eh_region_ranges): Ditto.
9727         * cfgexpand.c (tree_expand_cfg): Ditto.
9728         * tree-cfgcleanup.c (merge_phi_nodes): Ditto.
9729         * tree-ssa-pre.c (do_pre): Ditto.
9730         (execute_fre): Ditto.
9731         * cfgcleanup.c (rest_of_handle_jump): Ditto.
9732         (rest_of_handle_jump2): Ditto.
9733         * tree-sra.c (tree_sra): Ditto.
9734         * tree-mudflap.c (execute_mudflap_function_ops): Ditto.
9735         (execute_mudflap_function_decls): Ditto.
9736         * tree-ssa-copy.c (do_copy_prop): Ditto.
9737         (do_store_copy_prop): Ditto.
9738         * ipa-prop.h (ipcp_driver): Ditto.
9739         * cfglayout.c (insn_locators_initialize): Ditto.
9740         * tree-ssa-forwprop.c
9741         (tree_ssa_forward_propagate_single_use_vars): Ditto.
9742         * cfglayout.h (insn_locators_initialize): Ditto.
9743         * tree-ssa-dce.c (tree_ssa_dce): Ditto.
9744         * tree-ssa.c (execute_early_warn_uninitialized): Ditto.
9745         (execute_late_warn_uninitialized): Ditto.
9746         * rtl.h (cleanup_barriers): Ditto.
9747         (split_all_insns_noflow): Ditto.
9748         (purge_line_number_notes): Ditto.
9749         (unshare_all_rtl): Ditto.
9750         (remove_unnecessary_notes): Ditto.
9751         (recompute_reg_usage): Ditto.
9752         (variable_tracking_main): Ditto.
9753         * integrate.c (emit_initial_value_sets): Ditto.
9754         * integrate.h (emit_initial_value_sets): Ditto.
9755         * tree-optimize.c (execute_free_datastructures): Ditto
9756         (execute_free_cfg_annotations): Ditto.
9757         (execute_fixup_cfg): Ditto.
9758         (execute_cleanup_cfg_pre_ipa): Ditto.
9759         (execute_cleanup_cfg_post_optimizing): Ditto.
9760         (execute_init_datastructures): Ditto.
9761         * tree-object-size.c (compute_object_sizes): Ditto.
9762         * combine.c (rest_of_handle_combine): Ditto.
9763         * tree-outof-ssa.c (rewrite_out_of_ssa): Ditto.
9764         * bb-reorder.c (duplicate_computed_gotos): Ditto.
9765         (rest_of_handle_reorder_blocks): Ditto.
9766         (rest_of_handle_partition_blocks): Ditto.
9767         * var-tracking.c (variable_tracking_main): Ditto.
9768         * tree-profile.c (tree_profiling): Ditto.
9769         * tree-vect-generic.c (expand_vector_operations): Ditto.
9770         * reg-stack.c (rest_of_handle_stack_regs): Ditto.
9771         * sched-rgn.c (rest_of_handle_sched): Ditto.
9772         (rest_of_handle_sched2): Ditto.
9773         * basic-block.h (free_bb_insn): Ditto.
9774         * tree-ssa-structalias.c (ipa_pta_execute): Ditto.
9775         * tree-cfg.c (execute_build_cfg): Ditto.
9776         (remove_useless_stmts): Ditto.
9777         (split_critical_edges): Ditto.
9778         (execute_warn_function_return): Ditto.
9779         (execute_warn_function_noreturn): Ditto.
9780         * tree-ssa-reassoc.c (execute_reassoc): Ditto.
9781         * cfgrtl.c (free_bb_for_insn): Ditto.
9782         * passes.c (execute_one_pass): Run additional
9783         todos returned by execute function.
9784         * tree-pass.h (struct tree_opt_pass): Make execute
9785         return a value.
9786
9787 2006-03-02  Richard Guenther  <rguenther@suse.de>
9788
9789         * tree-ssa-alias.c (find_used_portions): Consider taking
9790         the address as making the variable not write-only.
9791
9792 2006-03-02  Nick Clifton  <nickc@redhat.com>
9793
9794         * config.gcc (default_use_cxa_atexit): Extend the description of
9795         this configure variable.  Set its default value to "yes" for
9796         Linux, NetBSD and ELF targets on the assumption that they will
9797         use C libraries with the __cxa_atexit function.
9798
9799 2006-03-02  Ben Elliston  <bje@au.ibm.com>
9800
9801         * config/rs6000/linux-unwind.h (frob_update_context): Mark `fs'
9802         parameter as unused to suppress a build warning.
9803
9804 2006-03-02  Ben Elliston  <bje@au.ibm.com>
9805
9806         * mklibgcc.in: Depend on config/dfp-bit.h in rules that compile
9807         config/dfp-bit.c.
9808
9809 2006-03-01  Roger Sayle  <roger@eyesopen.com>
9810
9811         PR other/26489
9812         * gthr-posix.h (__gthrw2): Define to take three parameters, the
9813         declared name, the weak reference name, and the typeof name.
9814         (__gthrw): Avoid expanding the declared name suffix.
9815         (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls.
9816
9817 2006-03-01  Jakub Jelinek  <jakub@redhat.com>
9818
9819         * dwarf2.h (DW_TAG_condition, DW_TAG_shared_type): New constants
9820         from DWARF 3.
9821         (DW_AT_description, DW_AT_binary_scale, DW_AT_decimal_scale,
9822         DW_AT_small, DW_AT_decimal_sign, DW_AT_digit_count,
9823         DW_AT_picture_string, DW_AT_mutable, DW_AT_threads_scaled,
9824         DW_AT_explicit, DW_AT_object_pointer, DW_AT_endianity,
9825         DW_AT_elemental, DW_AT_pure, DW_AT_recursive): New.
9826         (DW_OP_form_tls_address, DW_OP_call_frame_cfa, DW_OP_bit_piece): New.
9827         (DW_ATE_packed_decimal, DW_ATE_numeric_string, DW_ATE_edited,
9828         DW_ATE_signed_fixed, DW_ATE_unsigned_fixed): New.
9829         (DW_DS_unsigned, DW_DS_leading_overpunch, DW_DS_trailing_overpunch,
9830         DW_DS_leading_separate, DW_DS_trailing_separate): New.
9831         (DW_END_default, DW_END_big, DW_END_little): New.
9832         (DW_END_lo_user, DW_END_hi_user): Define.
9833         (DW_LNE_lo_user, DW_LNE_hi_user): Define.
9834         (DW_CFA_val_offset, DW_CFA_val_offset_sf, DW_CFA_val_expression): New.
9835         (DW_LANG_PLI, DW_LANG_ObjC, DW_LANG_ObjC_plus_plus, DW_LANG_UPC,
9836         DW_LANG_D): New.
9837
9838 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
9839
9840         * tree.def (SYMBOL_MEMORY_TAG): Rename from TYPE_MEMORY_TAG.
9841         Update all users.
9842         * tree-pass.h (PROP_smt_usage): Rename from PROP_tmt_usage.
9843         Update all users.
9844         (TODO_update_smt_usage): Rename from TODO_update_tmt_usage.
9845         Update all users.
9846         * tree.h (SMT_USED_ALONE): Rename from TMT_USED_ALONE.
9847         Update all users.
9848         * tree-flow.h (struct var_ann_d): Rename field 'type_mem_tag'
9849         to 'symbol_mem_tag'.
9850         Update all users.
9851         * doc/tree-ssa.texi: Update documentation to reflect TMT->SMT
9852         rename.
9853
9854 2006-03-01  Roger Sayle  <roger@eyesopen.com>
9855
9856         * builtins.c (fold_builtin_copysign): Delete unreachable code.
9857
9858 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
9859
9860         PR target/25761
9861         * config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
9862         MACHO_DYNAMIC_NO_PIC_P.
9863         (MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
9864
9865 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
9866
9867         PR target/26389
9868         * config/darwin-protos.h (darwin_asm_output_anchor):
9869         Declare.
9870         * config/darwin-sections.def (cstring_section):
9871         Add SECTION_MERGE to the flags.
9872         (literal4_section): Likewise.
9873         (literal8_section): Likewise.
9874         (objc_selector_refs_section): Likewise.
9875         (objc_cls_refs_section): Likewise.
9876         * config/darwin.c (darwin_asm_output_anchor): New
9877         function.
9878         * config/darwin.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
9879
9880 2006-03-01  Daniel Berlin  <dberlin@dberlin.org>
9881
9882         Fix PR tree-optimization/26443
9883         * tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
9884         to todo and PROP_tmt_usage to properties_destroyed.
9885         * tree-ssa-ccp.c (pass_ccp): Ditto.
9886         (pass_store_ccp): Ditto.
9887         * tree-ssa-dom.c (pass_dominator): Ditto.
9888
9889 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
9890
9891         * tree-ssa-operands.c: Cleanup whitespace.
9892         (get_asm_expr_operands): Move before first invocation.
9893         (get_indirect_ref_operands): Likewise.
9894         (get_tmr_operands): Likewise.
9895         (get_call_expr_operands): Likewise.
9896         (append_def): Likewise.
9897         (append_use): Likewise.
9898         (append_v_may_def): Likewise.
9899         (append_v_must_def): Likewise.
9900         (add_call_clobber_ops): Likewise.
9901         (add_call_read_ops): Likewise.
9902         (add_stmt_operand): Likewise.
9903         (add_virtual_operand): Likewise.
9904         (build_ssa_operands): Likewise.
9905
9906 2006-03-01  Andrew Pinski  <pinskia@physics.uc.edu>
9907
9908         PR middle-end/26022
9909         Revert:
9910         PR middle-end/24437
9911         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
9912         with a call expr to ...
9913         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
9914
9915 2006-03-01  Diego Novillo  <dnovillo@redhat.com>
9916
9917         * tree-vrp.c (extract_range_from_assert): Remove special
9918         handling for types with super-types.
9919
9920 2006-03-01  Ben Elliston  <bje@au.ibm.com>
9921
9922         * config.gcc: Add t-dfprules to $tmake_file for powerpc-*-linux*
9923         and powerpc64-*-linux* configurations.
9924         * config/t-dfprules: New file.
9925
9926         * mklibgcc.in: Add logic to handle $DFP_ENABLE and $DFP_CFLAGS.
9927         Compile dfp-bit.c from the source directory using -DWIDTH and
9928         $DFP_CFLAGS to control the compilation of that file, rather than
9929         generating width-specific versions in the build directory.
9930         * Makefile.in (libgcc.mk): Pass down DFP_ENABLE and DFP_CFLAGS.
9931         (LIBGCC_DEPS): Replace $(D32PBIT) et al with config/dfp-bit.[hc].
9932
9933 2006-02-28  Zack Weinberg  <zackw@panix.com>
9934
9935         * doc/md.texi: Avoid use of @headitem so that makeinfo <4.7
9936         continues to work.
9937
9938 2006-02-28  Eric Christopher  <echristo@apple.com>
9939
9940         * config/rs6000/darwin.h (ENABLE_STACK_EXECUTE): Define.
9941         Set up IN_LIBGCC definition of TARGET_64BIT.
9942         * config/i386/darwin.h (ENABLE_STACK_EXECUTE): Define.
9943
9944 2006-02-28  Roger Sayle  <roger@eyesopen.com>
9945
9946         PR middle-end/14752
9947         * c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
9948         BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
9949         cases via the construction of "expr != 0".
9950
9951 2006-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
9952
9953         * alias.c (alias_invariant, alias_invariant_size): Remove.
9954         (record_base_value): Remove.
9955         (memrefs_conflict_p): Don't look at alias_invariant.
9956         (end_alias_analysis): Don't free it.
9957         * alias.h (record_base_value): Remove prototype.
9958
9959 2006-02-28  Paolo Bonzini  <bonzini@gnu.org>
9960             Adam Nemet  <anemet@caviumnetworks.com>
9961
9962         * rtl.h (truncated_to_mode): Declare it.
9963         (struct rtl_hooks): Add reg_truncated_to_mode hook.
9964         * rtlhooks-def.h (RTL_HOOKS_REG_TRUNCATED_TO_MODE): New macro.
9965         (RTL_HOOKS_INITIALIZER): Include it.
9966         * rtlhooks.c (reg_truncated_to_mode_general): New function.
9967         * combine.c (RTL_HOOKS_REG_TRUNCATED_TO_MODE): Override to
9968         reg_truncated_to_mode.
9969         * rtlanal.c (truncated_to_mode): Define it.
9970         * simplify-rtx.c (simplify_unary_operation_1): Use it.
9971
9972 2006-02-28  Jeff Law  <law@redhat.com>
9973
9974         * tree-chrec.c (chrec_convert_aggressive): Do not eliminate
9975         conversions where TYPE_MIN_VALUE/TYPE_MAX_VALUE do not cover
9976         the range allowed by TYPE_PRECISION.
9977
9978         * tree.h (strct phi_arg_d): Remove unused NONZERO field.
9979
9980 2006-02-28  Dorit Nuzman  <dorit@il.ibm.com>
9981
9982         PR tree-optimization/26419
9983         * doc/invoke.texi (ftree-vectorizer-verbose): Add information on
9984         values of n.
9985
9986 2006-02-27  Zack Weinberg  <zackw@panix.com>
9987
9988         * doc/md.texi: Fix typo in previous change.
9989
9990 2006-02-27  Kenneth Zadeck <zadeck@naturalbridge.com>
9991
9992         * df.c: Remove.
9993
9994 2006-02-27  Zack Weinberg  <zackw@panix.com>
9995
9996         * rtl.def (define_constraint, define_register_constraint)
9997         (define_memory_constraint, define_address_constraint): New MD forms.
9998         * gensupport.c (process_rtx): Put define_constraint etc on the
9999         predicate queue.
10000         * genpreds.c (process_define_predicate): Adjust comment.  Validate
10001         the name, and call validate_exp to validate the expression.
10002         (mark_mode_tests, write_extract_subexp): Can assume correct input.
10003         (write_predicate_expr): Likewise.  NAME argument no longer necessary;
10004         all callers changed.
10005         (validate_exp, needs_variable, struct constraint_data)
10006         (constraints_by_letter_table, first_constraint, last_constraint_ptr)
10007         (FOR_ALL_CONSTRAINTS, generic_constraint_letters, const_int_constraints)
10008         (const_dbl_constraints, constraint_max_namelen)
10009         (have_register_constraints, have_memory_constraints)
10010         (have_address_constraints, have_address_constraints)
10011         (have_extra_constraints, have_const_int_constraints)
10012         (have_const_dbl_constraints, mangle, add_constraint)
10013         (process_define_constraint, process_define_register_constraint)
10014         (write_enum_constraint_num, write_lookup_constraint)
10015         (write_insn_constraint_len, write_regclass_for_constraint)
10016         (write_constraint_satisfied_p, write_insn_const_int_ok_for_constraint)
10017         (write_insn_extra_memory_constraint)
10018         (write_insn_extra_address_constraint)
10019         (write_satisfies_constraint_fns): New.
10020         (write_tm_preds_h): If we have new-style constraint definitions,
10021         prototype the functions generated from them, and define the
10022         old constraint interface (still used by generic code) in terms of
10023         those functions.
10024         (write_insn_preds_c): If we have new-style constraint definitions,
10025         generate all relevant functions from those definitions.
10026         (main): Handle define_constraint etc.
10027         * genoutput.c (struct constraint_data, indep_constraints)
10028         (mdep_constraint_letters, constraints_by_letter_table, note_constraint)
10029         (mdep_constraint_len): New data structures and functions, defined
10030         #ifdef USE_MD_CONSTRAINTS.
10031         (check_constraint_len): Don't define #ifdef USE_MD_CONSTRAINTS.
10032         (validate_insn_alternatives): If USE_MD_CONSTRAINTS is defined,
10033         use new logic to validate operand constraints against constraint
10034         definitions.
10035         (main): Process define_constraint etc. if USE_MD_CONSTRAINTS is
10036         defined.
10037         * defaults.h: If none of the old-style constraint macros are
10038         defined, define USE_MD_CONSTRAINTS; do not provide defaults for any
10039         old-style macros; and poison REG_CLASS_FROM_LETTER,
10040         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P, and
10041         EXTRA_CONSTRAINT.
10042         * recog.c (reg_fits_class_p): If cl is NO_REGS, return 0 immediately.
10043         * doc/md.texi: Document new constraint-definition mechanism and the
10044         C interface it provides.  Remove references to old mechanism
10045         elsewhere in the document.
10046         (Machine Constraints): Use pathnames relative to gcc directory,
10047         i.e. config/ARCH/FILE.  Change i386 section to refer to
10048         config/i386/predicates.md; update that section to match docstrings.
10049         * doc/tm.texi: Move all documentation of the old constraint-
10050         definition macros to their own section, clearly mark as obsolete.
10051
10052         * config/i386/predicates.md (R, q, Q, l, a, b, c, d, S, D, A, f, t)
10053         (u, y, x, Y, I, J, K, L, M, N, O, G, C, e, Z): New constraint
10054         definitions.
10055         * config/i386/i386.h (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
10056         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
10057         * config/i386/i386.md (*movdf_nointeger): Remove stray 'H' from
10058         constraint strings.
10059         (splits and peepholes): Use satisfies_constraint_*.
10060         * config/i386/i386.c (memory_address_length)
10061         (ix86_attr_length_immediate_default): Use satisfies_constraint_*.
10062
10063 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
10064
10065         * lambda-code.c (can_convert_to_perfect_nest): Allow any type of
10066         scalar operation to be put back into the loop.
10067
10068 2006-02-27  Jakub Jelinek  <jakub@redhat.com>
10069
10070         PR other/26208
10071         * unwind-dw2.c (struct _Unwind_Context): Add signal_frame field.
10072         (extract_cie_info): Handle S flag in augmentation string.
10073         (execute_cfa_program): If context->signal_frame, execute also
10074         fs->pc == context->ra instructions.
10075         (uw_frame_state_for): If context->signal_frame, don't subtract one
10076         from context->ra to find FDE.
10077         (uw_update_context_1): Set context->signal_frame to
10078         fs->signal_frame.
10079         (_Unwind_GetIPInfo): New function.
10080         * unwind-dw2.h (_Unwind_FrameState): Add signal_frame field.
10081         * unwind-c.c (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
10082         of _Unwind_GetIP.
10083         * unwind-sjlj.c (_Unwind_GetIPInfo): New function.
10084         * unwind-generic.h (_Unwind_GetIPInfo): New prototype.
10085         * unwind-compat.c (_Unwind_GetIPInfo): New function.
10086         * libgcc-std.ver (_Unwind_GetIPInfo): Export @@GCC_4.2.0.
10087         * config/ia64/unwind-ia64.c (_Unwind_GetIPInfo): New function.
10088         * config/arm/unwind-arm.h (_Unwind_GetIPInfo): Define.
10089         * config/i386/linux-unwind.h (x86_fallback_frame_state,
10090         x86_64_fallback_frame_state): Set fs->signal_frame.
10091         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Likewise.
10092         (MD_FROB_UPDATE_CONTEXT): Define unconditionally.
10093         (frob_update_context): Likewise.  Workaround missing S flag in
10094         Linux 2.6.12 - 2.6.16 kernel vDSOs.
10095         * config/s390/linux-unwind.h (s390_fallback_frame_state): Likewise.
10096         Remove the psw_addr + 1 hack.
10097
10098 2006-02-27  Daniel Berlin  <dberlin@dberlin.org>
10099
10100         * tree-ssa-structalias.c (get_constraint_for): Move code to deal
10101         with aggregates here.
10102         (find_func_aliases): Remove code for &<aggregate> from here.
10103
10104 2006-02-26  Roger Sayle  <roger@eyesopen.com>
10105
10106         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (~X & C) eq/ne 0 as
10107         (X & C) ne/eq 0, where C is a single bit, i.e. a power of two.
10108         Fold both "((X & C) ^ C) eq/ne 0" and "((X ^ C) & C) eq/ne 0"
10109         as (X & C) ne/eq 0.
10110
10111 2006-02-26  Roger Sayle  <roger@eyesopen.com>
10112
10113         PR middle-end/19983
10114         * real.c (real_nan): Allow both 0x and 0X as hexadecimal prefixes.
10115
10116 2006-02-26  Zdenek Dvorak <dvorakz@suse.cz>
10117
10118         * opts.c (decode_options): Do not handle flag_strength_reduce.
10119         (common_handle_option): Handle OPT_floop_optimize, OPT_frerun_loop_opt
10120         and OPT_fstrength_reduce.
10121         * tree-ssa-loop.c (tree_ssa_loop_prefetch): Only test
10122         flag_prefetch_loop_arrays for being nonzero.
10123         * common.opt (floop-optimize, frerun-loop-opt): Resurrected as
10124         no-ops.
10125         (fprefetch-loop-arrays-rtl): Removed.
10126         (flag_prefetch_loop_arrays): Do not specify the value.
10127
10128         * doc/passes.texi: Update documentation of loop optimizer
10129         passes.
10130         * doc/invoke.texi (-fstrength-reduce, -fprefetch-loop-arrays-rtl,
10131         -frerun-loop-opt): Remove.
10132
10133 2006-02-26  Richard Guenther  <rguenther@suse.de>
10134
10135         PR tree-optimization/26421
10136         * tree-ssa-alias.c (find_used_portions): Don't treat parameters
10137         in function calls that are ADDR_EXPRs as using the whole structure.
10138
10139 2006-02-26  Steven Bosscher  <stevenb.gcc@gmail.com>
10140
10141         * common.opt (-floop-optimize, -frerun-loop-opt): Remove.
10142         * tree-pass.h (pass_loop_optimize): Remove.
10143         * passes.c (pass_loop_optimize): Never run it.
10144         * toplev.c (backend_init): Don't call init_loop.
10145         * opts.c (flag_loop_optimize_set): Remove.
10146         (decode_options): Never set flag_loop_optimize or flag_rerun_loop_opt.
10147         (common_handle_option) <OPT_floop_optimize>: Remove.  Don't disable
10148         the old RTL loop optimizer when profiling enabled.
10149         * predict.c (tree_estimate_probability): Always strip builtin_expect.
10150         * cfgcleanup.c (try_forward_edges): Don't avoid killing loop
10151         pre-headers for the sake of the old RTL loop optimizer.
10152         * Makefile.in: Remove all references to loop.o.
10153
10154         * doc/invoke.texi: Remove all references to -floop-optimize
10155         and -frerun-loop-opt.
10156
10157 2006-02-26  Zack Weinberg  <zackw@panix.com>
10158
10159         * doc/md.texi (Machine Constraints): Refer to all files with paths
10160         relative to gcc directory (i.e. config/CPU/file).  Add missing
10161         @table @code ... @end table to M32C subsection.
10162
10163 2006-02-26  Roger Sayle  <roger@eyesopen.com>
10164
10165         * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & 1) ^ 1 as
10166         (X & 1) == 0.
10167         <BIT_AND_EXPR>: Fold (X ^ 1) & 1 and ~X & 1 as (X & 1) == 0.
10168
10169 2006-02-26  Roger Sayle  <roger@eyesopen.com>
10170             James A. Morrison  <phython@gcc.gnu.org>
10171
10172         PR middle-end/21137
10173         * fold-const.c (fold_binary) <EQ_EXPR>: Fold ((X>>C1)&C2) eq/ne 0,
10174         when C2 is a power of two, as either (X&(C2<<C1)) eq/ne 0 if the
10175         new constant C2<<C1, or as (X<0) or (X,false) depending upon the
10176         signedness of the shift operation.
10177
10178 2006-02-26  Dorit Nuzman  <dorit@il.ibm.com>
10179
10180         PR tree-optimization/26359
10181         * tree-ssa-alias.c (new_type_alias): Set fields for new tag.
10182
10183 2006-02-25  Roger Sayle  <roger@eyesopen.com>
10184
10185         * simplify-rtx.c (simplify_relational_operation_1): Simplify
10186         (X^Y) == 0 as X == Y and (X^Y) != 0 as X != Y.  Simplify (X^Y) == Y
10187         as X == 0, and some symmetry related transformations.
10188         Simplify (X^C1) == C2 as X == (C1^C2).  Split long comment line.
10189
10190 2006-02-25  Roger Sayle  <roger@eyesopen.com>
10191
10192         PR middle-end/23673
10193         * fold-const.c (fold_binary) <EQ_EXPR>: Fold (X^Y) == 0 as X == Y
10194         and (X^Y) != 0 as X != Y.  Fold (X^Y) == Y as X == 0, and some
10195         symmetry related transformations.  Fold (X^C1) == C2 as
10196         X == (C1^C2).
10197
10198 2006-02-25  Juergen Weigert  <jw@suse.de>
10199         Richard Guenther  <rguenther@suse.de>
10200
10201         * scan-decls.c (scan_decls): Don't fetch new statement after CPP_EOF.
10202
10203 2006-02-24  Adam Nemet  <anemet@caviumnetworks.com>
10204
10205         * combine.c (gen_lowpart_or_truncate): Call
10206         simplify_gen_unary(TRUNCATE, ...) instead of gen_rtx_TRUNCATE.
10207
10208 2006-02-24  Diego Novillo  <dnovillo@redhat.com>
10209
10210         * doc/invoke.texi: Move -fopenmp description to "Options for
10211         Code Generation".
10212         Remove reference to -lgomp.
10213
10214 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
10215
10216         * doc/install.texi: Require GNU tar version 1.14.
10217
10218 2006-02-24  Geoffrey Keating  <geoffk@apple.com>
10219
10220         * doc/tm.texi (Run-time Target): Document C_COMMON_OVERRIDE_OPTIONS.
10221         * doc/invoke.texi (C++ Dialect Options): Document
10222         -fno-use-cxa-get-exception-ptr.
10223         * configure.ac: Define DEFAULT_USE_CXA_ATEXIT to 2 not 1.
10224         * configure: Regenerate.
10225         * c.opt (fuse-cxa-get-exception-ptr): New.
10226         * c-opts.c (c_common_handle_option): Handle
10227         OPT_fuse_cxa_get_exception_ptr.
10228         * c-common.c (flag_use_cxa_atexit): Update documentation.
10229         (flag_use_cxa_get_exception_ptr): New.
10230         * c-common.h (flag_use_cxa_get_exception_ptr): New.
10231         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Improve
10232         documentation.
10233         (C_COMMON_OVERRIDE_OPTIONS): New.
10234
10235 2006-02-24  Roger Sayle  <roger@eyesopen.com>
10236
10237         PR middle-end/24952
10238         * combine.c (try_combine): Explicitly check whether GET_CODE is
10239         a SET or a CLOBBER, instead on checking that it isn't a USE.
10240
10241 2006-02-24  Roger Sayle  <roger@eyesopen.com>
10242
10243         * fold-const.c (fold_comparison): New subroutine of fold_binary
10244         containing transformations common to both the equality and
10245         ordering relational operators, factored out of fold_binary.
10246         (fold_binary): Separate out the equality operators (EQ_EXPR
10247         and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
10248         LE_EXPR and GE_EXPR), calling fold_comparison to perform the
10249         transformations common to both.
10250         (fold_div_compare): Fix latent bugs in the previously unreachable
10251         LT_EXPR and GE_EXPR cases.
10252
10253 2006-02-24  David Edelsohn  <edelsohn@gnu.org>
10254
10255         * config/rs6000/rs6000.c (rs6000_init_builtins): Change
10256         decl libname for clog to __clog on AIX.
10257
10258         * config/rs6000/xcoff.h (MAX_OFILE_ALIGNMENT): Define.
10259
10260 2006-02-24  Alan Modra  <amodra@bigpond.net.au>
10261
10262         PR target/26453
10263         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
10264         output traceback table for thunks.  Localise rs6000_stack_info call.
10265
10266 2006-02-23  Roger Sayle  <roger@eyesopen.com>
10267             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10268
10269         * gthr-posix.h (__gthrw): Fix typo in comment.
10270
10271 2006-02-23  Geoffrey Keating  <geoffk@apple.com>
10272
10273         * doc/cpp.texi (Character sets): Document that we do support
10274         input files to be in any character set.
10275
10276 2006-02-23  Jeff Law  <law@redhat.com>
10277
10278         * tree.h (PHI_ARG_NONZERO): Remove.
10279         * tree-phinodes.c (add_phi_arg): No longer initialize PHI_ARG_NONZERO.
10280         (remove_phi_arg_num): No longer copy PHI_ARG_NONZERO from the old
10281         node to the new node.
10282
10283         PR tree-optimization/26425
10284         * tree-vrp.c (vrp_visit_assignment): If the LHS's type has a NULL
10285         min/max, then assume its varying.
10286
10287 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
10288
10289         PR rtl-optimization/26316
10290         * rtlanal.c (enum may_trap_p_flags): New.
10291         (may_trap_p_1): Take flags instead of unaligned_mems argument.  Ignore
10292         MEM_NOTRAP_P if flags & MTP_AFTER_MOVE.
10293         (may_trap_p, may_trap_or_fault_p): Pass flags to may_trap_p_1.
10294         (may_trap_after_code_motion_p): New function.
10295         * loop-invariant.c (find_identical_invariants): Fix dump formating.
10296         (find_invariant_insn): Use may_trap_after_code_motion_p.
10297         * rtl.h (may_trap_after_code_motion_p): Declare.
10298
10299 2006-02-23  Zdenek Dvorak <dvorakz@suse.cz>
10300
10301         * emit-rtl.c (immed_double_const): Cleanup.
10302
10303 2006-02-23  Daniel Berlin  <dberlin@dberlin.org>
10304
10305         Fix PR tree-optimization/26376
10306         * tree-ssa-structalias.c (find_func_aliases): Use get_id_for_tree,
10307         remove assert.
10308
10309 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
10310
10311         PR middle-end/26412
10312         * gimplify.c (omp_add_variable): Guard variable size decl test with
10313         DECL_SIZE (decl) check.
10314
10315 2006-02-23  Richard Guenther  <rguenther@suse.de>
10316
10317         PR middle-end/26439
10318         * tree-ssa-structalias.c (find_func_aliases): Handle complex types
10319         like aggregate types.
10320
10321 2006-02-23  Jakub Jelinek  <jakub@redhat.com>
10322
10323         * configure.ac: Add --with{,out}-long-double-128 configure option.
10324         (TARGET_DEFAULT_LONG_DOUBLE_128): New test.
10325         * configure: Rebuilt.
10326         * config.in: Rebuilt.
10327         * doc/install.texi (Options specification): Document
10328         --with-long-double-128.
10329
10330         * config/rs6000/linux.h [TARGET_DEFAULT_LONG_DOUBLE_128]
10331         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
10332         * config/rs6000/linux64.h [TARGET_DEFAULT_LONG_DOUBLE_128]
10333         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define to 128.
10334
10335 2006-02-23  Aldy Hernandez  <aldyh@redhat.com>
10336
10337         * config/s390/s390.c (override_options): Handle
10338         TARGET_DEFAULT_LONG_DOUBLE_128.
10339
10340         * config/alpha/alpha.c (override_options): Handle
10341         TARGET_DEFAULT_LONG_DOUBLE_128.
10342
10343         * config/sparc/sparc.c (sparc_override_options): Handle
10344         TARGET_DEFAULT_LONG_DOUBLE_128.
10345
10346 2006-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
10347
10348         * Makefile.in (stmp-fixinc): Use real-$(INSTALL_HEADERS_DIR).
10349         (real-install-headers-tar, real-install-headers-cpio)
10350         (real-install-headers-cp): New targets.
10351
10352 2006-02-22  Richard Sandiford  <richard@codesourcery.com>
10353
10354         * tree.h (variable_section): Delete.
10355         * varasm.c (variable_section): Delete.
10356
10357 2006-02-22  Paolo Bonzini  <bonzini@gnu.org>
10358
10359         * install.texi: Add notes on install.texi2html.
10360         (Building in parallel): Do not use footnotes.
10361
10362 2006-02-21  Aldy Hernandez  <aldyh@redhat.com>
10363
10364         PR libgomp/26234
10365         * doc/install.texi (Configuration): Document --disable-libgomp.
10366
10367 2006-02-21  Geoffrey Keating  <geoffk@apple.com>
10368
10369         * config/i386/darwin.h (DWARF2_FRAME_REG_OUT): New.
10370
10371 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
10372
10373         * config/i386/sse.md (vec_extractv2df_1_sse): New.
10374         (vec_extractv2df_0_sse): New.
10375
10376 2006-02-21  Alexandre Oliva  <aoliva@redhat.com>
10377
10378         * defaults.h (CFA_FRAME_BASE_OFFSET): Define.
10379         * config/ia64/ia64.h (CFA_FRAME_BASE_OFFSET): Override.
10380         * doc/tm.texi (CFA_FRAME_BASE_OFFSET): Document.
10381         * dwarf2out.c (build_cfa_loc): New offset parameter.  Add it
10382         to the result of the expression.
10383         (def_cfa_1): Adjust.
10384         (frame_pointer_cfa_offset): Rename to...
10385         (frame_pointer_fb_offset): ... this.  Adjust all uses.
10386         (convert_cfa_to_loc_list): Rename to...
10387         (convert_cfa_to_fb_loc_list): ... this.  New offset parameter.
10388         Pass it on to build_cfa_loc.
10389         (compute_frame_pointer_to_cfa_displacement): Rename to...
10390         (compute_frame_pointer_to_fb_displacement): ... this.  New
10391         offset parameter.  Use it in computation.
10392         (gen_subprogram_die): Compute cfa_fb_offset with the new
10393         macro, and use it to compute the fb loc list and the
10394         displacement.
10395
10396 2006-02-21  Bernd Schmidt  <bernd.schmidt@analog.com>
10397
10398         * config/bfin/predicates.md (cc_operand): Delete predicate.  All uses
10399         replaced with register_operand.
10400         * config/bfin/bfin.c (bfin_register_move_cost): Moving CC to any
10401         non-DREG is expensive.
10402         * config/bfin/bfin.h (FIXED_REGISTERS): CC isn't fixed.
10403         * config/bfin/bfin.md (movbi): Fix constraints and template for moves
10404         involving memory.
10405
10406 2006-02-21  Joseph S. Myers  <joseph@codesourcery.com>
10407
10408         * doc/install.texi2html: Use set -e.
10409
10410 2006-02-21  Richard Sandiford  <richard@codesourcery.com>
10411
10412         * doc/tm.texi (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
10413         (ASM_OUTPUT_SHARED_LOCAL): Delete.
10414         * doc/invoke.texi (-fshared-data): Delete.
10415         * common.opt (fshared-data): Delete.
10416         * varasm.c (asm_emit_uninitialised): Remove flag_shared_data handling.
10417         (assemble_static_space): Remove #if 0 code.
10418         * system.h (ASM_OUTPUT_SHARED_COMMON, ASM_OUTPUT_SHARED_BSS)
10419         (ASM_OUTPUT_SHARED_LOCAL): Poison.
10420         * config/cris/cris.h: Remove FIXME.
10421
10422 2006-02-21  Paolo Bonzini  <bonzini@gnu.org>
10423
10424         * doc/sourcebuild.texi (Front End Directory): No more double-colon
10425         hooks.
10426
10427 2006-02-21  Jakub Jelinek  <jakub@redhat.com>
10428
10429         PR middle-end/26379
10430         * combine.c (simplify_shift_const_1): Disable nested shifts
10431         optimization for vector shifts.
10432
10433 2006-02-20  Roger Sayle  <roger@eyesopen.com>
10434
10435         PR tree-optimization/26361
10436         * tree-vrp.c (extract_range_from_unary_expr): Handle NEGATE_EXPR
10437         of unsigned integer types.
10438
10439 2006-02-20  Sebastian Pop  <pop@cri.ensmp.fr>
10440
10441         * tree-chrec.c (eq_evolutions_p): New.
10442         * tree-chrec.h (eq_evolutions_p): Declared.
10443         * tree-data-ref.c: Fix formatting.
10444         (datadep_stats, dependence_stats): New.
10445         (gcd): Moved...
10446         (print_direction_vector): New.
10447         (dump_data_dependence_relation): Use print_direction_vector.
10448         (object_analysis, create_data_ref): Handle COMPONENT_REF.
10449         (compute_subscript_distance): Static.
10450         (initialize_data_dependence_relation): Static.  Get the number
10451         of loops surrounding the references from the callers, and initialize
10452         DDR_SIZE_VECT to nb_loops.  Use both base_addr_differ_p and
10453         base_object_differ_p analyzers.
10454         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
10455         compute_overlap_steps_for_affine_1_2,
10456         analyze_subscript_affine_affine): Count the classified dependences.
10457         Print a message when a test failed.
10458         (can_use_analyze_subscript_affine_affine): New.
10459         (analyze_siv_subscript): Compute the data dependences on symbolic
10460         scevs that verify can_use_analyze_subscript_affine_affine.
10461         (chrec_steps_divide_constant_p): Returns true, false, or unknown.
10462         (analyze_miv_subscript): Update use of chrec_steps_divide_constant_p.
10463         Handle symbolic scevs.
10464         (analyze_overlapping_iterations): Let symbolic affine scevs to be
10465         analyzed.
10466         (subscript_dependence_tester): Moved...
10467         (build_classic_dist_vector, build_classic_dir_vector): Don't use
10468         lambda_vector_clear on newly allocated vectors.  Get nb_loops from
10469         DDR_SIZE_VECT instead of getting it in parameter.
10470         (subscript_dependence_tester): ... here.  Take as a parameter
10471         loop_nest_depth.  Call build_classic_dist_vector and
10472         build_classic_dir_vector.
10473         (compute_affine_dependence): Update subscript_dependence_tester
10474         parameters.  Update datadep_stats counters.  Call
10475         compute_subscript_distance.
10476         (compute_self_dependence): Save the dist and dir vectors.  Call
10477         compute_subscript_distance.
10478         (ddr_p, DEF_VEC_P(ddr_p), DEF_VEC_ALLOC_P(ddr_p,heap)): Moved...
10479         (compute_all_dependences): Reorder parameters as they were before
10480         conversion to VEC.  Pass nb_loops and loop_nest_depth.  Don't call
10481         compute_subscript_distance.  Update the use of
10482         compute_affine_dependence and initialize_data_dependence_relation.
10483         (find_data_references_in_loop): Handle COMPONENT_REF.
10484         (compute_data_dependences_for_loop): Initialize dependence_stats.
10485         Don't call build_classic_dist_vector and build_classic_dir_vector.
10486         Update the parameters of initialize_data_dependence_relation and
10487         compute_all_dependences.  Print the statistics from datadep_stats.
10488         (analyze_all_data_dependences): Static.  Not used until the pass for
10489         checking the data dependences is contributed.
10490         * tree-data-ref.h (ddr_p, DEF_VEC_P(ddr_p),
10491         DEF_VEC_ALLOC_P(ddr_p,heap)): ... here.
10492         (initialize_data_dependence_relation, compute_affine_dependence,
10493         analyze_all_data_dependences, compute_subscript_distance): Removed.
10494         (print_direction_vector): New.
10495         * lambda.h (gcd): ... here.
10496         (lambda_vector_gcd): Moved here from gcd_vector.
10497         * lambda-code.c (gcd, gcd_vector): Removed.
10498         (lambda_compute_target_space): Use lambda_vector_gcd.  Fix formatting.
10499         * Makefile.in (tree-vect-patterns.o): Depends on TREE_DATA_REF_H.
10500
10501 2006-02-20  Diego Novillo  <dnovillo@redhat.com>
10502
10503         * ipa-type-escape.c: Tidy some comments and white space.
10504         * tree-ssa-operands.c: Likewise.
10505
10506 2006-02-20  Andrew Pinski  <pinskia@physics.uc.edu>
10507
10508         PR tree-opt/25879
10509         * tree-pretty-print.c (debug_tree_chain): Walk the chains.
10510         (dump_decl_name): Do not walk the decl tree chains.
10511         * tree-pass.h (TDF_CHAIN): Remove.
10512
10513 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
10514
10515         * Makefile.in (C): Remove
10516         (PROTO): Remove
10517         (.PHONY): Remove C and PROTO
10518
10519 2006-02-20  Roger Sayle  <roger@eyesopen.com>
10520
10521         PR middle-end/26236
10522         * doc/c-tree.texi (INTEGER_TYPE): Remove reference to the now
10523         deprecated CHAR_TYPE tree code.
10524
10525 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
10526
10527         * configure.ac (target_list): Add install-info, dvi, html.
10528         * configure: Regenerate.
10529
10530         * ada/Make-lang.in, cp/Make-lang.in, fortran/Make-lang.in,
10531         java/Make-lang.in, objc/Make-lang.in, objcp/Make-lang.in,
10532         treelang/Make-lang.in: Do not use double-colon rules.
10533
10534 2006-02-20  Daniel Berlin  <dberlin@dberlin.org>
10535
10536         * tree.h (struct tree_memory_tag): Add is_used_alone member.
10537         (TMT_USED_ALONE): New macro.
10538         * tree-pass.h (PROP_tmt_usage): New property.
10539         (TODO_update_tmt_usage): New todo.
10540         * tree-ssa-alias.c (updating_used_alone): New variable.
10541         (recalculate_used_alone): New function.
10542         (compute_may_aliases): Set updating_used_alone, call
10543         recalculate_used_alone.
10544         * tree-sra.c (pass_sra): Note that this pass destroys
10545         PROP_tmt_usage, and add TODO_update_tmt_usage.
10546         * tree-ssa-forwprop.c (pass_forwprop): Ditto.
10547         * tree-flow.h (updating_used_alone): Prototype.
10548         (recalculate_used_alone): Ditto.
10549         * passes.c (execute_todo): Add code to set updating_used_alone,
10550         and call recalculate.
10551         * tree-ssa-operands.c (add_virtual_operand): Only append bare def
10552         for clobber if used alone, and add assert to verify used_alone
10553         status.
10554
10555 2006-02-20  Angel Nunez Mencias  <anunez@de.ibm.com>
10556
10557         * config/s390/s390.c (legitimize_pic_address): Assertions checking
10558         for non tls symbols added.
10559         (legitimize_address): Do nothing for PLUS expressions if one of the
10560         addends is a tls symbol reference.
10561
10562 2006-02-20  Paolo Bonzini  <bonzini@gnu.org>
10563
10564         PR bootstrap/25476
10565
10566         * Makefile.in (LDFLAGS): Define from autoconf substitution.
10567
10568         * Makefile.in (BOOTSTRAPPING): New.
10569         (quickstrap): New definition if BOOTSTRAPPING=yes.
10570
10571         * Makefile.in (CONFIG_LANGUAGES): Substitute all_selected_languages.
10572         * configure.ac: Substitute all_selected_languages with the languages
10573         that were configured.  For all the other variables except
10574         lang_specs_files, include all the languages in the tree.
10575         * configure: Regenerate.
10576
10577         * Makefile.in (stmp-fixinc): Copy includes from the prev-gcc directory,
10578         if there is one.  Run the commands to run fixincludes in the same
10579         subshell.
10580
10581         * doc/makefile.texi: Document new makefile targets from toplevel bootstrap.
10582         * doc/install.texi: Document exact conventions for searching target tools.
10583         Document --with-build-time-tools.  Document toplevel bootstrap.  Document
10584         something more about building an Ada cross-compiler.  Don't list GNU Make
10585         requirements which affect all platforms.
10586
10587 2006-02-19  Roger Sayle  <roger@eyesopen.com>
10588
10589         PR middle-end/19543
10590         * varasm.c (compare_constant) <INTEGER_CST>: Integer constants are
10591         only equivalent if the have both the same mode and precision.
10592
10593 2006-02-20  Ben Elliston  <bje@au.ibm.com>
10594
10595         * doc/tree-ssa.texi (Interfaces): Describe low vs. high GIMPLE.
10596
10597 2006-02-19  Roger Sayle  <roger@eyesopen.com>
10598             Steven Bosscher  <stevenb.gcc@gmail.com>
10599
10600         * gcse.c (want_to_gcse_p): On STACK_REGS targets, look through
10601         constant pool references to identify stack mode constants.
10602         * rtlanal.c (constant_pool_constant_p): New predicate to check
10603         whether operand is a floating point constant in the pool.
10604         * rtl.h (constant_pool_constant_p): Prototype here.
10605         * loop.c (scan_loop): Avoid hoisting constants from the constant
10606         pool on STACK_REGS targets.
10607         (load_mems): Likewise.
10608         * loop-invariant.c (get_inv_cost): Make hoisting constant pool
10609         loads into x87 registers expensive in terms of register pressure.
10610
10611 2006-02-19  Roger Sayle  <roger@eyesopen.com>
10612
10613         * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to
10614         __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined.
10615
10616 2006-02-19  David Edelsohn  <edelsohn@gnu.org>
10617
10618         * config/rs6000/xcoff.h (TARGET_ASM_OUTPUT_ANCHOR): Define.
10619         * config/rs6000/rs6000.c (rs6000_xcoff_asm_output_anchor): Define.
10620
10621 2006-02-19  Daniel Berlin  <dberlin@dberlin.org>
10622
10623         * doc/invoke.texi: Document -fipa-pta.
10624         * common.opt: Add ipa-pta option.
10625         * tree-ssa-structalias.c (DONT_PROPAGATE_WITH_ANYTHING): Removed.
10626         (do_sd_constraint): Enable DONT_PROPAGATE_WITH_ANYTHING code.
10627         (do_ds_constraint): Ditto.
10628         (get_constraint_for): Only add to referenced_vars if
10629         referenced_vars exists.
10630         (insert_into_field_list): Rewrite to do this unsorted.
10631         (insert_into_field_list_sorted): Rename old insert_into_field_list
10632         to this.
10633         (create_function_info_for): Use insert_into_field_list_sorted.
10634         (create_variable_info_for): Rewrite so it uses unsorted version,
10635         since the field list is sorted.
10636         (intra_create_variable_infos): Only add to referenced_vars if
10637         referenced_vars exists.
10638         (ipa_pta_execute): Init heapvars, and delete when done.
10639         * passes.c (init_optimization_passes): Add call to pass_ipa_pta.
10640
10641 2006-02-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10642
10643         * doc/install.texi: Add missing `@samp'.
10644
10645 2006-02-18  Andrew Pinski <pinskia@physics.uc.edu>
10646
10647         * config/rs6000/darwin.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P):
10648         Use the arguments.
10649
10650 2006-02-18  Mark Wielaard  <mark@klomp.org>
10651
10652         * doc/contrib.texi (Contributors): Add classpath/libgcj hackers
10653         who added new 4.1 features, bug fixes and integration support.
10654
10655 2006-02-18  David Edelsohn  <edelsohn@gnu.org>
10656
10657         PR target/26350
10658         * config/rs6000/rs6000.md (extenddftf2): Force 0.0 to validized
10659         MEM for ABI_V4 pic.
10660
10661 2006-02-18  Richard Sandiford  <richard@codesourcery.com>
10662
10663         * cselib.c (cselib_init): Change RTX_SIZE to RTX_CODE_SIZE.
10664         * emit-rtl.c (copy_rtx_if_shared_1): Use shallow_copy_rtx.
10665         (copy_insn_1): Likewise.  Don't copy each field individually.
10666         Reindent.
10667         * read-rtl.c (apply_macro_to_rtx): Use RTX_CODE_SIZE instead
10668         of RTX_SIZE.
10669         * reload1.c (eliminate_regs): Use shallow_copy_rtx.
10670         * rtl.c (rtx_size): Rename variable to...
10671         (rtx_code_size): ...this.
10672         (rtx_size): New function.
10673         (rtx_alloc_stat): Use RTX_CODE_SIZE instead of RTX_SIZE.
10674         (copy_rtx): Use shallow_copy_rtx.  Don't copy each field individually.
10675         Reindent.
10676         (shallow_copy_rtx_stat): Use rtx_size instead of RTX_SIZE.
10677         * rtl.h (rtx_code_size): New variable.
10678         (rtx_size): Change from a variable to a function.
10679         (RTX_SIZE): Rename to...
10680         (RTX_CODE_SIZE): ...this.
10681
10682         PR target/9703
10683         PR tree-optimization/17106
10684         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Document.
10685         (Anchored Addresses): New section.
10686         * doc/invoke.texi (-fsection-anchors): Document.
10687         * doc/rtl.texi (SYMBOL_REF_IN_BLOCK_P, SYMBOL_FLAG_IN_BLOCK): Likewise.
10688         (SYMBOL_REF_ANCHOR_P, SYMBOL_FLAG_ANCHOR): Likewise.
10689         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): Likewise.
10690         * hooks.c (hook_bool_mode_rtx_false): New function.
10691         * hooks.h (hook_bool_mode_rtx_false): Declare.
10692         * gengtype.c (create_optional_field): New function.
10693         (adjust_field_rtx_def): Add the "block_sym" field for SYMBOL_REFs when
10694         SYMBOL_REF_IN_BLOCK_P is true.
10695         * target.h (output_anchor, use_blocks_for_constant_p): New hooks.
10696         (min_anchor_offset, max_anchor_offset): Likewise.
10697         (use_anchors_for_symbol_p): New hook.
10698         * toplev.c (compile_file): Call output_object_blocks.
10699         (target_supports_section_anchors_p): New function.
10700         (process_options): Check that -fsection-anchors is only used on
10701         targets that support it and when -funit-at-a-time is in effect.
10702         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Only create DECL_RTL
10703         if the decl doesn't have one.
10704         * dwarf2out.c: Remove instantiations of VEC(rtx,gc).
10705         * expr.c (emit_move_multi_word, emit_move_insn): Pass the result
10706         of force_const_mem through use_anchored_address.
10707         (expand_expr_constant): New function.
10708         (expand_expr_addr_expr_1): Call it.  Use the same modifier when
10709         calling expand_expr for INDIRECT_REF.
10710         (expand_expr_real_1): Pass DECL_RTL through use_anchored_address
10711         for all modifiers except EXPAND_INITIALIZER.  Use expand_expr_constant.
10712         * expr.h (use_anchored_address): Declare.
10713         * loop-unroll.c: Don't declare rtx vectors here.
10714         * explow.c: Include output.h.
10715         (validize_mem): Call use_anchored_address.
10716         (use_anchored_address): New function.
10717         * common.opt (-fsection-anchors): New switch.
10718         * varasm.c (object_block_htab, anchor_labelno): New variables.
10719         (hash_section, object_block_entry_eq, object_block_entry_hash)
10720         (use_object_blocks_p, get_block_for_section, create_block_symbol)
10721         (use_blocks_for_decl_p, change_symbol_section): New functions.
10722         (get_variable_section): New function, split out from assemble_variable.
10723         (make_decl_rtl): Create a block symbol if use_object_blocks_p and
10724         use_blocks_for_decl_p say so.  Use change_symbol_section if the
10725         symbol has already been created.
10726         (assemble_variable_contents): New function, split out from...
10727         (assemble_variable): ...here.  Don't output any code for
10728         block symbols; just pass them to place_block_symbol.
10729         Use get_variable_section and assemble_variable_contents.
10730         (get_constant_alignment, get_constant_section, get_constant_size): New
10731         functions, split from output_constant_def_contents.
10732         (build_constant_desc): Create a block symbol if use_object_blocks_p
10733         says so.  Or into SYMBOL_REF_FLAGS.
10734         (assemble_constant_contents): New function, split from...
10735         (output_constant_def_contents): ...here.  Don't output any code
10736         for block symbols; just pass them to place_section_symbol.
10737         Use get_constant_section and get_constant_alignment.
10738         (force_const_mem): Create a block symbol if use_object_blocks_p and
10739         use_blocks_for_constant_p say so.  Or into SYMBOL_REF_FLAGS.
10740         (output_constant_pool_1): Add an explicit alignment argument.
10741         Don't switch sections here.
10742         (output_constant_pool): Adjust call to output_constant_pool_1.
10743         Switch sections here instead.  Don't output anything for block symbols;
10744         just pass them to place_block_symbol.
10745         (init_varasm_once): Initialize object_block_htab.
10746         (default_encode_section_info): Keep the old SYMBOL_FLAG_IN_BLOCK.
10747         (default_asm_output_anchor, default_use_aenchors_for_symbol_p)
10748         (place_block_symbol, get_section_anchor, output_object_block)
10749         (output_object_block_htab, output_object_blocks): New functions.
10750         * target-def.h (TARGET_ASM_OUTPUT_ANCHOR): New macro.
10751         (TARGET_ASM_OUT): Include it.
10752         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): New macro.
10753         (TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET): New macros.
10754         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): New macro.
10755         (TARGET_INITIALIZER): Include them.
10756         * rtl.c (rtl_check_failed_block_symbol): New function.
10757         * rtl.h: Include vec.h.  Declare heap and gc rtx vectors.
10758         (block_symbol, object_block): New structures.
10759         (rtx_def): Add a block_symbol field to the union.
10760         (BLOCK_SYMBOL_CHECK): New macro.
10761         (rtl_check_failed_block_symbol): Declare.
10762         (SYMBOL_FLAG_IN_BLOCK, SYMBOL_FLAG_ANCHOR): New SYMBOL_REF flags.
10763         (SYMBOL_REF_IN_BLOCK_P, SYMBOL_REF_ANCHOR_P): New predicates.
10764         (SYMBOL_FLAG_MACH_DEP_SHIFT): Bump by 2.
10765         (SYMBOL_REF_BLOCK, SYMBOL_REF_BLOCK_OFFSET): New accessors.
10766         * output.h (output_section_symbols): Declare.
10767         (object_block): Name structure.
10768         (place_section_symbol, get_section_anchor, default_asm_output_anchor)
10769         (default_use_anchors_for_symbol_p): Declare.
10770         * Makefile.in (RTL_BASE_H): Add vec.h.
10771         (explow.o): Depend on output.h.
10772         * config/rs6000/rs6000.c (TARGET_MIN_ANCHOR_OFFSET): Override default.
10773         (TARGET_MAX_ANCHOR_OFFSET): Likewise.
10774         (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
10775         (rs6000_use_blocks_for_constant_p): New function.
10776
10777 2006-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10778
10779         * doc/install.texi (hppa*-hp-hpux*): Update for 4.1.0.
10780
10781 2006-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
10782
10783         PR tree-opt/25680
10784         * tree-ssa-ccp.c (ccp_fold): Handle store CCP of REALPART_EXPR and
10785         IMAGPART_EXPR.
10786
10787 2006-02-18  Diego Novillo  <dnovillo@redhat.com>
10788
10789         * tree-flow.h (struct var_ann_d): Rename field is_alias_tag to
10790         is_aliased.
10791         Update all users.
10792
10793 2006-02-18  Jakub Jelinek  <jakub@redhat.com>
10794
10795         PR middle-end/26334
10796         * stmt.c (decl_overlaps_hard_reg_set_p): Use DECL_HARD_REGISTER
10797         instead of DECL_REGISTER.
10798
10799 2006-02-18  Olivier Hainque  <hainque@adacore.com>
10800
10801         PR ada/13408
10802         * pa.h (WIDEST_HARDWARE_FP_SIZE): Define.
10803
10804 2006-02-18  Joseph S. Myers  <joseph@codesourcery.com>
10805
10806         PR target/24837
10807         * config.gcc: Define UCLIBC_DEFAULT to 0 or 1.
10808         * opth-gen.awk: Handle Var and InverseMask together.
10809         * config/linux.opt (muclibc, mglibc): Use Var(linux_uclibc).
10810         * config/linux.h: Use #if not #ifdef for testing UCLIBC_DEFAULT.
10811         (TARGET_C99_FUNCTIONS): Test OPTION_GLIBC not TARGET_GLIBC.
10812         (CHOOSE_DYNAMIC_LINKER): Give an error for -mglibc and -muclibc
10813         used together.
10814         (UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10815         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
10816         * config/alpha/linux-elf.h (GLIBC_DYNAMIC_LINKER,
10817         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10818         LINUX_DYNAMIC_LINKER): Define.
10819         (ELF_DYNAMIC_LINKER): Define to LINUX_DYNAMIC_LINKER.
10820         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): Define to
10821         TARGET_GLIBC.
10822         * config/cris/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10823         (CRIS_LINK_SUBTARGET_SPEC): Pass a -dynamic-linker option.
10824         * config/frv/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10825         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10826         (TARGET_C99_FUNCTIONS): Don't define.
10827         * config/i386/linux.h (DYNAMIC_LINKER): Rename to
10828         GLIBC_DYNAMIC_LINKER.
10829         (SUBTARGET_EXTRA_SPECS): Use LINUX_DYNAMIC_LINKER.
10830         * config/i386/linux64.h (GLIBC_DYNAMIC_LINKER32,
10831         GLIBC_DYNAMIC_LINKER64): Define.
10832         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
10833         LINUX_DYNAMIC_LINKER64.
10834         * config/ia64/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10835         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10836         * config/m32r/linux.h (GLIBC_DYNAMIC_LINKE): Define.
10837         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10838         * config/m68k/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10839         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10840         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32,
10841         GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32,
10842         UCLIBC_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKERN32): Define.
10843         (LINK_SPEC): Use LINUX_DYNAMIC_LINKERN32, LINUX_DYNAMIC_LINKER64
10844         and LINUX_DYNAMIC_LINKER32.
10845         * config/mn10300/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10846         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10847         * config/pa/pa-linux.h (GLIBC_DYNAMIC_LINKER): Define.
10848         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10849         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define to
10850         TARGET_GLIBC.
10851         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
10852         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64,
10853         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10854         CHOOSE_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10855         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
10856         (LINK_OS_LINUX_SPEC32): Use LINUX_DYNAMIC_LINKER32.
10857         (LINK_OS_LINUX_SPEC64): Use LINUX_DYNAMIC_LINKER64.
10858         * config/rs6000/sysv4.h (GLIBC_DYNAMIC_LINKER,
10859         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10860         LINUX_DYNAMIC_LINKER): Define.
10861         (LINK_OS_LINUX_SPEC): Use LINUX_DYNAMIC_LINKE.
10862         * config/s390/linux.h (GLIBC_DYNAMIC_LINKER32,
10863         GLIBC_DYNAMIC_LINKER64): Define.
10864         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER32 and
10865         LINUX_DYNAMIC_LINKER64.
10866         * config/sh/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10867         (SUBTARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10868         * config/sparc/linux.h (GLIBC_DYNAMIC_LINKER,
10869         UCLIBC_DYNAMIC_LINKER, CHOOSE_DYNAMIC_LINKER,
10870         LINUX_DYNAMIC_LINKER): Define.
10871         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10872         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
10873         * config/sparc/linux64.h (GLIBC_DYNAMIC_LINKER32,
10874         GLIBC_DYNAMIC_LINKER64, UCLIBC_DYNAMIC_LINKER32,
10875         UCLIBC_DYNAMIC_LINKER64, CHOOSE_DYNAMIC_LINKER,
10876         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64): Define.
10877         (LINK_ARCH32_SPEC): Use LINUX_DYNAMIC_LINKER32.
10878         (LINK_ARCH64_SPEC, LINK_SPEC): Use LINUX_DYNAMIC_LINKER64.
10879         (TARGET_C99_FUNCTIONS): Define to TARGET_GLIBC.
10880         * config/xtensa/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10881         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10882         * doc/invoke.texi (-muclibc): Remove caveat about supported
10883         targets.
10884
10885 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
10886
10887         * doc/cpp.texi (__TIMESTAMP__): Document.
10888
10889 2006-02-17  Roger Sayle  <roger@eyesopen.com>
10890
10891         PR middle-end/25600
10892         * fold-const.c (fold_binary): Fold (X >> C) != 0 into X < 0 when
10893         C is one less than the width of X (and related transformations).
10894         * simplify-rtx.c (simplify_unary_operation_1): Transform
10895         (neg (lt x 0)) into either (ashiftrt X C) or (lshiftrt X C)
10896         depending on STORE_FLAG_VALUE, were C is one less then the
10897         width of X.
10898
10899 2006-02-17  Daniel Berlin  <dberlin@dberlin.org>
10900
10901         Fix PR tree-optimization/26341
10902         * tree-ssa-operands.c (add_virtual_operand): Remove assert
10903         about NAME_MEMORY_TAG's.
10904
10905 2006-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10906
10907         PR target/26255
10908         * pa.md: Create separate HI and QI move patterns for 32-bit and 64-bit
10909         with hardware float support, and software float support.  Add fcpy
10910         alternative to hardware patterns.  Add alternatives to copy between
10911         general and floating-point registers to the 32-bit pattern.
10912         * pa.c (pa_secondary_reload): Don't abort if reload tries to find a
10913         secondary reload to load a QI or HI mode constant into a floating
10914         point register.
10915         * pa32-regs.h (VALID_FP_MODE_P): Allow QImode and HImode.
10916         * pa64-regs.h (VALID_FP_MODE_P): Likewise.
10917
10918 2006-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
10919
10920         PR target/26272
10921         * config/rs6000/darwin.md (load_macho_picbase_si): Add
10922         pc to the pattern.
10923         (load_macho_picbase_di): Likewise.
10924
10925 2006-02-16  Jeff Law  <law@redhat.com>
10926
10927         * tree-vrp.c (set_value_range_to_nonnegative): New function.
10928         (vrp_expr_computes_nonnegative, ssa_name_nonnegative_p): Likewise.
10929         (ssa_name_nonzero_p): Likewise.
10930         (get_value_range): Return NULL if VRP is not running.
10931         (extract_range_from_expr): Fallback to tree_expr_XXX_p if
10932         VRP routines do not discover a range.
10933         (vrp_finalize): Clear VR_VALUE to indicate VRP is not running.
10934         * tree.h (ssa_name_nonzero_p, ssa_name_nonnegative_p): Prototype.
10935         * fold-const.c (tree_expr_nonzero_p): For SSA_NAMEs, query VRP.
10936         (tree_expr_nonnegative_p): Similarly.
10937         * tree-ssa-dom.c (nonzero_vars, nonzero_vars_stack): Remove.
10938         (restore_nonzero_vars_to_original_value): Remove.
10939         (unsafe_associative_fp_binop): Remove.
10940         (tree_ssa_dominator_optimize): Remove initialization and
10941         finalization of nonzero_vars and nonzero_vars_stack.
10942         (dom_opt_initialize_block): No longer push marker on
10943         nonzero_vars_stack.
10944         (dom_opt_finalize_block): No longer call
10945         restore_nonzero_vars_to_original_value.
10946         (record_equivalences_from_phis): No longer look for
10947         nonzero PHI arguments.
10948         (cprop_into_successor_phis): No longer propagate nonzero
10949         property into PHI arguments.  Lose unused argument.  Caller
10950         updated.
10951         (record_equivalences_from_stmt): No longer record nonzero
10952         values for SSA_NAMEs.
10953         (lookup_avail_expr): No longer use nonzero_vars.
10954
10955         * stor-layout.c (set_sizetype): Set TYPE_MAX_VALUE properly
10956         for sizetype when sizetype is unsigned.
10957
10958 2006-02-16  Denis Nagorny <denis_nagorny@linux.intel.com>
10959
10960         PR rtl-optimization/25603
10961         * reload.c (reg_inc_found_and_valid_p): New. Check REG_INC note.
10962         (regno_clobbered_p): Use it. Reusing SETS argument for REG_INC case.
10963         * reload1.c (choose_reload_regs): Added call of regno_clobbered_p
10964         with new meaning of SETS.
10965
10966 2006-02-16  Joseph S. Myers  <joseph@codesourcery.com>
10967
10968         PR target/20353
10969         PR target/24578
10970         PR target/24837
10971         * config/linux.opt: New file.
10972         * config/linux.h (CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10973         LINUX_DYNAMIC_LINKER): Define.
10974         (TARGET_C99_FUNCTIONS): Define depending on TARGET_GLIBC.
10975         * config.gcc (*-*-linux*): Define extra_options.
10976         (*-*-*uclibc*): Define UCLIBC_DEFAULT.
10977         (arm*-*-linux-gnueabi): Change to arm*-*-linux-*eabi.
10978         * config/arm/linux-eabi.h (LINUX_TARGET_INTERPRETER): Change to
10979         GLIBC_DYNAMIC_LINKER.
10980         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): Likewise.
10981         (LINUX_TARGET_LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10982         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10983         (LINK_SPEC): Use LINUX_DYNAMIC_LINKER.
10984         * doc/invoke.texi (GNU/Linux Options): New section.
10985
10986 2006-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10987
10988         * config/sparc/sparc.md (setjmp): Rewrite.
10989         (setjmp_32): Delete.
10990         (setjmp_64): Likewise.
10991
10992 2006-02-16  Daniel Berlin <dberlin@dberlin.org>
10993
10994         * tree-ssa-operands.c (access_can_touch_variable): Fix typo in
10995          previous change.
10996
10997 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
10998
10999         * loop-invariant.c (invariant_for_use, check_dependencies): Fail for
11000         read-write uses.
11001
11002 2006-02-16  Zdenek Dvorak <dvorakz@suse.cz>
11003
11004         PR rtl-optimization/26296
11005         * Makefile.in (loop-invariant.c): Add except.h dependency.
11006         * loop-invariant.c: Include except.h.
11007         (find_invariant_insn): Ignore insns satisfying can_throw_internal.
11008
11009 2005-02-16  Paul Brook  <paul@codesourcery.com>
11010
11011         * reload1.c (emit_reload_insns): Invalidate dead input registers used
11012         for reloads.
11013
11014 2006-02-16  Bernd Schmidt  <bernd.schmidt@analog.com>
11015
11016         PR rtl-optimization/25636
11017         * local-alloc.c (update_equiv_regs): Lose a bogus rtx_equal_p test
11018         when deciding whether an insn is an initializing insn.
11019
11020 2006-02-15 Daniel Berlin  <dberlin@dberlin.org>
11021
11022         * tree.c (init_ttree): Add STRUCT_FIELD_TAG handling.
11023         (tree_code_size): Ditto.
11024         * tree.h (struct tree_memory_tag): Remove parent_var.
11025         (struct tree_struct_field_tag): New.
11026         (SFT_OFFSET): New.
11027         (SFT_SIZE): New.
11028         (union tree_node): Add sft member.
11029         * tree-ssa-alias.c (get_tmt_for): Don't handle TYPE_READONLY
11030         specially here.
11031         (create_sft): Add size and offset argument, set SFT_OFFSET and
11032         SFT_SIZE.
11033         (create_overlap_variables_for): Update for SFT_OFFSET/SFT_SIZE.
11034         * treestruct.def: Add TS_STRUCT_FIELD_TAG.
11035         * tree-flow-inline.h (get_subvar_at): Update for
11036         SFT_OFFSET/SFT_SIZE.
11037         (var_can_have_subvars): Ditto.
11038         (overlap_subvar): Ditto.
11039         * print-tree.c (print_node): Print out interesting things for
11040         SFT's.
11041         * tree-flow.h (struct subvar): Remove offset and size members.
11042         * tree-ssa-operands.c (get_expr_operands): Update for
11043         get_indirect_ref_operands changes.
11044         (get_indirect_ref_operands): Call add_virtual_operand instead of
11045         add_stmt_operand.  Only recurse on base var if requested.
11046         (access_can_touch_variable): New function.
11047         (add_stmt_operand): Split virtual operand handling into ...
11048         (add_virtual_operand): Here.  Add offset, size, and for_clobber
11049         arguments.  Prune alias sets.
11050         (add_call_clobber_ops): Call add_virtual_operand.
11051
11052 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
11053
11054         PR middle-end/26300
11055         * combine.c (make_extraction): Bail out if ORIG_POS is negative.
11056
11057         * tree.h (struct tree_omp_clause): Use OMP_CLAUSE_CODE rather
11058         than TREE_CODE as index into omp_clause_num_ops array.
11059
11060 2006-02-15  Uttam Pawar  <uttamp@us.ibm.com>
11061
11062         PR rtl-optimization/26184
11063         * modulo-sched.c (generate_reg_moves): Free bitmap vector
11064         uses_of_defs.
11065         * modulo-sched.c (sms_schedule): Free g_arr pointer.
11066         * modulo-sched.c (sms_schedule_by_order): Free bitmap pointers
11067         must_precede, must_follow and tobe_scheduled.
11068
11069         PR other/26147
11070         * opts.c (common_handle_option): Free new_option pointer.
11071         * df-core.c (df_analyze): Free postorder pointer.
11072
11073 2006-02-15  Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11074
11075         * Makefile.in: Fix the examples about the use of stamps
11076
11077 2006-02-15  Michael Matz  <matz@suse.de>
11078
11079         PR middle-end/22275
11080
11081         * stor-layout.c (layout_decl): Zero-width bitfields aren't
11082         influenced by maximum_field_alignment or DECL_PACKED.
11083         (update_alignment_for_field): Ditto.
11084         (place_field): Ditto.
11085         * doc/extend.texi (<#pragma pack>, <Type Attributes>): Document
11086         this behaviour.
11087
11088 2006-02-15  Paolo Bonzini  <bonzini@gnu.org>
11089
11090         * cfg.c (dump_flow_info): Get dump flags as an additional parameter.
11091         (debug_flow_info): Pass it.
11092         * alias.c (rest_of_handle_cfg): Adjust calls to dump_flow_info.
11093         * bb-reorder.c (reorder_basic_blocks): Likewise.
11094         * cfgcleanup.c (rest_of_handle_jump2): Likewise.
11095         * cse.c (rest_of_handle_cse, rest_of_handle_cse2): Likewise.
11096         * flow.c (life_analysis, recompute_reg_usage): Likewise.
11097         * gcse.c (gcse_main, bypass_jumps): Likewise.
11098         * ifcvt.c (rest_of_handle_if_conversion): Likewise.
11099         * local-alloc.c (rest_of_handle_local_alloc): Likewise.
11100         * loop-init.c (rtl_loop_init, rtl_loop_done): Likewise.
11101         * profile.c (compute_branch_probabilities, branch_prob): Likewise.
11102         * rtl.h (dump_flow_info): Adjust prototype.
11103         * tracer.c (rest_of_handle_tracer, tracer): Likewise.
11104         * var-tracking.c (variable_tracking_main): Likewise.
11105         * passes.c (execute_todo): Obey TDF_BLOCKS for RTL.
11106         * tree-dump.c (enable_rtl_dump_file): Enable the details and blocks
11107         options.
11108
11109 2006-02-15  Marcin Dalecki <martin@dalecki.de>
11110
11111         * tree-ssa-dom.c (dom_thread_across_edge): fix tag expression
11112         construction.
11113
11114 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
11115
11116         PR tree-optimization/26209
11117         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_cleanup_cfg.
11118         * tree-cfgcleanup.c (cleanup_control_flow): Remove dead
11119         eh edges.
11120         * tree-cfg.c (replace_uses_by): Do not alter cfg.
11121
11122 2006-02-14  Roger Sayle  <roger@eyesopen.com>
11123
11124         PR middle-end/23670
11125         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into
11126         (X,Y) and the corresponding symmetry related transformations.
11127         (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into
11128         (X,Y) and its symmetry related transformations.
11129
11130 2006-02-14  Roger Sayle  <roger@eyesopen.com>
11131
11132         * dojump.c (do_compare_rtx_and_jump): Also handle multi-word GTU
11133         and GEU.
11134
11135 2006-02-14  Adam Nemet  <anemet@caviumnetworks.com>
11136
11137         * simplify-rtx.c (simplify_subreg): Combine SUBREG and TRUNCATE.
11138
11139 2006-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11140
11141         PR bootstrap/26053
11142         * configure.ac (HAVE_COMDAT_GROUP): Don't assume non-GNU linkers
11143         support COMDAT group.
11144         * configure: Regenerate.
11145
11146 2006-02-14  Roger Sayle  <roger@eyesopen.com>
11147
11148         PR middle-end/26279
11149         PR middle-end/26280
11150         PR middle-end/26283
11151         * dojump.c (do_compare_rtx_and_jump): Handle multi-word LE.
11152
11153 2006-02-14  Daniel Berlin  <dberlin@dberlin.org>
11154
11155         Fix PR tree-optimization/26260
11156
11157         * doc/invoke.texi (max-fields-for-field-sensitive): Document
11158         param.
11159         * params.h (MAX_FIELDS_FOR_FIELD_SENSITIVE): New.
11160         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Ditto.
11161         * tree-ssa-structalias.c (create_variable_info_for): Use
11162         MAX_FIELDS_FOR_FIELD_SENSITIVE.
11163
11164 2006-02-14  Zdenek Dvorak <dvorakz@suse.cz>
11165
11166         * doc/invoke.texi (-fprefetch-loop-arrays, -fprefetch-loop-arrays-rtl):
11167         Document.
11168         * tree-ssa-loop-niter.c (number_of_iterations_ne,
11169         number_of_iterations_lt, number_of_iterations_cond): Remember the shape
11170         of the ending condition.
11171         * tree-ssa-loop-manip.c: Include params.h.
11172         (build_if_stmt, can_unroll_loop_p, determine_exit_conditions,
11173         tree_unroll_loop): New functions.
11174         * tree-pass.h (pass_loop_prefetch): Declare.
11175         * loop.c (rest_of_handle_loop_optimize): Test for
11176         -fprefetch-loop-arrays-rtl.
11177         * tree-scalar-evolution.h (affine_iv): Moved to tree-flow.h.
11178         * timevar.def (TV_TREE_PREFETCH): New timevar.
11179         * tree-ssa-loop.c (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11180         pass_loop_prefetch): New.
11181         * tree-cfgcleanup.c: Include tree-scalar-evolution.h.
11182         (cleanup_tree_cfg_loop): Call scev_reset.
11183         * common.opt (fprefetch-loop-arrays-rtl): Add.
11184         * tree-ssa-loop-prefetch.c: New file.
11185         * tree-outof-ssa.c (struct value_expr_d): Add expr_vars field.
11186         (new_temp_expr_table): Initialize expr_vars.
11187         (free_temp_expr_table): Cleanup expr_vars.
11188         (check_replaceable, find_replaceable_in_bb): Prevent accumulating
11189         expressions from being merged into one.
11190         * tree-flow.h (affine_iv): Moved from tree-scalar-evolution.h.
11191         (struct tree_niter_desc): Add control, bound and cmp fields.
11192         (tree_ssa_prefetch_arrays, can_unroll_loop_p, tree_unroll_loop):
11193         Declare.
11194         * Makefile.in (tree-ssa-loop-prefetch.o): Add.
11195         (tree-cfgcleanup.o): Add SCEV_H dependency.
11196         (tree-ssa-loop-manip.o): Add PARAMS_H dependency.
11197         * passes.c (init_optimization_passes): Add pass_loop_prefetch.
11198
11199 2006-02-14  Richard Guenther  <rguenther@suse.de>
11200
11201         PR tree-optimization/26258
11202         * tree-ssa-structalias.c (find_func_aliases): Handle aggregates
11203         in PHI argument processing.
11204
11205 2006-02-13  Adam Nemet  <anemet@caviumnetworks.com>
11206
11207         * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: Return
11208         new expression in the requested machine mode.
11209
11210 2006-02-13  Roger Sayle  <roger@eyesopen.com>
11211
11212         * optabs.c (expand_abs): Don't call do_jump_by_parts_greater_rtx
11213         directly, instead let do_compare_rtx_and_jump handle this for us.
11214         * expr.c (expand_expr_real_1): Likewise.
11215         * dojump.c (do_jump_by_parts_greater_rtx): Make static.  Move
11216         before do_jump_by_parts_greater.
11217         (do_jump_by_parts_greater): Move after do_jump_by_parts_greater_rtx.
11218         * expr.h (do_jump_by_parts_greater_rtx): Delete prototype.
11219
11220 2006-02-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11221
11222         * pa/quadlib.c: Use defines instead of enum qfcmp_magic.
11223
11224 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
11225
11226         PR rtl-optimization/26235
11227         * loop-invariant.c (hash_invariant_expr_1): Handle 'i' and 'n' formats.
11228         (invariant_expr_equal_p): Handle 'i' and 'n' formats.  Fail on unknown
11229         format.
11230
11231 2006-02-13  Jeff Law  <law@redhat.com>
11232
11233         * tree-vrp.c (extract_range_from_binary_expr): Remove handling of
11234         TRUTH_XOR_EPR.
11235
11236 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
11237
11238         PR middle-end/26092
11239         * gimplify.c (gimplify_call_expr): Don't call get_callee_fndecl
11240         twice if decl is a builtin.  When trying again, call get_callee_fndecl
11241         first to verify it is still a builtin.
11242
11243 2006-02-13  Geoffrey Keating  <geoffk@apple.com>
11244
11245         * dwarf2out.c (base_type_die): Don't add AT_name here.
11246         (subrange_type_die): Don't add AT_name here.
11247         (modified_type_die): Rearrange code flow.  Do add AT_name here.
11248
11249 2006-02-13  Zdenek Dvorak <dvorakz@suse.cz>
11250
11251         PR rtl-optimization/26247
11252         PR rtl-optimization/26248
11253         * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
11254
11255 2006-02-13  Richard Sandiford  <richard@codesourcery.com>
11256
11257         * config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
11258         * config/fixtfdi.c: Likewise.
11259         * config/fixunstfdi.c: Likewise.
11260         * config/floatditf.c: Likewise.
11261
11262 2006-02-13  Roger Sayle  <roger@eyesopen.com>
11263
11264         PR middle-end/24427
11265         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Transform (X&C1)|C2
11266         into (X,C2) if C1 is a subset of the bits of C2.  Transform
11267         (X&C1)|C2 into X|C2 if C1|C2 == ~0.  Canonicalize (X&C1)|C2 as
11268         (X&(C1&~C2))|C2.
11269         <BIT_AND_EXPR>: Canonicalize (X|C1)&C2 as (X&C2)|(C1&C2).
11270
11271 2006-02-13  Josh Conner  <jconner@apple.com>
11272
11273         PR target/25376
11274         * varasm.c (function_section): Check for section name before
11275         calling select_section on targets that define
11276         USE_SELECT_SECTION_FOR_FUNCTIONS.  On other targets, use
11277         unlikely_text_section instead of hot_function_section if
11278         first_function_block_is_cold.
11279
11280 2006-02-13  J"orn Rennecke <joern.rennecke@st.com>
11281
11282         PR middle-end/25335
11283         * reload1.c (gen_reload): Also use find_replacement in UNARY_P case.
11284
11285 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
11286
11287         PR rtl-optimization/26222
11288         * function.c (assign_stack_temp_for_type): Do not reuse stack slots
11289         after tree->rtl expansion.
11290         * loop-invariant.c (move_invariant_reg): Use force_operand on rhs
11291         before passing it to emit_move_insn.
11292
11293 2006-02-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11294
11295         * doc/invoke.texi (-Write-strings): Document that it is enabled by
11296         default.
11297         * c.opt (-Wwrite-strings): Declare variable warn_write_strings.
11298         Clarify documentation.
11299         * c-common.h (warn_write_strings): Remove.
11300         * c-common.c (warn_write_strings): Likewise.
11301         * c-opts.c (c_common_init_options): Enable -Wwrite-strings by
11302         default for C++.
11303
11304 2006-02-12  Roger Sayle  <roger@eyesopen.com>
11305
11306         PR middle-end/25724
11307         * dojump.c (do_jump): Call do_compare_rtx_and_jump.
11308         (do_jump_parts_zero_rtx): New function renamed from
11309         do_jump_parts_equality_rtx.  Made static.  Add a mode argument.
11310         (do_jump_parts_equality_rtx): New function split out from
11311         do_jump_parts_equality.  Old implementation renamed as above.
11312         Call do_jump_parts_zero_rtx if either operand is zero.
11313         (do_jump_parts_equality): Call do_jump_parts_equality_rtx to
11314         do all of the heavy lifting.
11315         (do_compare_rtx_and_jump): Handle multi-word comparisons by
11316         calling either do_jump_by_parts_greater_rtx or
11317         do_jump_by_parts_equality_rtx.
11318         * expr.h (do_jump_by_parts_equality_rtx): Remove prototype.
11319         * expmed.c (do_cmp_and_jump): Now multi-word optimization has
11320         moved to do_compare_rtx_and_jump, call it directly.
11321         * stmt.c (do_jump_if_equal): Remove static prototype.  Add a
11322         mode argument.  Call do_compare_rtx_and_jump.
11323         (emit_case_nodes): Update calls to do_jump_if_equal.
11324
11325 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
11326
11327         PR rtl-optimization/26225
11328         * loop-invariant.c (may_assign_reg_p): Do not allow BLKmode operands.
11329
11330 2006-02-12  Zdenek Dvorak <dvorakz@suse.cz>
11331
11332         PR rtl-optimization/26232
11333         * loop-invariant.c (find_invariant_insn): Ignore insns that set CC0.
11334
11335 2006-02-11  Jason Merrill  <jason@redhat.com>
11336
11337         PR tree-opt/24365
11338         * tree-inline.c (declare_return_variable): Just don't use the
11339         modify target if it's a gimple complex reg and the return slot
11340         isn't.
11341
11342 2006-02-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11343
11344         * doc/contrib.texi: Update my entry.
11345
11346 2006-02-10  Geoffrey Keating  <geoffk@apple.com>
11347
11348         * config/i386/darwin.h (DBX_REGISTER_NUMBER): Define.
11349
11350 2006-02-10  Diego Novillo  <dnovillo@redhat.com>
11351
11352         * tree-inline.c (estimate_num_insns_1): Make OpenMP directives
11353         expensive.
11354
11355 2006-02-10  Zdenek Dvorak <dvorakz@suse.cz>
11356
11357         * doc/invoke.texi (-floop-optimize2): Removed.
11358         * toplev.c (process_options): Remove handling of flag_loop_optimize2.
11359         * loop-init.c (gate_handle_loop2): Do not test flag_loop_optimize2.
11360         Test flag_branch_on_count_reg only if HAVE_doloop_end.
11361         * common.opt (floop-optimize2): Removed.
11362         (fmove-loop-invariants): Enabled by default.
11363
11364 2006-02-10  Sebastian Pop  <pop@cri.ensmp.fr>
11365
11366         * tree-if-conv.c (combine_blocks): Free the result of
11367         get_loop_exit_edges.
11368
11369 2006-02-10  Jeff Law  <law@redhat.com>
11370
11371         * fold-const.c (tree_expr_nonzero_p): Fix thinko.
11372
11373         PR tree-optimization/26213
11374         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Do not
11375         loop trying to follow SSA_NAME_VALUE chains.
11376
11377 2006-02-10  Richard Guenther  <rguenther@suse.de>
11378
11379         * tree-dfa.c (get_ref_base_and_extent): When computing maxsize
11380         deal with structures that end in implicitly variable sized arrays.
11381
11382 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
11383
11384         PR rtl-optimization/24762
11385         * df-scan.c (df_bb_refs_record): Record correct registers defined on
11386         eh edges.
11387
11388 2006-02-09  Zdenek Dvorak <dvorakz@suse.cz>
11389
11390         * tree-ssa-loop-ivopts.c (struct loop_data, loop_data): Removed.
11391         (struct ivopts_data): Add regs_used field.
11392         (tree_ssa_iv_optimize_init): Do not allocate aux fields for loops.
11393         (ivopts_global_cost_for_size, determine_set_costs): Use data->regs_used
11394         instead of loop_data->regs_used;
11395         (free_loop_data): Do not free aux fields for loops.
11396         (tree_ssa_iv_optimize): Do not pass loops to tree_ssa_iv_optimize_init
11397         and tree_ssa_iv_optimize_finalize.
11398
11399 2006-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
11400
11401         * config/sh/sh.h (FUNCTION_VALUE): Don't handle CHAR_TYPE.
11402
11403 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
11404
11405         PR target/26141
11406         * sh.c (sh_gimplify_va_arg_expr): Don't change the result type when
11407         computing the effective result type.
11408
11409 2006-02-09  J"orn Rennecke <joern.rennecke@st.com>
11410
11411         PR inline-asm/16194
11412         * tree.h (decl_overlaps_hard_reg_set_p) Don't declare.
11413         (tree_overlaps_hard_reg_set): Declare.
11414         * stmt.c (decl_overlaps_hard_reg_set_p): Now static.  Change return
11415         type and signature to match function type expected by walk_tree.
11416         (tree_overlaps_hard_reg_set): New function.
11417         (decl_conflicts_with_clobbers_p): Rename to:
11418         (tree_conflicts_with_clobbers_p).  Take HARD_REG_SET * argument.
11419         Use tree_overlaps_hard_reg_set.  Changed caller.
11420         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Replace
11421         decl_overlaps_hard_reg_set_p with tree_overlaps_hard_reg_set.
11422         * cris.c (cris_md_asm_clobbers): Likewise.
11423
11424 2006-02-09  Bernd Schmidt  <bernd.schmidt@analog.com>
11425
11426         * reload1.c (emit_input_reload_insns): Delete code that tries to
11427         inherit using find_equiv_reg.
11428
11429 2006-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11430
11431         * c-common.h (flag_const_strings): Don't declare.
11432         * c-common.c (flag_const_strings): Remove.
11433         * c.opt (fconst_strings): Remove.
11434         * c-opts.c (c_common_handle_option): Remove <OPT_fconst_strings>.
11435         <OPT_Wwrite_strings>: Don't set flag_const_strings.
11436         (c_common_init_options): Don't set flag_const_strings.
11437         * doc/invoke.texi (-fno-const-strings): Remove documentation.
11438
11439 2006-02-09  Richard Earnshaw  <richard.earnshaw@arm.com>
11440
11441         * arm.md (tlobits_cbranch): New pattern.
11442         * arm.h (arm_select_cc_mode): For thumb, only return CC_Nmode if
11443         testing a single bit.
11444
11445 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
11446
11447         PR tree-opt/26179
11448         * tree-ssa-pre.c (create_component_ref_by_pieces):
11449         Handle RETURN_DECL like VAR_DECL.
11450
11451 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
11452
11453         PR middle-end/26134
11454         * fold-const.c (fold_indirect_ref_1): Fold
11455         "*(foo *)&complexfoo" to "__real__ complexfoo"
11456         and "((foo*)&complexfoo)[1]" to "__imag__ complexfoo".
11457
11458 2006-02-09  Andrew Pinski  <pinskia@physics.uc.edu>
11459
11460         * tree-flow-inline.h (var_can_have_subvars):
11461         Volatile variables should not have subvariables.
11462
11463 2006-02-09  Diego Novillo  <dnovillo@redhat.com>
11464
11465         PR 26180
11466         * tree-vrp.c (vrp_int_const_binop): Detect overflow when
11467         multiplying unsigned values.
11468         Tidy comments.
11469
11470 2006-02-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
11471
11472         * config/sparc/sparc.c (tls_call_delay): Fix oversight.
11473
11474 2006-02-08  Jason Merrill  <jason@redhat.com>
11475
11476         PR c++/25979
11477         * tree.def: Elaborate on difference from MODIFY_EXPR.
11478         * doc/c-tree.texi (INIT_EXPR): Likewise.
11479         * gimplify.c (internal_get_tmp_var): Use INIT_EXPR.
11480         (gimplify_decl_expr, gimplify_init_ctor_eval): Likewise.
11481         (gimplify_target_expr): Likewise.
11482         (gimplify_cond_expr): Remove target handling.
11483         (gimplify_modify_expr): Don't clobber INIT_EXPR code here.
11484         (gimplify_expr): Clobber it here.
11485         (gimplify_modify_expr_rhs): Push assignment into COND_EXPR here.
11486         Do return slot optimization if we have an INIT_EXPR.
11487
11488         PR tree-opt/24365
11489         * tree-inline.c (declare_return_variable): Also clear
11490         DECL_COMPLEX_GIMPLE_REG_P as needed in the modify_dest case.
11491
11492         PR c++/16405
11493         * gimplify.c (gimplify_modify_expr_rhs): Re-enable *& handling.
11494
11495         PR middle-end/22439
11496         * gimplify.c (gimplify_one_sizepos): Fix typo.
11497
11498 2006-02-08  Jeff Law  <law@redhat.com>
11499
11500         PR tree-optimization/21417
11501         * tree-ssa-threadedge.c (thread_across_edge): Reject threading
11502         across a backedge if the control statement at the end of the
11503         block is data dependent on other statements in the same block.
11504         (record_temporary_equivalences_from_stmts): Remove over-conservative
11505         test for threading across backedges.
11506
11507         * tree-ssa-dce.c (remove_dead_statement): When removing a dead
11508         control statement, handle all three special cases in the same
11509         manner as they all have the same desired solution.  No longer
11510         special case edge flag updating when the post dominator is
11511         the exit block.
11512
11513 2006-02-08  Roger Sayle  <roger@eyesopen.com>
11514
11515         * tree.def (CHAR_TYPE): Remove.
11516         * dbxout.c (dbxout_type): Delete dead handling of CHAR_TYPE.
11517         * dwarf2out.c (base_type_die, is_base_type): Likewise.
11518         (gen_type_die) <ARRAY_TYPE>: Remove handling of CHAR_TYPE arrays.
11519         (gen_string_type_die): Delete unreachable function.
11520
11521         * tree-pretty-print.c (dump_generic_node): Don't handle CHAR_TYPE.
11522         * tree.c (build_int_cst_wide, type_contains_placeholder_1,
11523         type_hash_eq, variably_modified_type_p, walk_type_fields): Likewise.
11524         * tree.h (NUMERICAL_TYPE_CHECK, INTEGRAL_TYPE_P): Likewise.
11525         * builtins.c (type_to_class): Likewise.
11526         * fold-const.c (fold_convert, build_range_check,
11527         merge_ranges): Likewise.
11528         * expr.c (count_type_elements): Likewise.
11529         * c-pretty-print.c (pp_c_type_specifier): Likewise.
11530         * stor-layout.c (layout_type): Likewise.
11531         * ipa-type-escape.c (type_to_consider): Likewise.
11532         * gimplify.c (omp_firstprivatize_type_sizes,
11533         gimplify_type_sizes): Likewise.
11534         * explow.c (promote_mode): Likewise.
11535         * tree-sra.c (is_sra_scalar_type): Likewise.
11536         * varasm.c (output_constant): Likewise.
11537         * tree-inline.c (remap_type_1): Likewise.
11538         * convert.c (convert_to_pointer, convert_to_real,
11539         convert_to_integer, convert_to_complex): Likewise.
11540
11541 2006-02-08  Daniel Berlin  <dberlin@dberlin.org>
11542
11543         * df-scan.c (df_def_record_1): A set destination may
11544         be a parallel regardless of mode.
11545
11546 2006-02-08  Roger Sayle  <roger@eyesopen.com>
11547
11548         PR target/22209
11549         * config/mips/mips.h (MIN_UNITS_PER_WORD): Don't define for libgcc.
11550         * config/mips/_tilib.c: Remove.
11551         * config/fixtfdi.c: New libgcc source file.
11552         * config/fixunstfdi.c: New source file.
11553         * config/floatditf.c: New source file.
11554         * config/floatunditf.c: New souce file.
11555         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Include the new source
11556         files above instead of config/mips/_tilib.c.
11557         * config/mips/t-linux64 (LIB2FUNCS_EXTRA): Likewise.
11558
11559 2006-02-08  Jeff Law  <law@redhat.com>
11560
11561         PR tree-optimization/26169
11562         * tree-vrp.c (execute_vrp): Perform any queued SSA updates before
11563         threading jumps.
11564
11565 2006-02-08  Zdenek Dvorak <dvorakz@suse.cz>
11566
11567         * df.h (DF_REG_SIZE): Return the length of the initialized
11568         part of the array.
11569
11570 2006-02-08  Nathan Sidwell  <nathan@codesourcery.com>
11571
11572         * config/m68k/lb1sf68.asm (__divsf3, __divdf3, __mulsf3,
11573         __muldf3): Return a correctly signed zero.
11574
11575 2006-02-08  Paolo Bonzini  <bonzini@gnu.org>
11576
11577         * passes.c (register_one_dump_file): Accept the current properties
11578         instead of pass number.  Adjust call to dump_register.  Remove
11579         duplicated code.
11580         (register_dump_files): Now a wrapper around...
11581         (register_dump_files_1): ... this one.  Do not modify the pass
11582         structure.
11583         (next_pass_1): Cosmetic fix.
11584         (execute_todo): Keep second parameter only.  Use curr_properties
11585         instead of fetching it from the pass structure.  Check and set
11586         last_verified.
11587         (execute_one_pass): Handle TODO_set_props.  Use curr_properties
11588         instead of fetching it from the pass structure.  Fix calls to
11589         execute_todo.  Update curr_properties and initialize .vcg RTL dump
11590         after running the pass.  Reset last_verified.
11591         * tree-dump.c (dump_files): Renumber consecutively.  Put .cgraph dump
11592         at the beginning.
11593         (FIRST_AUTO_NUMBERED_DUMP): New.
11594         (dump_register): Remove "num" parameter, assign it within the
11595         function.
11596         (get_dump_file_name): Modify template for dumps.
11597         * tree-dump.h (dump_register): Adjust prototype.
11598         * tree-pass.h (enum tree_dump_index): Move cgraph at the beginning.
11599         (PROP_trees): Add PROP_gimple_lomp.
11600         (TODO_set_props): New.
11601         * gimple-low.c (pass_lower_cf): Do not destroy PROP_gimple_lcf.
11602         * tree-eh.c (pass_lower_eh): Do not destroy PROP_gimple_leh.
11603         * cfgexpand.c (pass_expand): Destroy PROP_trees.
11604
11605 2006-02-08  Jakub Jelinek  <jakub@redhat.com>
11606
11607         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
11608         (sparc64-*-linux*): Likewise.
11609         * config/sparc/t-linux64 (SHLIB_MAPFILES): Removed.
11610         * config/sparc/t-linux: New file.
11611         * config/sparc/libgcc-sparc-glibc.ver (__fixtfdi, __fixunstfdi,
11612         __floatditf): Export at GCC_LDBL_3.0 if -m32 -mlong-double-128.
11613         (__divtc3, __multc3, __powitf2): Export at GCC_LDBL_4.0.0 if
11614         -m32 -mlong-double-128.
11615
11616         * config.gcc (alpha*-*-linux*): Add alpha/t-linux to tmake_file.
11617         * config/alpha/t-linux: New file.
11618         * config/alpha/libgcc-alpha-ldbl.ver: New file.
11619
11620         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Define
11621         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128.
11622         (CPP_SUBTARGET_SPEC): Don't add -D__LONG_DOUBLE_128__ here.
11623         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Define
11624         __LONG_DOUBLE_128__ if TARGET_LONG_DOUBLE_128 and TARGET_ARCH32.
11625         (CPP_ARCH32_SPEC): Remove.
11626
11627 2006-02-07  Uttam Pawar  <uttamp@us.ibm.com>
11628
11629         PR tree-optimization/26145
11630         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free
11631         bbs pointer.
11632
11633 2006-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11634
11635         PR target/26109
11636         * pa.c (attr_length_indirect_call): Don't return length 8 for distances
11637         >= 240000 when generating code for SOM runtime.
11638         (output_indirect_call): Don't use "b,l" instruction for indirect calls
11639         to $$dyncall when generating code for SOM runtime..
11640
11641 2006-02-07  Dirk Mueller  <dmueller@suse.com>
11642
11643         PR c++/18150
11644         * doc/invoke.texi (-Wsequence-point): Update documentation
11645         that -Wsequence-point is implemented for C++ as well.
11646
11647 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11648
11649         * config/sol26.h (CPP_SUBTARGET_SPEC): Accept -pthread.
11650         * config/sol2.h (CPP_SUBTARGET_SPEC): Likewise.
11651         (LIB_SPEC): Likewise.
11652         * doc/invoke.texi (SPARC options): Document -pthread.
11653
11654 2006-02-07  Geoffrey Keating  <geoffk@apple.com>
11655
11656         * config/i386/i386.c (ix86_delegitimize_address): Support Darwin
11657         PIC addresses.
11658
11659 2006-02-07  Roger Sayle  <roger@eyesopen.com>
11660
11661         * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE.
11662         Correct comment describing BOOLEAN_TYPE.
11663
11664 2006-02-07  Dirk Mueller  <dmueller@suse.com>
11665
11666         * c.opt: C++ frontend supports -Wdiv-by-zero.
11667         * c-opts.c (c_common_handle_option): Remove dead case.
11668
11669 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11670
11671         * configure.ac (TLS assembler check): Do not enable TLS by
11672         default on SPARC/Solaris before version 10.
11673         * configure: Regenerate.
11674
11675 2006-02-07  David Edelsohn  <edelsohn@gnu.org>
11676
11677         * doc/invoke.texi (xl-compat): Document conversion and support
11678         routine names.
11679
11680 2006-02-07  Jeff Law  <law@redhat.com>
11681
11682         * tree-vrp.c (find_conditional_asserts): Update comments.
11683         (simplify_stmt_for_jump_threading): New.
11684         (identify_jump_threads, finalize_jump_threads): New.
11685         (vrp_finalize): Call identify_jump_threads.
11686         (execute_vrp): Call finalize_jump_threads.
11687         * tree-ssa-dom.c (struct opt_stats_d): Remove num_iterations field.
11688         (vrp_element, vrp_data, vrp_element_p): Remove.
11689         (vrp_hash_elt, vrp_variables_stack): Remove.
11690         (vrp_hash, vrp_eq, record_range): Remove.
11691         (simplify_cond_and_lookup_avail_expr): Remove.
11692         (extract_range_from_cond): Remove.
11693         (thread_across_edge): Relocated into tree-ssa-threadedge.c.
11694         (simplify_stmt_for_jump_threading): New.
11695         (dom_thread_across_edge): New wrapper.
11696         (tree_ssa_dominator_optimize): No longer initialize or
11697         finalize any of the VRP datastructures.  Remove iteration
11698         step and simplify as a result of removal of iteration step.
11699         (pass_dominator): Perform a cfg cleanup after DOM.
11700         (dom_opt_finalize_block): Use the new common routines
11701         for threading jumps.  Simplify stack management slightly.
11702         No longer need to unwind VRP state.
11703         (record_equivalences_from_incoming_edge): No longer record
11704         VRP information.
11705         (eliminate_redundant_computations): No longer call
11706         simplify_cond_and_lookup_avail_expr.
11707         * tree-flow.h (potentially_threadable_block): Prototype.
11708         (thread_across_edge): Likewise.
11709         * Makefile.in (OBJS-common): Add tree-ssa-threadedge.o
11710         (tree-ssa-threadedge.o): Add dependencies.
11711         * tree-ssa-threadedge.c: New file.
11712         * passes.c (init_optimization_passes): Merge PHIs before
11713         calling VRP.  Run VRP again late in the SSA optimization pipeline.
11714
11715 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
11716
11717         * df-core.c (df_set_blocks): Do not dereference function pointers.
11718         (df_finish1): Likewise.
11719         (df_hybrid_search_forward): Likewise.
11720         (df_hybrid_search_backward): Likewise.
11721         (df_iterative_dataflow): Likewise.
11722         (df_analyze_problem): Likewise.
11723         (df_compact_blocks): Likewise.
11724         (df_dump): Likewise.
11725         * df-scan.c (df_rescan_blocks): Likewise.
11726         (df_record_entry_block_defs): Likewise.
11727
11728         * genconditions.c (write_conditions): Guard the definition of
11729         'insn_conditions' with the check on GCC version.
11730         (write_writer): Guard the traversal 'insn_conditions' with
11731         the check on GCC version.
11732
11733 2006-02-07  Richard Guenther  <rguenther@suse.de>
11734
11735         PR c++/26140
11736         Revert
11737         2006-01-30  Richard Guenther  <rguenther@suse.de>
11738         PR c++/23372
11739         * gimplify.c (gimplify_target_expr): Handle easy cases
11740         without creating a temporary.
11741
11742 2006-02-07  Pete Steinmetz  <steinmtz@us.ibm.com>
11743
11744         * sched-rgn.c (compute_dom_prob_ps, compute_trg_info): Eradicate
11745         use of float in probability computations.  Use edge probabilities
11746         in place of statically computed probabilities.
11747         (min_spec_prob): New static variable.
11748         (schedule_insns): Initialize it.
11749         (GET_SRC_PROB): Removed.
11750         * doc/invoke.texi (min-sched-prob): Renamed to min-spec-prob.
11751
11752 2006-02-07  Alexandre Oliva  <aoliva@redhat.com>
11753
11754         PR debug/24444
11755         * config/ia64/unwind-ia64.c: Revert last change.
11756         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Removed.
11757         (INCOMING_FRAME_SP_OFFSET): Define.
11758
11759 2006-02-06  Roger Sayle  <roger@eyesopen.com>
11760
11761         * config/ia64/ia64.c (hfa_element_mode): Don't handle CHAR_TYPE.
11762
11763 2006-02-07  Ben Elliston  <bje@au.ibm.com>
11764
11765         * config/i386/i386.c (ix86_scalar_mode_supported_p): New.
11766         (TARGET_SCALAR_MODE_SUPPORTED_P): Define hook.
11767         (classify_argument): Handle SDmode, DDmode, TDmode for 64-bit.
11768         (ix86_return_in_memory): Handle TDmode.
11769         (ix86_libcall_value): Handle SDmode, DDmode, TDmode.
11770         (ix86_value_regno): Return non-TDmode decimal float modes in %eax.
11771
11772 2006-02-06  Richard Sandiford  <richard@codesourcery.com>
11773
11774         * reorg.c (dbr_schedule): Use dump_file instead of file.
11775
11776 2006-02-06  Steve Ellcey  <sje@cup.hp.com>
11777
11778         PR target/25917
11779         * config/ia64/predicates.md (extr_len_operand): New predicate.
11780         * config/ia64/ia64.md (extv): Tighten constraints.
11781         (extzv): Ditto.
11782         (*tbit_and_2): Ditto.
11783         (*tbit_and_3): Ditto.
11784         (*tbit_or_2): Ditto.
11785         (*tbit_or_3): Ditto.
11786         (*bit_zero): Ditto.
11787         (*bit_one): Ditto.
11788
11789 2006-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
11790
11791         PR target/23359
11792         * config/i386/i386.md (trap): Use ASM_SHORT instead of .word.
11793
11794 2006-02-06  Zdenek Dvorak <dvorakz@suse.cz>
11795
11796         * tree-vrp.c (execute_vrp): Do not pass dump argument to.
11797         loop_optimizer_init and loop_optimizer_finalize
11798         * tree-ssa-sink.c (execute_sink_code): Ditto.
11799         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
11800         * tree-ssa-loop.c (tree_loop_optimizer_init, tree_ssa_loop_init,
11801         tree_ssa_loop_done): Ditto.
11802         * tree-ssa-pre.c (init_pre, fini_pre): Ditto.
11803         * sched-ebb.c: Include output.h.
11804         (schedule_ebbs): Do not use dump argument.
11805         * value-prof.h (struct profile_hooks): Remove profile_dump_file.
11806         * loop.c (loop_dump_stream): Removed.
11807         (loop_optimize, rest_of_handle_loop_optimize): Do not use dump
11808         argument.
11809         (scan_loop, move_movables, find_and_verify_loops, mark_loop_jump,
11810         emit_prefetch_instructions, loop_bivs_find, loop_bivs_check,
11811         final_biv_value, loop_biv_eliminable_p, loop_givs_rescan,
11812         loop_iterations, strength_reduce, record_biv, record_giv,
11813         final_giv_value, check_final_value, check_ext_dependent_givs,
11814         combine_givs, check_dbra_loop, maybe_eliminate_biv, load_mems,
11815         try_copy_prop, loop_delete_insns, try_swap_copy_prop): Use
11816         dump_file instead of loop_dump_stream.
11817         * ddg.c (print_ddg_edge, print_ddg, vcg_print_ddg): Do not call
11818         argument dump_file.
11819         * reorg.c (dbr_schedule, rest_of_handle_delay_slots): Do not use
11820         dump argument.
11821         * flow.c (life_analysis, rest_of_handle_life): Ditto.
11822         * haifa-sched.c: Include output.h
11823         (schedule_insns, sched_init): Do not use dump argument.
11824         * mode-switching.c (optimize_mode_switching): Ditto.
11825         * modulo-sched.c (stats_file): Removed.
11826         (print_node_sched_params): Do not call argument dump_file.
11827         (sms_schedule_by_order, loop_canon_p, sms_schedule,
11828         rest_of_handle_sms): Do not use dump argument.  Use dump_file instead
11829         of stats_file.
11830         * cse.c (cse_main, rest_of_handle_cse, rest_of_handle_cse2): Do not
11831         use dump argument.
11832         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize,
11833         rtl_loop_init, rtl_loop_done): Ditto.
11834         * global.c (global_alloc, rest_of_handle_global_alloc): Ditto.
11835         * predict.c (combine_predictions_for_bb, tree_estimate_probability):
11836         Ditto.
11837         * recog.c (peephole2_optimize, rest_of_handle_peephole2): Ditto.
11838         * lcm.c (pre_edge_lcm, pre_edge_rev_lcm): Ditto.
11839         * regmove.c (fixup_match_1, fixup_match_2, regmove_optimize,
11840         rest_of_handle_regmove, rest_of_handle_stack_adjustments): Ditto.
11841         * emit-rtl.c (renumber_insns): Ditto.
11842         * cfgexpand.c (add_reg_br_prob_note, expand_gimple_cond_expr,
11843         expand_gimple_basic_block, tree_expand_cfg): Ditto.
11844         * regclass.c (regclass): Ditto.
11845         * tree-outof-ssa.c (analyze_edges_for_bb, perform_edge_inserts,
11846         remove_ssa_form, rewrite_out_of_ssa): Ditto.
11847         * reg-stack.c (compensate_edge, compensate_edges, convert_regs_1,
11848         convert_regs_2, convert_regs, reg_to_stack, rest_of_handle_stack_regs):
11849         Ditto.
11850         * sched-rgn.c (schedule_insns, rest_of_handle_sched): Ditto.
11851         * local-alloc.c (rest_of_handle_local_alloc): Do not pass dump_file
11852         to regclass.
11853         * gcse.c (gcse_file, debug_stderr): Removed.
11854         (gcse_main, bypass_jumps, rest_of_handle_jump_bypass,
11855         rest_of_handle_gcse): Do not use dump argument.
11856         (cprop_jump, cprop_insn, do_local_cprop, cprop, find_implicit_sets,
11857         one_cprop_pass, bypass_block, compute_pre_data, insert_insn_end_bb,
11858         pre_edge_insert, pre_insert_copy_insn, pre_delete, one_pre_gcse_pass,
11859         compute_code_hoist_vbeinout, compute_code_hoist_data,
11860         one_code_hoisting_pass, trim_ld_motion_mems, update_ld_motion_stores,
11861         compute_store_table, build_store_vectors, insert_insn_start_bb,
11862         insert_store, remove_reachable_equiv_notes, replace_store_insn,
11863         store_motion): Use dump_file instead of gcse_file.
11864         * ipa-type-escape.c (type_escape_execute): Remove debugging comments.
11865         * profile.c (profile_dump_file): Removed.
11866         (branch_prob): Use dump_file instead of profile_dump_file.
11867         * ipa.c (cgraph_remove_unreachable_nodes): Do not call argument
11868         dump_file.
11869         * tree-ssa-copy.c (dump_copy_of): Ditto.
11870         * rtl-factoring.c (rtl_seqabstr, rest_of_rtl_seqabstr): Do not pass
11871         dump file to life_analysis.
11872         * bt-load.c (branch_target_load_optimize): Ditto.
11873         * cfgcleanup.c (rest_of_handle_jump2): Do not pass dump_file to
11874         renumber_insns.
11875         * rtl.h (cse_main, renumber_insns, schedule_insns, schedule_ebbs,
11876         regclass, dbr_schedule): Declaration changed.
11877         * sched-int.h (sched_init): Declaration changed.
11878         * tree-profile.c (tree_profile_dump_file): Removed.
11879         (tree_profile_hooks): Removed profile_dump_file hook.
11880         * rtl-profile (rtl_profile_dump_file): Removed.
11881         (rtl_profile_hooks): emoved profile_dump_file hook.
11882         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize): Declaration
11883         changed.
11884         * c-gimplify.c (c_genericize): Do not call local variable dump_file.
11885         * tree-cfg.c (build_tree_cfg): Ditto.
11886         * Makefile.in (haifa-sched.o, sched-ebb.o): Add output.h dependency.
11887         * basic-block.h (life_analysis, pre_edge_lcm, pre_edge_rev_lcm):
11888         Declaration changed.
11889         * config/sh/sh.c (sh_output_mi_thunk): Do not pass dump_file to
11890         life_analysis and schedule_insns.
11891         * config/m68hc11/m68hc11.c (m68hc11_reorg): Do not pass dump_file to
11892         life_analysis.
11893         * config/mt/mt.c (mt_machine_reorg): Do not pass dump_file to
11894         dbr_schedule.
11895         * config/mips/mips.c (mips_reorg): Ditto.
11896         * config/ia64/ia64.c (ia64_reorg): Do not pass dump_file to
11897         schedule_ebbs.
11898
11899 2006-02-06  Aldy Hernandez  <aldyh@redhat.com>
11900
11901         * config/s390/s390.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
11902         (s390_mangle_fundamental_type): New.
11903         * config/s390/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11904         Define.
11905
11906         * config/alpha/alpha.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
11907         (alpha_mangle_fundamental_type): New.
11908         * config/alpha/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11909         Define.
11910
11911         * config/sparc/linux.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11912         Define.
11913         * config/sparc/linux64.h (TARGET_ALTERNATE_LONG_DOUBLE_MANGLING):
11914         Define.
11915         * config/sparc/sparc.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
11916         (sparc_mangle_fundamental_type): New.
11917
11918 2006-02-06  Jakub Jelinek  <jakub@redhat.com>
11919
11920         * config.gcc (s390-*-linux*): Add s390/t-linux to tmake_file.
11921         (s390x-*-linux*): Likewise.
11922         * config/s390/t-linux64 (SHLIB_MAPFILES): Removed.
11923         * config/s390/t-linux: New file.
11924
11925 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
11926
11927         * config/i386/sync.md (sync_add<mode>, sync_sub<mode>, sync_ior<mode>,
11928         sync_and<mode>, sync_xor<mode>): Operand 0 is in-out.
11929
11930 2006-02-06  Daniel Berlin  <dberlin@dberlin.org>
11931
11932         * tree-ssa-pre.c (bb_value_sets_t): Add antic_safe_loads.
11933         (ANTIC_SAFE_LOADS): New macro.
11934         (find_or_generate_expression): Add prototype.
11935         (set_contains_value): Allow null set for sake of not always having
11936         to allocate ANTIC_SAFE_LOADS.
11937         (phi_translate): Move placement of AGGREGATE_TYPE_P check.
11938         Allow COMPONENT_REF too.
11939         (valid_in_set): Allow COMPONENT_REF.
11940         Check ANTIC_SAFE_LOADS too.
11941         (compute_antic_aux): Print out ANTIC_SAFE_LOADS.
11942         (compute_rvuse_and_antic_safe): Add ANTIC_SAFE computation, and
11943         rename.
11944         (can_PRE_operation): Add COMPONENT_REF.
11945         (create_component_ref_by_pieces): New function.
11946         (create_expression_by_pieces): Use create_component_ref_by_pieces.
11947         (insert_aux): Move AGGREGATE_TYPE_P check here.
11948         (compute_avail): Set bb local stmt uids.
11949         (pass_pre): Use TODO_update_ssa_only_virtuals.
11950
11951 2006-02-06  Ben Elliston  <bje@au.ibm.com>
11952
11953         * configure.ac: Unconditionally disable decimal float by default.
11954         * configure: Regenerate.
11955
11956 2006-02-06  Ben Elliston  <bje@au.ibm.com>
11957
11958         * read-rtl.c (read_name): Terminate reading on EOF.
11959
11960 2006-02-06  Ben Elliston  <bje@au.ibm.com>
11961
11962         * dfp.c (decimal_real_arithmetic): Change second argument type
11963         from int to enum tree_code. Do not always return true, but now
11964         return result of any call to decimal_do helper functions.
11965         * dfp.h (decimal_real_arithmetic): Update prototype.
11966
11967 2006-02-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
11968
11969         * config/sparc/sol2-bi.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDMID.
11970
11971 2006-02-05  Andrew Pinski  <pinskia@physics.uc.edu>
11972
11973         PR tree-opt/25251
11974         * tree-cfg.c (cleanup_dead_labels): Also don't remove
11975         forced labels.
11976
11977 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
11978
11979         * tree-vrp.c (cfg_loops): Removed.
11980         (adjust_range_with_scev, vrp_visit_assignment, execute_vrp):
11981         Use current_loops instead of cfg_loops.  Pass flags to
11982         loop_optimizer_init.
11983         * cfgloopmanip.c (fix_loop_structure): Update only available
11984         information.
11985         * tree-ssa-loop-ch.c (copy_loop_headers): Pass flags to
11986         loop_optimizer_init.
11987         * modulo-sched.c (build_loops_structure): Removed.
11988         (sms_schedule): Use loop_optimizer_init.
11989         * loop-init.c (loop_optimizer_init): Use flags to determine
11990         which properties of loops to prepare.
11991         (rtl_loop_init): Pass flags to loop_optimizer_init.
11992         * tree-ssa-sink.c (execute_sink_code): Ditto.
11993         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
11994         * tree-ssa-pre.c (init_pre): Ditto.
11995         * cfgloop.h (LOOPS_NORMAL): New.
11996         (loop_optimizer_init): Declaration changed.
11997
11998 2006-02-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11999
12000         * pa/x-ada-hpux10, pa/t-pa-hpux10, pa/t-pa-hpux11: New files.
12001         * config.gcc (hppa[12]*-*-hpux10*): Use pa/t-pa-hpux10 instead of
12002         pa/t-pa.
12003         * config.gcc (hppa[12]*-*-hpux11*): Use pa/t-pa-hpux11 instead of
12004         pa/t-pa.
12005         * config.host (hppa*-*-hpux10*): Use pa/x-ada-hpux10 instead of
12006         pa/x-ada.
12007         * pa/t-pa-hpux: Add lib2funcs.asm and quadlib.c rules.
12008         * pa/t-pa64: Delete quadlib.c rule.
12009         * pa/x-ada: Revert last change.
12010         * pa/t-pa: Revert last change.  Delete quadlib.c rule.
12011
12012 2006-02-04  Zdenek Dvorak <dvorakz@suse.cz>
12013
12014         PR rtl-optimization/26087
12015         * rtlanal.c (canonicalize_condition): Do not cross basic block
12016         boundaries.
12017
12018 2006-02-04  Alexandre Oliva  <aoliva@redhat.com>
12019
12020         PR debug/24444
12021         * config/ia64/ia64.c: Include debug.h.
12022         (MAX_ARTIFICIAL_LABEL_BYTES): New.
12023         (ia64_label_after_insn, ia64_dwarf2out_def_steady_cfa): New.
12024         (IA64_CHANGE_CFA_IN_EPILOGUE): Define to 0.
12025         (process_epilogue, process_set, process_for_unwind_directive):
12026         Output unwind info only if requested.  Add CFA info if requested.
12027         Add new arguments as needed.  Adjust callers.
12028         * config/ia64/ia64.h (ARG_POINTER_CFA_OFFSET): Override
12029         incorrect default.
12030         (DWARF2_FRAME_INFO): Define to zero.
12031         * config/ia64/unwind-ia64.c: Remove code that compensated for
12032         the CFA offset error fixed above.
12033         * config/ia64/t-ia64 (ia64.o): Depend on debug.h.
12034         * dwarf2out.c (DWARF2_FRAME_INFO): Define default.
12035         (dwarf2out_do_frame): Require nonzero DWARF2_UNWIND_INFO for
12036         -funwind-tables and -fexceptions to enable frame info.
12037         (dwarf2out_frame_init): Define initial CFA even if
12038         DWARF2_UNWIND_INFO is disabled.  Call initial_return_save if
12039         DWARF2_UNWIND_INFO is nonzero, not just defined.
12040         (dwarf2out_frame_finish): Output non-EH call frame info only
12041         if DWARF2_FRAME_INFO is nonzero.
12042         (convert_cfa_to_loc_list,
12043         compute_frame_pointer_to_cfa_displacement): Define even if
12044         unwind info is not supported.
12045         (gen_subprogram_die): Use the above unconditionally.  Remove
12046         legacy alternate code.
12047         * toplev.c (compile_file): Compile in call to
12048         dwarf2out_frame_finish if DWARF2_DEBUGGING_INFO is defined.
12049         (lang_dependent_init): Ditto for dwarf2out_frame_init.
12050
12051 2006-02-04  David Edelsohn  <edelsohn@gnu.org>
12052             Jakub Jelinek  <jakub@redhat.com>
12053
12054         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Mangle
12055         IBM extended float format long double as "g" on powerpc*-linux.
12056
12057 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12058
12059         PR target/25926
12060         * pa/x-ada (X_ADA_CFLAGS): Define _X_HPUX10 on HP-UX 10.
12061         * pa/t-pa (TARGET_LIBGCC2_CFLAGS): Define _T_HPUX10 on HP-UX 10.
12062
12063 2006-02-03  Jason Merrill  <jason@redhat.com>
12064
12065         PR c++/25979
12066         * gimplify.c (gimplify_modify_expr_rhs): Disable *& optimization for now.
12067
12068         PR middle-end/25977
12069         * gimplify.c (gimplify_modify_expr_rhs): It's not always safe to do RVO
12070         on the return slot if it's an NRV.
12071
12072 2006-02-03  Zdenek Dvorak <dvorakz@suse.cz>
12073
12074         * tree-ssa-loop-ivopts.c (enum use_type): Remove USE_OUTER.
12075         (dump_use, add_derived_ivs_candidates, determine_use_iv_cost,
12076         rewrite_use): Do not handle USE_OUTER.
12077         (find_interesting_uses_outer_or_nonlin, find_interesting_uses_outer,
12078         add_iv_outer_candidates, may_replace_final_value,
12079         determine_use_iv_cost_outer, rewrite_use_outer): Removed.
12080         (find_interesting_uses_op): Functionality of
12081         find_interesting_uses_outer_or_nonlin moved here.
12082         (find_interesting_uses_outside): Use find_interesting_uses_op.
12083
12084 2006-02-03  Alan Modra  <amodra@bigpond.net.au>
12085
12086         PR target/25960
12087         * config/rs6000/darwin-ldouble.c (__gcc_qadd): Preserve -0.0 result.
12088
12089 2006-02-03  Andreas Krebbel  <krebbel1@de.ibm.com>
12090             Ulrich Weigand  <uweigand@de.ibm.com>
12091
12092         PR target/25864
12093         * config/s390/2084.md ("x_fsimptf", "x_fmultf", "x_fdivtf",
12094         "x_floadtf", "x_ftrunctf", "x_ftruncdf"): New insn reservations.
12095         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): New functions.
12096         * config/s390/s390.c (struct processor_costs): Add mxbr, sqxbr, dxbr
12097         and dxr fields.
12098         (z900_cost, z990_cost, z9_109_cost): Values for the new fields added.
12099         (s390_rtx_costs): Use the new fields to calculate rtx costs.
12100         (s390_secondary_input_reload_class, s390_secondary_output_reload_class):
12101         Define secondary reloads for TFmode moves.
12102         (constant_modes): Add TFmode.
12103         (NR_C_MODES): Set to 8.
12104         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Add __LONG_DOUBLE_128__
12105         builtin define.
12106         (LONG_DOUBLE_TYPE_SIZE): Set to 128 or 64.
12107         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE, WIDEST_HARDWARE_FP_SIZE): Define.
12108         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
12109         CANNOT_CHANGE_MODE_CLASS): Consider TFmode.
12110         * config/s390/s390.md ("type" attribute): Add fsimptf, floadtf, fmultf,
12111         fdivtf, fsqrttf, ftrunctf, ftruncdf as possible values.
12112         (FPR mode macro): Add TFmode.
12113         (DSF mode macro): New.
12114         (<de>, <dee> mode attributes): Removed.
12115         (<xde>, <xdee>, <RRe>, <RXe>, <Rf> mode attributes): New.
12116         ("*cmp<mode>_ccs_0", "*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs",
12117         "*cmp<mode>_ccs_ibm", "fix_trunc<FPR:mode><GPR:mode>2_ieee",
12118         "floatdi<mode>2", "floatsi<mode>2_ieee", "*add<mode>3",
12119         "*add<mode>3_cc", "*add<mode>3_cconly", "*add<mode>3_ibm",
12120         "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly",
12121         "*sub<mode>3_ibm", "*mul<mode>3_ibm", "*fmadd<mode>", "*fmsub<mode>",
12122         "*div<mode>3", "*div<mode>3_ibm", "*neg<mode>2_cc",
12123         "*neg<mode>2_cconly", "*neg<mode>2", "*neg<mode>2_ibm",
12124         "*abs<mode>2_cc", "*abs<mode>2_cconly", "*abs<mode>2",
12125         "*abs<mode>2_ibm", "*negabs<mode>2_cc", "*negabs<mode>2_cconly",
12126         "*negabs<mode>2", "sqrt<mode>2"):
12127         Changed <de> to <xde>. R constraint replaced by <Rf>.
12128         ("*mul<mode>3"): Changed <dee> to <xdee>. R constraint replaced by
12129         <Rf>.
12130         ("fix_trunc<FPR:mode>di2"): 'FPR:' removed.
12131         ("*fmadd<mode>", "*fmsub<mode>"): FPR mode replaced by DSF.
12132         ("*movtf_64", "*movtf_31"): New insn definitions followed by 5
12133         splitters.
12134         ("movtf", "reload_outtf", "reload_intf", "trunctfdf2", "trunctfsf2",
12135         "extenddftf2", "extendsftf2"): New expanders.
12136         ("*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
12137         "*trunctfsf2_ibm", "*extenddftf2_ieee", "*extenddftf2_ibm",
12138         "*extendsftf2_ieee", "*extendsftf2_ibm"): New insn patterns.
12139         * config/s390/s390.opt (mlong-double-128, mlong-double-64):
12140         New options.
12141         * config/s390/t-crtstuff (TARGET_LIBGCC2_CFLAGS): Macro defined.
12142         * config/s390/libgcc-glibc.ver (__divtc3, __multc3, __powitf2,
12143         __fixtfti, __fixunstfti, __floattitf, __fixtfdi, __fixunstfdi,
12144         __floatditf): Add a GCC_4.1.0 symbol version tag.
12145         * doc/invoke.texi (-mlong-double-128, -mlong-double-64): Document
12146         the new options.
12147
12148 2006-02-02  Andrew Pinski  <pinskia@physics.uc.edu>
12149
12150         PR target/25377
12151         * config/i386/i386.c (ix86_function_ok_for_sibcall):
12152         Use targetm.binds_local_p instead of TREE_PUBLIC.
12153
12154 2006-02-02  Roger Sayle  <roger@eyesopen.com>
12155
12156         * tree.h (TYPE_STRING_FLAG): Document that this field may be used
12157         on INTEGER_TYPEs to indicate that it denotes a character type.
12158         * tree.c (build_common_tree_nodes): Set TYPE_STRING_FLAG on
12159         signed_char_type_node, unsigned_char_type_node and char_type_node.
12160         * dwarf2out.c (base_type_die): Treat CHAR_TYPE identically to
12161         INTEGER_TYPE.  Use TYPE_STRING_FLAG to decide whether to emit
12162         a DW_ATE_[un]signed_char instead of a DW_ATE_[un]signed.
12163
12164 2006-02-02  Zdenek Dvorak <dvorakz@suse.cz>
12165             Daniel Berlin  <dberlin@dberlin.org>
12166
12167         * tree-tailcall.c (arg_needs_copy_p): New function.
12168         (eliminate_tail_call): Use arg_needs_copy_p.
12169         (tree_optimize_tail_calls_1): Ditto. Also call add_virtual_phis.
12170         (add_virtual_phis): New function.
12171
12172 2006-02-02  Jakub Jelinek  <jakub@redhat.com>
12173
12174         * config/sparc/sparc.c (sparc_output_scratch_registers): Use
12175         #ignore instead of #scratch for %g7 .register directive.
12176
12177 2006-02-02  Andreas Tobler  <a.tobler@schweiz.ch>
12178
12179         * config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
12180         object files.
12181
12182 2006-02-02  Bernd Schmidt  <bernd.schmidt@analog.com>
12183
12184         * flow.c (calculate_global_regs_live): Assert that there aren't any
12185         EDGE_FAKE edges.
12186
12187 2006-02-02  Paolo Bonzini  <bonzini@gnu.org>
12188
12189         * tree-flow-inline.h (bsi_after_labels): Rewrite, return
12190         what its name says.
12191         * lambda-code.c (perfect_nestify): Use bsi_insert_before on
12192         bsi_after_labels iterator.
12193         * tree-if-conv.c (find_phi_replacement_condition,
12194         replace_phi_with_cond_modify_expr): Likewise.
12195         * tree-scalar-evolution.c (scev_const_prop): Likewise.
12196         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
12197
12198 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
12199
12200         * tree-inline.c (copy_tree_r): Also copy OMP_CLAUSE nodes.
12201
12202 2006-02-02  Diego Novillo  <dnovillo@redhat.com>
12203
12204         PR 25990
12205         * tree-cfg.c (move_block_to_fn): Clear out the basic block
12206         array after growing it.
12207
12208 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
12209
12210         PR middle-end/24901
12211         * fold-const.c (fold_checksum_tree): Change type of buf.
12212
12213 2006-02-01  Bernd Schmidt  <bernd.schmidt@analog.com>
12214
12215         * reload.c (push_secondary_reload): Initialize t_icode.
12216
12217 2006-02-01  Jakub Jelinek  <jakub@redhat.com>
12218
12219         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): For
12220         -msoft-float -mlong-double-128 only issue a warning, but don't
12221         swich to DFmode long double.
12222
12223 2006-02-01  Hans-Peter Nilsson  <hp@axis.com>
12224
12225         * cse.c (fold_rtx) <case RTX_COMM_COMPARE, RTX_COMPARE>: When arg1
12226         has a constant equivalent, iterate over equivalents for arg0,
12227         calling simplify_relational_operation and if there's a result
12228         cheaper than X, apply fold_rtx and return the result.
12229
12230 2006-02-01  Jan Hubicka  <jh@suse.cz>
12231
12232         * opts.c (no_unit_at_a_time_default): New global variable.
12233         (decode_options): Use it.
12234         * opts.h (no_unit_at_a_time_default): Declare.
12235
12236 2006-02-01  Paul Brook  <paul@codesourcery.com>
12237
12238         * function.c (assign_parm_setup_reg): Use function argument promotion
12239         rules.
12240         * expr.c (expand_expr_real_1): Use function argument promotion rules
12241         for PARM_DECLs.
12242
12243 2006-02-01  Steve Ellcey  <sje@cup.hp.com>
12244
12245         * gcc.c (process_command): Change j to 'unsigned int'.
12246
12247 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
12248
12249         PR middle-end/26001
12250         * expr.c (expand_expr_real_1) <case ARRAY_REF>:
12251         Use the corrected index for the character
12252         out of the string constant.
12253
12254 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
12255
12256         * mode-switching.c (optimize_mode_switching): Fix size
12257         allocated for bb_info[n_entities].
12258
12259 2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
12260
12261         * gcc.c (main): Correct type that is allocated for
12262         explicit_link_files.
12263
12264 2006-01-31  Jakub Jelinek  <jakub@redhat.com>
12265
12266         * config/s390/s390.c (init_alignment_context): Set
12267         ALIAS_SET_MEMORY_BARRIER on the MEM.
12268         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): Likewise.
12269
12270 2006-01-31  Uttam Pawar  <uttamp@us.ibm.com>
12271
12272         PR middle-end/25933
12273         * loop-unroll.c (unroll_loop_runtime_iterations): Free
12274         dom_bbs pointer.
12275         * tree-ssa-live.c (type_var_init): Allocate bitmap after
12276         call to tpa_init.
12277
12278 2006-01-31  Marcin Dalecki  <martin@dalecki.de>
12279
12280         * tree-vrp.c: Use XNEW/XCNEW allocation wrappers.
12281         * regrename.c: Ditto.
12282         * tree-ssa-loop-im.c: Ditto.
12283         * tree-dump.c: Ditto.
12284         * tree-complex.c: Ditto.
12285         * genrecog.c: Ditto.
12286         * tree-ssa-threadupdate.c: Ditto.
12287         * tracer.c: Ditto.
12288         * java/class.c: Ditto.
12289         * java/jcf-parse.c: Ditto.
12290         * java/resource.c: Ditto.
12291         * java/except.c: Ditto.
12292         * java/jvspec.c: Ditto.
12293         * java/jcf-write.c: Ditto.
12294         * java/jcf-path.c: Ditto.
12295         * java/gjavah.c: Ditto.
12296         * java/zextract.c: Ditto.
12297         * java/jcf-io.c: Ditto.
12298         * java/jcf.h: Ditto.
12299         * java/buffer.c: Ditto.
12300         * java/lang.c: Ditto.
12301         * java/parse-scan.y: Ditto.
12302         * java/lex.c: Ditto.
12303         * java/lex.h: Ditto.
12304         * cfgloopmanip.c: Ditto.
12305         * postreload-gcse.c: Ditto.
12306         * tree-ssa-loop-manip.c: Ditto.
12307         * postreload.c: Ditto.
12308         * tree-ssa-loop-ch.c: Ditto.
12309         * loop.c: Ditto.
12310         * ipa-cp.c: Ditto.
12311         * cppspec.c: Ditto.
12312         * diagnostic.c: Ditto.
12313         * final.c: Ditto.
12314         * genoutput.c: Ditto.
12315         * gcc.c: Ditto.
12316         * cfghooks.c: Ditto.
12317         * cfgloopanal.c: Ditto.
12318         * objc/objc-act.c: Ditto.
12319         * gcov.c: Ditto.
12320         * genextract.c: Ditto.
12321         * genautomata.c: Ditto.
12322         * pretty-print.c: Ditto.
12323         * genemit.c: Ditto.
12324         * cgraphunit.c: Ditto.
12325         * flow.c: Ditto.
12326         * df-scan.c: Ditto.
12327         * haifa-sched.c: Ditto.
12328         * dominance.c: Ditto.
12329         * dbxout.c: Ditto.
12330         * tree-ssa-loop-ivopts.c: Ditto.
12331         * df-core.c: Ditto.
12332         * mode-switching.c: Ditto.
12333         * modulo-sched.c: Ditto.
12334         * graph.c: Ditto.
12335         * ipa-pure-const.c: Ditto.
12336         * cse.c: Ditto.
12337         * fix-header.c: Ditto.
12338         * web.c: Ditto.
12339         * tree-stdarg.c: Ditto.
12340         * ipa-utils.c: Ditto.
12341         * loop-init.c: Ditto.
12342         * ipa-inline.c: Ditto.
12343         * cfganal.c: Ditto.
12344         * global.c: Ditto.
12345         * alloc-pool.c: Ditto.
12346         * dwarf2out.c: Ditto.
12347         * opts.c: Ditto.
12348         * genattrtab.c: Ditto.
12349         * tree-ssa-loop-ivcanon.c: Ditto.
12350         * predict.c: Ditto.
12351         * timevar.c: Ditto.
12352         * lcm.c: Ditto.
12353         * fortran/gfortranspec.c: Ditto.
12354         * regmove.c: Ditto.
12355         * local-alloc.c: Ditto.
12356         * langhooks.c: Ditto.
12357         * function.c: Ditto.
12358         * tree-vectorizer.c: Ditto.
12359         * gcse.c: Ditto.
12360         * ipa-type-escape.c: Ditto.
12361         * alias.c: Ditto.
12362         * tree-if-conv.c: Ditto.
12363         * profile.c: Ditto.
12364         * ipa.c: Ditto.
12365         * tree-data-ref.c: Ditto.
12366         * loop-unroll.c: Ditto.
12367         * treelang/treetree.c: Ditto.
12368         * calls.c: Ditto.
12369         * bt-load.c: Ditto.
12370         * ggc-common.c: Ditto.
12371         * except.c: Ditto.
12372         * coverage.c: Ditto.
12373         * cselib.c: Ditto.
12374         * tree-cfgcleanup.c: Ditto.
12375         * tree-ssa-pre.c: Ditto.
12376         * cfgcleanup.c: Ditto.
12377         * loop-invariant.c: Ditto.
12378         * loop-iv.c: Ditto.
12379         * ipa-prop.c: Ditto.
12380         * print-tree.c: Ditto.
12381         * conflict.c: Ditto.
12382         * ggc-page.c: Ditto.
12383         * sched-deps.c: Ditto.
12384         * regclass.c: Ditto.
12385         * tree-object-size.c: Ditto.
12386         * combine.c: Ditto.
12387         * bb-reorder.c: Ditto.
12388         * resource.c: Ditto.
12389         * var-tracking.c: Ditto.
12390         * cfgloop.c: Ditto.
12391         * df-problems.c: Ditto.
12392         * reg-stack.c: Ditto.
12393         * tlink.c: Ditto.
12394         * gccspec.c: Ditto.
12395         * sched-rgn.c: Ditto.
12396         * tree-ssa-structalias.c: Ditto.
12397         * tree-ssa-reassoc.c: Ditto.
12398         * config/darwin-c.c: Ditto.
12399         * config/darwin.c: Ditto.
12400         * config/arm/arm.c: Ditto.
12401         * cfgrtl.c: Ditto.
12402         * collect2.c: Ditto.
12403         * reload1.c: Ditto.
12404
12405 2006-01-31  Nicolas Pitre  <nico@cam.org>
12406
12407         * arm.md (smaxsi3): Make aware of smax_m1.
12408         (smax_m1): New.
12409
12410 2006-01-31  Nathan Sidwell  <nathan@codesourcery.com>
12411
12412         * config/m68k/lb1sf68.asm: Use moveq to load small constants.
12413
12414 2006-01-31  Richard Guenther  <rguenther@suse.de>
12415
12416         * doc/invoke.texi (-msselibm): Document.
12417         * target.h (expand_library_builtin): New target hook.
12418         * builtins.c (expand_builtin): Use expand_library_builtin.
12419         (default_expand_library_builtin): New function.
12420         * gcc.c (LINK_GCC_MATH_SPEC): Define.
12421         (LINK_COMMAND_SPEC): Handle %(link_gcc_math).
12422         (link_gcc_math_spec): Declare.
12423         (static_specs): Add link_gcc_math_spec.
12424         * expr.h (default_expand_library_builtin): Declare.
12425         * target-def.h (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
12426         (TARGET_INITIALIZER): Add TARGET_EXPAND_LIBRARY_BUILTIN.
12427         * config/i386/i386.h: Provide LINK_GCC_MATH_SPEC.
12428         * config/i386/i386.opt (msselibm): New target option.
12429         * config/i386/i386.c (ix86_builtin_function_variants): New array.
12430         (ix86_init_sse_abi_builtins): New function.
12431         (ix86_expand_library_builtin): Likewise.
12432         (TARGET_EXPAND_LIBRARY_BUILTIN): Define.
12433         (override_options): Handle error conditions wrt -msselibm.
12434         (ix86_builtins): Add function codes for SSE2 ABI builtins.
12435         (ix86_init_builtins): Call ix86_init_sse_abi_builtins.
12436         * doc/extend.texi (__builtin_sse2_*): Document new target specific
12437         builtins.
12438
12439 2006-01-31  Richard Guenther  <rguenther@suse.de>
12440         Paolo Bonzini  <bonzini@gnu.org>
12441
12442         * doc/install.texi (--disable-libgcc-math): Document.
12443
12444 2006-01-30  Marcin Dalecki  <martin@dalecki.de>
12445
12446         * expr.h (expand_normal): new inline function.
12447         * builtins.c: use it, use EXPAND_NORMAL explicitely.
12448         * dojump.c: use it.
12449         * dwarf2out.c: use it.
12450         * expr.c: use it.
12451         * calls.c: use it.
12452         * expmed.c: use it.
12453         * except.c: use it.
12454         * config/sparc/sparc.c: use it.
12455         * config/i386/i386.c: use it.
12456         * config/rs6000/rs6000.c: use it.
12457         * config/arm/arm.c: use it.
12458         * config/mips/mips.c: use it.
12459         * stmt.c: use it, use EXPAND_NORMAL explicitely.
12460
12461 2006-01-30  Roger Sayle  <roger@eyesopen.com>
12462
12463         * config/i386/cygwin.h (GCC_DRIVER_HOST_INITIALIZATION): Cast
12464         argv to the appropriate type.
12465
12466 2006-01-30  Zdenek Dvorak <dvorakz@suse.cz>
12467
12468         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Remove
12469         unreachable code.
12470
12471 2006-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
12472
12473         PR target/26018
12474         * config/s390/s390.c (struct machine_function): New flag
12475         decomposed_literal_pool_addresses_ok_p.
12476         (s390_reorg): Set it before final stage of literal pool transforms.
12477         (s390_decompose_address): Only accept displacements of the form
12478         (minus (label_ref ...) (label_ref ...)) if that flag is set.
12479
12480 2006-01-30  Carlos O'Donell  <carlos@codesourcery.com>
12481
12482         * optabs.c (prepare_cmp_insn): If unbaised and unsigned then bias
12483         the comparison routine return.
12484
12485 2006-01-30  Michael Matz  <matz@suse.de>
12486
12487         * global.c (find_reg): Only evict for global regs.
12488         Take n_refs into account and dump more info.
12489
12490 2006-01-30  J"orn Rennecke <joern.rennecke@st.com>
12491
12492         PR target/14798:
12493         * sh.c (pragma_interrupt, trap_exit, sp_switch): Remove variable.
12494         (pragma_trap, pragma_nosave_low_regs): Likewise.
12495         (current_function_anonymous_args): Likewise.
12496         (sh_deferred_function_attributes): New variable.
12497         (sh_deferred_function_attributes_tail): Likewise.
12498         (print_operand): For '@', look up trap_exit attribute.
12499         (calc_live_regs): Look up trapa_handler attribute.  For trapa
12500         handlers, save/restore fpscr, but don't do any other
12501         interrupt-specific saves.
12502         Don't save r0..r7 if the nosave_low_regs attribute is in effect.
12503         Fix check for partially saved registers to check for SHmedia.
12504         (sh_expand_prologue, sh_expand_epilogue): Look up sp_switch attribute.
12505         (sh_output_function_epilogue): Don't clear any of the removed
12506         variables.
12507         (sh_insert_attributes): Don't check pragma_interrupt.
12508         Insert deferred attributes.  Check that interrupt attribute is
12509         present for other attributes that require its presence.
12510         (sh_attribute_table): Add new attributes trapa_handler and
12511         nosave_low_regs.
12512         (sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
12513         Don't check for pragma_interrupt.  Don't store argument.
12514         * sh.h (pragma_interrupt, sp_switch): Don't declare.
12515         (sh_deferred_function_attributes): Declare.
12516         (sh_deferred_function_attributes_tail): Likewise.
12517         * sh.md (sp_switch_1): Add operand.  Change generator caller.
12518         (sh_pr_interrupt, sh_pr_trapa, sh_pr_nosave_low_regs): Remove.
12519         (*return_i): Don't use when trap_exit attribute is in effect.
12520         (*return_trapa): New insn pattern.
12521         * sh-c.c: New file.
12522         * config.gcc (sh[123456ble]*-* | sh-*-*): New trailer stanza,
12523         setting c_target_objs and cxx_target_objs.
12524         * t-sh: Add rule for sh-c.o.
12525
12526 2006-01-30  Richard Guenther  <rguenther@suse.de>
12527
12528         PR c++/23372
12529         * gimplify.c (gimplify_target_expr): Handle easy cases
12530         without creating a temporary.
12531
12532 2006-01-30  Nathan Sidwell  <nathan@codesourcery.com>
12533
12534         * vec.h (safe_grow): Remove duplicated line.
12535
12536 2006-01-29  Diego Novillo  <dnovillo@redhat.com>
12537
12538         PR 25874
12539         * omp-low.c (execute_expand_omp): Move CFG cleanup code ...
12540         (expand_omp): ... here.
12541         (expand_omp_parallel): Only remove barriers for combined
12542         parallel+workshare constructs.
12543
12544 2006-01-29  Eric Botcazou  <ebotcazou@adacore.com>
12545
12546         Revert
12547
12548         2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
12549         * tree.c (build_qualified_type): Chain the new type to the original
12550         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
12551         a POINTER_TYPE or a REFERENCE_TYPE respectively.
12552         (build_pointer_type_for_mode): Only return unqualified types.
12553         (build_reference_type_for_mode): Likewise.
12554
12555 2006-01-29  Gabriel Dos Reis  <gdr@integgrable-solutions.net>
12556
12557         * configure.ac (cxx_compat_warn): Set if -Wc++-compat is supported.
12558         * Makefile.in (CXX_COMPAT_WARN): Define.
12559         * configure: Regenerate.
12560
12561 2006-01-29  Dorit Nuzman  <dorit@il.ibm.com>
12562
12563         PR tree-opt/25911
12564         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Change assert
12565         to an if check.
12566
12567 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12568
12569         * toplev.c: Fix thinko.
12570
12571 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12572             Marcin Dalecki  <martin@dalecki.de>
12573
12574         * toplev.c (floor_log2, exact_log2): Don't define if __cplusplus.
12575         (push_srcloc): Use XNEW.
12576         (init_asm_output, default_get_pch_validity): Use XNEWVEC.
12577
12578 2006-01-29  Kenneth Zadeck <zadeck@naturalbridge.com>
12579
12580         * df-core.c (df_set_blocks): Deleted all variable.
12581
12582 2006-01-28  Ian Lance Taylor  <ian@airs.com>
12583
12584         * cgraphunit.c (cgraph_assemble_pending_functions): Call
12585         cgraph_output_pending_asms.
12586
12587 2006-01-28  Zack Weinberg  <zackw@panix.com>
12588
12589         * c.opt: Add -W(no-)overlength-strings.
12590         * doc/invoke.texi: Document it.
12591         * c-opts.c (c_common_handle_option): -pedantic implies
12592         -Woverlength-strings, if not explicitly disabled already.
12593         (c_common_post_options): -Woverlength-strings defaults to off, and
12594         is always off for C++.
12595         * c-common.c (fix_string_type): Issue warning about strings longer
12596         than is portable only if warn_overlength_strings.  Rearrange code
12597         a little for clarity.
12598         * configure.in: Check for -Wno-overlength-strings as well before
12599         enabling -pedantic in stage 1.
12600         * Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
12601         (gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.
12602
12603         * genconditions.c (write_header, write_one_condition)
12604         (write_conditions, write_writer): Consolidate very long strings
12605         that were broken up to fit in C89 portable limit.  Don't use
12606         printf when fputs will do.
12607
12608 2006-01-28  Adam Nemet  <anemet@caviumnetworks.com>
12609
12610         * combine.c (simplify_comparison <AND>): Check
12611         TRULY_NOOP_TRUNCATION before start using a subreg.
12612
12613         * config/mips/mips.md (*branch_zero<mode>,
12614         *branch_zero<mode>_inverted, *branch_equality<mode>,
12615         *branch_equality<mode>_inverted, *branch_equality<mode>_mips16):
12616         Remove mode check from comparisons.
12617
12618 2006-01-28  Kenneth Zadeck <zadeck@naturalbridge.com>
12619
12620         * config/mips/mips-protos.h (mips_set_live_on_entry): Deleted.
12621
12622 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
12623
12624         * expmed.c (const_mult_add_overflow_p): Remove.
12625         * expr.h: Remove the prototype for const_mult_add_overflow_p.
12626
12627         * recog.c (validate_replace_rtx_subexp): Remove.
12628         * recog.h: Remove the prototype for
12629         validate_replace_rtx_subexp.
12630
12631         * integrate.h: Remove the prototype for
12632         copy_decl_for_inlining.
12633         * rtl.h: Remove the prototype for mark_constant_function.
12634         * tree-vectorizer.h: Remove the prototype for
12635         vect_strip_conversion.
12636
12637         * modulo-sched.c (create_partial_schedule,
12638         free_partial_schedule, reset_partial_schedule): Make them
12639         static.
12640
12641         * hooks.c (hook_bool_rtx_int_false): Remove.
12642         * hooks.h: Remove the prototype for hook_bool_rtx_int_false.
12643
12644 2006-01-28  David Edelsohn  <edelsohn@gnu.org>
12645
12646         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
12647         and -mlong-double-128 are incompatible.
12648         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Same.
12649         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
12650         (TARGET_LIBGCC2_CFLAGS): Define.
12651         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): Same.
12652         (TARGET_LIBGCC2_CFLAGS): Same.
12653         * config/rs6000/ppc64-fp.c: Compile for 64-bit AIX.
12654
12655 2006-01-28  Kazu Hirata  <kazu@codesourcery.com>
12656
12657         PR c/19606.
12658         * c-typeck.c (build_binary_op): Perform implicit casts of
12659         operands before shortening them.
12660
12661         * cfgloopmanip.c (split_loop_bb): Remove.
12662         * cfgloop.h: Remove the prototype for split_loop_bb.
12663
12664         * cfgloop.c (flow_loop_outside_edge_p): Remove.
12665         * cfgloop.h: Remove the prototype for
12666         flow_loop_outside_edge_p.
12667
12668         * emit-rtl.c (init_virtual_regs): Make it static.
12669         * function.h: Remove the prototype for init_virtual_regs.
12670
12671         * recog.c (peephole2_optimize): Make it static.
12672         * recog.h: Remove the prototype for peephole2_optimize.
12673
12674 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
12675
12676         * df-scan.c (df_record_entry_block_defs): Check if
12677         INCOMING_RETURN_ADDR_RTX is defined.
12678
12679 2006-01-27  Daniel Berlin  <dberlin@dberlin.org>
12680             Kenneth Zadeck <zadeck@naturalbridge.com>
12681
12682         PR rtl-optimization/24762
12683         * doc/tm.texi: Added TARGET_EXTRA_LIVE_ON_ENTRY.
12684         * targhooks.c (hook_void_bitmap): New hook prototype.
12685         * targhoohs.h (hook_void_bitmap): Ditto.
12686         * bitmap.h (bitmap_head_def): Moved to coretypes.h.
12687         * coretypes.h (bitmap_head_def): Moved from bitmap.h.
12688         * target.h (live_on_entry): New function pointer.
12689         * df-scan.c (df_all_hard_regs): Removed.
12690         (df_scan_dump, df_hard_reg_init): Removed df_all_hard_regs.
12691         (df_scan_free_internal): Added df->entry_block_defs.
12692         (df_scan_alloc): Ditto.
12693         (df_scan_dump): Ditto.
12694         (df_uses_record): Plumbed flag field properly thru calls.
12695         Record EH_RETURN_DATA_REGNO in eh blocks unconditionally.
12696         This part fixes PR24762.
12697         (df_bb_refs_record): Added code to make the frame and arg
12698         pointers live in EH blocks.
12699         (df_refs_record): Added call to df_record_entry_block_defs.
12700         (df_record_entry_block_defs): New function.
12701         * df-core.c: Added comments to describe new artifical defs.
12702         * df.h (DF_REF_DIES_AFTER_THIS_USE): New flag in enum df_ref_flags.
12703         (entry_block_defs): New field in struct df.
12704         (df_all_hard_regs): Deleted.
12705         * target-def.h: Added TARGET_EXTRA_LIVE_ON_ENTRY.
12706         * df-problems.c (df_ru_bb_local_compute_process_def):
12707         Added code to handle artifical defs in the entry to a function.
12708         (df_ru_bb_local_compute): Ditto.
12709         (df_rd_bb_local_compute_process_def): Ditto.
12710         (df_rd_bb_local_compute): Ditto.
12711         (df_lr_bb_local_compute): Ditto.
12712         (df_ur_bb_local_compute): Ditto.
12713         (df_urec_bb_local_compute): Ditto.
12714         (df_chain_create_bb): Ditto.
12715         (df_ur_local_finalize): Removed entry.
12716         (df_urec_init): Ditto.
12717         (df_urec_local_finalize): Ditto.
12718         (df_ri_bb_compute): Added detection of last use of pseudos.
12719         * Makefile.in (df-scan.o): Updated dependencies.
12720         * config/mips/mips-protos.h (mips_set_live_on_entry): Added.
12721         * config/mips/mips.c (mips_set_live_on_entry): Added.
12722         * config/mips/mips.c (TARGET_EXTRA_LIVE_ON_ENTRY): Added value
12723         for target hook.
12724         * dce.c (marked_insn_p): Added code to handle artifical defs.
12725
12726 2006-01-27  H.J. Lu  <hongjiu.lu@intel.com>
12727
12728         * config/i386/emmintrin.h (_mm_cvtsd_f64): Add missing Intel
12729         intrinsic.
12730         (_mm_cvtsi128_si64): Likewise.
12731         (_mm_cvtsd_si64): Likewise.
12732         (_mm_cvttsd_si64): Likewise.
12733         (_mm_cvtsi64_sd): Likewise.
12734         (_mm_cvtsi64_si128): Likewise.
12735         * config/i386/mmintrin.h (_m_from_int64): Likewise.
12736         (_mm_cvtsi64_m64): Likewise.
12737         (_m_to_int64): Likewise.
12738         (_mm_cvtm64_si64): Likewise.
12739         * config/i386/xmmintrin.h (_mm_cvtss_si64): Likewise.
12740         (_mm_cvttss_si64): Likewise.
12741         (_mm_cvtsi64_ss): Likewise.
12742         (_mm_cvtss_f32): Likewise.
12743
12744 2006-01-27  Carlos O'Donell  <carlos@codesourcery.com>
12745
12746         * c-pragma.c (init_pragma) : Call c_register_pragma_with_expansion
12747         for pragma redefine_extname.
12748
12749 2006-01-27  Jakub Jelinek  <jakub@redhat.com>
12750
12751         PR target/25864
12752         * libgcc-std.ver: Add GCC_4.1.0 symbol version.
12753         * config/rs6000/t-linux64 (TARGET_LIBGCC2_CFLAGS): Only append
12754         -mno-minimal-toc to previous content.
12755         (bispecs): Remove goal.
12756         * config/rs6000/ppc64-fp.c: Define TMODES before including fp-bit.h.
12757         * config/rs6000/darwin-ldouble.c: Don't provide _xlq*@GCC_3.4
12758         compatibility aliases on powerpc-*-*gnu*.
12759         * config/rs6000/libgcc-ppc-glibc.ver: New file.
12760         * config/rs6000/t-ppccomm (SHLIB_MAPFILES): Append
12761         libgcc-ppc-glibc.ver on powerpc*-*-*gnu*.
12762         (TARGET_LIBGCC2_CFLAGS): Append -specs=ldblspecs.
12763         (ldblspecs): New goal.
12764         * config/rs6000/t-linux64 (SHLIB_MAPFILES): Removed.
12765         * mklibgcc.in: If $TPBIT is empty, don't compile _sf_to_tf and
12766         _df_to_tf.
12767         * config/fp-bit.h (TMODES): Don't define if none of TFLOAT,
12768         L_sf_to_tf or L_df_to_tf is defined.
12769
12770 2006-01-27  David Edelsohn  <edelsohn@gnu.org>
12771             Alan Modra  <amodra@bigpond.net.au>
12772
12773         PR target/25864
12774         * config/rs6000/linux.h (POWERPC_LINUX): Define.
12775         * config/rs6000/linux64.h (POWERPC_LINUX): Define.
12776         * config/rs6000/darwin-ldouble.c: Build on 32-bit PowerPC.
12777         * config/rs6000/darwin.h (TARGET_IEEEQUAD): Define to zero.
12778         * config/rs6000/aix.h (TARGET_IEEEQUAD): Define to zero.
12779         * config/rs6000/rs6000.c (rs6000_ieeequad): New variable.
12780         (rs6000_override_options): Initialize rs6000_ieeequad.
12781         Initialize TFmode format to ibm_extended_format if not
12782         TARGET_IEEEQUAD.
12783         (rs6000_handle_option): Accept -mabi= ibmlongdouble and
12784         ieeelongdouble.
12785         (rs6000_emit_move): Move !TARGET_IEEEQUAD as two parts.
12786         (rs6000_return_in_memory): Only return IEEEQUAD in memory.
12787         (function_arg_advance): IBM long double passed in two FPRs, not
12788         split.
12789         (function_arg): IBM long double passed in FPRs.
12790         (rs6000_pass_by_reference): Only IEEEQUAD passed by reference.
12791         (rs6000_gimplify_va_arg): IBM long double passed in two FPRs.
12792         Only multireg GPR aligned.
12793         (rs6000_init_libfuncs): Enable IBM long double functions if not
12794         IEEEQUAD.
12795         (rs6000_generate_compare): Use IBM long double compare if not
12796         TARGET_IEEEQUAD.
12797         * config/rs6000/rs6000.h (rs6000_ieeequad): Declare.
12798         (TARGET_IEEEQUAD): Define.
12799         (CANNOT_CHANGE_MODE_CLASS): Any mode larger than doubleword if
12800         not TARGET_IEEEQUAD.
12801         * config/rs6000/rs6000.md: Enable TFmode patterns if
12802         !TARGET_IEEEQUAD.
12803         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
12804         * config/rs6000/svr4.h (SUBTARGET_OVERRIDE_OPTIONS): -msoft-float
12805         and -mlong-double-128 are incompatible.
12806         * doc/invoke.texi (-mabi): Collect options together.  Add
12807         ibmlongdouble and ieeelongdouble.
12808
12809 2006-01-27  Richard Sandiford  <richard@codesourcery.com>
12810
12811         * doc/rtl.texi (SYMBOL_REF_DATA): Adjust documentation for new
12812         opaque type.
12813         * optabs.c (init_one_libfunc): Use SET_SYMBOL_REF_DECL.
12814         * varasm.c (make_decl_rtl, build_constant_desc): Likewise.
12815         (force_const_mem): Use SET_SYMBOL_REF_CONSTANT.
12816         * rtl.h (rtunion_def): Remove rt_ptr.
12817         (X0PTR): Delete.
12818         (SYMBOL_REF_DATA): Use X0ANY instead of X0PTR.
12819         (SET_SYMBOL_REF_DECL, SET_SYMBOL_REF_CONSTANT): New macros.
12820         * config/i386/winnt.c (i386_pe_mark_dllexport)
12821         (i386_pe_mark_dllimport): Use SET_SYMBOL_REF_DECL.
12822
12823 2006-01-27 Gabor Loki <loki@gcc.gnu.org>
12824
12825         * cfgcleanup.c (try_crossjump_to_edge): Fix comment typo.
12826
12827 2006-01-26 Alexandre Oliva  <aoliva@redhat.com>
12828
12829         PR other/24829
12830         PR target/24831
12831         * gthr-dce.h: Do not gthrw-ify pthread_once_init,
12832         pthread_key_delete.  From John David Anglin.  gthrw-ify
12833         pthread_getunique_np only if it it's not a macro.  Delete
12834         UNUSED macro.
12835         (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate,
12836         __gthread_objc_condition_wait, __gthread_objc_condition_broadcast,
12837         __gthread_objc_condition_signal, __gthread_key_delete): Add
12838         "__attribute__ ((__unused__))" to unused arguments.
12839         (__gthread_recursive_mutex_init_function): Add missing return.
12840         * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h,
12841         gthr-posix95.h: Use macro-based approach for name redirection
12842         on targets missing weakref.
12843
12844 2006-01-26  Zack Weinberg  <zackw@panix.com>
12845
12846         * genconditions.c (write_header): In generated code, #ifdef out
12847         all includes and fake declarations, except includes of bconfig.h
12848         and system.h, unless GCC_VERSION >= 3001.  Do not include
12849         gensupport.h in any case.
12850         (write_conditions): Generate a definition of struct c_test.  Add
12851         a comment to the generated #endif.
12852         (write_one_condition): Escape backslashes in string too.
12853         (write_writer): Generated code must escape backslashes and quote
12854         marks (but not newlines) in the strings it writes.
12855         * Makefile.in (build/gencondmd.o): Update dependencies.
12856
12857 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
12858
12859         PR target/25961
12860         * Makefile.in (insn-automata.o): Add header file dependencies.
12861         * genautomata.c: Add includes.
12862
12863 2006-01-26  Steve Ellcey  <sje@cup.hp.com>
12864
12865         PR target/25961
12866         * Makefile.in (insn-automata.o): Add -Wno-error flag.
12867
12868 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
12869
12870         * configure.ac: Expect target tools paths to be passed from the toplevel
12871         and wrap the detection into AS_SET_VAR_IF.  Extract side-effects out of
12872         AS_SET_VAR_IF.
12873         * acinclude.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL): Remove.
12874
12875 2006-01-26  Alexandre Oliva  <aoliva@redhat.com>
12876
12877         PR c/25892
12878         * c.opt (Wpointer-sign): Init to -1.
12879         * c-opts.c (c_common_handle_option): Set to 1 on OPT_Wall and
12880         OPT_pedantic, to 0 otherwise.
12881         * doc/invoke.texi: Update.
12882
12883 2006-01-26  Paolo Bonzini  <bonzini@gnu.org>
12884
12885         * config/i386/i386.md (extendsfdf2, extendsfxf2, extenddfxf2): Emit
12886         constants provided by 80387 instructions in the destination mode.
12887
12888 2006-01-26  Richard Guenther  <rguenther@suse.de>
12889             Andrew Pinski  <pinskia@physics.uc.edu>
12890
12891         PR tree-opt/21470
12892         partial PR tree-opt/17064
12893         * tree-ssa-structalias.c (intra_create_variable_infos):
12894         Create heap variables for incoming parameters if
12895         flag_argument_noalias > 1.
12896         (find_what_p_points_to): Look through default defs of
12897         parameter decls.
12898
12899 2006-01-26  Jeff Law  <law@redhat.com>
12900
12901         PR ada/25900
12902         * tree-vrp.c (extract_range_from_assert): When merging a VR_RANGE
12903         with a VR_ANTI_RANGE and the VR_ANTI_RANGE is completely contained
12904         within the VR_RANGE, use the VR_RANGE as the result, not the
12905         VR_ANTI_RANGE.
12906         (adjust_range_with_scev): Reject ranges from SCEV which are out of
12907         bounds for the type.
12908
12909 2006-01-26  Daniel Berlin  <dberlin@dberlin.org>
12910
12911         * tree-ssa-alias.c (maybe_create_global_var): Change
12912         subvar walking to an assertion that we don't have subvar'd variables.
12913
12914 2006-01-26  Andrew Pinski  <pinskia@physics.uc.edu>
12915
12916         PR C/25861
12917         * c-common.c (c_common_truthvalue_conversion) <case ADDR_EXPR>:
12918         Use a new variable, inner.  PARM_DECLs are always non-weak.
12919
12920 2006-01-26  Shantonu Sen  <ssen@opendarwin.org>
12921
12922         * tree.h (OMP_CLAUSE_SUBCODE_CHECK): Add definition for
12923         --disable-checking.
12924
12925 2006-01-26  Adam Nemet  <anemet@caviumnetworks.com>
12926
12927         * config/mips/mips.md (*clear_upper32): New combiner pattern.
12928
12929 2006-01-26  Richard Earnshaw  <richard.earnshaw@arm.com>
12930
12931         * arm.md (smaxsi3, sminsi3): Convert to define_expand.
12932         (smax_insn, smin_insn, smax_0, smin_0): New.
12933
12934 2006-01-26  Hans-Peter Nilsson  <hp@axis.com>
12935
12936         PR target/25947
12937         * config/cris/cris.c (cris_order_for_addsi3): New function.
12938         * config/cris/cris-protos.h: Prototype it.
12939         * config/cris/cris.md (split for "move.S1 [rx=rx+i],ry")
12940         (split for "move.S1 ry,[rx=rx+i]", split for "clear.[bwd] [rx=rx+i]")
12941         (split for "mov(s|u).S1 [rx=rx+i],ry", split for "op.S1 [rx=rx+i],ry")
12942         (split for "op.S1 [rx=rx+i],ry (swapped)")
12943         (split for "op(s|u).S1 [rx=rx+i],ry")
12944         (split for "op(s|u).S1 [rx=rx+i],ry (swapped, plus or bound)"):
12945         Apply cris_order_for_addsi3 when generating addsi3 insns.
12946
12947 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
12948
12949         * tree.h (TREE_RANGE_CHECK): Fix range predicate.
12950         (TREE_BLOCK): Add call to EXPR_CHECK.
12951
12952 2006-01-25  Diego Novillo  <dnovillo@redhat.com>
12953
12954         PR 25886
12955         * tree-dump.c (dequeue_and_dump): Handle OMP_CLAUSE.
12956         * tree-pretty-print.c (dump_omp_clause): Extract from ...
12957         (dump_omp_clauses): ... here.
12958         (dump_generic_node): Handle OMP_CLAUSE.
12959         * tree.c (omp_clause_num_ops): New.
12960         (omp_clause_code_name): New.
12961         (tree_code_size): Handle OMP_CLAUSE.
12962         (tree_size): Likewise.
12963         (make_node): Document handling of OMP_CLAUSE.
12964         (tree_node_structure): Handle OMP_CLAUSE.
12965         (omp_clause_check_failed): New.
12966         (omp_clause_range_check_failed): New.
12967         (omp_clause_operand_check_failed): New.
12968         (build_omp_clause): New.
12969         (walk_tree): Adjust handling of OMP_CLAUSE_* nodes.
12970         * tree.h (enum omp_clause_code): Declare.
12971         (OMP_CLAUSE_SUBCODE_CHECK): Define.
12972         (OMP_CLAUSE_RANGE_CHECK): Define.
12973         (OMP_CLAUSE_ELT_CHECK): Define.
12974         (omp_clause_check_failed): Declare.
12975         (omp_clause_operand_check_failed): Declare.
12976         (omp_clause_range_check_failed): Declare.
12977         (OMP_CLAUSE_CHAIN): Do not use TREE_RANGE_CHECK.
12978         (OMP_CLAUSE_OPERAND): Use OMP_CLAUSE_RANGE_CHECK.
12979         (OMP_CLAUSE_PRIVATE_DEBUG): Use OMP_CLAUSE_SUBCODE_CHECK.
12980         (OMP_CLAUSE_LASTPRIVATE): Likewise.
12981         (OMP_CLAUSE_IF_EXPR): Likewise.
12982         (OMP_CLAUSE_NUM_THREADS_EXPR): Likewise.
12983         (OMP_CLAUSE_SCHEDULE_CHUNK_EXPR): Likewise.
12984         (OMP_CLAUSE_REDUCTION_CODE): Likewise.
12985         (OMP_CLAUSE_REDUCTION_INIT): Likewise.
12986         (OMP_CLAUSE_REDUCTION_MERGE): Likewise.
12987         (OMP_CLAUSE_REDUCTION_PLACEHOLDER): Likewise.
12988         Use tree_node.omp_clause.subcode instead of TREE_COMPLEXITY.
12989         (OMP_CLAUSE_SCHEDULE_KIND): Likewise.
12990         (OMP_CLAUSE_DEFAULT_KIND): Likewise.
12991         (OMP_CLAUSE_CODE): Define.
12992         (OMP_CLAUSE_SET_CODE): Define.
12993         (OMP_CLAUSE_CODE): Define.
12994         (OMP_CLAUSE_OPERAND): Define.
12995         (struct tree_omp_clause): Declare.
12996         (union tree_node): Add field 'omp_clause'.
12997         * treestruct.def (TS_OMP_CLAUSE): Define.
12998         * tree.def (OMP_CLAUSE_PRIVATE, OMP_CLAUSE_SHARED
12999         OMP_CLAUSE_FIRSTPRIVATE, OMP_CLAUSE_LASTPRIVATE,
13000         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_COPYIN,
13001         OMP_CLAUSE_COPYPRIVATE, OMP_CLAUSE_IF,
13002         OMP_CLAUSE_NUM_THREADS, OMP_CLAUSE_SCHEDULE,
13003         OMP_CLAUSE_NOWAIT, OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Remove.
13004         (OMP_CLAUSE): Define.
13005         * print-tree.c (print_node): Handle OMP_CLAUSE.
13006         * omp-low.c: Adapt all uses of OMP_CLAUSE_* nodes.
13007         * c-typeck.c: Likewise.
13008         * gimplify.c: Likewise.
13009         * c-omp.c: Likewise.
13010         * tree-nested.c: Likewise.
13011         * tree-inline.c: Likewise.
13012         * c-parser.c: Likewise.
13013         * gimple-low.c (lower_omp_directive): Do not set TREE_BLOCK on
13014         clauses.
13015
13016 2006-01-25  Roger Sayle  <roger@eyesopen.com>
13017
13018         PR rtl-optimization/25703
13019         * combine.c (try_combine): Handle zero_extract and strict_low_part
13020         of non-lowpart SUBREGs for constant reg_subword_p set optimization.
13021
13022 2006-01-25  Peter Bergner  <bergner@vnet.ibm.com>
13023
13024         * global.c: Fix comment typos.
13025
13026 2006-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
13027
13028         PR target/25758
13029         * config/i386/i386.c (output_pic_addr_const) <case SYMBOL_REF>:
13030         Use output_addr_const instead of assemble_name.
13031
13032 2006-01-25  Paolo Bonzini  <bonzini@gnu.org>
13033
13034         * Makefile.in (sched-vis.o): Update dependencies.
13035         * haifa-sched.c (sched_finish): Clear current_sched_info.
13036         * cfg.c (dump_bb_info): New, split from dump_flow_info.
13037         (dump_flow_info): Call it.
13038         * passes.c (execute_todo): Call print_rtl_slim_with_bb to make
13039         a slim RTL dump.
13040         * basic-block.h (dump_bb_info): Declare.
13041         * tree-dump.c (dump_enable_all): OR the flags of a -fdump-tree-all
13042         option, and apply options only for dump files whose TDF_RTL,
13043         TDF_TREE, or TDF_IPA bits match.
13044         * rtl.h: Declare new functions exported from sched-vis.c.
13045         * sched-vis.c: Enable also if scheduling is not used.
13046         (print_value): Print the mode of registers if not inside scheduling.
13047         (print_insn): Make it work outside the scheduler.  Beautify the output
13048         a bit.
13049         (dump_insn_slim, debug_insn_slim, print_rtl_slim_with_bb): New.
13050
13051 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
13052
13053         * doc/rtl.texi (SYMBOL_REF_CONSTANT, SYMBOL_REF_DATA): Document.
13054         * gengtype.c (adjust_field_rtx_def): Garbage-collect field 2 of
13055         a SYMBOL_REF as either a tree or a constant_descriptor_rtx,
13056         depending on the value of CONSTANT_POOL_ADDRESS_P.
13057         * optabs.c (init_one_libfunc): Nullify SYMBOL_REF_DATA rather than
13058         SYMBOL_REF_DECL.
13059         * varasm.c (make_decl_rtl, build_constant_desc): Set SYMBOL_REF_DATA
13060         rather than SYMBOL_REF_DECL.
13061         (rtx_constant_pool): Remove const_rtx_sym_htab.
13062         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): Delete.
13063         (init_varasm_status): Don't initialize const_rtx_sym_htab.
13064         (force_const_mem): Point SYMBOL_REF_DATA to the constant pool entry.
13065         Remove handling of const_rtx_sym_htab.
13066         (find_pool_constant): Delete.
13067         (get_pool_constant, get_pool_constant_mark): Use SYMBOL_REF_CONSTANT
13068         rather than find_pool_constant.
13069         (get_pool_constant_for_function): Delete.
13070         (get_pool_mode, mark_constant): Use SYMBOL_REF_CONSTANT rather than
13071         find_pool_constant.
13072         * rtl.h (rtunion_def): Add rt_constant and rt_ptr fields.
13073         (X0CONSTANT, X0PTR, SYMBOL_REF_DATA): New macros.
13074         (SYMBOL_REF_DECL): Return NULL if CONSTANT_POOL_ADDRESS_P.
13075         (SYMBOL_REF_CONSTANT): New macro.
13076         (get_pool_constant_for_function): Delete.
13077         * config/i386/winnt.c (i386_pe_mark_dllexport): Set SYMBOL_REF_DATA
13078         rather than SYMBOL_REF_DECL.
13079         (i386_pe_mark_dllimport): Likewise.
13080         * config/rs6000/rs6000.c (rs6000_emit_move): Copy SYMBOL_REF_DATA
13081         rather than SYMBOL_REF_DECL.
13082         * config/darwin.c (machopic_indirect_data_reference): Likewise.
13083         (machopic_indirect_call_target): Likewise.
13084
13085 2006-01-25  Eric Botcazou  <ebotcazou@adacore.com>
13086
13087         * flow.c (delete_noop_moves): Add missing EOL to dump message.
13088
13089 2006-01-25  Richard Sandiford  <richard@codesourcery.com>
13090
13091         * genattrtab.c (gen_bypass): Allow bypasses to contain whitespace.
13092
13093 2006-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
13094
13095         * config/sh/predicates.md (sh_register_operand): Accept CONST_DOUBLE.
13096
13097 2006-01-24  David Daney  <ddaney@avtrex.com>
13098
13099         PR java/25816
13100         * configure.ac (enable_tls): New enable option.
13101         (HAVE_AS_TLS): Don't do assembler check if enable_tls set.
13102         * configure: Regenerate.
13103         * doc/install.texi (--enable-tls): Document new option.
13104         (--disable-tls): Ditto.
13105
13106 2006-01-24  Richard Henderson  <rth@redehat.com>
13107
13108         * alias.h (ALIAS_SET_MEMORY_BARRIER): New.
13109         * alias.c (true_dependence): Respect it.
13110         (canon_true_dependence, write_dependence_p): Likewise.
13111         * builtins.c (get_builtin_sync_mem): Set it.
13112
13113 2006-01-25  Zdenek Dvorak <dvorakz@suse.cz>
13114
13115         * loop-iv.c (iv_analysis_loop_init): Use df analysis in a more
13116         efficient way.
13117
13118 2006-01-24  DJ Delorie  <dj@redhat.com>
13119
13120         * expmed.c (store_bit_field): Don't arbitrarily deny using insv
13121         for storing constants in single-bit bitfields.
13122
13123 2006-01-25  Ben Elliston  <bje@au.ibm.com>
13124
13125         * dfp.c (dfp_byte_swap): Use uint32_t and not unsigned long.
13126
13127 2006-01-24  Andrew Pinski  <pinskia@physics.uc.edu>
13128
13129         PR tree-opt/25860
13130         * tree-ssa-pre.c (phi_translate): Return NULL
13131         for AGGREGATE_TYPE's.
13132
13133 2006-01-24  Zack Weinberg  <zackw@panix.com>
13134
13135         * genautomata.c (process_state_for_insn_equiv_partition):
13136         Use xcalloc for insn_arcs_array.
13137         * vec.h (DEF_VEC_ALLOC_FUNC_I): New set of templates.
13138         (DEF_VEC_ALLOC_I): Use it, not DEF_VEC_ALLOC_FUNC_P.
13139
13140 2006-01-24  Richard Henderson  <rth@redhat.com>
13141
13142         * genextract.c (VEC_safe_set_locstr): Take VEC by reference;
13143         update all callers.
13144
13145 2006-01-23  Paolo Bonzini  <bonzini@gnu.org>
13146
13147         PR rtl-optimization/25890
13148         PR rtl-optimization/25905
13149         * combine.c (expand_compound_operation, expand_field_assignment):
13150         Fail if the bitfield's final position is out of bounds.
13151
13152 2006-01-24  Ian Lance Taylor  <ian@airs.com>
13153
13154         PR middle-end/25930
13155         * cgraphunit.c (cgraph_output_in_order): Don't clear
13156         cgraph_asm_nodes until after asm strings have been output.
13157
13158 2006-01-23  Adam Nemet  <anemet@caviumnetworks.com>
13159
13160         * fix-header.c (read_scan_file): Add new parameter imultilib when
13161         calling register_include_chains.
13162
13163 2006-01-23  Diego Novillo  <dnovillo@redhat.com>
13164
13165         * omp-low.c: Update documentation.
13166
13167 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
13168             Daniel Berlin  <dberlin@dberlin.org>
13169
13170         PR tree-opt/25315
13171         PR tree-opt/25857
13172         * tree-ssa-pre.c (insert_extra_phis): If an incomming edge is abnormal
13173         return from the function.
13174
13175 2006-01-22  Zack Weinberg  <zackw@panix.com>
13176
13177         * rtl.def (match_code): Add second argument.
13178         * genpreds.c (write_extract_subexp): New function.
13179         (write_match_code): Add path argument.  Use write_extract_subexp.
13180         (write_predicate_expr): Pass path to write_match_code.
13181         (mark_mode_tests): MATCH_CODE applied to a subexpression does
13182         not perform a mode test.
13183         * genrecog.c (compute_predicate_codes): MATCH_CODE applied to
13184         a subexpression does not constrain the top-level code set.
13185         * read-rtl.c (read_rtx_variadic): New function.
13186         (read_rtx_1): Use it; allow AND and IOR to be variadic.
13187         * doc/md.texi: Document new notation.
13188         * config/i386/predicates.md (cmpsi_operand_1): Fold into ...
13189         (cmpsi_operand): ... here, using new notation.
13190
13191 2006-01-22  Zack Weinberg  <zackw@panix.com>
13192
13193         * varray.c: Remove GENERATOR_FILE #ifdefs.
13194
13195 2006-01-22  Zack Weinberg  <zackw@panix.com>
13196
13197         * genautomata.c (output_reserved_units_table): Emit nothing if
13198         description->query_units_num is zero.  Remove extra blank line.
13199         (output_cpu_unit_reservation_p): Short circuit
13200         if description->query_units_num is zero.
13201
13202 2006-01-22  Zack Weinberg  <zackw@panix.com>
13203
13204         * genattrtab.c: Don't include genattrtab.h.  Define ATTR_NONE
13205         and ATTR_SPECIAL (from genattrtab.h).  Don't define num_dfa_decls
13206         nor any of the random handful of variables that used to be necessary
13207         when this program was linked with rtlanal.o.  Prune set of forward
13208         function declarations.
13209         (struct attr_desc): Remove static_p field.
13210         (hash_obstack, temp_obstack, attr_hash_table, attr_printf)
13211         (check_attr_test, make_internal_attr, make_numeric_value): Make static.
13212         (attr_string): Do not read the character one past the length of
13213         the string.
13214         (write_attr_get, find_attr, make_internal_attr): Don't touch static_p.
13215         (struct insn_reserv, all_insn_reservs, last_insn_reserv_p)
13216         (n_insn_reservs, gen_insn_reserv, struct bypass_list, all_bypasses)
13217         (n_bypasses, gen_bypass_1, gen_bypass, process_bypasses)
13218         (make_automaton_attrs): New.
13219         (main): Do not call into genautomata.  Call local gen_bypass
13220         and gen_insn_reserv as appropriate.  Call make_automaton_attrs.
13221         Remove special case for insn_alts.
13222         * genautomata.c: Include gensupport.h; not genattrtab.h nor
13223         varray.h (leftover from previous change).  Prune set of forward
13224         function declarations.  Remove state_alts fields from all
13225         structures.  Remove state_alts_table from struct automaton.
13226         Make everything except main static.  Do not maintain num_dfa_decls.
13227         Do not maintain state_alts fields of various structures.
13228         (process_decls): Don't validate condexp for dm_insn_reserv decls.
13229         (add_arc): Remove state_alts argument.  All callers updated.
13230         (output_reserved_units_table): Emit #ifdef here...
13231         (output_tables): ...not here.  Don't generate state_alts tables.
13232         (expand_automata): Don't generate attributes.
13233         (write_automata): Don't generate state_alts functions.
13234         (main): New function.
13235         (it_is_empty_reserv_sets, output_state_alts_full_vect_name)
13236         (output_state_alts_comb_vect_name, output_state_alts_check_vect_name)
13237         (AUTOMATON_STATE_ALTS_MACRO_NAME, INTERNAL_STATE_ALTS_FUNC_NAME)
13238         (STATE_ALTS_FUNC_NAME, INSN_DEFAULT_LATENCY_FUNC_NAME)
13239         (BYPASS_P_FUNC_NAME, output_state_alts_table)
13240         (output_automata_list_state_alts_code, output_internal_state_alts_func)
13241         (output_state_alts_func, make_insn_alts_attr, make_bypass_attr)
13242         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr):
13243         Delete.
13244         * genattr.c: Declare internal_dfa_insn_code in insn-attr.h.
13245         * genattrtab.h: Delete file.
13246         * Makefile.in (OBJS-common): Add insn-automata.o.
13247         (insn-automata.o): New rule.
13248         (simple_generated_c): Add insn-automata.c.
13249         (build/genattrtab.o, build/genautomata.o): Update dependencies.
13250         (genprogmd): Add automata.
13251         (build/genattrtab): Needs no extra objects nor libraries.
13252         (build/genautomata): Needs build/vec.o and -lm.
13253
13254 2006-01-22  Zack Weinberg  <zackw@panix.com>
13255
13256         * genautomata.c (process_state_longest_path, max_dfa_issue_rate)
13257         (output_dfa_max_issue_rate, locked_states_num): Delete.
13258         (struct automaton): Add locked_states field.
13259         (output_dead_lock_vect): Save number of locked states in
13260         automaton->locked_states.  If it is zero, don't print anything.
13261         (output_max_insn_queue_index_def): Define max_insn_queue_index const.
13262         (output_internal_dead_lock_func): Only test the dead_lock_vect
13263         for automata that have locked states.
13264         (output_statistics): Always print the number of locked states for
13265         each automaton.  Calculate total number of locked states here.
13266         (write_automata): Don't call output_dfa_max_issue_rate.
13267         * genattrtab.c: Define length_unit_log as a const variable.
13268         * genattr.c: Don't emit MAX_DFA_ISSUE_RATE.  Declare
13269         max_insn_queue_index const.
13270         * final.c (length_unit_log): Declare const.
13271         * doc/tm.texi: Remove all references to MAX_DFA_ISSUE_RATE.
13272
13273 2006-01-22  Zack Weinberg  <zackw@panix.com>
13274
13275         * genautomata.c: Include vec.h, not varray.h.
13276         Delete vla_ptr_t, all of the VLA_PTR_ macros, and all of the
13277         VLA_HWINT_ macros.  Change vla_hwint_t to a typedef for
13278         VEC(vect_el_t,heap) *.  Convert all uses of VLA_* macros to
13279         VEC_* macros operating on appropriately typed vectors, or to
13280         malloced arrays when the size is known in advance.  Const-ify
13281         many char* variables and function arguments.  No functional changes.
13282         * Makefile.in (build/varray.o): Delete rule.
13283         (build/genattrtab): Depend on build/vec.o instead of build/varray.o.
13284         (build/genautomata.o): Depend on vec.h instead of $(VARRAY_H).
13285
13286 2006-01-22  Zack Weinberg  <zackw@panix.com>
13287
13288         * gensupport.c: Define get_insn_name and record_insn_name here.
13289         (read_md_rtx): Call record_insn_name as appropriate.
13290         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
13291         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
13292         * genpreds.c, genrecog.c: Don't define get_insn_name nor
13293         record_insn_name.
13294         * Makefile.in (BUILD_SUPPORT, BUILD_PRINT): Fold into BUILD_RTL.
13295         (BUILD_VARRAY): Delete.
13296         (genprognormal): Rename genprogmd.  Fold in all programs from
13297         genprognoprint; also attrtab.
13298         (build/genattrtab): Just mention genautomata.o and varray.o.
13299         Reorganize a bit, add comments to make the categories clearer.
13300
13301 2006-01-22  Zack Weinberg  <zackw@panix.com>
13302
13303         * genconditions.c (condition_table, add_condition): Delete.
13304         (write_conditions): Don't emit n_insn_conditions nor
13305         insn_elision_unavailable.  Issue the gcc version #ifdef here,
13306         inside the table, with no #else clause ...
13307         (write_header): ...not here.
13308         (write_writer): New function.
13309         (main): Don't initialize condition_table.  Use add_c_test.
13310         Call write_writer.
13311         * gensupport.c (init_md_reader_args_cb): Handle multiple input
13312         files on the command line.
13313         (maybe_eval_c_test): Don't check insn_elision_unavailable.
13314         Return -1 if there is no entry in the table, don't abort.
13315         (add_c_test, traverse_c_tests): New functions.
13316         * gensupport.h (insn_elision_unavailable, insn_conditions)
13317         (n_insn_conditions): Delete declarations.
13318         (add_c_test, traverse_c_tests): Declare.
13319         * read-rtl.c: Include gensupport.h.
13320         (read_conditions): New function.
13321         (read_rtx): If read_rtx_1 returns 0, treat as EOF.
13322         (read_rtx_1): If we get EOF when we were looking for an initial
13323         open paren, return 0.  Call read_conditions when appropriate.
13324         * Makefile.in: Kill BUILD_EARLY_SUPPORT and all references to
13325         dummy-conditions.o.  Eliminate references to insn-conditions.o,
13326         or change them to build/gencondmd.o, as appropriate.  Remove
13327         insn-constants.h from $(simple_generated_h) and insn-conditions.c
13328         from $(simple_generated_c).  For all files remaining in those
13329         two lists, add insn-conditions.md to the generator command line.
13330         Give insn-constants.h/s-constants their own rules.  Add rules
13331         for build/gencondmd.c, s-conditions, insn-conditions.md, s-condmd.
13332         (build/read-rtl.o): Depend on gensupport.h.
13333         (genprognormal): Include preds.
13334         (genprogearly): Rename genprognoprint; only difference is now that
13335         they don't link with $(BUILD_PRINT).
13336         * dummy-conditions.c: Delete.
13337
13338 2006-01-22  Zack Weinberg  <zackw@panix.com>
13339
13340         * genextract.c: Don't include insn-config.h.  Do include vec.h.
13341         Declare vectors of int, char, and locstr.
13342         (locstr): New typedef.
13343         (struct extraction): Make all array fields into bare pointers.
13344         (insn_name_ptr, insn_name_ptr_size): Move down by get_insn_name.
13345         (insn_code_number): Delete.
13346         (accum_extract): New struct.
13347         (VEC_safe_set_locstr, VEC_char_to_string): New functions.
13348         (gen_insn): Take insn_code_number as an argument.  Use an
13349         accum_extract structure instead of loading data directly into
13350         a struct extraction, and having to know how big it might get.
13351         (walk_rtx): Operate entirely on an accum_extract structure.
13352         (print_path): Avoid unnecessary use of printf.
13353         (print_header): New function, split out of main.  Distinguish
13354         more carefully between an unrecognizable insn and an insn that
13355         has the code number of a define_expand.
13356         (main): Pass insn_code_number to gen_insn.  Call print_header
13357         only after parsing.  Avoid unnecessary use of printf.
13358         * Makefile.in (build/vec.o): New rule.
13359         (build/genextract): Depend on build/vec.o.
13360         (build/genextract.o): Don't depend on insn-config.h.
13361
13362 2006-01-22  Zack Weinberg  <zackw@panix.com>
13363
13364         * Makefile.in: Consolidate most rules that use $(CC_FOR_BUILD) and/or
13365         $(RUN_GEN).  Use pattern rules to factor out as much boilerplate as
13366         practical.  Eliminate per-generator-program link rules.
13367
13368 2006-01-23  Andrew Pinski  <pinskia@physics.uc.edu>
13369
13370         PR middle-end/24437
13371         * tree-ssa-ccp.c (fold_stmt): Move folding of OBJ_TYPE_REF
13372         with a call expr to ...
13373         * fold-const.c (fold_ternary) <case CALL_EXPR>: Here.
13374
13375 2006-01-23  Richard Guenther  <rguenther@suse.de>
13376
13377         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Add comment
13378         before make_edge with conditional EDGE_TRUE_VALUE.
13379
13380 2006-01-23  Steven Bosscher  <stevenb.gcc@gmail.com>
13381         Jan Hubicka  <jh@suse.cz>
13382         Richard Guenther  <rguenther@suse.de>
13383
13384         PR rtl-optimization/25654
13385         * cfgexpand.c (aggregate_contains_union_type): New function.
13386         (add_alias_set_conflicts): Call it.  Make sure to add conflicts
13387         for structure variables that contain a union type.
13388
13389 2006-01-23  Richard Sandiford  <richard@codesourcery.com>
13390
13391         * gengtype.c (new_structure): Return the structure.
13392         (create_option): Add an extra "next" argument.
13393         (create_field): New function.
13394         (adjust_field_rtx_def): Use create_option and create_field.
13395         Remove a now-unnecessary call to find_structure.
13396         (adjust_field_tree_def): Likewise.
13397         (note_yacc_type): Remove an unnecessary call to find_structure.
13398         * gengtype.h (new_structure): Return the structure.
13399         (create_option): Add an extra argument.
13400         * gengtype-yacc.y (type): Remove unnecessary calls to find_structure.
13401         (option): Adjust calls to create_option.
13402
13403 2006-01-22  David Edelsohn  <edelsohn@gnu.org>
13404
13405         * config/rs6000/aix.h (STACK_BOUNDARY): Define.
13406
13407 2006-01-22  Paul Brook  <paul@codesourcery.com>
13408         Peter Barada  <peter@the-baradas.com>
13409
13410         * config/m68k/m68k.md: Add Coldfire FPU support.
13411         Define FP mode macro and associated attributes.
13412         Use it for float mode patterns.
13413         * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value.
13414         (LIBCALL_VALUE): Use m68k_libcall_value.
13415         * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype.
13416         (m68k_function_value): Ditto.
13417         (emit_move_sequence): Ditto.
13418         * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value.
13419         * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e.
13420         * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e.
13421         (MULTILIB_EXCEPTIONS): Ditto.
13422         * config/m68k/m68k.opt: Add mcfv4e.
13423         * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e.
13424         (m68k_compute_frame_layout): Include space for ColdFire FPU regs.
13425         (m68k_output_function_prologue): Save ColdFire FPU registers.
13426         (m68k_output_function_epilogue): Restore ColdFire FPU registers.
13427         (force_mode, fp_reg_operand, emit_move_sequence): New functions.
13428         (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in
13429         ColdFire FPU registers.
13430         (m68k_libcall_value, m68k_function_value): New functions.
13431         * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value.
13432         (LIBCALL_VALUE): Use m68k_libcall_value.
13433         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__.
13434         (MASK_COLDFIRE): Add MASK_CFV4E.
13435         (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New.
13436         (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT.
13437         (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto.
13438         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define.
13439         (GO_IF_LEGITIMATE_ADDRESS): Use it.
13440         (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses.
13441         * doc/invoke.tex: Document -mcfv4e on m68k.
13442
13443 2006-01-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
13444
13445         * doc/contribute.texi: Change CVS to SVN and update the corresponding
13446         URL.
13447
13448 2006-01-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13449
13450         PR c++/16190
13451         * c-opts.c (c_common_handle_option): Don't include
13452         -Wnon-virtual-dtor in -Wall; enable if -Weffc++.
13453         * doc/invoke.texi (C++ Dialect Options): Document that
13454         -Wnon-virtual-dtor is no longer included in -Wall.
13455
13456 2006-01-21  Joseph S. Myers  <joseph@codesourcery.com>
13457
13458         * gcov.c (print_version), gcov-dump.c (print_version),
13459         mips-tdump.c (main), mips-tfile.c (main): Update copyright notice
13460         dates.
13461
13462 2006-01-21  Kenneth Zadeck <zadeck@naturalbridge.com>
13463
13464         * df-scan.c (problem_SCAN): Added NULL reset function.
13465         (df_scan_reset_blocks): Added code to call reset block function
13466         (df_bb_refs_delete) Fixed comment.
13467         (df_insn_refs_delete): Made tolerant of deleting non existent info
13468         for dataflow problems that need to be reset.
13469         * df-core.c (df_set_blocks): Ditto.
13470         * df.h (struct df_problem): Added reset_fun.
13471         * df-problems.c (problem_RU, problem_RD, problem_LR, problem_UR,
13472         problem_UREC, problem_CHAIN, problem_RI): Initialized reset_fun field.
13473         (df_chain_insn_reset, df_chain_bb_reset, df_chain_reset): New
13474         functions to clear out all references to def-use or use-def chains.
13475
13476 2006-01-21  Ben Elliston  <bje@au.ibm.com>
13477
13478         * varasm.c (assemble_real): Initialise data array.
13479
13480 2006-01-20  Paul Brook  <paul@codesourcery.com>
13481
13482         Merge from csl-arm-branch.
13483         2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
13484         * config/arm/arm.md (movdi): Force operands[1] to a register
13485         if we have a non-register source.
13486         (*arm_movdi, *movdf_soft_insn): Require that one of the
13487         operands be a register.
13488         * config/arm/iwmmxt.md (*iwmmxt_arm_movdi): Likewise.
13489         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
13490
13491 2006-01-20  DJ Delorie  <dj@redhat.com>
13492
13493         * varasm.c (initializer_constant_valid_p): Allow pointers
13494         initialized from integer constants of lesser precision.
13495         (output_constant): Allow non-int-sized pointer modes to be
13496         initialized from integer constants.
13497
13498 2006-01-20  Joseph S. Myers  <joseph@codesourcery.com>
13499
13500         PR libstdc++/25524
13501         * cppdefault.h (struct default_include): Add multilib flag.
13502         * cppdefault.c (cpp_include_defaults): Set it.
13503         * c.opt (-imultilib): New option.
13504         * c-opts.c (imultilib): New.
13505         (c_common_handle_option): Handle -imultilib.
13506         (c_common_post_options): Likewise.
13507         * c-incpath.c (add_standard_paths, register_include_chains):
13508         Likewise.
13509         * c-incpath.h (register_include_chains): Add extra parameter.
13510         * gcc.c (do_spec_1): Generate -imultilib option.
13511         (The Specs Language): Update %I description.
13512         (process_command): Update copyright notice.
13513         * doc/cppopts.texi (-imultilib): Document.
13514         * doc/invoke.texi (-imultilib): Include in option summary.
13515         (%I): Update specs documentation.
13516
13517 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
13518
13519         * loop-iv.c (iv_analysis_loop_init): Use df in more conservative way.
13520
13521 2006-01-20  Richard Sandiford  <richard@codesourcery.com>
13522
13523         * stmt.c (case_bit_test_cmp): Stabilize the sort using code
13524         label numbers.
13525
13526 2006-01-20  Richard Guenther  <rguenther@suse.de>
13527         Steven Bosscher <stevenb.gcc@gmail.com>
13528
13529         PR rtl-optimization/24626
13530         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Don't set
13531         EDGE_TRUE_VALUE if in RTL mode.
13532
13533         Revert
13534         2005-03-30 Mostafa Hagog <mustafa@il.ibm.com>
13535         * cfgrtl.c (rtl_verify_flow_info_1): Fix.
13536
13537 2006-01-20  Dirk Mueller  <dmueller@suse.com>
13538
13539         PR c++/5520
13540         * c-parser.c (c_parser_if_body): Use build_empty_stmt()
13541         instead of a special NOP marker.
13542         * c-typeck.c (c_finish_if_stmt): Remove obsoleted special
13543         NOP marker handling.
13544         * c-common.h (empty_body_warning): Add forward declaration.
13545         * c-common.c (empty_body_warning): Add (from c_finish_if_stmt).
13546         Now uses IS_EMPTY_STMT() instead of special NOP markers.
13547
13548 2006-01-20  Paul Brook  <paul@codesourcery.com>
13549
13550         * Makefile.in (lang_checks): Keep going if mkdir fails.
13551
13552 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
13553
13554         * df-scan.c (df_scan_free_bb_info): Added basic block parameter to
13555         be able to clean out basic block when not necessary.
13556         (df_scan_free): Fixed to properly delete information if df is
13557         unused before calling df_finish.
13558         (df_scan_alloc, df_rescan_blocks, df_reg_chain_unlink,
13559         df_insn_create_insn_record, df_bb_refs_record): Fixed formatting
13560         or comment typos.
13561         (df_bb_refs_delete): New function.
13562         (df_refs_delete): Moved per block code to df_bb_refs_delete.
13563         * df-core.c (df_set_blocks): Added code to properly clean out
13564         unused blocks if they are not part of the blocks to consider.
13565         Added additional null check.
13566         (df_compact_blocks): Added basic block parameter to free_bb_fun to
13567         be able to clean out basic block when not necessary
13568         * df.h (df_free_bb_function): Ditto.
13569         (df_bb_refs_delete): New function.
13570         * df-problems.c (df_ru_free_bb_info, df_rd_set_bb_info,
13571         df_lr_set_bb_info, df_ur_free_bb_info, df_urec_free_bb_info):Added
13572         basic block parameter to be able to clean out basic block when not
13573         necessary.
13574         (df_ru_alloc, df_rd_alloc): Fixed dyslexic overflow test.
13575         (df_ru_free, df_rd_free, df_lr_free, df_ur_free, df_urec_free):
13576         Fixed to properly delete information if df is unused before
13577         calling df_finish.
13578
13579 2006-01-19  Kenneth Zadeck <zadeck@naturalbridge.com>
13580
13581         PR rtl-optimization/25799
13582         * df-problems.c (df_ru_confluence_n, df_rd_confluence_n):
13583         Corrected confluence operator to remove bits from op2 before oring
13584         with op1 rather than removing bits from op1.
13585         (df_ru_transfer_function): Corrected test on wrong bitmap which
13586         caused infinite loop.  Both of these problems were introduced in
13587         the dataflow rewrite.
13588
13589 2006-01-19  DJ Delorie  <dj@redhat.com>
13590
13591         * reload1.c (find_reload_regs): Note the details of reload
13592         failures in the dump file.
13593         (spill_failure): Likewise.
13594
13595 2006-01-20  Zdenek Dvorak <dvorakz@suse.cz>
13596
13597         * loop-iv.c: Include df.h and hashtab.h.
13598         (enum iv_grd_result): New enum.
13599         (DF_REF_IV, DF_REF_IV_SET): New macros.
13600         (struct biv_entry): New.
13601         (df, bivs): New global variables.
13602         (struct insn_info, insn_info, last_def, bivs, max_insn_no, max_reg_no,
13603         assign_luids, mark_sets, kill_sets, mark_single_set, simple_set_p):
13604         Removed.
13605         (clear_iv_info, latch_dominating_def, record_iv, iv_analyze_expr,
13606         iv_analyze_result, iv_analyze_def, biv_hash, biv_eq,
13607         analyzed_for_bivness_p, record_biv): New functions.
13608         (iv_analysis_loop_init, iv_get_reaching_def, simple_reg_p,
13609         get_biv_step_1, get_biv_step, iv_analyze_biv, iv_analyze_op,
13610         iv_analyze, biv_p, iv_analysis_done): Work with df representation of
13611         UD chains.
13612         (iv_constant, iv_subreg, iv_extend, iv_mult, iv_shift): Do not set
13613         analysed.
13614         (iv_number_of_iterations): Use new interface to iv analysis.
13615         * loop-unroll.c: Do not include varray.h.
13616         (analyze_iv_to_split_insn): Use new interface to iv
13617         analysis.
13618         * loop-unswitch.c (may_unswitch_on): Ditto.
13619         * df.c (df_bitmaps_free): Only work for bbs for that structures are
13620         allocated.
13621         (df_bb_modify): Realloc tables to the new index.
13622         (df_find_use): New function.
13623         * df.h (df_find_use): Declare.
13624         * optabs.c (expand_unop): Make the mode of the REG_EQUAL node be
13625         outmode.
13626         * cfgloop.h (struct rtx_iv): Remove analysed field.
13627         (iv_get_reaching_def): Removed.
13628         (iv_analyze_result, iv_analyze_expr, iv_current_loop_df): Declare.
13629         * Makefile.in (loop-unroll.o): Remove VARRAY_H dependency.
13630         (loop-iv.o): Add df.h and hashtab.h dependency.
13631         * df-problems.c (df_ru_alloc, df_rd_alloc): Fix memory reallocation.
13632
13633 2006-01-20  Alan Modra  <amodra@bigpond.net.au>
13634
13635         PR target/25668
13636         * libgcc2.c (__floatdisf, __floatdidf): Don't use IBM Extended
13637         Double TFmode.
13638         (__floatundisf, __floatundidf): Likewise.
13639         * libgcc2.h (IS_IBM_EXTENDED): Define.
13640
13641 2006-01-19  DJ Delorie  <dj@redhat.com>
13642
13643         * config/m32c/m32c.h (REG_ALLOC_ORDER): Define.
13644
13645 2006-01-19  Paul Brook  <paul@codesourcery.com>
13646
13647         * config/arm/arm.c (arm_compute_func_type): Treat all functions
13648         as nothrow when unwinding tables are disabled.
13649
13650 2006-01-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13651
13652         PR testsuite/25171
13653         * c-decl.c (check_bitfield_type_and_width): Don't issue pedwarn "type
13654         of bit-field" when in system header.
13655
13656 2006-01-19  DJ Delorie  <dj@redhat.com>
13657
13658         * config/m32c/m32c.c (m32c_prepare_shift): Add code to deal with
13659         the 16 bit shift limit of the m16c.
13660
13661 2006-01-19  Andrew Pinski  <pinskia@physics.uc.edu>
13662
13663         PR target/22099
13664         * config/i386/i386.md (builtin_setjmp_receiver): Don't emit the label.
13665         * config/i386/i386.c (output_set_got): Output the label if we have one
13666         for the TARGET_DEEP_BRANCH_PREDICTION case.
13667
13668 2006-01-19  Jan Hubicka  <jh@suse.cz>
13669             H.J. Lu  <hongjiu.lu@intel.com>
13670             Evandro Menezes <evandro.menezes@amd.com>
13671
13672         * invoke.texi (generic): Document
13673         (i686) Update.
13674         * config.gcc: Make x86_64-* and i686-* default to generic tunning.
13675         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64, TARGET_GENERIC,
13676         TARGET_USE_INCDEC, TARGET_PAD_RETURNS): New macros.
13677         (x86_use_incdec, x86_pad_returns): New variables
13678         (TARGET_CPU_DEFAULT_generic): New constant
13679         (TARGET_CPU_DEFAULT_NAMES): Add generic.
13680         (enum processor_type): Add generic32 and generic64.
13681         * i386.md (cpu attribute): Add generic32/generic64
13682         (movhi splitter): Behave sanely when both partial_reg_dependency and
13683         partial_reg_stall are set.
13684         (K8 splitters): Enable for generic as well.
13685         * predicates.md (incdec_operand): Use TARGET_INCDEC
13686         (aligned_operand): Avoid memory mismatch stalls.
13687         * athlon.md: Enable for generic64, new patterns for 128bit moves.
13688         * ppro.md: Enable for generic32
13689         * i386.c (generic64_cost, generic32_cost): New.
13690         (m_GENERIC32, m_GENERIC64, m_GENERIC): New macros.
13691         (x86_use_leave): Enable for generic64.  (x86_use_sahf,
13692         x86_ext_80387_constants): Enable for generic32.  (x86_push_memory,
13693         x86_movx, x86_unroll_strlen, x86_deep_branch, x86_use_simode_fiop,
13694         x86_use_cltd, x86_promote_QImode, x86_sub_esp_4, x86_sub_esp_8,
13695         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
13696         x86_partial_reg_dependency, x86_memory_mismatch_stall,
13697         x86_accumulate_outgoing_args, x86_prologue_using_move,
13698         x86_epilogue_using_move, x86_arch_always_fancy_math_387,
13699         x86_sse_partial_reg_dependency, x86_four_jump_limit, x86_schedule):
13700         Enable for generic.
13701         (x86_use_incdec, x86_pad_returns): New.
13702         (override_options): Add generic32 and generic64, translate "generic"
13703         to generic32/generic64 and "i686" to "generic32", refuse
13704         "generic32"/"generic64" as arch target.
13705         (ix86_issue_rate, ix86_adjust_cost): Handle generic as athlon.
13706         (ix86_reorg): Honor PAD_RETURNS.
13707
13708 2006-01-19  Diego Novillo  <dnovillo@redhat.com>
13709
13710         * tree-pretty-print.c (dump_generic_node): Handle
13711         OMP_PARALLEL_FN, OMP_PARALLEL_DATA_ARG and OMP_RETURN_EXPR.
13712         * cgraph.c (cgraph_expand_queue): Rename from
13713         cgraph_analyze_queue.  Update all users.
13714         * cgraphunit.c (cgraph_assemble_pending_functions): Process
13715         cgraph_expand_queue.
13716         (cgraph_expand_all_functions): Likewise.
13717         (cgraph_finalize_pending_functions): Remove.  Update callers.
13718
13719         * tree.h (OMP_DIRECTIVE_P): Define.
13720         (OMP_PARALLEL_FN): Define.
13721         (OMP_PARALLEL_DATA_ARG): Define.
13722         (OMP_SECTIONS_SECTIONS): Define.
13723         * tree-pass.h (pass_expand_omp): Declare.
13724         * omp-low.c (struct omp_region): Declare.
13725         (struct omp_context): Remove fields 'parallel_type',
13726         'parallel_start_ix' and 'parallel_start_additional_args'.
13727         Update all users.
13728         (struct omp_for_data): Rename from struct expand_omp_for_data.
13729         (omp_regions): New static variable.
13730         (root_omp_region): New static variable.
13731         (find_omp_clause): Make static.
13732         (is_in_combined_parallel_ctx): Remove.
13733         (is_combined_parallel): New.
13734         (extract_omp_for_data): Move earlier in the file.
13735         (workshare_safe_to_combine_p): New.
13736         (get_ws_args_for): New.
13737         (determine_parallel_type): Move earlier in the file.
13738         (omp_copy_decl_2): Do not set DECL_CONTEXT of new local to the
13739         child function.
13740         (omp_copy_decl): Likewise.
13741         (create_omp_child_function): Likewise.
13742         (lookup_omp_region): New.
13743         (dump_omp_region): New.
13744         (debug_omp_region): New.
13745         (debug_all_omp_regions): New.
13746         (new_omp_region): New.
13747         (scan_omp_parallel): If parallel_nesting_level > 1, the
13748         directive is nested within another parallel directive.
13749         Set OMP_PARALLEL_FN.
13750         (scan_omp_for): Do not try to handle combined parallel+for
13751         cases.
13752         Remove FIXME comment.
13753         (scan_omp_nested): Remove.
13754         (scan_omp_1): Do not call scan_omp_nested when
13755         parallel_nesting_level is > 1.
13756         Do not change the DECL_CONTEXT of local variables found.
13757         (lookup_decl_in_outer_ctx): New.
13758         (lower_rec_input_clauses): Rename from expand_rec_input_clauses.
13759         (lower_lastprivate_clauses): Rename from expand_lastprivate_clauses.
13760         (lower_reduction_clauses): Rename from expand_reduction_clauses.
13761         (lower_copyprivate_clauses): Rename from expand_copyprivate_clauses.
13762         If CTX is nested, lookup VAR in the outer context when
13763         building copy assignment.
13764         (lower_send_clauses): Rename from expand_send_clauses.
13765         If CTX is nested, lookup VAR in the outer context when
13766         building copy assignments.
13767         (lower_send_shared_vars): Rename from expand_send_shared_vars.
13768         If CTX is nested, lookup VAR in the outer context when
13769         building copy assignments.
13770         (expand_parallel_call): Rename from build_parallel_call.
13771         Handle combined parallel+workshare cases.
13772         Re-implement to emit code into the CFG.
13773         (list2chain): New.
13774         (expand_omp_parallel): Re-implement to emit code into the CFG.
13775         Call move_sese_region_to_fn to outline the sub-graph
13776         containing the parallel region.
13777         (expand_omp_for_1): Remove.
13778         (expand_omp_for_generic): Re-implement to emit code into the
13779         CFG.
13780         (expand_omp_for_static_nochunk): Likewise.
13781         (expand_omp_for_static_chunk): Likewise.
13782         (expand_omp_for): Likewise.
13783         (expand_omp_sections): Likewise.
13784         (remove_exit_barriers): New.
13785         (expand_omp_synch): New.
13786         (expand_omp): New.
13787         (build_omp_regions_1): New.
13788         (build_omp_regions): New.
13789         (execute_expand_omp): New.
13790         (gate_expand_omp): New.
13791         (pass_expand_omp): Define.
13792         (lower_omp_sections): Rename from expand_omp_sections.
13793         Set OMP_SECTIONS_SECTIONS.
13794         (lower_omp_single_simple): Rename from expand_omp_single_simple.
13795         (lower_omp_single_copy): Rename from expand_omp_single_copy.
13796         (lower_omp_single): Rename from expand_omp_simple.
13797         (lower_omp_master): Rename from expand_omp_master.
13798         (lower_omp_ordered): Rename from expand_omp_ordered.
13799         (lower_omp_critical): Rename from expand_omp_critical.
13800         (lower_omp_for_lastprivate): Rename from expand_omp_for_lastprivate.
13801         (lower_omp_for): Re-implement.
13802         (lower_omp_parallel): Re-implement.
13803         (lower_regimplify): Rename from expand_regimplify.
13804         (lower_omp_1): Rename from expand_omp_1.
13805         If there are syntax errors in the program, replace every
13806         OpenMP directive with NOP.
13807         Call lower_omp_* instead of expand_omp_*.
13808         (lower_omp): Rename from expand_omp.
13809
13810         * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN_EXPR.
13811         * tree-gimple.h (enum omp_parallel_type): Remove.
13812         (gimple_boolify): Declare extern.
13813         (find_omp_clause, determine_parallel_type): Remove.
13814
13815         * gimple-low.c (lower_omp_directive): New.
13816         (lower_stmt): Call it.
13817         (record_vars_into): Move from ...
13818         (record_vars): ... here.
13819         Call record_vars_into with current_function_decl.
13820
13821         * gimplify.c (struct gimplify_ctx): Remove fields
13822         combined_pre_p and combined_ctxp.  Update users.
13823         (get_formal_tmp_var): Add documentation.
13824         (gimple_boolify): Make extern.
13825         (gimplify_expr_in_ctx): Remove.  Update callers.
13826         (gimplify_omp_parallel): Do not assume that OMP_PARALLEL_BODY
13827         will always be a BIND_EXPR.
13828         (gimplify_expr): Handle OMP_RETURN_EXPR.
13829         * tree.def (BLOCK): Remove documentation about BLOCK_TYPE_TAGS.
13830         (OMP_PARALLEL): Add 3 operands.
13831         (OMP_SECTIONS): Add 1 operand.
13832         (OMP_RETURN_EXPR): Define.
13833
13834         * tree-inline.c (estimate_num_insns_1): Handle OpenMP directives.
13835         (copy_tree_r): Restore TREE_CHAIN in OMP_CLAUSE_*.
13836         * tree-iterator.c (alloc_stmt_list): Assert that we are not
13837         creating a circular free list.
13838         (free_stmt_list): Assert that we are not freeing stmt_list_cache.
13839
13840         * tree-flow.h (move_sese_region_to_fn): Declare.
13841         (record_vars_into): Declare.
13842         * tree-cfg.c (make_omp_sections_edges): New.
13843         (make_exit_edges): Handle OMP_PARALLEL, OMP_FOR, OMP_SINGLE,
13844         OMP_MASTER, OMP_ORDERED, OMP_CRITICAL, OMP_RETURN_EXPR,
13845         OMP_SECTIONS and OMP_SECTION.
13846         (is_ctrl_altering_stmt): Return true for OMP_DIRECTIVE_P.
13847         (set_bb_for_stmt): Undo change to check currently_expanding_to_rtl.
13848         (verify_stmt): Do not handle OMP_DIRECTIVE_P.
13849         (gather_blocks_in_sese_region): New.
13850         (struct move_stmt_d): Declare.
13851         (move_stmt_r): New.
13852         (move_block_to_fn): New.
13853         (move_sese_region_to_fn): New.
13854
13855         * passes.c (init_optimization_passes): Schedule
13856         pass_expand_omp after pass_init_datastructures.
13857
13858         * tree-ssa-operands.c (get_expr_operands): Handle
13859         OMP_PARALLEL, OMP_SECTIONS, OMP_FOR, OMP_RETURN_EXPR,
13860         OMP_SINGLE, OMP_MASTER, OMP_ORDERED, OMP_CRITICAL.
13861
13862 2006-01-19  Jeff Law  <law@redhat.com>
13863
13864         * tree-vrp.c (extract_range_from_assert): Refine the result range
13865         if the variable referenced by the ASSERT_EXPR has a range and
13866         either the tentative result range or the previous range is a
13867         VR_ANTI_RANGE.
13868
13869 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
13870
13871         * c-decl.c (add_flexible_array_elts_to_size): Simplify vector accesses.
13872
13873 2006-01-19  Jan Hubicka  <jh@suse.cz>
13874
13875         * tree-vect-patterns.c (vect_pattern_recog_1): Prevent parse error.
13876
13877 2006-01-19  Paolo Bonzini  <bonzini@gnu.org>
13878
13879         * combine.c (try_combine): Do not worry about MEMs wrapped by USEs.
13880         (expand_compound_operation, expand_field_assignment): Fail if the
13881         bit lengths of an extract operation are out of range.
13882         (make_extraction): Compute wanted_inner_mode based on the position
13883         and length of the extraction.  Make it extraction_mode for non-constant
13884         positions, and do not modify offset in that case.  When generating a
13885         new MEM, use a mode that can hold the extraction while keeping correct
13886         alignment.  Remove code that supported MEMs wrapped by USEs.
13887         (simplify_shift_const_1, force_to_mode) <case USE>: Remove.
13888
13889 2006-01-19  Andreas Krebbel  <krebbel1@de.ibm.com>
13890
13891         * config/s390/s390.md ("Y", "y"): New mode attribute.
13892         ("*cmpdi_ccs", "*cmpsi_ccs", "*adddi3_imm_cc", "*adddi3_carry1_cc",
13893         "*adddi3_carry1_cconly", "*adddi3_carry2_cc", "*adddi3_carry2_cconly",
13894         "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2", "*adddi3_64",
13895         "*addsi3_imm_cc", "*addsi3_carry1_cc",
13896         "*addsi3_carry1_cconly", "*addsi3_carry2_cc", "*addsi3_carr2_cconly",
13897         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
13898         "*subdi3_borrow_cc", "*subdi3_borrow_cconly", "*subdi3_cc",
13899         "*subdi3_cc2", "*subdi3_cconly", "*subdi3_cconly2", "*subdi3_64",
13900         "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
13901         "*subsi3_cc2", "*subsi3_cconly", "*subsi3_cconly", "*subsi3_cconly2",
13902         "addsi3", "subsi3"): Insn patterns removed.
13903         ("*add<mode>3_carry1_cc", "*add<mode>3_carry1_cconly",
13904         "*add<mode>3_carry2_cc", "*add<mode>3_carry2_cconly", "*add<mode>3_cc",
13905         "*add<mode>3_cconly", "*add<mode>3_cconly2", "*add<mode>3_imm_cc",
13906         "*sub<mode>3_borrow_cc", "*sub<mode>3_borrow_cconly",
13907         "*sub<mode>3_cc", "*sub<mode>3_cc2", "*sub<mode>3_cconly",
13908         "*sub<mode>3_cconly2"): New insn patterns.
13909         ("addsi3", "subsi3"): New expanders.
13910
13911 2006-01-19  Dorit Nuzman  <dorit@il.ibm.com>
13912
13913         * Makefile.in (tree-vect-patterns.o): Add rule for new file.
13914         * tree-vect-analyze.c (vect_determine_vectorization_factor): Use
13915         existing STMT_VINFO_VECTYPE if available.
13916         (vect_mark_relevant): Add special handling for stmts that are
13917         marked as STMT_VINFO_IN_PATTERN_P.
13918         (vect_analyze_loop): Call vect_pattern_recog.
13919         * tree-vectorizer.c (new_stmt_vec_info): Initialize new fields.
13920         * tree-vectorizer.h (in_pattern_p, related_stmt): New fields in
13921         stmt_info.
13922         (STMT_VINFO_IN_PATTERN_P, STMT_VINFO_RELATED_STMT): New macros.
13923         (vect_recog_func_ptr): New function-pointer type.
13924         * tree-vect-patterns.c: New file.
13925         (vect_recog_widen_sum_pattern, vect_recog_widen_mult_pattern):
13926         (vect_recog_dot_prod_pattern, vect_pattern_recog):
13927         (vect_pattern_recog_1): New functions.
13928         (vect_pattern_recog_funcs): New array of function pointers.
13929
13930         * tree-vectorizer.h (ternary_op): New enum value.
13931         * tree-vect-transform.c (vect_create_epilog_for_reduction): Added
13932         declaration. Revised documentation. Removed redundant dump prints.
13933         Removed redundant argument. Added support for reduction patterns.
13934         (vectorizable_reduction): Added support for reduction patterns.
13935         (vect_transform_stmt): Added support for patterns.
13936
13937         * expr.c (expand_expr_real_1): Added case for DOT_PROD_EXPR.
13938         * genopinit.c (udot_prod_optab, sdot_prod_optab): Initialize.
13939         * optabs.c (optab_for_tree_code): Added case for DOT_PROD_EXPR.
13940         (expand_widen_pattern_expr): New function.
13941         (init_optabs): Initialize new optabs udot_prod_optab,
13942         sdot_prod_optab.
13943         * optabs.h (OTI_sdot_prod, OTI_udot_prod): New.
13944         (sdot_prod_optab, udot_prod_optab): Define new optabs.
13945         (expand_widen_pattern_expr): New function declaration.
13946         * tree.def (DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR): New
13947         tree-codes.
13948         * tree-inline.c (estimate_num_insns_1): Added cases for new
13949         tree-codes DOT_PROD_EXPR, WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
13950         * tree-pretty-print.c (dump_generic_node): Likewise.
13951         (op_prio): Likewise.
13952         (op_symbol): Added cases for WIDEN_SUM_EXPR, WIDEN_MULT_EXPR.
13953         * tree-ssa-operands.c (get_expr_operands): Added case for
13954         DOT_PROD_EXPR.
13955         * tree-vect-patterns.c (widened_name_p): New function.
13956         (vect_recog_dot_prod_pattern): Added function implementation.
13957         * tree-vect-transform.c (get_initial_def_for_reduction): Added
13958         cases for DOT_PROD_EXPR, WIDEN_SUM_EXPR.
13959         * config/rs6000/altivec.md (udot_prod<mode>, sdot_prodv8hi): New.
13960         * config/i386/sse.md (sdot_prodv8hi, udot_prodv4si): New.
13961
13962         * expr.c (expand_expr_real_1): Added case for WIDEN_SUM_EXPR.
13963         * genopinit.c (widen_ssum_optab, widen_usum_optab): Initialize.
13964         * optabs.c (optab_for_tree_code): Added case for WIDEN_SUM_EXPR.
13965         (init_optabs): Initialize new optabs widen_ssum_optab,
13966         widen_usum_optab.
13967         * optabs.h (OTI_widen_ssum, OTI_widen_usum): New.
13968         (widen_ssum_optab, widen_usum_optab): Define new optabs.
13969         * tree-vect-generic.c: (expand_vector_operations_1): Check type of
13970         use instead of type of def.
13971         * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Added
13972         function implementation.
13973         * config/rs6000/altivec.md (widen_usum<mode>, widen_ssumv16qi,
13974         widen_ssumv8hi): New.
13975
13976         * doc/tm.texi (ssum_widen, usum_widen, sdot_prod, udot_prod): New
13977         patterns.
13978
13979 2006-01-19  Richard Sandiford  <richard@codesourcery.com>
13980
13981         PR c/25805
13982         * c-decl.c (add_flexible_array_elts_to_size): New function.
13983         (finish_decl): Use it.
13984
13985 2006-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
13986
13987         * diagnostic.h: Include options.h.
13988         * config/rs6000/x-darwin (host-ppc-darwin.o): Correct the
13989         dependancies for diagnostic.h.
13990         * Makefile.in (DIAGNOSTIC_H): Add options.h.
13991
13992 2006-01-16  Daniel Berlin  <dberlin@dberlin.org>
13993
13994         * tree-ssa-operands.h (ssa_call_clobbered_cache_valid): Remove.
13995         (ssa_ro_call_cache_valid): Ditto.
13996         * tree-ssa-alias.c (sort_tags_by_id): New function.
13997         (init_transitive_clobber_worklist): Ditto.
13998         (add_to_worklist): Ditto.
13999         (mark_aliases_call_clobbered): Ditto.
14000         (compute_tag_properties): Ditto.
14001         (set_initial_properties): Ditto.
14002         (compute_call_clobbered): Ditto.
14003         (compute_may_aliases):  Call compute_call_clobbered and grouping.
14004         (compute_flow_sensitive_aliasing): Remove clobbering related code.
14005         (compute_flow_insensitive_aliasing): Grouping now happens in our
14006         caller.
14007         (setup_pointers_and_addressables): Remove clobbering related code.
14008         (add_may_alias): Ditto.
14009         (replace_may_alias): Ditto.
14010         (get_nmt_for): Ditto.
14011         (create_global_var):
14012         (is_escape_site): Return an escape_type enumeration.
14013         * tree-flow-inline.h (is_call_clobbered): Global var does not
14014         imply call clobbered.
14015         (mark_call_clobbered): Take a reason for marking this. Remove
14016         marking of globalness, and cache invalidation.
14017         (clear_call_clobbered): Remove cache invalidation code.
14018         * tree-dfa.c (dump_variable): If details is on, dump the reason
14019         for escaping.
14020         * tree-outof-ssa.c (create_temp): Copy escape mask from original
14021         variable.
14022         * tree-flow.h (struct ptr_info_def): Add escape mask member.
14023         (struct var_ann_d): Ditto.
14024         (enum escape_type): New.
14025         (mark_call_clobbered): Adjust prototype.
14026         * tree-ssa-structalias.c (update_alias_info): Unmodifiable vars
14027         are never call clobbered.
14028         Record reasons for escaping.
14029         * tree-ssa-structalias.h (is_escape_site): Update prototype.
14030         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): Remove.
14031         (ssa_ro_call_cache_valid): Ditto.
14032         (clobbered_v_may_defs): Ditto.
14033         (clobbered_vuses): Ditto.
14034         (ro_call_vuses): Ditto.
14035         (clobber_stats): New.
14036         (init_ssa_operands): Zero out clobber stats.
14037         (fini_ssa_operands): Print out clobber stats.
14038         (get_call_expr_operands): Pass callee fndecl to
14039         add_call_read_ops).
14040         (add_call_clobber_ops): Remove use of cache.
14041         Add use of PURE_CONST information.
14042         (add_call_read_ops): Remove use of cache.
14043         Add use of static not_read information.
14044
14045 2006-01-18  Alexandre Oliva  <aoliva@redhat.com>
14046
14047         Introduce TLS descriptors for i386 and x86_64.
14048         * config/i386/i386.h (TARGET_GNU2_TLS): New macro.
14049         (TARGET_ANY_GNU_TLS): New macro.
14050         (enum tls_dialect): Added TLS_DIALECT_GNU2.
14051         (struct machine_function): Add tls_descriptor_call_expanded_p.
14052         (ix86_tls_descriptor_calls_expande_in_cfun): New macro.
14053         (ix86_current_function_calls_tls_descriptor): Likewise.
14054         * config/i386/i386.c (ix86_tls_dialect): Fix typo in comment.
14055         (override_options): Introduce gnu2 tls dialect.
14056         (ix86_frame_pointer_required): Functions containing TLSCALLs are
14057         not leaves.
14058         (ix86_select_alt_pic_regnum, ix86_compute_frame_layout):
14059         Likewise.
14060         (legitimize_tls_address): Adjust logic for GNU2 TLS.
14061         (ix86_init_machine_status): Initialize new field.
14062         (ix86_tls_get_addr): Use TARGET_ANY_GNU_TLS.
14063         (ix86_tls_module_base): New.
14064         * config/i386/i386-protos.h (ix86_tls_module_base): Declare it.
14065         * config/i386/i386.md (UNSPEC_TLSDESC): New constant.
14066         (tls_global_dynamic_32, tls_global_dynamic_64): Handle GNU2 TLS.
14067         (tls_local_dynamic_base_32, tls_local_dynamic_base_64): Likewise.
14068         (tls_dynamic_gnu2_32, *tls_dynamic_lea_32): New patterns.
14069         (*tls_dynamic_call_32, *tls_dynamic_gnu2_combine_32): Likewise.
14070         (tls_dynamic_gnu2_64, *tls_dynamic_lea_64): Likewise.
14071         (*tls_dynamic_call_64, *tls_dynamic_gnu2_combine_64): Likewise.
14072         * config/i386/predicates.md (tls_modbase_operand): New.
14073         (tp_or_register_operand): New.
14074
14075 2006-01-18  Daniel Berlin  <dberlin@dberlin.org>
14076
14077         * ipa-reference.c (check_operand): Allow FUNCTION_DECL.
14078         (look_for_address_of): Ditto.
14079         (ipa_init): Walk the function decls.
14080         (static_execute): Don't set readonly on FUNCTION_DECL's.
14081
14082 2006-01-18  Roger Sayle  <roger@eyesopen.com>
14083
14084         * config/i386/i386.md (shift spliter): Fix a a typo in the splitter
14085         for shifts where the source and destination registers are different.
14086
14087 2006-01-18  Paul Brook  <paul@codesourcery.com>
14088
14089         Merge from csl-arm-branch.
14090         2005-03-14  Julian Brown  <julian@codesourcery.com>
14091         * config/arm/lib1funcs.asm (ashldi3): Don't define on SymbianOS.
14092         (aeabi_llsl): Likewise.
14093         (ashrdi3): Likewise.
14094         (aeabi_lasr): Likewise.
14095         (lshrdi3): Likewise.
14096         (aeabi_llsr): Likewise.
14097         2005-03-10  Julian Brown  <julian@codesourcery.com>
14098         * config.gcc: Disable shared libgcc for SymbianOS.
14099         * config/arm/t-symbian (LIB2ADDEH): Include config/arm/pr-support.c.
14100
14101 2006-01-18  DJ Delorie  <dj@redhat.com>
14102
14103         * c-pragma.c (handle_pragma_diagnostic): New.
14104         (init_pragma): Register it.
14105         * doc/extend.texi: Document it.
14106
14107         * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED.
14108         * diagnostic.h (diagnostic_classify_diagnostic): Declare.
14109         (diagnostic_context): Add classify_diagnostic[].
14110         * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings
14111         as errors if they're overridden to DK_WARNING.
14112         (diagnostic_initialize): Initialize classify_diagnostic[].
14113         (diagnostic_set_kind_override): New.
14114         (diagnostic_report_diagnostic): Check for kind changes.
14115         * opts.c (common_handle_option): Take lang_mask.  Update callers.
14116         Handle OPT_Werror_.
14117         * common.opt (Werror=): New.
14118         * doc/invoke.texi: Document -Werror=*
14119
14120 2006-01-18  Jeff Law  <law@redhat.com>
14121
14122         * tree-vrp.c (test_for_singularity): Correct test for new
14123         min limit.  Use operand_equal_p rather than pointer equality
14124         for testing if new min/max values are equal.
14125
14126         * tree-ssa-propagate.c (substitute_and_fold): Delay simplifications
14127         using range information until after propagation and folding.
14128
14129 2006-01-18  Richard Henderson  <rth@redhat.com>
14130             Aldy Hernandez  <aldyh@redhat.com>
14131             Jakub Jelinek  <jakub@redhat.com>
14132             Diego Novillo  <dnovillo@redhat.com>
14133
14134         * omp-low.c: New file.
14135         * c-omp.c: New file.
14136
14137 2006-01-18  Richard Henderson  <rth@redhat.com>
14138             Jakub Jelinek  <jakub@redhat.com>
14139             Diego Novillo  <dnovillo@redhat.com>
14140
14141         * doc/invoke.texi: Document -fopenmp.
14142         * tree-dump.h (debug_function): Declare.
14143         * hooks.c (hook_bool_tree_bool_false): New function.
14144         (hook_tree_tree_null): Remove.
14145         (hook_tree_tree_tree_null): New.
14146         * hooks.h: Update to match.
14147         * tree-pretty-print.c (debug_tree_chain): New.
14148         (print_generic_expr): Handle TDF_CHAIN.
14149         (dump_generic_node): Handle BLOCK.
14150         Do not abort with incomplete SWITCH_EXPRs.
14151         Do not dump body of an OpenMP directive if TDF_SLIM is given.
14152         <case OMP_PARALLEL, OMP_FOR, OMP_SECTIONS>: Don't
14153         print space after directive name.
14154         <OMP_FOR>: Handle printing OMP_FOR_PRE_BODY.
14155         Handle OMP_MASTER and OMP_ORDERED.
14156         Handle printing of OMP_BODY just in one place, goto
14157         dump_omp_body in the rest of OMP_* nodes that have
14158         OMP_BODY.
14159         Don't handle clause nodes here.  Update omp statements to
14160         use dump_omp_clauses.
14161         Handle OMP_SINGLE, OMP_SECTIONS, OMP_SECTION,
14162         OMP_CLAUSE_ORDERED, OMP_CLAUSE_SCHEDULE, OMP_ATOMIC,
14163         OMP_CRITICAL, OMP_CLAUSE_NOWAIT, GOMP_CLAUSE_IF,
14164         GOMP_CLAUSE_NUM_THREADS, GOMP_FOR, GOMP_CLAUSE_SHARED,
14165         GOMP_CLAUSE_FIRSTPRIVATE, GOMP_CLAUSE_LASTPRIVATE,
14166         GOMP_CLAUSE_COPYIN and GOMP_CLAUSE_COPYPRIVATE.
14167         Adjust output for GOMP_PARALLEL.
14168         (dump_omp_clauses): New.
14169         (print_declaration): Dump DECL_VALUE_EXPR.
14170         (op_symbol_1): Split out of op_symbol.
14171         (dumping_stmts): Remove.  Update all users.
14172         * cgraph.c (cgraph_analyze_queue): New.
14173         (cgraph_add_new_function): New.
14174         * cgraph.h (cgraph_analyze_queue): Declare.
14175         (cgraph_add_new_function): Declare.
14176         (cgraph_lower_function): Remove.
14177         * tree.c (walk_tree): Walk OMP_CLAUSE_CHAIN of OMP_CLAUSE_*
14178         nodes.  Use switch for all nodes, handle most of IS_EXPR_CODE_CLASS
14179         and TYPE_P nodes in its default clause.
14180         (empty_body_p): New.
14181         (tree_range_check_failed): New.
14182         (build5_stat): New.
14183         * tree.h (OMP_CLAUSE_REDUCTION_INIT,
14184         OMP_CLAUSE_REDUCTION_MERGE,
14185         OMP_CLAUSE_REDUCTION_PLACEHOLDER,
14186         OMP_CLAUSE_PRIVATE_DEBUG,
14187         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE, OMP_FOR_PRE_BODY,
14188         OMP_MASTER_BODY, OMP_ORDERED_BODY OMP_BODY,
14189         OMP_CLAUSES, OMP_CLAUSE_DECL, OMP_CLAUSE_DEFAULT_KIND,
14190         OMP_CLAUSE_CHAIN, OMP_CLAUSE_OUTER_DECL,
14191         OMP_CLAUSE_INNER_DECL, OMP_CLAUSE_NUM_THREADS_EXPR,
14192         OMP_CLAUSE_IF_EXPR, OMP_CLAUSE_SCHEDULE_CHUNK_EXPR,
14193         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE. OMP_PARALLEL_VAR_INIT,
14194         OMP_PARALLEL_VAR_REDUC, OMP_FOR_VAR_INIT,
14195         OMP_FOR_VAR_LAST, OMP_FOR_VAR_REDUC,
14196         OMP_SECTIONS_VAR_INIT, OMP_SECTIONS_VAR_LAST,
14197         OMP_SECTIONS_VAR_REDUC, OMP_CLAUSE_REDUCTION_CODE
14198         OMP_SINGLE_CLAUSES, OMP_SINGLE_BODY,
14199         OMP_CLAUSE_SCHEDULE_CHUNK_SIZE, OMP_SECTION_BODY,
14200         OMP_CRITICAL_NAME, OMP_CRITICAL_BODY): New.
14201         (TREE_RANGE_CHECK): New.
14202         (empty_body_p): Declare.
14203         (enum omp_clause_default_kind): New.
14204         (build_string_literal): Declare.
14205         (enum omp_clause_schedule_kind, OMP_CLAUSE_SCHEDULE_KIND): New.
14206         (build5_stat, build5): Declare.
14207         * tree-pass.h (TDF_CHAIN): Define.
14208         * tree-pass.h (PROP_gimple_lomp): Define.
14209         (pass_lower_omp): Declare.
14210         * diagnostic.h (debug_tree_chain): Declare.
14211         * builtins.c (get_builtin_sync_mode): Use 0 as last argument to
14212         mode_for_size.
14213         (expand_builtin): Handle sync BUILT_IN_*_16 builtins.
14214         * builtins.c (build_string_literal): Make extern.
14215         * gcc.c (include_spec_function): New.
14216         (static_spec_functions): Add it.
14217         (main): Move load of libgomp.spec ...
14218         (LINK_COMMAND_SPEC): ... here.
14219         (link_gomp_spec): New.
14220         (static_specs): Include it.
14221         (LINK_COMMAND_SPEC): Add link_gomp.
14222         (GOMP_SELF_SPECS): New.
14223         (driver_self_specs): Include it.
14224         (switch_matches): Don't mark inline.
14225         (main): Load libgomp.spec.
14226         * tree-gimple.c (is_gimple_stmt): True for OMP_MASTER,
14227         OMP_ORDERED, OMP_CRITICAL, OMP_SECTIONS, OMP_SECTION,
14228         and OMP_SINGLE, OMP_FOR and OMP_PARALLEL.
14229         * tree-gimple.h (enum omp_parallel): Declare.
14230         (determine_parallel_type): Declare.
14231         (omp_firstprivatize_variable): Declare.
14232         (omp_reduction_init): Declare.
14233         (diagnose_omp_structured_block_errors): Declare.
14234         (struct walk_stmt_info): Add want_return_expr.
14235         (struct walk_stmt_info): Add want_bind_expr, want_locations.
14236         (find_omp_clause): Declare.
14237         (insert_field_into_struct): Declare.
14238         (struct walk_stmt_info): Move from tree-nested.c
14239         (walk_stmts): Declare.
14240         * c-cppbuiltin.c (c_cpp_builtins): If -fopenmp, #define _OPENMP
14241         to 200505.
14242         * cgraphunit.c (cgraph_lower_function): Make static.
14243         (cgraph_finalize_pending_functions): New.
14244         (cgraph_finalize_function): Call it.
14245         (cgraph_finalize_compilation_unit): Likewise.
14246         * builtin-types.def (BT_I16, BT_FN_I16_VPTR_I16,
14247         BT_FN_BOOL_VPTR_I16_I16, BT_FN_I16_VPTR_I16_I16): Add.
14248         (BT_FN_UINT_UINT): New.
14249         (DEF_FUNCTION_TYPE_6, DEF_FUNCTION_TYPE_7,
14250         DEF_FUNCTION_TYPE_VAR_4): Document.
14251         (BT_PTR_LONG, BT_PTR_PTR, BT_FN_BOOL, BT_FN_INT,
14252         BT_FN_VOID_PTRPTR, BT_PTR_FN_VOID_PTR,
14253         BT_FN_BOOL_LONGPTR_LONGPTR, BT_FN_VOID_OMPFN_PTR_UINT,
14254         BT_FN_VOID_OMPFN_PTR_UINT_UINT,
14255         BT_FN_BOOL_LONG_LONG_LONG_LONGPTR_LONGPTR,
14256         BT_FN_BOOL_LONG_LONG_LONG_LONG_LONGPTR_LONGPTR,
14257         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
14258         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG): New.
14259         * builtins.def: Update DEF_BUILTIN comment to include COND argument.
14260         Move all DEF_SYNC_BUILTIN () and DEF_GOMP_BUILTIN () builtins
14261         into separate files.
14262         (DEF_GOMP_BUILTIN): New.
14263         (BUILT_IN_OMP_GET_THREAD_NUM, BUILT_IN_GOMP_BARRIER,
14264         BUILT_IN_GOMP_CRITICAL_START, BUILT_IN_GOMP_CRITICAL_END,
14265         BUILT_IN_GOMP_CRITICAL_NAME_START, BUILT_IN_GOMP_CRITICAL_NAME_END,
14266         BUILT_IN_GOMP_LOOP_STATIC_START, BUILT_IN_GOMP_LOOP_DYNAMIC_START,
14267         BUILT_IN_GOMP_LOOP_GUIDED_START, BUILT_IN_GOMP_LOOP_RUNTIME_START,
14268         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_START,
14269         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_START,
14270         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_START,
14271         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_START,
14272         BUILT_IN_GOMP_LOOP_STATIC_NEXT, BUILT_IN_GOMP_LOOP_DYNAMIC_NEXT,
14273         BUILT_IN_GOMP_LOOP_GUIDED_NEXT, BUILT_IN_GOMP_LOOP_RUNTIME_NEXT,
14274         BUILT_IN_GOMP_LOOP_ORDERED_STATIC_NEXT,
14275         BUILT_IN_GOMP_LOOP_ORDERED_DYNAMIC_NEXT,
14276         BUILT_IN_GOMP_LOOP_ORDERED_GUIDED_NEXT,
14277         BUILT_IN_GOMP_LOOP_ORDERED_RUNTIME_NEXT,
14278         BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
14279         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
14280         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
14281         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
14282         BUILT_IN_GOMP_LOOP_END, BUILT_IN_GOMP_LOOP_END_NOWAIT,
14283         BUILT_IN_GOMP_ORDERED_START, BUILT_IN_GOMP_ORDERED_END,
14284         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
14285         BUILT_IN_GOMP_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_NEXT,
14286         BUILT_IN_GOMP_PARALLEL_SECTIONS_START, BUILT_IN_GOMP_SECTIONS_END,
14287         BUILT_IN_GOMP_SECTIONS_END_NOWAIT, BUILT_IN_GOMP_SINGLE_START,
14288         BUILT_IN_GOMP_SINGLE_COPY_START, BUILT_IN_GOMP_SINGLE_COPY_END): New.
14289         * sync-builtins.def: New file, moved from builtins.def.
14290         * omp-builtins.def: New file, moved from builtins.def.
14291         * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_SHARING): Redefine.
14292         * gimple-low.c (lower_function_body): Clear data.
14293         (lower_stmt): Do not handle COMPOUND_EXPR.
14294         Remove call to print_node_brief.
14295         * c-tree.h (c_finish_omp_clauses): New prototype.
14296         (C_DECL_THREADPRIVATE_P): Define.
14297         (lookup_name_no_remap, c_omp_remap_private): Remove
14298         (c_begin_omp_parallel, c_finish_omp_parallel): Update.
14299         (check_for_loop_decls): Update decl.
14300         (lookup_name_no_remap, c_omp_remap_private): Declare.
14301         (build_indirect_ref, build_modify_expr, pushdecl,
14302         pushdecl_top_level): Move to c-common.h.
14303         * dwarf2out.c (loc_descriptor_from_tree_1): Don't set unsignedp
14304         before the switch, but just in the 2 places that need it.
14305         * c-decl.c (diagnose_mismatched_decls): Do not check for
14306         mismatched thread-local attributes when OLDDECL is marked
14307         threadprivate and NEWDECL has no thread-local attributes.
14308         (merge_decls): Merge C_DECL_THREADPRIVATE_P.
14309         (c_gimple_diagnostics_recursively): Rename from
14310         c_warn_unused_result_recursively.  Invoke
14311         diagnose_omp_structured_block_errors.
14312         (check_for_loop_decls): Return a singular decl found.
14313         * langhooks.c (lhd_omp_predetermined_sharing): Return
14314         OMP_CLAUSE_DEFAULT_SHARED for DECL_ARTIFICIAL decls.
14315         (lhd_omp_firstprivatize_type_sizes): New.
14316         (lhd_omp_assignment): New.
14317         (lhd_omp_predetermined_sharing): New.
14318         * langhooks.h (struct gimplify_omp_ctx): Forward declare.
14319         (struct lang_hooks_for_types): Add
14320         omp_firstprivatize_type_sizes, omp_privatize_by_reference,
14321         omp_predetermined_sharing, omp_disregard_value_expr,
14322         omp_private_debug_clause, omp_clause_default_ctor,
14323         omp_clause_copy_ctor, omp_clause_assign_op, omp_clause_dtor.
14324         (c_finish_omp_clauses): New.
14325         (c_finish_bc_stmt): Diagnose break within omp for.
14326         (c_begin_omp_parallel, c_finish_omp_parallel): New.
14327         (build_unary_op): Return error_mark after reporting
14328         a readonly_error.
14329         (build_modify_expr): Likewise.
14330         * gimplify.c: Include optabs.h and pointer-set.h.
14331         (enum gimplify_omp_var_data): Declare.
14332         (struct gimplify_omp_ctx): Declare.
14333         (struct gimplify_ctx): Add fields prev_context, combined_pre_p
14334         and combined_ctxp.
14335         (gimplify_ctxp, gimplify_omp_ctxp): New local variables.
14336         (push_gimplify_context, pop_gimplify_context): Allow nesting.
14337         (splay_tree_compare_decl_uid): New.
14338         (new_omp_context): New.
14339         (delete_omp_context): New.
14340         (gimple_add_tmp_var): Call omp_add_variable.
14341         (gimplify_bind_expr): Likewise.
14342         (gimplify_var_or_parm_decl): If omp_notice_variable returned
14343         true, disregard DECL_VALUE_EXPR on the decl if any.
14344         (gimplify_expr_in_ctx): New.
14345         (omp_firstprivatize_variable, omp_firstprivatize_type_sizes
14346         omp_add_variable, omp_notice_variable, omp_is_private
14347         gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1
14348         gimplify_adjust_omp_clauses, gimplify_omp_parallel
14349         gimplify_omp_for, gimplify_omp_workshare, goa_lhs_expr_p
14350         gimplify_omp_atomic_fetch_op, goa_stabilize_expr
14351         gimplify_omp_atomic_pipeline, gimplify_omp_atomic_mutex
14352         gimplify_omp_atomic): New.
14353         (gimplify_expr): Handle OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
14354         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
14355         OMP_CRITICAL and OMP_ATOMIC.
14356         (gimplify_body): Verify gimplify_ctxp is empty after gimplification.
14357         * c-pragma.h (enum pragma_kind): Add
14358         PRAGMA_OMP_ATOMIC, PRAGMA_OMP_BARRIER,
14359         PRAGMA_OMP_CRITICAL, PRAGMA_OMP_FLUSH, PRAGMA_OMP_FOR,
14360         PRAGMA_OMP_MASTER, PRAGMA_OMP_ORDERED,
14361         PRAGMA_OMP_PARALLEL, PRAGMA_OMP_PARALLEL_FOR,
14362         PRAGMA_OMP_PARALLEL_SECTIONS, PRAGMA_OMP_SECTION,
14363         PRAGMA_OMP_SECTIONS, PRAGMA_OMP_SINGLE,
14364         PRAGMA_OMP_THREADPRIVATE.
14365         * tree.def (OMP_PARALLEL, OMP_FOR, OMP_SECTIONS,
14366         OMP_SINGLE, OMP_SECTION, OMP_MASTER, OMP_ORDERED,
14367         OMP_CRITICAL, OMP_ATOMIC, OMP_CLAUSE_PRIVATE,
14368         OMP_CLAUSE_SHARED, OMP_CLAUSE_FIRSTPRIVATE,
14369         OMP_CLAUSE_LASTPRIVATE, OMP_CLAUSE_REDUCTION,
14370         OMP_CLAUSE_COPYIN, OMP_CLAUSE_COPYPRIVATE,
14371         OMP_CLAUSE_IF, OMP_CLAUSE_NUM_THREADS,
14372         OMP_CLAUSE_SCHEDULE, OMP_CLAUSE_NOWAIT,
14373         OMP_CLAUSE_ORDERED, OMP_CLAUSE_DEFAULT): Define.
14374         * print-tree.c (print_node): Dump DECL_VALUE_EXPR.
14375         * tree-ssa-dce.c (find_control_dependence): Do not assume that
14376         ENTRY_BLOCK_PTR->next_bb == single_succ (ENTRY_BLOCK_PTR).
14377         * tree-nested.c (convert_call_expr): Call walk_body on OMP_BODY for
14378         OpenMP directives.
14379         (struct nesting_info): Add field_map,
14380         suppress_expansion, debug_var_chain.
14381         (create_nesting_tree): Initialize them.
14382         (lookup_field_for_decl): Use field_map.
14383         (get_nonlocal_debug_decl, get_local_debug_decl): New.
14384         (convert_local_omp_clauses): New.
14385         (finalize_nesting_tree_1): Add debug_var_chain to toplevel block.
14386         (walk_body): Split out of walk_function.
14387         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): New.
14388         (convert_nonlocal_reference): Handle omp statements.
14389         (convert_local_reference): Likewise.
14390         (unnest_nesting_tree_1): Split out of finalize_nesting_tree_1.
14391         (unnest_nesting_tree): New.
14392         (lower_nested_functions): Call it.
14393         (insert_field_into_struct): Make extern.
14394         (struct walk_stmt_info): Move to tree-gimple.h.
14395         (walk_stmts): Make extern.
14396         * omp-builtins.def: New file.
14397         * tree-iterator.c (expr_only): Clarify comment.
14398         * c-common.h (pushdecl_top_level, pushdecl,
14399         build_modify_expr, build_indirect_ref,
14400         c_finish_omp_master, c_finish_omp_critical,
14401         c_finish_omp_ordered, c_finish_omp_barrier,
14402         c_finish_omp_atomic, c_finish_omp_flush,
14403         c_finish_omp_for, c_split_parallel_clauses,
14404         omp_clause_default_kind, c_omp_sharing_predetermined,
14405         c_omp_remap_decl): Declare.
14406         * Makefile.in (BUILTINS_DEF): Add omp-builtins.def.
14407         (OBJS-common): Add omp-low.o.
14408         (c-omp.o, omp-low.o): Add.
14409         (gimplify.o): Add dependency on $(OPTABS_H).
14410         (GTFILES): Add omp-low.c.
14411         (gt-stringpool.h): Add.
14412         * tree-cfg.c (set_bb_for_stmt): Do not update the
14413         block-to-labels map if we are currently expanding to RTL.
14414         (tree_node_can_be_shared): Remove unnecessary CONSTANT_CLASS_P
14415         checks.
14416         Handle IDENTIFIER_NODE.
14417         (tree_verify_flow_info): Do not ICE when emitting error
14418         messages about invalid labels.
14419         (dump_function_to_file): Reset CFUN before emitting the body
14420         of the function.
14421         (debug_function): New.
14422         * passes.c (init_optimization_passes): Schedule
14423         pass_lower_omp.
14424         * langhooks-def.h (lhd_omp_predetermined_sharing,
14425         lhd_omp_assignment, lhd_omp_firstprivatize_type_sizes):
14426         Declare.
14427         (LANG_HOOKS_OMP_FIRSTPRIVATIZE_TYPE_SIZES): Define.
14428         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
14429         (LANG_HOOKS_OMP_PRIVATIZE_BY_REFERENCE,
14430         LANG_HOOKS_OMP_PREDETERMINED_SHARING,
14431         LANG_HOOKS_OMP_DISREGARD_VALUE_EXPR,
14432         LANG_HOOKS_OMP_PRIVATE_DEBUG_CLAUSE,
14433         LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR,
14434         LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
14435         LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP,
14436         LANG_HOOKS_OMP_CLAUSE_DTOR): Define.
14437         (LANG_HOOK_DECLS): Use them.
14438
14439 2006-01-18  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
14440             Richard Henderson  <rth@redhat.com>
14441             Jakub Jelinek  <jakub@redhat.com>
14442             Diego Novillo  <dnovillo@redhat.com>
14443
14444         * c-parser.c (pragma_omp_clause): Define.
14445         (c_parser_declaration_or_fndef): Document OpenMP syntax.
14446         (c_parser_compound_statement): Likewise.
14447         (c_parser_statement): Likewise.
14448         (c_parser_pragma): Handle omp pragmas.
14449         (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
14450         OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK): Define.
14451         (c_parser_omp_clause_name, check_no_duplicate_clause,
14452         c_parser_omp_variable_list,
14453         c_parser_omp_var_list_parens, c_parser_omp_clause_copyin,
14454         c_parser_omp_clause_copyprivate,
14455         c_parser_omp_clause_default,
14456         c_parser_omp_clause_firstprivate, c_parser_omp_clause_if,
14457         c_parser_omp_clause_lastprivate,
14458         c_parser_omp_clause_nowait,
14459         c_parser_omp_clause_num_threads,
14460         c_parser_omp_clause_ordered, c_parser_omp_clause_private,
14461         c_parser_omp_clause_reduction,
14462         c_parser_omp_clause_schedule, c_parser_omp_clause_shared,
14463         c_parser_omp_all_clauses, c_parser_omp_structured_block,
14464         c_parser_omp_atomic, c_parser_omp_barrier,
14465         c_parser_omp_critical, c_parser_omp_flush,
14466         c_parser_omp_for_loop, c_parser_omp_for,
14467         c_parser_omp_master, c_parser_omp_ordered,
14468         c_parser_omp_sections_scope, c_parser_omp_sections,
14469         c_parser_omp_parallel, c_parser_omp_single,
14470         c_parser_omp_construct, c_parser_omp_threadprivate): New.
14471         * c-pragma.c (init_pragma): Do omp pragma registration here.
14472         * c.opt (fopenmp): New flag.
14473
14474 2006-01-18  Eric Christopher  <echristo@apple.com>
14475
14476         * gcc.c (GOMP_SELF_SPECS): Bracket in #ifndef/#endif.
14477         * config/darwin.h (GOMP_SELF_SPECS): Define.
14478
14479 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
14480
14481         * rtl.h: Remove the prototype for reg_alloc.
14482
14483 2006-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14484
14485         PR target/25731
14486         * config.gcc (hppa*-*-linux*, hppa[12]*-*-hpux10*, hppa*64*-*-hpux11*,
14487         hppa[12]*-*-hpux11*): Override default shared libgcc version for both
14488         sjlj and dwarf2 exception handling.
14489         * pa/t-hpux-shlib (SHLIB_SOVERSION): New make variable.
14490         Rework to allow overriding SHLIB_EXT and SHLIB_SOVERSION.
14491         * pa/pa.c (function_value): Treat complex and vector types as
14492         aggregates.
14493         (function_arg): Likewise.  Only pass scalar floats in the floating
14494         point argument registers.
14495         * pa/t-slibgcc-dwarf-ver: New file.
14496         * pa/t-slibgcc-sjlj-ver: New file.
14497         * pa/t-slibgcc-elf-ver: Delete file.
14498
14499 2006-01-19  Alan Modra  <amodra@bigpond.net.au>
14500
14501         * config/rs6000/rs6000.c (rs6000_assemble_integer): Correct
14502         unlikely_test_section_p test.
14503
14504 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
14505
14506         * mode-switching.c (optimize_mode_switching): Make it static.
14507         * basic-block.h: Remove the prototype for
14508         optimize_mode_switching.
14509
14510         * modulo-sched.c (sms_schedule): Make it static.
14511         * rtl.h: Remove the prototype for sms_schedule.
14512
14513         * postreload-gcse.c (gcse_after_reload_main): Make it static.
14514         * rtl.h: Remove the prototype for gcse_after_reload_main.
14515
14516         * reg-stack.c (reg_to_stack): Make it static.
14517         * rtl.h: Remove the prototype for reg_to_stack.
14518
14519         * regrename.c (regrename_optimize, copyprop_hardreg_forward):
14520         Make them static.
14521         * rtl.h: Remove the prototypes for regrename_optimize and
14522         copyprop_hardreg_forward.
14523
14524 2006-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14525
14526         * config/alpha/alpha.c (alpha_split_tfmode_pair): Rename into
14527         alpha_split_tmode_pair.  Add 'mode' and 'fixup_overlap' arguments.
14528         Test against the appropriate null constant for the mode.
14529         If 'fixup_overlap' is true, swap the operands if they overlap.
14530         (alpha_split_tfmode_frobsign): Adjust call to alpha_split_tfmode_pair.
14531         * config/alpha/alpha-protos.h (alpha_split_tfmode_pair): Rename into
14532         alpha_split_tmode_pair and adjust for above change.
14533         * config/alpha/alpha.md (movtf_internal): Adjust call to
14534         alpha_split_tfmode_pair and rely on it to swap the operands.
14535         (movti_internal): New insn and post-reload splitter.
14536         (movti): New expander.
14537
14538 2006-01-18  Philippe De Muyter  <phdm@macqel.be>
14539
14540         * config/m68k/m68k.md (*addsi3_5200): Allow addq/subq to memory
14541         operands.
14542
14543 2006-01-18  Kazu Hirata  <kazu@codesourcery.com>
14544
14545         * rtlanal.c (global_reg_mentioned_p_1,
14546         global_reg_mentioned_p): Remove.
14547         * rtl.h: Remove the prototype for global_reg_mentioned_p.
14548
14549         * flow.c (initialize_uninitialized_subregs): Make it static.
14550         * rtl.h: Remove the prototype for
14551         initialize_uninitialized_subregs.
14552
14553         * function.c (instantiate_virtual_regs): Make it static.
14554         * function.h: Remove the prototype for
14555         instantiate_virtual_regs.
14556
14557         * regmove.c (regmove_optimize, combine_stack_adjustments):
14558         Make them static.
14559         * rtl.h: Remove the prototypes for regmove_optimize and
14560         combine_stack_adjustments.
14561
14562 2006-01-17  Roger Sayle  <roger@eyesopen.com>
14563
14564         * config/i386/i386.c (COSTS_N_BYTES): New macro.
14565         (size_cost): Encode costs in bytes so that a reg-reg addition is
14566         equivalent to COSTS_N_INSNS(1).
14567         (override_options): Use the size_cost.branch_cost as the default
14568         ix86_branch_cost when optimizing for size.
14569
14570 2006-01-18  Ben Elliston  <bje@au.ibm.com>
14571
14572         * Makefile.in (D32PBIT_FUNCS): New.
14573         (D64PBIT_FUNCS, D128PBIT_FUNCS): Likewise.
14574         (libgcc.mk): Set D32PBIT, D64PBIT, D128PBIT, D32PBIT_FUNCS,
14575         D64PBIT_FUNCS and D128PBIT_FUNCS.
14576         (LIBGCC_DEPS): Include $(D32PBIT), $(D64PBIT), $(D128PBIT).
14577         * mklibgcc.in Bring in the DFP support code if D32PBIT, D64PBIT or
14578         D128PBIT are set.
14579         (decnumber_dep): Define.
14580         * doc/libgcc.texi (Decimal float library routines): New node.
14581         * config/dfp-bit.h, config/dfp-bit.c: New files.
14582
14583 2006-01-18  Ben Elliston  <bje@au.ibm.com>
14584
14585         * expr.c (emit_move_change_mode): Always adjust addresses, not
14586         just during reload.  Copy replacements only during reload.
14587         (emit_move_insn_1): Move MODE_DECIMAL_FLOAT modes by invoking
14588         emit_move_via_integer.
14589
14590 2006-01-17  Shantonu Sen  <ssen@opendarwin.org>
14591
14592         * Makefile.in (check-%, check-consistency): Use $${srcdir}
14593         instead of $(srcdir) and ${srcdir}.
14594
14595 2006-01-17  Richard Earnshaw  <rearnsha@arm.com>
14596
14597         PR target/592
14598         PR middle-end/11135
14599         * arm.h (struct machine_function): Add pic_reg.
14600         * arm.c (arm_pic_register): Make unsigned.
14601         (arm_override_options): Only set arm_pic_register if
14602         TARGET_SINGLE_PIC_BASE.
14603         (use_return_insn): Only test for a pic register if it is fixed.
14604         (arm_compute_save_reg0_reg12_mask): Likewise.
14605         (thumb_compute_save_reg_mask): Likewise.
14606         (legitimate_pic_operand): Factor out some known invariants.
14607         (legitimize_pic_address): If we don't have a fixed pic register,
14608         then set up a pseudo in the function entry sequence.  Handle the
14609         pic base being in a pseudo.
14610         (arm_load_pic_register): Handle the pic register being in a pseudo.
14611         (arm_expand_prologue): Only set up the pic register if it is fixed.
14612         (thumb_expand_prologue): Likewise.
14613         * arm.md (pic_load_addr_based): Handle the pic base being a pseudo.
14614         (pic_load_addr_based_insn): Likewise.
14615         (builtin_setjmp_receiver): Don't restore the pic base if it isn't
14616         fixed.
14617
14618 2006-01-18  Ben Elliston  <bje@au.ibm.com>
14619
14620         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Reject
14621         decimal float modes for all floating point registers.
14622
14623         * config/rs6000/predicates.md (reg_or_mem_operand): Pair up
14624         match_code "mem" with match_test "macho_lo_sum_memory_operand".
14625
14626 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
14627
14628         PR c/25682
14629         * c-typeck.c (build_unary_op): Fold offsetof-like expressions
14630         even when the pointer is not NULL.
14631
14632 2006-01-16  Ian Lance Taylor  <ian@airs.com>
14633
14634         * common.opt (ftoplevel-reorder): New option.
14635         * cgraph.c (cgraph_asm_nodes): New global variable.
14636         (cgraph_asm_last_node): New static variable.
14637         (cgraph_order): New global variable.
14638         (cgraph_create_node): Set new order field.
14639         (cgraph_varpool_node): Likewise.
14640         (decide_is_variable_needed): Return true if not
14641         flag_toplevel_reorder.
14642         (cgraph_add_asm_node): New function.
14643         * cgraph.h (struct cgraph_node): Add order field.
14644         (struct cgraph_varpool_node): Add order field.
14645         (struct cgraph_asm_node): Define.
14646         (cgraph_asm_nodes, cgraph_order): Declare.
14647         (cgraph_add_asm_node): Declare.
14648         * cgraphunit.c (cgraph_varpool_assemble_decl): New static
14649         function.
14650         (cgraph_varpool_assemble_pending_decls): Call it.
14651         (cgraph_output_pending_asms): New static function.
14652         (cgraph_finalize_compilation_unit): Call it.
14653         (struct cgraph_order_sort): Define.
14654         (cgraph_output_in_order): New static function.
14655         (cgraph_optimize): Call cgraph_output_pending_asms.  Add code for
14656         !flag_toplevel_reorder case.
14657         * c-parser.c: Include "cgraph.h".
14658         (c_parser_asm_definition): Call cgraph_add_asm_node rather than
14659         assemble_asm.
14660         * Makefile.in (CRTSTUFF_CFLAGS): Use -fno-toplevel-reorder rather
14661         than -fno-unit-at-a-time.
14662         * doc/invoke.texi (Option Summary): Mention
14663         -fno-toplevel-reorder.
14664         (Optimize Options): Document -fno-toplevel-reorder.  Mention it in
14665         -funit-at-a-time documentation.
14666
14667 2006-01-17  Hans-Peter Nilsson  <hp@axis.com>
14668             Kazu Hirata  <kazu@codesourcery.com>
14669
14670         * Makefile.in (FUNCTION_H, LAMBDA_H): Use $(TREE_H), not tree.h.
14671
14672 2006-01-17  Kazu Hirata  <kazu@codesourcery.com>
14673
14674         * Makefile.in (FUNCTION_H): New.  Use it instead of
14675         function.h throughout the file.
14676         * function.h: Include tree.h.
14677
14678 2006-01-17  Ben Elliston  <bje@au.ibm.com>
14679
14680         * recog.c: Separate some functions with whitespace.
14681
14682 2006-01-16  Richard Henderson  <rth@redhat.com>
14683
14684         Merge from gomp branch:
14685         * Makefile.in (TREE_INLINE_H): New.  Use it as needed.
14686         * tree-inline.h (struct copy_body_data): Move from tree-inline.c
14687         and rename from struct inline_data.  Rename callee* to dst*;
14688         caller* to src*; add copy_decl hook, transform_call_graph_edges,
14689         transform_new_cfg, transform_return_to_modify, and
14690         transform_lang_insert_block flags; remove cloning_p, versioning_p,
14691         update_clones_p.
14692         (copy_body_r, insert_decl_map, remap_decl, remap_type): Declare.
14693         (copy_decl_for_dup): Remove.
14694         * tree-inline.c (struct inline_data): Move to header.
14695         (insert_decl_map): Export.
14696         (remap_decl): Update for member name changes.  Use copy_decl hook.
14697         Allow for replacement to be a non-decl.  Remove dead code.
14698         (remap_type_1): Check for existing mapping.
14699         (remap_type): Export.
14700         (remap_decls): Update for member name changes.
14701         (remap_block, copy_bb, copy_cfg_body, copy_generic_body): Likewise.
14702         (copy_body, setup_one_parameter, declare_return_variable): Likewise.
14703         (expand_call_inline, optimize_inline_calls, clone_body): Likewise.
14704         (copy_tree_r, mark_local_for_remap_r, unsave_expr_now): Likewise.
14705         (tree_function_versioning, build_duplicate_type): Likewise.
14706         (copy_body_r): Likewise.  Export.
14707         (copy_decl_for_dup): Split into ...
14708         (copy_decl_for_dup_finish, copy_decl_to_var,
14709         copy_decl_no_change, copy_decl_maybe_to_var): ... these.
14710         (replace_ref_tree, inlining_p): Remove.
14711
14712 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14713
14714         * ifcvt.c (if_convert): Make it static.
14715         * rtl.h: Remove the prototype for if_convert.
14716
14717         * local-alloc.c (local_alloc): Make it static.
14718         * rtl.h: Remove the prototype for local_alloc.
14719
14720         * loop.c (loop_optimize): Make it static.
14721         * cfgloop.h: Remove the prototype for loop_optimize.
14722         * rtl.h: Likewise.
14723
14724 2006-01-16  DJ Delorie  <dj@redhat.com>
14725
14726         * reload.c (reg_overlap_mentioned_for_reload_p): Handle subregs of
14727         mems.
14728
14729 2006-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14730
14731         * pa.md: Disparage copies between general and floating-point registers
14732         in 32-bit move patterns.
14733
14734 2006-01-16  H.J. Lu  <hongjiu.lu@intel.com>
14735
14736         PR testsuite/25741
14737         * Makefile.in (check-%): Depend on site.exp instead of
14738         $(TESTSUITEDIR)/site.exp. Run "runtest" in separate language
14739         directories.
14740
14741 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14742
14743         * global.c (global_alloc): Make it static.
14744         * rtl.h: Remove the prototype for global_alloc.
14745
14746 2006-01-16  Richard Guenther  <rguenther@suse.de>
14747
14748         * tree-ssa-alias.c (struct used_part): Add write_only field.
14749         (get_or_create_used_part_for): Initialize it to true.
14750         (create_overlap_variables_for): Don't create structure variables
14751         for structures that only are written to.
14752         (find_used_portions): Handle MODIFY_EXPR to track whether a
14753         structure is only written to.
14754
14755 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14756
14757         * bb-reorder.c (partition_hot_cold_basic_blocks): Make it
14758         static.
14759         * basic-block.h: Remove the prototype for
14760         partition_hot_cold_basic_blocks.
14761
14762 2006-01-16  Rafael Ãvila de EspÃ�­ndola <rafael.espindola@gmail.com>
14763
14764         * cppspec.c (lang_specific_spec_functions): Remove.
14765         * gcc.c (lookup_spec_function): Use static_spec_functions directly.
14766         * gcc.h (lang_specific_spec_functions): Remove.
14767         * gccspec.c (lang_specific_spec_functions): Remove.
14768
14769 2006-01-16  Paolo Bonzini  <bonzini@gnu.org>
14770
14771         * combine.c (record_value_for_reg): Invalidate registers
14772         if INSN is null.
14773         (record_dead_and_set_regs_1): Likewise, by passing them to
14774         record_value_for_reg.
14775         (record_dead_and_set_regs): Invalidate stores made by a
14776         call.  We do not combine across a call, but we still
14777         relied on equivalences.
14778
14779 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
14780
14781         * tree-vrp.c (extract_range_from_binary_expr): Cope with
14782         vrp_int_const_binop returning non-constant nodes.
14783
14784 2006-01-16  Paul Brook  <paul@codesourcery.com>
14785
14786         * config/m68k/m68k.c (output_move_const_into_data_reg):
14787         Output correct mnemonic for mvz and mvs.
14788
14789 2006-01-16  Gabor Loki  <loki@gcc.gnu.org>
14790
14791         * rtl-factoring.c: Add sequence abstraction algorithm.
14792         * cfgcleanup.c (outgoing_edges_match): Extra checks.
14793         (try_crossjump_to_edge): Avoid deleting preserve label when redirecting
14794         ABNORMAL edges.
14795         (block_has_preserve_label): New function.
14796         * common.opt: Register new pass.
14797         * Makefile.in: Ditto.
14798         * passes.c: Ditto.
14799         * timevar.def: Ditto.
14800         * tree-pass.h: Ditto.
14801         * emit-rtl.c (make_jump_insn_raw): Remove forward decl.
14802         * rtl.h (make_jump_insn_raw): Add forward decl.
14803         * doc/invoke.texi: Add documentation for -frtl-abstract-sequences.
14804
14805 2006-01-16  Eric Botcazou  <ebotcazou@adacore.com>
14806             Roger Sayle  <roger@eyesopen.com>
14807
14808         * fold-const.c (fold_minmax): New static function.
14809         (fold_binary) <MIN_EXPR>: Call it.
14810         <MAX_EXPR>: Likewise.
14811         * stor-layout.c (place_field): Use DECL_SIZE consistently
14812         in the computation of the new record size.
14813
14814 2006-01-16  Kazu Hirata  <kazu@codesourcery.com>
14815
14816         * cse.c (cse_condition_code_reg): Make it static.
14817         * rtl.h: Remove the prototype for cse_condition_code_reg.
14818
14819         * combine.c (combine_instructions): Make it static.
14820         * rtl.h: Remove the prototype for combine_instructions.
14821
14822 2006-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14823
14824         PR target/25168
14825         * tree.c (get_file_function_name_long): Concatenate the first global
14826         object name with a string derived from the input filename of the object
14827         for type "F".
14828
14829 2006-01-16  Ben Elliston  <bje@au.ibm.com>
14830
14831         * config/i386/winnt-stubs.c: Update FSF address.
14832         * config/xtensa/ieee754-df.S: Ditto.
14833         * config/xtensa/ieee754-sf.S: Ditto.
14834
14835 2006-01-14  Ian Lance Taylor  <ian@airs.com>
14836
14837         * ifcvt.c (noce_init_if_info): New static function, broken out of
14838         noce_process_if_block.
14839         (noce_process_if_block): Call noce_init_if_info.
14840         (check_cond_move_block): New static function.
14841         (cond_move_process_if_block): New static function.
14842         (process_if_block): Call cond_move_process_if_block.
14843
14844 2006-01-15  Kazu Hirata  <kazu@codesourcery.com>
14845
14846         * cselib.c (hash_table): Rename to cselib_hash_table.
14847         (cselib_clear_table, discard_useless_values,
14848         remove_useless_values, cselib_lookup_mem, cselib_lookup,
14849         cselib_init, cselib_finish): Adjust uses of hash_table.
14850
14851 2006-01-14  Kazu Hirata  <kazu@codesourcery.com>
14852
14853         PR tree-optimization/25485
14854         * tree-vrp.c (extract_range_from_binary_expr): Handle cases
14855         where one of the operands of TRUTH_AND_EXPR and TRUTH_OR_EXPR
14856         is known to be false and true, respectively.
14857
14858 2006-01-14  Richard Guenther  <rguenther@suse.de>
14859
14860         PR tree-optimization/22548
14861         PR tree-optimization/22555
14862         PR tree-optimization/22501
14863         * Makefile.in (tree-ssa-structalias.o): Depend on $(PARAMS_H).
14864         * params.def (salias-max-array-elements): New parameter.
14865         * params.h (SALIAS_MAX_ARRAY_ELEMENTS): Define.
14866         * doc/invoke.texi (salias-max-array-elements): Document.
14867         * tree-flow-inline.h (var_can_have_subvars): We also handle
14868         arrays now.
14869         * tree-ssa-alias.c (find_used_portions): Handle ARRAY_REF like
14870         COMPONENT_REF.
14871         * tree-ssa-structalias.c (params.h): Include.
14872         (push_fields_onto_fieldstack): Handle ARRAY_TYPE.
14873         (find_func_aliases): Handle multiple constraints from ARRAY_REF.
14874         (get_constraint_for): For ADDR_EXPR operating on something
14875         containing an ARRAY_REF, add all subvars to the solution.
14876         (handle_ptr_arith): Handle ARRAY_TYPE like RECORD_TYPE types.
14877         * tree-ssa-operands.c (parse_ssa_operands): Handle ARRAY_REF
14878         for creating MUST_DEFs.
14879         (get_expr_operands): Treat ARRAY_REF like COMPONENT_REF wrt subvars.
14880
14881 2006-01-14  Zdenek Dvorak <dvorakz@suse.cz>
14882
14883         * tree-ssa-loop-niter.c (number_of_iterations_cond): Split into several
14884         functions.
14885         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
14886         assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
14887         number_of_iterations_le): New functions.
14888         (number_of_iterations_special): Removed.
14889         (number_of_iterations_exit): Do not use number_of_iterations_special.
14890         * tree.c (unsigned_type_for): Always return integer type.
14891
14892 2006-01-14  Steven Bosscher  <stevenb.gcc@gmail.com>
14893         Richard Guenther  <rguenther@suse.de>
14894
14895         PR rtl-optimization/24257
14896         * gcse.c (find_moveable_store): Only consider a store movable
14897         when the SET_SRC of the insn can be assigned to a register.
14898
14899 2006-01-14  Ian Lance Taylor  <ian@airs.com>
14900
14901         * tree.c (tree_not_class_check_failed): New function.
14902         * tree.h (NON_TYPE_CHECK): Call tree_not_class_check_failed.
14903         (tree_not_class_check_failed): Declare.
14904
14905 2006-01-13  Ian Lance Taylor  <ian@airs.com>
14906
14907         * reload1.c (do_output_reload): Add assertion rejecting a
14908         CALL_INSN.
14909
14910 2006-01-13  Adam Nemet  <anemet@caviumnetworks.com>
14911
14912         * combine.c (struct reg_stat): Add new fields truncation_label and
14913         truncated_to_mode.
14914         (record_value_for_reg): Reset truncated_to_mode.
14915         (record_truncated_value): New function.
14916         (check_promoted_subreg): Call it.  Rename to check_conversions.
14917         (combine_instructions): Rename check_promoted_subreg to
14918         check_conversions.
14919         (reg_truncated_to_mode): New function.
14920         (make_extraction): Use it.  Check TRULY_NOOP_TRUNCATION.
14921         (gen_lowpart_or_truncate): New function.
14922         (force_to_mode): Use it instead of gen_lowpart.
14923
14924 2006-01-13  Diego Novillo  <dnovillo@redhat.com>
14925
14926         * tree-ssa-alias.c (add_type_alias): Fix typo.  Test whether
14927         VAR is a tag, not its type tag.
14928
14929 2006-01-13  Alexandre Oliva  <aoliva@redhat.com>
14930
14931         * config/i386/sse.md (*vec_extractv2di_1_sse2): Reorder
14932         alternatives to match style of other entries.
14933         (*vec_extractv2di_1_sse): Likewise.  Fix mode attr.
14934
14935 2006-01-13  Daniel Berlin  <dberlin@dberlin.org>
14936
14937         PR tree-optimization/25771
14938         * tree-ssa-pre.c (insert_extra_phis): Don't insert merges of abnormal
14939         SSA_NAMES.
14940
14941 2006-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
14942
14943         PR tree-opt/24365
14944         * tree-inline.c (declare_return_variable): If the return variable
14945         was marked as a non gimple complex, set the return slot variable
14946         to be a non gimple comple variable.
14947
14948 2006-01-13  Richard Guenther  <rguenther@suse.de>
14949
14950         * builtins.c (expand_builtin_sincos): New function.
14951         (expand_builtin_mathfn_3): Remove dead code, sin and cos
14952         do not set errno.
14953         (expand_builtin): Expand sincos using expand_builtin_sincos.
14954
14955 2006-01-12  DJ Delorie  <dj@redhat.com>
14956
14957         * config/m32c/shift.md: Rewrite: Allow arbitrary operands for
14958         shift counts, separate SI shifts for m32c vs m16c, pass shift type
14959         so that constant shifts can be split.
14960         * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Add In6.
14961         (m32c_valid_pointer_mode): Make static.
14962         (shift_gen_func_for): New.
14963         (m32c_prepare_shift): Use it.  Split large const shifts into
14964         multiple shifts.
14965         * config/m32c/predicates.md (shiftcount_operand): Allow more
14966         general operands.
14967         (longshiftcount_operand): New.
14968         * doc/md.texi (Machine Constraints): Document In6.
14969
14970 2006-01-13  Ben Elliston  <bje@au.ibm.com>
14971
14972         * doc/tm.texi (Data Output): Add REAL_VALUE_TO_TARGET_DECIMAL32,
14973         REAL_VALUE_TO_TARGET_DECIMAL64 and REAL_VALUE_TO_TARGET_DECIMAL128
14974         documentation.
14975
14976 2006-01-12  Daniel Berlin  <dberlin@dberlin.org>
14977
14978         * tree-ssa-operands.c (add_call_clobber_ops): Use SFT_PARENT_VAR
14979         to try to avoid clobbering pieces of structures when we know
14980         something about the whole structure.
14981         * tree-ssa-alias.c (create_sft): Set SFT_PARENT_VAR
14982
14983 2006-01-13  Ben Elliston  <bje@au.ibm.com>
14984
14985         * doc/rtl.texi (Insns): Remove statement that libcalls cannot
14986         return in memory, as this is no limitation is no longer present.
14987
14988 2006-01-12  DJ Delorie  <dj@redhat.com>
14989
14990         * config/m32c/addsub.md (addhi3): Add two more alternatives, for
14991         mova with fb, and for fb+0 -> An.
14992
14993         * config/m32c/mov.md (peephole2): Fix enabling logic.
14994
14995         * config/m32c/m32c.h (CTOR_LIST_BEGIN, CTOR_LIST_END,
14996         DTOR_LIST_BEGIN, DTOR_LIST_END, CTORS_SECTION_ASM_OP,
14997         DTORS_SECTION_ASM_OP, INIT_ARRAY_SECTION_ASM_OP,
14998         FINI_ARRAY_SECTION_ASM_OP): Define.
14999
15000         * config/m32c/m32c.c (m32c_legitimize_address): Remove temporary
15001         variable.
15002         (m32c_legitimize_reload_address): New logic to reload FB to An.
15003         (m32c_output_reg_push): Add newline.
15004         (m32c_output_reg_pop): Likewise.
15005
15006 2006-01-12  Ulrich Weigand  <uweigand@de.ibm.com>
15007
15008         * struct-equiv.c (find_dying_inputs): Fix off-by-one bug.
15009
15010 2006-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
15011
15012         * config/i386/darwin.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
15013
15014 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
15015
15016         * config/sh/predicates.md (sh_rep_vec): Add parallel to
15017         match_code.
15018
15019 2006-01-11  Ben Elliston  <bje@au.ibm.com>
15020
15021         * rtlanal.c (find_reg_note): Assert insn is not null.
15022
15023 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
15024
15025         * df-scan.c (df_hard_reg_init): Move declaration of i outside
15026         ifdef.
15027
15028 2006-01-11  Jeff Law  <law@redhat.com>
15029
15030         * tree-ssa-threadupdate.c (threaded_edges): New VEC to
15031         hold edge pairs.
15032         (mark_threaded_blocks, register_jump_thread): New functions.
15033         (thread_through_all_blocks): Remove unwanted argument.  No
15034         longer rely on e->aux to communicate thread target info.
15035         Call mark_threaded_blocks.  Release the threaded_blocks
15036         bitmap and threaded_edges vector when complete.
15037         * tree-ssa-dom.c (struct edge_info): Remove redirection_target field.
15038         (threaded_blocks): Remove.
15039         (tree_ssa_dominator_optimize): Remove initialization and
15040         finalization of threaded_blocks.  Simplify call to
15041         thread_through_all_blocks.
15042         (thread_across_edge): Call register_jump_thread rather than
15043         storing thread information into e->aux.
15044         (free_all_edge_infos): Simplify now that e->aux is no longer
15045         used to communicate with thread_through_all_blocks.
15046         * tree-flow.h (thread_through_all_blocks): Update prototype.
15047         (register_jump_thread): Prototype.
15048
15049 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
15050
15051         * df-core.c (df_compact_blocks, df_bb_replace): Use
15052         SET_BASIC_BLOCK instead of BASIC_BLOCK.
15053
15054 2006-01-11  Richard Guenther  <rguenther@suse.de>
15055
15056         PR tree-optimization/25734
15057         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
15058         stop propagation after successful propagation to the LHS.
15059
15060 2006-01-11  Kazu Hirata  <kazu@codesourcery.com>
15061
15062         * basic-block.h (control_flow_graph): Change the type of
15063         x_basic_block_info to VEC(basic_block,gc) *.
15064         (BASIC_BLOCK_FOR_FUNCTION, BASIC_BLOCK): Adjust the uses of
15065         basic_block_info.
15066         (SET_BASIC_BLOCK): New.
15067         * cfg.c (compact_blocks, expunge_block): Use SET_BASIC_BLOCK
15068         instead of BASIC_BLOCK when assigning to BASIC_BLOCK.
15069         * cfgbuild.c (find_basic_blocks): Likewise.
15070         * cfglayout.c (fixup_reorder_chain): Likewise.
15071         * cfgrtl.c (create_basic_block_structure,
15072         rtl_create_basic_block): Likewise.
15073         * ifcvt.c (find_if_case_1): Likewise.
15074         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb):
15075         Likewise.
15076
15077 2006-01-11  Kenneth Zadeck <zadeck@naturalbridge.com>
15078
15079         * Makefile.in: Removed rotted odf.c entry.
15080
15081 2006-01-11  Hans-Peter Nilsson  <hp@axis.com>
15082
15083         PR target/25706
15084         * config/cris/cris.md ("*extopqihi_side", "*extop<mode>si_side")
15085         ("*extop<mode>si_swap_side_biap", "*extop<mode>si_swap_side",
15086         ("*extopqihi", "*extop<mode>si", "*extop<mode>si_swap"): Use %E
15087         output pattern modifier, not %e.
15088         * config/cris/cris.c (cris_op_str): Update comment about pattern
15089         modifier.
15090         (cris_print_operand) <case 'e'>: Clear cris_output_insn_is_bound
15091         before falling through into...
15092         <case 'E'>: Redefined from old 'e' case.
15093
15094 2006-01-11  Jan Hubicka  <jh@suse.cz>
15095
15096         PR target/25042
15097         * i386.c (ix86_init_mmx_sse_builtins): Do not delcare float128
15098
15099 2006-01-11  Jan Hubicka  <jh@suse.cz>
15100
15101         * i386.h (TARGET_DECOMPOSE_LEA): Kill.
15102         * i386.c (x86_decompose_lea): Kill.
15103         (ix86_rtx_costs): Kill.
15104
15105 2006-01-11  Jan Hubicka  <jh@suse.cz>
15106
15107         * cgraph.c (cgraph_insert_node_to_hashtable): New function.
15108         * cgraph.h (cgraph_node): Add inline_decl.
15109         (cgraph_insert_node_to_hashtable): Declare.
15110         (save_inline_function_body): Declare.
15111         * cgraphunit.c (verify_cgraph_node): Inline edges might point to inline
15112         clones.
15113         (cgraph_preserve_function_body_p): Do not presrve when dump is enabled.
15114         (cgraph_function_versioning): Update call of tree_function_versioning.
15115         (save_inline_function_body): New function.
15116         * function.h (struct function): Kill saved_eh, saved_cfg, saved_args,
15117         saved_static_chain_decl, saved_blocks and saved-unexpanded_var_list.
15118         * ipa-inline.c (cgraph_mark_inline_edge): Look for inline clones.
15119         (cgraph_default_inline_p): Likewise.
15120         (cgraph_decide_inlining_incrementally): Likewise.
15121         * tree-inline.c (inline_data): Kill saving_p add update_clones_p.
15122         (copy_bb): Kill saving; do updating of clones.
15123         (copy_cfg_body): Kill saving.
15124         (initialize_inlined-parameters): Likewise.
15125         (expand_call_inline): Likewise.
15126         (save_body): Kill.
15127         (tree_function_versioning): New parameter "update_clones".
15128         (inlining_p): Kill saving.
15129         * tree-inline.h (tree_function_versioning): Update prototype.
15130         * tree-optimize.c (tree_rest_of_compilation): Use clonning instead of
15131         saving.
15132
15133 2006-01-11  Ian Lance Taylor <ian@airs.com>
15134
15135         * combine.c (struct undo): Remove is_int.  Enumify types of undos.
15136         Allow undoing set of machine mode.
15137         (do_SUBST): Use enums instead of is_int.
15138         (do_SUBST_MODE): New function.
15139         (SUBST_MODE): New macro.
15140         (try_combine): Use SUBST_MODE/PUT_MODE instead of generating a new
15141         reg and trying to replace reg_regno_rtx with a new register.
15142         (undo_all): Use new enums, handle undoing a PUT_MODE change.
15143         (simplify_set): Use SUBST_MODE.
15144         (distribute_notes): Remove code that tried to update reg notes
15145         for regno_reg_rtx changes.
15146
15147 2006-01-11  Paolo Bonzini  <bonzini@gnu.org>
15148
15149         PR tree-optimization/23109
15150         PR tree-optimization/23948
15151         PR tree-optimization/24123
15152
15153         * Makefile.in (tree-ssa-math-opts.o): Adjust dependencies.
15154         * tree-cfg.c (single_noncomplex_succ): New.
15155         * tree-flow.h (single_noncomplex_succ): Declare it.
15156         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
15157         * tree-ssa-math-opts.c (enum place_reciprocal): Remove.
15158         (struct occurrence, occ_head, occ_pool, is_divide_by, compute_merit,
15159         insert_bb, register_division_in, insert_reciprocals,
15160         replace_reciprocal, free_bb): New.
15161         (execute_cse_reciprocals_1): Rewritten.
15162         (execute_cse_reciprocals): Adjust calls to execute_cse_reciprocals_1.
15163         Do not commit any edge insertion.  Always compute dominators and
15164         create the allocation pool.
15165         * target-def.h (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): New.
15166         * target.h (struct gcc_target): Add min_divistions_for_recip_mul.
15167         * targhooks.c (default_min_divistions_for_recip_mul): New.
15168         * targhooks.h (default_min_divistions_for_recip_mul): New prototype.
15169         * passes.c (init_optimization_passes): Run recip after tree loop
15170         optimizations.
15171         * doc/tm.texi (Misc): Document TARGET_MIN_DIVISIONS_FOR_RECIP_MUL.
15172
15173 2006-01-11  Danny Berlin <dberlin@dberlin.org>
15174             Kenneth Zadeck <zadeck@naturalbridge.com>
15175
15176         * df.h (DF_SCAN, DF_RU, DF_RD, DF_LR, DF_UR, DF_UREC, DF_CHAIN,
15177         DF_RI, DF_LAST_PROBLEM_PLUS1, DF_DU_CHAIN, DF_UD_CHAIN,
15178         DF_REF_TYPE_NAMES, DF_HARD_REGS, DF_EQUIV_NOTES, DF_SUBREGS,
15179         DF_SCAN_BB_INFO, DF_RU_BB_INFO, DF_RD_BB_INFO, DF_LR_BB_INFO,
15180         DF_UR_BB_INFO, DF_UREC_BB_INFO, DF_LIVE_IN, DF_LIVE_OUT,
15181         DF_RA_LIVE_IN, DF_RA_LIVE_OUT, DF_UPWARD_LIVE_IN,
15182         DF_UPWARD_LIVE_OUT, DF_REF_REAL_REG, DF_REF_REGNO,
15183         DF_REF_REAL_LOC, DF_REF_REG, DF_REF_LOC, DF_REF_BB, DF_REF_BBNO,
15184         DF_REF_INSN, DF_REF_INSN_UID, DF_REF_TYPE, DF_REF_CHAIN,
15185         DF_REF_ID, DF_REF_FLAGS, DF_REF_NEXT_REG, DF_REF_PREV_REG,
15186         DF_REF_NEXT_REF, DF_REF_DATA, DF_REF_REG_DEF_P, DF_REF_REG_USE_P,
15187         DF_REF_REG_MEM_STORE_P, DF_REF_REG_MEM_LOAD_P, DF_REF_REG_MEM_P,
15188         DF_DEFS_SIZE, DF_DEFS_GET, DF_DEFS_SET, DF_USES_SIZE, DF_USES_GET,
15189         DF_USES_SET, DF_REG_SIZE, DF_REG_DEF_GET, DF_REG_DEF_SET,
15190         DF_REG_USE_GET, DF_REG_USE_SET, DF_REGNO_FIRST_DEF,
15191         DF_REGNO_LAST_USE, DF_INSN_SIZE, DF_INSN_GET, DF_INSN_SET,
15192         DF_INSN_CONTAINS_ASM, DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES,
15193         DF_INSN_UID_GET, DF_INSN_UID_LUID, DF_INSN_UID_DEFS,
15194         DF_INSN_UID_USES, DF_SCAN_INITIAL, DF_SCAN_GLOBAL,
15195         DF_SCAN_POST_ALLOC): New macros.
15196         (df_flow_dir, df_ref_type, df_ref_flags, df_alloc_function,
15197         df_free_bb_function, df_local_compute_function, df_init_function,
15198         df_dataflow_function, df_confluence_function_0,
15199         df_confluence_function_n, df_transfer_function,
15200         df_finalizer_function, df_free_function, df_dump_problem_function,
15201         df_problem, dataflow, df_insn_info, df_reg_info, df_ref, df_link,
15202         df_ref_info, df, df_map, df_scan_bb_info, df_ru_bb_info,
15203         df_ru_bb_info, df_rd_bb_info, df_lr_bb_info, df_ur_bb_info,
15204         df_urec_bb_info, ) New types.
15205         (df_invalidated_by_call, df_all_hard_regs, df_state) New public
15206         variables.
15207         (df_init, df_add_problem, df_set_blocks, df_finish, df_analyze,
15208         df_analyze_simple_change_some_blocks,
15209         df_analyze_simple_change_one_block, df_compact_blocks,
15210         df_bb_replace, df_bb_regno_last_use_find,
15211         df_bb_regno_first_def_find, df_bb_regno_last_def_find,
15212         df_insn_regno_def_p, df_find_def, df_find_use,
15213         df_iterative_dataflow, df_dump, df_chain_dump, df_refs_chain_dump,
15214         df_regs_chain_dump, df_insn_debug, df_insn_debug_regno,
15215         df_regno_debug, df_ref_debug, debug_df_insn, debug_df_regno,
15216         debug_df_reg, debug_df_defno, debug_df_useno, debug_df_ref,
15217         debug_df_chain, df_get_dependent_problem, df_chain_create,
15218         df_chain_unlink, df_chain_copy, df_get_live_in, df_get_live_out,
15219         df_grow_bb_info, df_chain_dump, df_print_bb_index,
15220         df_ru_add_problem, df_ru_get_bb_info, df_rd_add_problem,
15221         df_rd_get_bb_info, df_lr_add_problem, df_lr_get_bb_info,
15222         df_ur_add_problem, df_ur_get_bb_info, df_urec_add_problem,
15223         df_urec_get_bb_info, df_chain_add_problem, df_ri_add_problem,
15224         df_reg_lifetime, df_scan_get_bb_info, df_scan_add_problem,
15225         df_rescan_blocks, df_ref_create, df_get_artificial_defs,
15226         df_get_artificial_uses, df_reg_chain_create, df_reg_chain_unlink,
15227         df_ref_remove, df_insn_refs_delete, df_refs_delete,
15228         df_reorganize_refs, df_set_state, df_hard_reg_init,
15229         df_read_modify_subreg_p) New public functions.
15230         * df-core.c: The core dataflow solver and glue routines for rtl
15231         dataflow.
15232         (df_init, df_add_problem, df_set_blocks, df_finish,
15233         df_hybrid_search_forward, df_hybrid_search_backward,
15234         df_iterative_dataflow, df_prune_to_subcfg, df_analyze_problem,
15235         df_analyze, df_get_bb_info, df_set_bb_info, df_bb_replace,
15236         df_bb_regno_last_use_find, df_bb_regno_first_def_find,
15237         df_bb_regno_last_def_find, df_insn_regno_def_p, df_find_def,
15238         df_reg_defined, df_find_use, df_reg_used, df_dump,
15239         df_refs_chain_dump, df_regs_chain_dump, df_insn_debug,
15240         df_insn_debug_regno, df_regno_debug, df_ref_debug, debug_df_insn,
15241         debug_df_reg, debug_df_regno, debug_df_ref debug_df_defno,
15242         debug_df_useno, reset_df_after_reload): New functions.
15243         * df-scan.c: The scanning fuctions, once in df.c, completely
15244         rewritten so that they now fully model the functionality of
15245         register usage at the backend.
15246         (df_scan_free_internal, df_scan_get_bb_info, df_scan_set_bb_info,
15247         df_scan_free_bb_info, df_scan_alloc, df_scan_free, df_scan_dump,
15248         df_scan_add_problem, df_grow_reg_info, df_grow_ref_info,
15249         df_grow_insn_info, df_rescan_blocks, df_ref_create,
15250         df_get_artificial_defs, df_get_artificial_uses,
15251         df_reg_chain_create, df_ref_unlink, df_reg_chain_unlink,
15252         df_ref_remove, df_insn_create_insn_record, df_insn_refs_delete,
15253         df_refs_delete, df_reorganize_refs, df_set_state,
15254         df_ref_create_structure, df_ref_record, df_read_modify_subreg_p,
15255         df_def_record_1, df_defs_record, df_uses_record,
15256         df_insn_contains_asm_1, df_insn_contains_asm, df_insn_refs_record,
15257         df_has_eh_preds, df_bb_refs_record, df_refs_record, df_mark_reg,
15258         df_record_exit_block_uses, df_hard_reg_init): New functions.
15259
15260         * df-problems.c: Seven concrete dataflow problems that use the
15261         scanning in df-scan.c and are solved by the engine in df-core.c.
15262         (df_get_dependent_problem, df_chain_create, df_chain_unlink,
15263         df_chain_copy, df_get_live_in, df_get_live_out, df_grow_bb_info,
15264         df_chain_dump, df_print_bb_index, df_ref_bitmap, df_set_seen,
15265         df_unset_seen, df_ru_get_bb_info, df_ru_set_bb_info,
15266         df_ru_free_bb_info, df_ru_alloc,
15267         df_ru_bb_local_compute_process_def,
15268         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
15269         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
15270         df_ru_transfer_function, df_ru_free, df_ru_dump,
15271         df_ru_add_problem, df_rd_get_bb_info, df_rd_set_bb_info,
15272         df_rd_free_bb_info, df_rd_alloc,
15273         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute,
15274         df_rd_local_compute, df_rd_init_solution, df_rd_confluence_n,
15275         df_rd_transfer_function, df_rd_free, df_rd_dump,
15276         df_rd_add_problem, df_lr_get_bb_info, df_lr_set_bb_info,
15277         df_lr_free_bb_info, df_lr_alloc, df_lr_bb_local_compute,
15278         df_lr_local_compute, df_lr_init, df_lr_confluence_0,
15279         df_lr_confluence_n, df_lr_transfer_function, df_lr_free,
15280         df_lr_dump, df_lr_add_problem, df_ur_get_bb_info,
15281         df_ur_set_bb_info, df_ur_free_bb_info, df_ur_alloc,
15282         df_ur_bb_local_compute, df_ur_local_compute, df_ur_init,
15283         df_ur_local_finalize, df_ur_confluence_n, df_ur_transfer_function,
15284         df_ur_free, df_ur_dump, df_ur_add_problem, df_urec_get_bb_info,
15285         df_urec_set_bb_info, df_urec_free_bb_info, df_urec_alloc,
15286         df_urec_mark_reg_change, df_urec_check_earlyclobber,
15287         df_urec_mark_reg_use_for_earlyclobber,
15288         df_urec_mark_reg_use_for_earlyclobber_1, df_urec_bb_local_compute,
15289         df_urec_local_compute, df_urec_init, df_urec_local_finalize,
15290         df_urec_confluence_n, df_urec_transfer_function, df_urec_free,
15291         df_urec_dump, df_urec_add_problem, df_chain_alloc,
15292         df_chain_create_bb_process_use, df_chain_create_bb,
15293         df_chain_finalize, df_chain_free, df_chains_dump,
15294         df_chain_add_problem, df_ri_alloc, df_ri_bb_compute,
15295         df_ri_compute, df_ri_free, df_ri_dump, df_ri_add_problem,
15296         df_reg_lifetime): New functions.
15297         * df.c: Deleted file.
15298         * ddg.c (create_ddg_dep_no_link, build_inter_loop_deps): Made code
15299         consistent with new df api.
15300         * modulo-sched.c (sms_schedule, rest_of_handle_sms,
15301         rest_of_handle_sms): Ditto.
15302         * web.c (unionfind_union, union_defs, entry_register, web_main):
15303         Ditto.
15304         * loop_invariant.c (invariant_for_use, hash_invariant_expr_1,
15305         invariant_expr_equal_p, find_defs, check_dependencies,
15306         find_invariant_insn, find_invariants_to_move, move_invariant_reg,
15307         free_inv_motion_data, move_loop_invariants): Ditto.
15308         * Makefile.in (df.c, df-scan.c df-problems.c df-core.c):
15309         Update dependencies.
15310         (odf.c): Added defective entry that was deleted later in day.
15311         * sched-deps.c (sched_analyze_1): Ditto.
15312
15313 2006-01-11  Zdenek Dvorak <dvorakz@suse.cz>
15314
15315         * tree-ssa-operands.c (get_expr_operands): Record addressable
15316         variables directly.  Do not call add_stmt_operands for CONST_DECLs
15317         and ARRAY_DECLs.
15318         (get_indirect_ref_operands): Remove handling of *(&a + offset) case.
15319         (add_stmt_operands): Handle only objects satisfying SSA_VAR_P.
15320
15321 2006-01-11  Ben Elliston  <bje@au.ibm.com>
15322
15323         * config/i386/i386.c (ix86_return_in_memory): Fix comment: this
15324         function returns true in the positive case.
15325
15326 2006-01-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15327
15328         PR target/20754
15329         * config/pa/pa.md: Create separate 32 and 64-bit move patterns
15330         for SI, DI, SF and DF modes.  Add alternatives to copy between
15331         general and floating point registers to the 32-bit patterns.
15332         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED_RTX): Delete undefine.
15333         * config/pa/pa.h (SECONDARY_MEMORY_NEEDED_RTX): Delete define.
15334         (SECONDARY_MEMORY_NEEDED): Secondary memory is only needed when
15335         generating 64-bit code.
15336         * config/pa/pa.c (output_move_double): Handle copies between general
15337         and floating registers.
15338
15339 2006-01-10  Stuart Hastings  <stuart@apple.com>
15340
15341         * config/i386/i386.md (set_got): Update.
15342         (set_got_labelled): New.  (UNSPEC_LD_MPIC): New.
15343         (builtin_setjmp_receiver): Mach-O support.
15344         * config/i386/darwin.h (TARGET_ASM_FILE_END) Define.
15345         (GOT_SYMBOL_NAME): Define.
15346         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
15347         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
15348         * config/i386/i386.c (override_options): Revise for Darwin.
15349         (USE_HIDDEN_LINKONCE): Enable for Mach-O.  (ix86_file_end): Mach-O
15350         support.  (darwin_x86_file_end): New.  (output_set_got): Add label
15351         parameter, revise for Mach-O.  (x86_output_mi_thunk): Likewise.
15352         * config/i386/i386-protos.h (output_set_got): Likewise.
15353         * config/darwin.c (machopic_legitimize_pic_address): Update
15354         regs_ever_live[].
15355
15356 2006-01-10  Kaz Kojima  <kkojima@gcc.gnu.org>
15357
15358         * config/sh/sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Use GET_MODE_SIZE
15359         when MODE isn't BLKmode.
15360
15361 2006-01-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
15362
15363         PR rtl-optimization/25367
15364         * config/sparc/sparc.h (HARD_REGNO_RENAME_OK): New macro.
15365
15366 2006-01-10  Hans-Peter Nilsson  <hp@axis.com>
15367
15368         PR target/25718
15369         * config/cris/cris.md ("uminsi3"): Don't use 8- or 16-bit sizes
15370         for a negative bound.
15371
15372 2006-01-10  Richard Guenther  <rguenther@suse.de>
15373
15374         * tree-ssa-structalias.c (get_constraint_for_component_ref):
15375         Never override with anything constraint.
15376
15377 2006-01-10  Jan Beulich  <jbeulich@novell.com>
15378
15379         * config/i386/i386.c (ix86_data_alignment): Don't force alignment to
15380         256 bits when optimize_size.
15381
15382 2006-01-10  Jan Beulich  <jbeulich@novell.com>
15383
15384         * config/i386/netware.h (TARGET_SUBTARGET_DEFAULT): Include
15385         MASK_ALIGN_DOUBLE.
15386         * config/i386/nwld.h (LINK_SPEC): Add --extensions:GNU option.
15387         * config/i386/t-nwld (SHLIB_LINK): Insert spaces between expr
15388         arguments.
15389
15390 2006-01-10  Ben Elliston  <bje@au.ibm.com>
15391
15392         * config/rs6000/predicates.md (easy_fp_constant): Discount decimal
15393         float modes.
15394         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): New.
15395         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
15396         (USE_FP_FOR_ARG): Reject decimal float modes.
15397         (function_arg_advance): Likewise.
15398         (output_toc): Handle emitting TDmode, DDmode and SDmode constants.
15399         (rs6000_handle_altivec_attribute): Do not permit decimal floating
15400         point types in AltiVec vectors.
15401         (rs6000_function_value): Use GP_ARG_RETURN for decimal floats.
15402         (rs6000_libcall_value): Likewise.
15403
15404 2006-01-09  Bob Wilson  <bob.wilson@acm.org>
15405
15406         * config/xtensa/ieee754-df.S: New file.
15407         * config/xtensa/ieee754-sf.S: New file.
15408         * config/xtensa/t-xtensa (LIB2FUNCS_EXTRA): Remove fp-bit.c & dp-bit.c.
15409         (LIB1ASMFUNCS): Add SFmode and DFmode floating-point functions.
15410         * config/xtensa/lib1funcs.asm: Include ieee754-df.S and ieee754-sf.S.
15411
15412 2006-01-09  Kazu Hirata  <kazu@codesourcery.com>
15413
15414         * config/sh/predicates.md (binary_float_operator,
15415         binary_logical_operator, commutative_float_operator,
15416         equality_comparison_operator, greater_comparison_operator,
15417         less_comparison_operator, logical_operator,
15418         noncommutative_float_operator, shift_operator,
15419         symbol_ref_operand, unary_float_operator): Remove redundant
15420         conditionals.
15421
15422 2006-01-09  Jeff Law  <law@redhat.com>
15423
15424         * tree-ssa-dom.c (simplify_cond_and_lookup_avail_expr): Remove
15425         code to propagate the RHS of a cast into COND_EXPR_COND.  Remove
15426         now unused arguments.  Callers updated.
15427         (eliminate_redundant_computations): Remove now unused arguments,
15428         callers updated.
15429         (local_fold): Remove, no longer used.
15430         (find_equivalent_equality_comparison): Removed from tree-ssa-dom.c
15431         and moved to...
15432         * tree-ssa-forwprop.c (find_equivalent_equality_comparison): Here.
15433         (simplify_cond): New function.
15434         (forward_propagate_into_cond): Call simplify_cond.
15435
15436 2006-01-09  Alexandre Oliva  <aoliva@redhat.com>
15437
15438         * config/i386/sse.md (*vec_extractv2di_1_sse2): New.
15439         (*vec_extractv2di_1_sse): New.
15440
15441 2006-01-09  Ben Elliston  <bje@au.ibm.com>
15442
15443         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Typo fix.
15444
15445 2006-01-08  Richard Guenther  <rguenther@suse.de>
15446
15447         * tree-ssa-structalias.c (get_constraint_for): Remove
15448         anyoffset argument.
15449         (get_constraint_for_component_ref): Likewise.
15450         (do_deref): Likewise.
15451         (get_constraint_for): Likewise.
15452         (do_structure_copy): Likewise.
15453         (handle_ptr_arith): Likewise.
15454         (find_func_aliases): Likewise.  Remove unused need_anyoffset
15455         variable.
15456
15457 2006-01-08  J"orn Rennecke  <joern.rennecke@st.com>
15458             Kaz Kojima  <kkojima@gcc.gnu.org>
15459
15460         * config/sh/sh.h (CONST_OK_FOR_K16): Define.
15461         (CONST_OK_FOR_K): Add CONST_OK_FOR_K16 case.
15462         (EXTRA_CONSTRAINT_C16): Remove.
15463         (EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Define.
15464         (EXTRA_CONSTRAINT_C): Remove EXTRA_CONSTRAINT_C16 case and add
15465         EXTRA_CONSTRAINT_Css and EXTRA_CONSTRAINT_Csu cases.
15466         * config/sh/sh.c (print_operand): Handle unsigned 16-bit symbolic
15467         constants of SHmedia.  Handle nested constant expressions of
15468         SHmedia correctly.
15469         (andcosts): Fix the costs for SHmedia constants.
15470         (sh_rtx_costs): Take account of outer_code for SHmedia constants.
15471         * config/sh/sh.md (*movsi_media): Use Css constraint instead of C16.
15472         (*movsi_media_nofpu, *movqi_media, *movhi_media): Likewise.
15473         (*movdi_media, *movdi_media_nofpu, movv8qi_i, movv2hi_i): Likewise.
15474         (movv4hi_i, movv2si_i): Likewise.
15475         (movsi_const): Adjust the second operand of ior so to match with
15476         the Csu constraint.
15477         (movdi_const, movdi_const_32bit): Likewise.
15478         (movdi_const_16bit+1): Don't sign-extend LOW.
15479         (movdi_const_16bit+2): Likewise.  Remove the zero_extend and truncate
15480         step.
15481         (*double_shori): Fix the split condition.  Use GEN_INT instead
15482         of get_int_mode calls.  Mask lower 16-bit of the argument of
15483         the last GEN_INT.
15484         (sym2GOTPLT): Remove.
15485         (symGOTPLT2reg): Replace gen_sym2GOTPLT with gen_rtx_CONST and
15486         gen_rtx_UNSPEC.
15487         * config/sh/predicates.md (arith_operand): Use EXTRA_CONSTRAINT_Css
15488         instead of EXTRA_CONSTRAINT_C16.
15489
15490 2006-01-07  Ian Lance Taylor  <ian@airs.com>
15491             David Edelsohn  <edelsohn@gnu.org>
15492
15493         PR rtl-optimization/25662
15494         * optabs.c (simplify_expand_binop): Use simplify_binary_operation
15495         for constant operands instead of simplify_gen_binary.
15496         * simplify-rtx.c (simplify_gen_binary): Swap commutative operands
15497         after trying simplify_binary_operation
15498
15499 2006-01-06  Daniel Berlin  <dberlin@dberlin.org>
15500
15501         * tree.c (iterative_hash_expr): Hash decls based on UID.
15502
15503 2006-01-06  Eric Christopher  <echristo@apple.com>
15504
15505         * doc/tm.texi (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Document.
15506         (TARGET_UNWIND_EMIT): Fix spelling.
15507         * target.h (gcc_target): Add except_table_label.
15508         * except.c (output_function_exception_table): Use.
15509         * varasm.c (default_emit_except_table_label): New.
15510         * target-def.h (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): New default
15511         define.
15512         (asm_out): Add here.
15513         * output.h (default_emit_except_table_label): Prototype.
15514         * config/darwin-protos.h (darwin_emit_except_table_label): Ditto.
15515         * config/darwin.c (darwin_emit_except_table_label): Define.
15516         * config/darwin.h (TARGET_ASM_EMIT_EXCEPT_TABLE): Ditto.
15517
15518 2006-01-06  Zdenek Dvorak <dvorakz@suse.cz>
15519
15520         PR tree-optimization/18527
15521         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15522         number_of_iterations_special, number_of_iterations_exit):
15523         Move base and step of an iv to a single structure.  Add
15524         no_overflow flag, and use it in # of iterations analysis.
15525         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Add
15526         folded_casts argument.
15527         (simple_iv): Pass base and step in a structure.  Set no_overflow
15528         flag.
15529         (scev_const_prop): Add argument to analyze_scalar_evolution_in_loop.
15530         Evaluate expensiveness of computing # of iterations instead of
15531         the final expression.
15532         * tree-scalar-evolution.h (affine_iv): New structure.
15533         (simple_iv): Declaration changed.
15534         * tree-chrec.c (chrec_apply): Handle chrecs containing symbols.
15535         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev,
15536         find_givs_in_stmt): Changed due to simple_iv change.
15537
15538 2006-01-06  Jeff Law  <law@redhat.com>
15539
15540         PR ada/24994
15541         * tree-cfg.c (bsi_replace): Rename final argument from
15542         PRESERVE_EH_INFO to UPDATE_EH_INFO.  Fix typo in last
15543         change (stmt -> orig_stmt).
15544         * tree-eh.c (verify_eh_throw_stmt_node): New function.
15545         (bsi_remove): Add new argument.  Remove EH information
15546         if requested.
15547         (verify_eh_throw_table_statements): New function.
15548         (bsi_remove): Add new argument REMOVE_EH_INFO.  All callers
15549         updated.
15550         * tree-optimize.c (execute_free_cfg_annotations): Verify
15551         the EH throw statement table after removing annotations.
15552         * except.h (verify_eh_throw_table_statements): Prototype.
15553         * tree-flow.h (bsi_remove): Update prototype.
15554         * tree-vrp.c (remove_range_assertions): Add new argument to
15555         bsi_remove call.
15556         * tree-ssa-loop-im.c (move_computations_stmt): Likewise.
15557         * tree-complex.c (expand_complex_div_wide): Likewise.
15558         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Likewise
15559         * tree-tailcall.c (eliminate_tailcall): Likewise.
15560         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
15561         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
15562         * tree-nrv.c (tree_nrv): Likewise.
15563         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Likewise.
15564         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
15565         (combine_blocks): Likewise.
15566         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Likewise.
15567         * tree-cfgcleanup.c (cleanup_ctrl_expr_graph): Likewise.
15568         (cleanup_control_flow): Likewise.
15569         (remove_forwarder_block): Likewise.
15570         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
15571         * tree-sra.c (sra_replace): Likewise.
15572         * tree-ssa-forwprop.c (forward_propagate_into_cond): Likewise.
15573         (forward_propagate_single_use_vars): Likewise.
15574         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
15575         * tree-inline.c (expand_call_inline): Likewise.
15576         * tree-vect-transform.c (vect_transform_loop): Likewise.
15577         * tree-outof-ssa.c (rewrite_trees): Likewise.
15578         * tree-cfg.c (make_goto_expr_edges): Likewise.
15579         (cleanup_dead_labels): Likewise.
15580         (tree_merge_blocks, remove_bb, disband_implicit_edges): Likewise.
15581         (bsi_move_before, bsi_move_after): Likewise.
15582         (bsi_move_to_bb_end, try_redirect_by_replacing_jump): Likewise
15583         (tree_redirect_edge_and_branch, tree_split_block): Likewise.
15584
15585 2006-01-06  Andrew Pinski  <pinskia@physics.uc.edu>
15586
15587         PR tree-opt/25528
15588         * tree-ssa-alias.c (find_used_portions): Handle REALPART_EXPR
15589         and IMAGPART_EXPR.
15590         * tree-flow-inline.h (var_can_have_subvars): Handle complex types
15591         on non gimple variables.  Also add checks at the top for decls and
15592         mtags.
15593         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Handle
15594         complex types.
15595         * tree-ssa-operands.c (parse_ssa_operands): Handle REALPART_EXPR
15596         and IMAGPART_EXPR for creating MUST_DEFs.
15597         (get_expr_operands): Handle SSA_NAME, STRUCT_FIELD_TAG, TYPE_MEMORY_TAG,
15598         and NAME_MEMORY_TAG separately from the DECLs.
15599
15600 2006-01-06  Richard Guenther  <rguenther@suse.de>
15601
15602         * tree-dfa.c (mark_new_vars_to_rename): Create stmt
15603         annotation, if necessary.
15604         * tree-ssa-pre.c (create_expression_by_pieces): Remove
15605         redundant calls to update_stmt.
15606         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr):
15607         Likewise.
15608
15609 2006-01-05  Richard Henderson  <rth@redhat.com>
15610
15611         * c-parser.c (c_parser_objc_methodprotolist): Handle CPP_PRAGMA.
15612
15613 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
15614
15615         * c-typeck.c: Update copyright date.
15616
15617 2006-01-05  Carlos O'Donell  <carlos@codesourcery.com>
15618
15619         * c-typeck.c (build_c_cast): Always warn when casting
15620         from a pointer to an integer of different size, even if
15621         the node was constant.
15622
15623 2006-01-05  Richard Guenther  <rguenther@suse.de>
15624
15625         PR tree-optimization/22555
15626         * tree-ssa-alias.c (create_overlap_variables_for): Do not give up,
15627         if one structure field is an array.
15628         * tree-ssa-operands.c (get_expr_operands): Continue scanning
15629         operands even if we found a subvar, but ignore VOPs in this
15630         case.
15631         * tree-ssa-loop-ivopts.c (rewrite_use): Mark new vars in stmt
15632         for renaming.
15633         * tree-ssa-loop.c (pass_iv_optimize): Schedule TODO_update_ssa.
15634
15635 2006-01-05  Richard Earnshaw  <rearnsha@arm.com>
15636
15637         PR middle-end/24998
15638         * arm/t-netbsd (LIB2FUNCS_EXTRA): Define.
15639
15640 2006-01-05  Richard Guenther  <rguenther@suse.de>
15641             Diego Novillo  <dnovillo@redhat.com>
15642
15643         * tree-pass.h (TODO_remove_unused_locals): Define.
15644         * gimple-low.c (expand_var_p, remove_useless_vars,
15645         pass_remove_useless_vars): Remove.  Update all users.
15646         * tree-ssa-live.c (mark_all_vars_used_1): Handle SSA names.
15647         (remove_unused_locals): New function.
15648         * tree-flow.h (remove_unused_locals): Declare.
15649         * passes.c (execute_todo): Call remove_unused_locals if
15650         TODO_remove_unused_locals is set.
15651         * tree-into-ssa.c (pass_build_ssa): Add TODO_remove_unused_locals.
15652         * tree-ssa-dce.c (pass_dce): Likewise.
15653         * tree-outof-ssa.c (pass_del_ssa): Likewise.
15654
15655 2006-01-05  Richard Guenther  <rguenther@suse.de>
15656
15657         * tree-flow.h (struct fieldoff): Decompose field to
15658         type, size and decl.
15659         * tree-ssa-alias.c (create_sft): Take type as parameter.
15660         (create_overlap_variables_for): Store type, size and decl
15661         in the fieldoff structure.
15662         * tree-ssa-structalias.c (fieldoff_compare): Adjust users
15663         of struct fieldoff.
15664         (push_fields_onto_fieldstack): Likewise.
15665         (create_variable_info_for): Likewise.  Use offset for the
15666         SFT name if the decl is not available.
15667
15668 2006-01-04  Paul Brook  <paul@codesourcery.com>
15669
15670         * config/m68k/m68k.c (m68k_output_mi_thunk): Use jmp, not jsr.
15671
15672 2006-01-04  Daniel Berlin  <dberlin@dberlin.org>
15673
15674         * lambda-code.c (can_put_in_inner_loop): Relax
15675         restrictions.
15676         (can_put_after_inner_loop): New function.
15677         (can_convert_to_perfect_nest): Use can_put_after_inner_loop as well.
15678         (perfect_nestify): Change to make copies and modify uses.
15679
15680 2006-01-04  Richard Henderson  <rth@redhat.com>
15681
15682         Merge from gomp branch:
15683         * c-lex.c (c_lex_with_flags) <CPP_PRAGMA>: Smuggle pragma id
15684         via integer constant.
15685         (pragma_lex): Remove.
15686         * c-pch.c (c_common_pch_pragma): Accept the name as an argument,
15687         rather than parsing it.
15688         * c-pragma.c (handle_pragma_weak, handle_pragma_redefine_extname,
15689         handle_pragma_extern_prefix): Add %< %> quotes.
15690         (registered_pragmas): New.
15691         (c_register_pragma_1): New.
15692         (c_register_pragma): Use it.
15693         (c_register_pragma_with_expansion): Likewise.
15694         (c_invoke_pragma_handler): New.
15695         (init_pragma): Use cpp_register_deferred_pragma directly for
15696         pch_preprocess.
15697         * c-pragma.h (enum pragma_kind): New.
15698         (pragma_handler): New.
15699         (c_invoke_pragma_handler): Declare.
15700         * c-common.c (c_parse_error): Pretty print CPP_PRAGMA and
15701         CPP_PRAGMA_EOL.
15702         * c-common.h (c_common_pch_pragma): Update decl.
15703         * Makefile.in (c-parser.o): Update dependencies.
15704         (GTFILES): Add c-pragma.h.
15705         * c-parser.c (struct c_token): Add pragma_kind.
15706         (struct c_parser): Add in_pragma.
15707         (c_lex_one_token): Always initialize keyword and pragma_kind.
15708         Extract data for CPP_PRAGMA.
15709         (c_parser_peek_2nd_token): Deny CPP_PRAGMA_EOL.
15710         (c_parser_consume_token): Don't allow CPP_PRAGMA unless errors.
15711         Don't allow CPP_PRAGMA_EOL if in_pragma.
15712         (c_parser_consume_pragma): New.
15713         (c_parser_skip_until_found): Stop on CPP_PRAGMA_EOL.
15714         (c_parser_skip_to_end_of_parameter): Likewise.
15715         (c_parser_skip_to_end_of_block_or_statement): Likewise.
15716         (c_parser_skip_to_pragma_eol): New.
15717         (c_parser_external_declaration): Handle CPP_PRAGMA.
15718         (c_parser_compound_statement_nostart): Likewise.
15719         (c_parser_statement_after_labels): Likewise.
15720         (c_parser_pragma): New.
15721         (pragma_lex): Likewise.
15722         (c_parser_pragma_pch_preprocess): New.
15723         (c_parser_new): Merge into ...
15724         (c_parse_file): ... here.  Call c_parser_pragma_pch_preprocess.
15725
15726 2006-01-04  Jeff Law  <law@redhat.com>
15727
15728         PR ada/24994
15729         * tree-cfg.c (bsi_replace): Remove the original statement
15730         from the EH throw statement table.
15731
15732 2006-01-04  Jakub Jelinek  <jakub@redhat.com>
15733
15734         * config/i386/pmm_malloc.h (posix_memalign): If __cplusplus,
15735         make the prototype extern "C" and add throw ().
15736
15737         PR target/25554
15738         * config/i386/i386.md (testqi_ext_3): Ensure len is positive
15739         and pos non-negative and pos + len <= 32.
15740         (testqi_ext_3_rex64): Ensure len is positive and pos non-negative,
15741         drop pos + len < HOST_BITS_PER_WIDE_INT test.
15742         (testqi_ext_3* splitter): Handle pos + len == HOST_BITS_PER_WIDE_INT.
15743
15744         PR c/25559
15745         * c-common.c (handle_vector_size_attribute): Reject zero vector size
15746         as well as sizes not multiple of component size.
15747
15748         PR debug/25562
15749         * function.c (instantiate_expr): New function.
15750         (instantiate_decls_1, instantiate_decls): If DECL_HAS_VALUE_EXPR_P,
15751         walk its DECL_VALUE_EXPR with instantiate_expr.
15752
15753         * dwarf2out.c (loc_descriptor_from_tree_1): Don't add
15754         DW_OP_deref{,_size} if address isn't going to be added.
15755
15756 2006-01-04  Ben Elliston  <bje@au.ibm.com>
15757
15758         * config/fp-bit.h: Use top-of-file comment from libgcc2.c.
15759         * config/fp-bit.c: Likewise.
15760
15761 2006-01-03  Daniel Berlin  <dberlin@dberlin.org>
15762
15763         * dominance.c: Add comment about why we use DFS numbering
15764         of dominance tree.
15765
15766 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
15767             Richard Henderson  <rth@redhat.com>
15768
15769         Merge from gomp-branch:
15770         * varasm.c (assemble_variable): Handle thread-local COMMON data.
15771         * defaults.h (ASM_OUTPUT_TLS_COMMON): Define.
15772
15773 2006-01-03  Paolo Bonzini  <bonzini@gnu.org>
15774
15775         PR rtl-optimization/25578
15776         * combine.c (combine_simplify_rtx, force_to_mode): Don't
15777         pass a parameter to simplify_shift_const if changing ASHIFTRT
15778         to LSHIFTRT.
15779
15780 2006-01-03  Adrian Straetling  <straetling@de.ibm.com>
15781
15782         * builtins.c (get_builtin_sync_mem): New function.
15783         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
15784         expand_builtin_lock_test_and_set, expand_builtin_lock_release):
15785         Call get_builtin_sync_mem to generate mem rtx.
15786
15787 2006-01-03  Richard Guenther  <rguenther@suse.de>
15788
15789         PR c/25183
15790         * stmt.c (add_case_node): Make sure to clear overflow flags
15791         from ranges.
15792
15793 2006-01-03  Jakub Jelinek  <jakub@redhat.com>
15794
15795         Merge from gomp-branch.
15796         * config/sparc/sync.md: New file.
15797         * config/sparc/sparc.md (UNSPECV_MEMBAR, UNSPECV_CAS, UNSPECV_SWAP,
15798         UNSPECV_LDSTUB): New constants.
15799         * config/sparc/sparc.c (sparc_expand_compare_and_swap_12): New function.
15800         * config/sparc/predicates.md (memory_reg_operand): New predicate.
15801         * config/sparc/sparc-protos.h (sparc_expand_compare_and_swap_12): New
15802         prototype.
15803
15804 2006-01-03  Roger Sayle  <roger@eyesopen.com>
15805
15806         * combine.c (reg_subword_p): New predicate to test whether the
15807         destination of a set refers to a subword/piece of a register.
15808         (try_combine): Generalize the code to merge the setting of a
15809         pseudo to a constant followed by a set of a subword of that
15810         register to a constant.
15811
15812 2006-01-03  Kazu Hirata  <kazu@codesourcery.com>
15813
15814         * basic-block.h (control_flow_graph): Change the type of
15815         x_label_to_block_map to VEC(basic_block,gc) *.
15816         * tree-cfg.c (init_empty_tree_cfg, label_to_block_fn,
15817         set_bb_for_stmt): Adjust the uses of x_label_to_block_map.
15818
15819         * tree-ssa-propagate.c (cfg_blocks): Change the type to
15820         VEC(basic_block,heap) *.
15821         (cfg_blocks_add, cfg_blocks_get, ssa_prop_init,
15822         ssa_prop_fini): Adjust the uses of cfg_blocks.
15823
15824 2006-01-03  Steven Bosscher  <stevenb.gcc@gmail.com>
15825
15826         * fold-const.c (operand_equal_p): Accept a NULL operand 0 for
15827         COMPONENT_REFs.
15828         * emit-rtl.c (mem_attrs_htab_eq): Use iterative_hash_expr for
15829         hashing trees instead of a pointer hash.
15830         (mem_attrs_htab_eq): Do a deep compare instead of a pointer
15831         compare for MEM_EXPR.
15832
15833         PR rtl-optimization/25130
15834         * cse.c (exp_equiv_p): Compare MEM_ATTRS instead of MEM_ALIAS_SET
15835         when comparing MEMs for GCSE
15836
15837 2006-01-03  Ben Elliston  <bje@au.ibm.com>
15838
15839         * targhooks.h (default_decimal_float_supported_p): Declare.
15840         * targhooks.c (default_decimal_float_supported_p): Define.
15841         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Redefine to
15842         `default_decimal_float_supported_p'.
15843         * doc/tm.texi (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Update.
15844
15845 2006-01-02  Adam Nemet  <anemet@caviumnetworks.com>
15846
15847         * combine.c (apply_distributive_law <SUBREG>): Check
15848         TRULY_NOOP_TRUNCATION.
15849
15850 2006-01-02  Geoffrey Keating  <geoffk@apple.com>
15851
15852         * dwarf2out.c (have_switched_text_section): Delete.
15853         (have_multiple_function_sections): New.
15854         (have_location_lists): Make 'bool'.
15855         (add_AT_loc_list): Use 'true' not '1'.
15856         (dwarf2out_switch_text_section): Set have_multiple_function_sections.
15857         (output_loc_list): Use have_multiple_function_sections.
15858         (output_ranges): Likewise.
15859         (dwarf2out_begin_function): Set have_multiple_function_sections if
15860         necessary.
15861         (dwarf2out_source_line): Don't fake separate_line_info_table_in_use.
15862         Check function_section rather than DECL_SECTION_NAME.
15863         (dwarf2out_finish): Use have_multiple_function_sections.
15864         Don't clear have_location_lists.
15865
15866 2006-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15867             Jan Hubicka  <jh@suse.cz>
15868
15869         * cfglayout.c (fixup_reorder_chain): Remove kludge for the
15870         case of conditional jump jumping to the next instruction.
15871         * cfgrtl.c (force_nonfallthru_and_redirect): Accept all
15872         cases of conditional jump jumping to the next instruction.
15873
15874 2006-01-02  Jan Hubicka  <jh@suse.cz>
15875
15876         * i386.c (*_cost): Add COSTS_N_INSNS.
15877         (ix86_rtx_costs): Do not use COSTS_N_INSNS.
15878
15879 2006-01-02  Paolo Bonzini  <bonzini@gnu.org>
15880
15881         PR target/25259
15882         * Makefile.in (DECNUMINC): Include libdecnumber's build directory.
15883
15884 2006-01-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15885
15886         * config/arm/arm.c (all_fpus): Fix comment typo.
15887         * config/darwin.c: Likewise.
15888         * config/frv/frv.h (FRV_STRUCT_VALUE_REGNUM): Likewise.
15889         * config/h8300/h8300.md (extendqisi2_h8300hs): Likewise.
15890         * config/m68hc11/m68hc11.c (m68hc11_reload_operands): Likewise.
15891
15892 2006-01-01  David Edelsohn  <edelsohn@gnu.org>
15893
15894         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): New.
15895         (rs6000_split_compare_and_swapqhi): New.
15896         * config/rs6000/sync.md (sync_compare_and_swap{hi,qi}): New.
15897         (sync_compare_and_swapqhi_internal): New.
15898         * config/rs6000/rs6000-protos.h: Declare.