OSDN Git Service

7354c66a661e5cde8a9e2bd3c1bd53b3b6fe8664
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-06-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2
3         PR middle-end/22247
4         * tree-ssa-structalias.c (build_constraint_graph, scc_visit,
5         process_unification_queue, init_topo_info, topo_visit,
6         init_scc_info, free_scc_info, perform_var_substitution,
7         solve_graph): Use unsigned instead of uint.
8         
9 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
10
11         * function.c (gen_stack_protect_test): Add third argument.
12
13 2005-06-30  J. D. Johnston  <jjohnst@us.ibm.com>
14
15         * gthr-tpf.h (CE2THRCPTR): Change field offset to 16.
16
17 2005-06-30  Kazu Hirata  <kazu@codesourcery.com>
18
19         * config/c4x/c4x-protos.h: Remove the prototypes for those
20         functions removed from c4x.c.  Add prototypes for those
21         functions exported in c4x.c.
22         * config/c4x/c4x.c (any_operand, fp_zero_operand,
23         const_operand, stik_const_operand, not_const_operand,
24         reg_operand, r0r1_reg_operand, r2r3_reg_operand,
25         ext_low_reg_operand, ext_reg_operand, std_reg_operand,
26         std_or_reg_operand, addr_reg_operand, index_reg_operand,
27         dp_reg_operand, sp_reg_operand, st_reg_operand,
28         rc_reg_operand, call_address_operand,
29         symbolic_address_operand, dst_operand, src_operand,
30         src_hi_operand, lsrc_operand, tsrc_operand,
31         nonimmediate_src_operand, nonimmediate_lsrc_operand,
32         reg_or_const_operand, par_ind_operand, parallel_operand):
33         Remove.
34         (c4x_immed_float_p, c4x_a_register, c4x_x_register,
35         c4x_K_constant, c4x_N_constant, c4x_O_constant,
36         c4x_S_indirect): Export.
37         * config/c4x/c4x.h (PREDICATE_CODES): Remove.
38         * config/c4x/c4x.md: Include predicates.md.
39         * config/c4x/predicates.md: New.
40
41 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
42
43         * function.c (stack_protect_epilogue): Pass label to
44         stack_protect_test, assume it emitted also the conditional
45         branch.
46         * doc/md.texi (stack_protect_test): Adjust documentation.
47         * config/i386/i386.md (stack_protect_test): Add third argument,
48         emit beq with operands[2].
49         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
50         flag_stack_protect != 0.
51         * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
52         constants.
53         (stack_protect_set, stack_protect_test): New expanders.
54         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
55         stack_protect_testdi): New insns.
56         * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
57         (TARGET_STACK_PROTECT_FAIL): Define.
58         (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
59
60         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Increment.
61         (DWARF_FRAME_REGISTERS, DWARF_REG_TO_UNWIND_COLUMN): Adjust, so
62         that addition of sfp doesn't change these.
63         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
64         REG_ALLOC_ORDER): Add sfp.
65         (INT_REGNO_P): Include FRAME_POINTER_REGNUM.
66         (FRAME_POINTER_REGNUM): Define to 113.
67         (HARD_FRAME_POINTER_REGNUM): Define to 31.
68         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add sfp.
69         (STARTING_FRAME_OFFSET): Set to 0 for FRAME_GROWS_DOWNWARD.
70         (ELIMINABLE_REGS): Never eliminate to
71         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
72         instead.  Add eliminations from FRAME_POINTER_REGNUM.
73         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P):
74         Include FRAME_POINTER_REGNUM.
75         (REGISTER_NAMES): Add sfp.
76         * config/rs6000/rs6000.c (rs6000_reg_names): Add sfp.
77         (alt_reg_names): Likewise.
78         (rs6000_stack_info): Handle FRAME_GROWS_DOWNWARD.
79         (rs6000_emit_prologue): Use HARD_FRAME_POINTER_REGNUM
80         instead of FRAME_POINTER_REGNUM.
81         (rs6000_initial_elimination_offset): Never eliminate to
82         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
83         instead.  Add elimination offsets from FRAME_POINTER_REGNUM.
84
85         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Only return non-zero
86         if DEFAULT_ABI == ABI_V4.
87
88 2005-06-30  Steven Bosscher  <stevenb@suse.de>
89
90         * coretypes.h (tls_model): Add TLS_MODEL_NONE as 0.
91         * tree.h (struct tree_decl): New field `tls_model'.
92         (DECL_TLS_MODEL): New.
93         (DECL_THREAD_LOCAL_P): Rename from DECL_THREAD_LOCAL, make it
94         a predicate.
95         * rtl.h (decl_default_tls_model): Add prototype for it.
96         * varasm.c (decl_tls_model): Rewritten and renamed to ...
97         (decl_default_tls_model): ... this.
98         (default_encode_section_info): Use DECL_TLS_MODEL instead of
99         decl_tls_model.
100         (assemble_variable): Replace DECL_THREAD_LOCAL with
101         DECL_THREAD_LOCAL_P.
102         (default_section_type_flags_1): Likewise.
103         (categorize_decl_for_section): Likewise.
104         * tree.c (staticp): Likewise.
105         (recompute_tree_invarant_for_addr_expr): Likewise.
106         * drawf2out (loc_descriptor_from_tree_1): Likewise.
107         * c-decl.c (diagnose_mismatched_decls): Likewise.
108         with DECL_THREAD_LOCAL_P.
109         (start_decl): Likewise.
110         * print-tree.c (print_node): Likewise.  Print the TLS model.
111         (grokdeclarator): Set the default DECL_TLS_MODEL here.
112         * c-common.c (handle_tls_model_attribute): Rewrite to set the
113         TLS model up based on the attribute.  Never add the attribute
114         to the decl's attributes list.
115         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Replace
116         DECL_THREAD_LOCAL with DECL_THREAD_LOCAL_P.
117
118 2005-06-30  Zdenek Dvorak  <dvorakz@suse.cz>
119
120         PR testsuite/21967
121         * tree-ssa-live.c (mark_all_vars_used_1): Ignore variables in
122         TMR_ORIGINAL.
123
124 2005-06-30  Bernd Schmidt  <bernd.schmidt@analog.com>
125
126         * config/bfin/bfin.md (addv2hi3, subv2hi3, sminv2hi3, smaxv2hi3,
127         mulv2hi3, negv2hi2, absv2hi2): Pattern names fixed by appending the
128         necessary digit.
129
130 2005-06-29  David Edelsohn  <edelsohn@gnu.org>
131
132         * config/rs6000/rs6000.c (rs6000_file_start): Use PPC405_ERRATUM77.
133
134 2005-06-29  Diego Novillo  <dnovillo@redhat.com>
135
136         PR 22234
137         * tree-ssa-copy.c (fini_copy_prop): Do not overwrite copy_of
138         when following copy-of chains.
139
140 2005-06-30  Jan Hubicka  <jh@suse.cz>
141
142         * function.h (struct function): Add saved blocks/unexpanded var list.
143         * gimple-low.c (record_vars): Insert only VAR_DECLs.
144         * tree-inline.c (add_lexical_block): Declare; do not clear sublocks.
145         (remap_decl): Do not declare vars.
146         (remap_block): Do not care inserting blocks.
147         (remap_blocks): New function.
148         (copy_body_r): Update debug info.
149         (expand_call_inline): Duplicate callee block tree into caller;
150         copy all the unexpanded_var_list.
151         (save_body): Save unexpanded_var_list and blocks.
152         * tree-optimize.c (tree_rest_of_optimization): Restore
153         blocks/unexpanded_var_list.
154
155 2005-06-29  Richard Henderson  <rth@redhat.com>
156
157         * config/ia64/ia64.c (ia64_expand_vecint_minmax): Use us_minus and
158         plus for V4HImode UMAX.
159
160 2005-06-29  Joseph S. Myers  <joseph@codesourcery.com>
161
162         * c-tree.h (default_function_array_conversion): Take and return
163         struct c_expr.
164         * c-typeck.c (default_function_array_conversion): Split into
165         array_to_pointer_conversion and function_to_pointer_conversion.
166         Take and return struct c_expr.
167         (array_to_pointer_conversion): Do not handle type qualifiers or
168         COMPOUND_EXPRs specially.
169         (build_function_call): Call function_to_pointer_conversion for
170         function designators.
171         (build_unary_op): Call array_to_pointer_conversion, not
172         default_function_array_conversion.
173         (digest_init, output_init_element): Likewise.
174         * c-parser.c: All callers of default_function_array_conversion
175         changed.
176
177 2005-06-29  Ziemowit Laski  <zlaski@apple.com>
178
179         * config/darwin.c (machopic_select_section): constant ObjC string
180         objects now always have type "__builtin_ObjCString".
181
182 2005-06-29  Richard Henderson  <rth@redhat.com>
183
184         * config/alpha/alpha.md (vec_shl_<VEC>, vec_shr_<VEC>): New.
185
186 2005-06-29  Richard Henderson  <rth@redhat.com>
187
188         * tree-vect-transform.c (vect_min_worthwhile_factor): Declare.
189         (vect_create_epilog_for_reduction): Don't use vec_shr if the
190         operation is emulated.
191         (vectorizable_reduction): Duplicate vect_min_worthwhile_factor
192         tests from vectorizable_operation.
193
194 2005-06-29  Caroline Tice  <ctice@apple.com>
195
196         Fix PR 21956
197         * varasm.c (assemble_start_function):  Add "L" to beginning of
198         local labels, so assembler & linker treat them as local.
199         
200 2005-06-29  Richard Henderson  <rth@redhat.com>
201
202         * config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp
203         argument.  Simplify canonicalization of condition.  Use unsigned
204         saturating subtraction for QI and HImode unsigned compares.  Use
205         bit arithmetic tricks for SImode unsigned compares.
206         * config/i386/i386-protos.h (ix86_expand_int_vcond): Update decl.
207         * config/i386/sse.md (SSEMODE14): New.
208         (umaxv8hi3): Use us_minus+plus to avoid vcond.
209         (umaxv4si3): New.
210         (smax<SSEMODE14>3): Rename from smaxv16qi3 and macroize.
211         (smin<SSEMODE14>3): Similarly with sminv16qi3.
212         (umin<SSEMODE24>3): Similarly with uminv8hi3.
213
214 2005-06-29  Ian Lance Taylor  <ian@airs.com>
215
216         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Change
217         GEN_INT to gen_int_for_mode when storing register size to memory.
218
219 2005-06-29  Stuart Hastings  <stuart@apple.com>
220
221         * gcc/config/i386/mmintrin.h: Mark vector intrinsics always_inline.
222         * gcc/config/i386/emmintrin.h: Likewise.
223         * gcc/config/i386/pmmintrin.h: Likewise.
224         * gcc/config/i386/xmmintrin.h: Likewise.
225                                         
226 2005-06-29  Steve Ellcey  <sje@cup.hp.com>
227
228         PR middle-end/21969
229         * tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
230         (SET_TYPE_VECTOR_SUBPARTS): New.
231         * tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
232         SET_TYPE_VECTOR_SUBPARTS.
233         * tree-vect-transform.c (vect_transform_loop): Add cast.
234
235 2005-06-29  Andreas Krebbel  <krebbel1@de.ibm.com>
236
237         * config/s390/s390.c (s390_decompose_address): Accept invalid
238         displacements for addresses containing frame_pointer_rtx or
239         virtual_stack_vars_rtx.
240         (s390_frame_info): Replaced use of STARTING_FRAME_OFFSET.
241         (s390_initial_elimination_offset): New offset when eliminating the 
242         soft frame pointer.
243         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Defined as 1.
244         (STARTING_FRAME_OFFSET, STACK_DYNAMIC_OFFSET): Definitions changed.
245
246 2006-06-28  Ziemowit Laski  <zlaski@apple.com>
247
248         * c-common.c (flag_next_runtime): Move...
249         * toplev.c (flag_next_runtime): ... here.
250         * c-common.h (flag_next_runtime): Move...
251         * flags.h (flag_next_runtime): ... here.
252         * config/darwin-c.c: Include flags.h.
253         * config/t-darwin (darwin-c.o): Depend on flags.h.
254
255 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
256
257         * config/sh/linux-unwind.h (shmedia_fallback_frame_state):
258         Disable aliasing warning with void * cast.
259         (sh_fallback_frame_state): Likewise.
260
261 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
262
263         * target.h (gcc_target): New field allocate_initial_value.
264         * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
265         (TARGET_INITIALIZER): Include it.
266         * integrate.c (allocate_initial_values): Use
267         targetm.allocate_initial_value.
268         * system.h: Poison ALLOCATE_INITIAL_VALUE.
269         * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
270         * config/sh/sh.c (sh_pr_n_sets): Make it static.
271         (sh_allocate_initila_value): New function.
272         (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
273         * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
274         * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
275         update from ALLOCATE_INITIAL_VALUE.
276
277 2005-06-28  Richard Henderson  <rth@redhat.com>
278
279         * tree-vectorizer.c (vect_is_simple_reduction): Compare types
280         using TYPE_MAIN_VARIANT.
281
282 2005-06-28  Richard Henderson  <rth@redhat.com>
283
284         * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ
285         when using psubN.uuu.
286
287 2005-06-29  Kelley Cook <kcook@gcc.gnu.org>
288
289         * doc/gcc.texi: Update FSF address.
290
291 2005-06-28  Eric Christopher  <echristo@redhat.com>
292
293         PR c/22052
294         PR c/21975
295         * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE.
296         Use. Fix detection of invalid extern inline redefinition.
297
298 2005-06-28  Diego Novillo  <dnovillo@redhat.com>
299
300         * tree-optimize.c (init_tree_optimization_passes): Fix typo.
301
302 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
303
304         * config/rs6000/rs6000.md (setmemsi): s/operand/operands/.
305
306 2005-06-28  Richard Henderson  <rth@redhat.com>
307
308         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use unsigned
309         saturating subtraction for QI and HImode unsigned compares.  Use
310         bit arithmetic tricks for SImode unsigned compares.
311         (ia64_expand_vcondu_v2si): Remove.
312         (ia64_expand_vecint_cmov): Don't call it.
313
314 2005-06-28  Richard Henderson  <rth@redhat.com>
315
316         * rtlanal.c (nonzero_bits1): Use the mode of the value for
317         determining integral-ness for comparisons.
318
319 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
320
321         * config/rs6000/rs6000.md (setmemsi): Fix operand 2.
322
323 2005-06-28  Joseph S. Myers  <joseph@codesourcery.com>
324
325         * target.h (invalid_conversion, invalid_unary_op,
326         invalid_binary_op): New hooks.
327         * target-def.h (TARGET_INVALID_CONVERSION,
328         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
329         TARGET_INITIALIZER): Likewise.
330         * hooks.h (hook_constcharptr_tree_tree_null,
331         hook_constcharptr_int_tree_null,
332         hook_constcharptr_int_tree_tree_null): New.
333         * hooks.c (hook_constcharptr_tree_tree_null,
334         hook_constcharptr_int_tree_null,
335         hook_constcharptr_int_tree_tree_null): Likewise.
336         * gcc/doc/tm.texi (TARGET_INVALID_CONVERSION,
337         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
338         * c-convert.c (convert): Use invalid_conversion hook.
339         * c-typeck.c (build_unary_op): Use invalid_unary_op hook.
340         (build_binary_op): Use invalid_binary_op hook.
341         * config/ia64/ia64-modes.def: Define RFmode.
342         * config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
343         (ia64_expand_movxf_movrf): New.
344         * config/ia64/ia64.md (movxf): Move code to
345         ia64_expand_movxf_movrf.
346         (movrf, movrf_internal): New.
347         * ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
348         ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
349         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
350         (spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
351         Add mode parameter.  Make static.
352         (ia64_expand_movxf_movrf): New, moved from ia64.md.  Handle RFmode
353         as well as XFmode.
354         (ia64_function_arg, ia64_function_value, ia64_register_move_cost,
355         ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
356         (ia64_init_builtins): Set up __fpreg as RFmode.
357         (ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
358
359 2006-06-28  Adrian Straetling  <straetling@de.ibm.com>
360
361         * builtins.c: (expand_builtin_memset): Rewrite to support
362         'set_storage_via_setmem'.
363         * expr.c: (enum insn_code setmem_optab): Define.
364         (enum insn_code clrmem_optab): Remove.
365         (set_storage_via_setmem): New function.
366         (clear_storage_via_setmem): Remove.
367         (clear_storage): Replace call to "clear_storage_via_clrmem" with
368         "set_storage_via_setmem".
369         * expr.h: (set_storage_via_setmem): Declare.
370         (CLEAR_RATIO): Redefine using HAVE_setmemM.
371         * optabs.h: (enum insn_code setmem_optab): Declare.
372         (enum insn_code clrmem_optab): Remove.
373         * optabs.c: (init_optabs): Initialize setmem_optab.
374         (enum insn_code clrmem_optab): Remove.
375         * genopinit.c: (otabs): Likewise.
376         * doc/md.texi: Document new standard pattern 'setmem'. Remove
377           'clrmem'.
378         * config/alpha/alpha.c: (alpha_expand_block_clear): Adjust
379         'operands' ordering.
380         * config/frv/frv.c: (frv_expand_block_clear): Likewise.
381         * config/rs6000/rs6000.c: (expand_block_clear): Likewise.
382         * config/alpha/alpha.md: ("clrmemqi", "clrmemdi"): Rename to "setmemM".
383         FAIL on operands[2]!=const0_rtx. Adjust 'operands' ordering.
384         * config/avr/avr.md: ("clrmemhi"): Likewise.
385         * config/frv/frv.md: ("clrmemsi"): Likewise.
386         * config/i386/i386.md: ("clrmemsi", "clrmemdi"): Likewise.
387         * config/pa/pa.md: ("clrmemsi", "clrmemdi"): Likewise.
388         * config/rs6000/rs6000.md: ("clrmemsi"): Likewise.
389         * config/s390/s390.md: ("clrmem<mode>"): Likewise.
390
391 2005-06-28  Paul Brook  <paul@codesourcery.com>
392
393         * Makefile.in: Set and use UNWIND_H.  Install as unwind.h.
394         * c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
395         * except.c (add_ehspec_entry): Generate arm eabi filter lists.
396         (assign_filter_values): Ditto.
397         (output_ttype): New function.
398         (output_function_exception_table): Use output_ttype.  Generate arm
399         eabi filter lists.
400         (default_init_unwind_resume_libfunc): New function.
401         * except.h (default_init_unwind_resume_libfunc): Add prototype.
402         * optabs.c (init_optabs): Don't set unwind_resume_libfunc.
403         * opts.c (decode_options): Use targetm.unwind_tables_default.
404         * target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
405         (TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
406         * target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
407         and arm_eabi_unwinder.
408         * unwind-c.c: Support Arm EABI unwinder.
409         * unwind.h: Rename ...
410         * unwind-generic.h: ... To this.
411         * doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
412         (TARGET_UNWID_TABLES_DEFAULT): Document.
413
414         * config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
415         * config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
416         (TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
417         Define.
418         (thumb_pushpop, thumb_output_function_prologue): Output unwinding
419         directives.
420         (arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
421         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
422         !TARGET_UNWIND_INFO.
423         (ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
424         * config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
425         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
426         ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
427         * config/arm/lib1funcs.asm: Include libunwind.S.
428         * config/arm/libgcc-bpabi.ver: Add unwinding routines.
429         * config/arm/libunwind.S: New file.
430         * config/arm/pr-support.c: New file.
431         * config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
432         (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
433         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
434         * config/arm/unwind-arm.c: New file.
435         * config/arm/unwind-arm.h: New file.
436         * config/i386/t-netware (USER_H): Remove unwind.h.
437         * config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
438
439 2005-06-28  DJ Delorie  <dj@redhat.com>
440
441         * c-decl.c (pop_scope): Move warning control into warning call.
442         (diagnose_mismatched_decls): Likewise.
443         (pushdecl): Likewise.
444         (start_decl): Likewise.
445         (grokparms): Likewise.
446         (start_function): Likewise.
447         (store_parm_decls_newstyle): Likewise.
448         (store_parm_decls_oldstyle): Likewise.
449         (finish_function): Likewise.
450         (declspecs_add_scspec): Likewise.
451         * c-format.c (decode_format_attr): Likewise.
452         (maybe_read_dollar_number): Likewise.
453         (avoid_dollar_number): Likewise.
454         (finish_dollar_format_checking): Likewise.
455         (check_format_info): Likewise.
456         (check_format_info_main): Likewise.
457         (check_format_types): Likewise.
458         (format_type_warning): Likewise.
459         * c-typeck.c (function_types_compatible_p): Likewise.
460         (build_array_ref): Likewise.
461         (convert_arguments): Likewise.
462         (build_c_cast): Likewise.
463         (store_init_value): Likewise.
464         (process_init_element): Likewise.
465         (c_start_case): Likewise.
466         * stor-layout.c (finalize_record_size): Likewise.
467         * tree-cfg.c (execute_warn_function_noreturn): Likewise.
468         * tree-inline.c (expand_call_inline): Likewise.
469
470 2005-06-28  Uros Bizjak  <uros@kss-loka.si>
471
472         PR target/22134
473         * config/i386/i386.md (fist<mode>2_with_temp splitter):
474         Clobber memory operand, not scratch register.
475
476 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
477
478         * config/s390/s390.c (machine_function): New field has_landing_pad_p.
479         (s390_set_has_landing_pad_p, s390_reg_clobbered_rtx,
480          s390_regs_ever_clobbered): New functions.
481         (s390_return_addr_rtx): Use get_hard_reg_initial_value.
482         (s390_register_info, s390_init_frame_layout, s390_update_frame_layout):
483         Use s390_regs_ever_clobbered.
484         (s390_emit_prologue): Don't use r14 as temp reg if its content is used
485         for builtin_return_address.
486         * config/s390/s390.md ("exception_receiver"): New expander.
487         * config/s390/s390-protos.h (s390_set_has_landing_pad_p): Prototype
488         added.
489
490 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
491
492         * except.c (current_function_has_exception_handlers): Function 
493         description added and if statements merged.
494
495 2005-06-28  Richard Henderson  <rth@redhat.com>
496
497         * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
498         (sminv16qi3, umaxv8hi3, uminv8hi3): Likewise.
499
500 2005-06-27  Richard Henderson  <rth@redhat.com>
501
502         * config/ia64/ia64.c (ia64_expand_vcondu_v2si): Generate proper
503         comparison operations.
504         (ia64_expand_vecint_minmax): Fix size of xops.
505         * config/ia64/vect.md (umax<VECINT>3): Fix fallback pattern typo.
506         (vec_shl_<VECINT>, vec_shr_<VECINT>): New.
507
508 2005-06-27  Richard Henderson  <rth@redhat.com>
509
510         * tree-vect-transform.c (get_initial_def_for_reduction): Use correct
511         type for DEF and INIT_VAL.  Pretend MIN/MAX need epilogue adjustment.
512
513 2005-06-27  Richard Henderson  <rth@redhat.com>
514
515         * config/i386/sse.md (vec_shl_<SSEMODEI>, vec_shr_<SSEMODEI>): New.
516         (smaxv16qi3, umaxv8hi3, sminv16qi3, uminv8hi3): New.
517
518 2005-06-27  Richard Henderson  <rth@redhat.com>
519
520         * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
521         duplicate little-endian adjustment.
522
523 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
524
525         * doc/include/texinfo.tex: Import from upstream CVS.
526
527 2005-06-28  Jan Hubicka  <jh@suse.cz>
528
529         * cgraph.c (cgraph_remove_node): Do not release function bodies until
530         full cgraph is built.
531         * cgraph.h (cgraph_decide_inlining_incrementally): Add early argument.
532         * cgraphunit.c (cgraph_finalize_function): Update call of
533         cgraph_decide_inlining_incrementally.
534         (initialize_inline_failed): Break out of ...
535         (cgraph_analyze_function): ... here.
536         (rebuild_cgraph_edges): New function.
537         (pass_rebuild_cgraph_edges): New pass.
538         * common.opt (fearly-inlining): New flag.
539         * ipa-inline.c: Include ggc.h
540         (cgraph_clone_inlined_nodes): Avoid re-using of original copy
541         when cgraph is not fully built.
542         (cgraph_decide_inlining_incrementally): Add early mode.
543         (cgraph_early_inlining): New function.
544         (cgraph_gate_early_inlining): Likewise.
545         (pass_early_ipa_inline): New pass.
546         * ipa.c (cgraph_postorder): NULLify aux pointer.
547         * tree-inline.c (expand_call_inline): Avoid warning early.
548         * tree-optimize.c (pass_early_local_passes): New.
549         (execute_cleanup_cfg_pre_ipa): New.
550         (pass_cleanup_cfg): New.
551         (register_dump_files): Fix handling subpasses of IPA pass.
552         (init_tree_optimization_passes): Add early passes.
553         (execute_ipa_pass_list): Fix handling of subpasses of IPA pass.
554         * passes.h (pass_early_tree_profile, pass_rebuild_cgraph_edges,
555         pass_early_ipa_inline): New passes.
556         * tree-profile.c (do_early_tree_profiling, pass_early_tree_profile): New.
557
558         * invoke.texi: Document early-inlining.
559
560 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
561
562         * doc/include/fdl.texi: Merge in changes from upstream.
563         * doc/include/gpl.texi: Likewise.
564
565 2005-06-27  Diego Novillo  <dnovillo@redhat.com>
566
567         PR 21959
568         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
569         casts between unsigned and signed types with different size
570         or precision.
571
572 2005-06-28  Jan Hubicka  <jh@suse.cz>
573
574         * tree-optimize.c (exercute_free_datastructures):
575         Do not disband implicit edges; do not attempt to build insn list;
576         do not free cfg annotations.
577         (execute_free_cfg_annotations); Disband implicit edges here;
578         free cfg annotations here too.
579         (pass_free_cfg_annotations); New pass.
580         (init_tree_optimization_passes); Add pass_free_cfg_annotations.
581         * tree-ssa-operands.c (free_ssa_operands); Recover; export.
582         * tree-ssa-operands.h (free_ssa_operands); declare.
583         * tree-ssa.c (delete_tree_ssa); Free SSA operand; mark stmt modified;
584         kill PHI nodes.
585         * tree-ssanames.c (release_defs): Kill addresses_taken.
586
587         * basic-block.h (basic_block_def): Kill rbi.
588         (reorder_block_def): Kill; Remove next field (replaced by aux);
589         move other fields to ...
590         (rtl_bb_info): ... here.
591         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
592         copy_bb, connect_traces, add_labels_and_missing_jumps
593         fix_up_fall_thru_edges, fix_crossing_conditional_branches,
594         duplicate_computed_gotos, partition_hot_cold_basic-blocks):
595         Update to new fields.
596         * cfg.c (initialize_bb_rbi): Kill.
597         * cfglayout.c (record_effective_endpoints, fixup_reorder_chain,
598         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update.
599         * cfgrtl.c (cfg_layout_create_basic_block): Do not initialize rbi.
600         (try_redirect_by_replacing_jump): Update rbi references.
601         (cfg_layout_split_block): Likewise.
602         (cfg_layout_delete_block): Likewise.
603         (cfg_layout_merge_blocks): Likewise.
604         * function.c (thread_prologue_and_epilogue_insns): Likewise.
605         * passes.c (rest_of_handle_sms): Likewise.
606         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
607
608 2005-06-27  David Edelsohn  <edelsohn@gnu.org>
609
610         * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
611         in verbose_asm output.
612         * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
613         CONFIG_PPC405CR.
614         * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
615         405cr.
616
617 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
618
619         * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
620         (DEF_LIST_INT_INT): Add for 4,0, 4,5, 5,0, 5,6.
621         (ATTR_NOTHROW_NONNULL_4, ATTR_NOTHROW_NONNULL_5): Define.
622         (ATTR_FORMAT_PRINTF_4_0, ATTR_FORMAT_PRINTF_4_5,
623         ATTR_FORMAT_PRINTF_5_0, ATTR_FORMAT_PRINTF_5_6): Define.
624         * builtins.c: Include tree-flow.h.
625         (expand_builtin_mempcpy, expand_builtin_memmove): Comment fixes.
626         (expand_builtin_object_size, expand_builtin_memory_chk,
627         maybe_emit_chk_warning, maybe_emit_sprintf_chk_warning,
628         compute_object_offset, compute_builtin_object_size,
629         fold_builtin_object_size): New functions.
630         (expand_builtin): Handle BUILT_IN_OBJECT_SIZE and BUILT_IN_*_CHK.
631         (fold_builtin_1): Likewise.  Handle BUILT_IN_{,V}{,F}PRINTF
632         and BUILT_IN_{,F}PRINTF_UNLOCKED.
633         (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
634         fold_builtin_strncpy_chk, fold_builtin_strcat_chk,
635         fold_builtin_strncat_chk, fold_builtin_sprintf_chk,
636         fold_builtin_snprintf_chk, fold_builtin_printf, fold_builtin_fprintf):
637         New functions.
638         * builtins.def (BUILT_IN_OBJECT_SIZE, BUILT_IN_MEMCPY_CHK,
639         BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK, BUILT_IN_MEMSET_CHK,
640         BUILT_IN_STPCPY_CHK, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK,
641         BUILT_IN_STRNCAT_CHK, BUILT_IN_STRNCPY_CHK, BUILT_IN_SNPRINTF_CHK,
642         BUILT_IN_SPRINTF_CHK, BUILT_IN_VSNPRINTF_CHK, BUILT_IN_VSPRINTF_CHK,
643         BUILT_IN_FPRINTF_CHK, BUILT_IN_PRINTF_CHK, BUILT_IN_VFPRINTF_CHK,
644         BUILT_IN_VPRINTF_CHK): New builtins.
645         * builtin-types.def (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_VAR_4):
646         Document.
647         (BT_FN_SIZE_CONST_PTR_INT, BT_FN_INT_INT_CONST_STRING_VALIST_ARG,
648         BT_FN_PTR_PTR_CONST_PTR_SIZE_SIZE, BT_FN_PTR_PTR_INT_SIZE_SIZE,
649         BT_FN_STRING_STRING_CONST_STRING_SIZE_SIZE,
650         BT_FN_INT_FILEPTR_INT_CONST_STRING_VALIST_ARG,
651         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG,
652         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG,
653         BT_FN_INT_INT_CONST_STRING_VAR, BT_FN_INT_FILEPTR_INT_CONST_STRING_VAR,
654         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR,
655         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR): New types.
656         * c-common.c (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_6,
657         DEF_FUNCTION_TYPE_VAR_4, DEF_FUNCTION_TYPE_VAR_5): Define.
658         * Makefile.in (OBJS-common): Add tree-object-size.o.
659         (tree-object-size.o): Add dependencies.
660         * tree-pass.h (pass_object_sizes): Add.
661         * tree-optimize.c (init_tree_optimization_passes): Add
662         pass_object_sizes.
663         * tree-object-size.c: New file.
664         * tree.h (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
665         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk,
666         compute_builtin_object_size, init_object_sizes, fini_object_sizes):
667         New prototypes.
668         * tree-ssa-ccp.c (get_strlen): Rename to ...
669         (get_maxval_strlen): ...this function.  Handle also computing of maximum
670         string length and maximum integral value.
671         (ccp_fold_builtin): Handle BUILT_IN_*_CHK.  Use get_maxval_strlen
672         instead of get_strlen.  Pass CALLEE and ARGLIST variables to the
673         folding functions instead of computing them again.
674         (execute_fold_all_builtins): Retry ccp_fold_builtin if a builtin changed
675         into some other builtin.
676         * doc/extend.texi (Object Size Checking): Document.
677
678         * regrename.c (copy_value): Fix comment.
679
680         * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
681         instead of preprocessor conditionals.
682
683         * targhooks.c (default_hidden_stack_protect_fail): Fall back to
684         default_external_stack_protect_fail if visibility is not supported
685         or not flag_pic.
686         * config/i386/i386.c (ix86_stack_protect_fail): New function.
687         (TARGET_STACK_PROTECT_FAIL): Define.
688         * config/i386/i386.md (stack_protect_si): Change CLOBBER into
689         SET to zero.
690         (stack_protect_di): Likewise.  Use %k2 instead of %2 to avoid
691         invalid instruction xorl %rax, %rax.
692
693 2005-06-27  Richard Henderson  <rth@redhat.com>
694
695         * c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
696         * cfgexpand.c: Include params.h.
697         (has_protected_decls, has_short_buffer): New.
698         (expand_stack_vars): Take a predicate to determine what to expand.
699         (defer_stack_allocation): True when flag_stack_protect on.
700         (SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
701         (SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
702         (stack_protect_classify_type, stack_protect_decl_phase): New.
703         (stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
704         (add_stack_protection_conflicts, create_stack_guard): New.
705         (expand_used_vars): Add stack protection logic.
706         (tree_expand_cfg): Likewise.
707         * common.opt (Wstack-protector): New.
708         (fstack-protector, fstack-protector-all): New.
709         * function.c: Include predict.h.
710         (assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
711         wants to copy the parameter into the stack frame.
712         (stack_protect_prologue, stack_protect_epilogue): New.
713         (expand_function_end): Call stack_protect_epilogue.  Do 
714         sjlj_emit_function_exit_after after naked_return_label.
715         * function.h (struct function): Add stack_protect_guard.
716         * params.def (PARAM_SSP_BUFFER_SIZE): New.
717         * toplev.c (process_options): Disable flag_stack_protect and/or
718         warn_stack_protect based on FRAME_GROWS_DOWNWARD.
719         * tree.h (stack_protect_prologue): Declare.
720
721         * target-def.h (TARGET_STACK_PROTECT_GUARD): New.
722         (TARGET_STACK_PROTECT_FAIL): New.
723         (TARGET_INITIALIZER): Add them.
724         * target.h (struct gcc_target): Add stack_protect_guard and
725         stack_protect_fail.
726         * targhooks.c: Include ggc.h, gty header.
727         (stack_chk_guard_decl, default_stack_protect_guard): New.
728         (stack_chk_fail_decl, default_external_stack_protect_fail): New.
729         (default_hidden_stack_protect_fail): New.
730         * targhooks.h (default_stack_protect_guard): Declare.
731         (default_external_stack_protect_fail): Declare.
732         (default_hidden_stack_protect_fail): Declare.
733         * config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
734         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
735         (trap): Use ud2.
736         (conditional_trap, conditional_trap_1): Remove.
737         (stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
738         (stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
739         * doc/md.texi (stack_protect_set, stack_protect_test): New.
740         * doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
741         (TARGET_STACK_PROTECT_FAIL): New.
742
743         * libgcc-std.ver (GCC_4.1.0): New.
744         * libgcc.h (__stack_chk_guard): Declare.
745         (__stack_chk_fail, __stack_chk_fail_local): Declare.
746         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
747         * mklibgcc.in (lib2funcs): Add them.
748
749 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
750
751         PR c/21911
752         * c-common.c (check_function_sentinel): Pass in named argument
753         list, skip over named arguments before looking for a sentinel.
754         (check_function_arguments): Pass in named argument list.
755         * c-common.h (check_function_arguments): Likewise.
756         * c-typeck.c (build_function_call): Likewise.
757
758 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
759
760         * genautomata.c (decl_mode_check_failed,
761         regexp_mode_check_failed): Add noreturn attribute.
762
763 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
764
765         * cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
766         * doc/invoke.texi: Fix typos.
767
768         * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
769         convert.c, lambda-code.c, predict.c, tree-cfg.c,
770         tree-complex.c, tree-data-ref.c, tree-if-conv.c,
771         tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
772         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
773         tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
774         tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
775         tree.c: Use fold_buildN instead of fold (buildN (...)).
776
777 2005-06-26  Gerald Pfeifer  <gerald@pfeifer.com>
778
779         * doc/install.texi (Specific): Do not specify the concrete
780         versions of GCC provided by Cygwin.  Simplify the part on
781         building on Cygwin.
782
783 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
784
785         * config/arc/arc-protos.c: Remove the prototype for
786         arc_finalize_pic.
787         * config/arc/arc.c (arc_finalize_pic): Remove.
788         * config/arc/arc.h (FINALIZE_PIC): Likewise.
789         * config/bfin/bfin.h (FINALIZE_PIC): Likewise.
790         * config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
791
792 2005-06-26  Jakub Jelinek  <jakub@redhat.com>
793
794         PR middle-end/17965
795         * calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
796         instead of alloca for really big argument sizes.
797
798         PR middle-end/22028
799         * gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
800         earlier in the function.
801
802         * regrename.c (copy_value): Don't replace fixed or global
803         regs with older regs.
804
805         * defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
806         * function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
807         instead of preprocessor conditionals.
808         (assign_stack_local_1, assign_stack_temp_for_type): Likewise.
809         * cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
810         depending on if it was or was not defined previously.
811         * doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
812         definition of FRAME_GROWS_DOWNWARD means frame grows downward.
813         * doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
814         * config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0.  Update
815         comment.
816         * config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
817         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
818         * config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
819         * config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
820         * config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
821         * config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
822         * config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
823         * config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1.  Update
824         comment.
825         * config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
826         * config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
827         * config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
828         * config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
829         * config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
830         * config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
831         * config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
832         * config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
833         * config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
834         * config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
835         * config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
836         * config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
837         * config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
838         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
839         * config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
840         * config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
841         * config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
842         * config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
843         * config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
844
845 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
846
847         PR tree-optimization/22026
848         * tree-vrp.c (extract_range_from_binary_expr): Drop to
849         VR_VARYING if a binary expression involving VR_ANTI_RANGE is
850         PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
851
852 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
853
854         * Makefile.in (OBJS-common): Remove duplicate object file
855         names.
856
857 2005-06-25  Jan Hubicka  <jh@suse.cz>
858
859         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
860         * cfg.c (update_bb_profile_for_threading): Fix rescaling.
861
862         * passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
863         when not neecesary
864         (rest_of_compilation): Fix conditional on branch prob pass.
865         * predict.c (tree_estimate_probability): Enable strip_builtin_expect
866         when not loop optimizing.
867
868 2005-06-25  Bernd Schmidt  <bernd.schmidt@analog.com>
869
870         * config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
871         New patterns.
872         (movbi): Add alternative to set CC to zero.
873         (compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
874         compare_ltu): Now named patterns.
875
876 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
877
878         * all files: Update FSF address in copyright headers.
879
880 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
881
882         * gengtype.c: Update FSF address in copyright header.
883         (create_file): Update FSF in outputed copyright header.
884
885 2005-06-24  Kazu Hirata  <kazu@codesourcery.com>
886
887         * cfglayout.c (block_locators_locs, line_locators_locs,
888         line_locators_lines, file_locators_locs): Change the type to
889         VEC(int,heap)*.
890         (insn_locators_initialize, change_scope, insn_scope,
891         locator_line, insn_line, locator_file): Use VEC instead of
892         VARRAY.
893
894 2005-06-24  Jason Merrill  <jason@redhat.com>
895
896         * tree-nrv.c (tree_nrv): Fix to check assignments to the
897         RESULT_DECL rather than just RETURN_EXPRs.
898         (finalize_nrv_r): Adjust.
899
900 2005-06-24  Jan Hubicka  <jh@suse.cz>
901
902         * tree-optimize.c (init_tree_optimization_passes): Fix flags of
903         all_passes and all_ipa_passes.
904
905         * c-common.c: Include cgraph.h
906         (handle_externally_visible_attribute): New function.
907         (c_common_att): Add "externally_visible" attribute.
908         * cgraph.c (decide_is_variable_needed): Obey externally
909         visible flag.
910         (cgraph_varpool_finalize_decl): Avoid redundant checking.
911         * cgraph.h (struct cgraph_node): New flag externally_visible.
912         (decide_is_function_needed): Obey externally visible flag.
913         (cgraph_finalize_function): Avoid redundant checks.
914         (cgraph_function_and_variable_visibility): Bring symbols local
915         when asked for.
916         * common.opt (fwhole-program): New flag.
917
918         * doc/invoke.texi (-fwhole-program): Document.
919
920 2005-06-24  Mark Mitchell  <mark@codesourcery.com>
921
922         PR 22171
923         * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
924         before use.
925
926 2005-06-23  Mark Mitchell  <mark@codesourcery.com>
927
928         PR 22000
929         * tree-ssa-operands.c (get_expr_operands): Check the volatility of
930         the FIELD_DECL and set s_ann->has_volatile_ops accordingly.
931
932 2005-06-24  Jan Hubicka  <jh@suse.cz>
933
934         * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
935
936 2005-06-23  Jeff Law  <law@redhat.com>
937
938         * tree-optimize.c (init_tree_optimization_passes): Move
939         copy prop pass to run just before VRP.
940         * tree-vrp.c (remove_range_assertions): Remove copies created
941         by ASSERT_EXPR removal.
942
943 2005-06-23  Kazu Hirata  <kazu@codesourcery.com>
944
945         PR tree-optimization/22117
946         * tree-vrp.c (extract_range_from_binary_expr): Compute a
947         correct range when adding two pointers.
948
949 2005-06-23  Jason Merrill  <jason@redhat.com>
950
951         PR c++/19317
952         Leave the return slot target in the MODIFY_EXPR rather than making
953         it an argument, but only use it if the CALL_EXPR has a flag set.
954         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
955         CALL_EXPR_RETURN_SLOT_OPT.
956         * calls.c (expand_call): Adjust.
957         * tree-inline.c (expand_call_inline): Adjust.
958         * tree-pretty-print.c (dump_generic_node): Adjust.
959
960         And set the flag as appropriate.
961         * gimplify.c (gimplify_modify_expr_rhs): Set
962         CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
963         * tree-nrv.c (execute_return_slot_opt): Set
964         CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
965         * tree-pass.h: Declare pass_return_slot.
966         * tree-optimize.c (init_tree_optimization_passes): Add it.
967         
968 2005-06-23  David Edelsohn  <edelsohn@gnu.org>
969
970         PR target/21760
971         * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
972         * config/rs6000/rs6000.md: Move atomic instructions to ...
973         * config/rs6000/sync.md: Here.
974         Change sync_compare_and_swap<mode> to define_expand.  All stwcx
975         patterns test PPC405_ERRATUM77.
976
977 2005-06-23  Jan Hubicka  <jh@suse.cz>
978         
979         * tree-inline.c (copy_body_r): Remap labels correctly.
980
981 2005-06-22  Alan Modra  <amodra@bigpond.net.au>
982
983         * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
984
985 2005-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
986
987         PR middle-end/20593
988         * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
989         the same as the other cast operands.
990         (output_addressed_constants): Likewise.
991
992 2005-06-21  Jeff Law  <law@redhat.com>
993
994         * tree-vrp.c (extract_range_from_unary_expr): Handle type
995         conversions better.
996
997 2005-06-21  Dorit Nuzman  <dorit@il.ibm.com>
998
999         * genopinit.c (vec_shl_optab, vec_shr_optab): Initialize new optabs.
1000         (reduc_plus_optab): Removed.  Replcaed with...
1001         (reduc_splus_optab, reduc_uplus_optab): Initialize new optabs.
1002         * optabs.c (optab_for_tree_code): Return reduc_splus_optab or
1003         reduc_uplus_optab instead of reduc_plus_optab.
1004         (expand_vec_shift_expr): New function.
1005         (init_optabs): Initialize new optabs. Remove initialization of
1006         reduc_plus_optab.
1007         (optab_for_tree_code): Return vec_shl_optab/vec_shr_optab
1008         for VEC_LSHIFT_EXPR/VEC_RSHIFT_EXPR.
1009         * optabs.h (OTI_reduc_plus): Removed. Replaced with...
1010         (OTI_reduc_splus, OTI_reduc_uplus): New.
1011         (reduc_plus_optab): Removed.  Replcaed with...
1012         (reduc_splus_optab, reduc_uplus_optab): New optabs.
1013         (vec_shl_optab, vec_shr_optab): New optabs.
1014         (expand_vec_shift_expr): New function declaration.
1015
1016         * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): New tree-codes.
1017         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
1018         * expr.c (expand_expr_real_1): Handle new tree-codes.
1019         * tree-pretty-print.c (dump_generic_node, op_symbol, op_prio): Likewise.
1020         * tree-vect-generic.c (expand_vector_operations_1): Add assert.
1021
1022         * tree-vect-transform.c (vect_create_epilog_for_reduction): Add two
1023         alternatives for generating reduction epilog code.
1024         (vectorizable_reduction): Don't fail of direct reduction support is
1025         not available.
1026         (vectorizable_target_reduction_pattern): Likewise.
1027
1028         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
1029         reduc_umax_v4si, reduc_smin_v4si, reduc_smin_v4sf, reduc_umin_v4si,
1030         reduc_plus_v4si, reduc_plus_v4sf): Removed.
1031         (vec_shl_<mode>, vec_shr_<mode>, altivec_vsumsws_nomode,
1032         reduc_splus_<mode>, reduc_uplus_v16qi): New.
1033
1034 2005-06-20  Daniel Berlin  <dberlin@dberlin.org>
1035
1036         * c-typeck.c (build_function_call): Set fundecl = function again.
1037         * tree-ssa-alias.c (find_used_portions): Address taking causes the
1038         entire variable to be used.
1039         * tree-ssa-structalias.c (do_structure_copy): Fix handling of
1040         unknown size variables, and structure copies from addressof
1041         operations.  Simplify how we do *a = *b type structure copies.
1042         (init_base_vars): Add ANYTHING = &ANYTHING constraint the right
1043         way.  READONLY's address is not taken by default.
1044         INTEGER dereference should point to anything.
1045         (create_variable_info_for): It's okay for the first field to not start
1046         at 0.
1047
1048 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1049
1050         config/sh/linux.h (FUNCTION_PROFILER): Constify a char*.
1051
1052 2005-06-20  Roger Sayle  <roger@eyesopen.com>
1053             Fariborz Jahanian <fjahanian@apple.com>
1054
1055         * combine.c (simplify_set): Simplify setting of CC register
1056         by removing redundant compare with 0 on RHS.
1057
1058 2005-06-20  Jan Beulich  <jbeulich@novell.com>
1059
1060         * config/i386/netware-libgcc.def: Update copyright.
1061         * config/i386/netware-libgcc.exp (__divdc3, __divsc3, __divxc3,
1062         __muldc3, __mulsc3, __mulxc3, __powidf2, __powisf2, __powixf2): Add.
1063         * config/i386/netware.c (gen_stdcall_decoration,
1064         gen_fastd_decoration): Merge into ...
1065         (gen_stdcall_or_fastcall_decoration): ... this. Adjust to match
1066         WinNT's changes.
1067         (gen_regparm_prefix): Adjust to match i386_nlm_encode_section_info.
1068         (i386_nlm_encode_section_info): Adjust to match WinNT's changes.
1069         * config/i386/t-nwld (SHLIB_LINK): Also create libgcc.imp alias of
1070         libgcc_s.imp. Use 'expr' rather than $(()) shell expressions.
1071         * gthr-nks.h (__gthread_objc_mutex_allocate): Kill another dubious
1072         use of NX_MUTEX_RECURSIVE.
1073
1074 2005-06-19  Roger Sayle  <roger@eyesopen.com>
1075
1076         * fold-const.c (swap_tree_comparison): Add support for unordered
1077         floating point comparisons.
1078         * tree-vrp.c (opposite_comparison): Delete.
1079         (extract_range_from_assert): Replace calls to opposite_comparison
1080         with calls to swap_tree_comparison.
1081         (register_edge_assert_for): Likewise.
1082         (vrp_evaluate_conditional): Likewise.
1083
1084 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1085
1086         * integrate.c (allocate_initial_values): Update the references
1087         to global_live_at_start and global_live_at_end.
1088
1089 2005-06-20  Jan Hubicka  <jh@suse.cz>
1090
1091         * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
1092         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
1093         when asked for.
1094         * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
1095         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
1096         Update call of duplicate_loop_to_header_edge.
1097         (apply_opt_in_copies): Clear out aux pointers.
1098
1099 2005-06-19  Joseph S. Myers  <joseph@codesourcery.com>
1100
1101         * config/i386/i386.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
1102         (ix86_mangle_fundamental_type): New.
1103         * config/ia64/ia64.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
1104         (ia64_mangle_fundamental_type): New.
1105
1106 2005-06-19  Roger Sayle  <roger@eyesopen.com>
1107
1108         * c-decl.c (grokdeclarator): Only check TREE_OVERFLOW on
1109         INTEGER_CST nodes.
1110         * c-typeck.c (build_c_cast): Only preserve TREE_OVERFLOW on
1111         CONSTANT_CLASS_P nodes.
1112
1113 2005-06-19  Richard Henderson  <rth@redhat.com>
1114
1115         * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error;
1116         the shift is always required.
1117
1118 2005-06-19  Richard Henderson  <rth@redhat.com>
1119
1120         * config/ia64/ia64-modes.def (V4SF): Add.
1121         * config/ia64/ia64.c (ia64_legitimate_constant_p): Handle CONST_VECTOR.
1122         * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Allow vector to 
1123         integer mode changes in fp regs.
1124         * config/ia64/ia64.md (UNSPEC_VECT_EXTR): New.
1125         * config/ia64/vect.md (smaxv2sf3, sminv2sf3): Fix typos in names.
1126         (reduc_plus_v2sf, reduc_smax_v2sf, reduc_smin_v2sf): New.
1127         (vcondv2sf): Use gen_fpack
1128         (fpack): Remove * from name.
1129         (fswap, fmix_l, fmix_r, fmix_lr): New.
1130         (vec_setv2sf, vec_extractv2sf_0_le, vec_extractv2sf_0_be): New.
1131         (vec_extractv2sf_1, vec_extractv2sf): New.
1132
1133 2005-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1134
1135         * combine.c (make_compound_operation): Use simplify_subreg.  Delete
1136         a optimization already done by simplify_subreg.
1137
1138 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
1139
1140         * loop.c (scan_loop): Do not consider insns setting the frame
1141         pointer to be candidates for hoisting.
1142
1143 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
1144
1145         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf):
1146         Remove instruction patterns.
1147         (*cmpfp_0): New instruction pattern. Set "unit" attribute to "i387".
1148         (*cmpfp_sf, *cmpfp_df, *cmpfp_xf, *cmpfp_u, *_cmpfp_<mode>):
1149         Set "unit" attribute to "i387".
1150         (*pushsf, *pushsf_rex64, *pushdf_nointeger, *pushdf_integer)
1151         (*pushxf_nointeger, *pushxf_integer): Set "unit" attribute to "i387"
1152         for alternative 0.
1153         (*truncdfsf_mixed, *truncdfsf_i387, *truncxfsf2_mixed)
1154         (*truncxfsf2_i387, *truncxfdf2_mixed, *truncxfdf2_i387): Set "unit"
1155         attribute to "i387" when "type" attribute equals "multi".
1156         (*floathisf2_i387, *floatsisf2_mixed, *floatsisf2_i387)
1157         (*floatdisf2_mixed, *floatdisf2_i387, *floathidf2_i387)
1158         (*floatsidf2_mixed, *floatsidf2_i387, *floatdidf2_mixed)
1159         (*floatdidf2_i387, floathixf2, floatsixf2, floatdixf2): Set "unit"
1160         attribute to "i387" when "type" attribute equals "multi".
1161         * config/i386/mmx.md (*mov<mode>_internal_rex64)
1162         (*mov<mode>_internal, *movv2sf_internal_rex64, *movv2sf_internal):
1163         Set "unit" attribute to "mmx" when "type" attribute equals "ssecvt".
1164         (mmx_pmovmskb): Correct wrong "type" and "mode" attributes.
1165         * config/i386/sse.md (sse_cvtps2pi, sse_cvttps2pi, sse_cvtpd2di)
1166         (sse_cvttpd2pi): Set "unit" attribute to "mmx".
1167         (sse2_cvtpi2pd): Split register constraints. Set "unit" attribute
1168         to "mmx" for "y" operand 1.
1169
1170 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
1171
1172         * config/i386/i386.c (ix86_function_arg_regno_p): Add MMX_REGNO_P
1173         for TARGET_MMX.  Use MMX_REGPARM_MAX and SSE_REGPARM_MAX for MMX
1174         and SSE registers to determine if regno is valid.
1175         (ix86_function_value_regno_p): Depend FIRST_FLOAT_REG on
1176         TARGET_FLOAT_RETURNS_IN_80387 also for TARGET_64BIT. Clean up.
1177
1178 2005-06-18  Richard Henderson  <rth@redhat.com>
1179
1180         * tree-complex.c (init_dont_simulate_again): Clear DONT_SIMULATE_AGAIN
1181         for control-altering statements; set it again for returns.
1182         (complex_visit_stmt): Return SSA_PROP_VARYING for stmts that are
1183         not MODIFY_EXPR.
1184
1185 2005-06-18  Richard Henderson  <rth@redhat.com>
1186
1187         PR tree-opt/22116
1188         * tree-ssa-pre.c (create_expression_by_pieces): Set
1189         DECL_COMPLEX_GIMPLE_REG_P.
1190         (insert_into_preds_of_block): Likewise.
1191
1192 2005-06-18  Steven Bosscher  <stevenb@suse.de>
1193
1194         * Makefile.in: Fix tree-cfgcleanup.c dependencies.
1195
1196 2005-06-18  Richard Henderson  <rth@redhat.com>
1197
1198         * expr.c (store_constructor): Use store of 0 to indicate value
1199         death instead of a clobber.
1200
1201         * config/i386/i386.c (ix86_expand_reduc_v4sf): New.
1202         * config/i386/i386-protos.h (ix86_expand_reduc_v4sf): Declare.
1203         * config/i386/sse.md (reduc_plus_v4sf): New.
1204         (reduc_smax_v4sf, reduc_smin_v4sf): New.
1205
1206 2005-06-18  James A. Morrison  <phython@gcc.gnu.org>
1207
1208         * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
1209         nonnegative values of X.
1210
1211 2005-06-18  Uros Bizjak  <uros@kss-loka.si>
1212
1213         * doc/md.texi (Standard Names): Change insn pattern name
1214         from truncM2 to btruncM2 for 'trunc' built-in description.
1215         Add rintM2 insn pattern description.
1216
1217 2005-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1218
1219         * c-decl.c (locate_old_decl): Add format attribute.
1220         (implicit_decl_warning): Likewise.
1221
1222         * diagnostic.h (verbatim): Move ...
1223         * toplev.h (verbatim): ... here.  Add ATTRIBUTE_GCC_DIAG.
1224         * pretty-print.h (pp_verbatim): Add ATTRIBUTE_GCC_PPDIAG.
1225
1226 2005-06-18  Roger Sayle  <roger@eyesopen.com>
1227
1228         PR target/22083
1229         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Remove definition.
1230
1231 2005-06-18  Dorit Nuzman  <dorit@il.ibm.com>
1232
1233         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): New
1234         tree-codes.
1235         * optabs.h (OTI_reduc_smax, OTI_reduc_umax, OTI_reduc_smin,
1236         OTI_reduc_umin, OTI_reduc_plus): New optabs for reduction. 
1237         (reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
1238         reduc_plus_optab): New optabs for reduction.
1239         * expr.c (expand_expr_real_1): Handle new tree-codes.
1240         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
1241         * tree-pretty-print.c (dump_generic_node, op_prio, op_symbol): Handle
1242         new tree-codes.
1243         * optabs.c (optab_for_tree_code): Handle new tree-codes.
1244         (init_optabs): Initialize new optabs.
1245         * genopinit.c (optabs): Define handlers for new optabs. 
1246
1247         * tree-vect-analyze.c (vect_analyze_operations): Fail vectorization in
1248         case of a phi that is marked as relevant. Call vectorizable_reduction.
1249         (vect_mark_relevant): Phis may be marked as relevant.
1250         (vect_mark_stmts_to_be_vectorized): The use corresponding to the 
1251         reduction variable in a reduction stmt does not mark its defining phi
1252         as relevant. Update documentation accordingly.
1253         (vect_can_advance_ivs_p): Skip reduction phis.
1254         * tree-vect-transform.c (vect_get_vec_def_for_operand): Takes
1255         additional argument. Handle reduction.
1256         (vect_create_destination_var): Update call to vect_get_new_vect_var.
1257         Handle non-vector argument.
1258         (get_initial_def_for_reduction): New function.
1259         (vect_create_epilog_for_reduction): New function. 
1260         (vectorizable_reduction): New function.
1261         (vect_get_new_vect_var): Handle new vect_var_kind.       
1262         (vectorizable_assignment, vectorizable_operation, vectorizable_store,
1263         vectorizable_condition): Update call to vect_get_new_vect_var.
1264         (vect_transform_stmt): Call vectorizable_reduction.
1265         (vect_update_ivs_after_vectorizer): Skip reduction phis.
1266         (vect_transform_loop): Skip if stmt is both not relevant and not live.
1267         * tree-vectorizer.c (reduction_code_for_scalar_code): New function.
1268         (vect_is_simple_reduction): Was empty - added implementation.
1269         * tree-vectorizer.h (vect_scalar_var): New enum vect_var_kind value.
1270         (reduc_vec_info_type): New enum vect_def_type value.
1271         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
1272         reduc_umax_v4si, reduc_smin_v4si, reduc_umin_v4sf, reduc_smin_v4sf,
1273         reduc_plus_v4si, reduc_plus_v4sf): New define_expands.
1274
1275         * tree-vect-analyze.c (vect_determine_vectorization_factor): Remove
1276         ENABLE_CHECKING around gcc_assert.
1277         * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
1278         (vect_do_peeling_for_alignment, vect_transform_loop, 
1279         vect_get_vec_def_for_operand): Likewise.
1280
1281 2005-06-18  Joseph S. Myers  <joseph@codesourcery.com>
1282
1283         * config/ia64/ia64.c (ia64_function_arg): Set up a PARALLEL for a
1284         big-endian unnamed __float80 value.
1285
1286 2005-06-18  Richard Henderson  <rth@redhat.com>
1287
1288         PR tree-opt/22103
1289         * tree-sra.c (generate_copy_inout): Handle SSA_NAME complex
1290         destinations.
1291
1292 2005-06-17  Richard Henderson  <rth@redhat.com>
1293
1294         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use
1295         initialize_original_copy_tables and free_original_copy_tables.
1296         (vect_do_peeling_for_alignment): Likewise.
1297
1298 2005-06-17  Pat Haugen  <pthaugen@us.ibm.com>
1299
1300         * bb-reorder.c (find_traces_1_round): Use succ block frequency
1301         instead of edge frequency for calls to better_edge_p.
1302
1303 2005-06-17  Andrew Pinski  <pinskia@physics.uc.edu>
1304
1305         PR tree-opt/22105
1306         * tree-ssa-loop-im.c (for_each_index): Handle COMPLEX_CST.
1307
1308 2005-06-17  Steve Ellcey  <sje@cup.hp.com>
1309
1310         PR target/19889
1311         * config/ia64/hpux.h (FUNCTION_PROFILER): New (dummy).
1312         (PROFILE_HOOK): New.
1313         (PROFILE_BEFORE_PROLOGUE): Undef.
1314         (NO_PROFILE_COUNTERS): New.
1315         * config/ia64/ia64-protos.h (ia64_profile_hook): New.
1316         * config/ia64/ia64.c (ia64_compute_frame_size): Add ifdef.
1317         (gen_mcount_func_rtx): New.
1318         (ia64_profile_hook): New.
1319         * config/ia64/ia64.md (ip_value): New.
1320
1321 2005-06-17  Devang Patel  <dpatel@apple.com>
1322
1323         * config/rs6000/predicates.md (s5bit_cint_operand,
1324         u5bit_cint_operand): New.
1325         * config/rs6000/altivec.md (altivec_vspltb, altivec_vsplth,
1326         altivec_vspltisw_v4sf): Use new 5 bit constant operand predicates.
1327         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Fix signed
1328         5 bit constant check.
1329         
1330 2005-06-17  Richard Henderson  <rth@redhat.com>
1331
1332         * local-alloc.c (update_equiv_regs): Update reg_equiv_init
1333         properly when moving an initialization insn.
1334
1335 2005-06-17  Paolo Bonzini  <bonzini@gnu.org>
1336
1337         * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
1338         passed variable.
1339         * configure.ac: Regenerate.
1340
1341 2005-06-17  Jan Hubicka  <jh@suse.cz>
1342
1343         * tree-optimize.c (execute_ipa_pass_list): New.
1344         (ipa_passes): Use it.
1345
1346 2005-06-16  Richard Henderson  <rth@redhat.com>
1347
1348         PR tree-opt/22022
1349         * tree-complex.c (update_phi_components): Avoid no-op moves.
1350
1351 2005-06-16  Joseph S. Myers  <joseph@codesourcery.com>
1352
1353         * Makefile.in (cc1-checksum.c): Use
1354         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
1355
1356 2005-06-16  Geoffrey Keating  <geoffk@apple.com>
1357
1358         * gengtype.c (adjust_field_rtx_def): Don't add a skip to
1359         basic_block types.
1360
1361         * config/t-slibgcc-darwin (SHLIB_SOVERSION): Rename from
1362         SHLIB_MINOR.
1363         (SHLIB_REVISION): Delete.
1364         (SHLIB_VERSTRING): Update to compensate.
1365         (SHLIB_SONAME): Just use one '.' in the name.
1366
1367 2005-06-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
1368
1369         PR tree-optimization/22018
1370         * tree-vrp.c (vrp_int_const_binop): Overhaul handling of overflow.
1371
1372 2005-06-16  Richard Henderson  <rth@redhat.com>
1373
1374         PR tree-opt/22035
1375         * builtins.c (fold_builtin_complex_mul): Remove.
1376         (fold_builtin_complex_div): Remove.
1377         (fold_builtin_1): Don't call them.
1378         * fold-const.c (fold_complex_add, fold_complex_mult_parts,
1379         fold_complex_mult, fold_complex_div_parts, fold_complex_div): Remove.
1380         (fold_binary): Don't call them.  Don't expand complex comparisons to
1381         elementary comparisons.
1382         * tree-complex.c (init_dont_simulate_again): Enhance search for 
1383         stmts that require decomposition.
1384         (complex_visit_stmt): Handle RETURN_EXPR properly.
1385         (create_components): Handle no referenced variables properly.
1386         * tree.h (fold_complex_mult_parts): Remove.
1387         (fold_complex_div_parts): Remove.
1388
1389 2005-06-16  Richard Guenther  <rguenth@gcc.gnu.org>
1390
1391         * doc/extend.texi: Document sseregparm target attribute.
1392         Clarify fastcall and regparm documentation.
1393         * config/i386/i386.h: Adjust float_in_sse documentation.
1394         * config/i386/i386.c: Add new target attribute sseregparm.
1395         (ix86_handle_cdecl_attribute, ix86_handle_regparm_attribute):
1396         Merge into ...
1397         (ix86_handle_cconv_attribute): ... here.  Also handle
1398         sseregparm attribute.
1399         (ix86_comp_type_attributes): Compare sseregparm attributes.
1400         (ix86_function_sseregparm): New function, split out from ...
1401         (init_cumulative_args): ... here.  Use to decide use
1402         of SSE registers and error in case of missing support.
1403         (ix86_value_regno): Likewise.
1404         (function_arg_advance): Do not bail out for DFmode if we need
1405         to pass doubles in registers.
1406         (function_arg): Likewise.
1407
1408 2005-06-16  Paolo Bonzini  <bonzini@gnu.org>
1409             Daniel Jacobowitz  <dan@codesourcery.com>
1410             Alan Modra <amodra.bigpond.net.au>
1411
1412         * configure.ac (gcc_version): Set near the beginning.
1413         (as, ld, nm): Do not link in-tree tools.  Set gcc_cv_* if tools are
1414         found in the tree.  Use gcc_AC_PROG to find the tools in the system.
1415         (objdump): Do not look for it.
1416         * Makefile.in (NM_FOR_TARGET): Point to ./nm
1417         (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
1418         ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
1419         (as, ld, nm): New rules.
1420         (libgcc.mk): Depend on them.
1421         * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
1422         gcc_AC_BUILD_EXEEXT): New.
1423         (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
1424         * configure: Regenerate.
1425
1426 2005-06-16  Jan Hubicka  <jh@suse.cz>
1427
1428         * basic-block.h (rtl_bb_info): Break out head_, end_,
1429         global_live_at_start, global_live_at_end from ...
1430         (basic_block_def): ... here; update all references
1431         (BB_RTL): New flag.
1432         (init_rtl_bb_info): Declare.
1433         * cfgexpand.c (expand_gimple_basic_block): Init bb info, set BB_RTL
1434         flag.
1435         * cfgrtl.c: Include ggc.h
1436         (create_basic_block_structure): Init bb info.
1437         (rtl_verify_flow_info_1): Check BB_RTL flag and rtl_bb_info pointer.
1438         (init_rtl_bb_info): New function.
1439         (rtl_merge_block, cfglayout_merge_block): Copy global_live_at_end here.
1440         * cfghooks.c (merge_block): Do not copy global_live_at_end here.
1441         * cfg.c (clear_bb_flags): Skip BB_RTL flag.
1442         (dump_flow_info): Gueard global_live_* dumping.
1443
1444         * Makefile.in (cfg.o): Add new dependencies.
1445         * basic-block.h (reorder_block_def): Kill
1446         original/copy/duplicated/copy_number fields.
1447         (BB_DUPLICATED): New flag.
1448         (initialize_original_copy_tables, free_original_copy_tables,
1449         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New.
1450         * cfg.c: Include hashtab.h and alloc-pool.h
1451         (bb_original, bb_copy, original_copy_bb_pool): New static vars.
1452         (htab_bb_copy_original_entry): New struct.
1453         (bb_copy_original_hash, bb_copy_original_eq): New static functions.
1454         (initialize_original_copy_tables, free_original_copy_tables,
1455         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New
1456         global functions.
1457         * cfghooks.c (duplicate_block): Update original/copy handling.
1458         * cfglayout.c (fixup_reorder_chain): Likewise.
1459         (cfg_layout_initialize): Initialize orignal_copy tables.
1460         (cfg_layout_finalize): FInalize original_copy tables.
1461         (can_copy_bbs_p): Use BB_DUPLICATED flag.
1462         (copy_bbs): Likewise.
1463         * cfgloopmanip.c (update-single_exits_after_duplication): Likewise.
1464         (duplicate_loop_to_header_edge): Likewise; update handling of
1465         copy_number.
1466         (loop_version): Likewise.
1467         * dominance.c (get_dominated_by_region): Use BB_DUPLICATED_FLAG.
1468         * except.c (expand_resx_expr): Check that reg->resume is not set.
1469         * loop-unroll.c (unroll_loop_constant_iterations,
1470         unroll_loop_runtime_iterations, apply_opt_in_copies): Update
1471         copy/original handling.
1472         * loop-unwitch.c (unswitch_loop): Likewise.
1473         * tree-cfg.c (create_bb): Do not initialize RBI.
1474         (disband_implicit_edges): Do not kill RBI.
1475         (add_phi_args_after_copy_bb): Use new original/copy mapping.
1476         (add_phi_args_after_copy): Use BB_DUPLICATED flag.
1477         (tree_duplicate_sese_region): Update original/copy handling.
1478         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1479         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
1480         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1481
1482 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
1483
1484         PR tree-opt/21923
1485         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Conversions between
1486         integer types whos ranges are different are not useless.
1487
1488 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
1489
1490         PR tree-opt/22024
1491         * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
1492         rank.
1493
1494 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
1495
1496         * tree-ssa-structalias.c (dump_solution_for_var): Reformat
1497         output.
1498         (dump_sa_points_to_info): Make extern.
1499         (debug_sa_points_to_info): New.
1500         * tree-ssa-structalias.h (TREE_SSA_STRUCTALIAS_H): Rename from
1501         TREE_ALIAS_COMMON.
1502         (dump_sa_points_to_info): Declare.
1503         (debug_sa_points_to_info): Declare.
1504
1505 2005-06-15  Joseph S. Myers  <joseph@codesourcery.com>
1506
1507         * c-tree.h (default_function_array_conversion): Declare.
1508         * c-typeck.c (default_function_array_conversion): Export.  Correct
1509         comment.
1510         (default_conversion): Do not call
1511         default_function_array_conversion.  Do not allow FUNCTION_TYPE.
1512         (build_function_call): Call default_function_array_conversion on
1513         the function.
1514         (convert_arguments): Do not call it on the function arguments.
1515         (build_unary_op): Do not allow ARRAY_TYPE or FUNCTION_TYPE for
1516         TRUTH_NOT_EXPR.  Call default_function_array_conversion for taking
1517         address of ARRAY_REF.
1518         (build_compound_expr): Do not call
1519         default_function_array_conversion.
1520         (build_c_cast): Do not call default_function_array_conversion.
1521         (convert_for_assignment): Do not call default_conversion.
1522         (digest_init): Call default_function_array_conversion to convert
1523         string constants and compound literals to pointers, but not
1524         otherwise.
1525         (output_init_element): Likewise.
1526         (build_asm_expr): Do not call default_function_array_conversion.
1527         (c_process_expr_stmt): Likewise.
1528         (c_objc_common_truthvalue_conversion): Likewise.  Do not allow
1529         FUNCTION_TYPE.
1530         * c-parser.c (c_parser_expression_conv): New.
1531         (c_parser_asm_operands, c_parser_expr_list): Add convert_p
1532         argument.  All callers changed.  Call
1533         default_function_array_conversion if convert_p.
1534         (c_parser_initializer, c_parser_initval): Call
1535         default_function_array_conversion except for string constants and
1536         compound literals.
1537         (c_parser_initelt): Call default_function_array_conversion for
1538         ObjC expression received.
1539         (c_parser_statement_after_labels): Call c_parser_expression_conv
1540         for return and expression statements.
1541         (c_parser_paren_condition, c_parser_for_statement,
1542         c_parser_conditional_expression): Call c_parser_expression_conv.
1543         (c_parser_expr_no_commas, c_parser_conditional_expression,
1544         c_parser_binary_expression, c_parser_cast_expression,
1545         c_parser_unary_expression): Call
1546         default_function_array_conversion.
1547
1548 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
1549
1550         * tree-vrp.c (vrp_int_const_binop): Do not handle MAX_EXPR
1551         when the result overflows.
1552
1553 2005-06-15  David Ung  <davidu@mips.com>
1554
1555         * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp,
1556         24k and 24kx.
1557         
1558 2005-06-15  Richard Sandiford  <richard@codesourcery.com>
1559
1560         * doc/invoke.texi (-mips16): Fix typo.
1561
1562 2005-06-15  David Ung  <davidu@mips.com>
1563
1564         * config/mips/mips.h (GENERATE_MIPS16E): New definition.
1565         * config/mips/mips.md (zero_extend<SHORT:mode><GPR:mode>2):
1566         Changed expand condition to exclude generating of "and" if
1567         GENERATE_MIPS16E is true.
1568         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for
1569         matching mips16e zeb/zeh.
1570         (*extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for matching
1571         mips16e seb/seh. 
1572         (*extend<SHORT:mode><GPR:mode>2): Disable this pattern for
1573         GENERATE_MIPS16E. 
1574         * doc/invoke.texi (MIPS Options): Add comment to -mips16
1575         indicating MIPS16e ASE is used if targetting for MIPS32 or MIPS64.
1576         
1577 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
1578
1579         PR 22018
1580         * tree-vrp.c (vrp_int_const_binop): New.
1581         (extract_range_from_binary_expr): Call it.
1582         Unify handling division and multiplication.
1583
1584 2005-06-15  Aldy Hernandez  <aldyh@redhat.com>
1585
1586         * c-common.h (same_scalar_type_ignoring_signedness): Protoize.
1587
1588         * c-common.c (same_scalar_type_ignoring_signedness): New.
1589
1590         * c-typeck.c (build_binary_op): Check compatability of vector
1591         types.  Move error report after switch.
1592         Do not clobber code[01] on *_DIV_EXPR case.
1593
1594         * testsuite/gcc.dg/simd-1.c: Update error messages.
1595         * testsuite/gcc.dg/simd-1b.c: Re-enable tests.  Update error
1596         messages.
1597         * testsuite/gcc.dg/simd-2.c: Update error messages.
1598         * testsuite/gcc.dg/simd-4.c: New.
1599
1600 2005-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1601
1602         * Makefile.in (local-alloc.o): Depend on $(GGC_H) and reload.h.
1603         * local-alloc.c: Include "ggc.h" and "reload.h".
1604         (struct equivalence): New member is_arg_equivalence.
1605         (local_alloc): Always call update_equiv_regs.
1606         (update_equiv_regs): Allocate reg_equiv_init; set reg_equiv_init_size.
1607         Detect equivalences made by stores to memory in a second pass.
1608         Return early if not optimizing.
1609         Initialize reg_equiv_init for all equivalences; treat equivalences for
1610         REG_EQUIV notes existing before this pass specially.
1611         (no_equiv): Don't clear reg_equiv_init or remove notes if the
1612         is_arg_equivalence field is set.
1613         * reload.h (reg_equiv_init, reg_equiv_init_size): Declare.
1614         * reload1.c (reg_equiv_init): No longer static.
1615         (reg_equiv_init_size): New variable.
1616         (reload): Don't allocate reg_equiv_init; don't free it when done but
1617         clear it.
1618         Restructure equivalence set up code not to set reg_equiv_init, but to
1619         clear it when we can't use an equivalence.
1620         Undo change disabling equivalences for MEM_READONLY_P memrefs.
1621         Dump equivalencing insns to dump_file.
1622
1623 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
1624
1625         * config/mips/mips.c (machine_function): Add varargs_size field.
1626         (mips_setup_incoming_varargs): Store the amount of extra stack space
1627         there rather than in *pretend_size.  When saving registers, always
1628         expect virtual_incoming_args_rtx to point to the start of the
1629         pretend arguments.
1630         (mips_va_start): Remove alignment hack.  Handle all
1631         !EABI_FLOAT_VARARGS_P cases in the same way.
1632         (compute_frame_size): Handle varargs_size.  Remove the redundant
1633         !TARGET_OLDABI condition in the handling of pretend_args_size.
1634         (mips_initial_elimination_offset): Remove the now-redundant check
1635         of TARGET_NEWABI.
1636
1637 2005-06-14  Jeff Law  <law@redhat.com>
1638
1639         * tree-vrp.c (local_fold): Remove.
1640         (simplify_using_ranges): Use fold_convert, not local_fold.  Tweak
1641         DIV/MOD case slightly for readability.
1642
1643 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
1644
1645         PR mudflap/21023
1646         * tree-mudflap.c (mudflap_finish_file): Exclude non-public
1647         rather than static objects (!) from libmudflap registration.
1648
1649 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
1650
1651         * opt-functions.awk (global_state_p, needs_state_p, static_var): New.
1652         (var_ref): Take the option's flags as a second parameter.  Check
1653         static_var.
1654         * optc-gen.awk: Declare local state variables.  Pass flags to var_ref.
1655
1656 2005-06-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
1657
1658         PR target/20301
1659         * config/sparc/sol2.h (ASM_GENERATE_INTERNAL_LABEL): Emit
1660         unsigned index numbers.
1661
1662 2005-06-13  Geoffrey Keating  <geoffk@apple.com>
1663
1664         * Makefile.in (install-man): Doesn't really depend on installdirs.
1665         (various rules for installing manpages): Do depend on installdirs.
1666
1667 2005-06-14  Nathan Sidwell  <nathan@codesourcery.com>
1668
1669         * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
1670         read_encoded_value_with_base call.
1671         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
1672         * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
1673         * unwind-dw2.c (extract_cie_info): Fix aliasing in
1674         read_encoded_value call.
1675         (execute_cfa_program, uw_frame_state_for): Likewise.
1676
1677 2005-06-13  Roger Sayle  <roger@eyesopen.com>
1678
1679         PR rtl-optimization/22053
1680         * reg-stack.c (compensate_edge): Correct mistake in the assertion
1681         checking of EDGE_ABNORMAL_CALL edges; complex return values can
1682         result in the top two stack slots, st(0) and st(1), being live.
1683
1684 2005-06-13  Jeff Law  <law@redhat.com>
1685
1686         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
1687         simplify DIV, MOD or ABS expressions using VRP information.
1688         Remove WALK_DATA parameter.  Prototype and all callers updated.
1689         (eliminate_redundant_computations): Remove WALK_DATA parameter.
1690         Prototype and all callers updated.
1691         (optimize_stmt): WALK_DATA parameter is now unused.
1692
1693         * tree-vrp.c (local_fold): New function.  Like fold, but
1694         strips useless type conversions in the result.
1695         (simplify_using_ranges): New function, largely cribbed from
1696         tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
1697         (vrp_finalize): Call simplify_using_ranges.
1698
1699 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
1700
1701         * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
1702         assembler in 64-bit mode.
1703
1704 2005-06-13  David Edelsohn  <edelsohn@gnu.org>
1705
1706         Revert scc_operand patch.
1707         * config/rs6000/predicates.md (scc_operand): Delete.
1708         * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
1709
1710 2005-06-13  Zdenek Dvorak  <dvorakz@suse.cz>
1711
1712         PR middle-end/21985
1713         * fold-const.c (split_address_to_core_and_offset): Always return
1714         the address of the base object.
1715
1716 2005-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1717
1718         * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
1719
1720 2005-06-12  Richard Henderson  <rth@redhat.com>
1721
1722         PR tree-opt/21994
1723         * tree-complex.c (update_complex_components_on_edge): New.
1724         (update_parameter_components): Use it.
1725         (update_phi_components): Likewise.
1726         (expand_complex_move): Likewise for is_ctrl_altering_stmt.
1727
1728 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
1729
1730         PR tree-optimization/14796
1731         * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
1732         for unsigned types.
1733
1734 2005-06-12  Kazu Hirata  <kazu@codesourcery.com>
1735
1736         * cgraphunit.c, tree-ssa-loop-ivopts.c,
1737         tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
1738         config/sparc/sparc.c: Fix comment typos.
1739
1740 2005-06-12  Richard Earnshaw  <richard.earnshaw@arm.com>
1741
1742         * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
1743         (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
1744         * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
1745         (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
1746
1747 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
1748
1749         PR tree-optimization/14796
1750         * fold-const.c (fold_binary): Transform (A >> C) << C into
1751         one BIT_AND_EXPR.
1752         <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
1753
1754 2005-06-11  Geoffrey Keating  <geoffk@apple.com>
1755
1756         * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
1757         (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
1758         Handle SImode.
1759         (reg_or_sub_cint_operand): Likewise.
1760         (mask_operand): Handle DImode.
1761         (mask64_operand): Delete.
1762         (and64_operand): Delete.
1763         * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
1764         instead of mask64_operand.
1765         (print_operand): Likewise.
1766         (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
1767         reg_or_sub_cint_operand instead of *64_* variants.
1768         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
1769         instead of mask64_operand.
1770         * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
1771         of *64_* variants.
1772         (FP): New.
1773         (add_op2): Delete.
1774         (add<mode>3): Use reg_or_add_cint_operand.
1775         (sub_op2): Delete.
1776         (sub<mode>3): Use reg_or_sub_cint_operand.
1777         (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
1778         mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
1779         cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
1780         ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
1781         ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
1782         return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
1783         various unnamed patterns): New.
1784         (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
1785         cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
1786         ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
1787         return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
1788         udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
1789         cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
1790         ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
1791         return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
1792         movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
1793         Delete.
1794
1795 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1796
1797         * rtl.h (to_rtx_code): Remove.
1798         * machmode.h (to_machine_mode): Likewise.
1799         * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
1800         explicit cast.
1801         (apply_mode_maps): Likewise.
1802         (read_rtx_1): Likewise.
1803         (apply_code_macro): Replace to to_rtx_code with explicit cast.
1804         (check_code_macro): Likewise.
1805         (read_rtx_1): Likewise.
1806
1807 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1808
1809         * c-typeck.c (convert_for_assignment): Avoid checking
1810         OPT_Wc___compat, as it is always true.
1811
1812 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
1813
1814         * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
1815
1816 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
1817
1818         Fix PR tree-optimization/22005
1819         Fix PR tree-optimization/22025
1820         
1821         * tree-ssa-structalias.c (struct variable_info): Add has_union
1822         member.
1823         (create_variable_info_for):  Mark variables containing unions.
1824         Don't sort the field stack if notokay is true.
1825         (find_what_p_points_to): Convert variables containing unions back
1826         to their SFT's if necessary.
1827         
1828 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
1829
1830         * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
1831         is an INTEGER_CST before calling int_cst_value.
1832
1833 2005-06-10  Uros Bizjak  <uros@kss-loka.si>
1834
1835         PR target/21981
1836         * config/i386/i386.c (ix86_function_value_regno_p): Return true
1837         for FIRST_MMX_REG if TARGET_MMX.
1838         (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
1839         wrong comment.
1840         (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
1841         (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
1842
1843 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
1844
1845         * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
1846         and access function against chrec_dont_know.
1847           
1848 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
1849
1850         * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
1851         slightly.
1852         (exit_phi_for_loop_p): New function.
1853         (can_put_in_inner_loop): Ditto.
1854         (can_convert_to_perfect_nest): Ditto.
1855         (perfect_nestify): Create iv with right type.
1856         Rewrite statements in correct order.    
1857
1858 2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>
1859
1860         * tree-ssa-alias.c (new_type_alias): Use existing type
1861         tag if VAR has just one in its may_aliases list.
1862
1863 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
1864
1865         * rs6000/predicates.md (scc_operand): New.
1866         * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
1867
1868 2005-06-10  Dorit Nuzman  <dorit@il.ibm.com>
1869
1870         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
1871         dependence-distance modulo VF is 0 are recorded in the 
1872         SAME_ALIGN_REFs VEC in each DR.
1873         (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
1874         alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
1875         DR we want to peel for, is set to 0.
1876         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
1877         * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
1878         VEC.
1879         * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
1880         (_stmt_vec_info): Added new field same_align_refs.
1881         (STMT_VINFO_SAME_ALIGN_REFS): New macro.
1882
1883 2005-06-10  Nathan Sidwell  <nathan@codesourcery.com>
1884
1885         * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
1886
1887 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
1888
1889         * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
1890         * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
1891         * config/rs6000/rs6000.c (output_function_profiler): Obey
1892         NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
1893         for -fPIC.  Delete save_lr and substitute its value into strings.
1894
1895 2005-06-09  Dale Johannesen  <dalej@apple.com>
1896
1897         * config/i386/i386.c (optimization_options):  Make -fno-math-errno
1898         the default on Darwin.
1899         * config/rs6000/rs6000.c (optimization_options):  Ditto.
1900         * doc/invoke.texi (-fno-math-errno): Document.
1901
1902 2005-06-09  Dale Johannesen  <dalej@apple.com>
1903
1904         * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
1905         Change to TARGET_INVALID_WITHIN_DOLOOP.
1906
1907 2005-06-09  David Edelsohn  <edelsohn@gnu.org>
1908
1909         * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
1910         * config/rs6000/predicates.md (scc_eq_operand): New.
1911
1912 2005-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1913
1914         * config/sh/sh.md (mextr_rl): Set buffer size properly.
1915         (*mextr_lr): Likewise.
1916
1917 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1918
1919         PR c/21759
1920         * c.opt (Wc++-compat): New.
1921         * doc/invoke.texi (-Wc++-compat): Document.
1922         * c-typeck.c (convert_for_assignment): Check for implicit
1923         conversion void* -> T*.
1924
1925 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.edu>
1926
1927         * machmode.h (to_machine_mode): New.
1928         * rtl.h (to_rtx_code): Likewise.
1929         * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
1930         (print_c_condition): Convert return value of htab_find().
1931         (apply_code_macro): Add explicit cast when convertin to enums.
1932         (apply_mode_maps): Likewise.
1933         (check_code_macro): Likewise.
1934         (read_rtx_1): Likewise.
1935
1936 2005-06-09  Richard Henderson  <rth@redhat.com>
1937
1938         * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
1939         Use SCALAR_FLOAT_MODE_P.
1940         * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
1941         (fselect): Rename from fpcmp; use %F.
1942         (fpcmp): New.
1943
1944 2005-06-09  Jan Hubicka  <jh@suse.cz>
1945
1946         * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
1947         local statics when doing unit-at-a-time.
1948         (cgraph_varpool_assemble_pending_decls): Output debug info.
1949         * dwarf2out.c (decls_for_scope): Skip local statics.
1950         (dwarf2out_decl): Handle local statics.
1951         * passes.c (rest_of_decl_compilation): Do not differentiate
1952         local and global statics in unit-at-a-time.
1953         * tree-inline.c (remap_decls): Put local static into
1954         unexpanded_vars_list rather than introducing duplicated VAR_DECL
1955         node.
1956
1957 2005-06-09  Daniel Berlin  <dberlin@dberlin.org>
1958
1959         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
1960         prototype.
1961
1962 2005-06-08  Daniel Berlin  <dberlin@dberlin.org>
1963
1964         * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
1965         * tree-flow.h (find_what_p_points_to): Add prototype.
1966         (push_fields_onto_fieldstack): Ditto.
1967         (sort_fieldstack): Ditto.
1968         * tree-optimize.c (init_tree_optimization_passes): Add
1969         pass_build_pta and pass_del_pta.
1970         * tree-pass.h (pass_build_pta): New structure.
1971         (pass_del_pta): Ditto.
1972         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
1973         using new alias analyzer.
1974         (push_fields_onto_fieldstack): Removed from here.
1975         (bitpos_of_field): Ditto.
1976         (fieldoff_compare): Ditto.
1977         * tree-ssa-structalias.c: New file.
1978         * tree-ssa-structalias.h: Ditto.
1979
1980 2005-06-09  Nathan Sidwell  <nathan@codesourcery.com>
1981
1982         * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
1983         too.
1984
1985 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
1986
1987         * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
1988         * config/bfin/bfin.h (enum bfin_builtins): ... here.
1989
1990 2005-06-09  Adrian Straetling  <straetling@de.ibm.com>
1991
1992         * target.h (insn_valid_within_doloop): Rename into
1993         "invalid_within_doloop".  Change return type to "const char *".
1994         Update Comment.
1995         * targhooks.h (default_insn_valid_within_doloop): Rename into
1996         "default_invalid_within_doloop". 
1997         * targhooks.c (default_insn_valid_within_doloop): Likewise.
1998         Update Comment.
1999         * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
2000         into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
2001         "default_invalid_within_doloop".
2002         * hooks.c (hook_constcharptr_rtx_null): New function.
2003         (hook_bool_rtx_true): Remove.
2004         * hooks.h (hook_constcharptr_rtx_null): Declare.
2005         (hook_bool_rtx_true): Remove.
2006         * loop-doloop.c (doloop_valid_p): Temporarily store return value of
2007         "invalid_within_doloop" and print error message if non-null.
2008         Update Comment.
2009         * doc/tm.texi: Update documentation.
2010         * config/s390/s390.c: Adjust to new hook name and new default hook.
2011         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
2012         into "rs6000_invalid_within_doloop".
2013         (rs6000_invalid_within_doloop): Change return type to "static const
2014         char *" and replace return values.  Update Comment.
2015
2016 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
2017
2018         * config/bfin/bfin.opt (mlong-calls): New.
2019         * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
2020         if TARGET_LONG_CALLS.
2021
2022 2005-06-09  Richard Henderson  <rth@redhat.com>
2023
2024         PR tree-opt/20610
2025         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
2026         (struct tree_decl): Add gimple_reg_flag.
2027         * integrate.c (copy_decl_for_inlining): Copy it.
2028         * gimplify.c (internal_get_tmp_var): Set it.
2029         (gimplify_bind_expr): Likewise.
2030         (gimplify_function_tree): Likewise.
2031         (gimplify_modify_expr_complex_part): New.
2032         (gimplify_modify_expr): Use it.
2033         * tree-gimple.c (is_gimple_reg_type): Allow complex.
2034         (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
2035
2036         * tree-complex.c (complex_lattice_t): New.
2037         (complex_lattice_values, complex_variable_components): New.
2038         (some_nonzerop, find_lattice_value, is_complex_reg,
2039         init_parameter_lattice_values, init_dont_simulate_again, 
2040         complex_visit_stmt, complex_visit_phi, create_components,
2041         update_complex_components, update_parameter_components, 
2042         update_phi_components, update_all_vops, expand_complex_move): New.
2043         (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
2044         SSA_NAME.
2045         (update_complex_assignment): Use update_complex_components;
2046         handle updates of return_expr properly.
2047         (expand_complex_addition): Use complex lattice values.
2048         (expand_complex_multiplication): Likewise.
2049         (expand_complex_division): Likewise.
2050         (expand_complex_libcall): Use update_complex_components.
2051         (expand_complex_comparison): Use update_stmt.
2052         (expand_complex_operations_1): Use expand_complex_move, retrieve
2053         lattice values.
2054         (tree_lower_complex): Compute lattice values.
2055         (tree_lower_complex_O0): Duplicate from tree_lower_complex.
2056         (pass_lower_complex_O0): Rename from pass_lower_complex.
2057         (pass_lower_complex, gate_no_optimization): New.
2058         * tree-optimize.c (init_tree_optimization_passes): Update for
2059         complex pass changes.
2060         * tree-pass.h (pass_lower_complex_O0): Declare.
2061
2062 2005-06-08  Dale Johannesen  <dalej@apple.com>
2063
2064         * config/darwin.c (darwin_binds_local_p):  New.
2065         * config/darwin-protos.h (darwin_binds_local_p):  Declare it.
2066         * config/i386/i386.c (TARGET_BINDS_LOCAL_P):  Use it for TARGET_MACHO.
2067         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Remove.
2068         (TARGET_BINDS_LOCAL_P):  Change it to darwin_binds_local_p.
2069
2070 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
2071
2072         * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
2073         rs6000_isel, rs6000_spe, rs6000_alignment_string,
2074         rs6000_sched_restricted_insns_priority_str,
2075         rs6000_sched_restricted_insns_priority, rs6000_abi_string.
2076
2077 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
2078
2079         * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
2080         instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
2081         * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
2082         multiplier_allowed_in_address_p, get_address_cost): Ditto.
2083
2084 2005-06-08  Richard Henderson  <rth@redhat.com>
2085
2086         * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
2087         * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
2088         Emit out3 load right after alloc.
2089
2090 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
2091
2092         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2093         rs6000_explicit_options.
2094
2095 2005-06-08  Richard Henderson  <rth@redhat.com>
2096
2097         * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
2098         * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
2099         unwind markup.
2100         * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
2101
2102 2005-06-08  Joseph S. Myers  <joseph@codesourcery.com>
2103
2104         * config/sol2-c.c (cmn_err_char_table): Allow width for %b
2105         formats.
2106
2107 2005-06-08  James A. Morrison  <phython@gcc.gnu.org>
2108
2109         PR target/20666
2110         * config/sparc/sparc.c (sparc_fold_builtin): New function
2111         (sparc_vis_mul8x16): New function.
2112         (sparc_handle_vis_mul8x16): New function.
2113         (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
2114
2115 2005-06-08  David Edelsohn  <edelsohn@gnu.org>
2116
2117         * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
2118         CTR to LR.
2119         (call_indirect_nonlocal_aix64): Same.
2120         (call_value_indirect_nonlocal_aix32): Same.
2121         (call_value_indirect_nonlocal_aix64): Same.
2122
2123         PR target/10588
2124         (eq): Use CLZ splitter for compare with zero.
2125
2126 2005-06-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2127
2128         * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
2129         everything larger than 8 bytes in memory.
2130
2131         * config/bfin/bfin.h (enum bfin_builtins): New.
2132         * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
2133         New constants.
2134         (csync, ssync): New insn patterns.
2135         * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
2136         New functions.
2137         (def_builtin): New macro.
2138         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2139
2140         From Jie Zhang  <jie.zhang@analog.com>
2141         * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
2142         behavior of the native assembler in VDSP. So change accordingly.
2143         
2144 2005-06-08  Sebastian Pop  <pop@cri.ensmp.fr>
2145
2146         * tree-data-ref.c (compute_estimated_nb_iterations,
2147         analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
2148         analyze_subscript_affine_affine, find_data_references_in_loop):
2149         Fixed to use chrec_contains_undetermined to test the values of
2150         loop->estimated_nb_iterations.
2151         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2152         Compute the estimation only when loop->estimated_nb_iterations
2153         has not yet been initialized.
2154         (convert_step_widening, scev_probably_wraps_p): Add a call to
2155         estimate_numbers_of_iterations_loop.
2156         * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
2157
2158 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2159
2160         PR debug/21946
2161         * dwarf2out.c (add_loc_descr_op_piece): Move to the
2162         DWARF2_DEBUGGING_INFO section.
2163
2164 2005-06-08  Richard Henderson  <rth@redhat.com>
2165
2166         PR target/21721
2167         * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
2168
2169 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2170
2171         PR target/21889
2172         * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
2173         * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
2174         (TARGET_ASM_OUT): Add it.
2175         * doc/tm.texi (Debugging Info): Document it.
2176         * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
2177         Test it instead of ASM_OUTPUT_DWARF_DTPREL.
2178         (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
2179         * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
2180         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
2181         * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
2182         (gen_inlined_tls_plt): Remove unused variable MEM.
2183         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
2184         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2185         * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
2186         * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
2187         unused.
2188         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
2189         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2190         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
2191         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
2192         unused.
2193         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
2194         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2195         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
2196         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
2197         unused.
2198         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
2199         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2200         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
2201         * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
2202         unused.
2203         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
2204         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2205         * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
2206         (TARGET_GNU_TLS): Define to 1.
2207         * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
2208         * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
2209         unused.
2210         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
2211         if TARGET_GNU_TLS only.
2212         * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2213
2214         * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
2215         (sparc-*-solaris2*): Likewise on Solaris 7 and up.
2216
2217 2005-06-07  Dale Johannesen  <dalej@apple.com>
2218
2219         * config/i386/i386.md (movqi_1):  Fix case where source
2220         is memory and destination EDI.
2221
2222 2005-06-08  Kazu Hirata  <kazu@codesourcery.com>
2223
2224         * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
2225
2226 2005-06-07  Eric Christopher  <echristo@redhat.com>
2227
2228         * system.h: Poison EXTRA_CC_MODES.
2229         * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
2230         * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
2231         * doc/md.texi (Jump Patterns): Replace reference to
2232         EXTRA_CC_MODES with machine-modes.def.
2233         * doc/rtl.texi (Machine Modes): Ditto.
2234
2235 2005-06-07  Richard Henderson  <rth@redhat.com>
2236
2237         * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
2238         (assemble_start_function): Fix strcmp confusion.
2239
2240 2005-06-07  Uros Bizjak  <uros@kss-loka.si>
2241
2242         * config/i386/i386.h (enum ix86_entity): New.
2243         (enum ix86_stack_slot): New.
2244         (OPTIMIZE_MODE_SWITCHING): Redefine to use
2245         ix86_optimize_mode_switching[] array.
2246         (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
2247         (MODE_NEEDED): Use ix86_mode_needed() function.
2248         (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
2249         function.
2250         (struct machine_function): Use optimize_mode_switching[] array.
2251
2252         * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
2253         (ix86_mode_needed): New function.
2254         (emit_i387_cw_initialization): Cleanup. Use mode to calculate
2255         correct stack positions for stored control words.
2256         (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
2257         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
2258         SLOT_TEMP.
2259         [IX86_BUILTIN_STMXCSR]: Same.
2260
2261         * config/i386/i386-protos.h (assign_stack_local): Change prototype.
2262         (emit_i387_cw_initialization): Change prototype.
2263         (ix86_mode_needed): New prototype.
2264
2265         * config/i386/i386.md (i387_cw attribute): Change order of elements.
2266         (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
2267         (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
2268         (*fist<mode>2_ceil_1): Change constant in call to
2269         assign_386_stack_local to SLOT_TEMP.
2270         (*fix_trunc<mode>_i387_1): Change constant in call to
2271         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
2272         Use new ix86_optimize_mode_switching[] array.
2273         (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
2274         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
2275         Use new ix86_optimize_mode_switching[] array.
2276         (frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
2277         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
2278         Use new ix86_optimize_mode_switching[] array.
2279         (frndintxf2_trunc): Change constants in call to
2280         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
2281         Use new ix86_optimize_mode_switching[] array.
2282         (frndintxf2_mask_pm): Change constants in call to
2283         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
2284         Use new ix86_optimize_mode_switching[] array.
2285
2286         (define_peephole2): Change constant from 17 to FLAGS_REG;
2287
2288 2005-06-07  Richard Henderson  <rth@redhat.com>
2289
2290         PR rtl-opt/21528
2291         * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
2292
2293 2005-06-07  Dale Johannesen  <dalej@apple.com>
2294
2295         * tree-nested.c (finalize_nesting_tree_1):  Disable
2296         warn_padded around layout_type call.
2297
2298 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
2299
2300         * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
2301         before emiting it.
2302
2303 2005-06-07  Eric Christopher  <echristo@redhat.com>
2304
2305         * config/mips/predicates.md: Revert previous patch.
2306
2307 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
2308
2309         PR middle-end/21850
2310         * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
2311         from vector types.
2312
2313 2005-06-07  Diego Novillo  <dnovillo@redhat.com>
2314
2315         * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
2316         (thread_stats): New local variable.
2317         (redirect_edges): Increment count of threaded edges.
2318         (thread_through_all_blocks): Initialize thread_stats.
2319         Display number of threaded jumps if TDF_STATS is enabled.
2320
2321 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
2322
2323         * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
2324         the current bit index with no modulo.
2325
2326 2005-06-07  Sebastian Pop  <pop@cri.ensmp.fr>
2327
2328         PR 18403 and meta PR 21861.
2329         * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
2330         * tree-chrec.c: Include cfgloop.h and tree-flow.h.
2331         (evolution_function_is_invariant_rec_p,
2332         evolution_function_is_invariant_p): New.
2333         (chrec_convert): Use an extra parameter AT_STMT for refining the
2334         information that is passed down to convert_step.  Integrate the 
2335         code that was in count_ev_in_wider_type.
2336         * tree-chrec.h (count_ev_in_wider_type): Removed.
2337         (chrec_convert): Modify its declaration.
2338         (evolution_function_is_invariant_p): Declared.
2339         (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
2340         * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
2341         (scev_probably_wraps_p): Declared.
2342         * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
2343         (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
2344         Use an extra parameter AT_STMT for refining the information that is
2345         passed down to convert_step.
2346         (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
2347         analyze_scalar_evolution_1): Initialize AT_STMT with the current
2348         analyzed statement.
2349         (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
2350         * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of 
2351         can_count_iv_in_wider_type to use convert_step.
2352         * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move 
2353         code that is independent of the loop over the known iteration
2354         bounds to convert_step_widening, the rest is moved to
2355         proved_non_wrapping_p.
2356         (scev_probably_wraps_p): New.
2357         (can_count_iv_in_wider_type): Renamed convert_step.
2358         * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
2359         Use scev_probably_wraps_p for computing init_is_max.
2360         (vrp_visit_assignment): Pass the current analyzed statement to 
2361         adjust_range_with_scev.
2362         (execute_vrp): Call estimate_numbers_of_iterations for refining the 
2363         information provided by scev analyzer.
2364
2365 2005-06-07  Eric Christopher  <echristo@redhat.com>
2366
2367         * config/mips/predicates.md (sleu_operand): Use
2368         IN_RANGE to specify range of operand.
2369
2370 2005-06-07  Steven Bosscher  <stevenb@suse.de>
2371
2372         PR tree-optimization/21847
2373         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
2374         -fnon-call-exceptions, also mark statements inherently
2375         necessary if they may throw.
2376
2377 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
2378
2379         * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
2380         ("type"): Add "sem" to 'type' attribute.
2381         ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
2382         "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
2383         "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
2384         "*sync_compare_and_swap_ccsi"): New patterns.
2385         * config/s390/2064.md: ("z_sem"): New insn_reservation.
2386         * config/s390/2084.md: ("x_sem"): New insn_reservation.
2387         * config/s390/s390.c: (s390_compare_emitted): New global variable.
2388         (s390_emit_compare): Do not emit comparison again after cas.
2389         * config/s390/s390.h (s390_compare_emitted): Declare.
2390
2391 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
2392
2393         * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
2394         sbitmap_iter_cond, sbitmap_iter_next): New.
2395         * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
2396         modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
2397         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
2398         uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
2399
2400 2005-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
2401
2402         * tree-ssa-address.c: New file.
2403         * Makefile.in (tree-ssa-address.o): Add.
2404         * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
2405         INDIRECT_REFs.  Handle TARGET_MEM_REFs.
2406         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
2407         * tree-flow.h (struct mem_address): New.
2408         (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
2409         (create_mem_ref, addr_for_mem_ref, get_address_description,
2410         maybe_fold_tmr, multiplier_allowed_in_address_p,
2411         multiply_by_cost):  Declare.
2412         * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
2413         * tree-pretty-print.c (dump_generic_node): Ditto.
2414         * tree-ssa-loop-im.c (for_each_index): Ditto.
2415         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
2416         find_interesting_uses_address): Ditto.
2417         (rewrite_address_base, build_addr_strip_iref): Removed.
2418         (struct affine_tree_combination): Moved to tree-flow.h.
2419         (get_ref_tag, copy_ref_info): New functions.
2420         (rewrite_use_address): Produce TARGET_MEM_REFs.
2421         (tree_ssa_iv_optimize): Do not call update_ssa
2422         and rewrite_into_loop_closed_ssa.
2423         (tree_to_aff_combination): Use build_fold_addr_expr instead of
2424         build_addr_strip_iref.
2425         (unshare_aff_combination): New function.
2426         (fold_affine_sum): Removed.
2427         (get_computation_at): Use get_computation_aff.  Unshare the result.
2428         (get_computation_aff, multiplier_allowed_in_address_p): New function.
2429         (multiply_by_cost): Exported.
2430         (get_address_cost): Use multiplier_allowed_in_address_p.
2431         * tree-ssa-operands.c (get_tmr_operands): New function.
2432         (get_expr_operands): Handle TARGET_MEM_REFs.
2433         * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
2434         (build): Handle 7 arguments.
2435         (build7_stat): New function.
2436         * tree.def (TARGET_MEM_DEF): New.
2437         * tree.h (REF_ORIGINAL): Removed.
2438         (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
2439         TMR_TAG, build7): New macros.
2440         (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
2441         * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
2442         * doc/c-tree.texi: Document TARGET_MEM_REF.
2443         * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
2444
2445 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
2446
2447         PR debug/21946
2448         * dwarf2out.c (add_loc_descr_op_piece): New function.
2449         (multiple_reg_loc_descriptor, concat_loc_descriptor,
2450         loc_descriptor): Use it.
2451         * var-tracking.c: Include regs.h and expr.h.
2452         (emit_note_insn_var_location): Skip over pieces where offset
2453         is smaller than previous offset plus previous piece mode size.
2454         Optimize adjacent hard registers or memory locations.
2455         * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
2456
2457 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
2458
2459         * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
2460         for COND_EXPR.
2461         * gimplify.c (gimplify_cond_expr): No need to fix up the
2462         type of COND_EXPRs.
2463
2464 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
2465
2466         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
2467         comments.
2468
2469 2005-06-07  Geoffrey Keating  <geoffk@apple.com>
2470
2471         * config/rs6000/host-darwin.c (segv_handler): Widen the possible
2472         'stwux' instructions that are considered to be stack decrements.
2473
2474         * rtlanal.c (subreg_offset_representable_p): Handle objects
2475         with holes.
2476
2477 2005-06-06  Uros Bizjak  <uros@kss-loka.si>
2478
2479         * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
2480         in call to pre_edge_lcm.
2481
2482 2005-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
2483
2484         * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
2485         (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
2486         (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
2487         Likewise.
2488         (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
2489         dwarf register number for SHmedia.
2490         (shmedia_fallback_frame_state): New.
2491         (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
2492
2493         * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
2494
2495 2005-06-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2496
2497         * c-lex.c (lex_string): Use XOBFINISH.
2498         * collect2.c (extract_string, dump_file): Likewise.
2499         * dbxout.c (dbxout_finish_complex_stabs): Likewise.
2500         * gcc.c (init_spec, build_search_list, convert_filename, 
2501         set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
2502         * genpreds.c (write_predicate_subfunction): Likewise.
2503         * genflags.c (main): Likewise.
2504         * read-rtl.c (mode_attr_index, apply_macro_to_string, 
2505         join_c_conditions, read_quoted_string, read_braced_string, 
2506         read_rtx_1): Likewise.
2507         * stringpool.c (ggc_alloc_string): Likewise.
2508         * tlink.c (obstack_fgets, recompile_files): Likewise.
2509
2510 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
2511
2512         * intl.h (G_): New macro.
2513         * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
2514         instead of msgid for argument name.
2515         * tree-ssa.c (warn_uninit): Likewise.
2516         * c-parser.c (c_parser_error): Likewise.
2517         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2518         * config/darwin-c.c (BAD): Likewise.
2519         * config/c4x/c4x-c.c (BAD): Likewise.
2520         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2521         * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
2522         * c-common.c (c_parse_error): Likewise.
2523         * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
2524         warning0, pedwarn, error, sorry, fatal_error, internal_error):
2525         Likewise.
2526         (fnotice): Use cmsgid instead of msgid for argument name.
2527         * gcov.c (fnotice): Likewise.
2528         * protoize.c (notice): Likewise.
2529         * final.c (output_operand_lossage): Likewise.
2530         * gcc.c (fatal, notice): Likewise.
2531         (error): Use gmsgid instead of msgid for argument name.
2532         * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
2533         of msgid for argument name.
2534         (error): Use gmsgid instead of msgid for argument name.
2535         * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
2536         instead of N_().
2537         * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
2538         * tree-inline.c (inline_forbidden_p_1): Likewise.
2539         * ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
2540         conventions for marking translations.
2541         * doc/install.texi: Mention gettext 0.14.5 or later requirement.
2542
2543         * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
2544         build2.
2545
2546         * fold-const.c (operand_equal_p): Don't return 1, if element
2547         chains for 2 VECTOR_CSTs are not the same length.
2548
2549         PR regression/21897
2550         * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
2551         not all VECTOR_CST elements are given.
2552
2553         * combine.c (try_combine): Use hard_regno_nregs array instead of
2554         HARD_REGNO_NREGS macro.
2555         * config/rs6000/rs6000.c (rs6000_split_multireg_move,
2556         rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
2557         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
2558
2559 2005-06-06  Daniel Berlin  <dberlin@dberlin.org>
2560
2561         * tree-ssa-reassoc.o: New.
2562         (OBJS-common): Add tree-ssa-reassoc.o
2563         * timevar.def: Add TV_TREE_REASSOC
2564         * tree-optimize.c (pass_reassoc): Add call.
2565         * tree-pass.h (pass_reassoc): Add.
2566         * tree-ssa-reassoc.c: New file.
2567
2568 2005-06-06  Eric Christopher  <echristo@redhat.com>
2569
2570         target/21927
2571         * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
2572
2573 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2574
2575         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
2576         HAVE_GAS_MAX_SKIP_P2ALIGN.
2577         (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
2578
2579 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2580
2581         * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
2582         getopt.h dependency.
2583         (mips-tdump.o): Likewise.
2584
2585 2005-06-06  Jan Hubicka  <jh@suse.cz>
2586
2587         * predict.c (tree_predict_edge): Don't drop useless predictions;
2588         check that it is not called too late in the game.
2589         (gate_estimate_probability): New gate.
2590         (pass_profile): Gate.
2591         * tree-mudflap.c (mf_build_check_statement_for): Do not drop
2592         predictions; update CFG instead.
2593         * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
2594
2595 2005-06-06  Jie Zhang  <jie.zhang@analog.com>
2596
2597         * config.gcc (bfin*-uclinux*): New.
2598         * config/bfin/uclinux.h: New file.
2599
2600 2005-06-06  Ben Elliston  <bje@au.ibm.com>
2601
2602         * doc/md.texi (Insn Splitting): Fix some wording.
2603
2604 2005-06-05  David Edelsohn  <edelsohn@gnu.org>
2605
2606         * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
2607         (rs6000_emit_swdivdf): New function.
2608         * config/rs6000/rs6000.md (fres): New pattern.
2609         (divsf3): Add approximation through rs6000_emit_swdivsf.
2610         (fred): New pattern.
2611         (divdf3): Add approximation through rs6000_emit_swdivdf.
2612         * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
2613         (rs6000_emit_swdivdf): Declare.
2614         * config/rs6000/rs6000.opt (mswdiv): New option.
2615         * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
2616
2617 2005-06-05  Zdenek Dvorak  <dvorakz@suse.cz>
2618
2619         PR tree-optimization/21846
2620         * tree-cfg.c (replace_uses_by): Update information stored at loops.
2621         * tree-flow.h (substitute_in_loop_info): Declare.
2622         * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
2623         Ensure that chrec_dont_know and chrec_known have a type.
2624         * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
2625
2626 2005-06-05  Steven Bosscher  <stevenb@suse.de>
2627
2628         * config/i386/i386.c (x86_use_loop): Remove.
2629         * config/i386/i386.h (x86_use_loop): Remove extern decl.
2630         (TARGET_USE_LOOP): Remove.
2631         * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
2632         Also remove related define_splits.
2633
2634 2005-06-05  Dorit Nuzman  <dorit@il.ibm.com>
2635
2636         * tree-flow.h (stmt_ann_d): Move aux to ...
2637         (tree_ann_common_d): ... here.
2638         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
2639         move_computations_stmt, schedule_sm): Update references to
2640         aux.
2641         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
2642         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
2643         call to set_stmt_info.
2644         (vect_transform_loop): Likewise.
2645         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
2646         Likewise.
2647
2648         * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
2649         bool.
2650         (vect_mark_relevant): Takes two additional arguments - live_p and
2651         relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
2652         (vect_stmt_relevant_p): Differentiate between a live stmt and a
2653         relevant stmt. Return two values = live_p and relevant_p.
2654         (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
2655         vect_stmt_relevant_p with additional arguments. Phis are no longer
2656         put into the worklist (analyzed seperately in analyze_scalar_cycles).
2657         (vect_determine_vectorization_factor): Also check for LIVE_P, because a
2658         stmt that is marked as irrelevant and live, cause it's only used out
2659         side the loop, may need to be vectorized (e.g. reduction).
2660         (vect_analyze_operations): Examine phis. Call
2661         vectorizable_live_operation for for LIVE_P stmts. Check if
2662         need_to_vectorize.
2663         (vect_analyze_scalar_cycles): Update documentation. Don't fail
2664         vectorization - just classify the scalar cycles created by the loop
2665         phis. Call vect_is_simple_reduction.
2666         (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
2667         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
2668         call to set_stmt_info.
2669         (vect_get_vec_def_for_operand): Code reorganized - the code that
2670         classifies the type of use was factored out to vect_is_simple_use.
2671         (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
2672         additional arguments.
2673         (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
2674         and computes a loop_vec_def.
2675         (vectorizable_operation, vectorizable_load, vectorizable_condition):
2676         Likewise.
2677         (vectorizable_live_operation): New.
2678         (vect_transform_stmt): Handle LIVE_P stmts.
2679         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
2680         STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
2681         (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
2682         (vect_is_simple_use): Determine the type of the def and return it
2683         in a new function argument. Consider vect_reduction_def and
2684         vect_induction_def, but for now these are not supported.
2685         (vect_is_simple_reduction): New. Empty for now.
2686         * tree-vectorizer.h (vect_def_type): New enum type.
2687         (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
2688         (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
2689         (vect_is_simple_use): New arguments added to function declaration.
2690         (vect_is_simple_reduction): New function declaration.
2691         (vectorizable_live_operation): New function declaration.
2692
2693         * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
2694         (vect_can_advance_ivs_p): Likewise.
2695         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
2696
2697 2005-06-05  Eric Christopher  <echristo@redhat.com>
2698
2699         * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
2700
2701 2005-06-05  Hans-Peter Nilsson  <hp@bitrange.com>
2702
2703         PR target/21914
2704         * config/mmix/mmix.md ("*movdicc_real_foldable")
2705         ("*movdfcc_real_foldable", "*bCC_foldable")
2706         ("*bCC_inverted_foldable"): Specify DImode for register being
2707         compared.
2708
2709 2005-06-04  Roger Sayle  <roger@eyesopen.com>
2710
2711         * reg-stack.c (struct block_info_def): Correct grammar typo.
2712         (compensate_edge): Clean-up.  Perform as little work as possible
2713         when src and dest stacks match.  Avoid modifying block_info.
2714         Reorder and simplify assertion checks.  Avoid unnecessary copying
2715         of regstack structure.
2716         (convert_regs_1): Set the done flag here...
2717         (convert_regs_2): ... instead of here.
2718
2719 2005-06-04  Dale Johannesen  <dalej@apple.com>
2720
2721         * config/rs6000/rs6000.c (no_global_regs_above): New.
2722         (rs6000_emit_prologue):  Use it; cosmetic formatting fixes.
2723         (rs6000_emit_epilogue):  Use it; cosmetic formatting fixes.
2724         (rs6000_conditional_register_usage): Don't put Darwin PIC
2725         register in global_regs.
2726         (rs6000_stack_info):  Don't set lr_save_p just because Darwin 
2727         PIC reg used.
2728         (rs6000_emit_prologue):  Save LR in R0 around Darwin PIC setup,
2729         if not done by lr_save_p.
2730         * config/rs6000/rs6000.md (insnv1_internal1):  Back out 05-18 patch.
2731         Use rotate instead of ashift.
2732         (call_indirect_nonlocal_sysv):  Prefer CTR to LR.
2733         (call_value_indirect_nonlocal_sysv):  Ditto.
2734
2735 2005-06-04  Jan Hubicka  <jh@suse.cz>
2736
2737         * cgraphunit.c (cgraph_reset_node): Break out from ...
2738         (cgraph_finalize_function): ... here.
2739         (cgraph_finalize_compilation_unit): Reset nodes where backend
2740         removed the body.
2741
2742 2005-06-04  Richard Henderson  <rth@redhat.com>
2743
2744         PR target/21888
2745         * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
2746         until we've passed initial ldgp.
2747
2748 2005-06-04  Daniel Berlin  <dberlin@dberlin.org>
2749
2750         * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
2751         * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
2752         * expr.c (expand_var): Ditto.   
2753         * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
2754         * gimplify.c (gimplify_decl_expr): Ditto.
2755         (gimplify_expr): Ditto.
2756         * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
2757         * tree.c (value_expr_for_decl): New.
2758         (print_value_expr_statistics): New.
2759         (init_ttree): Init value_expr_for_decl.
2760         (decl_value_expr_lookup): New.
2761         (decl_value_expr_insert): Ditto.
2762         (copy_node_stat): Copy DECL_VALUE_EXPR status.
2763         * tree.h (DECL_VALUE_EXPR): Use hashtable.
2764         (SET_DECL_VALUE_EXPR): New.
2765         (DECL_HAS_VALUE_EXPR_P): New.
2766
2767 2005-06-04  Steven Bosscher  <stevenb@suse.de>
2768
2769         * lcm.c: Move all mode-switching related functions from here...
2770         * mode-switching.c: ...to this new file.
2771         * doc/passes.texi: Update accordingly.
2772
2773         * basic-block.h (label_value_list): Remove extern decl.
2774         * cfgrtl.c (label_value_list): Remove.
2775         (can_delete_label_p): Don't look at it.
2776         * cfgcleanup.c (cleanup_cfg): Don't free it.
2777
2778         * common.opt: Don't refer to non-existing flag_alias_check.
2779
2780 2005-06-04  David Edelsohn  <edelsohn@gnu.org>
2781
2782         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
2783
2784 2005-06-04  Kazu Hirata  <kazu@codesourcery.com>
2785
2786         * function.c (prologue, epilogue, sibcall_epilogue): Change
2787         their types to VEC(int,heap)*.
2788         (free_after_compilation): Free the three vectors above.
2789         (init_function_for_compilation, record_insns, contains,
2790         prologue_epilogue_contains, sibcall_epilogue_contains,
2791         reposition_prologue_and_epilogue_notes): Use VEC instead of
2792         VARRAY.  (init_function_once): Remove.
2793         * function.h: Remove the prototype for init_function_once.
2794         * toplev.c (backend_init): Don't call init_function_once.
2795
2796 2005-06-04  Jan Hubicka  <jh@suse.cz>
2797
2798         * predict.c (tree_predict_edge): Do not predict entry edge and
2799         single succestor edge.
2800
2801 2005-06-04  Joseph S. Myers  <joseph@codesourcery.com>
2802
2803         PR c/21873
2804         * c-typeck.c (push_init_level): Don't pop levels without braces if
2805         implicit == 1.
2806
2807 2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>
2808         
2809         * tree-data-ref.c (compute_self_dependence): New function.
2810         (compute_all_dependences): Use it.
2811
2812 2005-06-03  Geoffrey Keating  <geoffk@apple.com>
2813
2814         * c-parser.c (c_parser_parms_declarator): Don't use chainon().
2815         (c_parser_expr_list): Don't use chainon().
2816
2817         * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
2818         when -isysroot passed.
2819
2820 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
2821
2822         PR c/21879
2823         * c-decl.c (start_function): Restore label_context_stack_se and
2824         label_context_stack_vm  if returning with an error.
2825
2826 2005-06-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2827
2828         * configure.ac: Check declaration for asprintf, needed by
2829         libiberty.h. 
2830         * configure: Regenerate.
2831         * config.in: Likewise.
2832
2833 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
2834
2835         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
2836         allocate info array.
2837         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
2838         range to varying in cast expressions that change
2839         TYPE_PRECISION.
2840
2841 2005-06-03  Eric Christopher  <echristo@redhat.com>
2842
2843         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
2844         divide-traps.
2845
2846 2005-06-03  Jan Hubicka  <jh@suse.cz>
2847
2848         * basic-block.h (remove_predictions_associated_with_edge): Declare.
2849         * cfg.c (remove_edge): Use it.
2850         * predict.c (remove_predictions_associated_with_edge): New function.
2851
2852 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
2853
2854         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2855         Clear call_realy_used_regs[r2] when ABI_AIX.
2856
2857 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
2858
2859         PR middle-end/21858
2860         * fold-const.c (fold_binary): Fix type mismatches in folding
2861         of comparisons.
2862
2863 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
2864
2865         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
2866         typos.
2867
2868 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
2869
2870         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
2871
2872 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
2873
2874         * reload1.c (reload): Revert my previous patch.
2875
2876 2005-06-03  Nick Clifton  <nickc@redhat.com>
2877
2878         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
2879         assembler.
2880
2881 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
2882
2883         PR tree-optimization/21849
2884         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
2885
2886 2005-06-02  Richard Henderson  <rth@redhat.com>
2887
2888         * Makefile.in (tree-vect-generic.o): New.
2889         (OBJS-common, GTFILES, s-gtype): Add it.
2890         * tree-complex.c (build_replicated_const, vector_inner_type,
2891         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
2892         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
2893         do_negate, expand_vector_piecewise, expand_vector_parallel, 
2894         expand_vector_addition, expand_vector_operation, 
2895         type_for_widest_vector_mode, expand_vector_operations_1, 
2896         gate_expand_vector_operations, expand_vector_operations, 
2897         pass_lower_vector_ssa): Move to tree-vect-generic.c.
2898         (tree_lower_complex): Rename from tree_lower_operations.
2899         (pass_lower_complex): Rename from pass_pre_expand.
2900         * tree-vect-generic.c: New file.
2901         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
2902         (pass_lower_vector): New.
2903         * tree-optimize.c (init_tree_optimization_passes): Update to match.
2904
2905 2005-06-02  Richard Henderson  <rth@redhat.com>
2906
2907         * modulo-sched.c (doloop_register_get): Protect against 
2908         doloop_end not defined.
2909
2910 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
2911
2912         * config/sh/sh.c (general_movsrc_operand,
2913         general_movdst_operand, arith_reg_operand, arith_reg_dest,
2914         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
2915         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
2916         xor_operand, cmp_operand, logical_operand, and_operand,
2917         fpscr_operand, fpul_operand, symbol_ref_operand,
2918         commutative_float_operator, noncommutative_float_operator,
2919         unary_float_operator, binary_float_operator,
2920         binary_logical_operator, equality_comparison_operator,
2921         greater_comparison_operator, less_comparison_operator,
2922         shift_operator, logical_operator, target_reg_operand,
2923         target_operand, mextr_bit_offset, extend_reg_operand,
2924         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
2925         general_extend_operand, ua_address_operand,
2926         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
2927         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
2928         shift_count_reg_operand, shift_count_operand,
2929         unaligned_load_operand): Move to ...
2930         * config/sh/predicates.md: ... here.
2931         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
2932         Remove.
2933
2934 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
2935
2936         * tree.c (build_common_builtin_nodes): Fix the return type on
2937         __builtin_memcmp.
2938
2939 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
2940
2941         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
2942         (find_interesting_uses_address): Use build_fold_addr_expr instead.
2943         (strip_offset_1): Likewise.
2944         (tree_to_aff_combination): Likewise.
2945
2946 2005-06-02  DJ Delorie  <dj@redhat.com>
2947
2948         * convert.c (convert_to_pointer): Avoid recursion if no conversion
2949         is needed.
2950
2951 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
2952
2953         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
2954         binary operations with the correct types.
2955         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
2956         for all computation.
2957
2958 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
2959
2960         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
2961         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
2962         conventions.
2963         * doc/install.texi: Fix a typo.
2964
2965 2005-06-02  Jan Hubicka  <jh@suse.cz>
2966
2967         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
2968         inline functions are not local.
2969
2970 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
2971
2972         * gimplify.c (gimplify_ctx): Change the type of case_labels to
2973         VEC from VARRAY.
2974         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
2975         of case_labels.
2976
2977 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
2978
2979         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
2980         with correct type.
2981
2982 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
2983
2984         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
2985         execute templates.
2986         (s390_dump_pool): Likewise.
2987         (s390_mainpool_start, s390_mainpool_finish): Likewise.
2988         (s390_chunkify_start): Likewise.
2989         (s390_dump_execute): Remove.
2990         (s390_reorg): Handle out-of-pool execute templates.
2991
2992 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
2993
2994         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
2995           unconditional jump.
2996
2997 2005-06-02  Jan Hubicka  <jh@suse.cz>
2998
2999         * cgraph.c (cgraph_node): Maintain master clones.
3000         (cgraph_remove_node): Likewise.
3001         (availability_names): New static variable.
3002         (dump_cgraph_node): Dump availability.
3003         (dump_cgraph_varpool_node): Likewise.
3004         (cgraph_is_master_clone, cgraph_master_clone,
3005         cgraph_function_body_availability,
3006         cgraph_variable_initializer_availability): New functions.
3007         * cgraph.h (availability): New enum.
3008         (struct cgraph_node): Add master_clone.
3009         (cgraph_is_master_clone, cgraph_master_clone,
3010         cgraph_function_body_availability,
3011         cgraph_variable_initializer_availability): Declare.
3012         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
3013         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
3014         * ipa-inline.c (cgraph_decide_inlining): Do not call
3015         cgraph_remove_unreachable_nodes.
3016
3017         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
3018         previous patch.
3019
3020 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
3021
3022         PR 21582
3023         * tree-vrp.c (nonnull_arg_p): New.
3024         (get_value_range): Call it.
3025
3026 2005-06-02  Eric Christopher  <echristo@redhat.com>
3027
3028         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
3029         add PROCESSOR_MAX.
3030         (mips_rtx_cost_data): New datatype.
3031         (MEMORY_MOVE_COST): Use data from structure.
3032         (BRANCH_COST): Ditto.
3033         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
3034         * config/mips/mips.md (cpu): Rework for processor_type changes.
3035         * config/mips/mips.c (mips_cost): New variable.
3036         (DEFAULT_COSTS): Define.
3037         (mips_rtx_cost_data): New.
3038         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
3039         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
3040         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
3041         (override_options): Set cost data.
3042         (mips_register_move_cost): Formatting changes.
3043         (bdesc_arrays): Use PROCESSOR_MAX.
3044         (mips_init_builtins): Ditto.
3045
3046 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
3047
3048         PR 21765
3049         * doc/invoke.texi: Document -ftree-vrp.
3050
3051 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
3052
3053         PR tree-optimization/21734
3054         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
3055         phi_result when current_def is not available.
3056         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
3057         available.      
3058
3059 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
3060
3061         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
3062         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
3063
3064 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
3065
3066         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
3067
3068 2005-06-02  Jan Hubicka  <jh@suse.cz>
3069
3070         * cgraph.c (dump_cgraph_node): Print new flags.
3071         (dump_cgraph_varpool_node): Likewise.
3072         (decide_variable_is_needed): Initialize externally_visible flag.
3073         * cgraph.h (cgraph_local_info): Add externally_visible flag.
3074         (cgraph_varpool_node): Likewise.
3075         (cgraph_function_flags_ready): Declare.
3076         * cgraph.c (cgraph_mark_local_functions): Rename to ...
3077         (cgraph_function_and_variable_visibility) ... this one; handle
3078         externally_visible flags.
3079         (decide_is_function_needed): Set externally_visible flag.
3080         (cgraph_finalize_function): Deal properly with early cleanups.
3081         (cgraph_optimize): Update call of
3082         cgraph_function_and_variable_visibility.
3083
3084 2005-06-02 Steven Bosscher  <stevenb@suse.de>
3085            Mostafa Hagog <mustafa@il.ibm.com>
3086
3087         * cfgloop.h (doloop_condition_get): Make external.
3088         * loop-doloop.c (doloop_condition_get): Generalize to make it
3089         usable in modulo-sched.c.
3090         * modulo-sched.c (doloop_register_get): Use
3091         doloop_condition_get instead of duplicating it.
3092
3093 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
3094
3095         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
3096         the correct set of init_insns that need deletion.
3097         * local-alloc.c (update_equiv_regs): When substituting sole definition
3098         into sole use of a reg, delete it from liveness information.
3099
3100 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3101
3102         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
3103
3104 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
3105
3106         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
3107         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
3108         * fold-const.c (invert_tree_comparison): Make extern.
3109         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
3110         (struct value_range_def): Limewise.
3111         (get_value_range): Remove.
3112         (dump_value_range): Remove.
3113         (dump_all_value_ranges): Remove.
3114         (debug_all_value_ranges): Remove.
3115         (vrp_evaluate_conditional): Declare.
3116         * tree-ssa-propagate.c (struct prop_stats_d): Add field
3117         num_pred_folded.
3118         (substitute_and_fold): Add argument use_ranges_p.
3119         Update all callers.
3120         If use_ranges_p is true, call fold_predicate_in to fold
3121         predicates using range information.
3122         Ignore ASSERT_EXPRs.
3123         Change debugging output to only show statements that have been
3124         folded.
3125         (replace_phi_args_in): Move debugging output code from
3126         substitute and fold.
3127         (fold_predicate_in): New local function.
3128         * tree-ssa-propagate.h (enum value_range_type): Move from
3129         tree-flow.h.
3130         (struct value_range_d): Likewise.
3131         Add field 'equiv'. 
3132         (value_range_t): Rename from value_range.
3133         * tree-vrp.c (found_in_subgraph): Rename from found.
3134         (get_opposite_operand): Remove.
3135         (struct assert_locus_d): Declare.
3136         (assert_locus_t): Declare.
3137         (need_assert_for): Declare.
3138         (asserts_for): Declare.
3139         (blocks_visited): Declare.
3140         (vr_value): Declare.
3141         (set_value_range): Add argument 'equiv'.
3142         Don't drop to VARYING ranges that cover all values in the
3143         type.
3144         Make deep copy of equivalence set 'equiv'.
3145         (copy_value_range): New local function.
3146         (set_value_range_to_undefined): New local function.
3147         (compare_values): Return -2 if either value has overflowed.
3148         (range_includes_zero_p): New local function.
3149         (extract_range_from_assert): Flip the predicate code if the
3150         name being asserted is on the RHS of the predicate.
3151         Avoid creating unnecessary symbolic ranges if the comparison
3152         includes another name with a known numeric range.
3153         Update the equivalnce set of the new range when asserting
3154         EQ_EXPR predicates.
3155         (extract_range_from_ssa_name): Update the equivalence set of
3156         the new range with VAR.
3157         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
3158         If -fwrapv is used, set the resulting range to VARYING if the
3159         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
3160         TYPE_MAX_VALUE to represent -INF and +INF.
3161         Fix handling of *_DIV_EXPR.
3162         (extract_range_from_unary_expr): Handle MINUS_EXPR and
3163         ABS_EXPR properly by switching the range around if necessary.
3164         (extract_range_from_comparison): New local function.
3165         (extract_range_from_expr): Call it.
3166         (adjust_range_with_scev): Do not adjust the range if using
3167         wrapping arithmetic (-fwrapv).
3168         (dump_value_range): Also show equivalence set.
3169         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
3170         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
3171         (infer_value_range): Change return value to bool.
3172         Add arguments 'comp_code_p' and 'val_p'.
3173         Do not attempt to infer ranges from statements that may throw.
3174         Store the comparison code in comp_code_p.
3175         Store the other operand to be used in the predicate in val_p.
3176         (dump_asserts_for): New.
3177         (debug_asserts_for): New.
3178         (dump_all_asserts): New.
3179         (debug_all_asserts): New.
3180         (register_new_assert_for): New.
3181         (register_edge_assert_for): New.
3182         (find_conditional_asserts): New.
3183         (find_assert_locations): New.
3184         (process_assert_insertions_for): New.
3185         (process_assert_insertions): New.
3186         (insert_range_assertions): Initialize found_in_subgraph,
3187         blocks_visited, need_assert_for and asserts_for.
3188         Call find_assert_locations and process_assert_insertions.
3189         (remove_range_assertions): Add more documentation.
3190         (vrp_initialize): Change return type to void.
3191         Do not try to guess if running VRP is worth it.  
3192         (compare_name_with_value): New.
3193         (compare_names): New.
3194         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
3195         use_equiv_p is true, call compare_names and
3196         compare_name_with_value to compare all the ranges for every
3197         name in the equivalence set of the predicate operands.
3198         Update all callers.
3199         (vrp_meet): Try harder not to derive a VARYING range.
3200         If two values meet, the resulting equivalence set is the
3201         intersection of the two equivalence sets.
3202         (vrp_visit_phi_node): Call copy_value_range to get the current
3203         range information of the LHS.
3204         (vrp_finalize): Create a value vector representing all the
3205         names that ended up with exactly one value in their range.
3206         Call substitute_and_fold.
3207         (execute_vrp): Document equivalence sets in ranges.
3208         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
3209         (struct tree_ssa_name): Remove field value_range.
3210         (invert_tree_comparison): Declare.
3211
3212 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
3213
3214         Fix PR tree-optimization/21839
3215
3216         * gimplify.c (zero_sized_field_decl): New function.
3217         (gimplify_init_ctor_eval): Use it.
3218
3219 2005-06-01  Josh Conner <jconner@apple.com>
3220
3221         PR 21478
3222         * gimplify.c (gimplify_init_constructor): Don't spill initializer
3223         to read-only memory if it's sparse.
3224
3225 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
3226
3227         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP. 
3228         Add documentation for REG_SETJMP
3229
3230 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
3231
3232         * stmt.c (expand_case): Use build_int_cst.
3233         (node_has_low_bound): Likewise, and correct type mismatch.
3234         (node_has_high_bound): Likewise.
3235         * fold-const.c (fold_binary): Ensure we build trees
3236         with the correct types - undo what STRIP_NOPS possibly did.
3237
3238 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
3239
3240         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
3241         * fold-const.c (fold_indirect_ref_1): No longer static.
3242         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
3243         folding, if possible.
3244
3245 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
3246
3247         * common.opt (fjump-tables): New.
3248         * doc/invoke.texi (-fno-jump-tables): Document.
3249         * stmt.c (expand_end_case_type): Do not emit jump tables unless
3250         flag_jump_tables.
3251
3252 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
3253
3254         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
3255         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
3256         (sunlt, sunle): Enable patterns on VFP.
3257
3258         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
3259         f_stored, f_flag, f_cvt.
3260         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
3261         Include arm1020e.md.
3262         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
3263         the ds and fmac pipelines.  Re-work all load and store patterns and
3264         all conversion patterns to use new attributes.  Adjust reservation
3265         descriptions accordingly.
3266         * arm1020e.md: New file.
3267         * t-arm: Add dependency.
3268
3269 2005-06-01  Jan Hubicka  <jh@suse.cz>
3270
3271         * except.c (struct eh_region): Kill unused fields.
3272         * basic-block.h (struct basic_block_def): Likewise.
3273
3274 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
3275
3276         PR rtl-optimization/21767
3277         * rtl.h (function_invariant_p): Re-add declaration.
3278         * reload1.c (function_invariant_p): No longer static.
3279         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
3280         might have become invalid.
3281
3282 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
3283
3284         PR c/21536
3285         PR c/20760
3286         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
3287         on variable sizes types if a decl is a pointer to a VLA.
3288         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
3289         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
3290         recursion.
3291
3292         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
3293
3294         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
3295         _mm_set_ps, _mm_setr_ps): Add __extension__.
3296         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
3297         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
3298         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
3299         Likewise.
3300         (_mm_clflush): Don't use return in void function.
3301
3302         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
3303         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
3304         Use __inline instead of inline.
3305
3306 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
3307
3308         * fold-const.c (fold_binary): Fix types in strlen vs.
3309         zero comparison folding.
3310
3311 2005-06-01  Richard Henderson  <rth@redhat.com>
3312
3313         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
3314         * config.in, configure: Rebuild.
3315         * config/alpha/alpha.c (print_operand): Add 'j'.
3316         * alpha.md (divmodsi_internal_er_1): Use it.
3317         (divmoddi_internal_er_1): Likewise.
3318
3319 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3320
3321         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
3322         * opts.h (print_filtered_help): Delete.
3323         * opts.c (handle_option, decode_options): Remove calls to
3324         set_target_switch.
3325         (print_target_help): New function.
3326         (common_option, print_help): Call print_target_help instead of
3327         display_target_options.
3328         (print_filtered_help): Make static.
3329         * toplev.h (display_target_options, set_target_switch): Delete.
3330         * toplev.c (target_switches, target_options, display_target_options)
3331         (set_target_switch): Delete.
3332         (print_switch_values): Remove handling of TARGET_SWITCHES and
3333         TARGET_OPTIONS.
3334         (default_get_pch_validity): Likewise.  Only treat target_flags
3335         specially if targetm.check_pch_target_flags is nonnull.
3336         (pch_option_mismatch): New function.
3337         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
3338         and TARGET_OPTIONS.  Only treat target_flags specially if
3339         targetm.check_pch_target_flags is nonnull.
3340         * config/ia64/ia64.c (ia64_override_options): Don't mention
3341         TARGET_OPTIONS in comment.
3342         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
3343         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
3344         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
3345         interaction with TARGET_SWITCHES.
3346         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
3347
3348 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3349
3350         * config/sh/sh.c (multcosts): Check sh_multcost rather than
3351         sh_multcost_str.
3352         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
3353         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
3354         (cut2_workaround_str): Delete.
3355         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
3356         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
3357         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
3358         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
3359         (mgettrcost=, multcost=): New options.
3360
3361 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3362
3363         * opts.h (cl_option_state): New structure.
3364         (get_option_state): Declare.
3365         * opts.c (get_option_state): New function.
3366         * toplev.c (option_affects_pch_p): New function.
3367         (default_get_pch_validity): Store the state of all options for which
3368         option_affects_pch_p returns true.
3369         (default_pch_valid_p): Check the state of those options here.
3370         Only check target_flags separately if targetm.check_pch_target_Flags
3371         is nonnull or if TARGET_SWITCHES is defined.
3372
3373 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3374
3375         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
3376         names.
3377
3378 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
3379
3380         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
3381
3382 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
3383
3384         * gcse.c (compute_transp, load_killed_in_block): Use 
3385         MEM_READONLY_P.
3386
3387 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
3388
3389         PR target/21854
3390         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
3391         
3392 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3393
3394         * errors.h (warning, error, fatal, internal_error): Add printf
3395         attribute.
3396         * genmodes.c (make_vector_mode): Fix format arguments.
3397
3398 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3399
3400         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
3401         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
3402         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
3403         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
3404         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
3405         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
3406         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
3407         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
3408         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
3409         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
3410         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
3411         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
3412         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
3413         errors.h and include toplev.h if necessary.
3414         
3415         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
3416         errors.h otherwise include toplev.h.
3417         
3418         * Makefile.in: Update dependencies.
3419         
3420 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
3421
3422         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
3423
3424 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
3425
3426         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
3427         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
3428         be complemented for big-endian.  Mask for AND must be rotated,
3429         not shifted.  Handle short operands with NOT on the memory
3430         operation.
3431
3432 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
3433
3434         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
3435         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
3436         * dwarf2out.c (dwarf2out_var_location): Ditto.
3437         * toplev.c (default_tree_printer): Ditto.
3438         * tree-outof-ssa.c (create_temp): Ditto.
3439         * tree-sra.c (instantiate_element): Ditto.
3440         * var-tracking.c (track_expr_p): Ditto.
3441         * tree.c (struct tree_map): New structure.
3442         (debug_expr_for_decl): New.
3443         (tree_map_eq): New function.
3444         (tree_map_hash): Ditto.
3445         (tree_map_marked_p): Ditto.
3446         (print_debug_expr_statistics): Ditto.
3447         (decl_debug_expr_lookup): Ditto.
3448         (decl_debug_expr_insert): Ditto.
3449         (dump_tree_statistics): Dump debug_expr hashtable stats.
3450         * tree.h (DECL_DEBUG_EXPR): Change
3451         (SET_DECL_DEBUG_EXPR): Add.
3452         
3453 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
3454
3455         * configure.ac: Add --enable-secureplt.
3456         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
3457         * config.in: Regenerate.
3458         * configure: Regenerate.
3459         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
3460         rs6000/secureplt.h to tm_file when enable_secureplt.
3461         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
3462         * doc/install.texi: Document --enable-targets and --enable-secureplt.
3463         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
3464         * config/rs6000/secureplt.h: New file.
3465         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
3466         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
3467         assembler support.
3468         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
3469         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
3470         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
3471         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
3472         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
3473         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
3474         TARGET_SECURE_PLT got register load sequence.
3475         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
3476         TARGET_SECURE_PLT.
3477         (rs6000_elf_declare_function_name): Don't emit toc address offset
3478         word when TARGET_SECURE_PLT.
3479         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
3480         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
3481         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
3482         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
3483         TARGET_SECURE_PLT.
3484         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
3485         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
3486         and -fPIC.
3487         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
3488         (__trampoline_setup): Likewise.  Init r30 before plt call.
3489
3490 2005-05-31  DJ Delorie  <dj@redhat.com>
3491
3492         * expr.c (convert_move): When a partial_int requires multiple
3493         conversion steps, make sure successive steps convert the
3494         intermediate value, not the original value.
3495
3496         * expmed.c (expand_mult): Convert partial_int multiplies to
3497         shift/add combinations too.
3498
3499         * genmodes.c (mode_data): Add wider_2x.
3500         (calc_wider_mode): Calculate twice-wider mode too.
3501         (emit_mode_wider): Emit twice-wider mode too.
3502         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
3503         * expr.c (expand_expr_real_1): Use it for expanding
3504         multiplies.
3505
3506 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
3507
3508         PR tree-optimization/21817
3509         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
3510
3511 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3512
3513         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
3514         change.
3515
3516 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
3517
3518         PR middle-end/20931
3519         PR middle-end/20946
3520         * fold-const.c (fold_checksum_tree): Copy types also if
3521         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
3522         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
3523         first.
3524         Tail recurse TREE_LIST's TREE_CHAIN.
3525
3526 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
3527
3528         PR tree-opt/21732
3529         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
3530         SSA_NAME twice and cause the loop to become finite.  Remove the test
3531         for val.
3532
3533 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
3534
3535         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
3536         expression.
3537
3538 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
3539
3540         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
3541         the documentation to make it more future-proof.
3542         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
3543         * target.h (gcc_target): Add check_pch_target_flags.
3544         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
3545         (TARGET_INITIALIZER): Include it.
3546         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
3547         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
3548         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
3549         (sh_check_pch_target_flags): New function.
3550         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
3551
3552 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
3553
3554         * fold-const.c (extract_array_ref): Handle more cases,
3555         do some useful canonicalization of the base.
3556         (fold_binary): Explicitly deal with arrays of zero-sized
3557         structures during folding of &a[i] == &a[j].
3558
3559 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
3560
3561         * doc/install.texi (sparc-sun-solaris2*): Update note
3562         about Sun bug 4910101.
3563         (sparc-sun-solaris2.7): Document bootstrap
3564         failure with Sun WorkShop 6 99/08/18 as.
3565
3566 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
3567
3568         * loop.c (loop_invariant_p, valid_initial_value_p): Use
3569         regs_invalidated_by_call instead of call_used_regs.
3570
3571 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
3572
3573         PR middle-end/21743
3574         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
3575         Enable.
3576         * doc/extend.texi: Add clog, clogf, clogl.
3577
3578 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3579
3580         PR middle-end/20303
3581         * c-pragma.c: Include "vec.h".
3582         (handle_pragma_visibility): Use VEC.
3583
3584         * doc/invoke.texi: Remove the nested visibility push limit.
3585
3586 2005-05-30  Roger Sayle  <roger@eyesopen.com>
3587
3588         PR rtl-optimization/15422
3589         * reg-stack.c (starting_stack_p): New static global.
3590         (straighten_stack): Delete prototype. Change to update the stack
3591         before the current insn.
3592         (subst_stack_regs): Update call to straighten stack.
3593         (emit_swap_insn): Delete prototype.  For the first insn in a
3594         basic block, update stack_in instead of emitting a real swap.
3595         (change_stack): When changing the stack before the first insn
3596         in a basic block, update stack_in instead of emitting real code.
3597         (compensate_edges): Clear starting_stack_p during compensation.
3598         (convert_regs_1): Keep track of starting_stack_p whilst processing
3599         a basic block.
3600
3601 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
3602
3603         * tree-ssa-ccp.c (const_val): Make it static.
3604
3605 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
3606
3607         PR target/21761
3608         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
3609         pattern involving `:P'.
3610
3611         * Makefile.in (install-cpp): Depend on installdirs.
3612
3613 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
3614
3615         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
3616         to VEC(int,heap)*.
3617         (new_elim_graph, clear_elim_graph, delete_elim_graph,
3618         elim_graph_add_edge, elim_graph_remove_succ_edge,
3619         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
3620         instead of VARRAY.
3621
3622 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3623
3624         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
3625         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
3626         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
3627         follow spelling conventions in error/dump messages.
3628
3629 2005-05-29  Roger Sayle  <roger@eyesopen.com>
3630             Richard Henderson  <rth@redhat.com>
3631
3632         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
3633         if the RHS isn't suitable for calling emit_move_insn.
3634
3635 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
3636
3637         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
3638         fold_unary and fold_binary.
3639
3640 2005-05-29  Roger Sayle  <roger@eyesopen.com>
3641
3642         * reg-stack.c (propagate_stack): Always copy the source stack to
3643         the destination.  This routine is now only called when this is safe.
3644         (better_edge): New function split out from convert_regs_1 to
3645         determine which of two edges is better to propagate across.
3646         (convert_regs_1):  We need only search for a best edge if the
3647         stack layout hasn't been defined yet.  Use better_edge to help
3648         find beste.  No longer traverse unnecessary edges.
3649
3650 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
3651
3652         * tree-ssa-alias.c (new_type_alias): New procedure to
3653         create a type memory tag for a pointer with a may-alias
3654         set determined from a variable declaration.
3655         * tree-flow.h: export declaration of new_type_alias
3656         * tree-optimize.c (init_tree_optimization_passes): document
3657         that pass_may_alias cannot be called after pass_vectorize.
3658         * tree-vect-transform (vect_create_data_ref_ptr): Call
3659         new_type_alias when an type memory tag isn't available
3660         for a reference.
3661         (vectorizable_store): Use copy_virtual_operands to update
3662         virtual defs in place (so that loop_version can be called).
3663         Call mark_for_renaming for the virtual defs in case peeling
3664         is done and virtual uses outside the loop need to be updated.
3665
3666 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
3667
3668         PR tree-optimization/21639
3669         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
3670
3671 2005-05-29  Jan Hubicka  <jh@suse.cz>
3672
3673         PR tree-optimization/21562
3674         * cfgexpand.c (construct_init_block): Deal properly with the case
3675         of entry edge not pointing to very first basic block.
3676
3677 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
3678
3679         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
3680         non-gimple min invariant.
3681
3682         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
3683         * tree-flow.h: Add prototypes for start_recording_case_labels
3684         and end_recording_case_labels.
3685         * tree-cfg.c (start_recording_case_labels,
3686         end_recording_case_labels): Export.
3687         (cleanup_tree_cfg_loop, modified_noreturn_calls,
3688         cleanup_control_flow, cleanup_control_expr_graph,
3689         remove_fallthru_edge, phi_alternatives_equal,
3690         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
3691         remove_forwarder_block, cleanup_forwarder_blocks,
3692         remove_forwarder_block_with_phi, merge_phi_nodes,
3693         gate_merge_phi, pass_merge_phi): Move to ...
3694         * tree-cfgcleanup.c: ... here.
3695
3696         * basic-block.h: Remove forward declaration of bb_ann_d.
3697
3698 2005-05-28  Jan Hubicka  <jh@suse.cz>
3699
3700         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
3701         Update profile.
3702         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
3703         debug output.
3704         (tree_mod_subtract): Fix profile updating code.
3705         (tree_divmod_values_to_profile): Do not produce useless value profilers
3706         for divisions.
3707
3708 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
3709
3710         * tree-ssa-dom.c (vrp_element_p): Define.
3711         (vrp_hash_elt): Change the type of records to
3712         VEC(vrp_element_p,heap).
3713         (vrp_free): New.
3714         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
3715         Update uses of VRP records.
3716         (simplify_cond_and_lookup_avail_expr, record_range): Update
3717         uses of VRP records.
3718
3719         * tree-inline.c (cfun_stack): Change the type to
3720         VEC(function_p,heap).
3721         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
3722
3723 2005-05-27  Ian Lance Taylor  <ian@airs.com>
3724
3725         * c-decl.c (add_stmt): Add C frontend specific version.
3726         (stmts_are_full_exprs_p): Remove.
3727         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
3728         (stmts_are_full_exprs_p): Don't declare.
3729         * c-semantics.c (add_stmt): Remove.
3730
3731 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3732
3733         * config/mips/mips-protos.h (mips_declare_object): Add printf
3734         attribute.
3735         * config/mips/mips.c (mips_declare_object_name): Fix format
3736         argument.
3737
3738 2005-05-27  Roger Sayle  <roger@eyesopen.com>
3739
3740         * reg-stack.c (compensate_edge): Remove original prototype.
3741         (propagate_stack): New function to copy the stack layout
3742         at the start of a basic block from the layout at the end of
3743         one of its predecessors.
3744         (compensate_edge): Assume that both source and destination
3745         blocks have already had their stack layouts defined.
3746         (compensate_edges): Traverse all non-entry edges in the CFG
3747         and call compensate_edge on each in turn.
3748         (convert_regs_1): Change return type to void.  Call
3749         propagate_stack instead of compensate_edge.
3750         (convert_regs_2): Change return type to void.  Update call
3751         to convert_regs_1 to ignore the (now void) return value.
3752         (convert_regs): Update calls to convert_regs_2 to ignore
3753         the (now void) return value.  After all the basic blocks have
3754         been processed, call compensate_edges to actually emit new
3755         insns.
3756         (reg_to_stack): Initialize the aux info for each basic block
3757         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
3758
3759 2005-05-28  Jan Hubicka  <jh@suse.cz>
3760
3761         * except.c (can_throw_internal_1, can_throw_external_1): Add 
3762         "is_resx" argument.
3763         (can_throw_external, can_throw_internal): Bring into sync wrt
3764         dealing resx.
3765         * except.h (can_throw_internal_1, can_throw_external_1): Update
3766         prototype.
3767         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
3768         Deal properly with resx.
3769
3770 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
3771
3772         * basic-block.h (basic_block_def): Add phi_nodes and
3773         predictions.  Remove tree_annotations.
3774         * predict.c (tree_predicted_by_p, tree_predict_edge,
3775         combine_predictions_for_bb): Adjust references to predictions.
3776         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
3777         create_block_annotation.
3778         (create_block_annotation, free_blocks_annotatios,
3779         clear_blocks_annotations): Remove.
3780         (dump_cfg_stats): Don't print out the memory spent on
3781         bb_ann_d.
3782         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
3783         * tree-flow-inline.h (bb_ann): Remove.
3784         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
3785         * tree-flow.h (bb_ann_d): Remove.
3786         * tree-if-conv.c (process_phi_nodes): Update a reference to
3787         phi_nodes.
3788         * tree-phinodes.c (reserve_phi_args_for_new_edge,
3789         create_phi_node, remove_phi_node): Likewise.
3790         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
3791         * tree-ssa-dom.c (threaded_blocks): New.
3792         (tree_ssa_dominator_optimize): Initialize, clear, and free
3793         threaded_blocks. Update a call to thread_through_all_blocks.
3794         (thread_across_edge): Use threaded_blocks instead of setting
3795         incoming_edge_threaded.
3796         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
3797         a bitmap of blocks that are threaded through.
3798         * tree.h: Move the prototype of threaded_through_blocks to
3799         tree-flow.h.
3800
3801         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
3802         fini_walk_dominator_tree): Use VEC instead of VARRAY.
3803         * domwalk.h (dom_walk_data): Change the type of
3804         block_data_stack and free_block_data to VEC(void_p,heap)*.
3805         * tree-ssa-dse.c (dse_initialize_block_local_data,
3806         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
3807         VEC instead of VARRAY.
3808
3809 2005-05-27  Jan Hubicka  <jh@suse.cz>
3810
3811         * cgraph.c: Include tree-gimple.h
3812         (cgraph_edge): Rename expr to stmt.
3813         (cgraph_create_edge): Likewise.
3814         (cgraph_clone_node): Likewise.
3815         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
3816         * cgraphunit.c (record_call_1): Rename to ...
3817         (record_reference): ... this one; do not build edges.
3818         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
3819         (current_basic_block): Kill.
3820         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
3821         (verify_cgraph_node): Likewise.
3822         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
3823         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
3824         (copy_edges_for_bb): Simplify EH handling.
3825         (expand_call_inline): Pass statement to cgraph_edge and
3826         cgraph_create_edge.
3827
3828 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
3829
3830         * tree-inline.c (copy_body_r): Manually fold *& to deal
3831         with ADDR_EXPRs with mismatched types for now.
3832
3833         * gimplify.c (fold_indirect_ref_rhs): New function.
3834         (gimplify_modify_expr_rhs): Use it instead of pessimistic
3835         fold_indirect_ref.
3836
3837         * fold-const.c (fold_indirect_ref_1): Add type argument;
3838         make sure the resulting expression is of this type.
3839         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
3840
3841 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
3842
3843         PR tree-optimization/21658
3844         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
3845         fold_binary_to_constant.  Likewise, call fold_unary instead of
3846         fold_unary_to_constant.
3847
3848 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
3849
3850         * vec.h: Implement integral type vector specialization.
3851         (VEC_T): Define a non-GTY structure.
3852         (VEC_T_GTY): Define a GTY structure.
3853         (VEC_TA): Rename to ...
3854         (VEC_TA_GTY): ... here.
3855         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
3856         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
3857         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
3858         DEF_VEC_P and DEF_VEC_ALLOC_P.
3859         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
3860         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
3861         DEF_VEC_O and DEF_VEC_ALLOC_O.
3862         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
3863         * lambda-code.c: Likewise.
3864         * tree-into-ssa.c: Likewise.
3865         * tree-ssa-live.c: Likewise.
3866
3867 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
3868
3869         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
3870         is up-to-date.
3871         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
3872         update_stmt_if_modified before calling update_ssa.
3873
3874 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
3875
3876         * config/rs6000/t-rtems: Remove roe multilib variant.
3877
3878 2005-05-26  Roger Sayle  <roger@eyesopen.com>
3879
3880         PR tree-optimization/9814
3881         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
3882         instruction, add the necessary clobbers by re-expanding the RTL
3883         for arithmetic operations via optab.c's expand_unop/expand_binop.
3884         (noce_try_bitop): New function to optimize bit manipulation idioms
3885         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
3886         (noce_process_if_block): Call noce_try_bitop.
3887
3888 2005-05-26  Roger Sayle  <roger@eyesopen.com>
3889
3890         * reg-stack.c (convert_regs_entry, convert_regs_exit,
3891         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
3892         (reg_to_stack): Move to end of the file.  Initialize the per
3893         basic block information here, instead of...
3894         (convert_regs_entry): Here.
3895         (convert_regs): Change unused return type to void.
3896
3897 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
3898
3899         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
3900         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
3901         config/rs6000/eabispe.h, config/rs6000/lynx.h,
3902         config/sh/elf.h, config/sh/symbian-pre.h,
3903         config/sparc/sparc-protos.h: Update copyright.
3904
3905 2005-05-26  Mike Stump  <mrs@apple.com>
3906
3907         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
3908         for Objective-C++.
3909         
3910 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
3911
3912         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
3913         See through ADDR_EXPR in finding place to propagate into.
3914
3915 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
3916
3917         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
3918         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
3919         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
3920         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
3921         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
3922         tree-ssa-operands.c, tree-vect-analyze.c,
3923         tree-vect-transform.c, tree-vectorizer.c, tree.c,
3924         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
3925         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
3926         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
3927         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
3928         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
3929         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
3930         config/sh/ushmedia.h, config/sparc/sparc.c,
3931         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
3932         typos.  Follow spelling conventions.
3933         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
3934         Follow spelling conventions.
3935
3936 2005-05-26  David Ung  <davidu@mips.com>
3937
3938         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
3939         that determines whether the MIPS32/64 R2 ext/ins should be used.
3940         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
3941         * config/mips/mips.md (extzv): Changed predicate for operand to
3942         nonimmediate_operand. Add code to generate insn patterns for
3943         extzvsi and extzvdi.
3944         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
3945         (insv): Similarly for insertion.
3946         (insv<mode>): Similarly.
3947
3948 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
3949
3950         * simplify-rtx.c (avoid_constant_pool_reference): Support
3951         offsetted addresses in the constant pool.
3952
3953 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
3954
3955         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
3956         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
3957
3958 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
3959
3960         PR target/21716
3961         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
3962         found in the basic block and last insn in the basic block is not
3963         INSN_P.  Remove explicit unspec numbers that are no longer valid
3964         from comments.
3965
3966 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
3967
3968         * tree-vect-transform.c (vectorizable_operation): Try word_mode
3969         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
3970         if a vector mode is available.
3971
3972 2005-05-25  Roger Sayle  <roger@eyesopen.com>
3973
3974         PR middle-end/21709
3975         * fold-const.c (const_binop): Check for division by zero during
3976         complex division.
3977
3978 2005-05-26  Ian Lance Taylor  <ian@airs.com>
3979
3980         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
3981         having a declaration after a statement.
3982
3983 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
3984
3985         * opt-functions.awk (var_type): New function.
3986         (var_set): Use CLVC_STRING if var_type returns "const char *".
3987         * opth-gen.awk: Use var_type to find out the types of variables.
3988         Don't print comments above each "extern" definition.
3989         * optc-gen.awk: Use var_type in the same way.
3990         * opts.h (cl_var_cond): Rename to...
3991         (cl_var_type): ...this.  Add CLVC_STRING.
3992         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
3993         with "var_type".
3994         * opts.c (handle_option, option_enabled): Update after above name
3995         change.  Cast flag_var before using it.  Handle CLVC_STRING.
3996         
3997         * config/alpha/alpha.h (alpha_tls_size): Delete.
3998         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
3999         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
4000         (alpha_fptm_string, alpha_mlat_string): Delete.
4001         (alpha_handle_option): Don't set the above variables here.  Use the
4002         integer argument to check the validity of -mtls-size=.
4003         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
4004         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
4005         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
4006         variable to 32.
4007
4008         * config/arc/arc.c (arc_cpu_string, arc_text_string)
4009         (arc_data_string, arc_rodata_string): Delete.
4010         (arc_handle_option): Don't set the above variables here.
4011         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
4012         and initialize them.
4013
4014         * config/arm/arm.c (target_fpu_name, target_fpe_name)
4015         (target_float_abi_name, target_abi_name, structure_size_string)
4016         (arm_pic_register_string): Delete.
4017         (arm_handle_option): Don't set the above variables here, except
4018         in the handling of -mhard-float and -msoft-float.
4019         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
4020         (mpic-register=, mstructure-size-boundary=): Add Var()s.
4021
4022         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
4023         (avr_handle_option): Delete.
4024         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
4025         them.
4026
4027         * config/bfin/bfin.c (bfin_library_id): Delete.
4028         (bfin_handle_option): Don't set it.
4029         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
4030
4031         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
4032         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
4033         (c4x_handle_option): Don't set c4x_rpts_cycles here.
4034         * config/c4x/c4x.opt (mrpts=): Add Var().
4035
4036         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
4037         cris_elinux_stacksize_str here.
4038         * config/cris/aout.opt (melinux-stacksize=): Add Var().
4039         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
4040         (cris_tune_str, cris_elinux_stacksize_str): Delete.
4041         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
4042         (cris_tune_str, cris_elinux_stacksize_str): Delete.
4043         (cris_handle_option): Don't set the above variables here.
4044         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
4045         (max-stackframe=): Add Var()s.
4046
4047         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
4048         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
4049         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
4050         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
4051         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
4052         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
4053         (ix86_handle_option): Don't set the above variables here.
4054         * config/i386/i386.opt (malign-functions=, malign-jumps=)
4055         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
4056         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
4057         Var()s.
4058
4059         * config/ia64/ia64.h (ia64_tls_size): Delete.
4060         * config/ia64/ia64.c (ia64_tls_size): Delete.
4061         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
4062         reading the integer argument from the "value" parameter.  Don't
4063         set ia64_tls_size here.
4064         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
4065         Add Var() and Init().
4066
4067         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
4068         (m32r_cache_flush_trap): Delete.
4069         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
4070         (m32r_cache_flush_trap): Delete.
4071         (m32r_handle_option): Don't set the above variables when handling
4072         -mflush-func= and -mflush-trap=.
4073         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
4074         and Init()s.
4075
4076         * config/mips/mips.h (mips_cache_flush_func): Delete.
4077         * config/mips/mips.c (mips_arch_string, mips_tune_string)
4078         (mips_cache_flush_func): Delete.
4079         (mips_handle_option): Don't set the above variables when handling
4080         -march=, -mtune= and -mflush-func=.
4081         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
4082
4083         * config/s390/s390.c (s390_arch_string): Delete.
4084         (s390_handle_option): Don't set it here.
4085         * config/s390/s390.opt (march=): Add Var().
4086
4087         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
4088         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
4089         (sparc_handle_option): Don't set it here.
4090         * config/sparc/sparc.opt (mcmodel=): Add Var().
4091
4092 2005-05-25  Roger Sayle  <roger@eyesopen.com>
4093
4094         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
4095         call to convert_to_integer by building the NOP_EXPR directly.
4096
4097 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
4098
4099         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
4100
4101 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
4102             Jeff Law  <law@redhat.com>
4103
4104         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
4105         constant and side_effects of the ADDR_EXPR are consistent.
4106
4107         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
4108         appropriately around calls to recompute_tree_invarant_for_addr_expr.
4109
4110 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
4111
4112         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
4113         (s390_function_arg, s390_gimplify_va_arg): Use them.
4114         (s390_register_info): Save only required subset of argument
4115         registers into save area for va_list.
4116         (s390_va_start): Initialize only required elements of va_list struct.
4117         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
4118
4119 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
4120
4121         * reload1.c (verify_initial_elim_offsets): Return boolean status
4122         instead of aborting.
4123         (reload): Adapt verify_initial_elim_offsets call site.  Restart
4124         main loop if some initial elimination offsets changed.
4125
4126 2005-05-25  Adam Nemet  <anemet@lnxw.com>
4127
4128         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
4129         of -mno-svr4-struct-return.
4130
4131 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
4132
4133         Fix PR tree-optimization/21705
4134         
4135         * tree-ssa-pre.c (in_fre): New static variable.
4136         (create_value_expr_from): Recursively value number reference ops
4137         in argument lists.
4138         (can_value_number_call): Temporary restrict only exists for
4139         PRE, not FRE.
4140
4141 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4142
4143         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
4144         sizeof (bitmap *) with sizeof (bitmap).
4145
4146 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
4147
4148         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
4149         condition.
4150
4151 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
4152
4153         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
4154         hook_bool_rtx_true.
4155
4156 2005-05-25  Jan Hubicka  <jh@suse.cz>
4157
4158         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
4159         * cgraph.c (cgraph_create_node): Reset estimated_growth.
4160         * cgraph.h (cgraph_global_info): Add estimated_growth.
4161         * ipa-inline.c: Include coverage.h
4162         (max_insns, max_count): New static variables.
4163         (cgraph_estimate_size_after_inlining): Cache the result.
4164         (cgraph_estimate_growth):
4165         * passes.c (rest_of_clean_state): Kill coverage_end_function.
4166         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
4167         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
4168         inlining.
4169         (ipa_passes): Initialize bitmaps.
4170
4171 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
4172
4173         * loop-doloop.c: Include "target.h". 
4174           (doloop_valid_p): Move tests to function in targhooks.c.
4175         * target.h (struct gcc_target): New target hook
4176           "insn_valid_within_doloop".
4177         * target-def.h: Define default value for "insn_valid_within_doloop".
4178           (TARGET_INITIALIZER): Insert new target hook into initializer.
4179         * targhooks.c (default_insn_valid_within_doloop): New function.
4180         * targhooks.h (default_insn_valid_within_doloop): Declare.
4181         * hooks.c (hook_bool_rtx_true): New function.
4182         * hooks.h (hook_bool_rtx_true): Declare.
4183         * doc/tm.texi: Add documentation for new target hook.
4184
4185 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4186
4187         PR target/21412
4188         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
4189         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
4190         (sparc_tls_referenced_p): New prototype.
4191         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
4192         (sparc_expand_move): Look for TLS addresses with constant offsets.
4193         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
4194         tls_symbolic_operand.
4195         (legitimate_pic_operand_p): Likewise.
4196         (legitimate_address_p): Likewise.
4197         (legitimize_address): Likewise.
4198         (sparc_tls_symbol_ref_1): New function.
4199         (sparc_tls_referenced_p): New function.
4200         * config/sparc/predicates.md (tgd_symbolic_operand): Use
4201         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
4202         (tld_symbolic_operand): Likewise.
4203         (tie_symbolic_operand): Likewise.
4204         (tle_symbolic_operand): Likewise.
4205
4206 2005-05-24  DJ Delorie  <dj@redhat.com>
4207         
4208         * common.opt (-Wattributes): New.  Default true.
4209         * doc/invoke.texi (-Wno-attributes): Document.
4210         
4211         * attribs.c (decl_attributes): Move warning control from if() to
4212         warning(OPT_*).
4213         * c-common.c (handle_packed_attribute): Likewise.
4214         (handle_nocommon_attribute): Likewise.
4215         (handle_common_attribute): Likewise.
4216         (handle_noreturn_attribute): Likewise.
4217         (handle_noinline_attribute): Likewise.
4218         (handle_always_inline_attribute): Likewise.
4219         (handle_used_attribute): Likewise.
4220         (handle_unused_attribute): Likewise.
4221         (handle_const_attribute): Likewise.
4222         (handle_transparent_union_attribute): Likewise.
4223         (handle_constructor_attribute): Likewise.
4224         (handle_destructor_attribute): Likewise.
4225         (handle_mode_attribute): Likewise.
4226         (handle_alias_attribute): Likewise.
4227         (handle_visibility_attribute): Likewise.
4228         (handle_tls_model_attribute): Likewise.
4229         (handle_malloc_attribute): Likewise.
4230         (handle_returns_twice_attribute): Likewise.
4231         (handle_pure_attribute): Likewise.
4232         (handle_deprecated_attribute): Likewise.
4233         (handle_vector_size_attribute): Likewise.
4234         (handle_nothrow_attribute): Likewise.
4235         (handle_cleanup_attribute): Likewise.
4236         (handle_warn_unused_result_attribute): Likewise.
4237         (handle_sentinel_attribute): Likewise.
4238         * c-decl.c (diagnose_mismatched_decls): Likewise.
4239         (start_decl): Likewise.
4240         (grokdeclarator): Likewise.
4241         (start_function): Likewise.
4242         * c-format.c (check_function_format): Likewise.
4243         * stor-layout.c (place_field): Likewise.
4244         (finalize_record_size): Likewise.
4245         * tree.c (handle_dll_attribute)): Likewise.
4246         * varasm.c (default_assemble_visibility): Likewise.
4247         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
4248         (darwin_assemble_visibility): Likewise.
4249         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
4250         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
4251         (arm_handle_isr_attribute): Likewise.
4252         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
4253         (avr_handle_fndecl_attribute): Likewise.
4254         * config/bfin/bfin.c (handle_int_attribute): Likewise.
4255         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
4256         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
4257         (h8300_handle_eightbit_data_attribute): Likewise.
4258         (h8300_handle_tiny_data_attribute): Likewise.
4259         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
4260         (ix86_handle_regparm_attribute): Likewise.
4261         (ix86_handle_struct_attribute): Likewise.
4262         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
4263         (i386_pe_encode_section_info): Likewise.
4264         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
4265         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
4266         (ip2k_handle_fndecl_attribute): Likewise.
4267         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
4268         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
4269         (m68hc11_handle_fntype_attribute): Likewise.
4270         (m68hc11_encode_section_info): Likewise.
4271         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
4272         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
4273         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
4274         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
4275         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
4276         (sh_handle_sp_switch_attribute): Likewise.
4277         (sh_handle_trap_exit_attribute): Likewise.
4278         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
4279         (sh_symbian_handle_dll_attribute): Likewise.
4280         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
4281         (xstormy16_handle_below100_attribute): Likewise.
4282         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
4283
4284         * c-common.c (unsigned_conversion_warning): Move warning control
4285         from if() to warning(OPT_*).
4286         (c_common_truthvalue_conversion): Likewise.
4287         (c_do_switch_warnings): Likewise.
4288         * c-decl.c (diagnose_mismatched_decls): Likewise.
4289         (diagnose_mismatched_decls): Likewise.
4290         (define_label): Likewise.
4291         (grokdeclarator): Likewise.
4292         * c-format.c (check_format_info): Likewise.
4293         * c-lex.c (interpret_integer): Likwise.
4294         (lex_string): Likewise.
4295         * c-opts.c (c_common_post_options): Likewise.
4296         * c-parser.c (c_parser_unary_expression): Likewise.
4297         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
4298         (handle_pragma_extern_prefix): Likewise.
4299         * c-typeck.c (build_binary_op): Likewise.
4300         * gcse.c (is_too_expensive): Likewise.
4301         * opts.c (decode_options): Likewise.
4302         * stor-layout.c (place_field): Likewise.
4303         * tree-cfg.c (remove_bb): Likewise.
4304
4305         * c.opt (-Wreturn-type): Add Var(warn_return_type).
4306         * flags.h (warn_return_type): Remove.
4307         * toplev.c (warn_return_type): Likewise.
4308
4309 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
4310
4311         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
4312         existence of long long and __int64 before determining their size.
4313         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
4314         * configure, config.h.in:  Regenerate.
4315
4316 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
4317
4318         * configure: Regenerate.
4319
4320 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
4321
4322         * c-common.h (objc_comptypes): Remove prototype.
4323         (objc_compare_types): New prototype.
4324         (objc_volatilized_decl): Likewise.
4325         (objc_type_quals_match): Likewise.
4326         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
4327         objc_volatilize_decl().
4328         * c-typeck.c (comp_target_types): Remove third parameter; do
4329         not call objc_comptypes().
4330         (comptypes): Remove calls to objc_comptypes().
4331         (build_function_call): Extend compatible prototype check to ObjC.
4332         (build_conditional_expr): Adjust call to comp_target_types().
4333         (convert_for_assignment): Call objc_compare_types() instead of
4334         objc_comptypes(); adjust calls to comp_target_types(); call
4335         objc_type_quals_match() before issuing qualifier mismatch
4336         warnings.
4337         (build_binary_op): Call objc_compare_types() before issuing
4338         pointer mismatch warnings; adjust calls to
4339         comp_target_types().
4340         * stub-objc.c (objc_comptypes): Remove stub.
4341         (objc_compare_types): New stub.
4342         (objc_volatilized_decl): Likewise.
4343         (objc_type_quals_match): Likewise.
4344
4345 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
4346
4347         * config/ia64/ia64intrin.h: Define nothing for C++:
4348         overloaded builtins have been ported to C++.
4349
4350 2005-05-24  Jeff Law  <law@redhat.com>
4351
4352         * tree-nested.c (build_addr): New "context" argument.  Temporarily
4353         set current_function_decl around the call to build the ADDR_EXPR.
4354         (get_static_chain): Pass proper context to build_addr.
4355         (convert_nl_goto_reference): Likewise.
4356         (convert_tramp_reference): Likewise.
4357         (final_nesting_tree_1): Likewise.
4358         * tree-profile.c (tree_gen_interval_profiler): Likewise.
4359         (tree_gen_pow2_profiler): Likewise.
4360         (tree_gen_one_value_profiler): Likewise.
4361         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
4362         * tree.h (build_addr): Update prototype.
4363
4364 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
4365
4366         * tree-flow.h (bb_ann_d): Remove has_escape_site.
4367         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
4368         write to has_escape_site.
4369
4370 2005-05-24  Jeff Law  <law@redhat.com>
4371
4372         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
4373         * tree-cfg.c: Include tree-ssa-propagate.h.
4374         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
4375         needed.
4376
4377 2005-05-24  Nick Clifton  <nickc@redhat.com>
4378
4379         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4380         __NO_FPRS__ when 'f' class registers will not be available. 
4381
4382 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4383
4384         * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
4385         nothing was done.
4386         * config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did
4387         nothing then FAIL.
4388         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
4389         prototype.
4390
4391 2005-05-23  Jeff Law  <law@redhat.com>
4392
4393         * tree-ssa-dom.c (cprop_into_stmt): Do not call
4394         recompute_tree_invariant_for_addr_expr here.
4395         (optimize_stmt): Call it here instead and do so if anything
4396         at all has changed in the statement and the RHS is an ADDR_EXPR.
4397         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
4398         needed, call recompute_tree_invariant_for_addr_expr.
4399         * tree-ssa-propagate.c (substitute_and_fold): Call
4400         recompute_tree_invariant_for_addr_expr as needed.
4401
4402 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
4403
4404         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
4405         saving less registers than the replacement.
4406
4407 2005-05-23  Jan Hubicka  <jh@suse.cz>
4408
4409         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
4410
4411 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4412
4413         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
4414         * config/sparc/sparc.c (sparc_expand_move): New function.
4415         (sparc_emit_set_const64): Rewrite assert condition on entry.
4416         (legitimate_constant_p) <CONST_VECTOR>: New case.
4417         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
4418         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
4419         movV64, movtf): Use nonimmediate_operand for the first operand.
4420         Rewrite.  Only invoke sparc_expand_move.
4421         * config/sparc/predicates.md (input_operand): Reorder tests.
4422
4423 2005-05-23  Jan Beulich  <jbeulich@novell.com>
4424
4425         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
4426         missing return statement.
4427
4428 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4429
4430         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
4431         emit_move_insn for moves to TFmode stack slots.
4432
4433 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
4434
4435         * tree-stdarg.c (execute_optimize_stdarg): Handle references
4436         to va_list of the form &va[0].
4437
4438 2005-05-20  Jan Hubicka  <jh@suse.cz>
4439
4440         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
4441         * genemit.c (main): Make insn-emit to include basic-block.h too.
4442
4443 2005-05-20  Jan Hubicka  <jh@suse.cz>
4444
4445         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
4446
4447 2005-05-19  Richard Henderson  <rth@redhat.com>
4448
4449         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
4450         emit_store_conditional): Split out from ...
4451         (alpha_split_atomic_op): ... here.
4452         (alpha_split_compare_and_swap): New; extract from .md file.
4453         (alpha_split_lock_test_and_set): Likewise.
4454         * config/alpha/alpha-protos.h: Update.
4455         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
4456         split code into alpha.c.
4457         (sync_lock_test_and_set<I48MODE>): Likewise.
4458
4459 2005-05-19  Richard Henderson  <rth@redhat.com>
4460
4461         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
4462
4463 2005-05-19  Richard Henderson  <rth@redhat.com>
4464
4465         * config/i386/sse.md (mulv4si3): Use all register inputs.
4466         (mulv2di3): Likewise.
4467
4468 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
4469
4470         * tree-ssa-loop-ivopts.c (determine_base_object): Use
4471         build_fold_addr_expr to generate trees of correct type.
4472         Use fold_buildN if possible.
4473
4474 2005-05-19  Jan Hubicka  <jh@suse.cz>
4475
4476         * basic-block.h (REG_BR_PROB_BASE): Define.
4477         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
4478         (dump_cgraph_node): Dump count.
4479         (cgraph_clone_edge): Rescale counts.
4480         (cgraph_clone_node): Likewise.
4481         * cgraph.h: Include basic-block.h
4482         (cgraph_node): Add count.
4483         (cgraph_edge): Add count and loop_nest.
4484         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
4485         Update prototypes.
4486         * cgraphunit.c: Kill now redundant inlining comment.
4487         (cgraph_create_edges): Make static, maintain current basic block;
4488         fix pasto.
4489         (record_call_1): Fill in new fields.
4490         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
4491         cgraph_clone_node.
4492         (cgraph_decide_recursive_inlining): Likewise.
4493         * rtl.h (REG_BR_PROB_BASE): Kill.
4494         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
4495         (expand_call_inline): Update call of cgraph_create_edge.
4496         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4497
4498 2005-05-19  Nick Clifton  <nickc@redhat.com>
4499
4500         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
4501         new rs6000_explicit_options structure.
4502
4503 2005-05-19  Richard Henderson  <rth@redhat.com>
4504
4505         PR target/21390
4506         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move 
4507         TFmode code swapping ...
4508         (alpha_emit_xfloating_compare): ... here.
4509         (alpha_emit_setcc): Update to match.
4510         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
4511
4512 2005-05-19  Richard Henderson  <rth@redhat.com>
4513
4514         PR target/21657
4515         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
4516         memory indirection in local-dynamic case.
4517
4518 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
4519             Bernd Schmidt  <bernd.schmidt@analog.com>
4520
4521         * config/bfin/bfin.c (branch_dest): Add comment why it's
4522         necessary.
4523         * config/bfin/bfin.md (attr "length" default): Change the offset of
4524         forward conditional branch of length 4 from 4096 to 4092.
4525
4526 2005-05-19  Jan Beulich  <jbeulich@novell.com>
4527
4528         * unwind-compat.c: Include tconfig.h and tsystem.h.
4529         * unwind-dw2-fde-compat.c: Likewise.
4530
4531 2005-05-18  Richard Henderson  <rth@redhat.com>
4532
4533         PR 21541
4534         * ifcvt.c (noce_process_if_block): Avoid conversion when the
4535         memory destination is readonly.
4536
4537 2005-05-18  Richard Henderson  <rth@redhat.com>
4538
4539         PR 21541
4540         * tree-ssa-operands.c (opf_non_specific): New.
4541         (get_asm_expr_operands): Set it.
4542         (add_call_clobber_ops, add_call_read_ops): Likewise.
4543         (add_stmt_operand): Test it instead of opf_kill_def when
4544         considering unmodifiable variables.
4545
4546         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
4547
4548 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
4549
4550         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
4551         tree-ssa-forwprop.c: Fix comment typos.
4552         * doc/invoke.texi: Fix a typo.
4553
4554 2005-05-18  Richard Henderson  <rth@redhat.com>
4555
4556         * config.gcc (powerpc-*-linux*): Include linux64.opt when
4557         including linux64.h.
4558
4559 2005-05-18  Richard Henderson  <rth@redhat.com>
4560
4561         * tree-cfg.c (pass_remove_useless): Revert last change.
4562         * tree-optimize.c (init_tree_optimization_passes): Initialize
4563         all_lowering_passes with PROP_gimple_any.
4564
4565 2005-05-18  Devang Patel  <dpatel@apple.com>
4566
4567         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
4568         the mask end.
4569         
4570 2005-05-18  Richard Henderson  <rth@redhat.com>
4571
4572         * tree-ssa-forwprop.c (cfg_changed): New.
4573         (tidy_after_forward_propagate_addr): New.
4574         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
4575         (forward_propagate_addr_into_variable_array_index): Likewise.
4576         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
4577         edges were removed.
4578
4579 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
4580
4581         * dummy-checksum.c: New.
4582         * genchecksum.c: New.
4583         * c.opt (print_pch_checksum): New flag.
4584         * c-pch.c (struct c_pch_validity): Make much shorter.
4585         (no_checksum): New.
4586         (host_machine): Remove.
4587         (target_machine): Remove.
4588         (get_ident): Change PCH version number.
4589         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
4590         Don't put triplets or version string in PCH validity data.
4591         Do put the compiler checksum in the validity data.
4592         (c_common_valid_pch): Don't check triplets or version string.  Do
4593         check checksum.
4594         (c_common_print_pch_checksum): New.
4595         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
4596         Print fingerprint with -v.
4597         * c-common.h (c_common_print_pch_checksum): New.
4598         (executable_checksum): New.
4599         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
4600         (cc1-dummy): New rule.
4601         (cc1-checksum.c): New rule.
4602         (cc1-checksum.o): New rule.
4603         (cc1): Add checksum support.
4604         (build/genchecksum): New.
4605         (build/genchecksum.o): New.
4606         (dummy-checksum.o): New.
4607         (genobjnames): Add genchecksum.o.
4608         (mostlyclean): Remove *-checksum.c.
4609         (gnucompare): Add libgcc to list of directories checked.
4610         Make comparison problems in libgcc/ and with checksum files only
4611         be warnings.
4612         * doc/invoke.texi (Precompiled Headers): Remove caution.
4613         Document that it must be the exact same binary.  Add a few
4614         known-safe flags to the list.
4615
4616         * rs6000/predicates.md (fix_trunc_dest_operand): New.
4617         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
4618         Check that a memory operand is valid before trying to use it.
4619         
4620         * tree-cfg.c (pass_remove_useless): This pass works on trees.
4621
4622 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
4623
4624         * tree.c (build1_stat): Don't try to handle two-operand
4625         tree codes.
4626
4627 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
4628
4629         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
4630         * config/sh/sh.h: Update mask names throughout.
4631         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
4632         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
4633         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
4634         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
4635         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
4636         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
4637         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
4638         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
4639         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
4640         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
4641         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
4642         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
4643         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
4644         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
4645         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
4646         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
4647         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
4648         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
4649         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
4650         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
4651         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
4652         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
4653         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
4654         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
4655         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
4656         (SUBTARGET_SWITCHES): Delete.
4657         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
4658         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
4659         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
4660         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
4661         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
4662         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
4663         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
4664         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
4665         (SUPPORT_SH3): Likewise SUPPORT_SH2.
4666         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
4667         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
4668         SUPPORT_SH4_NOFPU.
4669         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
4670         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
4671         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
4672         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
4673         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
4674         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
4675         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
4676         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
4677         (SUPPORT_ANY_SH5): New macros.
4678         (TARGET_NONE): Replace with...
4679         (MASK_ARCH): ...this new macro.
4680         * config/sh/elf.h: Update mask names
4681         * config/sh/linux.h: Likewise.
4682         * config/sh/little.h: Likewise.
4683         * config/sh/netbsd-elf.h: Likewise.
4684         * config/sh/symbian-pre.h: Likewise.
4685         * config/sh/sh.c (sh_handle_option): New function.
4686         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4687         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
4688         (sh_target_switches, target_switches): Delete.
4689         (sh_pch_valid_p): Check for specific differences in the target_flags
4690         settings.
4691         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
4692         * config/sh/sh.opt: New file.
4693
4694 2005-05-18  Richard Henderson  <rth@redhat.com>
4695
4696         PR target/21632
4697         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
4698         small_addr_symbolic_operand.
4699
4700 2005-05-18  Jeff Law  <law@redhat.com>
4701
4702         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
4703         propagate an ADDR_EXPR if the definition and use sites are
4704         in different EH regions.
4705
4706 2005-05-18  Ian Lance Taylor  <ian@airs.com>
4707
4708         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
4709         obstack_grow.
4710
4711 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
4712
4713         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
4714
4715 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
4716         
4717         Fix PR tree-optimization/21407
4718
4719         * tree-ssa-operands.c (note_addressable): Change
4720         COMPONENT_REF handling in response to aliasing
4721         discussion.
4722
4723 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4724
4725         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
4726         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
4727         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
4728         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
4729         the default on Solaris too.
4730
4731 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
4732
4733         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
4734         is okay too.
4735
4736 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4737
4738         * timevar.def (TV_SCEV_CONST): New timevar.
4739         * tree-optimize.c (init_tree_optimization_passes): Add
4740         pass_scev_cprop.
4741         * tree-pass.h (pass_scev_cprop): Declare.
4742         * tree-scalar-evolution.c (scev_const_prop): New function.
4743         * tree-scalar-evolution.h (scev_const_prop): Declare.
4744         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
4745         New.
4746         * tree-cfg.c (replace_uses_by): Export.
4747         * tree-flow.h (replace_uses_by): Declare.
4748
4749 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
4750             Mike Stump  <mrs@apple.com>
4751
4752         Yet more Objective-C++...
4753
4754         * c-common.h (objc_finish_try_stmt): Add.
4755         (objc_build_synchronized): Add.
4756         (objc_generate_write_barrier): Add.
4757         * stub-objc.c (objc_build_synchronized): Add return value.
4758         (objc_finish_try_stmt): Likewise.
4759         (objc_generate_write_barrier): Add.
4760
4761         * c-common.h (objc_rewrite_function_call): Add.
4762         * c-typeck.c (build_function_call): Allow objc to rewrite
4763         FUNCTION_DECLs.
4764         (build_modify_expr): Allow objc to generate write barriers.
4765         * c.opt (Wassign-intercept): Add.
4766         (Wstrict-selector-match): Add.
4767         (fobjc-call-cxx-cdtors): Add.
4768         (fobjc-direct-dispatch): Add.
4769         (fobjc-gc): Add.
4770         * dbxout.c (get_lang_number): Add Objective-C++ support.
4771         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
4772         (-Wstrict-selector-match): Likewise.
4773         (-fobjc-direct-dispatch): Likewise.
4774         (-Wassign-intercept): Likewise.
4775         (Overall Options): Likewise.
4776         * gengtype.c (get_output_file_with_visibility): Likewise.
4777         * stub-objc.c (objc_rewrite_function_call): Add.
4778         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
4779
4780         * c-common.c (flag_objc_exceptions): Remove.
4781         (flag_objc_sjlj_exceptions): Remove.
4782         * c-decl.c (objc_mark_locals_volatile): Don't change decls
4783         that are already ok.
4784         * c-opts.c (c_common_handle_option, case
4785         OPT_fobjc_exceptions): Remove.
4786         (case OPT_fobjc_sjlj_exceptions): Remove
4787         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
4788         (fobjc-exceptions): Likewise.
4789         (fobjc-sjlj-exceptions): Likewise.
4790         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
4791         (OFFS_ASSIGNIVAR_FAST): Add.
4792         
4793 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4794
4795         * config/sparc/sparc.md (movhi): Do not test constness
4796         of operand #1 twice.
4797         (movsi): Likewise.
4798         (movdi): Unconditionally accept zero as second operand
4799         when the first is memory.
4800         (movdi_insn_sp32): Handle above case.
4801         (DImode splitter): Use predicates.
4802         (DImode splitter): Use const_zero_operand predicate.
4803         (movsf_insn): Swap 2 alternatives.
4804
4805 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4806
4807         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
4808         expand_simple_operations to bases of the ivs.
4809         (tree_int_cst_sign_bit): Export.
4810         * tree-flow.h (expand_simple_operations): Declare.
4811         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
4812         tree_int_cst_sign_bit.
4813         (expand_simple_operations): Export.
4814         * tree.h (tree_int_cst_sign_bit): Declare.
4815
4816 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4817
4818         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
4819         merged block.
4820         (replace_uses_by): New function.
4821         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
4822         * tree-flow.h (fold_stmt_inplace): Declare.
4823         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
4824         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
4825         info after cfg cleanup.
4826
4827 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4828
4829         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
4830         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
4831         const.
4832
4833 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
4834
4835         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
4836         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
4837         * timevar.c (timevar_ggc_mem_total): New variable.
4838         (GGC_MEM_BOUND): New constant.
4839         (get_time): Record ggc memory status.
4840         (timevar_accumulate): Accumulate amount of ggc memory.
4841         (timevar_print): Print consumption of ggc memory.
4842         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
4843         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
4844         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
4845         * timevar.h (struct timevar_time_def): Add ggc_mem field.
4846         (timevar_ggc_mem_total): Declare.
4847
4848 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
4849
4850         * tree-into-ssa.c (update_ssa): Clean up by shortening the
4851         live range of DFS.
4852
4853 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
4854
4855         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
4856         define_code_attr.
4857         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
4858         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
4859         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
4860         ("s<ocond:code>"): Rename from respectively "b<ncond>",
4861         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
4862         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
4863         "s<rcond>" and "s<ocond>".
4864         ("b<ocond:code>", "*b<ocond:code>_reversed")
4865         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
4866         output statement section.
4867
4868 2005-05-17  Roger Sayle  <roger@eyesopen.com>
4869
4870         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
4871
4872 2005-05-17  Steven Bosscher  <stevenb@suse.de>
4873             Stuart Hastings <stuart@apple.com>
4874             Jan Hubicka  <jh@suse.cz>
4875             Dale Johannesen  <dalej@apple.com>
4876
4877         * cgraph.h (cgraph_node): Add 'lowered' state.
4878         (cgraph_lower_function): Declare.
4879         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
4880         (cgraph_lower_function): New function.
4881         (cgraph_create_edges): Deal with lowered function bodies.
4882         (verify_cgraph_node): Likewise.
4883         (cgraph_analyze_function): Do lowering job.
4884         (cgraph_build_static_cdtor): Likewise.
4885         * function.h (struct function): Add saved_eh and saved_cfg.
4886         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
4887         * tree-cfg.c (fold_cond_expr_cond): Export.
4888         * tree-flow.h (fold_cond_expr_cond): Declare.
4889         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
4890         pointer-set.
4891         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
4892         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
4893         callee_cfun, block, eh_region, eh_region_offset.
4894         (inlining_p): New predicate.
4895         (remap_decl): Update for new inline_data; declare newly created inline
4896         vars in low gimple way.
4897         (copy_body_r): Update for new datastructure, simplify some of handling
4898         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
4899         deal with RESX_EXPRs.
4900         (copy_bb): New.
4901         (copy_edges_for_bb): Likewise.
4902         (remap_decl_1): New.
4903         (copy_cfg_body): New.
4904         (copy_generic_body): Rewrite to work on low gimple.
4905         (copy_body): Turn into simple wrapper around copy_cfg_body.
4906         (setup_one_parameter): Insert new statements into given basic block.
4907         (initialize_initialized_parameters): Likewise, reorganize way things are
4908         gimplified.
4909         (declare_return_variable): Update for new inline data datastructure.
4910         (inline_forbidden_p): Work on low gimple.
4911         (estimate_num_insns): Likewise.
4912         (expand_call_inline): Work on CFG.
4913         (push_cfun, pop_cfun): New functions.
4914         (cfun_stack): New stack.
4915         (add_lexical_block): New function.
4916         (gimple_expand_calls_inline): Work on basic block.
4917         (optimize_inline_calls): Likewise.
4918         (clone_body, save_body, unsave_ewpr_now): Update for new
4919         datastructures.
4920         (declare_inline_vars): Work on block instead of bind_expr.
4921         (inlining_p): New predicate.
4922         * tree-inline.h (push_cfun, pop_cfun): Declare.
4923         * tree-optimize.c: Include except.h
4924         (all_lowering_passes): New variable.
4925         (execute_fixup_cfg, pass_fixup_cfg): New pass.
4926         (init_tree_optimization_passes): Move some to all_lowering_passes.
4927         (tree_lowering_passes): New function.
4928         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
4929         * tree-pass.h (tree_lowering_passes): Declare
4930
4931 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
4932
4933         * unwind-dw2-fde-darwin.c: Include tsystem.h.
4934
4935 2005-05-17  Jeff Law  <law@redhat.com>
4936
4937         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
4938         * tree-ssa-forwprop.c: Include langhooks.h.
4939         (forward_propagate_addr_expr_into_variable_array_index): New.
4940         (forward_propagate_addr_expr): New.
4941         (tree_ssa_forward_propagate_single_use_vars): Loop over all
4942         the statements in the block instead of just the last statement.
4943         Call forward_propagate_addr_expr as needed.
4944         (pass_forwprop): Update the SSA graph after forward propagation is
4945         complete.
4946
4947 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
4948
4949         * unwind-dw2-fde-glibc.c (base_from_cb_data,
4950         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
4951         appropriate.
4952         * unwind-dw2-fde.c (__deregister_frame_info_bases,
4953         base_from_object, fde_split, end_fde_sort): Likewise.
4954         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op, 
4955         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
4956         uw_init_context_1): Likewise.
4957         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
4958         _Unwind_Resume_or_Rethrow): Likewise.
4959         * unwind-pe.h (__gxx_abort): Do not define.
4960         (size_of_encoded_value, base_of_encoded_value,
4961         read_encoded_value_with_base): Use gcc_unreachable.
4962         * unwind.h (_Unwind_GetTextRelBase): Likewise.
4963
4964 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
4965
4966         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
4967         (cfi_end): New macros.
4968         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
4969         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
4970         an eight byte stack frame.
4971         (__NR_tkill): Define.
4972         (__div0): Use gettid tkill on GNU/Linux.
4973         (_arm_return): Add CFI.
4974         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
4975
4976 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
4977
4978         * configure.ac: Remove spaces around assignment to
4979         gcc_cv_ld_sysroot.
4980         * configure: Regenerated.
4981
4982 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
4983
4984         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
4985         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
4986         aix_struct_ret.
4987         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
4988         Modify aix_struct_return variable, not target_flags.
4989         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
4990         (rs6000_return_in_memory): Test aix_struct_return.
4991         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
4992         independent variable.  Report mxl-compat.
4993
4994 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4995
4996         * config/bfin/bfin.md (eh_return): Add missing DONE.
4997
4998 2005-05-17  Ian Lance Taylor  <ian@airs.com>
4999
5000         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
5001         field.
5002         (mode_attr_index): Remove check for defined attribute.  Remove
5003         infile parameter.  Change all callers.
5004         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
5005         return after finding attribute.
5006         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
5007         callers.
5008         (apply_macro_traverse): Set mtd->unknown_mode_attr.
5009         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
5010         attribute used for a mode.
5011
5012 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
5013
5014         * tree-ssa-math-opts.c: New file.
5015
5016 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
5017
5018         * Makefile.in: Add tree-ssa-math-opts.c.
5019         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
5020         * fold-const.c (distribute_real_division): New.
5021         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
5022         * tree-pass.h (pass_cse_reciprocals): New.
5023         * tree-optimize.c (init_tree_optimization_passes): Run it.
5024         * doc/passes.texi: Document the new pass.
5025
5026 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
5027
5028         PR middle-end/21595
5029         * builtins.c (fold_builtin_constant_p): Handle
5030         &"string cst"[0] as constant.
5031
5032 2005-05-17  Richard Henderson  <rth@redhat.com>
5033
5034         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
5035
5036 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
5037
5038         PR middle-end/21492
5039         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
5040         src2 if src2 has been split.
5041
5042         PR tree-optimization/21610
5043         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
5044         returning DECL, call unshare_expr.
5045
5046 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
5047
5048         * config/cris/cris.md: Unquote preparation and output statements.
5049         (BWD, WD, BW): New, mode-macros.
5050         (S, s, m, mm, nbitsm1): New, mode-attrs.
5051         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
5052         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
5053         code-attrs.
5054         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
5055         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
5056         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
5057         "*cmp_swapexthi".
5058         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
5059         ("movdi"): Move misplaced head comment regarding necessity of
5060         movdi from movsi to here.
5061         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
5062         "*mov_sidehi_biap".
5063         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
5064         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
5065         "*mov_sideqi_biap_mem".
5066         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
5067         "*mov_sidehi_mem".
5068         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
5069         "*clear_sidehi_biap" and "*clear_sideqi_biap".
5070         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
5071         and "*clear_sideqi".
5072         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
5073         "*ext_sidehisi_biap".
5074         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
5075         "*ext_sidehisi".
5076         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
5077         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
5078         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
5079         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
5080         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
5081         "zero_extendqisi2".
5082         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
5083         "*op_sidehi_biap" and "*op_sidesi_biap".
5084         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
5085         "*op_sidesi".
5086         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
5087         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
5088         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
5089         "*op_swap_sidehi" and "*op_swap_sidesi".
5090         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
5091         in the N alternative of "subqi3".
5092         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
5093         "*extophisi_side_biap".
5094         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
5095         "*extophisi_side".
5096         ("*extop<mode>si_swap_side_biap"): Replace
5097         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
5098         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
5099         "*extophisi_swap_side".
5100         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
5101         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
5102         "*extophisi_swap".
5103         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
5104         "mulqihi3", "mulhisi3" and "mulhisi3".
5105         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
5106         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
5107         "umulsi3_highpart".
5108         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
5109         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
5110         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
5111         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
5112         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
5113         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
5114         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
5115         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
5116         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
5117         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
5118         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
5119         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
5120         "*ashlhi_lowpart".
5121         ("abs<mode>2"): Replace "abshi2" and "absqi2".
5122         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
5123         "bleu".
5124         ("b<ocond>"): Replace "bgt" and "ble".
5125         ("b<rcond>"): Replace "blt" and "bge".
5126         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
5127         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
5128         "*bleu_reversed".
5129         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
5130         "*ble_reversed".
5131         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
5132         "*blt_reversed".
5133         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
5134         "sne".
5135         ("s<rcond>"): Replace "sge" and "slt".
5136         ("s<ocond>"): Replace "sgt" and "sle".
5137         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
5138         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
5139         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
5140         clear.w [rx=rx+i] and clear.b [rx=rx+i].
5141
5142 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
5143
5144         * varasm.c (struct constant_descriptor_tree): Add hash field.
5145         (const_desc_hash): Just return hash field.
5146         (const_desc_eq): If hash values are different, return 0 immediately.
5147         (output_constant_def): Compute hash field of temporary key, use
5148         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
5149         newly built constant descriptor.
5150         (lookup_constant_def): Compute hash field of temporary key, use
5151         htab_find_with_hash instead of htab_find.
5152
5153 2005-05-16  Richard Henderson  <rth@redhat.com>
5154
5155         * config/i386/sse.md (mulv4si3): New.
5156
5157 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
5158
5159         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
5160         tests for noncanonical versions of reg+constant and
5161         reg+reg*{1,2,4}.
5162
5163 2005-05-16  Richard Henderson  <rth@redhat.com>
5164             Steven Bosscher <stevenb@suse.de>
5165
5166         PR tree-opt/21399
5167         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from 
5168         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
5169         region data structure to match replacement.
5170         * tree-flow.h: Update to match.
5171         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
5172         * tree-ssa-dom.c (optimize_stmt): Likewise.
5173         * tree-ssa-pre.c (eliminate): Likewise.
5174         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
5175
5176 2005-05-16  Caroline Tice  <ctice@apple.com>
5177
5178         * bb-reorder.c (verify_hot_cold_block_grouping):  Replace
5179         internal_error with gcc_assert.
5180         * dwarf2out.c (dwarf2out_switch_text_section):  Likewise.
5181         * function.h (struct function): Remove space between "*" and
5182         struct field names.
5183         * varasm.c (initialize_cold_section_name):   Add gcc_assert;
5184         modify to use alloca.
5185         (unlikely_text_section): Add check for flag_function_sections.
5186         (assemble_start_function):  Move call to resolve_section, so it
5187         comes before first call to unlikely_text_section.
5188         (assemble_end_function):  Add test and call to function_section
5189         if appropriate.
5190         
5191 2005-05-16  Roger Sayle  <roger@eyesopen.com>
5192
5193         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
5194         instead of build_binary_op when performing code transformations
5195         to avoid error messages about constructs not it the user's code.
5196
5197 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
5198
5199         * tree-ssa-pre.c: Fix a comment typo.
5200
5201 2005-05-16  Richard Henderson  <rth@redhat.com>
5202
5203         PR target/21556
5204         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
5205         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
5206         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
5207         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
5208         add_tprel22): Remove mode from symbolic operand.
5209
5210 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
5211
5212         * optc-gen.awk: Include intl.h after the externally-provided files.
5213
5214 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
5215
5216         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
5217         folding a COND_EXPR_COND in a nondestructive manner.
5218
5219 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
5220
5221         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh, 
5222         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
5223         New values for vec_select definitions and bitmask for element
5224         selection.
5225          
5226 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
5227
5228         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
5229         Change the type to VEC(rtx,gc)*.
5230         (mem_loc_descriptor, add_const_value_attributes,
5231         dwarf2out_init): Adjust uses of used_rtx_varray.
5232
5233         * tree-data-ref.c (compute_all_dependences): Change the type
5234         of dependence_relations to VEC(ddr_p,heap)**.
5235         (compute_data_dependences_for_loop): Change the type of
5236         allrelations to VEC(ddr_p,heap)*.
5237
5238 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
5239
5240         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
5241         system.h, coretypes.h and tm.h.
5242         (options.o): Update dependencies accordingly.
5243         * optc-gen.awk: Allow header_name to be a list of filenames.
5244         Handle the "Condition" flag.
5245         * opts.h (CL_DISABLED): New flag.
5246         * opts.c (handle_option): Print an error for CL_DISABLED options.
5247         * doc/options.texi: Document the "Condition" option flag.
5248
5249 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
5250
5251         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
5252
5253 2005-05-15  Roger Sayle  <roger@eyesopen.com>
5254
5255         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
5256         check for TREE_OVERFLOW on INTEGER_CST trees.
5257         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
5258         CONSTANT_CLASS_P tree nodes.
5259
5260 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5261
5262         PR target/21551
5263         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
5264
5265 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
5266             
5267         Fix PR tree-optimization/21576
5268         
5269         * tree-ssa-pre.c (expression_node_pool): New pool.
5270         (comparison_node_pool): Ditto.
5271         (list_node_pool): Ditto.
5272         (pool_copy_list): New function.
5273         (phi_translate): Handle CALL_EXPR.
5274         (valid_in_set): Ditto.
5275         (create_expression_by_pieces): Ditto.
5276         (insert_into_preds_of_block): Ditto.
5277         (insert_aux): Ditto.
5278         (compute_avail): Ditto.
5279         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
5280         (can_value_number_call): New function.
5281         (find_leader): Update comment.
5282         (init_pre): Create new pools.
5283         (fini_pre): Free new pools.
5284         (pass_pre): Add TODO_update_ssa for the future when we are going
5285         to need vops.
5286         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
5287         (set_value_handle): Ditto.
5288         (get_value_handle): Ditto.
5289
5290 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
5291
5292         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
5293
5294 2005-05-15  Andreas Jaeger  <aj@suse.de>
5295
5296         * gcc.c (pfatal_pexecute): Remove unused local function.
5297
5298 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
5299
5300         * optc-gen.awk: Remove excess indentation.
5301         * opth-gen.awk: Likewise.
5302
5303 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5304
5305         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
5306         of basic_block_info.  Call init_flow and find_basic_blocks
5307         before dbr_schedule if needed.
5308
5309 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5310
5311         * tree-optimize.c (init_tree_optimization_passes): Move
5312         pass_cd_dce in place of the last pass_dce.
5313
5314         PR tree-optimization/21563
5315         * tree-vrp.c (compare_value): Return boolean_false_node when
5316         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
5317         strictly larger than CST.
5318
5319 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
5320             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5321
5322         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
5323         gcc_assert().
5324         (rev_cond_name) Likewise.
5325         (vax_float_literal) Likewise.
5326         * config/vax/vax.md: Likewise.
5327
5328 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5329
5330         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
5331         registers and use them (specifically the stack pointer).
5332         * config/vax/vax.h: Use above defines right here.
5333
5334         * config/vax/vax.c: (override_options) Remove 'register' keyword.
5335         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
5336         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
5337         whitespace.
5338         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
5339         mostly removal of trailing spaces...
5340         * config/vax/vax-modes.def: Remove trailing whitespace.
5341
5342         * config/vax/elf.h: Update whitespace.
5343
5344 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
5345
5346         Revert
5347         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
5348         * fold-const.c (fold_indirect_ref_1): Avoid removing
5349         NOP_EXPRs with type qualifiers like const.
5350
5351 2005-05-14  Jan Hubicka  <jh@suse.cz>
5352
5353         Patch by Richard Henderson:
5354         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
5355         Handle RESX expressions properly.
5356
5357         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
5358         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
5359         (remove_stmt_from_eh_region_fn): Likewise.
5360
5361         * tree-cfg.c (execute_warn_function_return): Break out noreturn
5362         warning too..
5363         (execute_warn_function_noreturn): ... here.
5364         (pass_warn_function_noreturn): New pass.
5365         * tree-pass.h (pass_warn_function_noreturn): Declare
5366         * tree-optimize.c (init_tree_optimization_passes): Move return
5367         warnings early and add noreturn warnings at place of previous
5368         return warnings.
5369
5370 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5371
5372         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
5373         root_var_init, type_var_init): Use VEC instead of VARRAY.
5374         * tree-ssa-live.h (tree_partition_associator_d): Change the
5375         type of trees to VEC(tree,heap)*.
5376         (tpa_tree): Use VEC instead of VARRAY.
5377
5378 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
5379
5380         * fold-const.c (div_if_zero_remainder): New function.
5381         (try_move_mult_to_index): Use it.
5382
5383 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5384
5385         * tree-eh.c (leh_tf_state): Change the type of dest_array to
5386         VEC(tree,heap)*.
5387         (maybe_record_in_goto_queue, lower_try_finally_onedest,
5388         lower_try_finally_copy, lower_try_finally_switch,
5389         lower_try_finally): Use VEC instead of VARRAY.
5390
5391 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
5392
5393         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
5394         comment regarding defined register classes.
5395         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
5396
5397 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5398
5399         * tree-optimize.c (init_tree_optimization_passes): Move
5400         pass_merge_phi before the first pass_dominator.
5401
5402 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
5403
5404         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
5405         unconditional.
5406
5407 2005-05-13  Josh Conner  <jconner@apple.com>
5408
5409         * config/arm/arm.c (arm_size_return_regs): New.
5410         (thumb_unexpanded_epilogue): replace in-line calculation
5411         of return registers with call to arm_size_return_regs.
5412         (use_return_insn): Include test of which registers are
5413         being used to hold return values, to accommodate
5414         vector return values.
5415
5416 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
5417
5418         * config/rs6000/sysv4.opt (mlittle): Handle.
5419
5420         * config/rs6000/rs6000.c (rs6000_handle_option): Set
5421         target_flags_explicit when appropriate.
5422
5423 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
5424
5425         PR middle-end/20714:
5426         * optabs.c (no_conflict_data): New struct.
5427         (no_conflict_move_test): New function.
5428         (emit_no_conflict_block): Use it.
5429
5430 2005-05-13  Adam Nemet  <anemet@lnxw.com>
5431
5432         * doc/invoke.texi (Debugging Options): Option
5433         -fdump-translation-unit only works with C++ now.
5434
5435 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
5436
5437         Replace calls to abort in CRIS port.
5438         * config/cris/cris.h (CRIS_ASSERT): New macro.
5439         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
5440         internal_error instead of abort.
5441         ("movsi"): Ditto.  Unquote preparation statement section.
5442         ("call", "call_value"): Ditto, but use gcc_assert where
5443         appropriate.  Tweak comments.
5444         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
5445         CRIS_ASSERT.
5446         (cris_op_str): Call internal_error, not abort.
5447         (cris_print_operand): Tweak "abort" reference to "die" in comment.
5448         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
5449         (cris_notice_update_cc): Call internal_error, not abort.
5450         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
5451         (cris_emit_movem_store, cris_asm_output_symbol_ref)
5452         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
5453         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
5454         ENABLE_CHECKING-guarded abort call.
5455         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
5456         Use internal_error at end of test-chain.
5457
5458 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
5459
5460         PR rtl-optimization/20769:
5461         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
5462         pattern emitted by expand_nl_goto_receiver.
5463
5464         PR middle-end/20793:
5465         * integrate.c (allocate_initial_values): Update register liveness
5466         information.
5467
5468 2005-05-13  Josh Conner  <jconner@apple.com>
5469
5470         * arm.c (arm_return_in_memory): Add handling for vector return types.
5471
5472 2005-05-13  David Ung  <davidu@mips.com>
5473
5474         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
5475         name.
5476         * config/mips/mips.c: Add 4km alias.
5477         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
5478         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
5479         description.
5480
5481 2005-05-13  Jan Hubicka  <jh@suse.cz>
5482
5483         * c-decl.c (finish_function): Suppress "control reaches end of
5484         non-void function" when "no return statement in function
5485         returning non-void" is issued.
5486
5487         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
5488         * tree-optimize.c (pass_gimple): Kill.
5489         (init_tree_optimization_passes): Kill pass_gimple.
5490         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
5491         * tree-dump.c (dump_files): Rename .generic to .gimple.*
5492
5493 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
5494
5495         PR rtl-optimization/20756:
5496         * basic-block.h (PROP_DEAD_INSN): Define.
5497         * flow.c (propagate_one_insn): Set during mark_set_regs call
5498         for a dead insn.
5499         (mark_set_1): Emit a clobber when we are about to delete a dead insn
5500         that kills a live register.
5501
5502 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
5503
5504         * config/s390/s390.md: ("DBL"): New mode attribute.
5505         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
5506         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
5507         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
5508
5509 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
5510
5511         * c-format.c (check_format_arg): Handle string literals of
5512         the form &"string"[offset].
5513
5514         * g++.dg/warn/format4.C: New testcase.
5515
5516 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
5517
5518         * config/mips/3000.md, config/mips/4000.md,
5519         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
5520         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
5521         config/mips/generic.md, config/pdp11/pdp11.md,
5522         config/sh/crt1.asm, config/sh/lib1funcs.asm,
5523         config/sh/sh-modes.def, config/sh/sh-protos.h,
5524         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
5525
5526 2005-05-13  Richard Henderson  <rth@redhat.com>
5527
5528         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
5529         addition to move unless dest is a register.  Do not skip
5530         instantiation in dest on addition simplification.
5531
5532 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
5533
5534         * config/cris/cris.c (cris_print_operand) <case 'H'; case
5535         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
5536         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
5537
5538 2005-05-13  Jan Hubicka  <jh@suse.cz>
5539
5540         * basic-block.h (FOR_ALL_BB_FN): New macro.
5541         (init_flow): Initialize cfg structure.
5542         * function.c (allocate_struct_function): Do not initialize cfg structure.
5543         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
5544         (build_tree_cfg): ... here.
5545         * tree-flow.h (init_empty_tree_cfg): Declare.
5546
5547 2005-05-12  Steven Bosscher <stevenb@suse.de>
5548
5549         Fix PR tree-optimization/21520
5550         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
5551         to attempt to fold constants.
5552
5553 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5554
5555         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
5556         only when TARGET_ADJUST_UNROLL_MAX is defined.
5557         (general_movsrc_operand): Use the C style comment.
5558         (ua_offset): Use prototype.
5559
5560 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
5561
5562         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
5563         (struct hmr_data, hoist_memory_reference, memref_del,
5564         struct fmrv_data): Removed.
5565         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
5566         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
5567         list.
5568         (find_more_ref_vops): Traverse the list of memory references.
5569         (determine_lsm_loop): Work with the list of memory references instead
5570         of traversing the hashtable.
5571
5572 2005-05-12  Steven Bosscher  <stevenb@suse.de>
5573             Stuart Hastings <stuart@apple.com>
5574             Jan Hubicka  <jh@suse.cz>
5575
5576         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
5577         duplicate_eh_regions): New functions, based on old
5578         implementation removed with RTL inliner.
5579         (reachable_next_level): Modify behaviour pre-inline.
5580         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
5581         Declare.
5582         * function.h (struct function): Add after_inlining flag.
5583         * tree-optimize.c (tree_rest_of_compilation): Set it.
5584         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
5585         when needed.
5586         * tree-cfg.c (label_to_block_fn): Deal with cases where
5587         label was never insterted into code.
5588
5589 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
5590
5591         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
5592
5593 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
5594
5595         Fix PR tree-optimization/21532
5596         * tree-ssa-pre.c (create_expression_by_pieces): stmt
5597         needs to go onto the inserted_exprs list.
5598
5599 2005-05-12  Ian Lance Taylor  <ian@airs.com>
5600
5601         * c-common.h (statement_code_p): Don't declare.
5602         (STATEMENT_CODE_P): Don't define.
5603         (INIT_STATEMENT_CODES): Don't define.
5604         * c-common.c (statement_code_p): Don't define.
5605
5606 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
5607
5608         * config/sparc/sparc.h: Remove dead code.
5609         * config/sparc/sparc.c (sparc_compute_frame_size): Use
5610         FIRST_PARM_OFFSET for the size of the register window area.
5611         (emit_save_regs): Rename into emit_save_or_restore_regs.
5612         Add 'action' parameter.  Use 4095 as upper bound for the offset.
5613         Pass 'action' to save_or_restore_regs.
5614         (emit_restore_regs): Delete.
5615         (sparc_expand_prologue): Call emit_save_or_restore_regs.
5616         (sparc_expand_epilogue): Likewise.
5617         * config/sparc/sparc.md (mode macro P): Move.
5618         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
5619         (mov<V32:mode> expander): Move to the top of the V32 section.
5620         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
5621         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
5622         (sibcall_epilogue): Move.
5623
5624 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
5625
5626         PR target/21501
5627         * arm.c (arm_gen_constant): Sign-extend intermediate values when
5628         synthesizing a constant of the difference of two immediates.
5629
5630 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
5631
5632         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
5633         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
5634         the alternatives using integer registers into the appropriate
5635         primitives.
5636
5637 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
5638
5639         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
5640         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
5641         * bitmap.h: Fixed comments.
5642
5643 2005-05-11  Richard Henderson  <rth@redhat.com>
5644
5645         PR target/21412
5646         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
5647         (ia64_cannot_force_const_mem): New.
5648         (tls_symbolic_operand_type): New.
5649         (ia64_legitimate_constant_p): New.
5650         (ia64_expand_load_address): Return true on success.  Improve
5651         checks for when we should not split.
5652         (ia64_expand_tls_address): New addend operand.  Distribute it
5653         as appropriate to the tls_kind.  Delay referencing gp.
5654         (ia64_expand_move): Split symbolic addend as necessary.  Handle
5655         tls symbols with addends.
5656         * config/ia64/ia64-protos.h: Update.
5657         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
5658         p0, f0, f1, and r13.
5659         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
5660         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
5661         (symbolic_operand splitter): Pass everything through
5662         ia64_expand_load_address and FAIL or DONE as appropriate.
5663         (load_fptr): Only accept after reload.
5664         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
5665         load_symptr_low, load_ltoff_dtpmod,
5666         (load_dtpmod): New.
5667         (load_dtprel): Only accept tls symbols.
5668         (load_dtprel64, load_dtprel22): Likewise.
5669         (load_tprel, load_tprel64, load_tprel22): Likewise.
5670         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
5671         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
5672         (add_dtprel14, add_dtprel22): Likewise.
5673         (add_tprel, add_tprel14, add_tprel22): Likewise.
5674         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
5675         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
5676         (got_symbolic_operand): Check CONST offsets.
5677         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
5678         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
5679         (move_operand): Don't handle tls here.  Check CONST offsets.
5680
5681 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
5682
5683         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
5684         Remove hilo_operand check.
5685         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
5686         * config/mips/predicates.md (hilo_operand): Delete.
5687
5688 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
5689
5690         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
5691
5692 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5693
5694         PR tree-optimizer/18472
5695         * tree-if-conv.c (tree_if_convert_stmt,
5696         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
5697
5698 2005-05-11  Jan Hubicka  <jh@suse.cz>
5699
5700         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
5701         (GTFILES): add except.h.
5702         * except.c (eh_status): Add throw_stmt_table.
5703         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
5704         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
5705         lookup_stmt_eh_region_fn): Declare.
5706         (throw_stmt_node): New structure.
5707         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
5708         * gengtype.c (open_base_files): Add except.h to inlines.
5709         * tree-eh.c (throw_stmt_node): Kill.
5710         (record_stmt_eh_region): Update.
5711         (add_stmt_to_eh_region_fn): Break out from ...
5712         (add_stmt_to_eh_region): ... here.
5713         (remove_stmt_from_eh_region_fn): Break out from ...
5714         (remove_stmt_from_eh_region): ... here.
5715         (lookup_stmt_eh_region_fn): Break out from ...
5716         (lookup_stmt_eh_region): ... here.
5717         (honor_protect_cleanup_actions): Use build_resx.
5718         (lower_try_finally_onedest): Likewise.
5719         (lower_try_finally_copy): Likewise.
5720         (lower_try_finally_switch): Likewise.
5721         (lower_eh_constructs): Update eh table construction.
5722         * tree.c (build_resx): New.
5723         * tree.h (build_resx): Declare.
5724
5725 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5726
5727         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
5728         is needed.
5729
5730 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
5731
5732         * fold-const.c, libgcov.c: Fix comment typos.
5733
5734         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
5735         redundant code.
5736
5737 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
5738
5739         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
5740         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
5741         default definition.
5742         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
5743
5744 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
5745
5746         PR bootstrap/21481
5747         * crtstuff.c: Include auto-host.h again, for now.
5748
5749 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
5750
5751         * config/mips/24k.md: Remove trailing whitespace.
5752
5753 2005-05-11  David Ung  <davidu@mips.com>
5754
5755         * config/mips/mips.md (type): Add imul3.
5756         (length, hazard, may_clobber_hilo): Check for imul3.
5757         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
5758         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
5759         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
5760         for a 3 operand mul and its bypasses.
5761         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
5762         * config/mips/4000.md (r4k_imul): Likewise.
5763         * config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
5764         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
5765         (vr4130_muldi): Likewise.
5766         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
5767         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
5768         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
5769         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
5770         (ir_vr54_imadd_si): Likewise.
5771         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
5772         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
5773         (rm7_impy_di): Likewise.
5774         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
5775         * config/mips/generic.md (generic_imul): Likewise.
5776         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
5777         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
5778
5779 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
5780
5781         PR middle-end/20371:
5782         * tree.h (record_layout_info_s): New member prev_packed.
5783         * stor-layout.c (update_alignment_for_field): Fix comment about
5784         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
5785         we start it properly aligned.
5786         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
5787         to update_alignment_for_field, and recompute it afterwards using
5788         the alignment of the record.
5789         When a packed bitfield precedes an MS bitfield, don't add padding
5790         at the end of the packed bitfield on behalf of the base type of
5791         the packed bit field.
5792         Don't adjust rli->bitpos at the end
5793         of an MS bitfield run if we already adjusted bitpos/offset for an
5794         alignment as large or larger than the bitfield type size.
5795         Take possible record alignment > BIGGEST_ALIGNMENT into account
5796         when calculating actual_align.
5797         Only put packed buit fields into rli->prev_field if they end up
5798         suitably aligned.
5799         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
5800         Update rli->remaining_in_alignment when we have already started a
5801         run of bit fields and we process a packed bit field.
5802
5803 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
5804
5805         * tree-data-ref.c (find_data_references_in_loop): Give up when
5806         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
5807         may embed arbitrary side effects.
5808         Remove the assumption that GIMPLE form contains a single array
5809         access per statement.
5810         When the statement contains virtual operands, fail if it is not
5811         a MODIFY_EXPR or a CALL_EXPR.
5812         Return after the dont know node is inserted.
5813
5814 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
5815
5816         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
5817
5818 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
5819
5820         PR middle-end/19807
5821         PR tree-optimization/19639
5822         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
5823         and generic summands for char* as s * delta, too, folding &a[i]
5824         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
5825         for comparison of steps.  Convert types for index addition.
5826         (fold_binary): Adjust the callers to always dispatch to
5827         try_move_mult_to_index.
5828         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
5829         expr with non-gimple ARRAY_REF offset.
5830
5831 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
5832
5833         * fold-const.c (fold_indirect_ref_1): Avoid removing
5834         NOP_EXPRs with type qualifiers like const.
5835
5836 2005-05-11  Richard Henderson  <rth@redhat.com>
5837
5838         PR c/21502
5839         * c-decl.c (finish_decl): Propagate the completed array type of
5840         a global variable into the binding.
5841
5842 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
5843
5844         * Makefile.in (gtype-desc.o, build/genautomata.o)
5845         (build/varray.o): Depend on $(VARRAY_H).
5846
5847 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
5848
5849         * tree-optimize.c (init_tree_optimization_passes): Re-organize
5850         optimization passes to do an initial batch of scalar cleanups.
5851
5852 2005-05-10  Ian Lance Taylor  <ian@airs.com>
5853
5854         * read-rtl.c (struct macro_traverse_data): Define.
5855         (map_attr_string): New static function, broken out of
5856         apply_macro_to_string.
5857         (mode_attr_index, apply_mode_maps): New static functions.
5858         (apply_macro_to_string): Call map_attr_string.
5859         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
5860         all callers.
5861         (apply_macro_traverse): Expect data to point to a struct
5862         macro_traverse_data.
5863         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
5864         to pass data through htab_traverse.
5865         (read_rtx_1): Add mode_maps parameter.  Change all callers.
5866         Handle mode names which are attribute strings.
5867         * doc/md.texi (Substitutions): Rename from String Substitutions.
5868         Change references.  Document using attributes as modes.
5869
5870 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
5871
5872         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
5873         * tree-optimize.c (init_tree_optimization_passes) Swap
5874         pass_ch and pass_profile.
5875         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
5876         here.  Remove rewrite_into_loop_closed_ssa call.
5877
5878 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
5879
5880         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
5881         function.
5882         (legitimate_reload_constant_p): Add check for const double zero.
5883         * config/s390/s390.md: Add comment for constraint letter 'G'.
5884         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
5885         attributes for new case.
5886         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
5887         s390_const_double_ok_for_constraint_p.
5888         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
5889         Add prototype.
5890
5891 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
5892
5893         PR tree-optimization/21170
5894         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
5895         rewrite_ssa_into_ssa in comments with update_ssa.
5896
5897 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
5898
5899         * tree-ssa-loop-im.c: Include hashtab.h.
5900         (struct mem_ref_loc): New.
5901         (struct mem_ref): Describe the set of references with the same
5902         shape.
5903         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
5904         maybe_queue_var, fem_single_reachable_address,
5905         for_each_memref, single_reachable_address,
5906         is_call_clobbered_ref, determine_lsm_reg): Removed.
5907         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
5908         hoist_memory_reference, memref_hash, memref_eq, memref_del,
5909         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
5910         New functions.
5911         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
5912         (determine_lsm_loop): Rewritten.
5913         (determine_lsm): Do not set stmt uids.
5914
5915 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
5916
5917         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
5918         letters.
5919
5920 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
5921
5922         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
5923         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
5924         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
5925
5926 2005-05-10  Jeff Law  <law@redhat.com>
5927
5928         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
5929         thread_across_edge for any abnormal edges.
5930
5931 2005-05-10  Richard Henderson  <rth@redhat.com>
5932
5933         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
5934         * config/ia64/ia64-protos.h: Declare it.
5935         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
5936         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
5937         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
5938         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
5939         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
5940         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
5941         extend result; use release semantics.
5942         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
5943         (sync_val_compare_and_swap_<IMODE>): Update to match.
5944
5945 2005-05-10  Richard Henderson  <rth@redhat.com>
5946
5947         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
5948         before comparing it for success.
5949
5950 2005-05-10  Richard Henderson  <rth@redhat.com>
5951
5952         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
5953         no return value pattern.
5954
5955 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
5956             H.J. Lu  <hongjiu.lu@intel.com>
5957
5958         * libgcov.c (create_file_directory): New function. Create
5959         directory for the given file name.
5960         (gcov_max_filename): New static var. Keeps size of the longest
5961         file name.
5962         (gcov_exit): Always try to create directory for output
5963         file. Relocate each filename basing on environment vars.
5964         (__gcov_init): Remember the longest file name.
5965         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
5966         * doc/gcov.texi (Cross-profiling): New node documenting
5967         cross-profiling management.
5968         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
5969
5970 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
5971
5972         * config/sparc/sparc.c (mem_min_alignment): Do not rely
5973         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
5974
5975 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
5976
5977         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
5978         case code to avoid one move instruction.
5979         (__umodsi3, __modsi3): Merge duplicated code sequences.
5980
5981 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
5982
5983         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
5984         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
5985         * doc/invoke.texi: Fix typos.
5986
5987         * tree-data-ref.c (analyze_array_indexes, analyze_array,
5988         init_data_ref, access_functions_are_affine_or_constant_p,
5989         free_data_refs): Use VEC instead of VARRAY.
5990         * tree-data-ref.h (data_reference): Change the type of
5991         access_fns to VEC(tree,gc)*.
5992         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
5993
5994 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
5995
5996         PR c/17913
5997         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
5998         * fold-const.c (fold): Expand the condition of reducing cond_expr.
5999         (contains_label_1, contains_label_p): New functions for checking
6000         labels in a sub-tree.
6001
6002 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
6003
6004         PR c/21342
6005         * c-decl.c (pushdecl): When there is a declaration in the current
6006         scope and the declarations are external linkage, check for
6007         compatibility with the type in the external scope and update the
6008         type in the external scope with the composite type information.
6009         Do not form a composite type of the new type and the visible type
6010         if they are incompatible.
6011
6012 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
6013
6014         * crtstuff.c: Revert part of 2005-05-08 Change.
6015         (IN_LIBGCC2): Define.
6016
6017 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6018
6019         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
6020         remove redundant test.
6021         (fp_mov_p): Accept 0.
6022         (fp_high_losum_p): Remove redundant test.
6023         * config/sparc/predicates.md (const_high_operand): Explicitly test
6024         (not small_int_operand).
6025         (fp_const_high_losum_operand): New.
6026         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
6027         (movdi_insn_sp32_v9): Use canonical predicates.
6028         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
6029         (movdi_insn_sp64_novis): Delete.
6030         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
6031         (movsf_insn_novis): Delete.
6032         (movsf_insn_vis): Rename into movsf_insn.
6033         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
6034         (movsf_lo_sum): Use fp_const_high_losum_operand.
6035         (movsf_high): Likewise.
6036         (movsf_high_losum splitter): Likewise.
6037         (mov<V32:mode> expander): Use register_or_zero_operand.
6038         (mov<V64:mode> expander): Likewise.
6039         (movdf_insn_sp32): Use register_or_zero_operand.
6040         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
6041         Rename into movdf_insn_sp32_no_fpu.
6042         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
6043         Rename into movdf_insn_sp32_v9_no_fpu.
6044         (movdf_insn_v9only_novis): Delete.
6045         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
6046         (movdf_insn_sp64_novis): Delete.
6047         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
6048         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
6049         Rename into movdf_insn_sp64_no_fpu.
6050         (movtf expander): Use register_or_zero_operand.
6051         (movtf_insn_sp32): Delete.
6052         (movtf_insn_vis_sp32): Use register_or_zero_operand.
6053         Rename into movtf_insn_sp32.
6054         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
6055         Rename into movtf_insn_sp32_no_fpu.
6056         (movtf_insn_hq_sp64): Delete.
6057         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
6058         Rename into movtf_insn_sp64_hq.
6059         (movtf_insn_sp64): Delete.
6060         (movtf_insn_vis_sp64): Use register_or_zero_operand.
6061         Rename into movtf_insn_sp64.
6062         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
6063         Rename into movtf_insn_sp64_no_fpu.
6064
6065 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
6066
6067         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
6068         gcc_assert and gcc_unreachable as appropriate.
6069         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
6070         xstormy16_output_cbranch_si, xstormy16_split_move,
6071         xstormy16_initial_elimination_offset,
6072         xstormy16_encode_section_info, xstormy16_print_operand_address,
6073         xstormy16_expand_call, xstormy16_expand_arith,
6074         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
6075
6076 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
6077
6078         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
6079         const_copies to VEC(tree,heap)*.
6080         (new_elim_graph, delete_elim_graph, elim_graph_size,
6081         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
6082         instead of VARRAY.
6083
6084 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
6085
6086         PR other/21052
6087         * doc/extend.texi (Type Attributes): Correct example syntax.
6088
6089 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
6090
6091         PR c/21160
6092         * doc/invoke.texi (-Wuninitialized): Update documentation.
6093
6094 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
6095
6096         * arm.c (const_ok_for_arm): Use a faster algorithm.
6097
6098 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
6099
6100         PR target/21477
6101         * config/rs6000/rs6000.md (add_op2): New.
6102         (add<mode>3): Use it.
6103
6104 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
6105
6106         * arm.c (arm_gen_constant): Add new heuristic for generating
6107         constant integers that can be expressed as the difference of two
6108         valid immediates.
6109
6110 2005-05-09  Roger Sayle  <roger@eyesopen.com>
6111
6112         * c-tree.h (parser_build_unary_op): New prototype.
6113         * c-typeck.c (parser_build_unary_op): New function to construct
6114         a unary operation in the C parser.
6115         * c-parser.c (c_parser_unary_expression):  Use the new function
6116         parser_build_unary_op when appropriate.
6117
6118 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
6119
6120         PR 18655
6121         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
6122         before outputting DWARF_FRAME_RETURN_COLUMN.
6123
6124 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6125
6126         * config/s390/s390.c: (s390_branch_condition_mask,
6127         s390_branch_condition_mnemonic, s390_extra_constraint_str,
6128         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
6129         legitimize_pic_address, s390_emit_tls_call_insn,
6130         legitimize_tls_address, legitimize_tls_address,
6131         s390_expand_addcc, print_shift_count_operand, print_operand,
6132         addr_generation_dependency_p, annotate_constant_pool_refs,
6133         s390_split_branches, find_constant_pool_ref,
6134         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
6135         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
6136         s390_output_pool_entry, s390_function_value,
6137         s390_call_saved_register_used, s390_emit_call): Replace
6138         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
6139         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
6140         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
6141         get_some_local_dynamic_name, s390_function_arg_size,
6142         s390_function_arg_advance, s390_function_arg,
6143         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
6144         default case by gcc_unreachable.
6145         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
6146         conditional abort by gcc_assert.
6147         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
6148         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
6149
6150 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6151
6152         * config/s390/s390.c: (s390_decompose_address,
6153         tls_symbolic_operand, legitimate_pic_operand_p,
6154         legitimate_constant_p, legitimate_reload_constant_p,
6155         s390_expand_plus_operand, legitimate_address_p,
6156         legitimate_la_operand_p, ): Remove 'register' from signature.
6157         (symbolic_reference_mentioned_p,
6158         tls_symbolic_reference_mentioned_p): Remove 'register' from local
6159         variable declarations.
6160         (legitimize_address): Remove 'register' from
6161         signature and local variable declarations.
6162
6163 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6164
6165         * config/s390/s390-protos.h: (s390_match_ccmode,
6166         s390_match_ccmode_set, reg_used_in_mem_p,
6167         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
6168         legitimate_la_operand_p, preferred_la_operand_p,
6169         s390_short_displacement, addr_generation_dependency_p,
6170         legitimate_reload_constant_p, legitimate_address_p): Change return type
6171         into 'bool'.
6172         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
6173         * config/s390/s390.c: (s390_match_ccmode,
6174         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
6175         legitimate_reload_constant_p): Change return type into 'bool'.
6176         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
6177         Likewise.  Additionally adapted comment.
6178         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
6179         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
6180         (s390_decompose_address): Change the type of the internal flags
6181         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
6182         (struct s390_address): Change type of "pointer" into bool.
6183         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
6184         Adapt calls for 's390_tm_ccmode' to the new signature.
6185
6186 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6187
6188         * config/s390/s390.c: (s390_match_ccmode_set,
6189         s390_branch_condition_mnemonic, s390_short_displacement,
6190         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
6191         print_shift_count_operand, get_some_local_dynamic_name,
6192         get_some_local_dynamic_name_1, reg_used_in_mem_p,
6193         addr_generation_dependency_p, s390_split_branches,
6194         annotate_constant_pool_refs, find_constant_pool_ref,
6195         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
6196         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
6197         s390_register_info, s390_frame_info, s390_init_frame_layout,
6198         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
6199         restore_gprs, s390_function_arg_size, s390_function_arg_float,
6200         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
6201         s390_encode_section_info, s390_cannot_force_const_mem,
6202         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
6203         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
6204         s390_adjust_priority, s390_issue_rate,
6205         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
6206         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
6207         s390_build_builtin_va_list, s390_gimplify_va_arg,
6208         s390_function_ok_for_sibcall, s390_call_saved_register_used,
6209         s390_pass_by_reference, s390_fixed_condition_code_regs,
6210         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
6211         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
6212         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
6213         s390_add_pool_insn, s390_find_pool, s390_add_constant,
6214         s390_find_constant, s390_add_execute, s390_find_execute,
6215         s390_execute_label, s390_execute_target, s390_dump_pool,
6216         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
6217         Move target macro definitions to the end of the file.  Move several
6218         functions within the file to assure correct compiling.
6219
6220 2005-05-09  Steven Bosscher  <stevenb@suse.de>
6221
6222         * calls.c (purge_reg_equiv_notes): Remove, fold into...
6223         (fixup_tail_calls): ...here.  Only look at insns between the
6224         start of the function and the FUNCTION_BEG insn note.
6225
6226         * gcse.c (one_cprop_pass): Fix typos in dumps.
6227
6228         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
6229
6230 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6231
6232         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
6233         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
6234         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
6235         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
6236         CC_REGNUM)'.
6237         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
6238         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
6239         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
6240         REG_SC)'.
6241
6242 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6243
6244         * config/s390/s390.md: ("gf") New mode attribute.
6245         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
6246         "fixuns_truncsfsi2"): Merge.
6247         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
6248         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
6249         "fix_truncsfsi2_ieee"): Merge.
6250
6251 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6252
6253         * config/s390/s390.md: ("FPR") New mode macro.
6254         ("de", "dee"): New mode attributes.
6255         ("cmpdf", "cmpsf"): Merge.
6256         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
6257         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
6258         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
6259         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
6260         ("floatdidf2", "floatdisf2"): Merge.
6261         ("adddf3", "addsf3"): Merge.
6262         ("*adddf3", "*addsf3"): Merge.
6263         ("*adddf3_cc", "*addsf3_cc"): Merge.
6264         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
6265         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
6266         ("subdf3", "subsf3"): Merge.
6267         ("*subdf3", "*subsf3"): Merge.
6268         ("*subdf3_cc", "*subsf3_cc"): Merge.
6269         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
6270         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
6271         ("muldf3", "mulsf3"): Merge.
6272         ("*muldf3", "*mulsf3" "): Merge.
6273         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
6274         ("*fmadddf", "*fmaddsf"): Merge.
6275         ("*fmsubdf", "*fmsubsf"): Merge.
6276         ("divdf3", "divsf3"): Merge.
6277         ("*divdf3", "*divsf3"): Merge.
6278         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
6279         ("negdf2", "negsf2"): Merge.
6280         ("*negdf2_cc", "*negsf2_cc"): Merge.
6281         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
6282         ("*negdf2", "*negsf2"): Merge.
6283         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
6284         ("absdf2", "abssf2"): Merge.
6285         ("*absdf2_cc", "*abssf2_cc"): Merge.
6286         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
6287         ("*absdf2", "*abssf2"): Merge.
6288         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
6289         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
6290         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
6291         ("*negabsdf2", "*negabssf2"): Merge.
6292         ("sqrtdf2", "sqrtsf2"): Merge.
6293
6294 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6295
6296         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
6297         attribute names.
6298         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
6299         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
6300         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
6301         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
6302         attribute names.
6303         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
6304         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
6305         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
6306         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
6307         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
6308         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
6309         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
6310         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
6311         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
6312         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
6313         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
6314         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
6315         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
6316         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
6317         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
6318         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
6319         'type' value.
6320         ("*divsf3"): Additionally rename second pattern to
6321         "*divsf3_ibm".
6322         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
6323         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
6324         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
6325         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
6326         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
6327         'type values' and rename 'type' value.
6328         ("*addsf3"): Additionally rename second pattern to
6329         "*addsf3_ibm".
6330
6331 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6332
6333         * config/s390/s390.md: ("SHIFT"): New mode macro.
6334         ("lr", "shift"): New mode attributes.
6335         ("ashldi3", "lshrdi3"): Merge.
6336         ("*ashldi3_31", "*lshrdi3"_31): Merge.
6337         ("*ashldi3_64", "*lshrdi3"_64): Merge.
6338         ("ashlsi3", "lshrsi3"): Merge.
6339
6340 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6341
6342         * config/s390/s390.md: ("DSI", "SCOND"): New mode
6343         macros.
6344         ("E", "g"): New mode attributes.
6345         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
6346         ("*adddi3_alc", "*addsi3_alc"): Merge.
6347         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
6348         ("*subdi3_slb", "*subsi3_slb"): Merge.
6349         ("adddicc", "addsicc"): Merge.
6350         ("*sconddi", "*scondsi"): Merge.
6351         ("*sconddi_neg", "*scondsi_neg"): Merge.
6352         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
6353         ("negdi2", "negsi2"): Extract expander pattern from
6354         "negsi2" and merge with "negdi2".
6355         ("*negdi2"): Merge with instruction pattern of "negsi2".
6356         ("*negdi2_cc", "*negsi2_cc"): Merge.
6357         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
6358         ("rotldi3", "rotlsi3"): Merge.
6359
6360 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6361
6362         * config/s390/s390.md: ("hc"): New mode attribute.
6363         ("extendhidi2", "extendqidi2"): Merge.
6364         ("*extendhidi2", "*extendqidi2"): Merge.
6365         ("extendhisi2", "extendqisi2"): Merge.
6366         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
6367         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
6368         Merged 2 define_split.
6369         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
6370         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
6371
6372 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6373
6374         * config/s390/s390.md: ("COMPARE"): New mode macro.
6375         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
6376         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
6377         "bungt", "bunle", "bunge", "bltgt"): Merge.
6378
6379 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6380
6381         * config/s390/s390.md: ("INT"): New mode macro.
6382         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
6383         Merge.
6384
6385 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6386
6387         * config/s390/s390.md: ("GPR", "P"): New mode macros.
6388         ("cmpdi", "cmpsi"): Merge.
6389         ("strlendi", "strlensi"): Merge.
6390         ("*strlendi", "*strlensi"): Merge.
6391         ("movmemdi", "movmemsi"): Merge.
6392         ("clrmemdi", "clrmemsi"): Merge.
6393
6394 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6395
6396         * config/s390/s390.md: ("HQI"): New mode macro.
6397         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
6398         ("*tmhi_full", "*tmqi_full"): Merge.
6399         ("*tsthiCCT", "*tstqiCCT"): Merge.
6400         ("*tsthi", "*tstqi"): Merge.
6401         ("*tsthi_cconly", "tstqi_cconly"): Merge.
6402         ("*sethighhisi", "*sethighqisi"): Merge.
6403
6404 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6405
6406         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
6407         config/alpha/unicosmk.h, config/arc/arc.md,
6408         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
6409         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
6410         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
6411         config/arm/semi.h, config/arm/uclinux-elf.h,
6412         config/arm/wince-pe.h, config/fr30/fr30.c,
6413         config/rs6000/altivec.h: Update copyright.
6414
6415 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
6416
6417         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
6418         gcc_assert and gcc_unreachable as appropriate.
6419         (pdp11_output_function_epilogue, output_move_double,
6420         output_move_quad, print_operand_address, output_jump,
6421         output_addr_const_pdp11): Likewise.
6422         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
6423         ASM_OUTPUT_ALIGN): Likewise.
6424         * config/pdp11/pdp11.md: Likewise.
6425         (extendhisi2, subhi3, subqi3): Likewise.
6426
6427 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
6428
6429         PR middle-end/21237
6430         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
6431         to NE_EXPR case.
6432
6433 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6434
6435         * config/ia64/ia64.c: Fix a comment typo.
6436
6437 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
6438
6439         PR target/21397
6440         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
6441         (arm_override_options): Use them instead of manifest constants.  Don't
6442         allow -march to override the -mtune setting.
6443
6444 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
6445
6446         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
6447         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
6448         (function_arg_advance, function_arg, save_restore_insns,
6449         iq2000_expand_prologue, iq2000_output_conditional_branch,
6450         expand_one_builtin, print_operand):
6451         * config/iq2000/iq2000.md (tablejump): Likewise.
6452
6453 2005-05-09  David Ung  <davidu@mips.com>
6454
6455         * config/mips/mips.h (processor_type): Add names for the 24K.
6456         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
6457         processor family.
6458         * config/mips/mips.md (cnv_mode): New attribute for recording the
6459         conversion types of float convert insns.
6460         (cpu): Add 24k and 24kx.
6461         (include): Include 24k.md file.
6462         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
6463         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
6464         (floatdisf2): Setup cnv_mode.
6465         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
6466         setup cnv_mode.
6467         * config/mips/24k.md: New file, contains 24k DFA pipeline
6468         description.
6469
6470 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
6471
6472         * config/sh/sh.c (print_operand_address): Use gcc_assert and
6473         gcc_unreachable as appropriate.
6474         (print_operand, prepare_move_operands, prepare_scc_operands,
6475         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
6476         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
6477         fixup_mova, gen_far_branch, sh_reorg, split_branches,
6478         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
6479         sh_set_return_address, sh_setup_incoming_varargs,
6480         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
6481         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
6482         check_use_sfunc_addr): Likewise.
6483         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
6484         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6485         * config/sh/symbian.c (sh_symbian_mark_dllexport,
6486         sh_symbian_mark_dllimport): Likewise.
6487         * config/sh/sh.md: Likewise.
6488         (movdicc, call_pop, call_value_pop, casesi_worker_1,
6489         casesi_worker_2, casesi_shift_media, casesi_load_media,
6490         return_media): Likewise.
6491
6492 2005-05-08  Roger Sayle  <roger@eyesopen.com>
6493
6494         PR inline-asm/8788
6495         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
6496         operands.
6497
6498 2005-05-08  Richard Henderson  <rth@redhat.com>
6499
6500         * config/alpha/alpha.c (adjust_address): Fix typo last change.
6501
6502 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6503
6504         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
6505         and -1 can happen in reg_renumber when no hard register is assigned.
6506
6507 2005-05-08  Steven Bosscher  <stevenb@suse.de>
6508             Kazu Hirata  <kazu@cs.umass.edu>
6509
6510         PR tree-optimization/14841, tree-optimization/15838
6511         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
6512         (evaluate_stmt): Call it.
6513
6514 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
6515
6516         * config/ia64/ia64.c (ia64_override_options): Don't set
6517         ia64_flag_var_tracking and clear flag_var_tracking here...
6518         (ia64_file_start): ... but here.
6519
6520 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
6521
6522         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
6523         and gcc_unreachable as appropriate.
6524         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
6525         m68hc11_gen_highpart, print_operand, print_operand_address,
6526         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
6527         m68hc11_gen_movhi): Likewise.
6528         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
6529         * config/m68hc11/m68hc11.md: Reword comment.
6530
6531 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6532
6533         PR target/21281
6534         * config/m68hc11/predicates.md (splitable_operand): An immediate is
6535         allowed.
6536
6537 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6538
6539         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
6540         the 68HC12 address indirect addressing mode as it is not supported by
6541         bset and bclr.
6542         * config/m68hc11/m68hc11-protos.h
6543         (m68hc11_valid_addressing_p): Declare.
6544         (m68hc11_add_mode): Declare.
6545         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
6546         register_indirect_p and export it.
6547         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
6548         instruction so that it is part of the good BB.
6549         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
6550         addressing with movw.
6551         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
6552         68HC12.
6553         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
6554         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
6555         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
6556         for 68HC11.
6557         ("*movhi_68hc12"): Handle movhi_const0.
6558         ("*subhi3", "subqi3"): Use general_operand for operand 1.
6559         ("*subhi3_zext"): Likewise.
6560
6561 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6562
6563         PR target/19051
6564         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
6565         operand 1 and fix constraints.
6566         ("mulqihi3"): Use general_operand for operand 2.
6567
6568 2005-05-08  Julian Brown  <julian@codesourcery.com>
6569             H.J. Lu  <hongjiu.lu@intel.com>
6570             Paul Brook  <paul@codesourcery.com>
6571
6572         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
6573         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
6574         20050308/2.16.0 or newer for comdat group.
6575         * configure: Regenerated.
6576         * config.in: Regenerated.
6577         * varasm.c (default_function_rodata_section): Put .rodata section in
6578         COMDAT group when necessary.
6579         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
6580         HAVE_COMDAT_GROUP.
6581         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
6582         available.
6583
6584 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
6585
6586         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
6587         instead of VARRAY.
6588         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
6589         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
6590         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
6591         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
6592
6593 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6594
6595         PR target/16925
6596         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
6597         64-bit constants on 64-bit hosts.
6598         (m68hc11_split_logical): Simplify.
6599         (m68hc11_split_move): Likewise.
6600
6601 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
6602             Paolo Bonzini  <bonzini@gnu.org>
6603
6604         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
6605         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
6606         * configure.ac (enable_checking): Fix typos in runtime_checking.
6607         (ENABLE_RUNTIME_CHECKING): Mark as target template.
6608         (xm_file): Prepend auto-host.h
6609         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
6610         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
6611         tconfig.h.
6612         * crtstuff.c: Do not include auto-host.h.
6613         (IN_LIBGCC2): Do not define.
6614         * gcov-io.h: Include tconfig.h, not auto-host.h.
6615         * libgcc2.c: Do not include auto-host.h.
6616         (abort): Do not undefine.
6617         * libgcov.c: Remove unneeded comment about config.h.
6618         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
6619         * config.in, configure: Regenerated.
6620
6621 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
6622             Falk Hueffner  <falk@debian.org>
6623
6624         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
6625         and gcc_unreachable as appropriate.
6626         (get_aligned_mem, get_unaligned_address,
6627         alpha_emit_set_long_const, alpha_emit_conditional_branch,
6628         alpha_emit_setcc, alpha_emit_conditional_move,
6629         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
6630         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
6631         alpha_expand_unaligned_load, alpha_expand_block_move,
6632         alpha_expand_zap_mask, get_trap_mode_suffix,
6633         get_round_mode_suffix, get_some_local_dynamic_name,
6634         print_operand_address, function_arg, alpha_return_in_memory,
6635         function_value, alpha_expand_builtin,
6636         alpha_initial_elimination_offset, alpha_expand_epilogue,
6637         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
6638         alphaev5_next_group, alpha_align_insns,
6639         unicosmk_initial_elimination_offset, unicosmk_unique_section,
6640         unicosmk_ssib_name): Likewise.
6641         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
6642         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
6643         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
6644         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
6645         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6646         * config/alpha/alpha.md (*divmodsi_internal_er,
6647         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
6648         call_nt, call_umk, call_vms, call_value, sibcall_value,
6649         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
6650         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
6651         * config/alpha/predicates.md (input_operand): Likewise.
6652
6653 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
6654
6655         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
6656         gcc_unreachable, as appropriate.
6657         (frv_function_prologue, frv_alloc_temp_reg,
6658         frv_initial_elimination_offset, frv_expand_block_move,
6659         frv_expand_block_clear, frv_print_operand_jump_hint,
6660         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
6661         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
6662         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
6663         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
6664         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
6665         frv_in_small_data_p, frv_asm_out_constructor,
6666         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
6667         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
6668         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
6669         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
6670         sibcall_value, casesi): Likewise.
6671
6672         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
6673         gcc_unreachable as appropriate.
6674         (print_operand_address, mn10300_print_reg_list, expand_prologue,
6675         expand_epilogue, notice_update_cc, initial_offset,
6676         mn10300_address_cost_1): Likewise.
6677         * config/mn10300/mn10300.md: Likewise.
6678         (absdf2, abssf2, negdf2, negsf2): Likewise.
6679
6680 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
6681
6682         PR target/21416
6683         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
6684         comparisons.
6685         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
6686         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
6687         including sunge_<mode> and sungt_<mode>.
6688
6689 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
6690
6691         * integrate.h (get_hard_reg_initial_val): Change type of register
6692         parameter from int to unsigned int.
6693         (has_hard_reg_initial_val): Likewise.
6694         * integrate.c (get_hard_reg_initial_val): Likewise.
6695         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
6696
6697 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
6698
6699         * except.c (eh_status): Change the type of ttype_data to
6700         VEC(tree,gc)*.
6701         (add_ttypes_entry, assign_filter_values,
6702         output_function_exception_table): Use VEC instead of VARRAY.
6703
6704 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
6705
6706         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
6707
6708 2005-05-07  Paul Brook  <paul@codesourcery.com>
6709
6710         * Makefile.in: Fix dependencies.
6711         (GCOV_IO_H, VARRAY_H): Set.
6712
6713 2005-05-07  Anthony Green  <green@redhat.com>
6714
6715         PR bootstrap/21403
6716         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
6717         x$STMP_FIXPROTO test.
6718         * configure: Rebuilt.
6719
6720 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
6721
6722         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
6723         inappropriate feature test macros if flag_iso.
6724
6725 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
6726
6727         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
6728
6729 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
6730
6731         PR target/21441
6732         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
6733         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
6734         Handle moved operand being in special register.
6735         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
6736         presumed working insn.
6737         (mover2side): Add FIXME.
6738
6739 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
6740
6741         * integrate.c (get_func_hard_reg_initial_val): Delete.
6742         (has_func_hard_reg_initial_val): Delete.
6743         (get_hard_reg_initial_val): Inline the old implementation of
6744         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
6745         instead of has_func_hard_reg_initial_val to test for an existing
6746         pseudo.  Only create an rtx if a new initial value entry is needed.
6747         (has_hard_reg_initial_val): Scan the initial value list directly.
6748         Don't create an rtx.
6749
6750 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
6751
6752         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
6753         from extra_options.
6754         * config.in (HAVE_AS_POPCNTB): New.
6755         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
6756         (HAVE_AS_POPCNTB): New.
6757         * configure: Regenerated.
6758         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
6759         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
6760         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
6761         and rs6000_sched_costly_dep.
6762         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
6763         (TARGET_XL_COMPAT): Delete.
6764         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
6765         (popcount<mode>2): New.
6766         (popcntb<mode>2): New.
6767         * config/rs6000/rs6000.opt (mpopcntb): New.
6768
6769         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
6770         if variable name exists.
6771
6772 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
6773
6774         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
6775
6776 2005-05-07  Richard Henderson  <rth@redhat.com>
6777
6778         PR target/21412
6779         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
6780         with constant offsets.
6781
6782 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
6783
6784         * config/v850/v850.c (print_operand): Use gcc_assert and
6785         gcc_unreachable, as appropriate.
6786         (print_operand_address, v850_handle_data_area_attribute,
6787         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
6788         v850_insert_attributes, construct_prepare_instruction): Likewise.
6789         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
6790         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
6791
6792 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
6793
6794         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
6795         config/rs6000/rs6000.h: Fix comment typos.
6796
6797 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
6798
6799         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
6800         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
6801         (mips_scalar_mode_supported_p): Delete.
6802
6803 2005-05-06  Eric Christopher  <echristo@redhat.com>
6804
6805         * config/mips/mips.opt: Remove -mint64 option.
6806         * config/mips/mips.c (override_options): Remove -mint64
6807         handling.
6808         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
6809         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
6810         64-bit integer handling.
6811         * doc/invoke.texi (Option Summary): Remove -mint64 for
6812         mips.
6813
6814 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
6815
6816         PR tree-optimization/19401
6817         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
6818         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
6819         (estimated_unrolled_size): New function.
6820         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
6821         tree_unroll_loops_completely): Always unroll loops if the code size
6822         does not increase.
6823         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
6824         loops should be unrolled completely.
6825         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
6826
6827 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
6828
6829         PR rtl-optimization/21254
6830         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
6831         assumptions for loops that otherwise do not roll.
6832         (find_simple_exit): Prefer # of iterations that is guaranteed
6833         not to be infinite.
6834         * loop-unroll.c (decide_peel_once_rolling,
6835         decide_peel_completely): Check whether the loop is infinite.
6836
6837 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
6838
6839         * config/rs6000/sysv4.opt: Fix typo.
6840
6841 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
6842             Jakub Jelinek  <jakub@redhat.com>
6843
6844         PR target/21329
6845         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
6846         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
6847         Don't use rep; movs{l,q} if the repetition count is really small,
6848         instead use a sequence of movs{l,q} instructions.
6849
6850 2005-05-06  Jeff Law  <law@redhat.com>
6851
6852         PR tree-optimization/21380
6853         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
6854         thread through a block with no preds.
6855
6856 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
6857
6858         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
6859         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
6860         add_call_read_ops): Use VEC instead of VARRAY.
6861
6862 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
6863
6864         * config/mcore/mcore.c (mcore_print_operand_address): Use
6865         gcc_assert and gcc_unreachable as appropriate.
6866         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
6867         mcore_output_andn, output_inline_const, mcore_output_move,
6868         mcore_output_movedouble, mcore_expand_block_move,
6869         layout_mcore_frame, mcore_initial_elimination_offset,
6870         mcore_expand_prolog, mcore_mark_dllexport,
6871         mcore_mark_dllimport): Likewise.
6872         * config/mcore/mcore.h (switch_to_section): Likewise.
6873         * config/mcore/mcore.md: Likewise.
6874
6875 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
6876
6877         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
6878         TARGET_PROFILE_KERNEL.
6879
6880         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
6881         TARGET_PROFILE_KERNEL use.
6882
6883 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
6884
6885         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
6886         and gcc_unreachable, as appropriate.
6887         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
6888         m32r_expand_prologue, m32r_output_function_epilogue,
6889         m32r_legitimize_pic_address, m32r_print_operand_address,
6890         emit_cond_move, m32r_function_symbol,
6891         m32r_output_block_move): Likewise.
6892         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
6893         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
6894         *rev_zero_branch_insn): Likewise.
6895
6896 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
6897
6898         PR c++/20961
6899         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
6900         if both NEWDECL and OLDDECL are already weak.
6901
6902 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
6903
6904         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
6905
6906 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
6907             Kaz Kojima  <kkojima@gcc.gnu.org>
6908
6909         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
6910         and plus_constant.
6911
6912 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
6913             David Edelsohn  <edelsohn@gnu.org>
6914
6915         * config.gcc: Add .opt magic for the rs6000 ports.
6916
6917         * doc/invoke.texi: Document -mabi= option properly.  Document
6918         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
6919         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
6920         -misel=.
6921
6922         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
6923         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
6924         TARGET_XL_COMPAT.
6925
6926         * config/rs6000/aix.opt: New.
6927         * config/rs6000/aix41.opt: New.
6928         * config/rs6000/aix64.opt: New.
6929         * config/rs6000/darwin.opt: New.
6930         * config/rs6000/linux64.opt: New.
6931         * config/rs6000/rs6000.opt: New.
6932         * config/rs6000/sysv4.opt: New.
6933
6934         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
6935         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
6936         SUBTARGET_SWITCHES.
6937         Define TARGET_USES_SYSV4_OPT.
6938         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
6939         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
6940         TARGET_USES_AIX64_OPT.
6941         * config/rs6000/aix51.h: Same.
6942         * config/rs6000/aix52.h: Same.
6943         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
6944         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
6945         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
6946         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
6947         * config/rs6000/linux64.h: Use
6948         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
6949
6950         * config/rs6000/rs6000.c: Remove definitions of
6951         rs6000_sched_restricted_insns_priority,
6952         rs6000_long_double_size_string, rs6000_altivec_vrsave,
6953         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
6954         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
6955         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
6956         rs6000_alignment_string.  Define rs6000_explicit_options.
6957         (rs6000_parse_abi_options): Remove.
6958         (rs6000_parse_alignment_option): Remove.
6959         (rs6000_parse_float_gprs_option): Remove.
6960         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
6961         TARGET_DEFAULT_TARGET_FLAGS.
6962         (rs6000_override_options): Revamp to use new .opt machinery.
6963
6964         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
6965         of new .opt machinery.  Remove target_flags.  Redefine
6966         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
6967         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
6968         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
6969         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
6970         rs6000_longcall_switch, rs6000_default_long_calls,
6971         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
6972         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
6973         TARGET_ALTIVEC_VRSAVE.
6974
6975 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
6976
6977         * config.gcc (hppa1.1-*-rtems*): Remove.
6978         * config/pa/rtems.h: Remove.
6979
6980 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
6981
6982         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
6983         Exclude roe/603e multilib variants.
6984
6985 2005-05-04  Denis Chertykov  <denisc@overta.ru>
6986
6987         PR target/21284
6988         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
6989         for output.
6990
6991 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
6992
6993         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
6994         arm/pe.opt to $extra_options.
6995         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
6996         (target_float_abi_name, target_float_switch, target_abi_name)
6997         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
6998         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
6999         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
7000         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
7001         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
7002         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
7003         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
7004         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
7005         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
7006         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
7007         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
7008         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
7009         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
7010         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
7011         (arm_pic_register_string): Delete.
7012         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
7013         TARGET_TPCS_FRAME.
7014         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
7015         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
7016         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
7017         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
7018         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
7019         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
7020         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
7021         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
7022         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
7023         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
7024         (SUBTARGET_SWITCHES): Delete.
7025         * config/arm/arm.c (target_float_switch): Delete.
7026         (arm_cpu_select): Moved from config/arm/arm.h.
7027         (target_fpu_name, target_fpe_name, target_float_abi_name)
7028         (target_abi_name, structure_size_string, arm_pic_register_string)
7029         (arm_select): Make static.
7030         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
7031         (arm_handle_option): New function.
7032         (arm_override_options): Update target_flags checks for new mask names.
7033         Remove target_float_switch code.
7034         (arm_expand_prologue, thumb_expand_prologue): Check
7035         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
7036         * config/arm/arm.opt, config/arm/pe.opt: New files.
7037
7038 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
7039
7040         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
7041         gcc_unreachable as appropriate.
7042         (arc_double_limm_p, arc_setup_incoming_varargs,
7043         arc_compute_function_type, arc_output_function_prologue,
7044         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
7045         output_shift, arc_print_operand, arc_print_operand_address,
7046         arc_final_prescan_insn): Likewise.
7047         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
7048
7049 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
7050
7051         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
7052         comparing Pmode.
7053         (SDI): New.
7054         (cmp): Delete.
7055         (wd): New.
7056         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
7057         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
7058         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
7059         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
7060         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
7061         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
7062         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
7063         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
7064
7065 2005-05-05  Paul Brook  <paul@codesourcery.com>
7066
7067         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
7068         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
7069         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
7070         and tree-data-ref.h with *_H variables.
7071
7072 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
7073
7074         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
7075
7076 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
7077
7078         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
7079
7080 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
7081
7082         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
7083
7084 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
7085
7086         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
7087         setting of vrsave register for current function after
7088         call to save_world is emitted.
7089
7090 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
7091
7092         * config/mmix/predicates.md: New file.
7093         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
7094         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
7095         (mmix_foldable_comparison_operator, mmix_comparison_operator)
7096         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
7097         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
7098         Don't define.
7099         * config/mmix/mmix.md: Include predicates.md.
7100         ("call", "call_value"): Force address to register if it isn't a
7101         mmix_symbolic_or_address_operand.
7102
7103 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
7104
7105         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
7106         the flags are of appropriate types.
7107         (num_ssa_operands): Generalize using the generic interface.
7108         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
7109         iterator.
7110
7111 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
7112
7113         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
7114         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
7115
7116 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7117
7118         * tree-outof-ssa.c (edge_leader, stmt_list,
7119         analyze_edges_for_bb): Use VEC instead of VARRAY.
7120         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
7121         (perform_edge_inserts): Call init_analayze_edges_for_bb and
7122         fini_analayze_edges_for_bb.
7123
7124 2005-05-04  James E Wilson  <wilson@specifixinc.com>
7125
7126         PR driver/21112
7127         * gcc.c (process_command): In the second argv scan loop, ignore
7128         Xassembler and Xpreprocessor, along with their argument.
7129
7130 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7131
7132         * tree-flow-inline.h, tree-ssa-operands.c,
7133         tree-ssa-operands.h, tree-ssa-opfinalize.h:
7134         Likewise. tree-vn.c: Fix comment typos.
7135         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
7136
7137 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
7138
7139         * doc/tm.texi (Target Hooks): Document
7140         TARGET_RESOLVE_OVERLOADED_BUILTIN.
7141
7142 2005-05-04  Paul Brook  <paul@codesourcery.com>
7143
7144         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
7145
7146 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7147
7148         * dwarf2out.c (incomplete_types, retry_incomplete_types,
7149         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
7150         of VARRAY.
7151
7152         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
7153         get_expansion, expand_var_during_unrolling,
7154         insert_var_expansion_initialization,
7155         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
7156         instead of VARRAY.
7157
7158         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
7159         update_stmt.
7160
7161 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
7162
7163         PR middle-end/15618
7164         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
7165         the same as INTEGER_TYPE.
7166         (fold_binary): Fold "bool_var != 0" to bool_var.
7167         Fold "bool_var == 1" to bool_var.
7168
7169 2004-05-03  Richard Henderson  <rth@redhat.com>
7170
7171         PR middle-end/21318
7172         * function.c (instantiate_virtual_regs_in_insn): Use the mode
7173         from recog_data instead of insn_data.
7174
7175 2005-05-03  DJ Delorie  <dj@redhat.com>
7176
7177         * common.opt (fdiagnostics-show-option): No variable is needed.
7178         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
7179         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
7180         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
7181         Save and restore original message format.  Use flag in context
7182         instead of global.
7183         (warning): Don't test for enabled warnings here.
7184         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
7185         here.
7186
7187 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
7188
7189         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
7190         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
7191         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
7192         * aclocal.m4: Don't include accross.m4.
7193         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
7194         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
7195         * configure, config.in: Regenerate.
7196
7197 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
7198
7199         PR middle-end/21265
7200         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
7201         (clear_storage): Add argument.
7202         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
7203         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
7204         tailcall.
7205         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
7206         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
7207         (store_expr, store_constructor): Adjust callers.
7208         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
7209         to emit_block_move if CALL_EXPR_TAILCALL (exp).
7210         (expand_builtin_memmove): Add ORIG_EXP argument, copy
7211         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
7212         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
7213         with EXP.  Pass EXP to expand_builtin_memmove.
7214         (expand_builtin_memset): Add ORIG_EXP argument, pass
7215         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
7216         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
7217         Pass EXP to expand_builtin_memset.
7218         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
7219         the new CALL_EXPR.
7220         (expand_builtin_strncmp): Likewise.
7221         (expand_builtin_printf): Replace ARGLIST argument with EXP.
7222         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
7223         (expand_builtin_fprintf): Likewise.
7224         (expand_builtin): Adjust calls to
7225         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
7226
7227         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
7228         item in V4SF mode.
7229
7230         PR rtl-optimization/21239
7231         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
7232
7233 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7234
7235         * tree-flow.h (tree_ann_common_d): Move aux to ...
7236         (stmt_ann_d): ... here.
7237         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
7238         move_computations_stmt, schedule_sm): Update references to
7239         aux.
7240         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
7241
7242         * tree-cfg.c (remove_bb): Remove a redundant call to
7243         set_bb_for_stmt.
7244         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
7245         Likewise.
7246
7247 2005-05-03  Richard Henderson  <rth@redhat.com>
7248
7249         * config/rs6000/rs6000.c: Remove conflict markers.
7250
7251         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
7252
7253 2005-05-03  James E Wilson  <wilson@specifixinc.com>
7254
7255         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
7256
7257 2005-05-03  DJ Delorie  <dj@redhat.com>
7258
7259         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
7260         decide if the warning will be printed.
7261         * calls.c (expand_call): Likewise.
7262         * function.c (init-function_start): Likewise.
7263
7264         * common.opt (-fdiagnostics-show-option): New.
7265         * opts.c (option_enabled): Accept the option index instead of a
7266         pointer to the option descriptor.
7267         * opts.h (option_enabled): Likewise.
7268         * toplev.c (print_switch_values): Pass option index, not option
7269         descriptor.
7270         * diagnostic.h (diagnostic_info): Add option_index.
7271         * diagnostic.c: Include opts.h.
7272         (diagnostic_set_info): Initialize option_index.
7273         (diagnostic_report_diagnostic): Amend option name if appropriate.
7274         (warning): Check to see if the specified warning is enabled.
7275         Store option index.
7276         * doc/invoke.texi (-fdiagnostics-show-options): Document.
7277
7278 2005-05-03  Richard Henderson  <rth@redhat.com>
7279
7280         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
7281         SPEC_OR_GEN_REGS definitions.
7282
7283 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
7284
7285         PR target/16888
7286         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
7287         for unavailable registers.
7288
7289 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7290
7291         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
7292
7293         * cfglayout.c (block_locators_blocks,
7294         insn_locators_initialize, insn_scope): Use VEC instead of
7295         VARRAY.
7296
7297         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
7298         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
7299         VARRAY.
7300
7301 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7302
7303         * config/sparc/predicates.md (const_compl_high_operand): New.
7304         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
7305         gen_safe_HIGH64.
7306         (sparc_emit_set_const64_quick1): Adjust for above change.
7307         (sparc_emit_set_const64_quick2): Likewise.
7308         (sparc_emit_set_const64_longway): Likewise.
7309         (sparc_emit_set_const64): Likewise.
7310         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
7311         movdi_const64_special): Delete.
7312         (logical constant splitters): Use const_compl_high_operand.
7313
7314 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
7315
7316         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
7317         rather than STRIP_NOPS.
7318
7319 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
7320
7321         PR rtl-optimization/21330
7322         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
7323         returning non-NULL.
7324         (unswitch_single_loop): Clear cinsn when retrying.
7325
7326         PR target/21297
7327         * config/i386/i386.c (legitimize_address): When canonicalizing
7328         ASHIFT into MULT, multiply by 1 << shift_count instead of
7329         1 << log2 (shift_count).
7330
7331 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
7332
7333         * lambda-code.c (gcc_loop_to_lambda_loop,
7334         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
7335         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
7336         generic operand interface.
7337         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
7338         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
7339         generic operand interface.
7340         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
7341         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
7342         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
7343         num_imm_uses): Use ssa_use_operand_t.
7344         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
7345         get_v_must_def_ops): Delete.
7346         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
7347         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
7348         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
7349         get_v_must_def_kill_ptr): Delete.
7350         (delink_stmt_imm_use): Move and use new operand interface.
7351         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
7352         op_iter_next_tree): Use new operand implementation.
7353         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
7354         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
7355         type check.
7356         (op_iter_next_mustdef, op_iter_next_maydef,
7357         op_iter_next_must_and_may_def): Delete. Replace with...
7358         (op_iter_next_maymustdef): New.  Combine must and may next operations.
7359         (op_iter_init_maydef, op_iter_init_mustdef,
7360         op_iter_init_must_and_may_def): Use new interface.
7361         (single_ssa_tree_operand ): New.  Process single operands only as trees.
7362         (single_ssa_use_operand): New.  Process single operands only as uses.
7363         (single_ssa_def_operand): New.  Process single operands only as defs.
7364         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
7365         specified types.
7366         (num_ssa_operands): New.  Count the number of specified operands.
7367         (compare_ssa_operands_equal): New.  Compare two statements' operands.
7368         (single_phi_def): New.  Return true if PHI has one def of the specified
7369         operand type.
7370         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
7371         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
7372         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
7373         (struct stmt_ann_d): Operands field no longer require GTY().
7374         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
7375         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
7376         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
7377         dump_replaceable_exprs, rewrite_trees): Use generic interface.
7378         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
7379         Use use_operand_p instead of ssa_imm_use_t *.
7380         * tree-pretty-print.c (dump_vops): check if operands are active before
7381         dumping virtual operands.
7382         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
7383         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
7384         (ccp_fold): Use new interface.
7385         (ccp_visit_stmt): Remove unused variables and code.
7386         (convert_to_gimple_builtin): Insert statements before calling
7387         mark_new_vars_to_rename.
7388         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
7389         (copy_prop_visit_cond_stmt): Use generic interface.
7390         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
7391         annotation in table.
7392         (thread_across_edge): Use generic interface.
7393         (initialize_hash_element): Initialzie with stmt, not annotation.
7394         (eliminate_redundant_computations): Use generic interface.
7395         (record_equivalences_from_stmt): Pass stmt, not annotation.
7396         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
7397         interface.
7398         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
7399         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
7400         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
7401         generic operand interface.
7402         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
7403         interface.
7404         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
7405         Interface.
7406         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
7407         (build_defs, build_uses, build_v_may_defs, build_vuses,
7408         build_v_must_defs): Change type to struct opbuild_list_d.
7409         (ops_active): New.  Operands active boolean.
7410         (operand_memory, operand_memory_index): New.  Operand memory managers.
7411         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
7412         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
7413         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
7414         Change from functions to static variable list heads.
7415         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
7416         (opbuild_initialize_real): New.  Initialize a virtual build list.
7417         (opbuild_free): New.  Free a build list.
7418         (opbuild_num_elems): New.  Number of items in a list.
7419         (opbuild_append_real): New.  Add a real (tree *) operand.
7420         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
7421         (opbuild_first): New.  Return first element index in a list.
7422         (opbuild_next): New.  Return next element in a list.
7423         (opbuild_elem_real): New.  Return real element.
7424         (opbuild_elem_virtual): New.  Return virtual element.
7425         (opbuild_elem_uid): New.  Return UID of virtual element.
7426         (opbuild_clear): New.  Reset an operand list.
7427         (opbuild_remove_elem): New.  Remove an element form a list.
7428         (ssa_operands_active): New.  Return true if operand cache is active.
7429         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
7430         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
7431         (correct_use_link): Use use_operand_p.
7432         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
7433         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
7434         (cleanup_v_may_defs): Use new implmentation.
7435         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
7436         implementation.
7437         (append_def, append_use, append_v_may_def, append_vuse,
7438         append_v_must_def): Call opbuild_append routine instead of using varray.
7439         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
7440         global parse_old_ops variable.
7441         (free_ssa_operands): New implementation.
7442         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
7443         (copy_virtual_operands): Move. New generic implementation.
7444         (create_ssa_artficial_load_stmt): Move. New implementation.
7445         (swap_tree_operands): Update for new implementation.
7446         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
7447         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
7448         rather than a varray.
7449         (verify_imm_links): Use use_operand_p.
7450         (dump_immediate_uses_for): If the immediate use variable is a virtual
7451         variable, show the virtual ops in the stmt.
7452         * tree-ssa-operands.h (def_operand_p): No longer a structure.
7453         (NULL_DEF_OPERAND_P): Now a #define.
7454         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
7455         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
7456         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
7457         mustdef_optype_d): New.  Use Linked list representation.
7458         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
7459         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
7460         (struct stmt_operands_d): Change to new pointers that are not GTY.
7461         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
7462         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
7463         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
7464         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
7465         SET_V_MUST_DEF_KILL): Delete.
7466         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
7467         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
7468         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
7469         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
7470         (enum ssa_op_iter_type): Operand iterator typechecking values.
7471         (struct ssa_operand_iterator_d): Use linked lists of operands.
7472         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
7473         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
7474         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
7475         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
7476         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
7477         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
7478         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
7479         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
7480         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
7481         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
7482         alloc_vuse, and alloc_mustdef.
7483         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
7484         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
7485         and finalize_ssa_v_must_def_ops.
7486         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
7487         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
7488         stmt around.
7489         (compute_avail): Use generic iterator interface.
7490         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
7491         (stmt_makes_single_load, stmt_makes_single_store): Use
7492         ZERO_SSA_OPERANDS.
7493         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
7494         (statement_sink_location): Use generic interface.
7495         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
7496         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
7497         reset the immediate use link nodes.
7498         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
7499         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
7500         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
7501         (eliminate_tail_call): Use generic operand interface.
7502         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
7503         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
7504         interface.
7505         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
7506         interface.
7507         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
7508         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
7509         vuse_optype.
7510         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
7511         Use statement pointer instead of vuse_optype.  Use generic interface.
7512         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
7513         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
7514         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
7515         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
7516         * doc/tree-ssa.texi: Update documentation for operand interface.
7517
7518 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
7519
7520         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
7521         gcc_unreachable as appropriate.
7522         (machopic_function_base_name, machopic_indirect_data_reference,
7523         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
7524         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
7525         * config/rs6000/altivec.md (*mov<mode>_internal,
7526         build_vector_mask_for_load): Likewise.
7527         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
7528         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
7529         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
7530         * config/rs6000/predicates.md (easy_fp_constant,
7531         logical_operand): Likewise.
7532         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
7533         compute_save_world_info, rs6000_emit_prologue,
7534         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
7535         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
7536         directly.
7537
7538 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
7539
7540         PR middle-end/21282
7541         * convert.c (convert_to_integer): Convert ceil and floor in
7542         c99 mode only.
7543
7544 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
7545
7546         PR target/20813
7547         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
7548         define_insn_and_split.  Split only when memory operand is
7549         offsettable.  Use adjust_address rather than plus_constant.
7550         (floatunssidf2_internal): Likewise.
7551         (fix_truncdfsi2_internal): Split only when memory operand is
7552         offsettable.  Use adjust_address rather than plus_constant.
7553         (fix_trunctfsi2_internal): Likewise.
7554         (floatsidf2_internal): Likewise.
7555
7556 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
7557
7558         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
7559         (set_value_range_to_null): Likewise.
7560         (set_value_range_to_varying): New function.  Use it in all
7561         call sites that used to call set_value_range (vr, VR_VARYING, ...).
7562         (extract_range_from_assert): If the integral type has a
7563         super-type, and LIMIT is not within MIN and MAX values of that
7564         type, set the resulting range to VR_VARYING.
7565
7566 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
7567
7568         * config/mmix/mmix.opt: New file.
7569         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
7570         (mmix_cc1_ignored_option): Don't declare.
7571         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
7572         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
7573         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
7574         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
7575         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
7576         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
7577         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
7578         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
7579         Don't define.
7580         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
7581         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
7582         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
7583
7584 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
7585
7586         PR c/15698
7587         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
7588         * c-decl.c (current_function_prototype_built_in,
7589         current_function_prototype_arg_types): New.
7590         (merge_decls): Keep source location of prototype followed by
7591         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
7592         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
7593         (start_function): Always set current_function_prototype_locus,
7594         current_function_prototype_built_in and
7595         current_function_prototype_arg_types.  Check for external
7596         prototype whether or not visible for external function and set
7597         current_function_prototype_arg_types accordingly.
7598         (store_parm_decls_oldstyle): Use
7599         current_function_prototype_arg_types for checking old-style
7600         definition against prototype.  Give warnings only if
7601         current_function_prototype_built_in).
7602
7603 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
7604
7605         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
7606         (ggc_alloc_zone_stat): Don't define.
7607         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
7608         ggc_alloc_zone_pass_stat.
7609         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
7610         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
7611         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
7612
7613 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
7614
7615         * calls.c (expand_call): Handle current_function_pretend_args_size
7616         when checking for sibcalls.
7617
7618 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7619
7620         PR tree-optimization/21294
7621         * tree-vrp.c (vrp_expr_computes_nonzero): New.
7622         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
7623
7624 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
7625
7626         PR 19985
7627         * gcov-io.h: Declare gcov external functions hidden.
7628
7629 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7630
7631         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
7632         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
7633         Use VEC instead of VARRAY.
7634         (equiv_free): New.
7635
7636         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
7637         out common code.
7638
7639 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
7640
7641         * c-common.c (resolve_overloaded_builtin): Forward to target
7642         hook for BUILT_IN_MD built-ins.
7643         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
7644         for all types of built-in.
7645         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
7646         in the definition of the target hooks struct.
7647         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
7648         * config/rs6000/altivec.h: Rewritten.
7649         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
7650         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
7651         rs6000_builtin_type, rs6000_builtin_type_compatible,
7652         altivec_overloaded_builtins, rs6000_builtin_type,
7653         rs6000_builtin_type_compatible): New.
7654         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
7655         New.
7656         (def_builtin): Turn into a function.  Check for duplicates and store
7657         the builtin into rs6000_builtin_decls.
7658         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
7659         bdesc_1arg): Add overloaded builtins.
7660         (altivec_expand_builtin): Check for unresolved overloaded builtins,
7661         do not support ALTIVEC_COMPILETIME_ERROR.
7662         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
7663         nodes to represent front-end types.
7664         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
7665         with opaque arguments and/or return values.
7666         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
7667         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
7668         (rs6000_builtin_type_index): New.
7669         (is_ev64_opaque_type): Rename to...
7670         (rs6000_is_opaque_type): ... this.
7671         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
7672         target hook.
7673
7674 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7675
7676         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
7677         instead of VARRAY.
7678
7679 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
7680             Bernd Schmidt  <bernd.schmidt@analog.com>
7681
7682         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
7683         print_address_operand, print_operand, legitimize_pic_address,
7684         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
7685         output_pop_multiple): Use gcc_assert or gcc_unreachable as
7686         appropriate.
7687         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
7688
7689 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
7690
7691         * doc/passes.texi: Document vectorization pass.
7692
7693 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7694
7695         * tree-scalar-evolution.c (get_exit_conditions_rec,
7696         select_loops_exit_conditions,
7697         number_of_iterations_for_all_loops,
7698         analyze_scalar_evolution_for_all_loop_phi_nodes,
7699         scev_analysis): Use VEC instead of VARRAY.
7700
7701 2005-05-02  Michael Matz  <matz@suse.de>
7702
7703         PR c++/19542
7704         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
7705         (warn_strict_null_sentinel): Define.
7706         (check_function_sentinel): Check for null_node as valid sentinel too.
7707         * c-common.h (c_tree_index): Added CTI_NULL.
7708         (null_node) Define global_tree[CTI_NULL].
7709         (warn_strict_null_sentinel): Declare.
7710         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
7711         * c.opt: (Wstrict-null-sentinel): New C++ option.
7712         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
7713
7714 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
7715
7716         * gimplify.c (gimplify_compound_lval): Use VEC instead of
7717         VARRAY.
7718
7719         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
7720
7721         * dwarf2out.c (decl_scope_table, push_decl_scope,
7722         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
7723         instead of VARRAY.
7724
7725 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
7726
7727         PR C++/14391
7728         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
7729         if !flag_weak.
7730         * doc/cpp.texi (__DEPRECATED): Document.
7731         (__EXCEPTIONS): Likewise.
7732         (__GXX_WEAK__): Likewise.
7733
7734         * function.c (INVOKE__main): Do not define.
7735         (expand_main_function): Check HAS_INIT_SECTION when determining
7736         whether or not to call __main.
7737
7738 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
7739
7740         * tree-ssa-loop-ivopts.c: Fix a comment typo.
7741
7742 2005-01-05  Paul Brook  <paul@codesourcery.com>
7743
7744         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
7745         (INITIALIZE_TRAMPOLINE): Use it.
7746         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
7747         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
7748         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
7749
7750 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
7751
7752         * doc/install.texi (Specific): Omit dots in the @anchors names
7753         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
7754         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
7755
7756 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
7757
7758         PR tree-optimization/18316
7759         PR tree-optimization/19126
7760         * tree.c (build_int_cst_type): Avoid shift by size of type.
7761         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
7762         argument.
7763         * tree-scalar-evolution.h (simple_iv): Declaration changed.
7764         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
7765         field.
7766         (dump_cand): Dump depends_on information.
7767         (determine_biv_step): Add argument to simple_iv call.
7768         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
7769         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
7770         constant.
7771         (add_candidate_1): Record depends_on for candidates.
7772         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
7773         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
7774         Handle ivs with nonconstant step.
7775         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
7776         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
7777         (create_new_iv): Unshare the step before passing it to create_iv.
7778         (free_loop_data): Free cand->depends_on.
7779         (build_addr_strip_iref): New function.
7780         (find_interesting_uses_address): Use build_addr_strip_iref.
7781         (strip_offset_1): Split the recursive part from strip_offset.
7782         Strip constant offset component_refs and array_refs.
7783         (strip_offset): Split the recursive part to strip_offset_1.
7784         (add_address_candidates): Removed.
7785         (add_derived_ivs_candidates): Do not use add_address_candidates.
7786         (add_iv_value_candidates): Add candidates with stripped constant
7787         offset.  Consider all candidates with initial value 0 important.
7788         (struct affine_tree_combination): New.
7789         (aff_combination_const, aff_combination_elt, aff_combination_scale,
7790         aff_combination_add_elt, aff_combination_add,
7791         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
7792         fold_affine_sum): New functions.
7793         (get_computation_at): Use fold_affine_sum.
7794         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
7795         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
7796         to simple_iv call.
7797
7798 2005-04-30  Michael Matz  <matz@suse.de>
7799
7800         * config/i386/i386.md (movmemsi): Also active when
7801         TARGET_INLINE_ALL_STRINGOPS.
7802
7803 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7804
7805         PR bootstrap/20633
7806         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
7807
7808 2005-04-30  Paul Brook  <paul@codesourcery.com>
7809
7810         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
7811         thumb mode.
7812         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
7813         * config/arm/ieee754-sf.S: Ditto.
7814         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
7815         (FUNC_ALIAS): Use .thumb_set for thumb routines.
7816
7817 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
7818
7819         * tree-ssanames.c: Fix a comment typo.
7820         * doc/options.texi: Fix a typo.
7821
7822 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
7823
7824         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
7825         gcc_unreachable as appropriate.
7826         (split_adds_subs, cond_string, print_operand,
7827         h8300_initial_elimination_offset, h8300_classify_operand,
7828         h8300_unary_length, h8300_short_immediate_length,
7829         h8300_bitfield_length, h8300_binary_length,
7830         h8300_insn_length_from_table, compute_mov_length, output_plussi,
7831         compute_plussi_length, compute_plussi_cc, output_logical_op,
7832         compute_logical_op_length, compute_logical_op_cc,
7833         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
7834         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
7835         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
7836         h8300_regs_ok_for_stm): Likewise.
7837         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
7838         monitor_prologue): Likewise.
7839
7840 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
7841
7842         * loop-invariant.c (invariants, create_new_invariant,
7843         get_inv_cost, best_gain_for_invariant,
7844         find_invariants_to_move, move_invariants,
7845         init_inv_motion_data, free_inv_motion_data): Use VEC instead
7846         of VARRAY.
7847
7848 2005-04-29  Richard Henderson  <rth@redhat.com>
7849
7850         * function.c (instantiate_decls): Remove valid_only argument.
7851         (instantiate_decls_1, instantiate_decl): Likewise.
7852         (instantiate_virtual_regs_1): Delete.
7853         (instantiate_virtual_regs_lossage): Delete.
7854         (instantiate_virtual_regs_in_rtx): New.
7855         (safe_insn_predicate): New.
7856         (instantiate_virtual_regs_in_insn): New.
7857         (instantiate_virtual_regs): Update to match all that.  Only run
7858         instantiate_decls once.
7859
7860 2005-04-29  Richard Henderson  <rth@redhat.com>
7861             Daniel Jacobowitz  <dan@codesourcery.com>
7862
7863         * gengtype.c (write_func_for_structure): Split out ...
7864         (output_type_enum): ... new function.  Fix thinko accessing
7865         TYPE_PARAM_STRUCT data.
7866
7867 2005-04-29  Tom Tromey  <tromey@redhat.com>
7868
7869         * tree.c (build_block): Removed unused 'tags' argument.
7870         * tree.h (build_block): Removed argument.
7871
7872 2005-04-29  Michael Matz  <matz@suse.de>
7873
7874         PR rtl-optimization/21144
7875         * postreload.c (reload_cse_move2add): Check for VOIDmode.
7876
7877 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
7878
7879         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
7880         flag_reorder_blocks.
7881
7882 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
7883
7884         PR tree-optimization/21030
7885         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
7886         ranges where VR->MAX is smaller than VR->MIN.
7887
7888 2005-04-29  Devang Patel  <dpatel@apple.com>
7889
7890         PR tree-optimization/21272
7891         PR tree-optimization/21266
7892         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
7893
7894 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
7895
7896         * tree-flow-inline.h: Fix a comment typo.
7897         * doc/tree-ssa.texi: Fix a typo.
7898
7899         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
7900
7901 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
7902
7903         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
7904         gcc_unreachable as appropriate.
7905         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
7906         fr30_print_operand, fr30_move_double): Likewise.
7907         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
7908
7909 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
7910
7911         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
7912         definition has already been provided.
7913         (ARM_EABI_DTORS_SECTION_OP): Likewise.
7914         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
7915         (ARM_EABI_DTORS_SECTION_OP): Likewise.
7916
7917 2005-04-29  Jim Tison  <jtison@us.ibm.com>
7918
7919         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
7920         trace hooks calls to improve performance.
7921
7922 2005-04-29  Julian Brown  <julian@codesourcery.com>
7923             Mark Mitchell  <mark@codesourcery.com>
7924             Paul Brook  <paul@codesourcery.com>
7925
7926         * crtstuff.c: Handle targets that use .init_array.
7927         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
7928         that INVOKE__main is set correctly.
7929         (expand_main_function): Test INVOKE__main.
7930         * libgcc2.c: Do not define __main when using .init_array.
7931         * config/arm/arm.c (arm_elf_asm_constructor): New function.
7932         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
7933         libgcc version.
7934         (DTORS_SECTION_ASM_OP): Likewise.
7935         (CTOR_LIST_BEGIN): Define specially when in libgcc.
7936         (CTOR_LIST_END): Likewise.
7937         (DTOR_LIST_BEGIN): Likewise.
7938         (DTOR_LIST_END): Likewise.
7939         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
7940         (FINI_SECTION_ASM_OP): Likewise.
7941         (INIT_ARRAY_SECTION_ASM_OP): Define.
7942         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
7943         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
7944         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
7945         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
7946         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
7947
7948 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
7949
7950         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
7951         gcc_assert and gcc_unreachable as appropriate.
7952         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
7953         const_int_cost, output_move_const_into_data_reg,
7954         output_move_qimode, output_move_double, find_addr_reg,
7955         print_operand, print_operand_address): Likewise.
7956         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
7957         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
7958         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
7959         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
7960         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
7961         conditional_trap): Likewise.
7962         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
7963
7964 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
7965
7966         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
7967         gcc_unreachable as appropriate.
7968         (gen_conditional_move, xtensa_split_operand_pair,
7969         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
7970         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
7971         xtensa_copy_incoming_a7, xtensa_output_literal,
7972         xtensa_output_literal, xtensa_output_literal): Likewise.
7973         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
7974         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
7975         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
7976         movsicc_internal1, movsfcc_internal0,
7977         movsfcc_internal1): Likewise.
7978
7979 2005-04-28  James E Wilson  <wilson@specifixinc.com>
7980
7981         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
7982         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
7983
7984 2005-04-28  DJ Delorie  <dj@redhat.com>
7985
7986         * opt-functions.awk (var_set): Emit proper initializer for
7987         non-target bitfields.
7988
7989 2005-04-28  Devang Patel  <dpatel@apple.com>
7990
7991         * dbxout.c (have_used_extensions): Remove.
7992         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
7993         have_used_extensions.
7994
7995 2005-04-28  James E Wilson  <wilson@specifixinc.com>
7996
7997         * doc/install.texi: Update -enable-languages info.  Correct path to
7998         html docs.
7999
8000 2005-04-28  DJ Delorie  <dj@redhat.com>
8001
8002         * optc-gen.awk (END): Make sure no variable is defined more
8003         than once.
8004         * opth-gen.awk (END): Allocate bits on a per-variable basis.
8005         Allow for bitfield variables other than target_flags.
8006         * doc/options.text (Mask): Document that you may specify a
8007         variable other than target_flags.
8008
8009 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
8010
8011         PR rtl-optimization/18877
8012         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
8013         number in val.start.
8014
8015 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
8016
8017         PR target/20813
8018         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
8019         MASK_PPC_GFXOPT.
8020         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
8021         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
8022         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
8023
8024 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
8025
8026         * arm.c (legitimize_pic_address): Fix sense of assertion test for
8027         creating pseudos when the base offset is too large.
8028
8029 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
8030
8031         * global.c (earlyclobber_regclass): Change the type to
8032         VEC(int,heap).
8033         (check_earlyclobber): Update uses of earlyclobber_regclass.
8034         (mark_reg_use_for_earlyclobber): Likewise.
8035         (calculate_local_reg_bb_info): Allocate and free
8036         earlyclobber_regclass using the VEC API.
8037
8038 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
8039
8040         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
8041         assert.
8042
8043 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
8044
8045         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
8046         (*targetm.foo).
8047
8048         * config.gcc: Obsolete c4x-* and tic4x-*.
8049
8050         * tree.h (edge_def): Remove.
8051
8052         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
8053         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
8054         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
8055         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
8056         where appropriate.
8057
8058         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
8059         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
8060         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
8061         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
8062         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
8063         machmode.def, mips-tfile.c, params.c, pretty-print.c,
8064         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
8065         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
8066         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
8067         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
8068         config/i386/cygming.h, config/i386/djgpp.h,
8069         config/i386/lynx.h, config/i386/netware.c,
8070         config/i386/winnt.c, config/ia64/ia64-c.c,
8071         config/iq2000/iq2000.c, config/m32r/little.h,
8072         config/m68k/m68k-protos.h, config/m68k/m68k.h,
8073         config/m68k/m68k.md, config/mcore/mcore.c,
8074         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
8075         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
8076         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
8077         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
8078         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
8079         config/pdp11/pdp11.h, config/rs6000/darwin.h,
8080         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
8081         config/s390/2064.md, config/s390/2084.md,
8082         config/s390/s390-modes.def, config/s390/s390-protos.h,
8083         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
8084         config/stormy16/stormy16.c, config/vax/vax-protos.h,
8085         config/vax/vax.c, config/vax/vax.h,
8086         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
8087         copyright.
8088
8089 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
8090
8091         * c-typeck.c (build_compound_expr): Correct logic in last change.
8092
8093 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
8094
8095         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
8096         parameters.  Replace conditional move code with assert checking for
8097         ar.lc.  Delete obsolete comments.
8098         (set_src_needs_barrier): Delete cond parameter, and code using it.
8099         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
8100         assert checking for PR_REGS.  Fix calls to update_set_flags and
8101         set_src_needs_barrier.
8102         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
8103         callers.  Rewrite explanatory comment before the function.
8104         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
8105         Fix all callers.
8106
8107 2005-04-27  Mike Stump  <mrs@apple.com>
8108
8109         * doc/cpp.texi: gcc now implements universal character names.
8110
8111 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
8112
8113         PR c/21159
8114         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
8115         being a compound expression whose right-hand side is cast to void.
8116
8117 2005-04-27  Caroline Tice  <ctice@apple.com>
8118
8119         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8120         Remove targetm.have_named_sections test.
8121         (fix_edges_for_rarely_executed_code): Likewise.
8122         (insert_section_boundary_note): Likewise.
8123         (reorder_basic_blocks): Check partitioning flag before calling
8124         verify_hot_cold_block_grouping.
8125         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
8126         the function struct rather than global variables.
8127         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
8128         (COLD_END_LABEL): Likewise
8129         (cold_text_section_label): New static global variable.
8130         (cold_end_label): Likewise.
8131         (dwarf2out_switch_text_section): Get hot/cold section labels from
8132         the function struct rather than global variables; test to make sure
8133         cfun is defined.
8134         (output_aranges): Use cold_text_section_label and cold_end_label;
8135         check partitioning flag before putting out delta.
8136         (output_ranges): Remove incorrect code attempting to use
8137         hot/cold labels.
8138         (output_line_info): Get cold section label from function struct; test
8139         to make sure cfun is defined.
8140         (add_location_or_const_value_attribute): Likewise.
8141         (dwarf2out_var_location): Likewise.
8142         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
8143         write out cold_text_section_label if partition flag is set.
8144         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
8145         * function.h (struct function): Add new fields to point to hot/cold
8146         section labels: hot_section_label, cold_section_label,
8147         hot_section_end_label and cold_section_end_label; also add new field
8148         for cold text section name, unlikely_text_section_name.
8149         * opts.c (decode_options): Turn off partitioning flag if
8150         !targetm.have_named_sections.
8151         * output.h (hot_section_label): Remove.
8152         (hot_section_end_label): Remove.
8153         (cold_section_end_label): Remove.
8154         (unlikely_section_label): Remove.
8155         (unlikely_text_section_name): Remove.
8156         * passes.c (rest_of_handle_final):  Remove extra blank line.
8157         * varasm.c (unlikely_section_label): Remove.
8158         (hot_section_label): Remove.
8159         (hot_section_end_label): Remove.
8160         (cold_section_end_label): Remove.
8161         (unlikely_text_section_name):  Remove.
8162         (initialize_cold_section_name): Modify to call
8163         targetm.strip_name_encoding; to store cold section name in current
8164         function struct, if it exists; and to only use the decl_section_name
8165         if flag_named_sections is true.
8166         (unlikely_text_section): Modify to get section name out of current
8167         function struct, if there is one; otherwise build it from
8168         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
8169         (in_unlikely_text_section): Likewise.
8170         (named_section): Modify to get/put cold section name in current function
8171         struct, if there is one.
8172         (function_section):  Change 'bool unlikely' to 'int reloc'; check
8173         targetm.have_named_sections before calling named_section.
8174         (current_function_section): Likewise.
8175         (assemble_start_function): Modify to get/put unlikely_text_section_name
8176         in current function struct; modify to get hot/cold section labels
8177         from function struct; initialize labels using
8178         ASM_GENERATE_INTERNAL_LABEL;
8179         test partitioning flag before writing out hot section label.
8180         (assemble_end_function): Test partitioning flag before writing out
8181         hot/cold section labels.
8182         (default_section_type_flags_1):  Get cold text section name from
8183         function struct if there is one; Set flags correctly for
8184         cold text section if there is not a current function struct.
8185
8186 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
8187
8188         * tree-ssa-propagate.c (set_rhs): Revert last change.
8189
8190 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
8191
8192         * explow.c (convert_memory_address): Add gcc_assert.
8193
8194 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
8195
8196         * configure.ac: Check for ld --sysroot support.
8197         * gcc.c: Document %R specifier for specs.
8198         (SYSROOT_SPEC): New macro.
8199         (sysroot_spec): New variable.
8200         (static_specs): Add sysroot_spec.
8201         (main): Pass the sysroot spec to the linker if appropriate.
8202         * configure: Regenerated.
8203         * config.in: Likewise.
8204
8205 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
8206
8207         * fold-const.c (fold_binary): Use build_fold_addr_expr
8208         for address calculation and INDIRECT_REF handling.
8209
8210 2005-04-27  Andrew Haley  <aph@redhat.com>
8211
8212         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
8213
8214 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8215
8216         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
8217         pointer when thumb backtracing is on.
8218
8219         * config/fp-bit.c (abort): Revert change.
8220
8221 2005-04-27  Ian Lance Taylor  <ian@airs.com>
8222
8223         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
8224
8225 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8226
8227         * tree-ssa-dce.c: Fix a comment typo.
8228
8229 2005-04-27  David S. Miller  <davem@davemloft.net>
8230
8231         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
8232         Kill setjmpless_size.  current_function_calls_setjmp is completely
8233         computed when we are called, so just use the optimized size value
8234         instead of using REG_SAVE_AREA notes.
8235         (optimize_save_area_alloca): Delete....
8236         * rtl.h (optimize_save_area_alloca): Likewise...
8237         * passes.c (rest_of_compilation): and don't call it any more.
8238         * reg-notes.def (SAVE_AREA): Delete.
8239
8240 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8241
8242         * config/fp-bit.c (abort): Add noreturn attribute.
8243
8244         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
8245         gcc_unreachable as appropriate.
8246         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
8247         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
8248         ASM_OUTPUT_REG_POP): Likewise.
8249
8250 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
8251
8252         * tree-complex.c (expand_vector_operations_1): Do not build
8253         VIEW_CONVERT_EXPR's for the lhs.
8254
8255 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8256
8257         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
8258         unnecessary noncanonical RTL handling.
8259         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
8260         gcc_assert and gcc_unreachable.
8261
8262         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
8263         gcc_unreachable as appropriate.
8264         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
8265         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
8266         use_return_insn, const_ok_for_op, arm_gen_constant,
8267         arm_canonicalize_comparison, legitimize_pic_address,
8268         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
8269         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
8270         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
8271         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
8272         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
8273         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
8274         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
8275         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
8276         output_call, output_mov_long_double_fpa_from_arm,
8277         output_mov_long_double_arm_from_fpa,
8278         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
8279         output_move_double, arithmetic_instr, shift_op, int_log2,
8280         output_return_instruction, arm_output_function_prologue,
8281         arm_output_epilogue, arm_output_function_epilogue,
8282         emit_multi_reg_push, arm_get_frame_offsets,
8283         arm_compute_initial_elimination_offset, arm_expand_prologue,
8284         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
8285         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
8286         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
8287         thumb_compute_initial_elimination_offset,
8288         thumb_output_function_prologue, thumb_load_double_from_address,
8289         thumb_output_move_mem_multiple, thumb_reload_out_hi,
8290         arm_emit_vector_const, arm_dbx_register_number): Likewise.
8291         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
8292         * config/arm/arm.md (thumb_extendhisi2,
8293         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
8294         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
8295         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
8296         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
8297         * config/arm/cirrus.md (*cirrus_arm_movdi,
8298         *cirrus_movdf_hard_insn): Likewise.
8299         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
8300
8301 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8302
8303         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
8304         (num_ssa_names): Use VEC_length.
8305         (ssa_names): Use VEC_index.
8306         * tree-ssanames.c (ssa_names): Change the type to
8307         VEC(tree,gc).
8308         (init_ssanames, fini_ssa_names, make_ssanames,
8309         release_ssa_name): Update uses of ssa_names.
8310
8311         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
8312         Use fold_buildN instead of fold (buildN (...)).
8313
8314 2005-04-27  Devang Patel <dpatel@apple.com>
8315
8316         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
8317
8318 2005-04-27  Matt Thomas <matt@3am-software.com>
8319             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
8320
8321         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
8322         (vax_output_mi_thunk): Ditto.
8323         (vax_notice_cc_update): Ditto.
8324         (INDEX_REGISTER_P): Add trailing \.
8325         (BASE_REGISTER_P): Add trailing \.
8326         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
8327
8328 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
8329
8330         * tree-ssa-propagate.c (set_rhs): Check operand of
8331         ADDR_EXPR for gimpliness, too.
8332
8333 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8334
8335         * tree-ssa-pre.c: Fix a comment typo.
8336
8337 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
8338
8339         PR tree-optimization/21171
8340         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
8341         record address uses if the reference is volatile.
8342
8343 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
8344
8345         * tree-complex.c (expand_vector_operation): New, extracted from
8346         expand_vector_operations_1.
8347         (tree_vec_extract): Build a NOP_EXPR.
8348         (expand_vec_parallel): Do not care about returning the correct type.
8349         (expand_vector_operations_1): Call expand_vector_operation.
8350         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
8351
8352         * tree-complex.c (gate_expand_vector_operations): New.
8353         (pass_lower_vector_ssa): Use it.
8354         * tree-optimize.c (init_tree_optimization_passes): Include
8355         pass_lower_vector_ssa.
8356         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
8357         (vectorizable_operation): Use it.
8358         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
8359         integer modes for the vector type.
8360
8361         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
8362         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
8363         Do not cope with UNITS_PER_SIMD_WORD == 0.
8364         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
8365         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
8366         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
8367         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
8368         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
8369         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
8370         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
8371
8372         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
8373         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
8374         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
8375
8376         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
8377         (UNITS_PER_SIMD_WORD): New.
8378
8379 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8380
8381         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
8382         gcc_unreachable as appropriate.
8383         (ia64_expand_load_address, ia64_expand_tls_address,
8384         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
8385         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
8386         next_scratch_gr_reg, ia64_initial_elimination_offset,
8387         ia64_expand_prologue, ia64_expand_epilogue,
8388         ia64_output_dwarf_dtprel, ia64_print_operand,
8389         ia64_register_move_cost, first_instruction, rws_access_regno,
8390         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
8391         ia64_sched_init, ia64_variable_issue,
8392         ia64_first_cycle_multipass_dfs_lookahead_guard,
8393         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
8394         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
8395         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
8396         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
8397         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
8398         * config/ia64/predicates.md (got_symbolic_operand,
8399         sdata_symbolic_operand): Likewise.
8400         * config/ia64/vect.md (vcondv2sf): Likewise.
8401
8402 2005-04-27  Matt Thomas <matt@3am-software.com>
8403
8404         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
8405         CONSTANT_ADDRESS_P in config/vax/vax.h
8406         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
8407         (INDEX_REGISTER_P): New.
8408         (BASE_REGISTER_P): New.
8409         (indirectable_constant_address_p): New.  Adapted from
8410         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
8411         (indirectable_address_p): New.  Adapted from
8412         INDIRECTABLE_ADDRESS_P in vax.h.
8413         (nonindexed_address_p): New.  Adapted from
8414         GO_IF_NONINDEXED_ADDRESS in vax.h.
8415         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
8416         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
8417         (legitimate_address_p): New.  Adapted from
8418         GO_IF_LEGITIMATE_ADDRESS in vax.h.
8419         (vax_mode_dependent_address_p): New.  Adapted from
8420         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
8421         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
8422         legitimate_constant_address_p.
8423         (CONSTANT_P): Use legitimate_constant_p.
8424         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
8425         (INDIRECTABLE_ADDRESS_P): Removed.
8426         (GO_IF_NONINDEXED_ADDRESS): Removed.
8427         (INDEX_TEMP_P): Removed.
8428         (GO_IF_REG_PLUS_INDEX): Removed.
8429         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
8430         definitions, depending on whether REG_OK_STRICT is defined.
8431         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
8432         Two definitions, depending on whether REG_OK_STRICT is defined.
8433         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
8434         added.
8435         (legitimate_constant_p): Prototype added.
8436         (legitimate_address_p): Prototype added.
8437         (vax_mode_dependent_address_p): Prototype added.
8438
8439 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8440
8441         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
8442
8443 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
8444
8445         PR c/21213
8446         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
8447         transparent union.
8448
8449 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
8450
8451         PR c/20740
8452         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
8453         assertion failures, if __gcc_host_wide_int__ is not properly
8454         defined.
8455         (init_dynamic_diag_info): Give errors, not assertion failures, if
8456         location_t, tree or __gcc_host_wide_int__ are not properly
8457         defined.
8458
8459 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
8460
8461         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
8462         n_iv_uses, iv_use, n_iv_cands, iv_cand,
8463         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
8464         prepare_decl_rtl, free_loop_data,
8465         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
8466         VARRAY.
8467
8468         * tree.h (tree_phi_node): Add a comment about the order of PHI
8469         arguments.
8470
8471 2005-04-26  Paul Brook  <paul@codesourcery.com>
8472
8473         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
8474
8475 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
8476
8477         * config/mips.mips.c (mips_legitimize_tls_address): Use
8478         gcc_unreachable.
8479
8480         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
8481         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
8482         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
8483
8484         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
8485         'abort'.
8486
8487 2005-04-26  Jeff Law  <law@redhat.com>
8488
8489         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
8490         (op_iter_init_must_and_may_def): Likewise.
8491         (unmodifiable_var_p): Move to a later point in the file.
8492         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
8493         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
8494         (dse_record_phis): Directly check for virtual operands rather than
8495         using need_imm_uses_for.
8496         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
8497         store has multiple V_{MAY,MUST}_DEF operands.
8498
8499 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
8500
8501         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
8502         stmt.
8503
8504 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
8505
8506         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
8507         call to find_edge outside a loop to go through a PHI chain.
8508
8509 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
8510
8511         PR tree-optimization/17598
8512         * fold-const.c (fold_binary): Fold comparisons of addresses
8513         of COMPONENT_REFs which reference the same field to
8514         comparisons of the addresses of the base objects.
8515
8516 2005-04-26  Julian Brown  <julian@codesourcery.com>
8517
8518         * config/arm/arm.c (arm_return_in_msb): New function.
8519         (arm_must_pass_in_stack): New function.
8520         (TARGET_RETURN_IN_MSB): Define target hook.
8521         (TARGET_MUST_PASS_IN_STACK): Define target hook.
8522         (arm_function_value): Pad small aggregate return.
8523         (arm_pad_arg_upward): New function.
8524         (arm_pad_reg_upward): New function.
8525         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
8526         (FUNCTION_ARG_PADDING): Define macro.
8527         (BLOCK_REG_PADDING): Define macro.
8528         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
8529         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
8530         (arm_pad_reg_upward): Declare function.
8531
8532 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
8533
8534         * basic-block.h (ei_cond): New.
8535         (FOR_EACH_EDGE): Call ei_cond.
8536
8537         PR tree-optimization/21047
8538         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
8539         (fold): Don't handle ASSERT_EXPR.
8540
8541 2005-04-25  Roger Sayle  <roger@eyesopen.com>
8542
8543         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
8544         all writes to any stack register as a read/write dependency on
8545         FIRST_STACK_REG.
8546         (sched_analyze_2): Likewise, for reads from any stack register.
8547
8548 2005-04-25  Richard Henderson  <rth@redhat.com>
8549
8550         * final.c (output_addr_const): Revert 2005-04-09 change.
8551
8552 2005-04-25  Mike Stump  <mrs@apple.com>
8553
8554         * config/darwin.c (darwin_encode_section_info): Always set
8555         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
8556
8557 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8558
8559         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
8560         gensupport.c, protoize.c, toplev.c: Replace calls to
8561         `unlock_stream' with `unlock_std_streams'.
8562
8563 2005-04-25  Devang Patel <dpatel@apple.com>
8564
8565         * dbxout.c (dbxout_type): Emit attribute vector.
8566
8567 2005-04-05  Paul Brook  <paul@codesourcery.com>
8568
8569         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
8570         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
8571         * config/arm/arm.c (arm_cxx_atexit_name): New function.
8572         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
8573         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
8574         (register_dtor_fn): Likewise.
8575         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
8576
8577 2005-04-25  Ian Lance Taylor  <ian@airs.com>
8578
8579         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
8580         * c-common.h (EXPR_STMT_EXPR): Don't define.
8581         (c_common_stmt_codes): Don't define.
8582         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
8583         * c-gimplify.c (gimplify_expr_stmt): Remove.
8584         (c_gimplify_expr): Remove EXPR_STMT case.
8585         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
8586         to INIT_STATEMENT_CODES.
8587         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
8588
8589 2005-04-25  Jan Hubicka  <jh@suse.cz>
8590
8591         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
8592
8593         * except.c: Include diagnostic.h
8594         (dump_eh_tree, verify_eh_tree): New functions.
8595         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
8596         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
8597         (dump_function_to_file): dump eh tree.
8598         * tree-eh.c (mark_eh_edge): New function.
8599         (mark_eh_edge_found_error): New static variable.
8600         (verify_eh_edges): New function.
8601
8602 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
8603
8604         * tree-ssa-alias.c (fieldoff_t): Remove.
8605         (fieldoff_s): typedef the structure itself.  Create a vector of
8606         objects.
8607         (push_fields_onto_fieldstack): Return count of fields pushed.
8608         Remove peeling of first field.  Adjust.
8609         (fieldoff_compare): Adjust.
8610         (create_overlap_variables_for): Adjust.
8611
8612 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
8613
8614         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
8615
8616 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
8617
8618         PR bootstrap/21215
8619         * doc/install.texi: Document correct assembler and linker to use
8620         on i?86-*-solaris2.10.
8621
8622 2005-04-25  Steven Bosscher  <stevenb@suse.de>
8623
8624         Fix PR tree-optimization/21173
8625
8626         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
8627         Unshare expression we pass to force_gimple_operand.
8628
8629 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
8630             Stephen Clarke <stevec@superh.com>
8631             Roger Sayle <roger@eyesopen.com>
8632
8633         PR rtl-optimization/20413
8634         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
8635         VOIDmode for LABEL_REF.
8636         * final.c (shorten_branches): Likewise.
8637         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
8638         * loop.c (reg_dead_after_loop): Likewise.
8639         * varasm.c (decode_addr_const): Likewise.
8640         * doc/rtl.texi: Document mode requirement for LABEL_REF.
8641
8642 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
8643
8644         * config.gcc (avr-*-*): Remove redundant "case".
8645
8646 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
8647
8648         * tree-vect-analyze.c (vect_mark_relevant): Take
8649         VEC(tree,heap) instead of varray_type as an argument.
8650         (vect_mark_stmts_to_be_vectorized): Change the type of
8651         worklist to VEC(tree,heap).  Adjust uses of worklist.
8652
8653 2005-04-24  Devang Patel  <dpatel@apple.com>
8654
8655         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
8656
8657 2005-04-24  Ian Lance Taylor  <ian@airs.com>
8658
8659         * c-semantics.c (build_stmt): Remove test of specific tree codes
8660         for TREE_SIDE_EFFECTS handling.
8661
8662 2005-04-24  Per Bothner  <per@bothner.com>
8663
8664         * c-opts.c (finish_options):  Make the line-number of the <built-in>
8665         location 0, as assumed elsewhere, rather than 1.
8666
8667 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
8668
8669         * tree-ssa-uncprop.c (equiv_stack): Change the type o
8670         VEC(tree,heap).
8671         (tree_ssa_uncprop, uncprop_finalize_block,
8672         uncprop_initialize_block): Update uses of equiv_stack.
8673
8674 2005-04-24  Richard Henderson  <rth@redhat.com>
8675
8676         PR rtl-opt/21163
8677         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
8678         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
8679         constm1_rtx.
8680         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
8681         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
8682         <DIV, MOD>: Likewise.
8683
8684 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8685
8686         * collect2.c (main): Unlock the stdio streams.
8687         * gcc.c (main): Likewise.
8688         * gcov-dump.c (main): Likewise.
8689         * gcov.c (main): Likewise.
8690         * gen-protos.c (main): Likewise.
8691         * gensupport.c (init_md_reader_args_cb): Likewise.
8692         * protoize.c (main): Likewise.
8693         * toplev.c (general_init): Likewise.
8694
8695 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
8696
8697         PR middle-end/20991
8698         * cgraph.h (cgraph_local_info): Add vtable_method field.
8699         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
8700         and node is vtable_method, finalized and not reachable, don't do
8701         anything.
8702
8703 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
8704
8705         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
8706         COMPARISON_CLASS_P.
8707         * tree-ssa-pre.c (create_value_expr_from): Use
8708         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
8709         * tree-ssa-propagate.c (stmt_makes_single_load,
8710         stmt_makes_single_store): Use REFERENCE_CLASS_P.
8711         * tree-vect-transform.c (vect_is_simple_cond): Use
8712         COMPARISON_CLASS_P.
8713         * tree-vrp.c (extract_range_from_assert,
8714         build_assert_expr_for, fp_predicate, has_assert_expr): Use
8715         COMPARISON_CLASS_P.
8716
8717         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
8718         of tpa_to_clear to VEC(int,heap).  Update uses of
8719         tpa_to_clear.  Free tpa_to_clear at the end.
8720
8721 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
8722
8723         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
8724         function decl.
8725
8726 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
8727
8728         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
8729         and gcc_unreachable as appropriate.
8730         (num_insns_constant, output_vec_const_move,
8731         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
8732         rs6000_emit_set_const, rs6000_emit_move,
8733         spe_build_register_parallel, function_arg,
8734         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
8735         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
8736         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
8737         rs6000_common_init_builtins, expand_block_clear,
8738         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
8739         extract_ME, rs6000_get_some_local_dynamic_name,
8740         rs6000_output_function_entry, print_operand,
8741         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
8742         output_cbranch, output_e500_flip_gt_bit,
8743         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
8744         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
8745         compute_save_world_info, rs6000_stack_info,
8746         rs6000_emit_load_toc_table, rs6000_frame_related,
8747         spe_synthesize_frame_save, rs6000_emit_epilogue,
8748         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
8749         output_function_profiler, rs6000_trampoline_size,
8750         rs6000_initialize_trampoline, find_addr_reg,
8751         rs6000_machopic_legitimize_pic_address,
8752         rs6000_initial_elimination_offset,
8753         rs6000_dbx_register_number): Likewise.
8754         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
8755         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
8756         *movti_power, *movti_string, call, call_value, sibcall,
8757         sibcall_value): Likewise.
8758         * config/rs6000/spe.md (*movdf_e500_double,
8759         *movv2si_internal): Likewise.
8760         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
8761         from comment.
8762
8763 2005-04-24  Richard Henderson  <rth@redhat.com>
8764
8765         PR target/21101
8766         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
8767         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
8768         Deny modes smaller than 4 bytes.
8769         * config/i386/i386-protos.h: Update.
8770
8771 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
8772
8773         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
8774         Switch h8300-*-rtems* to ELF.
8775
8776 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
8777
8778         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
8779
8780 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
8781
8782         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
8783
8784 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
8785
8786         PR middle-end/21082
8787         * fold-const.c: Fold &a[i]-&a[j] to i-j.
8788
8789 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
8790
8791         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
8792         definitions of ssa names in condition.  Split recusive part to ...
8793         (tree_simplify_using_condition_1): New function.
8794         (expand_simple_operations): New function.
8795
8796 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
8797
8798         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
8799         (find_interesting_uses_cond): Do not use integer_zerop and
8800         integer_nonzerop to check for integer constants.
8801         (set_use_iv_cost): Record the value field.
8802         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
8803         determine_use_iv_cost_outer): Set the value field of the cost pair.
8804         (may_eliminate_iv): Do not return the comparison code.
8805         (iv_elimination_compare): New function.
8806         (determine_use_iv_cost_condition): Set the value field.  Record
8807         noneliminable invariants correctly.
8808         (rewrite_use_compare, rewrite_use_outer): Use the value field.
8809
8810 2005-04-23  DJ Delorie  <dj@redhat.com>
8811
8812         * diagnostic.c (warning): Accept parameter to classify warning option.
8813         (warning0): New, for when a pointer to an error() like function is needed.
8814         * errors.c (warning): Likewise.
8815         * errors.h (warning, warning0): Adjust prototypes.
8816         * toplev.h (warning, warning0): Likewise.
8817
8818         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
8819         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
8820         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
8821         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
8822         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
8823         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
8824         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
8825         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
8826
8827         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
8828         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
8829         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
8830         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
8831         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
8832         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
8833         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
8834         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
8835         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
8836         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
8837         config/rs6000/aix52.h, config/rs6000/darwin.h,
8838         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
8839         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
8840         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
8841         config/stormy16/stormy16.c, config/v850/v850-c.c,
8842         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
8843         callers.
8844
8845 2005-04-23  Richard Henderson  <rth@redhat.com>
8846
8847         PR rtl-opt/21102
8848         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
8849         performing some integral scalar simplifications.
8850
8851 2005-04-23  Richard Henderson  <rth@redhat.com>
8852
8853         PR target/21099
8854         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
8855         simplifying CONST_VECTOR.
8856
8857 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
8858
8859         * tree-ssa-live.c (live_worklist): Take a stack allocated on
8860         heap as an argument.  Update uses of stack.
8861         (calculate_live_on_entry): Allocate stack on heap.
8862
8863         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
8864         partition_link and tpa_nodes on heap.
8865
8866         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
8867         (mark_stmt_necessary, propagate_necessity,
8868         mark_really_necessary_kill_operand_phis): Update uses of
8869         worklist.
8870         (tree_dce_init): Allocate worklist using VEC_alloc.
8871         (tree_dce_done): Free worklist using VEC_free.
8872
8873 2005-04-23  Mike Stump  <mrs@apple.com>
8874
8875         * config/darwin.c (machopic_indirection_name): Don't use
8876         quotes needlessly.
8877         (darwin_emit_unwind_label): Use user_label_prefix instead of
8878         "_".
8879
8880 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
8881
8882         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
8883
8884 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
8885
8886         * config.gcc <cris-*>: Specify .opt files.
8887         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
8888         config/cris/linux.opt: New files.
8889         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
8890         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
8891         (TARGET_ELF): Override to 0.
8892         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
8893         -melinux-stacksize=N.
8894         * config/cris/cris.c: (cris_handle_option): New function.
8895         (TARGET_DEFAULT_TARGET_FLAGS): Override.
8896         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
8897         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
8898         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
8899         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
8900         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
8901         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
8902         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
8903         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
8904         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
8905         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
8906         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
8907         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
8908         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
8909         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
8910         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
8911         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
8912         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
8913         (TARGET_LINUX): Define 0.
8914         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
8915         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
8916         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
8917         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
8918         (TARGET_LINUX): Override to 1.
8919         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
8920
8921 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
8922
8923         * haifa-sched.c (schedule_block): Fix thinko in previous
8924         assertification patch.
8925
8926 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
8927
8928         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
8929         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
8930         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
8931         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
8932         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
8933         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
8934         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
8935         for hpux11.[1-9]*.
8936         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
8937         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
8938         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
8939         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
8940         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
8941         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
8942         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
8943         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
8944         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
8945         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
8946         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
8947         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
8948         (SUBTARGET_OPTIONS): Delete.
8949         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
8950         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
8951         instead of a string.
8952         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
8953         (pa_cpu_string, pa_unix_string): Delete.
8954         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
8955         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
8956         TARGET_HPUX_10_10.
8957         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
8958         (pa_handle_option): New function.
8959         (override_options): Remove handling of -march=, -mfixed-range=,
8960         -mschedule= and -munix=.
8961         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
8962         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
8963         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
8964         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
8965         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
8966         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
8967         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
8968         redefining.
8969         * config/pa/pa.opt: New file.
8970         * config/pa/pa-hpux.opt: New file.
8971         * config/pa/pa-hpux1010.opt: New file.
8972         * config/pa/pa-hpux1111.opt: New file.
8973         * config/pa/pa64-hpux.opt: New file.
8974
8975 2005-04-22  David S. Miller  <davem@davemloft.net>
8976
8977         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
8978         integer when it's mode is VOIDmode not DImode.
8979
8980 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
8981
8982         * config/rs6000/rs6000.md (sync_add<mode>_internal,
8983         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
8984         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
8985         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
8986         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
8987         "bne- $-xxx" rather than local labels.
8988         (sync_lock_release<mode>): Add second operand.
8989         (lwsync): Use .long rather than a more meaningful opcode.
8990         * doc/md.texi (Standard Names): Add description of second
8991         parameter to sync_lock_test_and_set.
8992
8993 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
8994
8995         PR tree-optimization/21088
8996         * fold-const.c (fold_unary, fold_binary, fold_ternary):
8997         Export.
8998         * tree-vrp.c (compare_values): Use fold_binary to compare
8999         pointers.  Use boolean_type_node as the type of a comparison
9000         expression being folded.
9001         * tree.h: Add prototypes for fold_unary, fold_binary,
9002         fold_ternary.
9003
9004         * tree-ssa-dom.c: Fix formatting.
9005
9006 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
9007
9008         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
9009         * lambda-code.c (perfect_nestify): Mark virtual operands in
9010         the moved statement for renaming.
9011         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
9012         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
9013         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
9014         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
9015         * tree-flow.h (struct var_ann_d): Update comments.
9016         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
9017         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
9018         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
9019         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
9020         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
9021         debug_names_replaced_by): Remove declarations.
9022         (delete_update_ssa, get_current_def, set_current_def): Declare.
9023         (rewrite_into_loop_closed_ssa): Add new argument.  Update
9024         all callers.
9025         * tree-into-ssa.c: Include params.h.
9026         (old_virtual_ssa_names): Remove.  Update all users.
9027         (need_to_replace_names_p): Remove.  Update all users.
9028         (struct update_ssa_stats_d): Declare.
9029         (update_ssa_stats): New local.
9030         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
9031         dump_tree_ssa_stats, debug_tree_ssa_stats,
9032         dump_update_ssa, debug_update_ssa,
9033         dump_names_replaced_by, debug_names_replaced_by): Declare.
9034         (get_current_def, set current_def): Make extern.
9035         (is_old_name, is_new_name): Protect against references
9036         past the end of the sets.
9037         (add_new_name_mapping): Assert that OLD and NEW are
9038         different SSA names for the same symbol.
9039         When adding a virtual mapping, update stats for virtual
9040         mapping heuristic.
9041         (insert_phi_nodes_for): If UPDATE_P is true, create the
9042         LHS of the new PHI by duplicating SSA name VAR.
9043         (insert_phi_nodes_1): Remove.  Update all users.
9044         (insert_phi_nodes): Remove second argument.  Update all
9045         users.
9046         (maybe_replace_use, maybe_replace_def): New.
9047         (rewrite_update_stmt): Call them.
9048         (mark_def_interesting): Remove calls to is_gimple_reg.
9049         (prepare_phi_args_for_update): Remove.  Update all users.
9050         (prepare_block_for_update): Only process virtual operands
9051         and GIMPLE registers in normal form.
9052         (prepare_use_sites_for): New.
9053         (prepare_names_to_update): Rename from prepare_def_sites.
9054         Call prepare_use_sites_for.
9055         (dump_update_ssa): Rename from dump_repl_tbl.
9056         Update all users.
9057         Show statistics for virtual mapping heuristic.
9058         (debug_update_ssa): Rename from debug_debug_repl_tbl.
9059         (init_update_ssa): Initialize UPDATE_SSA_STATS.
9060         (delete_update_ssa): Make extern.
9061         (mark_set_for_renaming): If the set is empty, do nothing.
9062         (release_ssa_name_after_update_ssa): Update comment.
9063         (insert_updated_phi_nodes_for): Do not remove existing
9064         PHI nodes for symbols.
9065         (switch_virtuals_to_full_rewrite_p): New.
9066         (switch_virtuals_to_full_rewrite): New.
9067         (update_ssa): Call them.
9068         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
9069         for every statement before updating.
9070         If all the names in NEW_SSA_NAMES have been marked for
9071         removal, do nothing.
9072         Only start at the top of the CFG if there are symbols in
9073         SYMS_TO_RENAME.
9074         (ssa_rewrite_finalize_block): Remove.
9075         (ssa_register_new_def): Remove.
9076         (ssa_rewrite_stmt): Remove.
9077         (ssa_rewrite_phi_arguments): Remove.
9078         (ssa_rewrite_initialize_block): Remove.
9079         (ssa_mark_def_sites): Remove.
9080         (ssa_mark_def_sites_initialize_block): Remove.
9081         (ssa_mark_phi_uses): Remove.
9082         (rewrite_ssa_into_ssa): Remove.
9083         * tree-phinodes.c (find_phi_node_for): Remove.
9084         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9085         Call update_ssa.
9086         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
9087         Remove calls to verify_dominators and
9088         verify_loop_structure.
9089         (tree_unswitch_single_loop): Call update_ssa.
9090         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
9091         returns false.
9092         Call verify_stmts.
9093         (delete_tree_ssa): Assert that need_ssa_update_p returns
9094         false.
9095         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
9096         * tree-vectorizer.c (allocate_new_names, rename_def_op,
9097         free_new_names): Remove.  Update all users.
9098         (rename_use_op): Call get_current_def.
9099         (rename_variables_in_bb): Do not handle any real or
9100         virtual definition.
9101         (slpeel_update_phis_for_duplicate_loop): Call
9102         get_current_def and set_current_def instead of using
9103         SSA_NAME_AUX.
9104         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
9105         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
9106         ssa_names_to_replace and delete_update_ssa.
9107         * doc/invoke.texi: Document --param min-virtual-mappings
9108         and --param virtual-mappings-ratio.
9109
9110 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
9111
9112         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
9113         for newly created PHI nodes.
9114         Call create_new_def_for for every new V_MAY_DEF and
9115         V_MUST_DEF on the copied statement.
9116         (struct ssa_name_map_entry): Remove.
9117         (ssa_name_map_entry_hash): Remove.
9118         (ssa_name_map_entry_eq): Remove.
9119         (allocate_ssa_names): Remove.
9120         (rewrite_to_new_ssa_names_def): Remove.
9121         (rewrite_to_new_ssa_names_use): Remove.
9122         (rewrite_to_new_ssa_names_bb): Remove.
9123         (rewrite_to_new_ssa_names): Remove.
9124         (tree_duplicate_sese_region): Remove variables ver,
9125         definitions, phi, ssa_name_map and bi.
9126         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
9127         Call update_ssa.
9128         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
9129         update_ssa instead of rewrite_ssa_into_ssa.
9130         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
9131         create_new_def_for.
9132         (find_uses_to_rename_use): Add argument 'need_phis'.
9133         (find_uses_to_rename_stmt): Do not scan virtual operands.
9134         (find_uses_to_rename): Only scan PHI nodes for
9135         non-virtual names.
9136         (rewrite_into_loop_closed_ssa): Call update_ssa.
9137         (check_loop_closed_ssa_use): Ignore virtual operands.
9138         (check_loop_closed_ssa_stmt): Likewise.
9139         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
9140         NULL.
9141         (rename_variables, set_phi_def_stmts): Remove.
9142         (tree_duplicate_loop_to_header_edge): Reformat comment.
9143         Remove variables BB, I and DEFINITIONS.
9144         Call need_ssa_update_p.
9145         Call update_ssa.
9146         (lv_adjust_loop_header_phi): Reformat comment.
9147         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
9148         (marked_for_rewrite_p, any_marked_for_rewrite_p,
9149         mark_for_rewrite, unmark_all_for_rewrite,
9150         marked_ssa_names): Remove.  Update all users.
9151         (release_ssa_name): If VAR has been registered for SSA
9152         updating, do nothing.
9153         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
9154         (build_assert_expr_for): Call register_new_name_mapping.
9155         (insert_range_assertions): Update call to update_ssa.
9156         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
9157         marked_for_rewrite_p, any_marked_for_rewrite_p,
9158         marked_ssa_names): Remove.
9159
9160 2005-04-22  Jeff Law  <law@redhat.com>
9161
9162         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
9163         (restore_currdefs_to_original_value): Likewise.
9164         (register_definitions_for_stmt): Likewise.
9165         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
9166         for each variable.  Do not allocate/free block_defs_stack either.
9167         Do not iterate if we just thread jumps.  Only iterate if the
9168         tree_cleanup_cfg does useful work (temporary).
9169         (dom_opt_initialize_block): No longer push a marker on
9170         BLOCK_DEFS_STACK.
9171         (dom_opt_finalize_block): Removal call to restore currdefs.
9172         Relax restrictions for recording edge equivalences.
9173         (record_equivalences_from_phis): No longer need to track
9174         CURRENT_DEF.
9175         (optimize_stmt): Similarly.
9176         (thread_across_edge): Simplify by removing the requirement that
9177         statements in the block we are threading through must be nops.
9178         (initialize_hash_element): Handle GOTO_EXPR.
9179
9180 2005-04-22  David S. Miller  <davem@davemloft.net>
9181
9182         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
9183         CONST_DOUBLE_HIGH.
9184         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
9185         fix check on CONST_DOUBLE mode.  It should be VOIDmode
9186         when it is representing an integer.
9187
9188 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9189
9190         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
9191         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
9192         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
9193         find_char_info_specifier_index,
9194         find_length_info_modifier_index): Likewise.
9195         * c-typeck.c (composite_type, pop_init_level): Likewise.
9196         * combine.c (cant_combine_insn_p, try_combine): Likewise.
9197         * cse.c (cse_insn): Likewise
9198         * dominance.c (calc_dfs_tree): Likewise
9199         dwarf2out.c (loc_descriptor_from_tree_1,
9200         add_abstract_origin_attribute, force_decl_die,
9201         force_type_die): Likewise
9202         emit-rtl.c (operand_subword_force): Likewise
9203         explow.c (hard_function_value): Likewise
9204         expmed.c (store_bit_field, expand_divmod,
9205         emit_store_flag_force): Likewise
9206         expr.c (emit_move_multi_word, store_expr,
9207         expand_expr_real_1): Likewise
9208         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
9209         output_operand): Likewise
9210         flow.c (recompute_reg_usage): Likewise
9211         * function.c (assign_stack_temp_for_type, assign_temp,
9212         handle_epilogue_set): Likewise
9213         * genextract.c (main): Likewise
9214         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
9215         gimplify_modify_expr_rhs, gimplify_expr): Likewise
9216         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
9217         ready_remove, rm_line_notes, rm_other_notes,
9218         schedule_block): Likewise
9219         mips-tfile.c (copy_object, out_of_bounds): Likewise
9220
9221 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
9222
9223         PR target/20813
9224         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
9225         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
9226         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
9227         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
9228         TARGET_XL_COMPAT.
9229         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
9230
9231 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9232
9233         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
9234         (gcc_tree_to_linear_expression): Convert to heap allocated
9235         vectors.
9236         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
9237         lbv_to_gcc_expression, lle_to_gcc_expression,
9238         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
9239         perfect_nestify): Likewise.
9240         lambda.h (gcc_loopnest_to_lambda_loopnest,
9241         lambda_loopnest_to_gcc_loopnest): Likewise.
9242         tree-loop-linear.c (linear_transform_loops): Likewise.
9243
9244 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9245
9246         * config/sparc/predicates.md (arith_double_operand): Use
9247         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
9248         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
9249         (DImode, DFmode constant splitters): Likewise.  Remove code for
9250         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
9251         (logical constant splitters): Use const_int_operand predicate.
9252         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
9253         HOST_BITS_PER_WIDE_INT < 64.
9254
9255 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9256
9257         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
9258         gcc_unreachable as appropriate.
9259         (force_mode, emit_move_sequence, singlemove_string,
9260         output_move_double, output_fp_move_double, find_addr_reg,
9261         output_block_move, output_block_clear, output_and,
9262         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
9263         pa_adjust_cost, pa_issue_rate, print_operand,
9264         output_global_address, output_arg_descriptor, output_cbranch,
9265         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
9266         output_call): Likewise.
9267         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
9268         prefetch, prefetch_cc, prefetch_nocc): Likewise.
9269
9270 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
9271
9272         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
9273         _gcov_pow2_profiler and _gcov_one_value_profiler.
9274         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
9275         (GTFILES): Add $(srcdir)/tree-profile.c.
9276         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
9277         __gcov_one_value_profiler): Declare.
9278         * gimplify.c (force_gimple_operand): Check whether the statements
9279         should be produced in ssa form.
9280         (force_gimple_operand_bsi): New function.
9281         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
9282         __gcov_one_value_profiler): New functions.
9283         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
9284         the profiled value is a power of two or not.
9285         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
9286         * tree-flow.h (in_ssa_p): Declare.
9287         (force_gimple_operand_bsi): Declare.
9288         * tree-into-ssa.c (in_ssa_p): New variable.
9289         (rewrite_into_ssa): Set in_ssa_p.
9290         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
9291         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
9292         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
9293         tree_one_value_profiler_fn): New variables.
9294         (tree_init_edge_profiler): Initialize the profiler function decls.
9295         (tree_gen_edge_profiler): Use global gcov_type_node.
9296         (prepare_instrumented_value): New function.
9297         (tree_gen_interval_profiler, tree_gen_interval_profiler,
9298         tree_gen_one_value_profiler): Call the library functions instead of
9299         creating instrumentation code.
9300         * tree.c (build_fn_decl): New function.
9301         * tree.h (build_fn_decl): Declare.
9302         * value-prof.c (rtl_divmod_values_to_profile,
9303         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
9304         tree_mod_pow2_value_transform, tree_find_values_to_profile):
9305         Do not handle may_be_other and precise values of exponents at pow2
9306         profiler.
9307         (tree_mod_subtract_transform): Reflect that value field of
9308         histogram has changed meaning.
9309         (tree_divmod_values_to_profile): Record the values correctly.
9310         (tree_values_to_profile): Update comment.
9311         * value-prof.h (struct histogram_value_t): Remove pow2 data.
9312
9313 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
9314
9315         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
9316         (decl).
9317
9318 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9319
9320         * config/i386/i386.md (length_immediate): Use gcc_assert or
9321         gcc_unreachable, as appropriate.
9322         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
9323         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
9324         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
9325         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
9326         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
9327         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
9328         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
9329         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
9330         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
9331         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
9332         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
9333         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
9334         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
9335         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
9336         *prefetch_sse_rex): Likewise.
9337         * config/i386/predicates.md (x86_64_immediate_operand,
9338         x86_64_zext_immediate_operand, symbolic_operand,
9339         no_seg_address_operand, aligned_operand,
9340         memory_displacement_operand): Likewise.
9341         * config/i386/sse.md (*mov<mode>_internal,
9342         *movv2df_internal): Likewise.
9343
9344 2005-04-22  Jan Hubicka  <jh@suse.cz>
9345
9346         * Makefile.in (ipa.o, ipa-inline.o): New files.
9347         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
9348         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
9349         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
9350         * cgraphunit.c (cgraph_default_inline_p,
9351         cgraph_decide_inlining_incrementally,  ncalls_inlined,
9352         nfunctions_inlined, initial_insns, overall_insns,
9353         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
9354         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9355         cgraph_mark_inline, cgraph_check_inline_limits,
9356         cgraph_default_inline_p, cgraph_recursive_inlining_p,
9357         update_callee_keys, lookup_recursive_calls,
9358         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
9359         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
9360         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
9361         pass_ipa_inline): Move to ipa-inline.c
9362         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
9363         * ipa.c: New file.
9364         * ipa-inline.c: New file.
9365
9366 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9367
9368         * doc/invoke.texi (SPARC options): Document that -mapp-regs
9369         is turned off by default on Solaris.
9370
9371 2005-04-21  Roger Sayle  <roger@eyesopen.com>
9372
9373         * c-common.h (objc_build_method_signature): Update prototype.
9374         * stub-objc.c (objc_build_method_signature): Update the stub
9375         implementation to accept and ignore additional parameter.
9376         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
9377         the value of ellipsis to objc_build_method_signature instead
9378         of setting TREE_OVERFLOW on the parms TREE_LIST node.
9379
9380 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
9381
9382         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
9383         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
9384         gen_rtx_* not gen_rtx_fmt_*.
9385         (rs6000_emit_vector_select): Likewise.
9386         (rs6000_emit_sync): New.
9387         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
9388         (larx, stcx, cmp): New mode substitutions.
9389         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
9390         UNSPEC_ISYNC): New constants.
9391         (rlwinm): Give name.
9392         (memory_barrier, isync, lwsync): New insns.
9393         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
9394         (sync_lock_release<mode>): New expander.
9395         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
9396         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
9397         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
9398         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
9399         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
9400         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
9401         (sync_add<mode>_internal, sync_addshort_internal,
9402         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
9403         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
9404         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
9405
9406         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
9407         is the memory before, not after, the operation.  Clarify
9408         barrier requirements.
9409
9410 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9411
9412         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
9413         * lambda.h (lambda_vector_min_nz): Likewise.
9414         * langhooks.h (struct lang_hooks_for_types,
9415         struct lang_hooks): Likewise.
9416         * output.h (assemble_integer, this_is_asm_operands): Likewise.
9417         * tree.h: Likewise.
9418         * vec.h: Likewise.
9419         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
9420
9421         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
9422         comments to avoid 'abort'.  Use gcc_assert as necessary.
9423         * opts.c (common_handle_option): Likewise.
9424         * pretty-print.c (pp_base_format_text): Likewise.
9425         * print-rtl.c (print_rtx): Likewise.
9426         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
9427         * regmove.c (try_auto_increment): Likewise.
9428         * reload.c (find_valid_class, find_reloads_toplev,
9429         find_equiv_reg): Likewise.
9430         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
9431         merge_assigned_reloads): Likewise.
9432         * tree-inline.c (inline_forbidden_p_1,
9433         estimate_num_insns_1): Likewise.
9434         * tree-optimize.c (execute_todo): Likewise.
9435         * tree-outof-ssa.c (eliminate_phi): Likewise.
9436         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
9437         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
9438         * tree-ssa-operands.c (parse_ssa_operands,
9439         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
9440         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
9441         * tree-ssanames.c (release_ssa_name): Likewise.
9442         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
9443         walk_tree): Likewise.
9444
9445         * tree-ssa-operands.c (verify_abort): Fold into ..
9446         (verify_imm_links): ... here.
9447
9448 2005-04-21  Richard Henderson  <rth@redhat.com>
9449
9450         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
9451         on non-memory operand for previous inversion.
9452
9453 2005-04-21  Devang Patel  <dpatel@apple.com>
9454
9455         PR optimization/20994
9456         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
9457         x = !(a == b) : p , q;.
9458         (pass_if_conversion): Verify stmts and flow.
9459
9460 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9461
9462         * optabs.c (gen_conditional_trap): Restore #define.
9463
9464         * alias.c (true_dependence): Remove 'abort' from comments. Use
9465         gcc_assert and gcc_unreachable as appropriate.
9466         (canon_true_dependence): Likewise.
9467         * bb-reorder.c (connect_traces): Likewise.
9468         * c-common.c (c_add_case_label): Likewise.
9469         * c-decl.c (finish_function): Likewise.
9470         * caller-save.c (insert_restore, insert_save): Likewise.
9471         * cfg.c (update_bb_profile_for_threading): Likewise.
9472         * cfganal.c (flow_active_insn_p): Likewise.
9473         * cfgexpand.c (add_reg_br_prob_note): Likewise.
9474         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
9475         cfg_layout_merge_blocks): Likewise.
9476         * ifcvt.c (cond_exec_process_insns, merge_if_block,
9477         find_if_block): Likewise.
9478         * integrate.c (allocate_initial_values): Likewise.
9479         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
9480         swap_condition, unsigned_condition, signed_condition,
9481         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
9482         reg_or_subregno): Likewise.
9483         * lambda-code.c (lambda_compute_auxillary_space,
9484         lambda_transform_legal_p): Likewise.
9485         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
9486         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
9487         lhd_incomplete_type_error, lhd_expand_expr,
9488         lhd_types_compatible_p, lhd_tree_size): Likewise.
9489         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
9490         * local-alloc.c (update_equiv_regs): Likewise.
9491         * loop-unroll.c (peel_loop_completely
9492         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
9493         peel_loop_simple, unroll_loop_stupid,
9494         analyze_iv_to_split_insn): Likewise.
9495         * loop.c (gen_prefetch, find_and_verify_loops,
9496         basic_induction_var): Likewise.
9497         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
9498         * value-prof.c (tree_find_values_to_profile): Likewise.
9499         * varasm.c (named_section, default_assemble_integer,
9500         decode_addr_const): Likewise.
9501
9502 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
9503            Fariborz Jahanian <fjahanian@apple.com>
9504
9505         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
9506         portion of argument passed in fpr.
9507         * expr.c (emit_push_insn): Fix computation of 'offset' used to
9508         decide on partial argument save on stack.
9509
9510 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
9511
9512         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
9513         comment typos.
9514
9515 2005-04-21  Jan Hubicka  <jh@suse.cz>
9516
9517         * cgraphunit.c: Include tree-pass.h
9518         (cgraph_decide_recursive_inlining,
9519         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
9520         cgraph_decide_inlining): Dump goes to dump_file.
9521         (cgraph_optimize): Call ipa passes instead of inliner.
9522         (cgraph_gate_inlining, pass_ipa_inline): New.
9523         * tree-optimize.c (all_ipa_passes): New static variable.
9524         (register_one_dump_file): Dead with IPA passes.
9525         (register_dump_files): Likewise.
9526         (init_tree_optimization_passes): Initialize IPA passes.
9527         (execute_todo): Do cgraph dump when asked to, do not dump function body
9528         for IPA pass.
9529         * tree-pass.h (TODO_dump_cgraph): New macro.
9530         (ipa_passes): Declare.
9531         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
9532
9533 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9534
9535         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
9536         gcc_assert instead of abort.
9537         (classify_argument, examine_argument, construct_container,
9538         contains_128bit_aligned_vector_p, ix86_check_movabs,
9539         standard_80387_constant_opcode, standard_80387_constant_rtx,
9540         ix86_initial_elimination_offset, ix86_compute_frame_layout,
9541         pro_epilogue_adjust_stack, ix86_expand_epilogue,
9542         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
9543         legitimize_tls_address, output_pic_addr_const,
9544         i386_output_dwarf_dtprel, put_condition_code, print_reg,
9545         get_some_local_dynamic_name, print_operand, print_operand_address,
9546         output_387_binary_op, emit_i387_cw_initialization,
9547         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
9548         ix86_expand_clear, ix86_expand_binary_operator,
9549         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
9550         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
9551         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
9552         ix86_expand_branch, ix86_expand_setcc,
9553         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
9554         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
9555         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
9556         memory_address_length, ix86_attr_length_immediate_default,
9557         ix86_attr_length_address_default, ix86_agi_dependant,
9558         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
9559         ix86_expand_binop_builtin, ix86_force_to_memory,
9560         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
9561         x86_emit_floatuns): Likewise.
9562         * config/i386/netware.c (gen_regparm_prefix,
9563         i386_nlm_strip_name_encoding): Likewise.
9564         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
9565
9566 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9567
9568         * optabs.c (gen_condiational_trap): Remove #define.
9569         (add_equal_note): Assertify. Remove explicit indirection from
9570         call via function pointer.
9571         (expand_ternary_op, expand_simple_binop, expand_binop,
9572         expand_twoval_unop, expand_twoval_binop,
9573         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
9574         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
9575         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
9576         prepare_float_lib_cmp, emit_conditional_move,
9577         emit_conditional_add, gen_add2_insn, gen_add3_insn,
9578         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
9579         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
9580         vector_compare_rtx, expand_vec_cond_expr): Likewise.
9581
9582 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9583
9584         * vec.h: Update API to separate allocation mechanism from type.
9585         (VEC_safe_grow): New.
9586         * vec.c (calculate_allocation): New.
9587         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
9588         (vec_gc_free, vec_heap_free): Remove.
9589         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
9590         (VEC): Likewise.
9591         (mangle_macro_name): New.
9592         (struct macro_def): New.
9593         (struct macro): Add multiple argument values.
9594         (macro_expans_end): New.
9595         (push_macro_expansion):  Chain on new macro. Process multiple
9596         args, create follow on expansion. Return follow on argument.
9597         (macro_input): Deal with multiple arguments.
9598
9599         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
9600         (struct tree_binfo): Adjust.
9601         * basic-block.h: Define VEC(edge,gc).
9602         (struct edge_def): Adjust.
9603         (struct basic_block_def, struct edge_iterator): Likewise.
9604         (ei_container, ei_start_1, ei_last_1): Likewise.
9605         * cfg.c (connect_src, connect_dest): Likewise.
9606         * cfgrtl.c (force_nonfallthru_and_redirect)
9607         * dbxout.c (dbxout_type)
9608         * dwarf2out.c (gen_member_die)
9609         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
9610         (gcc_tree_to_linear_expression): Adjust.
9611         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
9612         lbv_to_gcc_expression, lle_to_gcc_expression,
9613         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
9614         perfect_nestify): Likewise.
9615         * lambda.h (gcc_loopnest_to_lambda_loopnest,
9616         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
9617         * profile.c (instrument_values): Adjust.
9618         * tree-cfg.c (modified_noreturn_calls): Adjust.
9619         (remove_fallthru_edge): Likewise.
9620         * tree-dump.c (dequeue_and_dump): Adjust.
9621         * tree-flow-inline.h (mark_stmt_modified): Adjust.
9622         * tree-flow.h (modified_noreturn_calls): Adjust.
9623         (tree_on_heap): Remove. (yay!)
9624         (register_new_def): Adjust.
9625         * tree-into-ssa.c: Define VEC(int,heap).
9626         (block_defs_stack): Adjust.
9627         (find_idf, insert_phi_nodes, register_new_def,
9628         rewrite_initialize_block, rewrite_finalize_block,
9629         register_new_update_single, rewrite_update_init_block,
9630         rewrite_update_fini_block, rewrite_blocks,
9631         ssa_rewrite_finalize_block, ssa_register_new_def,
9632         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
9633         * tree-loop-linear.c (linear_transform_loops): Adjust.
9634         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
9635         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
9636         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
9637         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
9638         vrp_variables_stack): Adjust declarations.
9639         (tree_ssa_dominator_optimize): Adjust.
9640         (dom_opt_initialize_block, remove_local_expressions_from_table,
9641         restore_nonzero_vars_to_original_value,
9642         restore_vars_to_original_value,
9643         restore_currdefs_to_original_value, dom_opt_finalize_block,
9644         record_var_is_nonzero, record_cond, record_const_or_copy_1,
9645         optimize_stmt, update_rhs_and_lookup_avail_expr,
9646         lookup_avail_expr, record_range): Likewise.
9647         * tree-ssa-pre.c: Define VEC(basic_block,heap).
9648         (compute_antic_aux): Adjust.
9649         (inserted_exprs, create_expression_by_pieces,
9650         insert_into_preds_of_block, eliminate, mark_operand_necessary,
9651         remove_dead_inserted_code, fini_pre): Likewise.
9652         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
9653         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
9654         ssa_prop_init): Likewise.
9655         * tree-ssa.c: Define VEC(bitmap,heap).
9656         (verify_name_tags): Adjust.
9657         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
9658         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
9659         tree_divmod_values_to_profile, tree_find_values_to_profile,
9660         value_profile_transformations): Likewise.
9661         * value-prof.h: Define VEC(histogram_value,heap).
9662         * varasm.c: Remove alias_pair pointer typedef, define
9663         VEC(alias_pair,gc).
9664         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
9665
9666         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
9667         not a pointer to it.  Create an object vector.
9668         (extern_symbols): Turn into an object vector.
9669         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
9670
9671 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
9672
9673         PR/20742
9674         * Makefile.in (tree-chrec.o): Depend on params.h.
9675         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
9676         default value 20.
9677         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
9678         and fold build with fold_buildN.
9679         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
9680         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
9681         (tree_contains_chrecs): Compute an estimation of the size of the
9682         given expression.
9683         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
9684         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
9685         * tree-scalar-evolution.c (simple_iv): Ditto.
9686         * doc/invoke.texi (scev-max-expr-size): Documented.
9687
9688 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
9689
9690         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
9691         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
9692         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
9693         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
9694         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9695         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
9696         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
9697         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
9698         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
9699         (darwin_fix_and_continue_switch): Delete.
9700         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
9701         (SUBTARGET_SWITCHES): Delete.
9702         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
9703         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
9704         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
9705         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
9706         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
9707         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
9708         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
9709         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
9710         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
9711         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
9712         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
9713         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
9714         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
9715         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
9716         (TARGET_64BIT): Undef before redefining.
9717         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
9718         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
9719         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
9720         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
9721         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
9722         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
9723         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
9724         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
9725         (ix86_debug_arg_string, ix86_debug_addr_string)
9726         (ix86_align_loops_string, ix86_align_jumps_string)
9727         (ix86_align_funcs_string): Delete.
9728         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
9729         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
9730         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
9731         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
9732         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
9733         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
9734         (SUBTARGET_SWITCHES): Delete.
9735         * config/i386/i386.c (ix86_debug_arg_string): Delete.
9736         (ix86_debug_addr_string): Delete.
9737         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
9738         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
9739         (ix86_align_loops_string, ix86_align_jumps_string)
9740         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
9741         (ix86_align_funcs_string): Make static.
9742         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9743         (ix86_handle_option): New function.
9744         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
9745         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
9746         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
9747         of darwin_fix_and_continue_switch.
9748         (darwin_one_byte_bool): Delete.
9749         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
9750         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
9751         to darwin_one_byte_bool.
9752         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
9753         * config/i386/djgpp.opt, config/i386/i386.opt,
9754         * config/i386/sco5.opt: New files.
9755
9756 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
9757
9758         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
9759         fp_zero_operand, fp_register_operand, intreg_operand,
9760         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
9761         call_operand, call_operand_address, tgd_symbolic_operand,
9762         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
9763         symbolic_operand, symbolic_memory_operand, label_ref_operand,
9764         sp64_medium_pic_operand, data_segment_operand,
9765         text_segment_operand, splittable_symbolic_memory_operand,
9766         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
9767         eq_or_neq, normal_comp_operator, noov_compare_op,
9768         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
9769         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
9770         const64_operand, const64_high_operand, arith11_operand,
9771         arith10_operand, arith_double_operand, arith_double_4096_operand,
9772         arith_double_add_operand, arith11_double_operand,
9773         arith10_double_operand, small_int, small_int_or_double,
9774         uns_small_int, uns_arith_operand, clobbered_register,
9775         input_operand, compare_operand): Delete.
9776         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
9777         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
9778         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
9779         (GEN_HIGHINT64, GEN_INT64): Delete.
9780         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
9781         gen_safe_XOR64): Adjust for above deletion.
9782         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
9783         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
9784         (legitimate_constant_p): Use const_zero_operand instead.
9785         (sparc_extra_constraint_check): Likewise.
9786         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
9787         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
9788         (PREDICATE_CODES): Delete.
9789         * config/sparc/sparc.md: Include predicates.md.
9790         (All patterns): Adjust for new predicate names.
9791         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
9792         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
9793         (movdi): Use general_operand predicate.
9794         (movdi_sp64_dbl): Delete.
9795         (movdi_const64_special): Add 'N' constraint.
9796         (movdicc): Use arith10_operand predicate.
9797         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
9798         (movdi_cc_reg_sp64): Use arith10_operand predicate.
9799         (movdi_cc_reg_sp64_trunc): Delete.
9800         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
9801         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
9802         (subdi3_sp32): Delete.
9803         (subdi3_insn_sp32): Change to define_insn_and_split.
9804         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
9805         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
9806         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
9807         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
9808         small_int_operand predicate.
9809         (divdi3, udivdi3): Use arith_operand predicate.
9810         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
9811         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
9812         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
9813         (xordi3_sp64_dbl): Delete.
9814         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
9815         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
9816         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
9817         cmp_ccx_set_not): Use arith_operand predicate.
9818         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
9819         * config/sparc/predicates.md: New file.
9820
9821 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
9822
9823         PR tree-optimization/14846
9824         * fold-const.c (fold_single_bit_test_into_sign_test): New,
9825         split out from ...
9826         (fold_single_bit_test): ... here.
9827         (fold_binary): Call fold_single_bit_test_into_sign_test
9828         instead of fold_single_bit_test.
9829
9830 2005-04-20  James E Wilson  <wilson@specifixinc.com>
9831
9832         PR c++/20805
9833         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
9834         is another declaration.
9835
9836 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
9837
9838         * config/cris/predicates.md: New file.
9839         * config/cris/cris-protos.h (cris_store_multiple_op_p)
9840         (cris_movem_load_rest_p): Declare.
9841         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
9842         (cris_movem_load_rest_p): Ditto.  Globalize.
9843         (cris_bdap_operand, cris_bdap_biap_operand,
9844         cris_orthogonal_operator, cris_commutative_orth_op,
9845         cris_operand_extend_operator,
9846         cris_additive_operand_extend_operator, cris_extend_operator,
9847         cris_plus_or_bound_operator, cris_mem_op,
9848         cris_general_operand_or_symbol,
9849         cris_general_operand_or_gotless_symbol,
9850         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
9851         cris_load_multiple_op): Remove predicate functions.
9852         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
9853         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
9854         * config/cris/cris.h (PREDICATE_CODES): Don't define.
9855         * config/cris/cris.md: Include predicates.md.
9856         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
9857
9858 2005-04-20  Ian Lance Taylor  <ian@airs.com>
9859
9860         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
9861         * c-common.h (STMT_EXPR_STMT): Don't define.
9862         (STMT_EXPR_NO_SCOPE): Don't define.
9863         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
9864         * c-pretty-print.c (pp_c_primary_expression): Likewise.
9865         (pp_c_expression): Likewise.
9866
9867 2005-04-20  Richard Henderson  <rth@redhat.com>
9868
9869         PR target/21100
9870         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
9871
9872 2005-04-20  Jeff Law  <law@redhat.com>
9873
9874         * reload1.c (reload): Ignore equivalences between pseudos and
9875         read only memory.
9876
9877 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
9878
9879         PR c/12913
9880         * c-tree.h (struct c_label_list): Update comment.
9881         (struct c_label_context): Rename to struct c_label_context_se.
9882         (label_context_stack): Rename to label_context_stack_se.
9883         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
9884         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
9885         c_end_vm_scope): New.
9886         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
9887         * c-decl.c (pop_scope): Call c_end_vm_scope.
9888         (pushdecl): Call c_begin_vm_scope for variably modified
9889         declarations.
9890         (define_label): Check for jumping into scope of identifier with
9891         variably modified type.  Push label on stack for those defined at
9892         current context of identifiers with variably modified type.
9893         (start_function): Create stack level for context of identifiers
9894         with variably modified type.
9895         (finish_function): Pop stack level for context of identifiers with
9896         variably modified type.
9897         * c-typeck.c (label_context_stack): Rename to
9898         label_context_stack_se.
9899         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
9900         (c_finish_goto_label): Check for jumping into scope of identifier
9901         with variably modified type.  Push label on stack for those jumped
9902         to from current context of identifiers with variably modified
9903         type.
9904         (struct c_switch): Add blocked_vm.
9905         (c_start_case): Initialize blocked_vm.
9906         (do_case): Check blocked_vm.
9907         (c_finish_case): Add comment.
9908         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
9909         variable label_context_stack.
9910
9911 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
9912
9913         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
9914         conditional_replacement, value_replacement, abs_replacement,
9915         minmax_replacement.
9916         (replace_phi_edge_with_variable): Remove argument BB.
9917         (conditional_replacement, value_replacement,
9918         minmax_replacement, abs_replacement): Remove argument PHI_BB.
9919         Update a call to replace_phi_edge_with_variable.
9920
9921         * tree-ssa-phiopt.c: Fix comments.
9922
9923 2005-04-20  Michael Matz  <matz@suse.de>
9924
9925         PR20973
9926         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
9927         pseudos.
9928
9929 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
9930
9931         * tree-ssa-phiopt.c: Fix comment typos.
9932
9933         PR tree-optimization/21116
9934         * tree-ssa-phiopt.c: Fix a typo.
9935
9936 2005-04-19  Richard Henderson  <rth@redhat.com>
9937
9938         * builtins.c (expand_builtin_sync_operation): Revert last change.
9939         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
9940         not vs new value.
9941         (expand_compare_and_swap_loop): Likewise.
9942         (expand_sync_operation): Remove fallback from NAND to AND; invert
9943         memory operand when expanding from cmpxchg.
9944         (expand_sync_fetch_operation): Likewise.
9945         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
9946         compare-and-swap.
9947
9948         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
9949         when implementing NAND.  Fix double-add for AFTER.
9950         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
9951         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
9952         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
9953         memory value.
9954         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
9955         memory barrier.
9956
9957         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
9958         to return old memory value.
9959         (sync_compare_and_swap_cc<IMODE>): Likewise.
9960
9961         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
9962         return pre-reload.  Don't consider output or anti dependencies.
9963         * config/ia64/sync.md (IMODE): New.
9964         (modesuffix): Add QI and HI.
9965         (memory_barrier): Simplify expansion.
9966         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
9967         (cmpxchg_acq_<IMODE>): Likewise.
9968         (sync_lock_test_and_set<IMODE>): Likewise.
9969         (sync_lock_release<IMODE>): Likewise.
9970
9971 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
9972
9973         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
9974         ~X or ~Y simplify.
9975
9976 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
9977
9978         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
9979
9980 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
9981             Joseph S. Myers  <joseph@codesourcery.com>
9982
9983         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
9984         * c-typeck.c (build_c_cast): Check these options.
9985         * doc/invoke.texi: Document these options.
9986
9987 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
9988
9989         * tree-ssa-phiopt.c: Update a comment about the pass.
9990
9991 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
9992
9993         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
9994         config/mcore/mcore.c: Fix comment typos.
9995
9996 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
9997
9998         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
9999         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
10000
10001 2005-04-19  Paul Brook  <paul@codesourcery.com>
10002
10003         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
10004
10005 2005-04-19  Andrew Haley  <aph@redhat.com>
10006
10007         PR java/21022
10008         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
10009         looking at a field's bitpos.
10010
10011 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10012
10013         * system.h (fopen, fdopen, freopen): Define these to the unlocked
10014         libiberty functions.
10015
10016 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
10017
10018         PR tree-optimization/21096
10019         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
10020
10021 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
10022
10023         PR target/21098
10024         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
10025         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
10026
10027 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
10028
10029         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
10030         refers to the function being dumped.
10031
10032 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
10033
10034         * varasm.c (assemble_start_function): Remove reset of in_section.
10035
10036 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
10037
10038         PR tree-optimization/21085
10039         * fold-const (fold_binary): Don't change X % -C to X % C if C has
10040         overflowed.
10041
10042 2005-04-19  Ben Elliston  <bje@au.ibm.com>
10043
10044         * doc/invoke.texi (Optimize Options): Refer to the correct
10045         optimisation flag -ftree-dominator-opts, not -ftree-dom.
10046
10047 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
10048
10049         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
10050         alloca argument to be big enough.
10051
10052 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
10053
10054         PR middle-end/21049
10055         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
10056         cfun->cfg are NULL.
10057
10058 2005-04-18  Tom Tromey  <tromey@redhat.com>
10059
10060         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
10061         typo.
10062
10063 2005-04-18  Richard Henderson  <rth@redhat.com>
10064
10065         * config/alpha/alpha.c (alpha_split_atomic_op): New.
10066         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
10067         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
10068         * config/alpha/alpha-protos.h: Update.
10069         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
10070         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
10071         (attr type): Add ld_l, st_c, mb.
10072         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
10073         iornotsi3, xorsi_internal, xornotsi3): New.
10074         * config/alpha/ev4.md (ev4_ld): Add ld_l.
10075         (ev4_ist_c, ev4_mb): New.
10076         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
10077         (ev5_ld_l): New.
10078         * config/alpha/ev6.md (ev6_ild): Add ld_l.
10079         (ev6_ist): Add st_c.
10080         (ev6_mb): New.
10081         * config/alpha/sync.md: New file.
10082
10083 2005-04-18  Richard Henderson  <rth@redhat.com>
10084
10085         * builtins.c (expand_builtin_sync_operation): Fold nand to and
10086         for constants.
10087
10088         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
10089
10090 2005-04-18  Devang Patel  <dpatel@apple.com>
10091
10092         * config/rs6000/atlivec.md (mulv4si3): New pattern.
10093
10094 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
10095
10096         PR tree-optimization/20922
10097         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
10098         Fold X + c >= X and fold X - c <= X to true.
10099
10100 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
10101
10102         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
10103         unsigned int.
10104         (emergency_labeled_state_free): Likewise.
10105
10106 2005-04-18  Nick Clifton  <nickc@redhat.com>
10107
10108         * config/h8300/h8300.md (jump): Remove prescan parameter from
10109         calls to final_scan_insn.
10110
10111         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
10112         parameter from calls to final_scan_insn.
10113
10114         * config.gcc (m68hc12): Use the m68hc11.opt file for target
10115         specific options.
10116         (v850e, v850e1): Use the v850.opt file for target specific
10117         options.
10118
10119 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
10120
10121         PR tree-optimization/21001
10122         * tree-optimize.c (init_tree_optimization_passes): Move the
10123         first pass_forwprop immediately before pass_vrp.
10124
10125 2005-04-17  Ian Lance Taylor  <ian@airs.com>
10126
10127         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
10128         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
10129         from enum tree_code op to bool is_sizeof.
10130         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
10131         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
10132         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
10133         case.
10134         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
10135         cases.
10136         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
10137         ALIGNOF_EXPR cases.
10138
10139 2005-04-17  Ian Lance Taylor  <ian@airs.com>
10140
10141         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
10142
10143 2005-04-17  Richard Henderson  <rth@redhat.com>
10144
10145         * config/alpha/alpha.c (va_list_skip_additions): Only define if
10146         TARGET_ABI_OSF.
10147         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
10148         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
10149         of indirection through ssa names while looking for the gpr counter
10150         field.
10151         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
10152         saved va_list_gpr_size and va_list_fpr_size.
10153
10154 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10155
10156         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
10157         both pointers or both integers.
10158
10159         * tree-vrp.c (maybe_add_assert_expr): Don't assert
10160         ASSERT_EXPRs for single-use variable.
10161
10162         * tree-into-ssa.c: Fix a comment typo.
10163
10164 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
10165
10166         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
10167         -mipsN before forcing a default of -mips2.
10168
10169 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10170
10171         * predict.h (IS_TAKEN): Remove.
10172         * rtl.h (NOTE_PREDICTION): Likewise.
10173
10174         * modulo-sched.c (CFG_HOOKS): Remove.
10175
10176         * c-parser.c (N_C_TTYPES): Remove.
10177
10178         * tree-flow-inline.h (get_stmt_operands): Remove.
10179         * lambda-code.c, tree-ssa-loop-unswitch.c,
10180         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
10181         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
10182         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
10183         calls to get_stmt_operands.
10184         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
10185
10186 2005-04-17  Richard Henderson  <rth@redhat.com>
10187
10188         PR target/20375
10189         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
10190         of CUMULATIVE_ARGS past the last named argument.
10191         (alpha_va_start): Expect pretend_args_size only if strictly less than
10192         6 named arguments.
10193
10194 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10195
10196         PR middle-end/21024
10197         * builtins.c (expand_builtin_strcat): Convert the result of
10198         strlen to the right type.
10199         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
10200         avoid creating type mismatches.
10201         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
10202         type mismatches.
10203
10204         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
10205
10206 2005-04-16  Richard Henderson  <rth@redhat.com>
10207
10208         PR target/21051
10209         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
10210         Use the mode of boolean_type_node when the user doesn't provide one.
10211         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
10212
10213 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
10214
10215         PR target/20126
10216         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
10217         (const)).
10218
10219         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
10220         comment.
10221
10222 2005-04-16  Roger Sayle  <roger@eyesopen.com>
10223             Steven Bosscher  <stevenb@suse.de>
10224
10225         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
10226         (fold_unary_to_constant): Likewise.
10227
10228 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
10229
10230         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
10231         PROP_ASM_SCAN.
10232
10233 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
10234
10235         * doc/install.texi (Specific): Avoid using asterisks in @anchor
10236         names related to target triplets.
10237         Remove i?86-*-esix from platform directory.
10238         Remove powerpc-*-eabiaix from platform directory.
10239
10240 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
10241
10242         PR middle-end/20491
10243         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
10244         falling through from SUBREG case to REG.
10245
10246 2005-04-15  Roger Sayle  <roger@eyesopen.com>
10247
10248         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
10249         (fold_binary): Update comment mentioning fold_relational_hi_lo.
10250         (fold_binary_to_constant): Simplify using fold_binary.
10251         (fold_unary_to_constant): Likewise, simplify using fold_unary.
10252
10253 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10254
10255         * gthr-posix.c (pthread_cancel): Define.
10256         (pthread_mutexattr_init): Likewise.
10257         (pthread_mutexattr_settype): Likewise.
10258         (pthread_mutexattr_destroy): Likewise.
10259
10260 2005-04-15  David S. Miller  <davem@davemloft.net>
10261
10262         PR target/20673
10263         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
10264
10265 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10266
10267         PR tree-optimization/21031
10268         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
10269         (forward_propagate_into_cond_1): Call it.  Forward propagate
10270         integer-integer casts into COND_EXPRs.
10271
10272 2005-04-15  Dave Korn  <dave.korn@artimi.com>
10273
10274         * gcc.c (default_compilers): Clarify obscure error message when
10275         reading from standard input.
10276
10277 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10278
10279         * basic-block.h (PROP_EQUAL_NOTES): Remove.
10280         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
10281
10282         * tree-ssa-alias.c (init_alias_info): Remove a call to
10283         get_stmt_operands.
10284
10285 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
10286
10287         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
10288         of non-virtual PHI nodes like we use to.
10289
10290 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
10291
10292         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
10293         (attr_copy_rtx): Do not use it.
10294
10295 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
10296
10297         * doc/tree-ssa.texi: Grammer/abbreviation updates.
10298
10299 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
10300
10301         * tree-vect-transform.c (vectorizable_store): Mark necessary
10302         objects in the vectorized store needing renaming.  Update the
10303         SSA graph for V_MAY_DEF operands in the original store.
10304
10305 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
10306
10307         * tree-ssa-pre.c (compute_avail): It's okay to have
10308         TREE_INVARIANT's here, and value number the resulting expressions.
10309         (create_expression_by_pieces): Make sure operands that were
10310         min_invariant when we started, stay that way.
10311
10312 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
10313
10314         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
10315
10316 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10317
10318         PR tree-optimization/20936.
10319         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
10320
10321 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10322
10323         * doc/invoke.texi: Fix typos.
10324         * doc/md.texi: Likewise.
10325         * doc/rtl.texi: Likewise.
10326         * doc/sourcebuild.texi: Likewise.
10327         * doc/tm.texi: Likewise.
10328
10329 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
10330
10331         PR tree-optimization/21004
10332         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
10333         and floorl in c99 mode only.
10334         * builtins.c (expand_builtin_int_roundingfn): Assert that
10335         fallback_fndecl is not NULL_TREE.
10336
10337 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10338
10339         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
10340         * basic-block.h: Update the prototype for
10341         purge_all_dead_edges.
10342         * cfgexpand.c (tree_expand_cfg): Update a call to
10343         purge_all_dead_edges.
10344         * combine.c (combine_instructions): Likewise.
10345         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
10346         rest_of_handle_cse2, rest_of_handle_gcse,
10347         rest_of_handle_postreload): likewise.
10348
10349 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
10350
10351         PR middle-end/20739
10352         * gimplify.c (gimplify_addr_expr): Compensate for removal of
10353         e.g. cv-qualification conversions.
10354
10355 2005-04-14  Mike Stump  <mrs@apple.com>
10356
10357         * config/darwin-c.c (framework_construct_pathname): We must
10358         find all headers of a framework in the first instance of it
10359         found in the seach path.
10360
10361 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
10362
10363         PR tree-optimization/21021
10364         * tree-vrp.c (compare_values): Work around a bug in the front
10365         end that produces a comparison of mismatched types.
10366
10367 2004-04-14  Richard Henderson  <rth@redhat.com>
10368
10369         * config/ia64/ia64.h (enum fetchop_code): Remove.
10370         (enum ia64_builtins): Move ...
10371         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
10372         members except BSP and FLUSHRS.
10373         (ia64_init_builtins): Remove __sync builtins.
10374         (ia64_expand_builtin): Likewise.
10375         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
10376         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
10377         (ia64_expand_lock_release): Remove.
10378         * config/ia64/ia64.md (mf): Move to sync.md.
10379         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
10380         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
10381         * config/ia64/sync.md: New file.
10382         (memory_barrier): Rename from mf.
10383         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
10384         (cmpxchg_acq_<I48MODE>): Likewise.
10385         (sync_lock_test_and_set<I48MODE>): Likewise.
10386
10387         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
10388         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
10389
10390 2004-04-14  Richard Henderson  <rth@redhat.com>
10391
10392         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
10393         (ix86_compare_emitted): New.
10394         (ix86_expand_compare): Use ix86_compare_emitted if set.
10395         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
10396         and ix86_compare_op0 are set.
10397         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
10398         (TARGET_CMPXCHG, TARGET_XADD): New.
10399         (ix86_compare_emitted): Declare.
10400         * config/i386/i386.md: Include sync.md
10401         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
10402         (UNSPECV_XCHG, UNSPECV_LOCK): New.
10403         * config/i386/sync.md: New file.
10404
10405 2004-04-14  Richard Henderson  <rth@redhat.com>
10406
10407         PR middle-end/14311
10408         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
10409         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
10410         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
10411         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
10412         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
10413         BT_FN_I8_VPTR_I8_I8): New.
10414         * builtins.def (DEF_SYNC_BUILTIN): New.
10415         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
10416         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
10417         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
10418         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
10419         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
10420         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
10421         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
10422         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
10423         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
10424         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
10425         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
10426         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
10427         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
10428         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
10429         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
10430         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
10431         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
10432         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
10433         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
10434         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
10435         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
10436         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
10437         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
10438         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
10439         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
10440         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
10441         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
10442         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
10443         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
10444         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
10445         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
10446         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
10447         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
10448         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
10449         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
10450         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
10451         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
10452         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
10453         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
10454         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
10455         BUILT_IN_SYNCHRONIZE: New.
10456         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
10457         as a function.  Accept __sync_ as a prefix as well.
10458         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
10459         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
10460         expand_builtin_lock_release): New.
10461         (expand_builtin): Call them.
10462         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
10463         neither BOTH_P nor FALLBACK_P are defined.
10464         (builtin_type_for_size): New.
10465         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
10466         (resolve_overloaded_builtin): New.
10467         * c-common.h (resolve_overloaded_builtin): Declare.
10468         (builtin_type_for_size): Declare.
10469         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
10470         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
10471         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
10472         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
10473         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
10474         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
10475         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
10476         sync_compare_and_swap_cc, sync_lock_test_and_set,
10477         sync_lock_release): New.
10478         * optabs.h: Declare them.
10479         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
10480         expand_sync_operation, expand_sync_fetch_operation,
10481         expand_sync_lock_test_and_set): Declare.
10482         * genopinit.c (optabs): Add sync optabs.
10483         * optabs.c (init_optabs): Initialize sync optabs.
10484         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
10485         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
10486         expand_sync_operation, expand_sync_fetch_operation,
10487         expand_sync_lock_test_and_set): New.
10488         * doc/extend.texi (Atomic Builtins): New section
10489         * doc/md.texi (Standard Names): Add sync patterns.
10490
10491 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
10492
10493         * tree-eh.c (lower_try_finally_copy): Generate new code in
10494         response to goto_queue entries as if the queue was sorted by
10495         index, not pointers.
10496         (lower_try_finally_switch): Likewise.
10497
10498 2005-04-14  Richard Henderson  <rth@redhat.com>
10499
10500         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
10501         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
10502         register.
10503         (ix86_expand_fp_movcc): Update to match.
10504         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
10505         * config/i386/i386-protos.h: Update.
10506         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
10507         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
10508
10509 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
10510
10511         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
10512         refer to 4.0.
10513
10514 2005-04-14  Julian Brown  <julian@codesourcery.com>
10515
10516         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
10517         link failures on ppc64 Linux.
10518
10519 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10520
10521         * config.gcc: Set cpu_type for s390.
10522
10523 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
10524
10525         Fix PR tree-optimization/20963
10526         * tree-ssa-pre.c (compute_avail): Remove special case for
10527         TREE_INVARIANT.
10528         (create_expression_by_pieces): Add value numbers for forced out
10529         statements.
10530
10531 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
10532
10533         * config/cris/cris.md: Replace references to (reg:SI 16) with
10534         (reg:SI CRIS_SRP_REGNUM).
10535
10536 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
10537
10538         PR tree-optimization/20657
10539         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
10540         create an appropriate range from it.
10541
10542 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
10543
10544         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
10545         <UNSPEC_FIST_CEIL> case.
10546
10547         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
10548         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
10549         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
10550         to implement lfloor and llfloor built-ins as x87 intrinsic function.
10551         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
10552         (lfloor<mode>2): New expanders.
10553         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
10554         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
10555         to implement lceil and llceil built-ins as x87 intrinsic function.
10556         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
10557         (lceil<mode>2): New expanders.
10558
10559 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
10560
10561         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
10562         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
10563
10564 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
10565
10566         PR target/20927
10567         * config/s390/s390-modes.def: Define TFmode.
10568
10569 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
10570
10571         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
10572         (JUMP_TABLES_IN_TEXT_SECTION): Define.
10573         * config/mips/mips.c (mips16_insn_length): Remove reference to
10574         JUMP_TABLES_IN_TEXT_SECTION.
10575
10576 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
10577
10578         * simplify-rtx.c (simplify_binary_operation_1): Return
10579         scalar or vector of constant 0, depending on the xor's
10580         mode.
10581
10582 2005-04-13  Dale Johannesen  <dalej@apple.com>
10583
10584         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
10585         (objc-act.o):  Ditto.
10586         * objc/objc-act.c (objc_gimplify_expr):  New.
10587         (objc_get_callee_fndecl):  New.
10588         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
10589         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
10590         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
10591
10592 2005-04-13  Devang Patel  <dpatel@apple.com>
10593
10594         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
10595         temp variables.
10596
10597 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
10598
10599         CRIS prologue as RTL.
10600         * config/cris/cris-protos.h (cris_emit_movem_store)
10601         (cris_expand_prologue): Prototype.
10602         * config/cris/cris.c (struct machine_function): New member
10603         stdarg_regs.
10604         (cfa_label_num, cris_target_asm_function_prologue): Remove.
10605         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
10606         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
10607         (cris_load_multiple_op, cris_return_address_on_stack)
10608         (cris_return_address_on_stack_for_return): ISO-Cify.
10609         (cris_store_multiple_op): New predicate function.
10610         (cris_expand_prologue, cris_emit_movem_store): New functions.
10611         (cris_print_operand) <case 'O'>: Handle modifications other than
10612         post-increment.
10613         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
10614         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
10615         (cris_gen_movem_load): Rearrange slightly to make local variable
10616         src a parameter, removing osrc.
10617         (cris_setup_incoming_varargs): Set machine_function member
10618         stdarg_regs to correspond to the number of registers that need to
10619         be saved.
10620         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
10621         CRIS_UNSPEC_GOT.
10622         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
10623         cris_general_operand_or_gotless_symbol accept UNSPEC.
10624         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
10625         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
10626         ("*cris_store_multiple"): New pattern.  Tweak common comment above
10627         this and "*cris_load_multiple".
10628         ("prologue"): New define_expand.
10629
10630         * config/cris/cris.md ("epilogue"): Conditionalize on
10631         TARGET_PROLOGUE_EPILOGUE.
10632
10633 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
10634
10635         PR target/20924
10636         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
10637         fpsr 0 instead of fpsr 1.
10638         (divsf3_internal_thr): Ditto.
10639         (divdf3_internal_lat): Ditto.
10640         (divdf3_internal_thr): Ditto.
10641         (divxf3_internal_lat): Ditto.
10642         (divxf3_internal_thr): Ditto.
10643
10644 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
10645
10646         PR tree-optimization/20913
10647         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
10648
10649         PR tree-optimization/20702
10650         * tree-vrp.c (maybe_add_assert_expr): Recurse into
10651         dominator children that haven't been walked into.
10652
10653 2005-04-13  Julian Brown  <julian@codesourcery.com>
10654
10655         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
10656         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
10657         is true.
10658
10659 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
10660
10661         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
10662         config/i386/sse.md: Fix comment typos.
10663
10664         * genattrtab.c (NULL_ATTR): Remove.
10665         * ifcvt.c (NULL_EDGE): Likewise.
10666
10667         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
10668
10669         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
10670         NOTE_PREDICT): Remove.
10671
10672 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
10673
10674         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
10675         * configure: Regenerate.
10676         * config.in: Likewise.
10677         * system.h: Declare vsnprintf if not already declared.
10678
10679 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
10680
10681         * optc-gen.awk: Handle stand-alone Mask records.
10682         * opth-gen.awk: Likewise.
10683         * doc/options.texi (Option file format): Document them.
10684         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
10685         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
10686         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
10687         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
10688         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
10689         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
10690         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
10691         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
10692         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
10693         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
10694         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
10695         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
10696         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
10697         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
10698         TARGET_LONG_DOUBLE_128): Likewise.
10699         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
10700         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
10701         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
10702         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
10703         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
10704         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
10705         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
10706         * config/sparc/sparc.c (fpu_option_set): New global.
10707         (sparc_handle_option): New function.
10708         (sparc_override_options): Test fpu_option_set.
10709         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
10710         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
10711         * config/sparc/sparc.opt: New file.
10712         * config/sparc/little-endian.opt: Likewise.
10713         * config/sparc/long-double-switch.opt: Likewise.
10714
10715 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
10716
10717         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
10718         (bfin_handle_options): Set it if -mshared-library-id= is seen.
10719         * config/bfin/bfin.opt (mshared-library-id=): Lose
10720         Var(bfin_lib_id_given).
10721
10722 2005-04-13  Matt Thomas  <matt@3am-software.com>
10723
10724         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
10725         defining.
10726
10727 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
10728
10729         * rtl.h (CLEAR_RTX_FLAGS): Remove.
10730
10731         * cgraphunit.c (INSNS_PER_CALL): Remove.
10732
10733         * tree-ssa-forwprop.c (vars,
10734         record_single_argument_cond_exprs,
10735         substitute_single_use_vars): Remove.
10736         (forward_propagate_into_cond_1, forward_propagate_into_cond):
10737         New.
10738         (tree_ssa_forward_propagate_single_use_vars): Call
10739         forward_propagate_into_cond for each COND_EXPR.
10740
10741         * tree-inline.c (INSNS_PER_STMT): Remove.
10742
10743 2005-04-12  Richard Henderson  <rth@redhat.com>
10744
10745         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
10746         (ix86_expand_sse_fp_minmax): ... from ...
10747         (ix86_expand_fp_movcc): ... here.
10748         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
10749         * config/i386/i386-protos.h: Update.
10750         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
10751         (sse_setccsf, sse_setccdf): Allow before reload.
10752         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
10753         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
10754         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
10755         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
10756         (anddf3, nanddf3, iordf3, xordf3): New.
10757
10758 2005-04-12  Jeff Law  <law@redhat.com>
10759
10760         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
10761         (tree-ssa-uncprop.o): Add dependencies.
10762         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
10763         * tree-flow.h (remove_useless_stmts): Remove prototype.
10764         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
10765         remove_useless_stmts.
10766         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
10767         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
10768         * tree-pass.h (pass_uncprop): Declare.
10769         * tree-ssa-uncprop.c: New file.
10770
10771 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
10772
10773         PR target/20670
10774         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
10775
10776 2005-04-12  Caroline Tice  <ctice@apple.com>
10777
10778         Temporary fix for partitioning problems.
10779         * passes.c (rest_of_handle_final): Remove code that
10780         frees unlikely_text_section_name,
10781         * varasm.c (assemble_start_function): Test for partitioning
10782         flag before writing out section labels.
10783         (assemble_end_function): Test for partitioning flag before
10784         writing out section labels.
10785
10786 2005-04-12  Steven Bosscher  <stevenb@suse.de>
10787             Stuart Hastings <stuart@apple.com>
10788             Jan Hubicka  <jh@suse.cz>
10789
10790         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
10791         references to gt-tree-cfg.h.
10792         * basic-block.h (struct basic_block_def): Don't skip rbi
10793         for garbage collection.
10794         (struct reorder_block_def): Make GTY-able.
10795         (struct control_flow_graph): New structure.
10796         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
10797         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
10798         but instead defines to the control_flow_graph for cfun.
10799         (label_to_block_map): New define, points to the label map of
10800         the control_flow_graph for cfun.
10801         (n_edges_for_function, n_basic_blocks_for_function,
10802         last_basic_block_for_function, basic_block_info_for_function,
10803         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
10804         basic_block_info_for_function, label_to_block_map_for_function):
10805         Counterparts for the above, taking a struct function as an extra
10806         argument.
10807         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
10808         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
10809         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
10810         (alloc_rbi_pool, free_rbi_pool): Remove.
10811         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
10812         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
10813         here...
10814         (cfg_layout_finalize) ... and don't free it here.
10815         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
10816         garbage collected.
10817         * flow.c (free_basic_block_vars): Set label_to_block_map and
10818         n_edges to zero too.
10819         * function.h (struct function): Add cfg field.
10820         * function.c (allocate_struct_function): Allocate the cfg.
10821         * tree-cfg.c (label_to_block_map): Remove.
10822         (build_tree_cfg): Don't allocate the rbi pool here...
10823         (delete_tree_cfg_annotations): ...and don't free it here.
10824         Also don't nullify label_to_block_map for cfun.
10825
10826 2005-04-12  Caroline Tice  <ctice@apple.com>
10827
10828         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
10829         Revert my patch from April 9.
10830         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
10831         (reorder_basic_blocks): Revert my patch from April 9.
10832         (insert_section_boundary_note): Revert my patch from April 9.
10833         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
10834         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
10835         (COLD_END_LABEL):  Revert my patch from April 9.
10836         (cold_text_section_label):  Revert my patch from April 9.
10837         (cold_end_label): Revert my patch from April 9.
10838         (dwarf2out_switch_text_section): Revert my patch from April 9.
10839         (output_aranges): Revert my patch from April 9.
10840         (output_ranges):  Revert my patch from April 9.
10841         (output_line_info): Revert my patch from April 9.
10842         (add_location_or_const_value_attribute):  Revert my patch from April 9.
10843         (dwarf2out_var_location): Revert my patch from April 9.
10844         (dwarf2out_init):  Revert my patch from April 9.
10845         (dwarf2out_finish): Revert my patch from April 9.
10846         * function.h (struct function): Revert my patch from April 9.
10847         * opts.c (decode_options): Revert my patch from April 9.
10848         * output.h (unlikely_section_label, hot_section_label,
10849         hot_section_end_label, cold_section_end_label,
10850         unlikely_text_section_name): Revert my patch from April 9.
10851         * passes.c (rest_of_handle_final): Revert my patch from April 9.
10852         * varasm.c (unlikely_section_label, hot_section_label,
10853         hot_section_end_label, cold_section_end_label,
10854         unlikely_text_section_name): Revert my patch from April 9.
10855         (initialize_cold_section_name): Revert my patch from April 9.
10856         (unlikely_text_section): Revert my patch from April 9.
10857         (in_unlikely_text_section): Revert my patch from April 9.
10858         (named_section): Revert my patch from April 9.
10859         (function_section): Revert my patch from April 9.
10860         (current_function_section): Revert my patch from April 9.
10861         (assemble_start_function): Revert my patch from April 9.
10862         (assemble_end_function): Revert my patch from April 9.
10863         (default_section_type_flags_1): Revert my patch from April 9.
10864
10865 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
10866
10867         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
10868         * config/sparc/sparc.md (untyped_call): Save the registers manually.
10869
10870         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
10871
10872 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
10873
10874         PR middle-end/20917
10875         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
10876         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
10877
10878 2004-04-12  Richard Henderson  <rth@redhat.com>
10879
10880         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
10881         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
10882         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
10883         (UNSPEC_*, UNSPECV_*): Renumber.
10884
10885 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
10886
10887         PR mudflap/19266
10888         From Richard Henderson <rth@redhat.com>:
10889         * tree-mudflap.c (mf_build_check_statement_for): Correct block
10890         splitting logic.
10891
10892 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
10893
10894         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
10895
10896 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
10897
10898         * config/bfin/bfin.c (bfin_library_id_string): Remove.
10899         (bfin_library_id): New variable.
10900         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
10901         instead of bfin_library_id_string.
10902         (bfin_handle_option): New function.
10903         (override_options): Remove most code to deal with shared library IDs,
10904         just check they aren't used without -mid-shared-library.
10905         (TARGET_HANDLE_OPTION): Define.
10906         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
10907         * config/bfin/bfin.opt (mshared-library-id=): New.
10908
10909 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
10910
10911         * tree-vect-transform.c: Fix comment typos.
10912
10913 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
10914
10915         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
10916         split critical edges when not possible/profitable.
10917
10918 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
10919
10920         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
10921         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
10922         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
10923         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
10924         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
10925         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
10926         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
10927         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
10928         MASK_NO_BITFIELD.
10929         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
10930         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10931         * config/ns32k/ns32k.opt: New file.
10932
10933 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
10934
10935         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
10936         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
10937         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
10938         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
10939         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
10940         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
10941         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
10942         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
10943         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
10944         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
10945         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
10946         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
10947         (MASK_COLDFIRE): Formatting fixes.
10948         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
10949         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
10950         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
10951         "_current_shared_library_a5_offset_".
10952         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10953         (MASK_ALL_CPU_BITS): New macro.
10954         (m68k_handle_option): New function.
10955         (override_options): Remove handling of m68k_library_id_string.
10956         * config/m68k/m68k.opt: New file.
10957         * config/m68k/ieee.opt: New file.
10958
10959 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
10960
10961         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
10962         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
10963         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
10964         (TARGET_CXX): Adjust accordingly.
10965         * target.h (struct gcc_target): Remove epxort_class_data.  Add
10966         determine_class_data_visibility and class_data_always_comdat.
10967         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
10968         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
10969         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
10970         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
10971         (arm_cxx_determine_class_data_visibility): New.
10972         (arm_cxx_class_data_always_comdat): Likewise.
10973         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
10974         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
10975         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
10976         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
10977         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
10978         Define.
10979
10980 2005-04-11  Devang Patel  <dpatel@apple.com>
10981
10982         * tree-data-ref.c (build_classic_dist_vector,
10983         compute_subscript_distance): Make externally visible.
10984         * tree-data-ref.h (build_classic_dist_vector,
10985         compute_subscript_distance): Same.
10986         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
10987         Check distance vector against vectorization factor.
10988         (vect_analyze_loop): Determine vectorizaion factor before
10989         analyzing data dependences.
10990         * tree-vectorizer.c (loops_num): Make it externally visible and
10991         rename ...
10992         * tree-vectorizer.c (vect_loops_num): ... new name.
10993         * tree-vectorizer.h  (vect_loops_num): New.
10994
10995 2005-04-11  Devang Patel  <dpatel@apple.com>
10996
10997         * tree-vect-analyze.c (vect_analyze_operations): Check
10998         vectorizable codition.
10999         * tree-vect-transform.c (vect_is_simple_cond): New function.
11000         (vectorizable_condition): New function.
11001         (vect_transform_stmt): Handle condition_vec_info_type.
11002         * tree-vectorizer.h (enum stmt_vec_info_type): Add
11003         condition_vec_info_type.
11004         (vectorizable_condition): New.
11005
11006 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
11007
11008         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
11009         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
11010         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
11011
11012         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
11013         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
11014
11015         * dwarf2out.c (output_line_info): Don't try to dereference
11016         a NULL current_function_decl.
11017
11018         * config/t-slibgcc-darwin: Don't put shared libraries in
11019         directories other than $(slibdir).
11020         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
11021         OS uses for it.
11022
11023 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
11024
11025         PR tree-optimization/20933
11026         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
11027         logic to reject aliases between read-only and writable
11028         variables ...
11029         (may_alias_p): ... here.
11030         (get_tmt_for): Do not associate read-only tags to pointers
11031         whose pointed-to type is not read-only.
11032         * tree-ssa.c (verify_ssa): Check that memory stores have at
11033         least one V_MAY_DEF or V_MUST_DEF.
11034
11035 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11036
11037         PR/17092
11038         * configure.ac (gcc_UNLOCKED_FUNCS): New.
11039         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
11040         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
11041         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
11042         _unlocked function.
11043         (fwrite_unlocked): Fix prototype.
11044
11045         * configure, config.in: Regenerate.
11046
11047 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
11048
11049         * tree-ssa-loop-im.c: Include real.h.
11050         (determine_invariantness_stmt): If real division divisor is
11051         invariant and flag_unsafe_math_optimizations enabled, generate
11052         invariant reciprocal for hoisting.
11053         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
11054
11055 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
11056
11057         Fix PR tree-optimization/20926
11058
11059         * tree-ssa-alias.c (add_type_alias): Handle subvars.
11060
11061 2005-04-11  Devang Patel  <dpatel@apple.com>
11062
11063         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
11064         operand ordering.
11065
11066 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
11067
11068         * fold-const.c (fold_binary_op_with_conditional_arg):
11069         use fold_buildN instead of "fold (buildN" in some
11070         non obvious places.
11071         (fold_unary): Likewise.
11072         (fold_binary): Likewise.
11073
11074 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
11075
11076         Fix PR tree-optimization/20612
11077         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
11078         handling
11079         (perfect_nestify): preheaderbb is *not* part of loop of the
11080         old destination.
11081
11082 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
11083
11084         * tree-ssa-alias.c (may_alias_p): If the variable
11085         is a global variable and the pointer is parameter
11086         and -fargument-noalias-global is used, then
11087         the pointer cannot alias the variable.
11088
11089 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
11090
11091         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
11092         * config/sparc/sparc.h: Likewise.
11093         * config/sparc/sparc.md: Likewise.
11094
11095 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
11096
11097         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
11098
11099         * tree-vrp.c: Fix a comment typo.
11100
11101 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
11102
11103         PR tree-optimization/20920
11104         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
11105         SSA_NAME flows through an abnormal edge.
11106         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
11107         through abnormal edges.
11108         (maybe_add_assert_expr): Likewise.
11109
11110 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
11111
11112         * config/s390/s390.h (s390_tune_string, s390_arch_string)
11113         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
11114         (s390_stack_size_string, s390_stack_guard_string, target_flags)
11115         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
11116         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
11117         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
11118         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
11119         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
11120         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
11121         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
11122         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
11123         (TARGET_HANDLE_OPTION): Likewise.
11124         (s390_tune): Initialize to PROCESSOR_max.
11125         (s390_arch_string): Make static.
11126         (s390_tune_string, s390_warn_framesize_string): Delete.
11127         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
11128         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
11129         (s390_handle_arch_option, s390_handle_option): New functions.
11130         (override_options): Remove parsing of option strings.
11131         * config/s390/s390.opt: New file.
11132
11133 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
11134
11135         * tree-complex.c (expand_vector_operations): Call
11136         update_stmt_if_modified.
11137
11138 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
11139
11140         * tree-vect-analyze (vect_determine_vectorization_factor):
11141         Do not use GET_MODE_NUNITS.
11142         * tree-vect-transform.c (vect_get_vec_def_for_operand,
11143         (vectorizable_load, vect_transform_loop): Likewise.
11144
11145 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
11146
11147         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
11148         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
11149         * optabs.h (enum optab_index): Add new OTI_lceil.
11150         (lceil_optab): Define corresponding macro.
11151         * optabs.c (init_optabs): Initialize lceil_optab.
11152         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
11153         and lceildi2 patterns.
11154         * builtins.c (expand_builtin_int_roundingfn): Handle
11155         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
11156         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
11157         BUILT_IN_LLCEIL{,F,L}.
11158         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
11159         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
11160         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
11161         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
11162         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
11163         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
11164         into lceil built-in function and (long long int)ceil{,f,l} into
11165         llceil built-in function.
11166         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
11167         BUILT_IN_LLCEIL.
11168
11169 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11170
11171         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
11172         zero.
11173
11174 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
11175
11176         * config/arm/arm.c: Fix a comment typo.
11177         * doc/tree-ssa.texi: Fix a typo.
11178
11179 2005-04-10  Steven Bosscher  <stevenb@suse.de>
11180
11181         * cselib.c (clear_table): Rename to cselib_clear_table.
11182         * cselib.h (cselib_clear_table): Add prototype.
11183         * gcse.c (gcse_main): Make 'f' argument unused.
11184         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
11185         of each basic block instead.
11186         (compute_sets, compute_hash_table_work): Likewise.
11187         (constprop_register): Change int 'alter_jumps' argument to bool.
11188         (do_local_cprop): Likewise.
11189         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
11190         the insn chain.  Explicitly clear the cselib tables after finishing
11191         one basic block.  Make sure there are no unterminated libcall blocks.
11192         Update compute_sets call.
11193         (cprop): Walk basic blocks instead of the insn chain.
11194         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
11195         Likewise.
11196         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
11197         one_cprop_pass calls.
11198
11199 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
11200
11201         * combine.c (combine_simplify_rtx): Remove a transformation that
11202         relies on an invalid assumption about rtl sign-extension semantics.
11203
11204 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
11205
11206         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
11207         to build_int_cst_wide.
11208
11209 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
11210
11211         PR target/20126
11212         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
11213         set the original address pseudo to the correct value before the
11214         original insn, if possible, and leave the insn alone, otherwise
11215         create a new pseudo, set it and replace it in the insn.
11216         * recog.c (validate_change_maybe_volatile): New.
11217         * recog.h (validate_change_maybe_volatile): Declare.
11218
11219 2005-04-09  Caroline Tice  <ctice@apple.com>
11220
11221         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11222         Remove targetm.have_named_sections test.
11223         (fix_edges_for_rarely_executed_code): Likewise.
11224         (insert_section_boundary_note): Likewise.
11225         (reorder_basic_blocks): Check partitioning flag before calling
11226         verify_hot_cold_block_grouping.
11227         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
11228         the function struct rather than global variables.
11229         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
11230         (COLD_END_LABEL): Likewise
11231         (cold_text_section_label): New static global variable.
11232         (cold_end_label): Likewise.
11233         (dwarf2out_switch_text_section): Get hot/cold section labels from
11234         the function struct rather than global variables.
11235         (output_aranges): Use cold_text_section_label and cold_end_label;
11236         check partitioning flag before putting out delta.
11237         (output_ranges): Remove incorrect code attempting to use
11238         hot/cold labels.
11239         (output_line_info): Get cold section label from function struct.
11240         (add_location_or_const_value_attribute): Likewise.
11241         (get_subprogram_die): Get hot/cold section labels from function struct.
11242         (dwarf2out_var_location): Likewise.
11243         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
11244         write out cold_text_section_label if partition flag is set.
11245         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
11246         * function.h (struct function): Add new fields to point to hot/cold
11247         section labels: hot_section_label, cold_section_label,
11248         hot_section_end_label and cold_section_end_label; also add new field
11249         for cold text section name, unlikely_text_section_name.
11250         * opts.c (decode_options): Turn off partitioning flag if
11251         !targetm.have_named_sections.
11252         * output.h (hot_section_label): Remove.
11253         (hot_section_end_label): Remove.
11254         (cold_section_end_label): Remove.
11255         (unlikely_section_label): Remove.
11256         (unlikely_text_section_name): Remove.
11257         * passes.c (rest_of_handle_final):  Remove code that frees
11258         unlikely_text_section_name.
11259         * varasm.c (unlikely_section_label): Remove.
11260         (hot_section_label): Remove.
11261         (hot_section_end_label): Remove.
11262         (cold_section_end_label): Remove.
11263         (unlikely_text_section_name):  Remove.
11264         (initialize_cold_section_name): Modify to call
11265         targetm.strip_name_encoding; to store cold section name in current
11266         function struct, if it exists; and to only use the decl_section_name
11267         if flag_named_sections is true.
11268         (unlikely_text_section): Modify to get section name out of current
11269         function struct, if there is one; otherwise build it from
11270         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
11271         (in_unlikely_text_section): Likewise.
11272         (named_section): Modify to get/put cold section name in current function
11273         struct, if there is one.
11274         (function_section):  Change 'bool unlikely' to 'int reloc'; check
11275         targetm.have_named_sections before calling named_section.
11276         (current_function_section): Likewise.
11277         (assemble_start_function): Modify to get/put unlikely_text_section_name
11278         in current function struct; modify to get hot/cold section labels
11279         from function struct; initialize labels using
11280         ASM_GENERATE_INTERNAL_LABEL;
11281         test partitioning flag before writing out hot section label.
11282         (assemble_end_function): Test partitioning flag before writing out
11283         hot/cold section labels.
11284         (default_section_type_flags_1):  Modify to use array instead of
11285          char* for unlikely_text_section_name; set flags correctly for
11286          cold text section if there is not a current function decl.
11287
11288 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
11289
11290         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
11291         and TI_VA_LIST_FPR_COUNTER_FIELD.
11292         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
11293         * tree-pass.h (pass_stdarg): Add.
11294         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
11295         * tree-stdarg.c: New file.
11296         * tree-stdarg.h: New file.
11297         * Makefile.in (OBJS-common): Add tree-stdarg.o.
11298         (tree-stdarg.o): Add dependencies.
11299         * function.h (struct function): Add va_list_gpr_size and
11300         va_list_fpr_size fields.
11301         * function.c (allocate_struct_function): Initialize them.
11302         * target.h (struct gcc_target): Add stdarg_optimize_hook.
11303         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
11304         (TARGET_INITIALIZER): Add it.
11305
11306         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
11307         va_list_{g,f}pr_counter_field.
11308         (ix86_setup_incoming_varargs): Don't do anything if reg_save
11309         area will not be used.  Only save registers that tree-stdarg.c
11310         detected they need saving.
11311         (ix86_va_start): Don't set up fields that won't be used.
11312
11313         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
11314         va_list_{g,f}pr_counter_field.
11315         (setup_incoming_varargs): Don't do anything if reg_save
11316         area will not be used.  Only save registers that tree-stdarg.c
11317         detected they need saving.
11318         (rs6000_va_start): Don't set up fields that won't be used.
11319
11320         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
11321         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
11322         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
11323         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
11324
11325 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
11326
11327         PR target/20795
11328         * config/i386/i386.c (construct_container): Pass empty aligned
11329         struct, union or class in memory.
11330
11331 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
11332
11333         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
11334         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
11335         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
11336         config/rs6000/predicates.md: Fix comment typos.
11337
11338         * sched-int.h (haifa_insn_data): Remove blockage and units.
11339         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
11340         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
11341         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
11342
11343 2005-04-09  Jan Hubicka  <jh@suse.cz>
11344             Steven Bosscher  <stevenb@suse.de>
11345
11346         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
11347         * cfgloop.c (get_loop_exit_edges): Likewise.
11348         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
11349         (unloop): Likewise.
11350         * loop-unroll.c (analyze_insns_in_loop): Likewise.
11351         * tree-cfg.c (dump_cfg_status): Likewise.
11352
11353 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
11354
11355         * config/rs6000/predicates.md (altivec_register_operand): Remove
11356         redundant match_code test.
11357         (gpc_reg_operand): Same.
11358         (cc_reg_operand): Same.
11359         (cc_reg_not_cr0_operand): Same.
11360
11361 2005-04-09  Jan Hubicka  <jh@suse.cz>
11362
11363         Forgotten hunk from my last merge patch:
11364         * final.c (output_addr_const): Do not call mark_referenced.
11365
11366 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
11367
11368         * doc/tree-ssa.texi: Add immediate use documentation.
11369
11370 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
11371
11372         * arm.c (FL_WBUF): Define.
11373         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
11374         (arm_is_6_or_7): Delete.
11375         (arm_tune_wbuf): New.
11376         (arm_override_options): Set arm_tune_wbuf.
11377         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
11378         (arm_is_6_or_7): Delete declaration.
11379         (arm_tune_wbuf): New declartion.
11380         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
11381         (model_wbuf): Derive from arm_tune_wbuf.
11382         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
11383         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
11384         (arm740t): Mark CPUs as having a write buffer.
11385
11386 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
11387
11388         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
11389         of 'const_double_operand' in operand 2 constraints.  Update enable
11390         condition.
11391
11392 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
11393
11394         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
11395         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
11396         * optabs.h (enum optab_index): Add new OTI_lfloor.
11397         (lfloor_optab): Define corresponding macro.
11398         * optabs.c (init_optabs): Initialize lfloor_optab.
11399         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
11400         and lfloordi2 patterns.
11401         * builtins.c (expand_builtin_int_roundingfn): New prototype.
11402         (expand_builtin_int_roundingfn): New function.
11403         (fold_builtin_int_roundingfn): New prototype.
11404         (fold_builtin_int_roundingfn): New function, renamed from
11405         fold_builtin_lround.
11406         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
11407         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
11408         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
11409         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
11410         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
11411         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
11412         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
11413         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
11414         into lfloor built-in function and (long long int)floor{,f,l} into
11415         llfloor built-in function.
11416         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
11417         BUILT_IN_LLFLOOR.
11418
11419 2005-04-08  Ian Lance Taylor  <ian@airs.com>
11420
11421         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
11422         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
11423         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
11424         (DO_COND, DO_BODY): Likewise.
11425         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
11426         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
11427         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
11428         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
11429         (build_continue_stmt, build_break_stmt): Don't declare.
11430         (c_do_switch_warnings): Update declaration.
11431         * c-gimplify.c (enum bc_t): Remove.
11432         (struct c_gimplify_ctx, ctxp): Remove.
11433         (push_context, pop_context): Remove static functions.
11434         (c_genericize): Don't call push_context or pop_context.
11435         (begin_bc_block, finish_bc_block): Remove static functions.
11436         (build_bc_goto): Likewise.
11437         (gimplify_c_loop): Likewise.
11438         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
11439         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
11440         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
11441         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
11442         * c-common.c (c_do_switch_warnings): Rename from
11443         c_do_switch_warnings_1.
11444         (c_do_switch_warnings) [old version]: Remove.
11445         (c_do_switch_expr_warnings): Remove.
11446         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
11447         function instead of c_do_switch_expr_warnings.
11448         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
11449         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
11450         * c-pretty-print.c (pp_c_statement): Likewise.
11451         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
11452
11453 2005-04-08  Devang Patel  <dpatel@apple.com>
11454
11455         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
11456         While selecting replacement condition pay attention to loop header.
11457
11458 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
11459
11460         Merge from tree-cleanup-branch: VRP, store CCP, store
11461             copy-prop, incremental SSA updating of FUD chains and
11462             newly exposed symbols.
11463
11464         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
11465         (OBJS-common): Add tree-vrp.o.
11466         (tree-vrp.o): New rule.
11467         * basic-block.h (nearest_common_dominator_for_set): Declare.
11468         * common.opt (ftree-store-ccp): New flag.
11469         (ftree-copy-prop): New flag.
11470         (ftree-vrp): New flag.
11471         (ftree-store-copy-prop): New flag.
11472         * dominance.c (nearest_common_dominator_for_set): New.
11473         * domwalk.c (walk_dominator_tree): Only traverse
11474         statements in blocks marked in walk_data->interesting_blocks.
11475         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
11476         * fold-const.c (fold): Handle ASSERT_EXPR.
11477         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
11478         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
11479         flag_tree_vrp at -O2.
11480         * timevar.def (TV_TREE_VRP): Define.
11481         (TV_TREE_COPY_PROP): Define.
11482         (TV_TREE_STORE_COPY_PROP): Define.
11483         (TV_TREE_SSA_INCREMENTAL): Define.
11484         (TV_TREE_STORE_CCP): Define.
11485         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
11486         to kill_redundant_phi_nodes from comment.
11487         (verify_expr): Handle ASSERT_EXPR.
11488         * tree-dfa.c (mark_new_vars_to_rename): Remove second
11489         argument.  Update all users.
11490         (mark_call_clobbered_vars_to_rename): Remove.  Update all
11491         users.
11492         * tree-flow-inline.h (unmodifiable_var_p): New.
11493         * tree-flow.h (enum value_range_type): Declare.
11494         (struct value_range_def): Declare.
11495         (value_range): Declare.
11496         (remove_all_phi_nodes_for): Remove.  Update all users.
11497         (find_phi_node_for): Declare.
11498         (add_type_alias): Declare.
11499         (count_uses_and_derefs): Declare.
11500         (kill_redundant_phi_nodes): Remove.
11501         (rewrite_into_ssa): Remove.
11502         (rewrite_def_def_chains): Remove.
11503         (update_ssa, register_new_name_mapping, create_new_def_for,
11504         need_ssa_update_p, name_registered_for_update_p,
11505         release_ssa_name_after_update_ssa, dump_repl_tbl,
11506         debug_repl_tbl, dump_names_replaced_by,
11507         debug_names_replaced_by, mark_sym_for_renaming,
11508         mark_set_for_renaming, get_current_def, set_current_def,
11509         get_value_range, dump_value_range, debug_value_range,
11510         dump_all_value_ranges, debug_all_value_ranges,
11511         expr_computes_nonzero, loop_depth_of_name,
11512         unmodifiable_var_p): Declare.
11513         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
11514         ASSERT_EXPR.
11515         * tree-into-ssa.c (block_defs_stack): Update comment.
11516         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
11517         syms_to_rename, names_to_release, repl_tbl,
11518         need_to_initialize_update_ssa_p, need_to_update_vops_p,
11519         need_to_replace_names_p): New locals.
11520         (NAME_SETS_GROWTH_FACTOR): Define.
11521         (struct repl_map_d): Declare.
11522         (struct mark_def_sites_global_data): Add field
11523         interesting_blocks.
11524         (enum rewrite_mode): Declare.
11525         (REGISTER_DEFS_IN_THIS_STMT): Define.
11526         (compute_global_livein): Use last_basic_block instead of
11527         n_basic_blocks.
11528         (set_def_block): Remove last argument.  Update all callers.
11529         (prepare_use_operand_for_rename): Remove.  Update all callers.
11530         (prepare_def_operand_for_rename): Remove.  Update all callers.
11531         (symbol_marked_for_renaming): New.
11532         (is_old_name): New.
11533         (is_new_name): New.
11534         (repl_map_hash): New.
11535         (repl_map_eq): New.
11536         (repl_map_free): New.
11537         (names_replaced_by): New.
11538         (add_to_repl_tbl): New.
11539         (add_new_name_mapping): New.
11540         (mark_def_sites): Assume that all the operands in the
11541         statement are in normal form.
11542         (find_idf): Assert that the block in the stack is valid.
11543         (get_default_def_for): New.
11544         (insert_phi_nodes_for): Add new argument 'update_p'.
11545         Add documentation.
11546         If update_p is true, add a new mapping between the LHS of
11547         each new PHI and the name that it replaces.
11548         (insert_phi_nodes_1): Only call find_idf if needed.
11549         (get_reaching_def): Call get_default_def_for.
11550         (rewrite_operand): Remove.
11551         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
11552         and REWRITE_THIS_STMT are false.
11553         Assume that all the operands in the statement are in
11554         normal form.
11555         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
11556         (rewrite_virtual_phi_arguments): Remove.
11557         (invalidate_name_tags): Remove.
11558         (register_new_update_single, register_new_update_set,
11559         rewrite_update_init_block, replace_use,
11560         rewrite_update_fini_block, rewrite_update_stmt,
11561         rewrite_update_phi_arguments): New.
11562         rewrite_blocks): Remove argument 'fix_virtual_phis'.
11563         Add arguments 'entry', 'what' and 'blocks'.
11564         Initialize the dominator walker according to 'what' and
11565         'blocks'.
11566         Start the dominator walk at 'entry'.
11567         (mark_def_site_blocks): Add argument 'interesting_blocks'.
11568         Use it to configure the dominator walker.
11569         (rewrite_into_ssa): Remove argument 'all'.
11570         Make internal.
11571         (rewrite_all_into_ssa): Remove.
11572         (rewrite_def_def_chains): Remove.
11573         (mark_def_interesting, mark_use_interesting,
11574         prepare_phi_args_for_update, prepare_block_for_update,
11575         prepare_def_site_for, prepare_def_sites,
11576         dump_names_replaced_by, debug_names_replaced_by,
11577         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
11578         delete_update_ssa, create_new_def_for,
11579         register_new_name_mapping, mark_sym_for_renaming,
11580         mark_set_for_renaming, need_ssa_update_p,
11581         name_registered_for_update_p, ssa_names_to_replace,
11582         release_ssa_name_after_update_ssa,
11583         insert_updated_phi_nodes_for, update_ssa): New.
11584         * tree-loop-linear.c (linear_transform_loops): Call
11585         update_ssa instead of rewrite_into_ssa.
11586         * tree-optimize.c (vars_to_rename): Remove.
11587         Update all users.
11588         (init_tree_optimization_passes): Replace
11589         pass_redundant_phi with pass_copy_prop.
11590         Add pass_vrp.
11591         Replace pass_ccp with pass_store_ccp.
11592         Add pass_store_copy_prop after pass_store_ccp.
11593         (execute_todo): If the TODO_ flags don't include updating
11594         the SSA form, assert that it does not need to be updated.
11595         Call update_ssa instead of rewrite_into_ssa and
11596         rewrite_def_def_chains.
11597         If TODO_verify_loops is set, call verify_loop_closed_ssa.
11598         (tree_rest_of_compilation):
11599         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
11600         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
11601         TODO_cleanup_cfg): Renumber.
11602         (TODO_verify_loops, TODO_update_ssa,
11603         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
11604         TODO_update_ssa_only_virtuals): Define.
11605         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
11606         Declare.
11607         * tree-phinodes.c (make_phi_node): Update documentation.
11608         (remove_all_phi_nodes_for): Remove.
11609         (find_phi_node_for): New.
11610         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
11611         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
11612         (interpret_rhs_modify_expr): Likewise.
11613         * tree-sra.c (decide_instantiations): Mark all symbols in
11614         SRA_CANDIDATES for renaming.
11615         (mark_all_v_defs_1): Rename from mark_all_v_defs.
11616         (mark_all_v_defs): New function.  Update all users to call it
11617         with the whole list of scalarized statements, not just the
11618         first one.
11619         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
11620         (compute_flow_insensitive_aliasing): If the tag is
11621         unmodifiable and the variable isn't or vice-versa, don't
11622         make them alias of each other.
11623         (setup_pointers_and_addressables): If the type tag for
11624         VAR is about to change, mark the old one for renaming.
11625         (add_type_alias): New.
11626         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
11627         (ccp_lattice_t): Rename from latticevalue.
11628         (value): Remove.  Update all users.
11629         (const_val): New local variable.
11630         (do_store_ccp): New local variable.
11631         (dump_lattice_value): Handle UNINITIALIZED.
11632         (debug_lattice_value): New.
11633         (get_default_value): Re-write.
11634         (set_lattice_value): Re-write.
11635         (def_to_varying): Remove.  Update all users.
11636         (likely_value): Return VARYING for statements that make
11637         stores when STORE_CCP is false.
11638         Return VARYING for any statement other than MODIFY_EXPR,
11639         COND_EXPR and SWITCH_EXPR.
11640         (ccp_initialize): Re-write.
11641         (replace_uses_in, replace_vuse_in, substitute_and_fold):
11642         Move to tree-ssa-propagate.c.
11643         (ccp_lattice_meet): Handle memory stores when
11644         DO_STORE_CCP is true.
11645         (ccp_visit_phi_node): Likewise.
11646         (ccp_fold): Likewise.
11647         (evaluate_stmt): Likewise.
11648         (visit_assignment): Likewise.
11649         (ccp_visit_stmt): Likewise.
11650         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
11651         into DO_STORE_CCP.
11652         (do_ssa_ccp): New.
11653         (pass_ccp): Use it.
11654         (do_ssa_store_ccp): New.
11655         (gate_store_ccp): New.
11656         (pass_store_ccp): Declare.
11657         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
11658         (may_propagate_copy): Reformat.
11659         Don't abort if ORIG is a virtual and DEST isn't.
11660         If NEW does not have alias information but DEST does,
11661         copy it.
11662         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
11663         copy_prop_kind, which_copy_prop): Declare.
11664         (stmt_may_generate_copy, get_copy_of_val,
11665         get_last_copy_of, set_copy_of_val, dump_copy_of,
11666         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
11667         copy_prop_visit_stmt, copy_prop_visit_phi_node,
11668         init_copy_prop, fini_copy_prop, execute_copy_prop,
11669         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
11670         store_copy_prop): New.
11671         (pass_copy_prop, pass_store_copy_prop): Declare.
11672         * tree-ssa-dom.c (struct opt_stats_d): Add fields
11673         'num_const_prop' and 'num_copy_prop'.
11674         (cprop_operand): Update them.
11675         (dump_dominator_optimization_stats): Dump them.
11676         (tree_ssa_dominator_optimize): Call update_ssa instead of
11677         rewrite_into_ssa.
11678         (loop_depth_of_name): Declare extern.
11679         (simplify_cond_and_lookup_avail_expr): Guard against NULL
11680         values for LOW or HIGH.
11681         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
11682         (record_equivalences_from_stmt): Call expr_computes_nonzero.
11683         (cprop_operand): Only propagate if VAL != OP.
11684         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
11685         statement for renaming.
11686         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
11687         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
11688         add_type_alias if necessary.
11689         Call mark_new_vars_to_rename.
11690         (tree_ssa_iv_optimize): If new symbols need to be renamed,
11691         mark every statement updated, call update_ssa and
11692         rewrite_into_loop_closed_ssa.
11693         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
11694         from LIVEIN if VAR is a virtual.
11695         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
11696         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
11697         (get_call_expr_operands): Reformat statement.
11698         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
11699         symbols.
11700         * tree-ssa-propagate.c (ssa_prop_init): Initialize
11701         SSA_NAME_VALUE for every name.
11702         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
11703         get_value_loaded_by): New.
11704         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
11705         substitute_and_fold): Move from tree-ssa-ccp.c.
11706         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
11707         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
11708         get_value_loaded_by, replace_uses_in, substitute_and_fold):
11709         Declare.
11710         * tree-ssa.c (verify_use): Fix error message.
11711         (propagate_into_addr, replace_immediate_uses, get_eq_name,
11712         check_phi_redundancy, kill_redundant_phi_nodes,
11713         pass_redundant_phi): Remove.  Update all users.
11714         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
11715         add_type_alias, if necessary.
11716         * tree-vectorizer.h (struct _stmt_vect_info): Update
11717         documentation for field 'memtag'.
11718         * tree-vrp.c: New file.
11719         * tree.def (ASSERT_EXPR): Define.
11720         * tree.h (ASSERT_EXPR_VAR): Define.
11721         (ASSERT_EXPR_COND): Define.
11722         (SSA_NAME_VALUE_RANGE): Define.
11723         (struct tree_ssa_name): Add field 'value_range'.
11724         (PHI_REWRITTEN): Remove.
11725         (struct tree_phi_node): Remove field 'rewritten'.
11726         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
11727         -ftree-store-copy-prop): Document.
11728         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
11729         Document usage of update_ssa.
11730
11731 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
11732
11733         PR target/20814
11734         * config/rs6000/predicates.md (altivec_register_operand): Accept
11735         SUBREG.
11736         (and64_operand): Do not limit CONST_INT to mask64_operand.
11737         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
11738         (and_operand): Do not limit CONST_INT to mask_operand.
11739
11740 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
11741
11742         PR rtl-optimization/20466
11743         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
11744         for overlap of the address of each list member.
11745         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
11746
11747 2005-04-08  Mike Stump  <mrs@apple.com>
11748
11749         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
11750
11751         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
11752         instead of 4.
11753
11754 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
11755
11756         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
11757
11758         * function.c (push_function_context_to): Don't set
11759         contains_functions.
11760         * function.h (function): Remove contains_functions.
11761         (current_function_contains_functions): Remove.
11762
11763         * function.h (function): Remove instrument_entry_exit.
11764         (current_function_instrument_entry_exit): Remove.
11765
11766         * function.h (nonlocal_labels): Remove.
11767
11768         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
11769
11770         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
11771         (check_attr_value, write_attr_get, write_expr_attr_cache,
11772         find_attr, make_internal_attr): Don't reference negative_ok or
11773         unsigned_p.
11774         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
11775         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
11776         (ATTR_STATIC): Adjust the value.
11777
11778         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
11779
11780 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
11781
11782         * config/s390/tpf.h (ASM_SPEC): Define.
11783
11784 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
11785
11786         * tree-flow.h: Remove the prototype for
11787         redirect_immediate_uses.
11788         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
11789
11790 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
11791
11792         * arm.c (arm_const_double_by_parts): New function.
11793         * arm-protos.h (arm_const_double_by_parts): Add prototype.
11794         * arm.md (define_split for 64-bit constants): Add another one.
11795
11796 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
11797
11798         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
11799
11800 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11801
11802         * system.h: Revert last change.
11803
11804 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
11805
11806         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
11807         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
11808         (TARGET_SWITCHES): Delete.
11809         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
11810         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
11811         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
11812         * config/xtensa/xtensa.opt: New file.
11813
11814 2005-04-08  Ben Elliston  <bje@au.ibm.com>
11815
11816         * config/fp-bit.c: Include L_mul_tf in #endif comment.
11817         * config/fp-bit.h: Tidy comments.
11818
11819 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11820
11821         * system.h: Poison PARAMS.
11822
11823 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
11824
11825         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
11826         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
11827         (TARGET_SWITCHES): Delete.
11828         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
11829         * config/vax/vax.opt: New file.
11830
11831 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
11832
11833         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
11834
11835 2005-04-07  Ian Lance Taylor  <ian@airs.com>
11836
11837         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
11838         define.
11839         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
11840         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
11841         Likewise.
11842
11843 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
11844
11845         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
11846         all immediate uses in PHI nodes.
11847
11848 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
11849
11850         * arm.c (arm_const_double_inline_cost): Handle any constant by
11851         using gen_lowpart and gen_highpart_mode.
11852         (note_invalid_constants): All constants in an RTX with a constraint
11853         that permits memory are now pushed to the constant pool.
11854         (output_move_double): Delete code to handle reg to reg and
11855         constant to reg moves.
11856         (const_double_needs_minipool, output_mov_immediate): Delete.
11857         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
11858         CONST_INT and CONST_VECTOR.
11859         * arm.md (ANY64): New mode macro.
11860         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
11861         (movdf_soft_insn): Split reg-reg and const-reg moves.
11862         (split patterns for 64-bit constant and register moves): New.
11863         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
11864         (cirrus_movdf_hard_insn): Likewise.
11865         * fpa.md (movdf_fpa): Likewise.
11866         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
11867         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
11868         constraints.
11869         (movv2si_internal_2): Likewise.
11870         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
11871         (movdf_vfp): Likewise.
11872         * arm-protos.h (output_mov_immediate): Delete prototype.
11873
11874 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
11875
11876         PR target/20093
11877         * simplify-rtx.c (simplify_unary_operation_1): Check
11878         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
11879
11880 2005-04-06  James E Wilson  <wilson@specifixinc.com>
11881
11882         PR target/20717
11883         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
11884         ADDR_EXPR.
11885
11886 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
11887
11888         * coverage.h (GCOV_TYPE_NODE): Delete.
11889         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
11890         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
11891         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
11892         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
11893         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
11894
11895 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
11896
11897         PR other/20792
11898         * Makefile.in (gcc.pot): Remove options.c dependency.
11899         * optc-gen.awk: Don't quote help strings with N_().
11900
11901 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
11902
11903         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
11904         the function returns a pointer type.
11905
11906 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
11907
11908         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
11909         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
11910         * doc/invoke.texi: Documnet salias-max-implicit-fields.
11911         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
11912         explicit_uses members.
11913         (get_or_create_used_part_for): Initialize new fields.
11914         (fieldoff_compare): New function.
11915         (create_overlap_variables_for): Count number of fields, use
11916         heuristic to determine whether to create subvars for vars with
11917         only implicit uses.
11918         Sort the field list by offset and avoid creating duplicate SFT's.
11919
11920 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
11921
11922         * c.opt (-F): Remove trailing whitespace from help string.
11923         (-finput-charset): Use a tab to separate the switch name and help
11924         string.
11925         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
11926         (-ftree-vectorizer-verbose): Likewise.
11927
11928 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
11929
11930         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
11931         a PHI argument where a use occurs instead of all PHI arguments.
11932
11933 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
11934
11935         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
11936         scope.
11937
11938 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
11939
11940         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
11941         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
11942         config/bfin/bfin.h: Fix comment typos.
11943
11944 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
11945
11946         * doc/install.texi: Update the URL for Jacks.
11947         * doc/sourcebuild.texi: Likewise.
11948
11949 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
11950
11951         PR target/17245
11952         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
11953         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
11954
11955 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
11956
11957         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
11958
11959 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
11960
11961         * config/v850/v850-protos.h (override_options): Delete.
11962         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
11963         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
11964         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
11965         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
11966         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
11967         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
11968         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
11969         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
11970         (OVERRIDE_OPTIONS): Delete.
11971         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
11972         (small_memory_info): Remove the value field.
11973         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
11974         TARGET_NO_APP_REGS.
11975         * config/v850/v850.c (small_memory): Remove the value field.
11976         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
11977         (override_options): Delete.
11978         (v850_handle_memory_option, v850_handle_option): New functions.
11979         * config/v850/v850.opt: New file.
11980
11981 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
11982
11983         * config.host: Add a section for generic hosts, and a subsection
11984         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
11985         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
11986         * config/host-darwin.h: New.
11987         * config/x-darwin: New.
11988         * config/i386/host-i386-darwin.c: New.
11989         * config/i386/x-darwin: New.
11990         * config/rs6000/host-darwin.c: Include host-darwin.h.
11991         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
11992         (darwin_rs6000_gt_pch_use_address): Likewise.
11993         * config/rs6000/x-darwin: Change name of .o built, update
11994         dependencies for changes to rs6000/host-darwin.c.
11995
11996 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
11997
11998         PR target/17824
11999         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
12000
12001 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
12002
12003         * tree-vect-analyze.c (vect_analyze_loop_form): Call
12004         split_loop_exit_edge instead of loop_split_edge_with.
12005
12006 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
12007
12008         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
12009         UNSPEC_SET_VSCR): New constants, used throughout.
12010         (*andc3_v4sf): New.
12011         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
12012         Replace with...
12013         (altivec_vspltis<VI_char>): ... this pattern, using
12014         a QImode const_int_operand for the immediate.
12015         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
12016         define_expands.
12017
12018 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
12019
12020         PR target/17822
12021         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
12022
12023 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
12024
12025         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
12026
12027 2005-04-06  Ben Elliston  <bje@au.ibm.com>
12028
12029         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
12030         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
12031         macros as living in "this file" and not gcc.h.
12032
12033 2005-04-06  Ben Elliston  <bje@au.ibm.com>
12034
12035         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
12036         -ftree-live_range_split.  Perhaps renamed at some point?
12037
12038 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
12039
12040         PR target/20625
12041         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
12042         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
12043
12044 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
12045
12046         * tree-flow.h (number_of_iterations_cond): Declaration removed.
12047         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
12048         (number_of_iterations_special): New function.
12049         (number_of_iterations_exit): Use number_of_iterations_special.
12050         Use simplify_using_outer_evolutions only at -O3.
12051         (number_of_iterations_cond, tree_simplify_using_condition,
12052         simplify_using_initial_conditions, loop_niter_by_eval,
12053         compare_trees, can_count_iv_in_wider_type_bound,
12054         simplify_using_outer_evolutions): Use fold_build.
12055
12056 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
12057
12058         * doc/install.texi (Configuration): Document --with-java-home.
12059
12060 2005-04-05  Richard Henderson  <rth@redhat.com>
12061
12062         PR target/20342
12063         PR target/20447
12064         * config/i386/i386.c (print_operand): Handle vector zeros.
12065         (ix86_split_to_parts): Handle CONST_VECTOR.
12066         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
12067         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
12068         what modes to tie for MMX and SSE registers.
12069         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
12070         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
12071         to vector modes as well.
12072         * config/i386/predicates.md (const0_operand): Handle VOIDmode
12073         properly as an input mode.
12074
12075 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
12076
12077         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
12078
12079 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
12080
12081         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
12082
12083 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
12084
12085         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
12086         and local functions, set sse_nregs to 8 and float_in_sse.
12087         (function_arg_advance, function_arg): If float_in_sse, pass
12088         SFmode and DFmode arguments in SSE registers.
12089         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
12090
12091         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
12092         of -funit-at-a-time.
12093
12094 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
12095
12096         * config/i386/i386-protos.h (ix86_function_value): Accept two
12097         arguments, like the target macro.
12098         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
12099         * config/i386/i386.c (ix86_function_value): Accept the second
12100         argument of the target macro.
12101         (ix86_function_ok_for_sibcall): Pass a function pointer to
12102         ix86_function_value.
12103         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
12104         call to ix86_value_regno).
12105         (ix86_value_regno): Add support for returning floating point values
12106         in SSE registers.
12107
12108 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
12109
12110         PR tree-optimization/20076
12111         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
12112         that call __builtin_return or __builtin_apply_args.
12113
12114 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
12115
12116         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
12117         Use immediate use iterator.
12118         (stmt_is_bumper_for_loop): Use immediate use iterator.
12119         * predict.c (strip_builtin_expect): Use update_stmt.
12120         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
12121         on all elements of a STATEMENT_LIST.
12122         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
12123         (bsi_remove): Remove imm_use links and mark the stmt as modified.
12124         (bsi_replace): Mark stmt as modified and the update it.
12125         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
12126         (expand_complex_libcal): Call update_stmt.
12127         (expand_complex_comparison): Call mark_stmt_modified.
12128         (expand_complex_operations_1): Call update_stmt_if_modified.
12129         (expand_vector_operations_1): Call mark_stmt_modified.
12130         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
12131         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
12132         add_immediate_use, redirect_immediate_use,
12133         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
12134         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
12135         (mark_new_vars_to_rename): Call update_stmt.
12136         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
12137         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
12138         Ignore PHI nodes.
12139         (unmodify_stmt): Delete.
12140         (update_stmt): New.  Force an update of a stmt.
12141         (update_stmt_if_modified): update a stmt if it is out of date.
12142         (get_stmt_operands): Verify stmt is NOT modified.
12143         (stmt_modified_p): Update comment.
12144         (delink_imm_use): Remove a use node from its immuse list.
12145         (link_imm_use_to_list): Link a use node to a specific list.
12146         (link_imm_use): Link a node to the correct list.
12147         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
12148         it in the correct list, if appropriate.
12149         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
12150         (relink_imm_use): Link a use node in place of another node in a list.
12151         (relink_imm_use_stmt): LInk a node in place of another node, and set
12152         the stmt pointer.
12153         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
12154         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
12155         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
12156         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
12157         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
12158         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
12159         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
12160         (has_zero_uses): New.  Return true if there are no uses of a var.
12161         (has_single_use): New.  Return true if there is only a single use of a
12162         variable.
12163         (single_imm_use): New.  Return the simgle immediate use.
12164         (num_imm_uses): New.  Return the number of immediate uses.
12165         (get_v_must_def_ops): Use is now a pointer.
12166         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
12167         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
12168         the use node.
12169         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
12170         (delink_stmt_imm_use): Delink all immuses from a stmt.
12171         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
12172         * tree-flow.h (struct dataflow_d): Delete.
12173         (immediate_use_iterator_d): New.  Immediate use iterator struct.
12174         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
12175         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
12176         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
12177         iteration.
12178         (struct stmt_ann_d): Remove dataflow_t from struct.
12179         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
12180         (if_convertible_phi_p): Use FAST immuse iterator.
12181         (if_convertible_loop_p): Don't call compute_immediate_uses.
12182         (replace_phi_with_cond_modify_expr): Call update_stmt.
12183         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
12184         update_stmt_if_modified.
12185         (rewrite_all_into_ssa): Initialize ssa operands.
12186         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
12187         compute_immediate_uses.
12188         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
12189         ssa_property is available.
12190         (execute_one_pass):  Change parameters passed to execute_todo.
12191         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
12192         (remove_ssa_form): Call fini_ssa_operands.
12193         (insert_backedge_copies): Delete call to modify_stmt.
12194         * tree-phinodes.c (make_phi_node): Initialize use nodes.
12195         (release_phi_node): Delink any use nodes before releasing.
12196         (resize_phi_node): Relink any use nodes.
12197         (remove_phi_arg_num): Delink the use node.
12198         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
12199         (remove_all_phi_nodes_for): Release phi node first.
12200         * tree-pretty-print.c (dump_generic_node): Print stmt address.
12201         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
12202         (scalarize_use, scalarize_copy): Call update_stmt.
12203         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
12204         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
12205         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
12206         (ccp_initialize): Remove call to compute_immediate_uses.
12207         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
12208         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
12209         stmts.
12210         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
12211         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
12212         (eliminate_redundant_computations): Call mark_stmt_modified.
12213         (cprop_operand): Call mark_stmt_modified.
12214         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
12215         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
12216         (dse_optimize_stmt): Use new immuse interface.
12217         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
12218         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
12219         (substitute_single_use_vars): Use new immuse interface.
12220         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
12221         and compute_immediate_uses.
12222         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
12223         interface.
12224         (rewrite_mem_refs): Call update_stmt.
12225         (determine_lsm): Remove call to compute_imm_uses and free_df.
12226         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
12227         (try_unroll_loop_completely): Call update_stmt.
12228         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
12229         (rewrite_use_compare): Call update_stmt.
12230         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
12231         (rewrite_use) : Call update_stmt.
12232         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
12233         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
12234         update_stmt.
12235         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
12236         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
12237         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
12238         use nodes.
12239         (initialize_vuse_operand): New.  Initialize a vuse operand.
12240         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
12241         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
12242         (finalize_ssa_defs): Use stmt parameter.
12243         (correct_use_link): Ensure a use node is in the correct list, and has
12244         the correct stmt pointer.
12245         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
12246         finalize_ssa_v_must_defs): Also initialize use nodes.
12247         (finalize_ssa_stmt_operands): Pass extra stmt operands.
12248         (build_ssa_operands): Seperate parsing from final operand construction.
12249         (parse_ssa_operands): New.  Parse entry point for operand building.
12250         (swap_tree_operands): New.  Swap 2 tree operands.
12251         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
12252         operands.
12253         (get_expr_operands): Call swap_tree_operands when needed.
12254         (copy_virtual_operands): Use initialize routines for virtual use ops.
12255         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
12256         (verify_abort): New.  Issue imm_use error.
12257         (verify_imm_links): New Verify imm_use links for a var.
12258         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
12259         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
12260         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
12261         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
12262         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
12263         (NULL_USE_OPERAND_P) Define.
12264         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
12265         use node.
12266         (struct vuse_operand_type): New struct.
12267         (SET_USE): Call set_ssa_use_from_ptr.
12268         (USE_STMT): Define.
12269         (PHI_ARG_INDEX_FROM_USE): Define.
12270         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
12271         argument via SET_USE, not PHI_ARG_DEF_TREE.
12272         * tree-ssa-pre.c (eliminate): Call update_stmt.
12273         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
12274         call free_df.
12275         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
12276         (nearest_common_dominator_of_uses): Use imm_use iterator.
12277         (statement_sink_location): Use imm_use iterator and interface.
12278         (execute_sink_code): Don't call compute_immediate_uses or free-df.
12279         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
12280         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
12281         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
12282         (verify_ssa): Ensure no stmt is marked modify after optimization pass
12283         if new parameter is true.
12284         (init_tree_ssa): Don't initialize operand cache here.
12285         (delete_tree_ssa): Don't destroy operand cache here.
12286         (propagate_into_addr): Pass in a use pointer, return true if anything
12287         was changed.
12288         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
12289         (check_phi_redundancy): Use imm_use iterator.
12290         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
12291         free_df.
12292         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
12293         (release_ssa_name): Delink node and all elements in its imm_use list.
12294         * tree-tailcall.c (adjust_return_value): Call update_stmt.
12295         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
12296         * tree-vectorizer.c (need_imm_uses_for): Delete.
12297         (vectorize_loops): Dont call compute_immediate_uses or free_df.
12298         * tree.h (struct ssa_imm_use_d): Define.
12299         (SSA_NAME_IMM_USE_NODE): Define.
12300         (struct tree_ssa_name): Add imm_use node.
12301         (PHI_DF): Delete.
12302         (PHI_ARG_IMM_USE_NODE): Define.
12303         (struct phi_arg_d): Add imm_use node.
12304         (struct tree_phi_node): Remove struct dataflow_d element.
12305         (TDF_STMTADDR): Define.
12306
12307 2005-04-05  Dale Johannesen  <dalej@apple.com>
12308
12309         * doc/invoke.texi (Optimization Options):  Remove
12310         duplicate -fcse-follow-jumps.  Add -fweb.
12311         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
12312         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
12313
12314 2005-04-05  Per Bothner  <per@bothner.com>
12315
12316         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
12317         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
12318         (warn_uninit): Get EXPR_LOCUS from context now instead.
12319         This fixes a USE_MAPPED_LOCATION testsuite failure.
12320
12321         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
12322
12323 2005-04-05  Per Bothner  <per@bothner.com>
12324
12325         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
12326         of the artification 'return 0' in main() to BUILTINS_LOCATION.
12327         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
12328         before warning.
12329
12330 2004-04-05  Devang Patel  <dpatel@apple.com>
12331
12332         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
12333         (lhsr<mode>3): ... new name.
12334         (altivec_vsra<VI_char>): Rename to ..
12335         (ashr<mode>3): ... new name.
12336         * config/rs6000/rs6000.c (builtin_description): Rename shift
12337         operations.
12338
12339 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
12340
12341         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
12342         gen_lowpart_for_combine.
12343         * cse.c (gen_lowpart_if_possible): Move...
12344         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
12345         gen_lowpart_SUBREG.
12346         (gen_lowpart_no_emit_general): Use it.
12347
12348 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
12349
12350         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
12351         overriding.
12352
12353 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
12354
12355         * system.h: Fix typo.
12356
12357 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
12358
12359         * config/bfin/bfin-modes.def: New file.
12360         * config/bfin/bfin-protos.h: New file.
12361         * config/bfin/bfin.c: New file.
12362         * config/bfin/bfin.h: New file.
12363         * config/bfin/bfin.md: New file.
12364         * config/bfin/bfin.opt: New file.
12365         * config/bfin/crti.s: New file.
12366         * config/bfin/crtn.s: New file.
12367         * config/bfin/elf.h: New file.
12368         * config/bfin/lib1funcs.asm: New file.
12369         * config/bfin/predicates.md: New file.
12370         * config/bfin/t-bfin: New file.
12371         * config/bfin/t-bfin-elf: New file.
12372         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
12373         Document new attributes.
12374         (interrupt, interrupt_handler, saveall): Update documentation for
12375         these attributes.
12376         * doc/install.texi (Specific): Add entry for the Blackfin.
12377         * doc/invoke.texi (Blackfin Options): New section.
12378         * doc/md.texi (Blackfin family): New section to document constraints.
12379         * config.gcc: Add bfin*-* and bfin*-elf configurations.
12380
12381 2005-04-05  Olivier Hainque  <hainque@adacore.com>
12382
12383         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
12384         match what the system unwinder expects.
12385         * config/mips/mips.c (mips_frame_set): If we're saving the return
12386         address register and the dwarf return address column number differs
12387         from the hard register number, adjust the note reg to refer to the
12388         former.
12389
12390 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
12391
12392         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
12393         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
12394         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
12395         (processor_type): New enum.
12396         (mn10300_processor): New variable.
12397         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
12398         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
12399         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
12400         (PROCESSOR_DEFAULT): New macro.
12401         * config/mn10300/mn10300.c (mn10300_processor): New variable.
12402         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12403         (mn10300_handle_option, mn10300_override_options): New functions.
12404         * config/mn10300/mn10300.opt: New file.
12405
12406 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
12407             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
12408
12409         PR tree-optimization/19903
12410         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
12411         that don't fit in their type after conversion.
12412
12413 2005-04-05  Uros Bizjak <uros@kss-loka.si>
12414
12415         PR target/20421
12416         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
12417         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
12418         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
12419         flag here. Implement using define_insn_and_split.
12420         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
12421         (frndintxf2_mask_pm_i387): New insn patterns.
12422         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
12423         Do not set ix86_optimize_mode_switching flag.
12424         (ceilsf2, ceildf2, ceilxf2): Same.
12425         (btruncsf2, btruncdf2, btruncxf2): Same.
12426         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
12427
12428 2005-04-05  Ian Lance Taylor  <ian@airs.com>
12429
12430         PR debug/9963
12431         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
12432         i386_pe_record_external_function.
12433         (i386_pe_record_external_function): Update declaration.
12434         * config/i386/winnt.c (struct extern_list): Add decl field.
12435         (i386_pe_record_external_function): Add decl parameter.
12436         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
12437         identifier.
12438         * config/i386/i386-protos.h (i386_pe_record_external_function):
12439         Update declaration.
12440
12441 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
12442
12443         * config/m68k/m68k-protos.h: Add a prototype for
12444         valid_dbcc_comparison_p_2.
12445         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
12446         extend_operator, const_uint32_operand, const_sint32_operand,
12447         general_src_operand, nonimmediate_src_operand,
12448         memory_src_operand, post_inc_operand, pre_dec_operand,
12449         pcrel_address): Move to predicates to predicates.md.
12450         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
12451         * config/m68k/m68k.md: Include predicates.md.
12452         * config/m68k/predicates.md: New.
12453
12454 2005-04-04  Roger Sayle  <roger@eyesopen.com>
12455
12456         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
12457
12458         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
12459
12460 2005-04-04  Ian Lance Taylor  <ian@airs.com>
12461
12462         * c-typeck.c (struct c_switch): Rename switch_stmt field to
12463         switch_expr.
12464         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
12465         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
12466         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
12467         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
12468         * c-common.c (c_do_switch_warnings_1): New static function broken
12469         out of c_do_switch_warnings.
12470         (c_do_switch_warnings): Call c_do_switch_warnings_1.
12471         (c_do_switch_expr_warnings): New function.
12472         * c-common.h (c_do_switch_expr_warnings): Declare.
12473
12474 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
12475             Daniel Jacobowitz  <dan@codesourcery.com>
12476
12477         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
12478         trapping divide.
12479         * rtlanal.c (may_trap_p): Same.
12480
12481 2005-04-04  Dale Johannesen  <dalej@apple.com>
12482
12483         * ChangeLog:  remove reference to ChangeLog.12.
12484
12485 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
12486
12487         CRIS epilogue as RTL.
12488         * config/cris/cris.md: Change all 0 in unspec 0 to
12489         CRIS_UNSPEC_PLT.
12490         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
12491         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
12492         patterns.
12493         ("return"): Change to define_expand.  Call cris_expand_return for
12494         actual expansion.
12495         ("*return_expanded"): New pattern.
12496         ("epilogue"): New define_expand.
12497         * config/cris/cris.h (PREDICATE_CODES): Add
12498         cris_load_multiple_op.
12499         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
12500         type.
12501         (enum cris_retinsn_type): New.
12502         (struct machine_function): New member return_type.
12503         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
12504         (cris_target_asm_function_epilogue): Remove, moving RTLified
12505         contents to...
12506         (cris_expand_epilogue): New function.
12507         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
12508         (cris_gen_movem_load, cris_load_multiple_op)
12509         (cris_return_address_on_stack_for_return, cris_expand_return): New
12510         functions.
12511         (cris_target_asm_function_prologue)
12512         (cris_initial_frame_pointer_offset): Call
12513         cris_reg_saved_in_regsave_area instead of complicated expression.
12514         Call cris_return_address_on_stack instead of an expression.
12515         (cris_print_operand) <case 'o', case 'O'>: New cases.
12516         (cris_return_address_on_stack): Change return-type to bool.
12517         (cris_simple_epilogue): Ditto.  Return false if registers are
12518         saved.
12519         * config/cris/cris-protos.h (cris_simple_epilogue)
12520         (cris_return_address_on_stack): Adjust prototype return type.
12521         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
12522         (cris_return_address_on_stack_for_return): New prototypes.
12523
12524 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
12525
12526         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
12527         gpr_or_int12_operand.
12528
12529         * config/frv/frv-protos.h: Add a prototype to
12530         frv_legitimate_memory_operand and frv_const_unspec_p.
12531         (frv_unspec): Move from frv.c.
12532         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
12533         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
12534         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
12535         gpr_or_fpr_operand, gpr_or_int12_operand,
12536         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
12537         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
12538         int6_operand, int5_operand, uint5_operand, uint4_operand,
12539         uint1_operand, int_2word_operand, uint16_operand,
12540         upper_int16_operand, integer_register_operand,
12541         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
12542         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
12543         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
12544         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
12545         move_destination_operand, movcc_fp_destination_operand,
12546         frv_function_symbol_referenced_p, move_source_operand,
12547         condexec_dest_operand, condexec_source_operand,
12548         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
12549         const_unspec_operand, gpr_or_memory_operand,
12550         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
12551         icc_operand, fcc_operand, cc_operand, icr_operand,
12552         fcr_operand, cr_operand, call_operand, sibcall_operand,
12553         symbolic_operand, relational_operator,
12554         integer_relational_operator, float_relational_operator,
12555         ccr_eqne_operator, minmax_operator,
12556         condexec_si_binary_operator, condexec_si_media_operator,
12557         condexec_si_divide_operator, condexec_si_unary_operator,
12558         condexec_sf_conv_operator, condexec_sf_add_operator,
12559         condexec_memory_operand, intop_compare_operator, acc_operand,
12560         even_acc_operand, quad_acc_operand, accg_operand: Move to
12561         predicates.md.
12562         * config/frv/frv.h (PREDICATE_CODES): Remove.
12563         * config/frv/frv.md: Include predicates.md.
12564         * config/frv/predicates.md: New.
12565
12566 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
12567
12568         PR target/19537
12569         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
12570         * tree-ssa-loop-ivopts.c: Include langhooks.h.
12571         (add_standard_iv_candidates_for_size): New function, extracting code
12572         from add_standard_iv_candidates and parameterizing it by type size.
12573         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
12574
12575 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
12576
12577         * system.h (GCOV_SIZE_TYPE): Unposion.
12578         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
12579         (GCOV_TYPE_SIZE): ...this new macro.
12580         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
12581         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
12582         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
12583         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
12584         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
12585         instead of unsigned_intSI_type_node.
12586         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
12587         (rtl_gen_one_value_profiler_no_edge_manipulation)
12588         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
12589         * value-prof.c: Include coverage.h.
12590
12591 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
12592             Diego Novillo <dnovillo@redhat.com>
12593
12594         Fix PR tree-optimization/20703
12595         Fix PR tree-optimization/20725
12596
12597         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
12598         (create_expression_by_pieces): Ditto.
12599         (valid_in_set): Ditto. Also handle tcc_declaration.
12600         (find_or_generate_expression): Handle comparison class.
12601         (insert_into_preds_of_block): Ditto.
12602         (insert_aux): Ditto.
12603         (create_value_expr_from): Handle comparison class, recursively
12604         handle reference nodes.
12605         (compute_avail): Handle comparison classes, rewrite a little cleaner.
12606         (execute_pre): Fix spacing.
12607         (do_fre): Renamed to execute_fre.
12608
12609 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12610
12611         * doc/invoke.texi (SPARC options): Document that
12612         -mlittle-endian is not supported on Linux either.
12613
12614 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12615
12616         PR target/4198
12617         PR target/12027
12618         * config.gcc (Obsolete configurations): Remove
12619         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
12620         (sparclite-*-coff*): Delete.
12621         (sparclite-*-elf*): Likewise.
12622         (sparc86x-*-elf*): Likewise.
12623         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
12624         * config/sparc/lite.h: Delete.
12625         * config/sparc/litecoff.h: Likewise.
12626         * config/sparc/liteelf.h: Likewise.
12627         * config/sparc/sp86x-elf.h: Likewise.
12628         * config/sparc/t-sparclite: Likewise.
12629         * config/sparc/t-sp86x: Likewise.
12630
12631 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
12632
12633         * config/s390/s390-protos.h: (s390_comparison,
12634         s390_alc_comparison, s390_slb_comparison, const0_operand,
12635         consttable_operand, larl_operand, s_operand,
12636         shift_count_operand, bras_sym_operand, load_multiple_operation,
12637         store_multiple_operation, s390_plus_operand): Remove prototypes.
12638         (s390_legitimate_address_without_index_p): New prototype.
12639         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
12640         to s390.h.
12641         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
12642         const0_operand, consttable_operand, larl_operand, s_operand,
12643         shift_count_operand, bras_sym_operand, load_multiple_operation,
12644         store_multiple_operation, s390_plus_operand): Move to
12645         predicates.md.
12646         (check_mode): Remove.
12647         (s390_branch_condition_mask): Remove 'static'. Move prototype to
12648         s390-protos.h.
12649         (s390_legitimate_address_without_index_p): New.
12650         * config/s390/s390.h (PREDICATE_CODES): Remove.
12651         * config/s390/s390.md: Include predicates.md.
12652         * config/s390/predicates.md: New.
12653
12654 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12655
12656         PR target/20446
12657         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
12658         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
12659         (NEED_INDICATE_EXEC_STACK): Define to 1.
12660         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
12661         (NEED_INDICATE_EXEC_STACK): Define to 1.
12662         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
12663         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
12664         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
12665         (pic_helper_emitted_p): New global.
12666         (emit_pic_helper): New function extracted from...
12667         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
12668         Do not call emit_pic_helper if delay_pic_helper is true.
12669         (sparc_expand_prologue): Pass 'false' to load_pic_register.
12670         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
12671         (sparc_file_end): New function.
12672
12673 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
12674
12675         * config/mcore/mcore-protos.h: Remove the prototypes for
12676         mcore_arith_reg_operand, mcore_general_movsrc_operand,
12677         mcore_general_movdst_operand, mcore_reload_operand,
12678         mcore_arith_J_operand, mcore_arith_K_operand,
12679         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
12680         mcore_arith_K_S_operand, mcore_arith_imm_operand,
12681         mcore_arith_any_imm_operand, mcore_arith_O_operand,
12682         mcore_literal_K_operand, mcore_addsub_operand,
12683         mcore_compare_operand, mcore_load_multiple_operation,
12684         mcore_store_multiple_operation, mcore_call_address_operand.
12685         Add a prototype for const_ok_for_mcore.
12686         * config/mcore/mcore.c (mcore_call_address_operand,
12687         mcore_general_movsrc_operand, mcore_general_movdst_operand,
12688         mcore_arith_reg_operand, mcore_reload_operand,
12689         mcore_arith_J_operand, mcore_arith_K_operand,
12690         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
12691         mcore_arith_M_operand, mcore_arith_imm_operand,
12692         mcore_arith_any_imm_operand, mcore_arith_O_operand,
12693         mcore_literal_K_operand, mcore_addsub_operand,
12694         mcore_compare_operand, mcore_load_multiple_operation,
12695         mcore_store_multiple_operation): Move to predicates.md.
12696         (const_ok_for_mcore): Export.
12697         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
12698         * config/mcore/mcore.md: Include predicates.md.
12699         * config/mcore/predicates.md: New.
12700
12701         * config/mcore/predicates.md: Fix a comment typo.
12702
12703 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
12704             Adrian Straetling  <straetling@de.ibm.com>
12705
12706         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
12707         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
12708         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
12709         attribute.
12710         ("imul"): Removed from "type" attribute.
12711         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
12712         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
12713         Changed type to imulsi.
12714         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
12715
12716 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
12717
12718         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
12719         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
12720         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
12721         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
12722         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
12723         (TARGET_SWITCHES, mcore_stack_increment_string)
12724         (TARGET_OPTIONS): Delete.
12725         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
12726         than *_BIT constants.
12727         (TARGET_8ALIGN): #undef old definition before redefining to 1.
12728         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
12729         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
12730         (mcore_override_options): Delete mcore_stack_increment code.
12731         Change use of M340_BIT to MASK_M340.
12732         * config/mcore/mcore.opt: New file.
12733
12734 2005-04-04  Ian Lance Taylor  <ian@airs.com>
12735
12736         * config/arm/arm.c (replace_symbols_in_block): Remove static
12737         function.
12738
12739 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
12740
12741         * config/fr30/fr30-protos.h: Remove the prototypes for
12742         stack_add_operand, add_immediate_operand,
12743         high_register_operand, low_register_operand, call_operand,
12744         di_operand, and nonimmediate_di_operand.
12745         * config/fr30/fr30.c (stack_add_operand,
12746         add_immediate_operand, high_register_operand,
12747         low_register_operand, call_operand, di_operand,
12748         nonimmediate_di_operand): Move to predicates.md.
12749         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
12750         * config/fr30/fr30.md: Include predicates.md.
12751         * config/fr30/predicates.md: New.
12752
12753         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
12754         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
12755         mcore_call_address_operand.
12756
12757         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
12758         general_movsrc_operand.
12759
12760 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
12761
12762         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
12763         after freeing.
12764
12765 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
12766
12767         PR target/14812
12768         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
12769         a negated value.
12770
12771 2005-04-04  Richard Henderson  <rth@redhat.com>
12772             Jakub Jelinek  <jakub@redhat.com>
12773
12774         PR rtl-optimization/16104
12775         * fold-const.c (fold_unary): Fix folding of vector conversions.
12776
12777 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
12778
12779         * config.gcc (xstormy16-*-elf): Set extra_options.
12780         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
12781         * config/stormy16/stormy16.opt: New file.
12782
12783 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
12784
12785         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
12786         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
12787         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
12788         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
12789         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
12790         (TARGET_UNIX_ASM): Delete.
12791         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
12792         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
12793         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
12794         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12795         * config/pdp11/pdp11.opt: New file.
12796
12797 2005-04-03  Roger Sayle  <roger@eyesopen.com>
12798             Alexandre Oliva  <aoliva@redhat.com>
12799
12800         PR c++/19199
12801         * fold-const.c (non_lvalue): Split tests into...
12802         (maybe_lvalue_p): New function.
12803         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
12804         C++ front-end prior to lowering into gimple form.
12805
12806 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12807
12808         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
12809         BUILT_IN_STRNCASECMP): New.
12810         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
12811         and strndup.
12812
12813 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
12814
12815         PR target/14812
12816         * arm.md (addsi3_compare0_for_combiner): Delete.
12817         (addsi3_compare0_scratch_for_combiner): Delete.
12818         (cmpsi_neg_shiftsi): Delete.
12819         (compare_negsi_si): New pattern.
12820         (cmpsi_negshiftsi_si): New pattern.
12821         (negated_cbranchsi4): Restrict to equality_operator.
12822
12823         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
12824         template.
12825
12826 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
12827
12828         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
12829         Fix comment typos.
12830
12831         * doc/install.texi: Fix a typo.
12832
12833 2005-04-03  Steven Bosscher  <stevenb@suse.de>
12834
12835         PR middle-end/20648
12836         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
12837         a computed goto if the edge to the computed goto block has
12838         incoming abnormal edges.  Clarify how the function works.
12839
12840 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
12841
12842         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
12843         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
12844         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
12845         hash_scan_set, reg_set_between_after_reload_p,
12846         reg_used_between_after_reload_p, get_avail_load_store_reg,
12847         eliminate_partially_redundant_load): Likewise.
12848         * postreload.c (reload_cse_simplify_set,
12849         reload_combine_note_use): Likewise.
12850         * predict.c (predict_insn, expected_value_to_br_prob,
12851         propagate_freq, expensive_function_p): Likewise.
12852         * print-rtl.c (print_rtx): Likewise.
12853         * profile.c (instrument_edges, instrument_values,
12854         compute_branch_probabilities, branch_prob, union_groups,
12855         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
12856         * protoize.c (in_system_include_dir, file_could_be_converted,
12857         file_normally_convertible, gen_aux_info_file, seek_to_line,
12858         do_cleaning): Likewise.
12859         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
12860         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
12861         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
12862
12863 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
12864
12865         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
12866         * modulo-sched.c (undo_replace_buff_elem): New structure.
12867         (kernel_number_of_cycles, ps_unschedule_node,
12868         undo_generate_reg_moves,free_undo_replace_buff,
12869         undo_permute_partial_schedule,  loop_single_full_bb_p,
12870         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
12871         build_loops_structure, get_sched_window): New.
12872         (generate_reg_moves): Return undo_replace_buff_elem and other
12873         fixes.
12874         (generate_prolog_epilog): Remove old loop versioning.
12875         (sms_schedule): Use loop information and loop_version.
12876         (sms_schedule_by_order): Split part of it to get_sched_window.
12877         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
12878         cfg_layout_finalize and free_dominance_info before/after SMS.
12879
12880 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
12881
12882         * cfghooks.c (lv_flush_pending_stmts,
12883         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
12884         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
12885         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
12886         lv_add_condition_to_bb,
12887         lv_adjust_loop_header_phi, extract_cond_bb_edges,
12888         flush_pending_stmts): New in cfg_hooks structure.
12889         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
12890         extract_cond_bb_edges, lv_adjust_loop_header_phi,
12891         lv_add_condition_to_bb): New declarations.
12892         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
12893         bool.
12894         (loop_version): Declare.
12895         * cfgloopmanip.c (cfghooks.h): Include.
12896         (duplicate_loop_to_header_edge): Change return type to bool.
12897         (loop_version, lv_adjust_loop_entry_edge): Move here.
12898         * cfgrtl.c (cfgloop.h): Include.
12899         (rtl_verify_flow_info_1): Fix.
12900         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
12901         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
12902         initialization.
12903         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
12904         tree_lv_add_condition_to_bb): New.
12905         (tree_cfg_hooks): Add new hooks to initialization.
12906         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
12907         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
12908
12909 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
12910
12911         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
12912         xstormy16_below100_or_register,
12913         xstormy16_splittable_below100_or_register, and
12914         nonimmediate_nonstack_operand.
12915
12916         * config/stormy16/stormy16-protos.h: Remove the prototypes for
12917         xstormy16_ineqsi_operator, equality_operator,
12918         inequality_operator, shift_operator,
12919         xstormy16_below100_operand, xstormy16_below100_or_register,
12920         xstormy16_splittable_below100_or_register,
12921         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
12922         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
12923         equality_operator, inequality_operator,
12924         xstormy16_below100_operand, xstormy16_below100_or_register,
12925         xstormy16_splittable_below100_or_register,
12926         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
12927         nonimmediate_nonstack_operand, shift_operator): Move to
12928         predicates.md.
12929         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
12930         * config/stormy16/stormy16.md: Include predicates.md.
12931         * config/stormy16/predicates.md: New.
12932
12933 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12934
12935         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
12936         small_int, large_int, reg_or_0_operand, simple_memory_operand,
12937         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
12938         move_operand, power_of_2_operand): Move to predicates.md.
12939         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
12940         PREDICATE_CODE): Remove.
12941         * config/iq2000/iq2000.md: Include predicates.md.
12942         * config/iq2000/predicates.md: New.
12943
12944 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
12945
12946         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
12947         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
12948         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
12949         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
12950         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
12951         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
12952         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
12953         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
12954         (TARGET_M68HC11): Delete.
12955         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
12956         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
12957         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
12958         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
12959         (nb_soft_regs): Delete.
12960         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
12961         (m68hc11_override_options): Remove the code that caters for MASK_M6811
12962         and MASK_M6812 being set simultaneously.  Change the code that sets
12963         the default m68hc11_soft_reg_count to use integers instead of strings.
12964         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
12965         m68hc11_soft_reg_count (which now has an int type) as the number
12966         of soft registers.
12967         * config/m68hc11/m68hc11.opt: New file.
12968
12969 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
12970
12971         * config/fr30/fr30.h (PREDICATE_CODES): Remove
12972         fp_displacement_operand, sp_displacement_operand.
12973
12974         * config/m68hc11/m68hc11-protos.h: Add a prototype for
12975         m68hcc_auto_inc_p.
12976         Remove the prototypes for tst_operand, cmp_operand,
12977         stack_register_operand, d_register_operand,
12978         hard_addr_reg_operand, splitable_operand,
12979         m68hc11_logical_operator, m68hc11_arith_operator,
12980         m68hc11_non_shift_operator, m68hc11_shift_operator,
12981         m68hc11_unary_operator, m68hc11_eq_compare_operator,
12982         non_push_operand, hard_reg_operand, and
12983         reg_or_some_mem_operand.
12984         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
12985         extern.
12986         (tst_operand, cmp_operand, non_push_operand,
12987         splitable_operand, reg_or_some_mem_operand,
12988         stack_register_operand, d_register_operand,
12989         hard_addr_reg_operand, hard_reg_operand,
12990         m68hc11_eq_compare_operator, m68hc11_logical_operator,
12991         m68hc11_arith_operator, m68hc11_non_shift_operator,
12992         m68hc11_shift_operator, m68hc11_unary_operator): Move to
12993         predicates.md.
12994         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
12995         * config/m68hc11/m68hc11.md: Include predicates.md.
12996         * config/m68hc11/predicates.md: New.
12997
12998 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
12999
13000         PR debug/19345
13001         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
13002         change checked in along with 2005-03-03's patch for debug/20253.
13003         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
13004         (remap_decl): Insert type decl in map earlier.
13005
13006 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13007
13008         PR tree-optimization/20640
13009         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
13010         post-dominator if it has phi nodes.
13011         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
13012         before dead statements.
13013
13014 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13015
13016         PR middle-end/20491
13017         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
13018
13019 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13020
13021         PR rtl-optimization/20290
13022         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
13023         in every iteration if the entry point is the exit test.
13024
13025 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
13026
13027         * config/cris/cris.md (attribute "length"): Define.
13028
13029 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
13030
13031         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
13032         (word_offset_memref_operand): New.
13033         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
13034         (indexed_or_indirect_operand): Delete.
13035         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
13036         (indexed_or_indirect_operand): Delete.
13037
13038         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
13039
13040         PR 20650
13041         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
13042         a register.
13043
13044         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
13045         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
13046
13047 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13048
13049         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
13050
13051 2005-04-01  Ian Lance Taylor  <ian@airs.com>
13052
13053         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
13054         (rus, prus): Remove static variables.
13055         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
13056         (process_command): Permit report_times and use_pipes together.
13057
13058 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
13059
13060         * c-decl.c (validate_proto_after_old_defn): Look at
13061         TYPE_MAIN_VARIANT of argument types.
13062
13063 2005-04-01  Paul Brook  <paul@codesourcery.com>
13064
13065         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
13066         (arm_output_function_epilogue): Allow call_via_SP.
13067         (thumb_call_via_reg, arm_file_end): Ditto.
13068         * config/arm/arm.h (struct machine_function): Include space for SP.
13069         (thumb_call_via_label): Update declaration.
13070
13071 2005-04-01  Ian Lance Taylor  <ian@airs.com>
13072
13073         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
13074         doing a peephole optimization, once again put any notes in the
13075         proper position.
13076
13077 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13078
13079         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
13080
13081 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
13082
13083         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
13084         (block_alloc, find_free_reg): Likewise.
13085         * loop-doloop.c (doloop_modify): Likewise.
13086         * loop-invariant.c (record_use): Likewise.
13087         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
13088         get_iv_value, canon_condition, eliminate_implied_condition,
13089         eliminate_implied_condition, simplify_using_initial_values,
13090         shorten_into_mode, canonicalize_iv_subregs,
13091         iv_number_of_iterations): Likewise.
13092         * loop-unroll.c (expand_var_during_unrolling): Likewise.
13093         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
13094         unswitch_loop): Likewise.
13095         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
13096         move_movables, replace_call_address, find_and_verify_loops,
13097         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
13098         record_giv, final_giv_value, general_induction_var,
13099         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
13100         loop_giv_dump): Likewise.
13101
13102         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
13103         GCOV_CHECK_WRITING): Remove.
13104         (gcov_position, gcov_rewrite): Use gcc_assert.
13105         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
13106         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
13107         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
13108         gcc_assert.
13109
13110 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13111
13112         * tree-inline.c: Fix a typo.
13113
13114 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
13115
13116         * configure.ac (enable-checking): Explicitly set all variables for
13117         collective switch values.  Alphabetize variables. Rename
13118         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
13119         synonym for 'no'.
13120         * doc/install.texi (enable-checking): Update documentation.
13121         * configure: Rebuilt.
13122
13123 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13124
13125         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
13126         possible.
13127
13128 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
13129
13130         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
13131         Also reject cases where this pattern will cause load delay stalls
13132         unless optimizing for size and it will produce a shorter sequence.
13133         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
13134         variants to avoid pre-adjusting the base when possible.
13135
13136 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
13137
13138         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
13139         the frame and argument pointers.
13140         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
13141         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
13142         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
13143         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
13144         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
13145         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
13146
13147 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
13148
13149         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
13150         with entry for selectany attribute.
13151         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
13152         Declare.
13153         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
13154         (i386_pe_asm_named_section): Handle sections generated by
13155         selectany attribute.
13156         * doc/extend.texi (selectany): Document attribute.
13157
13158 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
13159             Jan Hubicka  <jh@suse.cz>
13160
13161         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
13162         to fix addresses involving EBP and ESP.
13163         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
13164         for SUBREGed registers.
13165         (legitimate_address_p): Accept SUBREGed registers.
13166
13167 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
13168
13169         PR c++/19406
13170         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
13171         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
13172         for FIELD_DECLs.
13173
13174 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13175
13176         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
13177
13178 2005-04-01  James E Wilson  <wilson@specifixinc.com>
13179
13180         PR c++/20505
13181         * dwarf2out.c (rtl_for_decl_init): New function.
13182         (rtl_for_decl_location): Extracted from here.
13183         (tree_add_const_value_attribute): Call rtl_for_decl_init and
13184         add_const_value_attribute.  Delete initializer_constant_valid_p call.
13185
13186 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13187
13188         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
13189         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
13190         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
13191         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
13192         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
13193         config/i386/i386.md, config/rs6000/predicates.md,
13194         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
13195         config/s390/s390.c, config/stormy16/stormy16.c,
13196         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
13197         typos.
13198
13199 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
13200
13201         PR c/17855
13202         * gimplify.c (gimplify_expr): Create a temporary for lvalue
13203         COND_EXPR and CALL_EXPR.
13204
13205 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
13206
13207         PR target/20632
13208         * genautomata.c (first_cycle_unit_presence): Check all alternative
13209         states for unit presence.
13210
13211         * doc/md.texi: Remove remark about impossibility to query unit
13212         presence in non nondeterministic automaton state.
13213
13214         * config/ia64/ia64.c (get_template): Change order of unit querying.
13215
13216 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13217
13218         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
13219         obsolete comment.
13220
13221 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
13222
13223         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
13224         flag for edges outside any loops.
13225
13226 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
13227
13228         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
13229
13230 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13231
13232         * tree-ssa-alias.c: Follow spelling conventions.
13233         * doc/tree-ssa.texi: Fix a typo.
13234
13235 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
13236
13237         * postreload-gcse.c: Include target.h.
13238         (gcse_after_reload_main): Return early if we cannot modify jumps.
13239         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
13240
13241 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
13242
13243         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
13244         expensive operations.
13245
13246 2005-03-31  Ian Lance Taylor  <ian@airs.com>
13247
13248         * collect2.c (lderrout): New variable.
13249         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
13250         if it is set, to stderr.
13251         (handler): Unlink lderrout if it is set.
13252         (dump_file): Add "to" parameter.  Change all callers.
13253         (main): Initialize lderrout.
13254         (collect_execute): Add errname parameter.  Change all callers.
13255         Rename redir parameter to outname.  Never pass
13256         PEX_STDERR_TO_STDOUT to pex_run.
13257         * collect2.h (collect_execute, dump_file): Update declarations.
13258         * tlink.c (tlink_execute): Add errname parameter.  Change all
13259         callers.
13260         (do_tlink): Check lderrout as well as ldout.
13261
13262 2005-03-31  Caroline Tice  <ctice@apple.com>
13263
13264         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
13265         (bb-reorder.o): Add errors.h to list of requirements.
13266         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
13267         profiledbootstrap flags.
13268         * bb-reorder.c (errors.h): Add new include.
13269         (struct bbro_basic_block_data_def): Add new field, in_trace.
13270         (add_unlikely_executed_notes):  Remove function.
13271         (mark_bb_for_unlikely_executed_section): Remove function.
13272         (insert_section_boundary_note): New function.
13273         (verify_hot_cold_block_grouping): New function.
13274         (push_to_next_round_p): Remove variables and tests that push all
13275         cold blocks to last round.
13276         (find_traces): Remove code that added extra round of trace finding
13277         when doing partitioning.
13278         (find_traces_1_round) :  Remove variable last_round;  add code to
13279         update new struct field, in_trace; correct trace_length where it was
13280         incorrect before (after call to copy_bb); change code that pushed all
13281         cold blocks to last round. Instead verify that all blocks going into
13282         a trace belong in the same partition.
13283         (connect_traces): Modify to connect the traces in two passes, if the
13284         function contains both hot and cold blocks.  The first pass connects
13285         all the traces for blocks in the partition that the first block in
13286         the function belongs to; the second pass connnects all the traces
13287         containing blocks that belong in the other partition.
13288         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
13289         code that automatically put the first block in a function into the
13290         hot partition if the function had any hot blocks.
13291         (fix_crossing_unconditional_branches): Check number of succ edges
13292         before attempting to get one.
13293         (fix_edges_for_rarely_executed_code):  Update comment describing
13294         function.
13295         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
13296         remove call to add_unlikely_executed_notes; add call to
13297         verify_hot_cold_block_grouping.
13298         (duplicate_computed_gotos): Don't change computed goto if it's a
13299         crossing edge.
13300         (partition_hot_cold_basic_blocks):  Update function comment.
13301         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
13302         condition.
13303         (try_forward_edges): Likewise.
13304         (merge_blocks_move_predecessor_nojumps): Likewise.
13305         (merge_blocks_move_successor_nojumps): Likewise.
13306         (merge_blocks_move): Likewise.
13307         (try_crossjump_bb): Likewise.
13308         * cfglayout.c (update_unlikely_executed_notes): Remove function.
13309         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
13310         notes to cold bb's; remove call to update_unlikely_executed_notes.
13311         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
13312         NOTE_INSN_SWITCH_TEXT_SECTIONS.
13313         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
13314         function declaration.
13315         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
13316         from consideration.
13317         (rtl_can_merge_blocks): Remove redundancy from condition.
13318         (try_redirect_by_replacing_jump): Likewise.
13319         (force_nonfallthru_and_redirect): Remove code for adding
13320         UNLIKELY_EXECUTED_CODE notes to cold bb's.
13321         (commit_one_edge_insertion): Likewise.
13322         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
13323         * dbxout.c (FORCE_TEXT): Replace function_section with
13324         current_function_section.
13325         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
13326         function, switch_text_section.
13327         (struct xcoff_debug): Likewise.
13328         (dbxout_function_end): Add code to put out label diffs for both
13329         hot and cold sections.
13330         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
13331         for new debug_hooks funciton, switch_text_section..
13332         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
13333         switch_text_section.
13334         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
13335         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
13336         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
13337         dw_fde_switched_sections.
13338         (output_call_frame_info):  Add test to see if function switches text
13339         sections in the middle; if so, use appropriate extra hot and cold
13340         section labels to compute size deltas for the hot and cold sections.
13341         (dwarf2out_begin_prologue): Add code to initialize new fields in
13342         dw_fde_struct.
13343         (dwarf2out_switch_text_section): New function (invoked through
13344         debug_hook); updates new fields in dw_fde_struct appropriately and
13345         increments separate_line_info_table_in_use.
13346         (dwarf2_debug_hooks): Initialize switch_text_section function to be
13347         dwarf2out_switch_text_section.
13348         (struct var_loc_node): Add new field, section_label.
13349         (output_aranges): Add code to check whether in hot or cold section and
13350         use the appropriate label in calculating deltas.
13351         (output_ranges): Likewise.
13352         (output_line_info): Add code to check which section we're in and
13353         use appropriate hot/cold label.
13354         (add_location_or_constant_value_attribute): Likewise.
13355         (gen_subprogam_die): Modify arange attributes to use correct labels.
13356         (dwarf2out_begin_block): Change call to function_section into call to
13357         current_function_section.
13358         (dwarf2out_end_block): Likewise.
13359         (dwarf2out_source_line): Likewise.
13360         (dwarf2out_var_location): Add code to check whether in hot or cold
13361         section and use the appropriate label.
13362         * except.c (output_function_exception_table): Change call to
13363         function_section into call to current_function_section.
13364         * final.c (profile_function): Likewise.
13365         (scan_ahead_for_unlikely_executed_note): Remove function.
13366         (final_scan_insn):  Remove calls to
13367         scan_ahead_for_unlikely_executed_note, and related code for switching
13368         to cold section, except for the single time
13369         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
13370         debug_hooks->switch_text_sections; replace appropriate calls to
13371         function_section with calls to current_function_section.
13372         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
13373         test_bb to condition.
13374         (find_if_case_2): Likewise.
13375         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
13376         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
13377         * opts.c (decode_options): Change warning about hot/cold partitioning
13378         with exceptionss to inform (so as not to cause bootstrap failures);
13379         remove warning about partitioning with DWARF debug info.
13380         * output.h (current_function_section): Add new function decl.
13381         (insert_section_boundary_note): Likewise.
13382         (enum in_section): Move this declaration here from varasm.c.
13383         (unlikely_section_label): Likewise.
13384         (unlikely_text_section_name): Likewise.
13385         (last_text_section_name): New global variable.
13386         (last_text_section): Likewise.
13387         (hot_section_label): Likewise.
13388         (hot_section_end_label): Likewise.
13389         (cold_section_end_label): Likewise.
13390         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
13391         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
13392         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
13393         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
13394         insn from consideration.
13395         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
13396         switch_text_section.
13397         * varasm.c (basic-block.h): Add new include.
13398         (unlikely_section_label_printed): Remove global variable.
13399         (unlikely_section_label): Make global variable not be static any more.
13400         (unlikely_text_section_name): Likewise.
13401         (hot_section_end_label): New global variable (not static)
13402         (first_function_block_is_cold): Likewise.
13403         (hot_section_label): Likewise.
13404         (cold_section_end_label): Likewise..
13405         (last_text_section): New global variable, not static.
13406         (last_text_section_name): New global variable, not static.
13407         (initialize_cold_section_name): New function.
13408         (enum in_section): Move declaration to output.h.
13409         (text_section): Update last_text_section.
13410         (unlikely_text_section): Replace code to determine cold section name
13411         with call to initialize_cold_section_name; Add code to update
13412         last_text_section; remove code for printing out label.
13413         (named_section_real): Add code to update last_text_section and
13414         last_text_section_name as appropriate.
13415         (function_section): Change test for 'unlikely' to depend on
13416         first_function_block_is_cold (moved old test to
13417         current_function_section).
13418         (current_function_section): New function.
13419         (assemble_start_function): Move code that frees
13420         unlikely_text_section_name; initialize hot_section_end_label;
13421         print hot and cold section labels at the start of the function;
13422         set first_function_block_is_cold, if appropriate; initialize l
13423         ast_text_section; add call to insert_section_boundary_note.
13424         (assemble_end_function):  Add code to write out hot and cold section
13425         end labels.
13426         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
13427         switch_text_section.
13428         * config/darwin.c (machopic_select_section): Replace incorrect
13429         function in base_funs; update reloc for cold sections if necessary.
13430         * config/darwin.h (SECTION_FUNCTION):  Add code to update
13431         last_text_section if appropriate.
13432         (text_unlikely_section): Remove.
13433         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
13434         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
13435         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
13436         partitioning for this architecture.
13437
13438 2005-03-31  Olivier Hainque  <hainque@adacore.com>
13439
13440         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
13441         defined and non-zero.
13442
13443 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13444
13445         PR c++/18644
13446         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
13447         semantics.
13448
13449 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
13450
13451         PR target/20611
13452         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
13453         label operand.  Remove (use (unspec..)).  Don't emit a label on
13454         the offset word.
13455         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
13456         generate inline label for load_toc_v4_PIC_1b.
13457         (rs6000_emit_load_toc_table): Likewise.
13458
13459 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13460
13461         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
13462         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
13463
13464 2005-03-29  Devang Patel  <dpatel@apple.com>
13465
13466         * tree-sra.c (decide_block_copy): Disable scalarization of
13467         sub-elements.
13468
13469 2005-03-30  Stuart Hastings  <stuart@apple.com>
13470             Dale Johannesen  <dalej@apple.com>
13471
13472         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
13473         * print-tree.c (print_node):  Add case STATEMENT_LIST.
13474
13475 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
13476
13477         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
13478         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
13479         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
13480         is given with "powerpc64*" or "all", or when --with-cpu chooses
13481         a 64-bit cpu.
13482
13483 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
13484
13485         PR debug/20268
13486         * dwarf2out.c (add_high_low_attributes): New function, extracted from
13487         gen_lexical_block_die.
13488         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
13489
13490 2005-03-31  Jan Hubicka  <jh@suse.cz>
13491
13492         2004-11-02  Jan Hubicka  <jh@suse.cz>
13493
13494         * cgraph.c (cgraph_varpool_node_name): New function.
13495         (dump_cgraph_varpool_node): New function.
13496         (dump_varpool): New function.
13497         * cgraphunit.c (cgraph_optimize): Dump varpool.
13498
13499         2004-10-16  Jan Hubicka  <jh@suse.cz>
13500
13501         * cgraph.c (decide_is_variable_needed): New function.
13502         (cgraph_varpool_finalize_decl): Use it.
13503         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
13504         unit-at-a-time.
13505         * final.c (output_addr_const): Do not call mark_referenced.
13506         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
13507         always go via cgraph.
13508         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
13509         (check_global_declarations): Ifdef out code clearing DECL_RTL.
13510         * tree-optimize.c (execute_inline): Mark functions called.
13511         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
13512
13513         2004-10-11  Jan Hubicka  <jh@suse.cz>
13514
13515         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
13516         (cgraph_varpool_last_needed_node): New static variable.
13517         (enqueue_needed_varpool_node): Break out from ...; add items to the
13518         end of queue; update first pointers.
13519         (cgraph_varpool_mark_needed_node): ... here.
13520         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
13521         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
13522         * cgraph.h (cgraph_varpool_node): Add analyzed field.
13523         (cgraph_varpool_first_unanalyzed_node): Declare.
13524         * cgraphunit.c: Include output.h.
13525         (cgraph_varpool_analyze_pending_decls): New function.
13526         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
13527         for errors, analyze pending decls.
13528         (cgraph_finalize_compilation_unit): Only analyze decls.
13529         (cgraph_optimize): Assemble the decls after expanding.
13530
13531 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
13532
13533         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
13534         subvars get marked properly in tags for grouping.
13535         (add_pointed_to_var): Mark only actual pointed to
13536         variables/subvars in addresses needed.
13537         (create_overlap_variables_for): Clear call clobbered on original
13538         variable.
13539         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
13540         addresable vars with subvars into list.
13541         * tree-ssa.c (verify_ssa_name): Verify original is not used where
13542         subvar should be.
13543
13544 2005-03-30  Richard Henderson  <rth@redhat.com>
13545
13546         * cgraph.h (struct cgraph_node): Add alias.
13547         * varasm.c (assemble_alias): Set it.
13548         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
13549         avoid calling cgraph_expand_function.
13550
13551 2005-03-30  Tom Tromey  <tromey@redhat.com>
13552
13553         * tree.def (FILE_TYPE): Removed.
13554         * typeclass.h (enum type_class): Removed file_type_class.
13555         * dwarf2out.c (is_base_type): Updated.
13556         (gen_type_die): Likewise.
13557         * dbxout.c (dbxout_type): Updated.
13558         * builtins.c (type_to_class): Updated.
13559         * tree.c (type_contains_placeholder_1): Updated.
13560         * config/sparc/sparc.c (sparc_type_code): Updated.
13561         * config/ia64/ia64.c (hfa_element_mode): Updated.
13562         * expr.c (count_type_elements): Updated.
13563         * stor-layout.c (layout_type): Updated.
13564         * tree-inline.c (remap_type): Updated.
13565         * tree-pretty-print.c (dump_generic_node): Updated.
13566
13567 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
13568
13569         * builtins.c (expand_builtin_powi): Fix mode of
13570         2nd argument to match int.
13571         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
13572         2nd argument type to int.
13573         * libgcc2.c: Change prototype of __powi* functions to use
13574         int.
13575
13576 2005-03-30  Dale Johannesen  <dalej@apple.com>
13577
13578         PR middle-end/19225
13579         * calls.c (expand_call):  Flush pending deferrals before
13580         throwing call.
13581
13582 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
13583
13584         PR c/772
13585         PR c/17913
13586         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
13587         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
13588         c_label_context, label_context_stack): New.
13589         * c-decl.c (define_label): Check for jumps into statement
13590         expressions.  Add label to list of defined labels.
13591         (start_function): Push context on label_context_stack.
13592         (finish_function): Pop context from label_context_stack.
13593         * c-typeck.c (label_context_stack): New.
13594         (c_finish_goto_label): Check for jumps into statement
13595         expressions.  Add label to list of jumped to labels.
13596         (struct c_switch): Add blocked_stmt_expr.
13597         (c_start_case): Initialize it.
13598         (do_case): Check it.
13599         (c_finish_case): Verify !blocked_stmt_expr.
13600         (c_begin_stmt_expr):  Push context on label_context_stack.
13601         Increment blocked_stmt_expr.  Mark labels jumped to from outside
13602         as undefinable.
13603         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
13604         defined in the statement expression and no longer jumpable to.
13605         Mark labels jumped to from just outside the statement expression
13606         as again definable.  Pop context from label_context_stack.
13607         * doc/extend.texi (Statement Exprs): Update.
13608
13609 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
13610
13611         PR c/20368
13612         * c-decl.c (start_function): Check for old_decl being
13613         error_mark_node.
13614
13615 2005-03-30  Ian Lance Taylor  <ian@airs.com>
13616
13617         * final.c (final): Remove prescan parameter.  Change all callers.
13618         (final_scan_insn): Remove prescan parameter.  Change all callers.
13619
13620 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
13621
13622         * tree-vectorizer.c: Fix comment typos.
13623
13624 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
13625
13626         * tree-scalar-evolution.c (instantiate_parameters_1): Return
13627         as soon as a chrec_dont_know is detected.
13628
13629 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
13630
13631         Merge from csl-arm-branch.
13632         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
13633
13634         * tlink.c (recompile_files): Do not assume that "rename" can
13635         overwrite an existing file.
13636
13637 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
13638
13639         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
13640         * gcc/configure: Regenerate.
13641
13642 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
13643
13644         * doc/install.texi: Update binutils requirement for powerpc*-linux.
13645
13646         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
13647
13648         * calls.c (struct arg_data): Update "partial" comment.
13649         (load_register_parameters): Update "nregs" comment.
13650
13651 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
13652
13653         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
13654         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
13655         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
13656         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
13657         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
13658         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
13659         than target_flags & 0.
13660         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
13661         (iq2000_arch, iq2000_parse_cpu): Delete.
13662         (TARGET_HANDLE_OPTION): Override default.
13663         (iq2000_handle_option): New function.
13664         (override_options): Remove -march= and -mcpu= handling.
13665         * config/iq2000/iq2000.opt: New file.
13666
13667 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
13668
13669         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
13670         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
13671         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
13672         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
13673         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
13674         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
13675         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
13676         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
13677         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
13678         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
13679         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
13680         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
13681         (c4x_rpts_cycles_string, c4x_cpu_version_string)
13682         (TARGET_OPTIONS): Delete.
13683         (c4x_rpts_cycles, c4x_cpu_version): Declare.
13684         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
13685         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
13686         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
13687         (c4x_cpu_version_string): Delete.
13688         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
13689         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
13690         equivalent -mcpu= option.
13691         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
13692         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
13693         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
13694         or clearing the appropriate MASK_* bit.
13695         (c4x_file_start): Use c4x_cpu_version.
13696         * config/c4x/c4x.opt: New file.
13697
13698 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
13699
13700         * doc/options.texi: Document the new MaskExists flag.
13701         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
13702         if the option has the MaskExists flag.
13703
13704 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
13705
13706         * opt-functions.awk (flag_set_p, test_flag): New functions.
13707         (switch_flags): Use them.
13708         * opth-gen.awk: Use flag_set_p to check for flags.
13709         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
13710
13711 2005-03-30  Ian Lance Taylor  <ian@airs.com>
13712
13713         * config.host (i[34567]86-*-mingw32*): Don't set
13714         host_can_use_collect2 to no.
13715
13716 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
13717
13718         PR target/20203
13719         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
13720         Remove convert_memory_address call duplicating that in memory_address.
13721
13722 2005-03-29  Richard Henderson  <rth@redhat.com>
13723
13724         PR c/20519
13725         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
13726         (build_compound_literal): Likewise.  Propagate decl type into the
13727         initializer.
13728         (finish_decl): Likewise.  Use new return value from complete_array_type
13729         for zero sized arrays.
13730         (complete_array_type): Move ...
13731         * c-common.c (complete_array_type): ... here.  Change first argument
13732         to pointer-to-type-node.  Consistently use sizetype for the index
13733         except for zero sized arrays.  Detect zero sized arrays for pedantic
13734         mode diagnostics.  Create a new type node instead of modifying the
13735         old node in place.
13736         * c-tree.h (complete_array_type): Move decl ...
13737         * c-common.h (complete_array_type): ... here.
13738
13739 2005-03-29  Richard Henderson  <rth@redhat.com>
13740
13741         PR tree-opt/19108
13742         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
13743
13744 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
13745
13746         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
13747         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
13748         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
13749         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
13750
13751 2005-03-29  Eric Christopher  <echristo@redhat.com>
13752
13753         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
13754         truthvalue conversion removal.
13755
13756 2005-03-29  Ian Lance Taylor  <ian@airs.com>
13757
13758         PR bootstrap/14316
13759         * collect2.c: Never include <vfork.h>.
13760         (VFORK_STRING, vfork): Don't define.
13761         (pid): Remove global variable.
13762         (handler): Call raise instead of kill (getpid(), ...).
13763         (collect_wait): Add pex parameter.  Change all callers.  Use
13764         pex_get_status rather than pwait.
13765         (do_wait): Add pex parameter.  Change all callers.
13766         (collect_execute): Return struct pex_obj * rather than void.  Use
13767         pex routines rather than pexecute.
13768         (fork_execute): Get pex_obj from collect_execute, and pass it to
13769         do_wait.
13770         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
13771         Only declare quit_handler if SIGQUIT is defined.
13772         (scan_libraries): Likewise.
13773         * collect2.h (collect_execute): Update declaration.
13774         (collect_wait): Update declaration.
13775         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
13776         pass it to collect_wait.
13777
13778 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
13779
13780         PR c/20672
13781         * c-parser.c (c_parser_compound_statement_nostart): Give error
13782         message for EOF instead of just setting parser->error.
13783
13784 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
13785
13786         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
13787         (slpeel_update_phi_nodes_for_guard1): New function.
13788         (slpeel_update_phi_nodes_for_guard2): New function.
13789         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
13790         of slpeel_update_phi_nodes_for_guard.
13791         (vectorize_loops): Remove call to loop_closed_rewrite.
13792         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
13793         assertion.
13794
13795 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
13796
13797         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
13798         (TARGET_LITTLE_ENDIAN): New macro.
13799         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
13800         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
13801         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
13802         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
13803         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
13804         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
13805         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
13806         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
13807         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
13808         (TARGET_OPTIONS): Delete.
13809         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
13810         (CACHE_FLUSH_TRAP): Turn into an integer.
13811         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
13812         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
13813         -mflush-trap is in use.
13814         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
13815         (m32r_cache_flush_trap_string): Delete.
13816         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
13817         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
13818         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
13819         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
13820         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
13821         -mmodel= and -msdata= handling from...
13822         (m32r_init): ...here.
13823         * config/m32r/m32r.opt: New file.
13824
13825 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
13826
13827         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
13828         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
13829         * tree-vect-analyze.c (vect_object_analysis): additional parm
13830         pass back a "struct ptr_info_def *" with the points-to info.
13831         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
13832         statement using info returned from vect_object_analysis.
13833         * tree-vect-transform.c (update_vuses_to_preheader): New function.
13834         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
13835         for virtual uses and defs when creating a replacement vector
13836         reference.  Call duplicate_ssa_name_ptr_info to define points-to
13837         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
13838         (vectorizable_store): copy_virtual_operands and update
13839         definition statements.
13840         (vectorizable_load): copy_virtual_operands.  Remove call to
13841         mark_call_clobbered_vars_to_rename for call to "const" builtin.
13842         * tree-vectorizer.c (vectorize_loops): Remove calls to
13843         rewrite_into_ssa and bitmap_clear (vars_to_rename).
13844         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
13845         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
13846         define macro STMT_VINFO_PTR_INFO for use in accessing.
13847         * tree.h add export of duplicate_ssa_name_ptr_info.
13848         * rs6000.c (altivec_init_builtins): Declare builtin function
13849         __builtin_altivec_mask_for_load to be "const".
13850
13851 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
13852
13853         PR middle-end/20622
13854         * cgraph.h (struct cgraph_varpool_node): Add alias field.
13855         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
13856         assemble_variable on aliases.
13857         * varasm.c (assemble_alias): Set node->alias.
13858         * toplev.c (wrapup_global_declarations): Don't call
13859         rest_of_decl_compilation on aliases again.
13860
13861 2005-03-29  Paul Brook  <paul@codesourcery.com>
13862
13863         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
13864         * config/arm/arm.c (arm_dbx_register_number): New function.
13865         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
13866
13867 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
13868
13869         PR middle-end/20263
13870         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
13871         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
13872
13873 2005-03-29  Dale Johannesen <dalej@apple.com>
13874
13875         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
13876         $(TREE_H) and $(COVERAGE_H).
13877         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
13878         * opts.c (common_handle_option): Enable tree-based value transforms.
13879         * toplev.c (process_options): Ditto.
13880         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
13881         refers to references to this type.
13882         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
13883         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
13884         for may_be_more, may_be_less.
13885         (rtl_gen_pow2_profiler): Adjust.
13886         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
13887         (rtl_gen_one_value_profiler): Adjust.
13888         (rtl_gen_const_delta_profiler): Adjust.
13889         * tree-profile.c (tree_gen_interval_profiler): Implement.
13890         (tree_gen_pow2_profiler): Ditto.
13891         (tree_gen_one_value_profiler): Ditto.
13892         (tree_profiling): New.
13893         (pass_tree_profile): Reference it.
13894         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
13895         tree.h, gcov-io.h.
13896         (insn_divmod_values_to_profile): Rename to
13897         rtl_divmod_values_to_profile. Adjust.
13898         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
13899         (insn_prefetch_values_to_profile): Adjust.
13900         (rtl_value_profile_transformations): Adjust.
13901         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
13902         (gen_mod_pow2): Rename to rtl_mod_pow2.
13903         (gen_mod_subtract): Rename to rtl_mod_subtract.
13904         (divmod_fixed_value_transform): Rename to
13905         rtl_divmod_fixed_value_transform.
13906         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
13907         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
13908         (rtl_find_values_to_profile): Adjust.
13909         (tree_value_profile_transformations): Implement.
13910         (tree_divmod_values_to_profile): New.
13911         (tree_values_to_profile): New.
13912         (tree_divmod_fixed_value): New.
13913         (tree_mod_pow2): New.
13914         (tree_mod_subtract): New.
13915         (tree_divmod_fixed_value_transform): New.
13916         (tree_mod_pow2_value_transform): New.
13917         (tree_mod_subtract_transform): New.
13918         (tree_find_values_to_profile): Implement.
13919         * profile.c (instrument_values):  Free histograms.
13920         (compute_value_histograms): Adjust. Implement tree version.
13921
13922 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
13923
13924         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
13925         * config/i386/i386.c (output_fix_trunc): Add new round_mode
13926         variable.  Output "fldcw" depending on round_mode.
13927         * config/i386/i386.md (UNSPEC_FIST): New.
13928         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
13929         New isns patterns to implement lrint and llrint built-ins as x87
13930         intrinsic function.
13931         (fistdi2, fist<mode>2 splitters): New splitters.
13932         (lrint<mode>2): New expanders.
13933
13934 2005-03-28  Ian Lance Taylor  <ian@airs.com>
13935
13936         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
13937         0 when calling final_scan_insn.
13938
13939 2005-03-28  Jan Hubicka  <jh@suse.cz>
13940
13941         PR middle-end/20635
13942         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
13943         as needed.
13944
13945         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
13946         types where possible.
13947
13948 2005-03-26  Per Bothner  <per@bothner.com>
13949
13950         Make -f[no-]show-column also control non-cpp diagnostics.
13951         * c.opt (fshow-column): Move option from here ...
13952         * common.opt (fshow-column): ... to here.
13953         * diagnostic.c (diagnostic_build_prefix): Only print column number
13954         if flag_show_column.
13955
13956 2005-03-27  Steven Bosscher  <stevenb@suse.de>
13957
13958         * vax-protos.h (vax_output_int_move, vax_output_int_add,
13959         vax_output_conditional_branch): New prototypes.
13960         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
13961         extracted from vax.md mov and add patterns.
13962         (vax_output_conditional_branch): New function to output conditional
13963         branch instructions.
13964         * vax.md: Use mode macros for arithmetic and mov patterns.
13965         Use code macros for the jump patterns.
13966
13967 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
13968
13969         * Makefile.in (libbackend.o): Depend on version files;
13970         add custom generation command.
13971
13972 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
13973
13974         PR target/20636
13975         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
13976         sure that we have a REG before getting its REGNO.
13977
13978 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13979
13980         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
13981         * builtins.def (BUILT_IN_STRNDUP): New.
13982
13983 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
13984
13985         PR tree-optimization/20470
13986         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
13987         ABS(x-y).
13988
13989 2005-03-25  Mike Stump  <mrs@apple.com>
13990
13991         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
13992         sized objects.
13993
13994 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
13995
13996         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
13997         Use our own structure definitions.
13998
13999         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
14000         (fix_truncdfsi2): Allow registers or memory as destination.
14001         When TARGET_PPC_GFXOPT, generate simplified pattern.
14002         (fix_truncdfsi2_internal): Use define_insn_and_split.
14003         (fix_truncdfsi2_internal_gfxopt): New.
14004         (fctiwz): Don't confuse register allocation by giving it no choices.
14005         (stfiwx): New.
14006         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
14007         (EXTRA_MEMORY_CONSTRAINT): Likewise.
14008         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
14009         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
14010
14011 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
14012
14013         * dominance.c (free_dominance_info): Speed up by freeing et
14014         data structures without maintaining other nodes.
14015         * et-forest.c (et_free_tree_force): New.
14016         * et-forest.h: Add a prototype for et_free_tree_force.
14017
14018         * tree.c (get_set_constructor_bits,
14019         get_set_constructor_bytes): Remove.
14020         * tree.h: Remove the corresponding prototypes.
14021
14022 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
14023
14024         PR target/15491
14025         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
14026         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
14027         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
14028         PRE_DEC, NEG and NOT.
14029
14030 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
14031
14032         * fold-const.c: Convert uses of fold (build (...)) to
14033         fold_buildN.
14034
14035 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
14036
14037         PR rtl-optimization/20249
14038         * cse.c (insert_regs): Do not record equivalence of registers in
14039         different modes.
14040
14041 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14042
14043         * emit-rtl.c (reverse_comparison): Remove.
14044         * rtl.h: Remove the corresponding prototype.
14045
14046 2005-03-24  James E Wilson  <wilson@specifixinc.com>
14047
14048         * doc/install.texi (--enable-altivec): Delete docs.
14049
14050 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
14051
14052         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
14053         SFmode and DFmode before reload when
14054         flag_unsafe_math_optimizations not enabled.
14055
14056 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
14057
14058         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
14059
14060         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
14061         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
14062
14063 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
14064
14065         * configure.ac (enable-checking): Add 'runtime' option.
14066         * doc/install.texi (enable-checking): Document 'runtime' checking.
14067         * tsystem.h (gcc_assert, gcc_unreachable): Define.
14068         * config.in: Regenerated.
14069         * configure: Regenerated.
14070
14071 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
14072
14073         * optabs.h (enum optab_index): Remove OTI_llrint.
14074         (llrint_optab): Remove macro.
14075         * optabs.c (init_optabs): Remove llrint_optab initialization.
14076         * genopinit.c (optabs): Remove llrint_optab implementation.
14077         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
14078         using lrint_optab.
14079
14080 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
14081
14082         PR rtl-optimization/20532
14083         * simplify-rtx.c (simplify_binary_operation_1): Protect from
14084         overflow when adding coefficients for PLUS or MINUS.
14085         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
14086         two as multiplier.
14087
14088 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
14089
14090         * langhooks.h (truthvalue_conversion): Remove.
14091         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
14092         LANG_HOOKS_TRUTHVALUE_CONVERSION.
14093         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
14094         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
14095         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
14096
14097 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
14098
14099         * params.def: Fix a typo.
14100         * config/mips/mips.c: Follow the spelling convensions.
14101         * doc/invoke.texi: Fix typos.
14102
14103 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
14104
14105         Fix PR tree-optimization/20601
14106
14107         * tree-ssa-pre.c (insert_aux): Add missing condition to
14108         constification.
14109
14110 2005-03-23  Ian Lance Taylor  <ian@airs.com>
14111
14112         * final.c (final_scan_insn): Don't remove no-op instructions.
14113         * reload1.c (reload): Remove simple no-op instructions even when
14114         not optimizing.
14115
14116 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
14117
14118         PR tree-optimization/20501
14119         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
14120         reporting that peeling for alignment is applied moved to...
14121         * (vect_analyze_data_refs_alignment): Here.
14122
14123 2005-03-23  Ian Lance Taylor  <ian@airs.com>
14124
14125         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
14126
14127 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14128
14129         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
14130         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
14131
14132 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
14133
14134         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
14135         imply that this is called once, independent of asms in code.
14136         Adjust to now being pased output and input lists.  Mention helper
14137         function decl_overlaps_hard_reg_set_p.
14138         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
14139         hook_tree_tree_identity and to take three trees, returning third.
14140         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
14141         prototype.
14142         * stmt.c: include hard-reg-set.h before tree.h.
14143         (decl_overlaps_hard_reg_set_p): New function, broken out from...
14144         (decl_conflicts_with_clobbers_p): Call
14145         decl_overlaps_hard_reg_set_p.
14146         (expand_asm_operands): Pass output and input lists in call to
14147         targetm.md_asm_clobbers.
14148         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
14149         hook_tree_tree_tree_tree_3rd_identity.
14150         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
14151         parameters.
14152         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
14153         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
14154         parameters, first two unused.
14155         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
14156         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
14157         in constraint letters and MOF is not mentioned as a asm-declared
14158         register in neither of the input and output lists.
14159
14160 2005-03-23  DJ Delorie  <dj@redhat.com>
14161
14162         * optabs.c (expand_binop): Make sure the first subword's result
14163         gets stored.
14164
14165 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
14166
14167         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
14168         Call c_common_truthvalue_conversion rather than
14169         lang_hooks.truthvalue_conversion.
14170         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
14171         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
14172         c-typeck.c.
14173         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
14174         c_common_truthvalue_conversion.
14175         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
14176         c_parser_conditional_expression, c_parser_binary_expression): Call
14177         c_objc_common_truthvalue_conversion.
14178         * c-typeck.c (build_unary_op): Call
14179         c_objc_common_truthvalue_conversion.
14180         (build_conditional_expr): Do not call
14181         lang_hooks.truthvalue_conversion.
14182         (build_binary_op): Call c_common_truthvalue_conversion.
14183         (c_objc_common_truthvalue_conversion): Moved from
14184         c-objc-common.c.  Call default_function_array_conversion instead
14185         of default_conversion.
14186
14187 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
14188
14189         * c-common.h (default_conversion): Remove.
14190         (perform_integral_promotions): Add.
14191         * c-tree.h (default_conversion): Add.
14192         * c-typeck.c (perform_integral_promotions): New, split out from
14193         default_conversion.
14194         * c-common.c (check_case_value): Use perform_integral_promotions,
14195         not default_conversion.
14196         (c_add_case_label): Don't continue processing case label after
14197         found to be pointer.
14198
14199 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
14200
14201         * gcc.c (do_spec_1): Do not add a -L path for a directory in
14202         the prefix list if we have already added a multilib directory
14203         based on that path.
14204         (main): Do not add MD_EXEC_PREFIX to the list of directories to
14205         search with -L.
14206
14207 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14208
14209         * reload1.c (indirect_symref_ok, reload_obstack): Make them
14210         static.
14211         * reload.h: Remove the prototype for indirect_symref_ok.
14212
14213         * reload1.c (indirect_symref_ok): Make it global.
14214         * reload.h: Add a prototype for indirect_symref_ok.
14215
14216 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14217
14218         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
14219         ashlhi3 expander.
14220
14221 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
14222
14223         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
14224
14225 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
14226
14227         * c-opts.c (c_common_parse_file): Only start/end main source file
14228         if debug hooks says the writer wants it.
14229         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
14230         member.
14231         (xcoff_debug_hooks): Ditto.
14232         * debug.c (do_nothing_hooks): Ditto.
14233         * debug.h (gcc_debug_hooks): Ditto.
14234         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
14235         * sdbout.c (sdb_debug_hooks): Ditto.
14236         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
14237
14238 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
14239
14240         * doc/extend.texi: Deprecate C++ min/max operators.
14241
14242 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
14243
14244         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
14245         artificial original candidates.
14246
14247 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
14248             Jan Hubicka  <jh@suse.cz>
14249             Steven Bosscher <stevenb@suse.de>
14250
14251         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
14252         call cost based on argument sizes.
14253         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
14254         inlining.
14255         * params.def: (max-inline-inssn-single): Set to 450.
14256         (max-inline-insns-auto): Set to 90.
14257         (max-inline-insns-recursive): Set to 450
14258         (max-inline-insns-recursive-auto): Set to 450.
14259         (large-function-insns): Set to 2700.
14260         (inline-call-cost): New parameter.
14261         * tree-inline.c (estimate_move_cost): New function.
14262         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
14263         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
14264         based on arguments.
14265         * tree-inline.h (estimate_move_cost): Declare.
14266         * invoke.texi: (max-inline-inssn-single): Change default to 450.
14267         (max-inline-insns-auto): Change default to 90.
14268         (max-inline-insns-recursive): Change default to 450
14269         (max-inline-insns-recursive-auto): Change default to 450.
14270         (large-function-insns): Change default to 2700.
14271         (inline-call-cost): Document new parameter.
14272
14273 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
14274
14275         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
14276         (TARGET_DEFAULT): Delete.
14277         * config/i860/i860.opt: New file.
14278
14279 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
14280
14281         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
14282         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
14283         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
14284         (frv_sched_lookahead): Delete.
14285         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
14286         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
14287         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
14288         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
14289         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
14290         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
14291         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
14292         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
14293         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
14294         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
14295         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
14296         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
14297         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
14298         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
14299         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
14300         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
14301         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
14302         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
14303         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
14304         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
14305         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
14306         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
14307         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
14308         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
14309         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
14310         (frv_sched_lookahead): Delete.
14311         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
14312         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
14313         (frv_handle_option): New function.  Move -mcpu= handling from...
14314         (frv_override_options): ...here.  Remove handling of other
14315         TARGET_OPTIONS.
14316         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
14317         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
14318         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
14319         and TARGET_NO_MULTI_CE.
14320         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
14321         !TARGET_VLIW_BRANCH.
14322         * config/frv/frv.opt: New file.
14323
14324 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14325
14326         * fold-const.c (fold_ternary): Take decomposed arguments of
14327         CALL_EXPR.
14328         (fold): Update a call to fold_ternary.
14329
14330         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
14331         * tree.h: Add corresponding prototypes.
14332
14333 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
14334
14335         PR target/20561
14336         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
14337         between jump table and its label.
14338         * final.c (shorten_branches): Handle notes in between ADDR_VEC
14339         resp. ADDR_DIFF_VEC and the label preceeding it.
14340         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
14341         is emitted in the right section.
14342
14343 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14344
14345         * fold-const.c (fold_unary, fold_binary): Update comments
14346         about arguments.
14347
14348 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
14349
14350         PR rtl-optimization/20527
14351         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
14352         REG_INC note, test that the register also isn't mentioned in PRED
14353         or SUCC.
14354
14355 2005-03-22  Ben Elliston  <bje@au.ibm.com>
14356
14357         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
14358         and definition.
14359
14360 2005-03-21  Mike Stump  <mrs@apple.com>
14361
14362         * varasm.c (default_assemble_visibility): Remove extra ().
14363
14364 2005-03-21  Roger Sayle  <roger@eyesopen.com>
14365
14366         PR middle-end/20557
14367         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
14368         to determine whether a block can be duplicated, rather than test
14369         whether the block contains noncopyable insns ourselves.
14370
14371 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14372
14373         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
14374         predicates.
14375
14376 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
14377
14378         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
14379
14380 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
14381
14382         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
14383         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
14384         * config/fr30/fr30.opt: New file.
14385
14386 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
14387
14388         Fix PR tree-optimization/20542
14389
14390         * tree-flow-inline.h (overlap_subvar): Move to here.
14391         * tree-ssa-operands.c: From here.
14392         * tree-flow.h (overlap_subvar): Declare.
14393         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
14394         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
14395         for variables with subvars.
14396
14397 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
14398
14399         PR middle-end/20177
14400         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
14401         * modulo-sched.c (const_iteration_count): Return on NULL
14402         pre-header.
14403         (print_node_sched_params): Return on NULL dump_file.
14404         (generate_reg_moves): Handle reg-anti dependencies and disregard
14405         closing branch when generating register moves.
14406         (sms_schedule): Mark the SMSed block dirty.
14407         * passes.c (rest_of_handle_sms): Call update_life_info for all
14408         basic-blocks.
14409         * testsuite/gcc.dg/20050321-1.c: New test.
14410
14411 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
14412
14413         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
14414         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14415         movqi_internal): Likewise.
14416
14417 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
14418
14419         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
14420         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
14421         xtensa_b4const): Delete prototypes.
14422         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
14423         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
14424         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
14425         xtensa_extra_constraint): New prototypes.
14426         (add_operand, arith_operand, nonimmed_operand, mem_operand,
14427         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
14428         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
14429         move_operand, const_float_1_operand, fpmem_offset_operand,
14430         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
14431         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
14432         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
14433         argument type to HOST_WIDE_INT.
14434         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
14435         xtensa_mask_immediate): Likewise.
14436         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
14437         Likewise.  Also make these functions static.
14438         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
14439         (xtensa_const_ok_for_letter_p): New.
14440         (add_operand, arith_operand, nonimmed_operand, mem_operand,
14441         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
14442         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
14443         move_operand, const_float_1_operand, fpmem_offset_operand,
14444         branch_operator, ubranch_operator, boolean_operator): Move to
14445         predicates.md.
14446         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
14447         (xtensa_mem_offset): Change return type to bool.
14448         (xtensa_extra_constraint): New.
14449         (gen_int_relational): Update type of const_range_p function pointer.
14450         Use xtensa_b4const_or_zero.
14451         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
14452         xtensa_const_ok_for_letter_p.  Update comments.
14453         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
14454         (PREDICATE_CODES): Delete.
14455         * config/xtensa/xtensa.md: Include predicates.md.
14456         * config/xtensa/predicates.md: New file.
14457
14458 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14459
14460         * config/v850/v850-protos.h: Remove the prototypes for
14461         reg_or_int9_operand, reg_or_const_operand,
14462         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
14463         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
14464         movsi_source_operand, power_of_two_operand,
14465         not_power_of_two_operand, special_symbolref_operand,
14466         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
14467         register_is_ok_for_epilogue.
14468         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
14469         reg_or_int9_operand, reg_or_const_operand,
14470         call_address_operand, special_symbolref_operand,
14471         movsi_source_operand, power_of_two_operand,
14472         not_power_of_two_operand, register_is_ok_for_epilogue,
14473         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
14474         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
14475         predicates.md.
14476         * config/v850/v850.h (PREDICATE_CODES): Remove.
14477         * config/v850/v850.md: Include predicates.md.
14478         * config/v850/predicates.md: New.
14479
14480 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
14481
14482         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
14483         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
14484         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
14485         (itoolsdir, itoolsdatadir): Move definition above new first use.
14486         (install-itoolsdirs): New rule.
14487         (install-mkheaders): Depend on install-itoolsdirs, not
14488         install-include-dir.
14489
14490 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14491
14492         * tree-into-ssa.c: Remove obsolete comments.
14493
14494 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
14495
14496         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
14497         unrolling if -fpeel-loops is specified, too.
14498         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14499         Remove superfluous check for flag_unroll_loops.
14500
14501 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
14502
14503         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
14504         (lrint_optab, llrint_optab): Define corresponding macros.
14505         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
14506         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
14507         pattern and llrint_optab using llrintdi2 patterns.
14508         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
14509         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
14510         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
14511         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
14512         flag_unsafe_math_optimizations is set.
14513
14514 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
14515
14516         * combine.c (combine_simplify_rtx, simplify_if_then_else,
14517         simplify_logical, if_then_else_cond, known_cond,
14518         simplify_comparison): Adjust calls to reverse_comparison.
14519         Don't use combine_reversed_comparison_code).
14520         (combine_reversed_comparison_code): Remove.
14521         (reversed_comparison): Using reversed_comparison_code, move it...
14522         * jump.c (reversed_comparison): ... here.
14523         * rtl.h (reversed_comparison): Add prototype.
14524
14525 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14526
14527         * builtins.c (fold_builtin): Take decomposed arguments of
14528         CALL_EXPR.
14529         * fold-const.c (fold_ternary): Update a call to fold_builtin.
14530         * gimplify.c (gimplify_call_expr): Likewise.
14531         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
14532         * tree.h: Update the prototype of fold_builtin.
14533
14534 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
14535
14536         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
14537         * rtlhooks.c (gen_lowpart_no_emit_general): New.
14538         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
14539         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
14540         * simplify-rtx.c (simplify_binary_operation_1): Use it.
14541
14542 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14543
14544         * builtins.c (fold_builtin_1): Take decomposed arguments of
14545         CALL_EXPR.
14546         (fold_builtin): Update a call to fold_builtin_1.
14547
14548 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
14549
14550         PR other/20564
14551         * gcov.c (output_lines): Only output function block summary when
14552         outputting branch information.
14553         * doc/gcov.texi: Document format of preamble and additional block
14554         information lines.
14555
14556 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
14557
14558         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
14559         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
14560         the defaults false if BITS_PER_UNIT != 8.
14561         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
14562         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
14563         than BITS_PER_UNIT != 8.
14564         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
14565         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
14566         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
14567         #undefs.
14568         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
14569         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
14570
14571 2005-03-20  Roger Sayle  <roger@eyesopen.com>
14572
14573         PR middle-end/20539
14574         * fold-const.c (fold_binary): Fix type mismatch between
14575         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
14576         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
14577         for non-truth-valued expressions.
14578
14579         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
14580         and FUNCTION_DECL in the main switch.
14581         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
14582         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
14583         we also need to convert their operands to match.
14584         <TRUTH_NOT_EXPR>: Likewise.
14585
14586 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
14587
14588         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
14589         diagnostic without checking whether an lvalue.
14590         * c-common.h (lvalue_p): Remove.
14591         (enum lvalue_use): Update comment.
14592         (lvalue_or_else): Replace by lvalue_error.
14593         * c-typeck.c (lvalue_p): Make static.
14594         (lvalue_or_else): New.  Call lvalue_error.
14595
14596 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
14597
14598         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
14599         (function_arg_advance): Use rs6000_parm_start.
14600         (function_arg, rs6000_arg_partial_bytes): Likewise.
14601
14602 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
14603
14604         * c-common.c (check_case_value): Adjust comment about stripping
14605         NOPs.
14606         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
14607         * c-typeck.c (default_conversion, convert_arguments,
14608         build_modify_expr, convert_for_assignment, store_init_value,
14609         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
14610         manually.  Remove inaccurate comments.
14611
14612 2005-03-20  Roger Sayle  <roger@eyesopen.com>
14613             Joseph S. Myers  <joseph@codesourcery.com>
14614
14615         * varasm.c (do_assemble_alias): Restore comment describing function.
14616         Annotate the target parameter as potentially unused.
14617
14618 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14619
14620         PR target/18551
14621         * config/avr/avr.c (avr_output_function_prologue): Do not use
14622         current_function_name() in a label, use a local label instead.
14623
14624 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
14625
14626         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
14627         flag_finite_math_only, not flag_unsafe_math_optimizations.
14628
14629 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14630
14631         * builtins.c (fold_builtin_1): Update a call to
14632         targetm.fold_builtin.
14633         * hooks.c (hook_tree_tree_bool_null): Rename to
14634         hook_tree_tree_tree_bool_null.  Take one more argument of type
14635         tree.
14636         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
14637         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
14638         hook_tree_tree_tree_bool_null.
14639         * target.h (gcc_target): Update the prototype of fold_builtin.
14640         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
14641         arguments of CALL_EXPR.
14642         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
14643         new prototype.
14644
14645 2005-03-20  Jan Hubicka  <jh@suse.cz>
14646
14647         * cgraph.h (cgraph_node): Add prev_clone pointer.
14648         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
14649         (cgraph_clone_node): Produce doubly linked chain.
14650
14651 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
14652
14653         * c-common.c (handle_aligned_attribute, check_function_sentinel,
14654         get_nonnull_operand, handle_sentinel_attribute,
14655         check_function_arguments_recurse): Do not strip NOPS from
14656         INTEGER_CSTs.
14657         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
14658         Likewise.
14659         * c-format.c (get_constant): Likewise.
14660         * c-parser.c (c_parser_postfix_expression): Likewise.
14661         * c-typeck.c (set_init_index): Likewise.
14662         (convert_arguments): Don't check for NOP_EXPR containing integer
14663         constant.
14664
14665 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
14666
14667         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
14668         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
14669         Take decomposed arguments of CALL_EXPR.
14670         (fold_builtin_1): Update calls to the functions mentioned
14671         above.
14672
14673 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
14674
14675         * c-decl.c (check_bitfield_type_and_width): Require bit-field
14676         width to have integer type.
14677         (build_enumerator): Require enumerator value to have integer type.
14678
14679 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
14680
14681         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
14682         to __builtin_inff.
14683
14684 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
14685
14686         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
14687         std=iso9899:199x): Correct descriptions.
14688
14689 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
14690
14691         * config.gcc: Consistently use solaris2.1[0-9]* instead of
14692         solaris2.1[0-9].
14693
14694 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
14695
14696         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
14697         of CALL_EXPR.
14698         (expand_builtin_memcpy, fold_builtin_1): Update calls to
14699         fold_builtin_memcpy.
14700
14701         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
14702         arguments of CALL_EXPR.
14703         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
14704         fold_builtin_found, fold_builtin_1): Update calls to
14705         fold_trunc_transparent_mathfn.
14706
14707 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14708
14709         PR middle-end/20493
14710         * fold-const.c (fold_widened_comparison): Don't optimize casts of
14711         function pointers on targets that require function pointer
14712         canonicalization.
14713         (fold_sign_changed_comparison): Likewise.
14714
14715 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
14716
14717         * combine.c (try_combine): When changing the mode of a hard reg, make
14718         sure that doing so is valid.
14719
14720 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
14721
14722         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
14723         (TARGET_HANDLE_OPTION): Override default.
14724         (avr_handle_option): New function.
14725         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
14726         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
14727         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
14728         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
14729         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
14730         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
14731         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
14732         (TARGET_OPTIONS): Delete.
14733         * config/avr/avr.opt: New file.
14734
14735 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14736
14737         * config/m32r/m32r-protos.h: Remove the prototypes for
14738         call_address_operand, symbolic_operand, seth_add3_operand,
14739         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
14740         reg_or_uint16_operand, reg_or_cmp_int16_operand,
14741         two_insn_const_operand, move_src_operand,
14742         move_double_src_operand, move_dest_operand,
14743         eqne_comparison_operator, signed_comparison_operator,
14744         large_insn_p, conditional_move_operand, carry_compare_operand,
14745         m32r_block_immediate_operand, extend_operand,
14746         reg_or_eq_int16_operand, int8_operand, and
14747         reg_or_zero_operand.
14748         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
14749         seth_add3_operand, int8_operand, cmp_int16_operand,
14750         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
14751         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
14752         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
14753         move_double_src_operand, move_dest_operand,
14754         eqne_comparison_operator, signed_comparison_operator,
14755         extend_operand, small_insn_p, large_insn_p,
14756         conditional_move_operand, carry_compare_operand,
14757         m32r_block_immediate_operand): Move to predicates.md.
14758         (MAX_MOVE_BYTES): Move to m32r.h.
14759         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
14760         * config/m32r/m32r.md: Include predicates.md.
14761         * config/m32r/predicates.md: New.
14762
14763 2005-03-18  James E Wilson  <wilson@specifixinc.com>
14764
14765         PR c++/19769
14766         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
14767         origin.
14768
14769 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14770
14771         * config/mn10300/mn10300-protos.h: Remove the prototypes for
14772         call_address_operand, const_8bit_operand.
14773         * config/mn10300/mn10300.c (call_address_operand,
14774         const_8bit_operand, const_1f_operand): Move to predicates.md.
14775         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
14776         * config/mn10300/mn10300.md: Include predicates.md.
14777         * config/mn10300/predicates.md: New.
14778
14779 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
14780
14781         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
14782         declarations in diagnostics and %E for identifiers, not %s.
14783
14784 2005-03-18  Jan Hubicka  <jh@suse.cz>
14785             Dale Johannesen  <dalej@apple.com>
14786
14787         * basic-block.h (scale_bbs_frequencies_int,
14788         scale_bbs_frequencies_gcov_type): Declare.
14789         * cfg.c (RDIV): New macro.
14790         (update_bb_frequency_for_threading): Fix.
14791         * basic-block.h (scale_bbs_frequencies_int,
14792         scale_bbs_frequencies_gcov_type): New.
14793         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
14794         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
14795         scale_bbs_frequencies_int.
14796         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
14797
14798 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14799
14800         * config/m32r/m32r-protos.h: Remove the prototypes for
14801         call_address_operand, symbolic_operand, seth_add3_operand,
14802         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
14803         reg_or_uint16_operand, reg_or_cmp_int16_operand,
14804         two_insn_const_operand, move_src_operand,
14805         move_double_src_operand, move_dest_operand,
14806         eqne_comparison_operator, signed_comparison_operator,
14807         large_insn_p, conditional_move_operand, carry_compare_operand,
14808         m32r_block_immediate_operand, extend_operand,
14809         reg_or_eq_int16_operand, int8_operand, and
14810         reg_or_zero_operand.
14811         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
14812         seth_add3_operand, int8_operand, cmp_int16_operand,
14813         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
14814         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
14815         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
14816         move_double_src_operand, move_dest_operand,
14817         eqne_comparison_operator, signed_comparison_operator,
14818         extend_operand, small_insn_p, large_insn_p,
14819         conditional_move_operand, carry_compare_operand,
14820         m32r_block_immediate_operand): Move to predicates.md.
14821         (MAX_MOVE_BYTES): Move to m32r.h.
14822         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
14823         * config/m32r/m32r.md: Include predicates.md.
14824         * config/m32r/predicates.md: New.
14825
14826         * config/pa/pa-protos.h: Add prototypes for magic_milli and
14827         shadd_constant_p.
14828         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
14829         symbolic_operand, symbolic_memory_operand,
14830         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
14831         indexed_memory_operand, move_dest_operand, move_src_operand,
14832         prefetch_cc_operand, prefetch_nocc_operand,
14833         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
14834         arith_operand, arith11_operand, pre_cint_operand,
14835         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
14836         ireg_operand, int5_operand, uint5_operand, int11_operand,
14837         uint32_operand, arith5_operand, and_operand, ior_operand,
14838         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
14839         pc_or_label_operand, div_operand, plus_xor_ior_operator,
14840         shadd_operand, movb_comparison_operator,
14841         cmpib_comparison_operator): Move to predicates.md.
14842         (magic_milli, shadd_constant_p): Make it extern.
14843         * config/pa/pa.h (PREDICATE_CODES): Remove.
14844         * config/pa/pa.md: Include predicates.md.
14845         * config/pa/predicates.md: New.
14846
14847         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
14848         predicate.
14849
14850 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14851
14852         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
14853         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
14854         config/alpha/freebsd.h, config/alpha/linux.h,
14855         config/alpha/netbsd.h, config/alpha/osf5.h,
14856         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
14857         config/h8300/h8300-protos.h, config/h8300/h8300.c,
14858         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
14859         doc/cppopts.texi: Update copyright.
14860
14861 2005-03-18  Jan Hubicka  <jh@suse.cz>
14862
14863         PR middle-end/20225
14864         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
14865         too late.
14866         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
14867         called too late.
14868
14869 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14870
14871         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
14872         VEC_safe_push.
14873
14874 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
14875
14876         * combine.c (gen_binary): Remove.
14877         (known_cond, simplify_shift_const, find_split_point,
14878         combine_simplify_rtx, simplify_if_then_else, simplify_set,
14879         simplify_logical, expand_field_assignment, extract_left_shift,
14880         force_to_mode, if_then_else_cond, apply_distributive_law,
14881         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
14882         simplify_comparison, reversed_comparison): Replace with
14883         simplify_gen_binary, simplify_gen_relational or
14884         distribute_and_simplify_rtx.
14885         (distribute_and_simplify_rtx): New function.
14886
14887 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
14888             Paolo Bonzini  <gcc.gnu.org>
14889
14890         * calls.c (setjmp_call_p, special_function_p): Update comments
14891         at the head of the functions.
14892
14893 2005-03-18  Jan Hubicka  <jh@suse.cz>
14894
14895         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
14896
14897         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
14898         function body should be released; do not proactively release function
14899         bodies in non-unit-at-a-time mode.
14900
14901 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
14902
14903         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
14904         mno-fp-ret-in-387 multilib variants.
14905
14906 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
14907
14908         * common.opt (m): Remove.
14909         * opts.c (handle_option): Pass 'm' options to set_target_switch if
14910         table lookup fails.
14911         (common_handle_option): Remove OPT_m case.
14912
14913 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
14914
14915         * builtins.c (fold_builtin_bitop): Take decomposed arguments
14916         of CALL_EXPR.
14917         (fold_builtin_1): Update a call to fold_builtin_bitop.
14918
14919         * builtins.c (fold_builtin_signbit): Take decomposed arguments
14920         of CALL_EXPR.
14921         (fold_builtin_1): Update a call to fold_builtin_signbit.
14922
14923 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
14924
14925         PR tree-optimization/20474
14926         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
14927         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
14928
14929 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
14930
14931         * config/h8300/h8300-protos.h: Remove prototypes for
14932         general_operand_src, general_operand_dst, single_one_operand,
14933         single_zero_operand, call_insn_operand,
14934         two_insn_adds_subs_operand, small_call_insn_operand,
14935         jump_address_operand, bit_operand, bit_memory_operand,
14936         stack_pointer_operand, const_int_gt_2_operand,
14937         const_int_ge_8_operand, const_int_qi_operand,
14938         const_int_hi_operand, incdec_operand, bit_operator,
14939         nshift_operator, eqne_operator, gtle_operator,
14940         gtuleu_operator, iorxor_operator.
14941         Add prototypes for h8sx_shift_type h8sx_classify_shift and
14942         h8300_ldm_stm_parallel.
14943         * config/h8300/h8300.c (h8sx_shift_type,): Move to
14944         h8300-protos.h.
14945         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
14946         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
14947         (h8300_ldm_stm_parallel): Make it extern.
14948         (h8300_ldm_parallel, h8300_stm_parallel,
14949         h8300_return_parallel, general_operand_src,
14950         general_operand_dst, h8300_dst_operand, h8300_src_operand,
14951         nibble_operand, reg_or_nibble_operand, single_one_operand,
14952         single_zero_operand, call_insn_operand,
14953         two_insn_adds_subs_operand, small_call_insn_operand,
14954         jump_address_operand, bit_operand, bit_memory_operand,
14955         stack_pointer_operand, const_int_gt_2_operand,
14956         const_int_ge_8_operand, const_int_qi_operand,
14957         const_int_hi_operand, incdec_operand, eqne_operator,
14958         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
14959         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
14960         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
14961         nshift_operator): Move to predicates.md.
14962         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
14963         * config/h8300/h8300.md: Include predicates.md.
14964         * config/h8300/predicates.md: New.
14965
14966 2005-03-17  Richard Henderson  <rth@redhat.com>
14967
14968         * config.gcc (ia64*-*-hpux*): Add extra_options.
14969         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
14970         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
14971         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
14972         (ia64_tls_size_string, ia64_tune_string): Remove.
14973         (ia64_tune): Init to PROCESSOR_ITANIUM2.
14974         (TARGET_DEFAULT_TARGET_FLAGS): New.
14975         (TARGET_HANDLE_OPTION): New.
14976         (ia64_override_options): Move options parsing ...
14977         (ia64_handle_option): ... here.  New.
14978         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
14979         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
14980         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
14981         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
14982         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
14983         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
14984         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
14985         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
14986         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
14987         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
14988         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
14989         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
14990         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
14991         TARGET_EARLY_STOP_BITS): Remove.
14992         (TARGET_ILP32): Default false.
14993         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
14994         (enum ia64_inline_type): New.
14995         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
14996         * config/ia64/ia64.md: Update for new definitions of
14997         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
14998         * config/ia64/ia64.opt: New file.
14999         * config/ia64/ilp32.opt: New file.
15000
15001 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15002
15003         PR target/18380
15004         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
15005
15006 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
15007
15008         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
15009         instead of MASK_H8300S.
15010         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
15011         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
15012         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
15013         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
15014         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
15015         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
15016         TARGET_SWITCHES): Remove.
15017         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
15018         TARGET_H8300SX.
15019         * config/h8300/h8300.opt: New.
15020
15021         * config/alpha/alpha.opt, config/arc/arc.opt,
15022         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
15023         notices.
15024
15025 2005-03-17  Ian Lance Taylor  <ian@airs.com>
15026
15027         * gmon.c: Remove.
15028
15029 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
15030
15031         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
15032         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
15033         (TARGET_HANDLE_OPTION): Override default.
15034         (arc_handle_option): New function.
15035         (arc_init): Remove code to set arch_cpu_string.
15036         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
15037         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
15038         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
15039         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
15040         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
15041         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
15042         (arc_rodata_string, TARGET_OPTIONS): Delete.
15043         * config/arc/arc.opt: New file.
15044
15045 2005-03-17  Richard Henderson  <rth@redhat.com>
15046
15047         * doc/extend.texi (Weak Pragmas): New section.
15048         (attribute alias): Clarify that target must be in the same
15049         translation unit.
15050
15051 2005-03-17  Richard Henderson  <rth@redhat.com>
15052
15053         * config/alpha/alpha.opt: New file.
15054         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
15055         of alpha_cpu.
15056         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
15057         alpha_fprm_string, alpha_fptm_string): Make static.
15058         (alpha_tls_size_string): Remove.
15059         (alpha_handle_option): New.
15060         (override_options): Update for alpha_cpu/alpha_tune split.
15061         (alpha_file_start): Likewise.
15062         (TARGET_DEFAULT_TARGET_FLAGS): New.
15063         (TARGET_HANDLE_OPTION): New.
15064         * config/alpha/alpha.h (alpha_tune): Declare.
15065         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
15066         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
15067         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
15068         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
15069         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
15070         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
15071         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
15072         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
15073         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
15074         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
15075         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
15076         (TARGET_DEFAULT): Remove MASK_FP.
15077         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
15078         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
15079         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
15080         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
15081         alpha_tls_size_string): Remove.
15082         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
15083         (attribute tune): Rename from attribute cpu.
15084         * config/alpha/ev4.md: Update to match.
15085         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
15086         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
15087         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
15088         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
15089         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
15090         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
15091
15092 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
15093
15094         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
15095         and return without creating new state if before_nops_num is nonzero.
15096         * config/ia64/ia64.md (first_insn): New attribute.
15097         (alloc): Set it to yes.
15098
15099 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
15100
15101         * tree-vectorizer.c (new_vec_stmt_info): Initialize
15102         STMT_VINFO_SUBVARS to NULL.
15103         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
15104
15105 2005-03-16 Dale Johannesen  <dalej@apple.com>
15106
15107         * rtlanal.c (find_first_parameter_load):  Rewrite to
15108         return actual first param load or the call if none,
15109         instead of first in block, when not all loads exist.
15110
15111 2005-03-16  Roger Sayle  <roger@eyesopen.com>
15112
15113         * optabs.c (expand_copysign_absneg): Make static.
15114         * optabs.h (expand_copysign_absneg): Delete prototype.
15115         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
15116
15117 2005-03-16  Richard Henderson  <rth@redhat.com>
15118
15119         PR middle-end/15700
15120         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
15121         (alias_pairs): Rename from output_defs.
15122         (find_decl_and_mark_needed): Split out from assemble_alias.
15123         (do_assemble_alias): New.
15124         (assemble_output_def): Remove.
15125         (finish_aliases_1, finish_aliases_2): New.
15126         (process_pending_assemble_output_defs): Remove.
15127         (assemble_alias): Defer aliases for which we don't yet have a
15128         non-external decl for the target symbol.
15129         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
15130         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
15131         * toplev.c (compile_file): Use finish_aliases_2 instead of
15132         process_pending_assemble_output_defs.
15133         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
15134         (process_pending_assemble_output_defs): Remove.
15135
15136 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
15137
15138         Fix PR tree-optimization/20489
15139
15140         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
15141         for empty structures.
15142
15143 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
15144
15145         Fix PR tree-optimization/20490
15146
15147         * tree-ssa-pre.c (create_expression_by_pieces): Use
15148         force_gimple_operand on result of fold.
15149
15150 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
15151
15152         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
15153         of closing parenthesis.
15154
15155 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
15156
15157         * builtins.c (expand_movstr): Update a call to
15158         fold_builtin_strcpy.
15159         (expand_builtin_strncpy): Update a call to
15160         fold_builtin_strncpy.
15161         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
15162         arguments of CALL_EXPR.
15163         (fold_builtin_1): Update calls to fold_builtin_strcpy and
15164         fold_builtin_strncpy.
15165         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
15166         * tree.h: Update the prototypes of fold_builtin_strcpy and
15167         fold_builtin_strncpy.
15168
15169 2005-03-16  Steven Bosscher  <stevenb@suse.de>
15170             Dorit Naishlos  <dorit@il.ibm.com>
15171
15172         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
15173         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
15174         error.
15175
15176 2005-03-16  Steven Bosscher  <stevenb@suse.de>
15177
15178         * tree-inline.c (walk_type_fields, walk_tree,
15179         walk_tree_without_duplicates): Move from here...
15180         * tree.c: ...to here.
15181
15182 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
15183
15184         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
15185         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
15186         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
15187         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
15188         (version): Define using $(BASEVER_c).
15189         (Makefile, config.status, build/gcov-iov.o): No longer depends on
15190         version.c.
15191         (version.o): Depend on version files; add custom generation command.
15192         (prefix.o): Define BASEVER on command line.
15193         (s-iov): Depend on version files; adjust command.
15194         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
15195         Add gcc-vers.texi.
15196         (gcc-vers.texi): New rule.
15197         (doc/%.info, doc/%.dvi): Add -I . to command line.
15198         (doc/gccinstall.dvi): Likewise.
15199         (PACKAGE): Delete.  All uses replaced with "gcc".
15200         * aclocal.m4: Do not include gcc-version.m4.
15201         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
15202         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
15203         Set is_release based on contents of DEV-PHASE.
15204         Set gcc_version based on contents of BASE-VER.
15205         Define WIN32_REGISTRY_KEY only if the user overrode the default.
15206         * config.in, configure: Regenerate.
15207         * gccbug.in: Determine version of GCC in use at runtime.
15208         * gcov-iov.c: Get version number and development phase from
15209         command line, not by including version.c.
15210         * intl.c: Replace all uses of PACKAGE with "gcc".
15211         * libada-mk.in: Delete unused "gcc_version" variable.
15212         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
15213         * version.c: (VERSUFFIX): New hook for redistributors; adjust
15214         commentary to match.
15215         (version_string): Put together from pieces.
15216         * config/alpha/x-vms: Do not use $(gcc_version).
15217         * config/i386/t-nwld: Likewise.
15218         * doc/include/gcc-common.texi: Include gcc-vers.texi for
15219         version-GCC and DEVELOPMENT.
15220
15221 2005-03-15  Roger Sayle  <roger@eyesopen.com>
15222
15223         PR tree-optimization/17454
15224         * tree.c (tree_size): Add case for TREE_BINFO.
15225         * fold-const.c (fold_checksum_tree): Only clear the overloaded
15226         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
15227
15228 2005-03-15  Roger Sayle  <roger@eyesopen.com>
15229
15230         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
15231         op1 whilst expanding the signed widenening multiply variant.
15232
15233 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
15234
15235         * toplev.c (display_target_options): Avoid unused variable warning if
15236         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
15237         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
15238         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
15239         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
15240         (mips_isa_info): New variable.
15241         (mips_parse_cpu): Remove the first argument and leave the caller
15242         to report errors.
15243         (TARGET_HANDLE_OPTION): Override default.
15244         (mips_handle_option): New function.  Move option validation code from...
15245         (override_options): ...here.  Update calls to mips_parse_cpu.
15246         * config/mips/mips.h (mips_arch_string, mips_tune_string)
15247         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
15248         (SUBTARGET_TARGET_OPTIONS): Delete.
15249         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
15250         (mno-flush-func, mtune=): New options.
15251
15252 2005-03-15  Roger Sayle  <roger@eyesopen.com>
15253             Richard Henderson  <rth@redhat.com>
15254
15255         * real.c (c4x_single_format, c4x_extended_format): Provide values
15256         for signbit_ro for c4x's single and extended floating point formats.
15257         * optabs.c (expand_copysign): Use the floating point format's
15258         signbit_ro for expanding via expand_copysign_absneg, and it's
15259         signbit_rw field for expanding via expand_copysign_bit.
15260
15261 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
15262
15263         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
15264         known_alignment_for_access_p.
15265         (known_alignment_for_access_p): New.
15266         (do_peeling_for_alignment): Field made int instead of bool and renamed
15267         to peeling_for_alignment.
15268         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
15269         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
15270         functionality used to be in vect_analyze_operations.
15271         (vect_analyze_operations): Code to determine vectorization factor was
15272         moved to vect_determine_vectorization_factor.
15273         (vect_enhance_data_refs_alignment): Update to correct alignment when it
15274         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
15275         factor.
15276         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
15277         be part of vect_analyze_operations).
15278         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
15279         creating the guard condition, as the number of iterations may be
15280         constant.
15281         (slpeel_tree_peel_loop_to_edge): Use new name of
15282         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
15283         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
15284         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
15285         (vect_do_peeling_for_alignment): Use fold.
15286         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
15287
15288         (vect_update_inits_of_dr): Renamed to
15289         vect_update_init_of_dr.
15290         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
15291         (vectorizable_store): Fix assertion to use == instead of =.
15292
15293 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
15294
15295         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
15296         call_used_regs for wCG registers.
15297
15298 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
15299
15300         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
15301         for non-offsettable memory references to cope with outstanding reload
15302         replacements, take 2.
15303
15304 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
15305
15306         PR target/18668
15307         * config/i386/i386.h (x86_fisttp): New.
15308         (TARGET_FISTTP): New macro.
15309         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
15310         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
15311         instruction when fisttp flag is set.
15312         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
15313
15314         * config/i386/i386.md (type attribute): Add fisttp.
15315         (unit attribute): Set to i387 for fisttp type.
15316         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
15317         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
15318         TARGET_FISTTP.
15319         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
15320         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
15321         macros.
15322         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
15323         patterns for TARGET_FISTTP.  Enable patterns for
15324         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
15325         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
15326         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
15327         implement fisttp x87 insn.
15328         (fix_trunc*_i387_fisttp splitters): New patterns.
15329         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
15330         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
15331         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
15332         clobber.
15333         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
15334         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
15335         Implement using mode macros. Disable patterns for TARGET_FISTTP.
15336         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
15337         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
15338         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
15339         Disable patterns for TARGET_FISTTP.
15340         (fix_trunc*_i387 splitters): Implement usign mode macros.
15341         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
15342         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
15343         (fix_trunx*_sse peephole2s): Implement using mode macros.
15344
15345 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
15346
15347         PR rtl-optimization/20291
15348         * combine.c (try_combine): If splitting fails, re-try with
15349         original combined pattern, i.e. before clobber stripping.
15350
15351 2005-03-14  Eric Christopher  <echristo@redhat.com>
15352
15353         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
15354         STACK_GROWS_DOWNWARD.
15355
15356 2005-03-14  Roger Sayle  <roger@eyesopen.com>
15357
15358         * real.h (struct real_format): Split the signbit field into two
15359         two fields, signbit_ro and signbit_rw.
15360         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
15361         mips_double_format, ieee_extended_motorola_format,
15362         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
15363         ieee_extended_intel_128_format, ibm_extended_format,
15364         mips_extended_format, ieee_quad_format, mips_quad_format,
15365         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
15366         i370_double_format, c4x_single_format, c4x_extended_format,
15367         real_internal_format): Update initializers for new field.
15368         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
15369         real_format structure.
15370         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
15371         field of the real_format structure.
15372
15373 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
15374
15375         Fix PR tree-optimization/20458
15376
15377         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
15378         DECL_EXTERNAL on STRUCT_FIELD tags.
15379         (clear_call_clobbered): Ditto.
15380         * tree-ssa-operands.c (note_addressable): Make sure the original
15381         variable doesn't slip into the addressable list if we have
15382         subvars.
15383         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
15384         tags too.
15385
15386 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
15387
15388         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
15389         (-fwide-exec-charset): Likewise.
15390         (-finput-charset): Likewise.
15391         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
15392         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
15393         * c.opt (Wnormalized): New.
15394
15395 2005-03-14  Devang Patel  <dpatel@apple.com>
15396
15397         * doc/invoke.texi: Add reference to Visibility document.
15398
15399 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
15400
15401         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
15402         MASK_SPLIT_ADDRESSES.
15403         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
15404         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
15405         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
15406         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
15407         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
15408         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
15409         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
15410         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
15411         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
15412         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
15413         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
15414         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
15415         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
15416         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
15417         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
15418         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
15419         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
15420         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
15421         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
15422         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
15423         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
15424         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
15425         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
15426         (TARGET_EXPLICIT_RELOCS): Delete.
15427         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
15428         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
15429         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
15430         (override_options): Set MASK_LONG64 if -mint64 is given and no
15431         -mlongXX option is.  Complain about -mint64 -mlong32.
15432         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
15433         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
15434         * config/mips/mips.opt: New file.
15435
15436 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
15437
15438         * config.gcc (extra_options): New variable for listing option files.
15439         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
15440         * configure.ac (extra_opt_files): New AC_SUBST variable.
15441         (tm_file_list, tm_include_list): Include options.h first.
15442         * configure: Regenerate.
15443         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
15444         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
15445         (s-options-h): New rule.
15446         (options.h): Depend on it.
15447         (TEXI_GCCINT_FILES): Add options.texi.
15448         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
15449         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
15450         * target.h (gcc_target): Add default_target_flags and handle_option.
15451         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
15452         (TARGET_HANDLE_OPTION): New macros.
15453         (TARGET_INITIALIZER): Include them.
15454         * opt-functions.awk (opt_args, nth_arg): New functions.
15455         (switch_flags): Handle the "Target" flag.
15456         (var_args): Delete.
15457         (var_name): Use opt_args and nth_arg.
15458         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
15459         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
15460         macros for the "Mask" and "InverseMask" options.
15461         * opts.h (cl_var_cond): New enum.
15462         (cl_option): Replace the "has_set_value" and "set_value" fields with
15463         "var_cond" and "var_value".
15464         (CL_TARGET): New macro.
15465         (option_enabled, print_filtered_help): Declare.
15466         (decode_options): Move definition.
15467         * opts.c (handle_option): Search for the original option before
15468         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
15469         var_cond and var_value fields.  Use targetm.handle_option to handle
15470         target options.
15471         (decode_options): Set target_flags to targetm.default_target_flags.
15472         (print_filtered_help): Make global.  Handle CL_TARGET.
15473         (option_enabled): New function.
15474         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
15475         (display_target_options, set_target_switch, print_switch_values)
15476         (default_pch_valid_p): Guard uses of target_switches with
15477         #ifdef TARGET_SWITCHES.  Also...
15478         (display_target_options): Display the CL_TARGET entries in cl_options.
15479         (set_target_option): Don't complain about the "" option when
15480         TARGET_SWITCHES is undefined.
15481         (print_switch_values): Use option_enabled.
15482         (default_pch_valid_p): Check cl_options[] when looking for something
15483         that has changed the value of target_flags.
15484         * c.opt: Remove documentation from top of file.
15485         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
15486         * doc/sourecebuild.texi: Refer to the new options documentation
15487         instead of c.opt.  Document machine-specific .opt files.
15488         * doc/tm.texi (target_flags): Say that this variable is declared
15489         by options.h.
15490         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
15491         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
15492         an alternative.
15493         * doc/options.texi: New file.
15494
15495 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
15496
15497         PR middle-end/18628
15498         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
15499         register.
15500
15501 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
15502
15503         PR c++/20280
15504         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
15505         temporary variable of pointer type if an lvalues is required.
15506         (gimplify_modify_expr_rhs): Request an rvalue from it.
15507         (gimplify_expr): Pass fallback on.
15508
15509 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
15510
15511         * cfgbuild.c: Update comments.
15512
15513 2005-03-14  Roger Sayle  <roger@eyesopen.com>
15514
15515         PR rtl-optimization/17236
15516         * optabs.c (expand_doubleword_mult): New helper function split out
15517         from expand_binop.  Permute the order in which instructions are
15518         emitted to minimize the number of simultaneously live registers.
15519         (expand_binop): Call expand_doubleword_mult to synthesize a double
15520         word multiplication.
15521
15522 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
15523
15524         * basic-block.h: Update the prototypes of cached_make_edge and
15525         rtl_make_eh_edge.
15526         * cfg.c (cached_make_edge): Take edge_cache representing one
15527         row of the adjacency matrix of edges.
15528         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
15529         (make_edges): Initialize edge_cache to represent one row of
15530         the adjacency matrix of edges.
15531
15532 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
15533
15534         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
15535         New functions.
15536         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
15537         Remove unused removed_phis variable.
15538         (conditional_replacement): Use build1/build2.
15539         (abs_replacement): Use last_and_only_stmt and build1/build2.
15540
15541 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
15542
15543         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
15544         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
15545         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
15546         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
15547         * c-common.c (handle_novops_attribute): New function.
15548         (c_common_attribute_table): Add "no vops" entry.
15549         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
15550         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
15551         * tree-ssa-operands.c (get_call_expr_operands): Do not
15552         create virtual operands for calls with ECF_NOVOPS flag.
15553         * tree.h (DECL_IS_NOVOPS): New macro.
15554         (struct tree_decl): Add novops_flag.
15555         (ECF_NOVOPS): New constant.
15556
15557 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
15558
15559         PR target/17688
15560         * config/i386/i386.c (x86_use_himode_fiop): New.
15561         (x86_use_simode_fiop): Rename from x86_use_fiop.
15562         * config/i386/i386.h (x86_use_himode_fiop): Declare.
15563         (TARGET_USE_HIMODE_FIOP): New.
15564         (x86_use_simode_fiop): Rename from x86_use_fiop.
15565         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
15566
15567         * config/i386/i386.md (X87MODEI12): New mode macro define.
15568         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
15569         to implement x87 FP compare with HImode input operands.
15570         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
15571         Use X87MODEI12 mode macro to handle HImode input operands.
15572         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
15573         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
15574         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
15575         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
15576         macro to implement x87 operators with HImode input operands.
15577         (fop splitters): Use X87MODEI12 mode macro to handle HImode
15578         input operands.
15579
15580 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
15581
15582         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
15583         integer_zerop.
15584         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
15585         constants invariant.
15586
15587 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
15588
15589         * basic-block.h (BB_VISITED): Removed.
15590         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
15591
15592 2005-03-14  Falk Hueffner  <falk@debian.org>
15593
15594         PR bootstrap/20424
15595         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
15596
15597 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
15598
15599         * ggc-zone.c: Fix comment typos.
15600
15601         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
15602         stringpool.c, config/mips/mips-protos.h: Update copyright.
15603
15604 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
15605
15606         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
15607         throughout with its typedef, "rtx".
15608         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
15609         (rs6000_tls_symbol_ref_1): Remove inline keyword.
15610         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
15611         regs in comment to match code.
15612
15613 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
15614
15615         * except.c (check_handled): Make it static.
15616         * except.h: Remove the corresponding prototype.
15617
15618         * function.c (get_func_frame_size): Make it static.
15619         * function.h: Remove the corresponding type.
15620
15621         * regclass.c (reg_class_superclasses, reg_class_subclasses):
15622         Make them static.
15623         * hard-reg-set.h: Remove the corresponding declarations.
15624
15625         * tree-cfg.c (verify_stmts): Check that
15626         bb_for_stmt (stmt) == bb for every PHI node and statement.
15627
15628 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
15629
15630         * config.gcc: Remove excess indentation.
15631         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
15632
15633 2005-03-13  Roger Sayle  <roger@eyesopen.com>
15634
15635         PR middle-end/19331
15636         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
15637         * fold-const.c (fold_sign_changed_comparison): Likewise.
15638         (fold_binary): Optimize comparisons against widened operands if
15639         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
15640
15641 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
15642
15643         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
15644         (sparc_override_options): Initialize it.
15645         (sparc_struct_value_rtx): Set it on the MEM to be returned.
15646
15647 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
15648
15649         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
15650         (reg_or_none500mem_operand): New predicate.
15651         (zero_reg_mem_operand): New predicate.
15652         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
15653         to reg_or_none500mem_operand.
15654         (extendsfdf2_fpr): Add MEM alternative.
15655         (extenddftf2_internal): Change operand2 predicate to
15656         zero_reg_mem_operand.
15657
15658 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
15659
15660         * ggc-zone.c: Rewritten.
15661
15662         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
15663         if there are none.
15664         * configure.ac: Define GGC_ZONE for --with-gc=zone.
15665         * config.in: Regenerated.
15666         * configure: Regenerated.
15667         * gengtype.c (write_types_process_field, write_func_for_structure):
15668         Pass new argument to gt_pch_note_object.
15669         * ggc-common.c (struct ptr_data): Add TYPE.
15670         (gt_pch_note_object): Take TYPE argument and save it.
15671         (call_count): Update call to ggc_pch_count_object.
15672         (call_alloc): Update call to ggc_pch_alloc_object.
15673         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
15674         file.
15675         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
15676         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
15677         (ggc_alloc_zone_stat): Delete.
15678         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
15679         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
15680         (ggc_pch_alloc_object): Update prototypes.
15681         (garbage_zone): Delete.
15682         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
15683         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
15684         pointers.
15685         (tree_id_zone): New variable.
15686         (ggc_alloc_cleared_zone): Remove unused.
15687         (ggc_alloc_zone): Define.
15688         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
15689         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
15690         ggc_alloc_zone_stat.
15691         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
15692         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
15693         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
15694         (make_node_stat): Likewise.  Use tree_id_zone.
15695
15696 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
15697             Joseph S. Myers  <joseph@codesourcery.com>
15698
15699         * configure.ac: Check for MIPS TLS.
15700         * configure: Regenerated.
15701         * config/mips/mips-protos.h (enum mips_symbol_type): Add
15702         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
15703         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
15704         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
15705         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
15706         (mips_classify_symbol, mips_symbolic_constant_p)
15707         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
15708         (mips_tls_operand_p, mips_call_tls_get_addr)
15709         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
15710         (mips_tls_symbol_ref_1): New functions.
15711         (mips_legitimize_address, mips_legitimize_const_move): Call
15712         mips_legitimize_tls_address.
15713         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
15714         for MIPS16.
15715         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
15716         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
15717         (mips_char_to_class): Document V1_REG.
15718         (HAVE_AS_TLS): Provide default.
15719         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
15720         constants.
15721         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
15722         !TARGET_ABICALLS.
15723         (tls_get_tp_<mode>): New instruction.
15724
15725 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
15726
15727         * configure.ac: Update checks for target tools.
15728         * configure: Regenerated.
15729
15730 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
15731
15732         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
15733
15734 2005-03-13  Roger Sayle  <roger@eyesopen.com>
15735
15736         * expmed.c (expand_mult): Use synthetic multiplication sequences for
15737         more classes of DImode multiplication by constant.  Allow both
15738         multiplication by small negative constants (by performing a
15739         multiplication by a positive constant and negating the result) and
15740         multiplications by large powers of two, by using a left shift.
15741
15742 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
15743
15744         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
15745         of basic blocks into work_stack.
15746
15747         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
15748         config/mips/vr.h: Update copyright.
15749
15750         * c-decl.c (c_init_decl_processing): Remove useless calls to
15751         build_function_type.
15752
15753         * builtins.c (fold_trunc_transparent_mathfn,
15754         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
15755         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
15756         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
15757         fold_builtin_strcpy, fold_builtin_strncpy,
15758         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
15759         TREE_TYPE (exp).
15760
15761         * builtins.c (expand_builtin_mathfn_3): Remove local variable
15762         before_call.
15763
15764         * lambda-code.c (lambda_compute_auxillary_space): Remove local
15765         variable determinant.
15766
15767         * tree-cfg.c (group_case_labels): Remove local variable type.
15768
15769         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
15770         variable ann.
15771
15772         * tree-ssa-phiopt.c (value_replacement): Remove local variable
15773         result.
15774
15775 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
15776
15777         PR target/18251
15778         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
15779         (*movmemqi_insn): Delete.
15780         (*movmemhi): Delete.
15781
15782 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
15783
15784         * builtins.c (fold_builtin_classify): Take decomposed
15785         arguments of CALL_EXPR.
15786         (fold_builtin_1): Update a call to fold_builtin_classify.
15787
15788 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
15789
15790         PR c/20402
15791         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
15792         through into call to parser_xref_tag after parse error.
15793         (c_parser_struct_declaration): Consistently return NULL_TREE on
15794         error.
15795
15796 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
15797
15798         * tree-flow-inline.h (ref_contains_array_ref): New function.
15799         (lookup_subvars_for_var): Ditto.
15800         (get_subvars_for_var): Ditto.
15801         (var_can_have_subvars): Ditto.
15802
15803         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
15804         (struct subvar): New type.
15805
15806         * tree-dfa.c (okay_component_ref_for_subvars): New function.
15807
15808         * tree-optimize.c (init_tree_optimization_passes): Call
15809         pass_create_structure_vars.
15810
15811         * tree-ssa-alias.c: Include vec.h.
15812         (init_alias_info): Don't auto-clear call clobbered on struct-field
15813         tags.
15814         (compute_flow_insensitive_aliasing): Handle subvars.
15815         (group_aliases): Handle STRUCT_FIELD aliases.
15816         (setup_pointers_and_addressables): Ditto.
15817         Don't mark variables non-addressable if they still have
15818         addressable subvars.
15819         Also mark subvars addressable when the real variable is marked
15820         addressable.
15821         (add_pointed_to_var): Try to prune the pointed-to set by only
15822         pointing to subvars when possible.
15823         Otherwise, make sure we set addresses_needed and pt_vars to
15824         properly include subvars.
15825         (bitpos_of_field): New function.
15826         (push_fields_onto_fieldstack): Ditto.
15827         (get_or_create_used_part_for): Ditto.
15828         (create_overlap_variables_for): Ditto.
15829         (find_used_portions): Ditto.
15830         (create_structure_vars): Ditto.
15831         (pass_create_structure_vars): New structure.
15832
15833         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
15834         (get_expr_operands): Handle subvars.  Also try to turn
15835         COMPONENT_REF accesses into must-defs now that we can accurately
15836         portray it.
15837         (note_addressable): Try to only mark as addressable those subvars
15838         we know a COMPONENT_REF touches.
15839         (overlap_subvar): New function.
15840
15841         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
15842         Handle subvar storing.
15843         (vect_address_analysis): Update caller of vect_object_analysis.
15844
15845         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
15846
15847         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
15848         (STMT_VINFO_SUBVARS): New macro.
15849
15850         * common.opts: add flag_tree_salias.
15851
15852         * opts.c (decode_options): flag_tree_salias defaults to on.
15853
15854         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
15855
15856         * doc/tree-ssa.texi: Document structural alias analysis.
15857
15858 2005-03-12  Steven Bosscher  <stevenb@suse.de>
15859
15860         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
15861         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
15862         * tree-ssa-operands.c (get_expr_operands): Likewise.
15863         (get_expr_operands): Likewise for ERROR_MARK.
15864
15865 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
15866
15867         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
15868         var.
15869
15870         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
15871         removed_phis.
15872
15873         * tree-ssa-pre.c (compute_avail): Remove local variable val.
15874         (mark_operand_necessary): Remove local variable ver.
15875
15876         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
15877         variable prefix_len.
15878
15879         * value-prof.c (mod_subtract_transform): Remove local variable
15880         value.
15881
15882         * builtins.c (fold_builtin_exponent): Take decomposed
15883         arguments of CALL_EXPR.
15884         (fold_builtin_1): Update a call to fold_builtin_exponent.
15885
15886         * builtins.c (fold_builtin_logarithm): Take decomposed
15887         arguments of CALL_EXPR.
15888         (fold_builtin_1): Update a call to fold_builtin_logarithm.
15889
15890         * c-decl.c (c_init_decl_processing): Remove local variables
15891         ptr_ftype_void and ptr_ftype_ptr.
15892
15893         * gimplify.c (gimplify_expr): Remove local variables r0 and
15894         r1.
15895
15896         * reg-stack.c (move_for_stack_reg): Remove local variable
15897         push_insn.
15898         (compare_for_stack_reg): Remove local variable flags_user.
15899         (convert_regs_1): Remove local variable deleted.
15900
15901         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
15902         variable new_cond.
15903         (combine_blocks): Remove local variables exits and new_e.
15904
15905         * tree-inline.c (expand_call_inline): Remove local variable
15906         decl.
15907
15908         * tree-ssa-live.c (create_ssa_var_map,
15909         calculate_live_on_entry): Remove local variable snn.
15910
15911 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
15912
15913         * c-lex.c (c_lex_with_flags): Add parameter to call to
15914         cpp_spell_token.
15915
15916 2005-03-11  Per Bothner  <per@bothner.com>
15917
15918         * c-tree.h (struct c_declarator): New id_loc field.
15919         * c-pragma.h (c_lex_with_flags): Take position reference.
15920         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
15921         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
15922         (c_lex): Pass dummy location to c_lex_with_flags.
15923         * c-parser.c (c_lex_one_token): Set c_token's location using
15924         c_lex_with_flags, instead of input_location, which might be "ahead".
15925         (c_parser_direct_declarator): Set declarator's id_loc from
15926         c_token's id_loc.
15927         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
15928         declarator's id_loc, rather than probably-imprecise input_location.
15929         (build_id_declarator): Initialize c_declarator's id_loc field.
15930
15931 2005-03-11  Roger Sayle  <roger@eyesopen.com>
15932
15933         PR middle-end/20419
15934         * builtins.c (expand_builtin_signbit): Force the signbit's word
15935         into an integer register to avoid SUBREGs of floating point modes.
15936
15937 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
15938
15939         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
15940         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
15941         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
15942         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
15943
15944 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
15945
15946         PR rtl-optimization/20306
15947         * expr.c (emit_move_complex): Set try_int false if mode is
15948         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
15949         emit_block_move if try_int is true.
15950
15951 2005-03-11  Richard Henderson  <rth@redhat.com>
15952
15953         PR target/20415
15954         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
15955         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
15956         to match.
15957
15958 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
15959
15960         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
15961         (TARGET_FIX_VR4130): New macro.
15962         (TARGET_OPTIONS): Add -mfix-vr4130.
15963         (ISA_HAS_MACCHI): New macro.
15964         (ASM_SPEC): Add -mfix-vr4130.
15965         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
15966         (override_options): Handle mips_fix_vr4130_string.
15967         (mips_avoid_hazards): Clear all_noreorder_p
15968         if we're working around VR4130 errata and the macc alternatives
15969         are not available.
15970         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
15971         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
15972         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
15973         (MULTILIB_DEFAULTS): Remove leading "march=".
15974         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
15975         if no architecture option is given.
15976         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
15977         VR4130 multilibs.
15978         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
15979         * doc/invoke.texi: Document -mfix-vr4130.
15980
15981 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
15982
15983         * config/mips/mips.c (override_options): Only warn about -mint64
15984         deprecation if TARGET_INT64.
15985
15986 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15987
15988         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
15989         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
15990         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
15991         are non-specific regarding the nonnull parameter positions.
15992         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
15993         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
15994         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
15995         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
15996
15997         * builtins.def: Use the non-specific "nonnull" attibute lists.
15998
15999 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
16000
16001         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
16002         single_pred_edge, single_succ, single_pred): Improve comments.
16003
16004 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
16005
16006         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
16007         single_pred_edge, single_succ, single_pred): New inline functions.
16008         * bb-reorder.c (rotate_loop, find_traces_1_round,
16009         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
16010         duplicate_computed_gotos): Use the single_succ/pred functions.
16011         * cfganal.c (forwarder_block_p): Ditto.
16012         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
16013         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16014         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
16015         merge_seq_blocks): Ditto.
16016         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
16017         * cfglayout.c (fixup_reorder_chain): Ditto.
16018         * cfgloop.c (mark_single_exit_loops, update_latch_info,
16019         canonicalize_loop_headers, verify_loop_structure): Ditto.
16020         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
16021         mfb_update_loops, create_preheader, force_single_succ_latches,
16022         create_loop_notes): Ditto.
16023         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
16024         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
16025         commit_one_edge_insertion, purge_dead_edges,
16026         cfg_layout_can_merge_blocks_p): Ditto.
16027         * except.c (sjlj_emit_function_enter): Ditto.
16028         * flow.c (init_propagate_block_info): Ditto.
16029         * function.c (thread_prologue_and_epilogue_insns): Ditto.
16030         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
16031         insert_insn_end_bb): Ditto.
16032         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
16033         find_if_case_2): Ditto.
16034         * lambda-code.c (perfect_nestify): Ditto.
16035         * lcm.c (optimize_mode_switching): Ditto.
16036         * loop-doloop.c (doloop_modify): Ditto.
16037         * loop-init.c (loop_optimizer_init): Ditto.
16038         * loop-iv.c (simplify_using_initial_values): Ditto.
16039         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
16040         * loop-unswitch.c (unswitch_loop): Ditto.
16041         * modulo-sched.c (generate_prolog_epilog): Ditto.
16042         * predict.c (combine_predictions_for_insn, estimate_probability,
16043         tree_estimate_probability, last_basic_block_p,
16044         estimate_bb_frequencies): Ditto.
16045         * profile.c (branch_prob): Ditto.
16046         * regrename.c (copyprop_hardreg_forward): Ditto.
16047         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
16048         * tracer.c (layout_superblocks): Ditto.
16049         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
16050         cfg_remove_useless_stmts_bb, cleanup_control_flow,
16051         cleanup_control_expr_graph, disband_implicit_edges,
16052         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
16053         tree_verify_flow_info, tree_make_forwarder_block,
16054         tree_forwarder_block_p, remove_forwarder_block,
16055         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
16056         * tree-if-conv.c (tree_if_conversion): Ditto.
16057         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
16058         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
16059         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
16060         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
16061         copy_loop_headers): Ditto.
16062         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
16063         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
16064         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
16065         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
16066         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
16067         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
16068         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
16069         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
16070         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
16071         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
16072         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
16073         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
16074         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
16075         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
16076         slpeel_add_loop_guard): Ditto.
16077
16078 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
16079
16080         PR tree-optimization/15784
16081         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
16082         and -1 - A to ~A.
16083
16084         * stmt.c (expand_case): Don't change index_type.  Convert minval
16085         to the proper type.
16086
16087         PR tree-optimization/20130
16088         * fold-const.c (fold): Fold x * -1 into -x.
16089
16090 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16091
16092         PR rtl-optimization/20331
16093         * rtlanal.c (modified_between_p): Check its address first for MEM.
16094         (modified_in_p): Likewise.
16095
16096 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
16097
16098         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
16099
16100 2005-03-10  Steven Bosscher  <stevenb@suse.de>
16101
16102         * expr.c (expand_expr_real_1): If possible, use a conditional
16103         move for expanding MIN_EXPR and MAX_EXPR.
16104         Use temp for moving around rtx-en.
16105
16106 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
16107
16108         PR rtl-opt/20412
16109         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
16110         correct mode.
16111
16112 2005-03-10  Roger Sayle  <roger@eyesopen.com>
16113
16114         * builtins.c (expand_builtin_signbit): Extend to handle floating
16115         point modes wider than the largest integer type, using the
16116         operand_subword_force function to obtain the signbit's word.
16117
16118 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
16119
16120         PR target/20322
16121         * combine.c (try_combine): If recog_for_combine added CLOBBERs
16122         to NEWI2PAT, fail to combine if they are used by NEWPAT.
16123
16124 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
16125
16126         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
16127
16128 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
16129
16130         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
16131         type void.
16132         (perform_edge_inserts): Unconditionally call
16133         free_dominator_info.
16134
16135         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
16136
16137 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
16138
16139         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
16140
16141 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
16142
16143         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
16144
16145         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
16146         gcc_unreachable.
16147         (rtl_register_value_prof_hooks,
16148         tree_value_profile_transformations,
16149         tree_register_value_prof_hooks): Likewise.
16150         * var-tracking.c (stack_adjust_offset_pre_post,
16151         variable_htab_free, variable_union, dataflow_set_different_2,
16152         count_uses, variable_was_changed, set_frame_base_location,
16153         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
16154         vt_add_function_parameters): Likewise.
16155         * varasm.c (named_section_real, named_section, make_decl_rtl,
16156         asm_emit_uninitialised, assemble_integer, decode_addr_const,
16157         const_hash_1, compare_constant, copy_constant, force_const_mem,
16158         output_constant_pool_2, output_constant_pool_1, output_constant,
16159         output_constructor, make_decl_one_only, decl_tls_model,
16160         default_no_named_section, default_elf_select_section_1,
16161         default_unique_section_1): Likewise.
16162         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
16163         * vmsdbgout.c (addr_const_to_string): Likewise.
16164
16165         PR c++/20375
16166         * function.c (struct assign_parm_data_one): Remove last_named
16167         field.
16168         (assign_parm_find_data_types): Don't determine last_named.
16169         Reorder named_parm determination.
16170         (assign_parms): Only setup varargs on the last non-varadic
16171         parameter.
16172
16173 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
16174
16175         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
16176         sda base address on medium model.
16177
16178 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
16179
16180         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
16181         * cfgloop.c (flow_loop_nodes_find): Export.
16182         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
16183         Declare.
16184         * cfgloopmanip.c (fix_loop_structure): New function.
16185         * predict.c (predict_loops): Clean up the loops information.
16186         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
16187         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
16188         loop structure.
16189         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
16190         (rewrite_into_loop_closed_ssa): Declaration changed.
16191         * tree-loop-linear.c (linear_transform_loops): Add argument to
16192         rewrite_into_loop_closed_ssa call.
16193         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16194         * tree-ssa-loop-im.c (move_computations): Ditto.
16195         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
16196         * tree-vectorizer.c (vectorize_loops): Ditto.
16197         * tree-optimize.c: Include cfgloop.h.
16198         (execute_todo): Choose whether to call cleanup_tree_cfg or
16199         cleanup_tree_cfg_loop.
16200         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
16201         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
16202         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
16203         cleanup_tree_cfg_loop call.
16204         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
16205         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
16206         work on part of cfg.
16207
16208 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
16209
16210         PR inline-asm/20314
16211         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
16212         with multiple alternatives.
16213
16214         * stmt.c (parse_output_constraint): Fix a typo.
16215
16216 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
16217
16218         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
16219         assembly directive instead of deprecated "no-generics".
16220
16221 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
16222
16223         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
16224         for non-offsettable memory references to cope with outstanding reload
16225         replacements.
16226         * config/s390/s390.md ("reload_outti"): Call find_replacement to
16227         avoid losing outstanding address reloads.
16228         ("reload_outdi", "reload_outdf"): Likewise.
16229
16230 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16231
16232         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
16233         code.  Add more cbrt transformations.
16234
16235 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16236
16237         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
16238
16239 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
16240
16241         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
16242         NULL_TREE when a given tree is not simplified.
16243         (fold): Return the original tree when any of the functions
16244         mentioned above NULL_TREE.
16245
16246         * fold-const.c (fold_unary, fold_binary): Take decomposed
16247         arguments, code, type, op0, and op1 in case of fold_binary.
16248         (fold): Update calls to fold_unary and fold_binary.
16249
16250 2005-03-09  Roger Sayle  <roger@eyesopen.com>
16251
16252         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
16253         a fndecl and an arglist instead of a CALL_EXPR, exp.
16254
16255 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
16256
16257         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
16258
16259         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
16260
16261         * expr.c (expand_assignment): Remove orig_to_rtx.
16262
16263         * fold-const.c (int_const_binop): Remove no_overflow.
16264
16265         * ifcvt.c (noce_emit_move_insn): Remove inmode.
16266
16267         * loop-iv.c (get_biv_step_1): Remove lhs.
16268
16269         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
16270
16271         * real.c (real_nan): Remove neg.
16272
16273         * function.c (thread_prologue_and_epilogue_insns): Remove i
16274         and newinsn.
16275
16276         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
16277         tb.
16278
16279         * tree-eh.c (tree_could_trap_p): Remove idx.
16280
16281         * tree-into-ssa.c (ann): Remove ann.
16282
16283         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
16284
16285         * tree-sra.c (decide_block_copy): Remove inst_count.
16286
16287         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
16288
16289         * tree-ssa-loop-im.c (lhs): Remove.
16290
16291         * cfgbuild.c (state, STATE, SET_STATE,
16292         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
16293         make_edges.
16294         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
16295         (find_basic_blocks): Set the state of each basic block to
16296         BLOCK_NEW.
16297
16298 2005-03-08  Jeff Law  <law@redhat.com>
16299
16300         * tree-cfg.c (cleanup_control_flow): If removal of a computed
16301         goto results in the removal of edges in the CFG, then we need
16302         to recompute dominators.
16303
16304 2005-03-09  Ben Elliston  <bje@au.ibm.com>
16305
16306         * c-common.c (c_do_switch_warnings): Comment fix.
16307
16308 2005-03-08  Julian Brown  <julian@codesourcery.com>
16309
16310         * Patch from 2005-03-08 reverted for causing regressions and
16311         ppc-darwin bootstrap failure.
16312
16313 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
16314
16315         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
16316         Define the real function for ppc-darwin.
16317         * c-typeck.c (convert_arguments): Check for target-specific
16318         invalid argument call to unprototyped function.
16319         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
16320         New Macro.
16321         * target.h (invalid_arg_for_unprototyped_fn): New field
16322         in struct calls.
16323         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
16324         default target hook.
16325         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
16326         Declare.
16327
16328 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16329
16330         * c-typeck.c (constructor_stack, constructor_range_stack,
16331         initializer_stack): Make them static.
16332
16333         * cfg.c (rbi_pool): Make it static.
16334
16335         * gimple-low.c (lower_stmt_body): Make it static.
16336         * tree-flow.h: Remove the corresponding prototype.  Don't
16337         declare lower_data.
16338
16339         * sched-deps.c (cache_size): Make it static.
16340
16341         * stor-layout.c (lang_adjust_rli): Make it static.
16342
16343 2005-03-08  Julian Brown  <julian@codesourcery.com>
16344
16345         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
16346         from being used for symbols with vague linkage when
16347         HAVE_GAS_COMDAT_GROUP is true.
16348
16349 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
16350
16351         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
16352         nlabel == JUMP_LABEL (jump).
16353
16354 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16355
16356         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
16357         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
16358         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
16359         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
16360
16361 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
16362
16363         PR c/14411
16364         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
16365         * c-common.c (handle_returns_twice): New function.
16366         (c_common_attribute_table): Declare eturns_twice' attribute.
16367         * doc/extend.texi: Document eturns_twice' attribute.
16368         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
16369         (struct tree_decl): Add returns_twice_flag.
16370
16371 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16372
16373         * tree-ssa-phiopt.c: Fix a comment typo.
16374
16375         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
16376         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
16377         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
16378         copyright.
16379
16380 2005-03-08  Richard Henderson  <rth@redhat.com>
16381
16382         * config/alpha/alpha.c (code_for_builtin): Replace special-case
16383         builtin codes with ctzdi2, clzdi2, popcountdi2.
16384         (struct alpha_builtin_def): Add is_const.
16385         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
16386         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
16387         (alpha_init_builtins): Init them.  Set nothrow and const attributes
16388         on builtins.
16389         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
16390         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
16391         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
16392         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
16393         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
16394         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
16395         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
16396         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
16397         (TARGET_FOLD_BUILTIN): New.
16398         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
16399         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
16400         (ffsdi2): Use ctz.
16401         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
16402
16403 2005-03-08  Ira Rosen  <irar@il.ibm.com>
16404
16405         PR tree-optimization/20122
16406         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
16407         condition of access function instead of base.
16408
16409 2005-03-07  Jeff Law  <law@redhat.com>
16410             Steven Bosscher  <stevenb@suse.de>
16411
16412         * tree-cfg.c (find_taken_edge_computed_goto): New function.
16413         (find_taken_edge): Call find_taken_edge_computed_goto as
16414         appropriate.  Allow any gimple invariant rather than just
16415         INTEGER_CST for VAL.
16416         (cleanup_control_flow): Cleanup a computed goto which has turned
16417         into a simple goto.
16418         (tree_merge_blocks): If block B has any forced labels, move
16419         them to the start of block A.
16420         * tree-ssa-dom.c (thread_across_edge): Allow threading across
16421         computed gotos as well.
16422         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
16423         removal of unnecessary computed gotos too.
16424         (lookup_redirection_data): Fix type of INSERT argument.  Callers
16425         updated.
16426
16427 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16428
16429         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
16430         Remove trailing spaces.
16431
16432         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
16433         unshare_all_trees): Make them static.
16434         * tree-gimple.h: Remove the corresponding prototypes.
16435
16436         * diagnostic.h: Remove unused prototype
16437         debug_output_buffer.
16438         * modulo-sched.c: Remove unused prototype
16439         set_row_column_for_ps.
16440
16441         * tree-ssa-phiopt.c (tree_ssa_phiopt,
16442         replace_phi_edge_with_variable): Remove unused variable i.
16443
16444 2005-03-07  Per Bothner  <per@bothner.com>
16445
16446         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
16447
16448 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
16449
16450         PR tree-opt/17671
16451         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
16452         bbs on the COND_EXPR instead of the PHI_NODEs.
16453         (candidate_bb_for_phi_optimization): Remove.
16454         (replace_phi_with_stmt): Rename to ...
16455         (replace_phi_edge_with_variable): this and change so that we
16456         replace the phi argument instead of removing the PHI.
16457         (conditional_replacement): Change so we deal with PHI with more
16458         than two arguments.
16459         (value_replacement): Likewise.
16460         (abs_replacement): Likewise.
16461
16462 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
16463
16464         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
16465         output_e500_flip_gt_bit.
16466
16467         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
16468         as bit 31.
16469         (rs6000_generate_compare): Fix logic to look at the correct bits.
16470         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
16471         Look at GT bit.
16472         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
16473         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
16474         gen_move_from_CR_gt_bit.
16475
16476         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
16477         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
16478         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
16479
16480         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
16481         (E500_CR_IOR_COMPARE): New constant.
16482
16483 2005-03-08  Earl Chew <earl_chew@agilent.com>
16484             David Billinghurst <David.Billinghurst@riotinto.com>
16485
16486         * config/i386/host-cygwin.c: New file to support precompiled
16487         headers on cygwin
16488         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
16489         * config.host: Use above files for cygwin host.
16490
16491 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
16492
16493         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
16494         ordering ops from earlier change.
16495
16496 2005-03-07  Per Bothner  <per@bothner.com>
16497
16498         Various fixes to allow us to again build if --enable-mapped-location:
16499         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
16500         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
16501         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
16502         local variable loc. Change logic appropriately.
16503         * tree-vect-transform.c (vect_finish_stmt_generation): Use
16504         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
16505         * c-parser.c (c_parser_for_statement): Initialize loc variable.
16506         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
16507         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
16508
16509 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
16510
16511         PR rtl-optimization/19683
16512         * reload1.c (choose_reload_regs): Pass the number of bits, not the
16513         number of bytes, to smallest_int_for_mode.  Fix arguments to
16514         REG_CANNOT_CHANGE_MODE_P.
16515
16516 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
16517
16518         * reorg.c (relax_delay_slots): Check that the jump is
16519         conditional before trying to invert it.
16520
16521 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
16522
16523         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
16524         Make them static.
16525
16526         * calls (stack_arg_under_construction): Make it static.
16527
16528         * flow.c (regs_live_at_setjmp): Make it static.
16529         * flow.h: Remove the corresponding prototype.
16530
16531         * reload1.c (reload_startobj, reload_firstobj,
16532         something_needs_operands_changed, reload_inherited,
16533         reload_inheritance_insn, reload_override_in,
16534         reload_spill_index): Make them static.
16535
16536         * recog.c (verify_changes): Make it static.
16537         * recog.h: Remove the corresponding prototype.
16538
16539         * cfgbuild.c (find_sub_basic_blocks): Remove.
16540         * basic-block.h: Remove the corresponding prototype.
16541         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
16542         in comments.
16543         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
16544
16545         * tree-ssa-operands.c (check_build_stmt): Remove.
16546
16547         * stor-layout.c (set_alignment): Remove.
16548         * tree.h: Remove the corresponding prototype.
16549
16550         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
16551
16552         * tree-ssa-dce.c (control_dependence_map,
16553         visited_control_parents): Make them static.
16554
16555         * cfghooks.c (verify_flow_info): Remove local variable
16556         num_bb_notes.
16557
16558         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
16559         last_bb_seen.
16560
16561         * loop-unswitch.c (unswitch_loop): Remove local variable src.
16562
16563 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
16564
16565         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
16566
16567 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
16568
16569         * config/ia64/hpux.h (LINK_SPEC): Add -z.
16570         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
16571         PARALLEL for an empty structure.
16572
16573 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
16574
16575         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
16576
16577         * fold-const.c (fold_binary): Unroll the very first "for"
16578         loop.
16579
16580 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
16581
16582         * config/rs6000/predicates.md (branch_comparison_operator): Remove
16583         redundant match_code test.
16584         (scc_comparison_operator): Swap match_operand and match_code
16585         tests.
16586         (branch_positive_comparison_operator): Same.
16587         (trap_comparison_operator): Use comparison_operator and swap with
16588         match_code test.
16589
16590 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16591
16592         PR target/20288
16593         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
16594         (out_movhi_r_mr): Read low byte of volatile MEM first.
16595         (out_movhi_mr_r): Write high byte of volatile MEM first.
16596
16597 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16598
16599         * cselib.c (reg_values, reg_values_size): Make them static.
16600
16601         * cse.c (cse_reg_info_table): Make it static.
16602
16603         * fold-const.c (fold_unary): Use build1 instead of copy_node.
16604
16605 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
16606
16607         * cse.c (find_best_addr): Use canon_for_address.
16608
16609 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16610
16611         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
16612         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
16613         SUBREG and MEM, respectively.
16614
16615         * fold-const.c (fold_binary): Use code instead of t.
16616
16617         * fold-const.c (optimize_minmax_comparison): Take decomposed
16618         arguments code, type, op0, and op1 instead of t.
16619         (fold_binary): Update a call to optimize_minmax_comparison.
16620
16621         * fold-const.c (fold_range_test): Take decomposed arguments
16622         code, type, op0, and op1 instead of t.
16623         (fold_binary): Update a call to fold_range_test.
16624
16625         * fold-const.c (fold_binary_op_with_conditional_arg): Take
16626         decomposed arguments code, type, op0, and op1 instead of t.
16627         (fold_binary): Update a call to fold_range_test.
16628
16629 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
16630
16631         * fold-const.c (fold_binary): Avoid directly using the original
16632         expression t as much as possible.
16633
16634 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16635
16636         * c-semantics.c (build_stmt): Use TYPE_P instead of
16637         IS_NON_TYPE_CODE_CLASS.
16638         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
16639         (NON_TYPE_CHECK): Use TYPE_P instead of
16640         IS_NON_TYPE_CODE_CLASS.
16641
16642         * fold-const.c (fold): Remove handling of binary expressions.
16643
16644 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
16645
16646         * doc/c-tree.texi: Wrap comments in @r{}.
16647         * doc/cpp.texi: Likewise.
16648         * doc/cppinternals.texi: Likewise.
16649         * doc/extend.texi: Likewise.
16650         * doc/md.texi: Likewise.
16651         * doc/objc.texi: Likewise.
16652         * doc/sourcebuild.texi: Likewise.
16653         * doc/tm.texi: Likewise.
16654         * doc/tree-ssa.texi
16655
16656 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
16657
16658         * predict.c (apply_return_prediction): Standardize PHI chain
16659         walking.
16660         * tree-ssa.c (ssa_redirect_edge): Likewise.
16661
16662         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
16663         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
16664         Update copyright.
16665
16666         * tree-phinodes.c (remove_phi_node): Drop the last argument.
16667         * tree-flow.h: Adjust the prototype for remove_phi_node.
16668         * lambda-code.c (perfect_nestify): Adjust a call to
16669         remove_phi_node.
16670         * tree-cfg.c
16671         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
16672         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
16673         Likewise.
16674         * tree-ssa-dce.c (remove_dead_phis): Likewise.
16675         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
16676         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
16677         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
16678
16679         * combine.c (simplify_and_const_int): Use gen_int_mode instead
16680         of GEN_INT (trunc_int_for_mode (...)).
16681         * loop-iv.c (iv_number_of_iterations): Likewise.
16682         * postreload.c (reload_cse_move2add): Likewise.
16683         * simplify-rtx.c (simplify_const_unary_operation,
16684         simplify_const_binary_operation): Likewise.
16685         * stor-layout.c (get_mode_bounds): Likewise.
16686
16687         * fold-const.c (fold_binary): New.
16688         (fold): Call fold_binary on binary expressions.
16689
16690 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
16691
16692         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
16693         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
16694         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
16695         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
16696         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
16697
16698 2005-03-04  Devang Patel  <dpatel@apple.com>
16699
16700         PR tree-optimization/18815
16701         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
16702         loops with zero exit edges.
16703
16704 2005-03-04  Devang Patel  <dpatel@apple.com>
16705
16706         * doc/invoke.texi: Remove reference to webpage that does not exist.
16707
16708 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
16709             Joseph S. Myers  <joseph@codesourcery.com>
16710
16711         PR c++/19797
16712         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
16713         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
16714         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
16715         * pa.c (get_plabel): Change argument to symbol_ref.  Call
16716         maybe_get_identifier instead of get_identifier.
16717         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
16718         (struct deferred_plabel): Replace name field with symbol field.
16719         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
16720         ASM_OUTPUT_EXTERNAL_REAL is defined.
16721         (output_global_address): Use output_addr_const for output of all
16722         symbol_refs.
16723         (output_deferred_plabels): Use symbol_ref instead of name for address
16724         output.
16725         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
16726         ASM_OUTPUT_SYMBOL_REF): New macros.
16727         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
16728         comment.
16729         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
16730         label.
16731
16732 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
16733
16734         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
16735         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
16736
16737 2005-03-04  Jeff Law  <law@redhat.com>
16738
16739         * basic-block.h (rediscover_loops_after_threading): Declare.
16740         * tree-ssa-dom.c: Include cfgloop.h.
16741         (tree_ssa_dominator_optimize): Discover loops and some basic
16742         properties.  Remove forwarder blocks recreated by loop header
16743         canonicalization.  Also mark backedges in the CFG.
16744         * tree-ssa-threadupdate.c: Include cfgloop.h
16745         (rediscover_loops_after_threading): Define.
16746         (struct local_info): New field, JUMP_THREADED.
16747         (prune_undesirable_thread_requests): New function.
16748         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
16749         then record that fact for the callers of redirct_edges.
16750         (thread_block): If BB has incoming backedges, then call
16751         prune_undesirable_thraed_requests.    Note when we are
16752         going to have to rediscover loop information.  Return a
16753         boolean indicating if any jumps were threaded.
16754         (thread_through_all_blocks): Bubble up boolean indicating
16755         if any jumps were threaded.
16756         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
16757         (tree-ssa-threadupdate.o): Similarly.
16758
16759 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
16760
16761         * fold-const.c (fold_ternary): Unroll the "for" loop to
16762         extract operands.
16763
16764 2005-03-04  Andrew Haley  <aph@redhat.com>
16765
16766         * unwind-dw2-fde-glibc.c (struct
16767         unw_eh_callback_data.check_cache): New field.
16768         (frame_hdr_cache): New.
16769         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
16770         Cache frame header info.
16771
16772 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
16773
16774         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
16775         (print_c_condition): Declare.
16776         * read-rtl.c (ptr_loc): New structure.
16777         (ptr_locs, ptr_loc_obstack, joined_conditions)
16778         (joined_conditions_obstack): New variables.
16779         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
16780         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
16781         (join_c_conditions, print_c_condition): New functions.
16782         (apply_macro_to_string): Associate the new string with the same
16783         source location as the old one.
16784         (add_condition_to_string): Use join_c_conditions.
16785         (read_string): Use set_rtx_ptr_loc to record a filename and line
16786         number for the string.
16787         (read_rtx): Initialize the new variables above.
16788         * genattrtab.c (write_test_expr, write_attr_value): Use
16789         print_c_condition.
16790         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
16791         comment above the GCC_VERSION check.
16792         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
16793         Inline the definition of MAYBE_EVAL.
16794         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
16795         * genoutput.c (process_template): Likewise.
16796         * genpreds.c (write_predicate_subfunction): Likewise.
16797         (write_predicate_expr): Use print_c_condition.
16798         * genrecog.c (write_cond): Likewise.
16799         * gensupport.c (process_rtx): Use join_c_conditions to join the
16800         conditions of a define_insn_and_split.  Record a source location
16801         for the string after the "&&".
16802         (alter_test_for_insn): Use join_c_conditions.
16803
16804 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
16805
16806         Revert for now:
16807         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
16808         PR tree-optimization/15784
16809         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
16810         and -1 - A to ~A.
16811
16812 2005-03-04  Ben Elliston  <bje@au.ibm.com>
16813
16814         * gcc.c (option_map): Add --coverage.
16815         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
16816         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
16817         * config/darwin.h: Pass -lgcov for `coverage'.
16818         * doc/invoke.texi (Debugging Options): Document --coverage.
16819
16820 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
16821
16822         * gcse.c (bypass_block): Use find_edge wherever possible.
16823
16824 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
16825
16826         Fix PR debug/20253
16827
16828         * c-opts.c (c_common_parse_file): Call start_source_file
16829         and end_source_file at the approriate times.
16830
16831         * dwarf2out.c (dwarf2out_finish): Don't auto-end
16832         the main file, it will be done for us now.
16833
16834 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
16835
16836         * fold-const.c (fold_ternary): New.
16837         (fold): Call fold_ternary on ternary expressions.  Remove
16838         handling of ternary expressions.
16839
16840 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
16841
16842         PR tree-optimization/15784
16843         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
16844         and -1 - A to ~A.
16845
16846 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
16847
16848         * config/rs6000/predicates.md (branch_comparison_operator):
16849         Convert from C block to conditional format.
16850
16851 2005-03-03  Jan Hubicka  <jh@suse.cz>
16852
16853         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
16854         and non-constant public variables.
16855
16856 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
16857
16858         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
16859         with LABEL_EXPR.
16860
16861         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
16862         EDGE_I.
16863
16864         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
16865         calls to release_ssa_name and release_phi_node.
16866
16867         * fold-const.c (fold): Remove handling of unary expressions.
16868
16869         * fold-const.c (fold_unary): Avoid directly using the original
16870         expression t as much as possible.
16871
16872 2005-03-03  Roger Sayle  <roger@eyesopen.com>
16873             Andrew Pinski  <pinskia@physics.uc.edu>
16874
16875         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
16876         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
16877
16878 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
16879
16880         Describe special registers SRP and MOF as allocatable registers.
16881         * config/cris/cris.c (cris_md_asm_clobbers): New function.
16882         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
16883         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
16884         TARGET_HAS_MUL_INSNS.
16885         (cris_print_operand) <case 'd'>: New case.
16886         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
16887         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
16888         define.
16889         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
16890         (REG_ALLOC_ORDER): Update for MOF.
16891         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
16892         SPECIAL_REGS.
16893         (GENERAL_REGS): No longer a define of ALL_REGS.
16894         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
16895         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
16896         Adjust accordingly.
16897         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
16898         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
16899         (SECONDARY_RELOAD_CLASS): Define.
16900         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
16901         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
16902         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
16903         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
16904         (REGISTER_MOVE_COST): Define.
16905         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
16906         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
16907         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
16908         (CRIS_MOF_REGNUM): New define_constants.
16909         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
16910         special registers.
16911         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
16912         New patterns.
16913         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
16914         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
16915         Adjust for MOF being properly described as a register.
16916         (indir_to_reg_split): Name this split.  Conditionalize on the
16917         destination register being a general register.
16918         (movei): Conditionalize on on operands 0 and 1 having the same
16919         register class.
16920
16921 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
16922
16923         PR target/20277
16924         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
16925         -mcpu to override any other explicitly given flags.
16926
16927 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
16928
16929         * recog.c (verify_changes, confirm_change_group): New functions,
16930         broken out of apply_change_group.
16931         (apply_change_group): Use them.
16932         * recog.h (verify_change, confirm_change_group): Declare.
16933         * rtl.h (redirect_jump_2): Declare.
16934         * jump.c (redirect_exp, invert_exp): Delete.
16935         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
16936         (redirect_jump_2): New function, broken out of redirect_jump.
16937         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
16938         (invert_jump): Use invert_jump_1 and redirect_jump_2.
16939         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
16940
16941 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
16942
16943         * varasm.c (named_section): Use xstrdup rather than doing it by
16944         hand.
16945
16946         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
16947
16948 2005-03-02  Devang Patel  <dpatel@apple.com>
16949
16950         Undo PR tree-optimization/18815 fix.
16951
16952 2005-03-02  Devang Patel  <dpatel@apple.com>
16953
16954         PR tree-optimization/18815
16955         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
16956         loops with zero exit edges.
16957
16958 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
16959
16960         * cfg.c (connect_src, connect_dest, disconnect_src,
16961         disconnct_dest): New.
16962         (unchecked_make_edge, remove_edge, redirect_edge_succ,
16963         redirect_edge_pred): Use the new functions.
16964
16965         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
16966         free_dominance_info only when needed.
16967
16968 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
16969
16970         PR target/20276
16971         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
16972         (reg_or_sub_cint64_operand): Same.
16973
16974 2005-03-02  Jeff Law  <law@redhat.com>
16975
16976         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
16977         CFG_ALTERED in the main DOM iteration loop.
16978
16979 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
16980
16981         PR c++/19916
16982         * varasm.c (initializer_constant_valid_p): Allow conversions
16983         between OFFSET_TYPEs.  Tidy.
16984
16985 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
16986
16987         * config/cris/cris.md ("return"): Remove epilogue delay list
16988         sanity check.
16989
16990 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
16991
16992         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
16993         for Thumb.
16994         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
16995
16996 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
16997
16998         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
16999         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
17000         config/m68k/m68k.c, config/mips/mips.h,
17001         config/rs6000/rs6000-protos.h, doc/contrib.texi,
17002         doc/include/gcc-common.texi: Update copyright.
17003
17004         PR middle-end/18029 and PR middle-end/18030
17005         * expr.c (optimize_bitfield_assignment_op): Add a special case
17006         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
17007
17008         * fold-const.c (fold_unary): New.
17009         (fold): Call fold_unary on unary expressions.
17010
17011 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
17012
17013         * cgraph.h (struct cgraph_edge): Add prev_caller and
17014         prev_callee fields.
17015         (cgraph_node_remove_callees): Export.
17016         * cgraph.c (cgraph_create_edge): Initialize prev_caller
17017         and prev_callee.
17018         (cgraph_edge_remove_callee): New function.
17019         (cgraph_edge_remove_caller): Likewise.
17020         (cgraph_remove_edge): Use.
17021         (cgraph_redirect_edge_callee): Likewise.
17022         (cgraph_node_remove_callees): New function.
17023         (cgraph_node_remove_callers): Likewise.
17024         (cgraph_remove_node): Use.
17025         * tree-optimize.c (tree_rest_of_compilation): Use
17026         cgraph_node_remove_callees instead of manual loop.
17027         * cgraphunit.c (cgraph_finalize_function): Likewise.
17028         (cgraph_expand_function): Likewise.
17029         (cgraph_remove_unreachable_nodes): Likewise.
17030
17031 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
17032
17033         PR c/8927
17034         * c-tree.h (undeclared_variable, build_external_ref): Add extra
17035         argument.
17036         * c-decl.c (undeclared_variable): Take location as argument.
17037         * c-typeck.c (build_external_ref): Likewise.
17038         * c-parser.c (c_parser_postfix_expression): Pass location of
17039         identifier to build_external_ref.
17040
17041 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
17042
17043         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
17044         CCEQ mode for branch_positive_comparison_operator test.
17045         * config/rs6000/predicates (branch_comparison_operator): Revert to
17046         define_predicate.
17047         (scc_comparison_operator): Same.
17048         (branch_positive_comparison_operator): Same.
17049
17050 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
17051
17052         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
17053         (cris_delay_slots_for_epilogue): Remove.
17054         (save_last): Move into cris_target_asm_function_epilogue.
17055         (cris_target_asm_function_epilogue): Remove tests for file being
17056         NULL.
17057         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
17058         (cris_delay_slots_for_epilogue): Remove prototypes.
17059         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
17060         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
17061
17062 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
17063
17064         * config/rs6000/predicates.md (branch_comparison_operator): Change
17065         to define_special_predicate.
17066         (scc_comparison_operator): Same.
17067         (branch_positive_comparison_operator): Same.
17068
17069 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
17070
17071         * Makefile.in (tree-ssa-sink.o): New.
17072         (OBJS-common): Add tree-ssa-sink.o.
17073         * common.opt: Add -ftree-sink
17074         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
17075         * timevar.def (TV_TREE_SINK): new timevar.
17076         * tree-flow.h (is_hidden_global_store): Prototype.
17077         * tree-optimize.c (init_tree_optimization_passes): Add
17078         pass_sink_code.
17079         * tree-pass.h (pass_sink_code): New.
17080         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
17081         for non-obvious global store store to is_hidden_global_store, and
17082         call that new function.
17083         * tree-ssa-sink.c: New file.
17084         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
17085         * doc/passes.texi: Document forward store motion.
17086         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
17087         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
17088         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
17089         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
17090
17091 2005-03-01  Per Bothner  <per@bothner.com>
17092
17093         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
17094         and we have a non-zero column-number, add it to the message.
17095         Also factor out the diagnostic_kind_text.
17096
17097 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
17098
17099         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
17100         flow_loop_pre_header_scan, flow_loop_pre_header_find,
17101         flow_loop_scan): Removed.
17102         (flow_loop_dump): Do not dump removed fields.
17103         (flow_loop_free): Do not free removed fields.
17104         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
17105         (loop_exit_edge_p): New function.
17106         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
17107         num_pre_header_edges, entry_edges, num_entries, exit_edges,
17108         num_exits, exits_doms.
17109         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
17110         LOOP_EDGES, LOOP_ALL): Removed.
17111         (flow_loop_scan): Declaration removed.
17112         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
17113         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
17114         flow_loops_find.
17115         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
17116         (if_convert): Call flow_loops_find and flow_loops_free
17117         when calling mark_loop_exit_edges.
17118         * cfgloopanal.c (mark_loop_exit_edges): Moved from
17119         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
17120         free_dominance_info calls.
17121         * loop-init.c (flow_loops_find): Ditto.
17122         * passes.c (rest_of_handle_branch_prob): Ditto.
17123         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
17124         * loop-unroll.c (analyze_insns_in_loop): Do not use
17125         EDGE_LOOP_EXIT.
17126         * predict.c (predict_loops): Do not call flow_loop_scan.
17127         Use get_loop_exit_edges.
17128         (tree_estimate_probability): Do not pass flags to flow_loops_find.
17129         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
17130         Do not use EDGE_LOOP_EXIT.
17131         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
17132         to bb_with_exit_edge_p.
17133         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
17134         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
17135         to bb_with_exit_edge_p.
17136         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
17137         EDGE_LOOP_EXIT.
17138         * tree-loop-linear.c (linear_transform_loops): Do not call
17139         flow_loop_scan.  Use loop->single_exit.
17140         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
17141         (vect_analyze_loop_form): Do not call flow_loop_scan.
17142         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
17143         loop->single_exit.
17144         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
17145         loop->single_exit.
17146         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
17147         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
17148         slpeel_tree_duplicate_loop_to_edge_cfg,
17149         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
17150         Use loop_preheader_edge and loop->single_exit.  Do not call
17151         flow_loop_scan.
17152
17153 2005-03-01  Nick Clifton  <nickc@redhat.com>
17154
17155         * config/arm/arm.c (thumb_find_work_register): Check all of the
17156         argument registers to see if they are free, and a couple of
17157         special cases where the last argument register but can be proved
17158         to be available during the function's prologue.
17159         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
17160         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
17161         thumb_unexpanded_epilogue): Use unsigned long as the type for the
17162         register bit-mask.
17163         (thumb_compute_save_reg_mask): Likewise.  Also use
17164         thumb_find_work_register() to ensure that there is agreement about
17165         which work register is going to be used in the prologue.
17166         (thumb_output_function_prologue): Use unsigned long as the type
17167         for the register bit-mask.  Also delay pushing the link register if
17168         other high registers are going to be pushed.
17169         (thumb_compute_save_reg_mask, emit_multi_reg_push,
17170         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
17171         redundant prototypes.
17172
17173 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
17174
17175         PR target/19819
17176         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
17177         and after reload in REG+REG indexed addresses without REG_POINTER
17178         set in the base and not set in the index.
17179
17180 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17181
17182         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
17183         Don't undefine here.
17184         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
17185         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
17186         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
17187         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
17188         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
17189         Delete.
17190         * config.gcc (sh*-*-linux*): Use config/linux.h.
17191
17192 2005-02-28  Dale Johannesen  <dalej@apple.com>
17193             Stan Shebs  <shebs@apple.com>
17194
17195         Rewrite of 64-bit Darwin structure-by-value pass/return.
17196         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
17197         intoffset, use_stack, named.
17198         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
17199         (rs6000_darwin64_record_arg_advance_flush):  New.
17200         (rs6000_darwin64_record_arg_advance_recurse): New.
17201         (rs6000_darwin64_record_arg_flush):  New.
17202         (rs6000_darwin64_record_arg_recurse):  New.
17203         (rs6000_darwin64_record_arg):  New.
17204         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
17205         (function_arg_boundary):  Handle 128-bit aligned structs.
17206         (function_arg_advance):  Rewrite darwin64 struct handling.
17207         (function_arg):  Call rs6000_darwin64_record_arg.
17208         (function_arg_partial_nregs):  Handle darwin64 structs.
17209         (rs6000_darwin64_function_value):  Remove.
17210         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
17211
17212 2005-02-28  Roger Sayle  <roger@eyesopen.com>
17213
17214         PR tree-optimization/20216
17215         * tree-chrec.c (tree_fold_factorial): Delete.
17216         (tree_fold_binomial): Change argument list to take a return type
17217         and change the type of K to unsigned int.  Rewrite to avoid explicit
17218         evaluation of factorials, and (recursively) calling fold to perform
17219         compile-time arithmetic.  Return NULL on (internal) overflow.
17220         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
17221         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
17222         if any intermediate calculation overflows.
17223         (chrec_apply): Update call to chrec_evaluate.
17224
17225 2005-02-28  James E Wilson  <wilson@specifixinc.com>
17226
17227         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
17228
17229 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
17230
17231         PR c/20245
17232         * c-parser.c (c_parser_compound_statement): Return error_mark_node
17233         instead of NULL_TREE on error.
17234
17235 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
17236
17237         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
17238         (EASY_VECTOR_15_ADD_SELF): Remove.
17239         (num_insns_constant_wide): Not static.
17240         (validate_condition_mode): Not static.
17241         (toc_relative_expr_p): Not static.
17242         (legitimate_indirect_address_p): Not static.
17243         (macho_lo_sum_memory_operand): Not static.
17244         (invalid_e500_subreg): Not static.
17245         (easy_vector_same): Not static.
17246         (easy_vector_splat_const): Not static.
17247         (RS6000_SYMBOL_REF_TLS_P): Remove.
17248         (any_operand): Delete.
17249         (any_parallel_operand): Delete.
17250         (count_register_operand): Delete.
17251         (altivec_register_operand): Delete.
17252         (xer_operand): Delete.
17253         (s8bit_cint_operand): Delete.
17254         (short_cint_operand): Delete.
17255         (u_short_cint_operand): Delete.
17256         (non_short_cint_operand): Delete.
17257         (exact_log2_cint_operand): Delete.
17258         (gpc_reg_operand): Delete.
17259         (cc_reg_operand): Delete.
17260         (cc_reg_not_cr0_operand): Delete.
17261         (reg_or_short_operand): Delete.
17262         (reg_or_neg_short_operand): Delete.
17263         (reg_or_aligned_short_operand): Delete.
17264         (reg_or_u_short_operand): Delete.
17265         (reg_or_cint_operand): Delete.
17266         (reg_or_arith_cint_operand): Delete.
17267         (reg_or_add_cint64_operand): Delete.
17268         (reg_or_sub_cint64_operand): Delete.
17269         (reg_or_logical_cint_operand): Delete.
17270         (got_operand): Delete.
17271         (got_no_const_operand): Delete.
17272         (easy_fp_constant): Delete.
17273         (easy_vector_constant): Delete.
17274         (easy_vector_constant_add_self): Delete.
17275         (zero_constant): Delete.
17276         (zero_fp_constant): Delete.
17277         (volatile_mem_operand): Delete.
17278         (offsettable_mem_operand): Delete.
17279         (mem_or_easy_const_operand): Delete.
17280         (add_operand): Delete.
17281         (non_add_cint_operand): Delete.
17282         (logical_operand): Delete.
17283         (non_logical_cint_operand): Delete.
17284         (mask_operand): Delete.
17285         (mask_operand_wrap): Delete.
17286         (mask64_operand): Delete.
17287         (mask64_2_operand): Delete.
17288         (and64_operand): Delete.
17289         (and64_2_operand): Delete.
17290         (and_operand): Delete.
17291         (reg_or_mem_operand): Delete.
17292         (lwa_operand): Delete.
17293         (symbol_ref_operand): Delete.
17294         (call_operand): Delete.
17295         (current_file_function_operand): Delete.
17296         (input_operand): Delete.
17297         (rs6000_nonimmediate_operand): Delete.
17298         (rs6000_tls_symbol_ref): Delete.
17299         (save_world_operation): Delete.
17300         (restore_world_operation): Delete.
17301         (load_multiple_operation): Delete.
17302         (store_multiple_operation): Delete.
17303         (vrsave_operation): Delete.
17304         (mfcr_operation): Delete.
17305         (mtcrf_operation): Delete.
17306         (lmw_operation): Delete.
17307         (stmw_operation): Delete.
17308         (branch_comparison_operator): Delete.
17309         (branch_positive_comparison_operator): Delete.
17310         (scc_comparison_operator): Delete.
17311         (trap_comparison_operator): Delete.
17312         (boolean_operator): Delete.
17313         (boolean_or_operator): Delete.
17314         (min_max_operator): Delete.
17315         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
17316         (EASY_VECTOR_15): Moved to here.
17317         (EASY_VECTOR_15_ADD_SELF): Move to here.
17318         (PREDICATE_CODES): Delete.
17319         * config/rs6000/rs6000-protos.h: Delete predicate functions.
17320         Declare functions no longer static.
17321         * config/rs6000/predicates.md: New.
17322         * config/rs6000/rs6000.md: Include predicates.md
17323
17324 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
17325
17326         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
17327         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
17328         REG_ALWAYS_RETURN.
17329         * cfgrtl.c (need_fake_edge_p): Likewise.
17330         * combine.c (distribute_notes): Likewise.
17331         * emit-rtl.c (try_split): Likewise.
17332         * recog.c (peephole2_opimize): Likewise.
17333         * reg-notes.def (ALWAYS_RETURN): Remove.
17334         * rtl.h (LCT_ALWAYS_RETURN): Remove.
17335         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
17336         * tree.h (ECF_ALWAYS_RETURN): Remove.
17337
17338 2005-02-28  Roger Sayle  <roger@eyesopen.com>
17339
17340         PR middle-end/19874
17341         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
17342         between different machine modes is never a "useless" conversion.
17343
17344 2005-02-28  Geert Bosch  <bosch@gnat.com>
17345
17346         PR ada/15977
17347         * doc/contrib.texi: List contributors for Ada front end
17348
17349 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
17350
17351         * simplify-rtx.c (simplify_unary_operation_1,
17352         simplify_const_unary_operation): New, extracted from...
17353         (simplify_unary_operation): ... this one.
17354         (simplify_binary_operation_1,
17355         simplify_const_binary_operation): New, extracted from...
17356         (simplify_binary_operation): ... this one.
17357         * rtl.h (simplify_const_unary_operation,
17358         simplify_const_binary_operation): Add prototypes.
17359
17360 2005-02-28  Julian Brown  <julian@codesourcery.com>
17361
17362         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
17363         building libjava and caused PR regression/20228.
17364
17365 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
17366
17367         PR bootstrap/17383
17368         * Makefile.in (host_subdir): New.
17369         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
17370         * configure: Regenerate.
17371
17372 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
17373
17374         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
17375         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
17376         installation directory first.
17377
17378 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
17379
17380         PR target/19065.
17381         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
17382         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
17383         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
17384         * config/cris/cris.md: Tweak comments referring to Q.
17385         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
17386         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
17387         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
17388         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
17389         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
17390         Insert spaces in constraints to align alternatives vertically for
17391         readability.
17392         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
17393         operand 1: "M".
17394
17395 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17396
17397         PR rtl-optimization/17728
17398         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
17399         operand 0 from general_operand to move_dest_operand.
17400
17401 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17402
17403         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
17404         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
17405         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
17406         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
17407
17408 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
17409
17410         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
17411         * configure: Regenerate.
17412         * libada-mk.in: Remove CC; rename
17413         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
17414
17415 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
17416
17417         PR tree-opt/20188
17418         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
17419         for the lhs, also walk over the tree.  Likewise for rhs.
17420
17421 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
17422
17423         * tree-ssa-dom.c (simple_iv_increment_p): New function.
17424         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
17425         Do not propagate value of iv before increment over the increment.
17426
17427 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
17428
17429         * c-parser.c: New file.
17430         * c-parse.in: Remove.
17431         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
17432         Remove.
17433         (c-parser.o): Add dependencies.
17434         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
17435         maintainer-clean, TAGS): Update.
17436         * c-config-lang.in (gtfiles): Update.
17437         * gengtype-lex.l: Don't handle "@@".
17438         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
17439         objc_build_synchronized, objc_begin_try_stmt,
17440         objc_begin_catch_clause, objc_finish_catch_clause,
17441         objc_build_finally_clause, objc_finish_try_stmt): New.
17442         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
17443         type_seen_p.
17444         (c_parse_init): Update comment.
17445         * c-decl.c (c_init_decl_processing): Update comment.
17446         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
17447         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
17448         new c_declspecs members.
17449
17450 2005-02-25  Julian Brown  <julian@codesourcery.com>
17451
17452         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
17453         from being used for symbols with vague linkage when
17454         HAVE_GAS_COMDAT_GROUP is true.
17455
17456 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
17457
17458         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
17459
17460 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
17461
17462         PR target/19930
17463         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
17464         (LIBGCC2_HAS_DF_MODE): New.
17465         (LIBGCC2_HAS_XF_MODE): New.
17466         (LIBGCC2_HAS_TF_MODE): New.
17467         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
17468         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
17469         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
17470         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
17471         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
17472         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
17473         and add _fixtfdi, _fixunstfdi, _floatditf
17474         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
17475         L_fixunstfdi, L_floatditf.
17476         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
17477         (LIBGCC2_HAS_TF_MODE): Define.
17478
17479 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
17480
17481         PR tree-optimization/20204
17482         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
17483         REWRITE_THIS_STMT markers on PHI nodes.
17484         (rewrite_initialize_block): Likewise.
17485
17486 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
17487
17488         * version.c (version_string): Update to 4.1.
17489
17490 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
17491
17492         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
17493         Clarify that the alternative way doesn't work in GNU C++.
17494
17495 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
17496
17497         PR tree-optimization/19937
17498         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
17499         to the type of the induction variable.
17500
17501 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
17502
17503         PR rtl-optimization/20117
17504         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
17505         the block including noncopyable insn.
17506
17507 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
17508
17509         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
17510         calls to find_reg_note.
17511
17512 2005-02-24  Richard Henderson  <rth@redhat.com>
17513
17514         PR tree-opt/20127
17515         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
17516         the type.
17517
17518 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
17519
17520         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
17521         vector types if to use base reg for misaligned non-word ld/std.
17522
17523 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
17524
17525         PR target/14619
17526         * config/cris/cris.c (cris_target_asm_function_prologue): Create
17527         dwarf2 label manually and put it after, not before the prologue.
17528
17529 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
17530
17531         PR target/19019
17532         * reload.c (operands_match_p): Only increment register number for
17533         SCALAR_INT_MODE_P modes in multiple hard registers.
17534
17535         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
17536         Fix formatting.
17537
17538 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
17539
17540         * ChangeLog.5: Fix log message typo(s).
17541         * ChangeLog.7: Likewise.
17542         * ChangeLog.tree-ssa: Likewise.
17543         * cfgexpand.c: Fix comment typo(s).
17544         * conflict.c: Likewise.
17545         * defaults.h: Likewise.
17546         * dwarf2out.c: Likewise.
17547         * gcse.c: Likewise.
17548         * ggc-page.c: Likewise.
17549         * tree-eh.c: Likewise.
17550         * tree-ssa-dom.c: Likewise.
17551
17552 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
17553
17554         PR target/19019
17555         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
17556         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
17557         if SHARED is defined.
17558
17559         PR target/20196
17560         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
17561         allow splitting only if operands 0 and 3 don't overlap.
17562
17563 2005-02-24  Richard Henderson  <rth@redhat.com>
17564
17565         PR middle-end/19953
17566         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
17567         (fold_builtin_1): Call them.
17568         * fold-const.c (fold_complex_mult_parts): Split out from ...
17569         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
17570         (fold_complex_div_parts, fold_complex_div): New.
17571         (fold): Use them.
17572         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
17573
17574 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17575
17576         * tree-ssa-ccp.c (visit_assignment): Verify that result of
17577         VIEW_CONVERT_EXPR is_gimple_min_invariant.
17578
17579         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
17580         (print_node): Likewise.
17581         Print TYPE_SIZES_GIMPLIFIED.
17582
17583 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
17584
17585         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
17586         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
17587         operands as commutative in constraints.
17588
17589 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
17590
17591         * tree-into-ssa.c: Re-organize internal functions.
17592
17593 2005-02-24  Richard Henderson  <rth@redhat.com>
17594
17595         PR middle-end/18902
17596         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
17597         for c99.
17598         * common.opt (fcx-limited-range): New.
17599         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
17600         * toplev.c (flag_complex_method): Initialize to 1.
17601         (process_options): Set flag_complex_method to 0 if
17602         flag_cx_limited_range.
17603         * doc/invoke.texi (-fcx-limited-range): New.
17604
17605 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
17606
17607         * cse.c (delete_trivially_dead_insns): Speed up by using
17608         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
17609         prev_real_insn.
17610
17611 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
17612
17613         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
17614         functions when -mid-shared-library is being used.
17615
17616 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
17617
17618         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
17619         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
17620         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
17621         * system.h: Poison LINK_LIBGCC_SPECIAL.
17622
17623 2005-02-23  James E Wilson  <wilson@specifixinc.com>
17624
17625         * gengtype.c (note_insn_name): Make 1 element larger.
17626
17627 2005-02-23  Roger Sayle  <roger@eyesopen.com>
17628
17629         PR target/20018
17630         PR rtl-optimization/20097
17631         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
17632         BImode SUBREGs of SImode registers which confuse the ia64 backend.
17633
17634 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
17635
17636         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
17637         * t-aix52 (SHLIB_INSTALL): Same.
17638
17639 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
17640
17641         * genpreds.c: Update copyright.
17642
17643 2005-02-23  Michael Beach  <michaelb@ieee.org>
17644
17645         PR target/20159
17646         * config/sparc/t-elf (startup files): Assemble with CPP.
17647
17648 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
17649
17650         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
17651         (write_predicate_expr): Likewise.
17652
17653 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
17654
17655         PR tree-optimization/20100
17656         PR tree-optimization/20115
17657         * tree-optimize.c (init_tree_optimization_passes): Remove
17658         pass_maybe_create_global_var.
17659         * tree-pass.h (pass_maybe_create_global_var): Remove.
17660         * tree-ssa-alias.c (aliases_computed_p): Declare.
17661         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
17662         (count_calls_and_maybe_create_global_var): Remove.
17663         (pass_maybe_create_global_var): Remove.
17664         (init_alias_info): Do not declare aliases_computed_p.
17665         (maybe_create_global_var): If the function contains no
17666         call-clobbered variables and a mix of pure/const and regular
17667         function calls, create .GLOBAL_VAR.
17668         Mark all call-clobbered variables for renaming.
17669         (merge_pointed_to_info): Update comment.
17670         (add_pointed_to_var): Likewise.
17671         (is_escape_site): Likewise.
17672         Accept struct alias_info * instead of size_t *.
17673         Update all users.
17674         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
17675         as necessary.
17676         * tree-ssa-operands.c (get_call_expr_operands): If
17677         ALIASES_COMPUTED_P is false, do not add call-clobbering
17678         operands.
17679         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
17680         (delete_tree_ssa): Likewise.
17681
17682 2005-02-22  James E Wilson  <wilson@specifixinc.com>
17683
17684         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
17685         (do_compile): Do call it here.
17686
17687 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
17688
17689         PR rtl-optimization/20017.
17690         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
17691         rest_of_handle_cse2, rest_of_handle_gcse): Call
17692         delete_dead_jumptables immediately before calling cleanup_cfg.
17693
17694 2005-02-22  Devang Patel  <dpatel@apple.com>
17695
17696         PR 19952
17697         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
17698         all labels
17699
17700 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
17701
17702         * config/rs6000/aix.h (WINT_TYPE): Define.
17703
17704 2005-02-22  Stan Shebs  <shebs@apple.com>
17705
17706         * config/rs6000/rs6000.c (rs6000_override_options): Default to
17707         natural alignment for 64-bit Darwin.
17708         (rs6000_parse_alignment_option): Warn about uses of -malign-power
17709         on 64-bit Darwin.
17710         * doc/invoke.texi: Document this.
17711
17712 2005-02-22  DJ Delorie  <dj@redhat.com>
17713
17714         * c-common.c (c_common_type_for_mode): Pass the mode's precision
17715         to make_[un]signed_type, not the mode itself.
17716
17717 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
17718
17719         * cfg.c (cached_make_edge): Call make_edge if edge cache is
17720         not available.  Use tail calls wherever possible.
17721         (make_edge): Call unchecked_make_edge to create an edge.
17722
17723         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
17724         (coalesce_ssa_name): Don't check for
17725         SSANORM_USE_COALESCE_LIST.
17726         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
17727
17728 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
17729
17730         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
17731         (rewrite_into_ssa): ... here.
17732
17733 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
17734
17735         PR tree-optimization/19786
17736         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
17737         tag to another's may-alias bitmap when adding to the other's list.
17738
17739 2005-02-21  DJ Delorie  <dj@redhat.com>
17740
17741         * tree-ssa-loop-ivopts.c (computation_cost): Start register
17742         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
17743         registers in unsupported ways.
17744         * expmed.c (init_expmed): Likewise.
17745
17746 2005-02-21  Stan Cox  <scox@redhat.com>
17747
17748         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
17749
17750 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
17751
17752         * tree-cfg.c (fold_cond_expr_cond): New.
17753         (make_edges): Call fold_cond_expr_cond.
17754         (find_taken_edge): Accept nothing but INTEGER_CST.
17755         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
17756         and 1.
17757         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
17758
17759         * flow.c (delete_dead_jumptables): Speed up by scanning insns
17760         that do not belong to any basic block.
17761
17762 2005-02-21  Jeff Law  <law@redhat.com>
17763
17764         * cfganal.c (find_unreachable_blocks): Manually CSE load of
17765         e->dest.
17766
17767 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
17768
17769         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
17770         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
17771         Adjust their definitions.
17772         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
17773         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
17774
17775         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
17776         genautomata.c, langhooks.c, langhooks.h, system.h,
17777         config/arm/lib1funcs.asm: Update copyright.
17778
17779 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
17780
17781         * dbxout.c (dbxout_function_end): Emit Lscope label always.
17782
17783 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
17784
17785         PR bootstrap/13770
17786         * doc/install.texi: Document --with-gc.
17787
17788 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
17789
17790         * simplify-rtx.c (simplify_unary_operation): Add a missing
17791         "break" statement.
17792
17793 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
17794
17795         PR tree-optimization/18663
17796         * tree-ssa-dom.c (extract_range_from_cond): Return 0
17797         if the type has variable bounds.
17798
17799 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
17800
17801         * gcse.c: Remove an obsolete comment.
17802
17803         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
17804
17805 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
17806
17807         * doc/extend.texi (Function Attributes) <Attribute const>: The
17808         attribute "pure" is below this text, not above.
17809
17810 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17811
17812         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
17813         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
17814         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
17815
17816 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
17817
17818         PR 18785
17819         * langhooks.h (struct lang_hooks): Add to_target_charset.
17820         * langhooks.c (lhd_to_target_charset): New function.
17821         * langhooks-def.h: Declare lhd_to_target_charset.
17822         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
17823         (LANG_HOOKS_INITIALIZER): Update.
17824         * c-common.c (c_common_to_target_charset): New function.
17825         * c-common.h: Declare it.
17826         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
17827         c_common_to_target_charset.
17828
17829         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
17830         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
17831         Delete definitions.
17832         * system.h: Poison them.
17833         * doc/tm.texi: Don't discuss them.
17834         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
17835         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
17836         (pp_c_char): Do not attempt to generate letter escapes for
17837         newline, tab, etc.
17838         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
17839         * config/mips/mips.c (mips_output_ascii): Likewise.
17840
17841 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
17842
17843         PR tree-optimization/19951
17844         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
17845         is abnormal.
17846
17847 2005-02-19  Steven Bosscher  <stevenb@suse.de>
17848
17849         PR middle-end/19698
17850         * function.h (struct function): New field `max_loop_depth'.
17851         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
17852         (flow_loops_find): Reset the max loop depth count before finding loops.
17853         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
17854         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
17855         (calculate_global_regs_live): Make sure the loop will terminate
17856         when the initial sets are not empty.
17857
17858 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
17859
17860         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
17861         object inside.
17862         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
17863
17864 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
17865
17866         PR other/19525
17867         * doc/invoke.texi: Remove documentation of %M spec.
17868         * gcc.c: Likewise.
17869         (init_spec): Remove %M suffix from -lgcc_s.
17870         (do_spec_1): Remove 'M' case.
17871         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
17872         to put shared libraries in the multilib directory.  Remove the
17873         shlib_so_soname substitution variable.  Don't add a multilib encoding
17874         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
17875         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
17876         SHLIB_INSTALL as well as SHLIB_LINK.
17877         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
17878         (SHLIB_NAME): Delete.
17879         (SHLIB_DIR): New macro.
17880         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
17881         (SHLIB_INSTALL): Adjust accordingly.
17882         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
17883         * config/t-slibgcc-sld: Likewise.
17884         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
17885         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
17886         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
17887         in $(SHLIB_DIR).
17888         (SHLIBUNWIND_INSTALL): Adjust accordingly.
17889         * config/i386/t-nwld (SHLIB_SONAME): Delete.
17890         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
17891         Use @shlib_base_name@ instead of @shlib_so_name@.
17892         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
17893         and @shlib_base_name@.so in @multilib_dir@.
17894         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
17895         to the install path.
17896         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
17897         (SHLIB_LINK): Remove previous workaround.
17898         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
17899         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
17900         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
17901         the install path.
17902         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
17903         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
17904         (SHLIB_INSTALL): Adjust accordingly.
17905         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
17906         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
17907         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
17908         config/t-slibgcc-elf-ver.
17909
17910 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
17911             Jakub Jelinek  <jakub@redhat.com>
17912
17913         PR tree-optimization/19828
17914         * tree-ssa-loop-im.c: Add a TODO comment.
17915         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
17916         without side-effects.
17917
17918 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
17919
17920         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
17921         call fold_convert.
17922
17923 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
17924
17925         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
17926         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
17927         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
17928         functions.
17929         (ia64_reorg): Delete fixup_errata call.
17930         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
17931         (TARGET_SWITCHES): Delete -mb-step entry.
17932
17933 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
17934
17935         PR c/20043
17936         * c-typeck.c (composite_type): Handle quals in transparent unions.
17937         (type_lists_compatible_p): Likewise.
17938
17939 2005-02-18  Stan Shebs  <shebs@apple.com>
17940
17941         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
17942         expressions in the .literal8 section.
17943
17944 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
17945
17946         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
17947
17948 2005-02-18  Roger Sayle  <roger@eyesopen.com>
17949
17950         * fold-const.c (constant_boolean_node): Always create values of the
17951         specified type, don't bother calling truthvalue_conversion.
17952
17953 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
17954
17955         * except.c (output_function_exception_table): Call
17956         assemble_external_libcall (eh_personality_libfunc).
17957
17958 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
17959
17960         PR target/19886
17961         * config/ia64/ia64.h (struct machine_function): Add state_num.
17962         * config/ia64/ia64.c (process_epilogue,
17963         process_for_unwind_directive): Use new unwind state numbers each
17964         time rather than state 1.
17965
17966 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
17967
17968         PR target/20054
17969         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
17970         before the "*llgt_didi" pattern.
17971
17972 2005-02-18  Jason Merrill  <jason@redhat.com>
17973
17974         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
17975
17976 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
17977
17978         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
17979         (div0): Use it in place of ARM_FUNC_ALIAS.
17980         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
17981
17982 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
17983
17984         PR middle-end/20030
17985         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
17986         access, the lower bound of the array type if it exists.
17987
17988 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
17989
17990         PR c++/20008
17991         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
17992         cases that are out-of-range for the index type.
17993
17994 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
17995
17996         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
17997         (estimate_case_costs): Don't call convert.
17998         * expmed.c (expand_shift): Likewise.
17999         (make_tree): Call fold_convert instead of convert.
18000
18001 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
18002
18003         PR c++/19813
18004         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
18005         that ref to be marked MEM_READONLY_P doesn't have base that needs
18006         constructing.
18007
18008 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
18009
18010         * genautomata.c (output_get_cpu_unit_code_func,
18011         output_cpu_unit_reservation_p): Don't generate old-style function
18012         definitions.
18013
18014 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
18015
18016         PR c++/20023
18017         PR tree-optimization/20009
18018         * convert.c (convert_to_integer): Revert 2005-02-16 change.
18019
18020         PR tree-optimization/18947
18021         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
18022         inline, remove all nodes that are inlined into the extern inline
18023         being redefined.
18024
18025 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
18026
18027         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
18028         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
18029         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
18030         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
18031         Update copyright.
18032
18033 2005-02-17  Roger Sayle  <roger@eyesopen.com>
18034
18035         PR tree-optimization/19917
18036         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
18037         to be potentially trapping.
18038
18039 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
18040
18041         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
18042
18043 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
18044
18045         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
18046         tem becomes a local variable which is set to the value of the
18047         back end defined INITIAL_FRAME_ADDRESS macro.
18048         (expand_builtin_frame_address): Omit the base parameter to
18049         expand_builtin_return_addr.
18050         (expand_builtin_profile_func): Likewise.
18051         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
18052         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
18053         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
18054
18055 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
18056
18057         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
18058         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
18059         * config/frv/frv.c (frv_function_epilogue): Likewise.
18060
18061 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
18062
18063         * lambda-code (perfect_nestify): Remove mark/unmark
18064         for rewriting hack.
18065         * tree-loop-linear.c (linear_transform_loops): Add
18066         rewrite_into_ssa call so that ssa is correct for
18067         rewriting into loop closed.
18068
18069 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18070
18071         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
18072         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
18073         BITMAP_FREE.
18074         * bt-load.c (btr_def_live_range, combine_btr_defs,
18075         migrate_btr_def, migrate_btr_defs): Likewise.
18076         * cfgcleanup.c (thread_jump): Likewise.
18077         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
18078         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
18079         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
18080         df_rd_local_compute, df_reg_info_compute): Likewise.
18081         * dominance.c (init_dom_info, free_dom_info): Likewise.
18082         * flow.c (init_propagate_block_info,
18083         free_propagate_block_info): Likewise.
18084         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
18085         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
18086         modify_reg_pav): Likewise.
18087         * loop-invariant.c (find_defs, find_invariant_insn,
18088         find_invariants, free_inv_motion_data): Likewise.
18089         * predict.c (tree_predict_by_opcode,
18090         estimate_bb_frequencies): Likewise.
18091         * stmt.c (expand_case): Likewise.
18092         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
18093         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
18094         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
18095         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
18096         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
18097         rewrite_ssa_into_ssa): Likewise.
18098         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18099         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
18100         analyze_edges_for_bb, perform_edge_inserts): Likewise.
18101         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
18102         * tree-sra.c (tree_sra): Likewise.
18103         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
18104         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
18105         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
18106         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
18107         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
18108         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
18109         Likewise.
18110         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
18111         calculate_live_on_entry, calculate_live_on_exit,
18112         build_tree_conflict_graph): Likewise.
18113         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
18114         record_important_candidates, set_use_iv_cost, find_depends,
18115         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
18116         tree_ssa_iv_optimize_finalize): Likewise.
18117         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
18118         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
18119         tree_duplicate_loop_to_header_edge): Likewise.
18120         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
18121         * tree-ssa.c (verify_flow_insensitive_alias_info,
18122         verify_name_tags, verify_ssa, init_tree_ssa,
18123         delete_tree_ssa): Likewise.
18124         * tree-ssanames.c (marked_ssa_names, init_ssanames,
18125         fini_ssanames): Likewise.
18126         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
18127
18128 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
18129
18130         * config/rs6000/t-rtems: Completely reworked.
18131
18132 2005-02-17  Ira Rosen  <irar@il.ibm.com>
18133
18134         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
18135
18136 2005-02-17  Ira Rosen  <irar@il.ibm.com>
18137
18138         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
18139         POINTER_TYPE_P when checking that type is a pointer.
18140         (vect_get_memtag): Remove.
18141         (vect_address_analysis): Use POINTER_TYPE_P. Call
18142         vect_object_analysis with dummy parameter for memtag.
18143         (vect_object_analysis): Extract memtag (functionality that
18144         used to be in vect_get_memtag and moved here). Fix printings.
18145         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
18146         with correct parameters. Remove call to vect_get_memtag.
18147
18148 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
18149
18150         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
18151         (tree-vectorizer.o): Added missing dependencies.
18152
18153         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
18154         decleration.
18155         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
18156         declaration in tree-vectorizer.c, now has an extern declaration in
18157         tree-vectorizer.h).
18158         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
18159         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
18160         get_vectype_for_scalar_type, vect_is_simple_use,
18161         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
18162         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
18163         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
18164         vectorizable_store, vectorizable_operation, vectorizable_assignment,
18165         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
18166         find_loop_location): Likewise.
18167
18168         * tree-vectorizer.c (langhooks.h): #include removed.
18169         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
18170         moved to tree-vectorized.h.
18171         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
18172         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
18173         get_vectype_for_scalar_type, vect_is_simple_use,
18174         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
18175         vect_supportable_dr_alignment, new_loop_vec_info,
18176         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
18177         vect_set_verbosity_level, find_loop_location): Likewise.
18178
18179         (vect_analyze_loop): Function externalized. Declaration moved to
18180         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
18181         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
18182         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
18183         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
18184         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
18185         vect_enhance_data_refs_alignment, vect_analyze_operations,
18186         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
18187         vect_stmt_relevant_p, vect_get_loop_niters,
18188         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
18189         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
18190         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
18191         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
18192         vect_get_memtag): Likewise.
18193
18194         (vectorizable_load): Function externalized. Declaration moved to
18195         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
18196         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
18197         vect_transform_loop): Likewise.
18198         (vect_transform_stmt): Moved to tree-vect-transform.c.
18199         (vect_align_data_ref, vect_create_destination_var,
18200         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
18201         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
18202         vect_get_vec_def_for_operand, vect_init_vector,
18203         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
18204         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
18205         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
18206         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
18207         vect_do_peeling_for_loop_bound): Likewise.
18208
18209         * tree-vect-analyze.c: New file.
18210         * tree-vect-transform.c: New file.
18211
18212 2005-02-17  Jason Merrill  <jason@redhat.com>
18213
18214         PR mudflap/19319, c++/19317
18215         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
18216         slot explicit.
18217
18218 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
18219
18220         * doc/install.texi (Specific): Update link for Darwin-specific
18221         tool binary site.
18222
18223 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
18224
18225         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
18226         constant_boolean_node.
18227
18228 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
18229
18230         PR target/19019
18231         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
18232         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
18233
18234 2005-02-16  Richard Henderson  <rth@redhat.com>
18235
18236         PR 19920
18237         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
18238         with W_TYPE_SIZE.
18239         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
18240         replace uses with Wtype_MAXp1_F.
18241         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
18242         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
18243         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
18244         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
18245         and HAVE_TFMODE as appropriate.
18246         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
18247         (__floatdisf): Likewise.
18248         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
18249         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
18250         (Wtype_MAXp1_F): New.
18251         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
18252         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
18253
18254 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
18255
18256         * PR target/19162
18257         * arm.c (arm_apply_result_size): New function.
18258         * arm.h (APPLY_RESULT_SIZE): Define.
18259         * arm-protos.h (arm_apply_result_size): Add prototype.
18260         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
18261         (movxf): New expand.
18262         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
18263         (call_value_symbol): Remove predicate for operand 0.
18264         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
18265         (untyped_call): Rework to correclty return values for any type.
18266         (untyped_return): New expand.
18267         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
18268
18269 2005-02-16  Stan Shebs  <shebs@apple.com>
18270
18271         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
18272         * config/rs6000/t-darwin8: New, for 64-bit multilib.
18273
18274 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
18275
18276         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
18277         configure settings on Solaris 7 and later.
18278
18279 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
18280
18281         PR tree-optimization/19865
18282         * tree-optimize.c (init_tree_optimization_passes): Run
18283         pass_may_alias after pass_sra.
18284
18285 2005-02-16  Richard Henderson  <rth@redhat.com>
18286             Stuart Hastings  <stuart@apple.com>
18287
18288         PR debug/19521
18289         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
18290         Do nothing if debug info suppressed for this function.
18291         (dbxout_begin_function): Early exit if debug info suppressed for
18292         this function.
18293
18294 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
18295
18296         PR target/20007
18297         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
18298         find_basic_blocks.
18299         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18300
18301         PR tree-optimization/19967
18302         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
18303         expand_builtin_strchr, expand_builtin_strrchr): Take a new
18304         argument TYPE.  Adjust calls to fold_builtin_XXX.
18305         (expand_builtin, fold_builtin_1): Adjust calls to
18306         expand_builtin_XXX.
18307         (fold_builtin_strchr, fold_builtin_strpbrk,
18308         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
18309         result to a requested type TYPE.
18310
18311 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
18312
18313         PR middle-end/19857
18314         * fold-const.c (fold): Don't optimize (T)(x & cst) to
18315         (T)x & (T)cst if (T)cst overflows.
18316         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
18317         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
18318
18319 2005-02-15  Jeff Law  <law@redhat.com>
18320
18321         * gcse.c (blocks_with_calls): New bitmap.
18322         (alloc_gcse_mem): Allocate it.
18323         (free_gcse_mem): Free it.
18324         (clear_modifY_mem_tables): Clear it.
18325         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
18326         when we encounter CALL_INSNs.
18327         (compute_transp, case MEM): Handle blocks with calls separate
18328         from blocks without calls.  Use bitmap iterators rather than
18329         FOR_EACH_BB.
18330
18331 2005-02-15  Peter O'Gorman  <peter@pogma.com>
18332
18333         PR bootstrap/18810
18334         * mklibgcc.in (vis_hide): Use a temporary object file, not
18335         -o /dev/null.
18336
18337 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
18338
18339         PR target/19924
18340         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
18341         access optimization.
18342
18343 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
18344             Alan Modra  <amodra@bigpond.net.au>
18345
18346         PR target/19019
18347         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
18348         (_xlqsub): Rename to __gcc_qsub.
18349         (_xlqmul): Rename to __gcc_qmul.
18350         (_xlqdiv): Rename to __gcc_qdiv.
18351         Provide versioned symbol aliases with old names.
18352         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
18353         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
18354         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
18355         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
18356         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
18357
18358 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
18359
18360         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
18361         Fold ~(A - 1) and ~(A + -1) to -A.
18362
18363 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
18364
18365         PR pch/14940
18366         PR target/19300
18367         * config/host-linux.c (linux_gt_pch_use_address): Copy from
18368         config/pa/pa-host.c:pa_gt_pch_use_address.
18369
18370 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
18371
18372         * tree-vn.c (get_value_handle): Make sure that given an
18373         is_gimple_min_invariant expression, we always return it.
18374
18375 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
18376
18377         * passes.c (rest_of_handle_gcse): Fix a comment.
18378
18379 2005-02-15  Jeff Law  <law@redhat.com>
18380
18381         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
18382         bitmap.
18383         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
18384         (canon_list_insert, record_last_mem_set_info): Similarly.
18385         (clear_modify_mem_tables): Similarly.
18386
18387 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
18388
18389         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
18390         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
18391         config/mips/mips.md, config/rs6000/aix.h,
18392         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
18393
18394 2005-02-15  Richard Henderson  <rth@redhat.com>
18395
18396         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
18397         call to be best_edge.
18398
18399 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18400
18401         * basic-block.h: Adjust the prototype for find_basic_blocks.
18402         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
18403         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
18404         find_basic_blocks.
18405
18406         * flow.c (recompute_reg_usage): Remove all arguments.
18407         * passes.c (rest_of_compilation): Adjust the call to
18408         recompute_reg_usage.
18409         * rtl.h: Adjust the prototype for recompute_reg_usage.
18410
18411 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
18412
18413         * tree-dump.c (dump_files): Update to reflect new member
18414         of dump_file_info.
18415         (dump_register): Add new argument.
18416         Set glob name.
18417         (dump_switch_p_1): Check against glob name if doglob was passed.
18418         (dump_switch_p): Check against regular first, then glob if
18419         we didn't have any hits on the dump name.
18420         * tree-optimize.c (register_one_dump_file):
18421         Pass in glob name as well.
18422         * tree-pass.h (struct dump_file_info): Add glob
18423         member.
18424
18425 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
18426
18427         PR preprocessor/16323
18428         * doc/invoke.texi: Document that -Wendif-labels is on by default.
18429
18430 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
18431
18432         PR target/19019
18433         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
18434         (trunctfdf2_internal1): New.
18435         (trunctfdf2_internal2): Renamed from trunctfdf2.
18436
18437 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
18438
18439         PR tree-optimization/19853
18440         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
18441
18442 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18443
18444         * passes.c (rest_of_handle_loop_optimize): Remove calls to
18445         delete_dead_jumptables and cleanup_cfg.
18446
18447 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
18448
18449         * reload.c (find_reloads): Swap address_reloaded flags when
18450         swapping commutative operands.
18451
18452 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
18453
18454         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
18455         Use standard_iv_increment_position for computing the bsi position
18456         for create_iv.
18457         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
18458         the bsi position.
18459
18460 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
18461
18462         PR target/17428
18463         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
18464         life range of hard registers.
18465         * value-prof.c (insn_prefetch_values_to_profile): Only
18466         scan normal insns.
18467
18468         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
18469         profile in libcalls.
18470
18471 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
18472
18473         * bitmap.h (bitmap_and_compl_into): Return bool.
18474         * bitmap.c (bitmap_and_compl_into): Return changed flag.
18475
18476 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
18477
18478         PR tree-optimization/19944
18479         * fold-const.c (fold): Re-add ABS_EXPR folding.
18480
18481 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
18482
18483         PR target/19019
18484         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
18485         {TARGET,MASK}_XL_COMPAT.
18486         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
18487         MASK_XL_COMPAT.
18488         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
18489         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
18490         TARGET_XL_COMPAT.
18491         (rs6000_arg_partial_bytes): Same.
18492         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
18493         and XL compatibility enabled.
18494         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
18495         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
18496         test to final condition.
18497         (cmptf_internal2): New.
18498         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
18499         xl-compat.  Add TFmode information to description.
18500
18501 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
18502
18503         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
18504
18505 2005-02-13  Jason Merrill  <jason@redhat.com>
18506
18507         PR c++/16405
18508         * fold-const.c (fold_indirect_ref_1): Split out from...
18509         (build_fold_indirect_ref): Here.
18510         (fold_indirect_ref): New fn.
18511         * tree.h: Declare it.
18512         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
18513         (gimplify_modify_expr_rhs): Likewise.
18514         (gimplify_expr): Likewise.
18515
18516 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
18517
18518         PR tree-optimization/14303
18519         PR tree-optimization/15784
18520         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
18521         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
18522         ABS_EXPR<x> != 0 to x != 0.
18523
18524 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18525
18526         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
18527         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
18528         spelling conventions.
18529
18530         * passes.c (rest_of_handle_gcse): Don't run cse_main and
18531         delete_trivially_dead_insns too many times.
18532
18533         * passes.c (rest_of_handle_gcse): Remove dead assignments to
18534         tem and tem2.
18535
18536 2005-02-12  Ira Rosen  <irar@il.ibm.com>
18537
18538         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
18539         (vect_is_simple_iv_evolution): Remove redundant parameter
18540         and step check.
18541         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
18542         without last parameter.
18543         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
18544         Return pointer step. Call vect_is_simple_iv_evolution without
18545         last parameter. Check only that the step is multiple of size
18546         type. Remove stmt_vinfo updates.
18547         (vect_get_memtag_and_dr): Remove.
18548         (vect_get_memtag): New function.
18549         (vect_address_analysis): New function.
18550         (vect_object_analysis): New function.
18551         (vect_analyze_data_refs): Call vect_object_analysis and
18552         vect_get_memtag. Update stmt_vinfo fields.
18553
18554 2005-02-12  Ira Rosen  <irar@il.ibm.com>
18555
18556         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
18557         exist and are objects. Remove checks for pointer.
18558         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
18559         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
18560         (vect_create_data_ref_ptr): Likewise.
18561         (vect_base_addr_differ_p): New function.
18562         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
18563         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
18564         Don't set the DR_BASE_NAME field of data-ref.
18565         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
18566
18567 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
18568
18569         * optabs.h (enum optab_index): Add new OTI_ldexp.
18570         (ldexp_optab): Define corresponding macro.
18571         * optabs.c (init_optabs): Initialize ldexp_optab.
18572         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
18573         patterns.
18574         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
18575         using ldexp_optab.
18576         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
18577         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
18578
18579         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
18580         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
18581         intrinsics.
18582
18583 2005-02-12  Ira Rosen  <irar@il.ibm.com>
18584
18585         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
18586         to base_address.
18587         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
18588         stmt_vec_info.
18589         (vect_get_base_and_offset): Always return an address.
18590         (vect_create_addr_base_for_vector_ref): Remove treatment for
18591         different data reference types.
18592         (vect_compute_data_ref_alignment): Rename base to base_address in
18593         stmt_vec_info. Get the object in order to force its alignment.
18594         (vect_get_memtag_and_dr): Rename base to base_address in
18595         stmt_vec_info. Extract the object for memtag analysis.
18596
18597 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
18598
18599         PR regression/19898.
18600         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
18601         changes cc_status, use apply modified_in_p to part of cc_status
18602         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
18603         body.
18604
18605 2005-02-11  Richard Henderson  <rth@redhat.com>
18606
18607         * tree-complex.c (expand_complex_libcall): New.
18608         (expand_complex_multiplication): Use it for c99 compliance.
18609         (expand_complex_division): Likewise.
18610         * fold-const.c (fold_complex_add, fold_complex_mult): New.
18611         (fold): Call them.
18612         * builtins.c (built_in_names): Remove const.
18613         * tree.c (build_common_builtin_nodes): Build complex arithmetic
18614         builtins.
18615         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
18616         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
18617         (built_in_names): Remove const.
18618         * c-common.c (c_common_type_for_mode): Handle complex modes.
18619         * flags.h, toplev.c (flag_complex_method): Rename from
18620         flag_complex_divide_method.
18621         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
18622         __mulsc3, __muldc3, __mulxc3, __multc3): New.
18623         * libgcc2.h: Declare them.
18624         * libgcc-std.ver: Export them.
18625         * mklibgcc.in (lib2funcs): Build them.
18626
18627 2005-02-11  Steven Bosscher  <stevenb@suse.de>
18628
18629         PR tree-optimization/19876
18630         Partially revert my change from 2005-01-14
18631         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
18632         (compute_antic): ...and remove the loop here.
18633
18634 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
18635
18636         PR middle-end/19858
18637         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
18638         is number of inner's bits, avoid creating a BIT_FIELD_REF.
18639
18640         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
18641         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
18642
18643 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
18644
18645         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
18646         offsets for the big-endian 32-bit case.
18647
18648 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
18649
18650         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
18651
18652 2005-02-11  Dale Johannesen  <dalej@apple.com>
18653
18654         * cselib.c (cselib_process_insn):  Clear out regs where
18655         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
18656         * reload.c (find_equiv_reg): Ditto.
18657
18658 2005-02-11  Ian Lance Taylor  <ian@airs.com>
18659
18660         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
18661         with no elements.
18662
18663         * tree.c (build_function_type_list): Work correctly if there are
18664         no arguments.
18665
18666 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
18667
18668         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
18669         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
18670         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
18671         TARGET_ZARCH instead of TARGET_64BIT.
18672
18673 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
18674
18675         * config/rs6000/t-rtems:
18676         (MULTILIB_OPTIONS): Remove mcpu=602.
18677         (MUTLILIB_DIRNAMES): Remove m602.
18678         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
18679         Let mcpu=602 match mcpu=603.
18680         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
18681
18682 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18683
18684         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
18685         signal trampolines.
18686
18687 2005-02-10  David Daney  <ddaney@avtrex.com>
18688
18689         * config/alpha/linux-unwind.h: Add exception clause to copyright.
18690         * config/i386/linux-unwind.h: Likewise.
18691         * config/ia64/linux-unwind.h: Likewise.
18692         * config/mips/linux-unwind.h: Likewise.
18693         * config/pa/linux-unwind.h: Likewise.
18694         * config/rs6000/linux-unwind.h: Likewise.
18695         * config/s390/linux-unwind.h: Likewise.
18696         * config/sh/linux-unwind.h: Likewise.
18697         * config/sparc/linux-unwind.h: Likewise.
18698
18699 2005-02-10  Steven Bosscher  <stevenb@suse.de>
18700
18701         PR tree-optimization/17549
18702         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
18703         TER to replace a DEF with its expression if the DEF and the
18704         rhs of the expression we replace into have the same root
18705         variable.
18706
18707 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
18708
18709         * config/mips/mips.md: Fix the placement of the match_scratch in the
18710         lea64 peephole2.
18711
18712 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
18713
18714         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
18715         Fix comment typos.
18716
18717 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
18718
18719         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
18720         (strip_offset): Handle addresses.
18721         (add_address_candidates): Use strip_offset.
18722         (difference_cost): Reflect strip_offset change.
18723         (force_var_cost, difference_cost): Strip nops.
18724
18725 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
18726
18727         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
18728
18729         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
18730         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
18731         config/cris/cris-protos.h, config/cris/cris.c: Update
18732         copyright.
18733
18734 2005-02-10  Jeff Law  <law@redhat.com>
18735
18736         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
18737         (lookup_avail_expr): Similarly.
18738
18739 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
18740
18741         * builtins.c (fold_builtin_powi): New function.
18742         (fold_builtin_1): Call it.
18743
18744 2005-02-10  Steven Bosscher  <stevenb@suse.de>
18745
18746         PR documentation/19309
18747         * doc/cpp.texi: The __GNUC__ and related predefined macros
18748         are also defined for the "standalone" cpp.
18749         Some non-GCC compilers may also define __GNUC__.
18750
18751 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
18752
18753         PR c/19342
18754         * c-typeck.c (common_type): New routine.  Old common_type renamed
18755         to...
18756         (c_common_type): ...this.
18757         (build_conditional_expr, build_binary_op): Use c_common_type instead
18758         of common_type.
18759
18760 2005-02-10  Steven Bosscher  <stevenb@suse.de>
18761
18762         * doc/md.texi: Replace @samp{length} with @code{length}.
18763
18764 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
18765
18766         PR tree-optimization/18687
18767         * tree-flow.h (find_loop_niter): Declare.
18768         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
18769         Try using scev even for loops with more than one exit.
18770         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
18771         (struct ivopts_data): Added niters field.
18772         (struct nfe_cache_elt): New.
18773         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
18774         functions.
18775         (tree_ssa_iv_optimize_init): Initialize niters cache.
18776         (determine_number_of_iterations): Removed.
18777         (find_induction_variables): Do not call determine_number_of_iterations.
18778         Access niters for single exit through niter_for_single_dom_exit.
18779         (add_iv_outer_candidates): Access niters for single exit through
18780         niter_for_single_dom_exit.
18781         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
18782         number_of_iterations_cond.
18783         (iv_period): New function.
18784         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
18785         (may_replace_final_value): Take data argument.  Use
18786         niter_for_single_dom_exit.
18787         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
18788         (rewrite_use_compare): Pass data to may_eliminate_iv.
18789         (rewrite_use_outer): Pass data to may_replace_final_value.
18790         (free_loop_data): Clean up the niters cache.
18791         (tree_ssa_iv_optimize_finalize): Free the niters cache.
18792         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
18793         * tree-ssa-loop-niter.c (find_loop_niter): New function.
18794         (find_loop_niter_by_eval): Use tree_int_cst_lt.
18795         (num_ending_zeros): Moved to tree.c.
18796         * tree.h (num_ending_zeros): Declare.
18797         * tree.c (num_ending_zeros): Moved from tree.c.
18798
18799 2005-02-09  Richard Henderson  <rth@redhat.com>
18800
18801         * builtins.c (DEF_BUILTIN): Add COND argument.
18802         * tree.h (DEF_BUILTIN): Likewise.
18803         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
18804         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
18805         match.
18806         (DEF_BUILTIN_STUB): New.
18807         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
18808         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
18809         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
18810         * c-common.c (DEF_BUILTIN): Add COND argument.
18811         * tree.c (local_define_builtin): New.
18812         (build_common_builtin_nodes): New.
18813
18814 2005-02-09  Roger Sayle  <roger@eyesopen.com>
18815
18816         * fold-const.c (fold_strip_sign_ops): New function to simplify a
18817         floating point expression ignoring the sign of the result.
18818         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
18819         (fold) <MULT_EXPR>: Use it to simplify x*x.
18820         * tree.h (fold_strip_sign_ops): Prototype here.
18821         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
18822         argument.  Use fold_strip_sign_ops to simplify the first argument.
18823         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
18824         first argument when the second argument is an even integer
18825         constant, but only with -funsafe_math_optimizations.
18826         (fold_builtin_1): Update call to fold_builtin_copysign.
18827
18828 2005-02-09  Ian Lance Taylor  <ian@airs.com>
18829
18830         PR middle-end/19583
18831         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
18832         just check whether EH_FILTER_FAILURE falls through.
18833
18834 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
18835
18836         * gcc/haifa-sched.c (schedule_block): Make queued sched group
18837         insns return to ready list in the next turn.
18838
18839 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
18840
18841         PR middle-end/19402
18842         * builtins.def: New __builtin_powi[lf].
18843         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
18844         (expand_builtin_powi): New function.
18845         (expand_builtin): Dispatch to expand_builtin_powi.
18846         * libgcc2.h: Add prototypes for __builtin_powi[lf].
18847         * libgcc2.c: Add __builtin_powi[lf] implementation.
18848         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
18849         * optabs.h: Add powi_optab.
18850         * optabs.c (init_optabs): Initialize powi_optab.
18851         * doc/extend.texi: Document __builtin_powi[lf].
18852
18853 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
18854
18855         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
18856         exists.
18857
18858 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
18859
18860         PR middle-end/19854
18861         * fold-const.c (try_move_mult_to_index): Remove redundant
18862         type argument.  Create ADDR_EXPR with correct type.
18863         (fold): Update callers of try_move_mult_to_index.  Convert
18864         result to the appropriate type.
18865
18866 2005-02-09  Roger Sayle  <roger@eyesopen.com>
18867
18868         PR target/19597
18869         * config/avr/avr.c (default_rtx_costs): Delete.
18870         (avr_operand_rtx_cost): New function.
18871         (avr_rtx_costs): Completely rewrite.
18872
18873 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
18874
18875         PR target/19806
18876         * config/cris/cris.c (in_code): New variable.
18877         (cris_output_addr_const): Now a static function, a wrapper for
18878         output_addr_const.
18879         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
18880         case from old cris_output_addr_const.
18881         (cris_asm_output_label_ref): Similar for LABEL_REF.
18882         (cris_output_addr_const_extra): Similar for UNSPEC.
18883         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
18884         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
18885         * config/cris/cris-protos.h (cris_output_addr_const): Remove
18886         declaration.
18887         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
18888         (cris_asm_output_label_ref): Declare.
18889
18890 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
18891
18892         PR preprocessor/19801
18893         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
18894         filenames that changed when libcpp was moved to the toplevel.
18895
18896 2005-02-07  Roger Sayle  <roger@eyesopen.com>
18897
18898         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
18899         zero extensions of BImode operands.  Call lowpart_subreg instead
18900         of gen_lowpart_common and gen_lowpart_SUBREG.
18901
18902 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
18903
18904         PR ada/19489
18905         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
18906         * configure.ac: Set cc_for_cross_gnattools.
18907         * configure: Regenerate.
18908
18909 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
18910
18911         PR target/19803
18912         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
18913
18914 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
18915
18916         PR debug/19327
18917         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
18918         of nested functions.
18919
18920 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
18921
18922         * doc/extend.texi: Document deprecated extensions allowing
18923         static floating-point members to have initializers and allowing
18924         floating-point literals in integral constant expressions.
18925
18926 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
18927
18928         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
18929         config/darwin7.h, config/mips/mips.c,
18930         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
18931         Update copyright.
18932
18933         * cse.c: Update comments.
18934
18935 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
18936
18937         PR middle-end/19775
18938         * builtins.c (fold_builtin_sqrt): Transform
18939         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
18940         pow(x,y*0.5).
18941
18942 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
18943             Dorit Naishlos  <dorit@il.ibm.com>
18944
18945         * doc/invoke.texi (ftree-vectorizer-verbose): New.
18946         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
18947         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
18948         was added.
18949         * tree.h (vect_set_verbosity_level): New extern function declaration
18950         added.
18951         * tree-vectorizer.h (verbosity_levels): New enum type.
18952         * tree-vectorizer.c (vect_debug_stats): Function removed.
18953         (vect_debug_details): Likewise.
18954         (vect_verbosity_level): Global variable was defined and initialized.
18955         (vect_dump): Global variable definition.
18956         (vect_print_dump_info): New function.
18957         (vect_set_dump_settings): New function.
18958         (vect_set_verbosity_level): New function.
18959         (vectorize_loops): Add call to vect_set_dump_settings.
18960
18961         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
18962         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
18963         (slpeel_tree_peel_loop_to_edge): Likewise.
18964
18965         (vect_analyze_offset_expr): Call to vect_print_dump_info with
18966         appropriate verbosity level instead of call to vect_debug_details
18967         or vect_debug_stats.
18968         (vect_get_base_and_offset):
18969         (vect_create_addr_base_for_vector_ref):
18970         (get_vectype_for_scalar_type):
18971         (vect_create_data_ref_ptr):
18972         (vect_init_vector):
18973         (vect_get_vec_def_for_operand):
18974         (vect_finish_stmt_generation):
18975         (vectorizable_assignment):
18976         (vectorizable_operation):
18977         (vectorizable_store):
18978         (vectorizable_load):
18979         (vect_transform_stmt):
18980         (vect_update_ivs_after_vectorizer):
18981         (vect_do_peeling_for_loop_bound):
18982         (vect_update_inits_of_drs):
18983         (vect_do_peeling_for_alignment):
18984         (vect_transform_loop):
18985         (vect_is_simple_use):
18986         (vect_analyze_operations):
18987         (vect_is_simple_iv_evolution):
18988         (vect_analyze_scalar_cycles):
18989         (vect_analyze_data_ref_dependence):
18990         (vect_analyze_data_ref_dependences):
18991         (vect_compute_data_ref_alignment):
18992         (vect_enhance_data_refs_alignment):
18993         (vect_analyze_data_refs_alignment):
18994         (vect_analyze_data_ref_access):
18995         (vect_analyze_data_ref_accesses):
18996         (vect_analyze_pointer_ref_access):
18997         (vect_get_memtag_and_dr):
18998         (vect_analyze_data_refs):
18999         (vect_mark_relevant):
19000         (vect_stmt_relevant_p):
19001         (vect_mark_stmts_to_be_vectorized):
19002         (vect_can_advance_ivs_p):
19003         (vect_get_loop_niters):
19004         (vect_analyze_loop_form):
19005         (vect_analyze_loop):
19006         (vectorize_loops): Likewise.
19007
19008         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
19009         (vect_update_inits_of_drs):
19010         (vect_do_peeling_for_alignment):
19011         (vect_transform_loop):
19012         (vect_analyze_operations):
19013         (vect_analyze_scalar_cycles):
19014         (vect_analyze_data_ref_dependences):
19015         (vect_analyze_data_refs_alignment):
19016         (vect_analyze_data_ref_accesses):
19017         (vect_analyze_data_refs):
19018         (vect_mark_stmts_to_be_vectorized):
19019         (vect_get_loop_niters):
19020         (vect_analyze_loop_form):
19021         (vect_analyze_loop): Likewise.
19022         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
19023
19024 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
19025
19026         PR bootstrap/19796
19027         Revert:
19028         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
19029         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
19030         either -ffast-math or -funsafe-math-optimizations is in use.
19031
19032         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
19033         * config/mips/irix-csr.c: New file.
19034         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
19035         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
19036         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
19037         executables.
19038
19039 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
19040
19041         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
19042         redundant, incorrect definitions.
19043
19044         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
19045         expand.
19046         ("*tls_indirect_call"): New, reference hard regs directly.
19047         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
19048
19049 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
19050
19051         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
19052         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
19053
19054 2005-02-06  Roger Sayle  <roger@eyesopen.com>
19055
19056         PR rtl-optimization/19800
19057         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
19058         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
19059         gen_lowpart.
19060
19061 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
19062
19063         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
19064
19065 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
19066
19067         PR other/17135
19068         * doc/invoke.texi: Correct documentation of -freorder-functions.
19069
19070 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
19071
19072         PR other/14402
19073         * doc/invoke.texi: Don't mention gccbug.
19074
19075 2005-02-06  Roger Sayle  <roger@eyesopen.com>
19076             Andrew Pinski  <pinskia@physics.uc.edu>
19077             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
19078
19079         * simplify-rtx.c (simplify_relational_operation_1): Simplify
19080         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
19081         into just (zero_extract:SI FOO (const_int 1) BAR).
19082
19083 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
19084
19085         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
19086         macro locally.  Don't give last revision date.  Use GCC version
19087         number from gcc-common.texi.
19088         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
19089         revision date.  Use GCC version number from gcc-common.texi.
19090         Describe being a library as current state rather than as 3.x
19091         history.
19092         * doc/gcc.texi: Remove last update date.
19093         * doc/gccint.texi: Likewise.  Update copyright dates.
19094         * doc/install.texi: Update copyright dates.
19095
19096 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
19097
19098         PR other/7549
19099         * doc/invoke.texi: Mention for each option included in -Wall that
19100         it is included in -Wall.
19101         * doc/gcc.texi: Update copyright and last modification date.
19102
19103 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
19104
19105         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
19106         unnecessary cast to original induction variable increments.
19107
19108 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
19109
19110         PR tree-optimization/18219
19111         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
19112         in distributed form.
19113
19114 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
19115
19116         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
19117         Set bitpos and offset later in the function.  Do nothing if the
19118         target is a register and if the bitfield lies completely outside
19119         that register.
19120         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
19121         here.  Return an uninitialised register if the source value is stored
19122         in a register and the bitfield lies completely outside that register.
19123
19124 2005-02-06  Steven Bosscher  <stevenb@suse.de>
19125
19126         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
19127         not SET_DEST.
19128
19129 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
19130
19131         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
19132
19133 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
19134
19135         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
19136         * config/darwin8.h: New.
19137         * config/darwin7.h: Update comment.
19138
19139 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
19140             Dorit Naishlos  <dorit@il.ibm.com>
19141
19142         * tree-vectorizer.h (LOC): New type.
19143         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
19144         (loop_line_number): New field in struct _loop_vec_info.
19145         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
19146
19147         * tree-vectorizer.c (input.h): Included.
19148         (find_loop_location): New function.
19149         (vect_debug_stats): Argument changed from loop to LOC. Computation of
19150         loop line number removed.
19151         (vect_debug_details): Likewise.
19152         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
19153
19154         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
19155         call to vect_debug_details/stats changed from loop to loop_loc.
19156         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
19157         (slpeel_tree_peel_loop_to_edge): Likewise.
19158
19159         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
19160         changed from NULL to UNKNOWN_LOC.
19161         (vect_get_base_and_offset):
19162         (vect_create_addr_base_for_vector_ref):
19163         (get_vectype_for_scalar_type):
19164         (vect_create_data_ref_ptr):
19165         (vect_init_vector):
19166         (vect_get_vec_def_for_operand):
19167         (vect_finish_stmt_generation):
19168         (vectorizable_assignment):
19169         (vectorizable_operation):
19170         (vectorizable_store):
19171         (vectorizable_load):
19172         (vect_transform_stmt):
19173         (vect_update_ivs_after_vectorizer):
19174         (vect_do_peeling_for_loop_bound):
19175         (vect_do_peeling_for_alignment):
19176         (vect_transform_loop):
19177         (vect_is_simple_use):
19178         (vect_analyze_operations):
19179         (vect_is_simple_iv_evolution):
19180         (vect_analyze_scalar_cycles):
19181         (vect_analyze_data_ref_dependences):
19182         (vect_compute_data_ref_alignment):
19183         (vect_enhance_data_refs_alignment):
19184         (vect_analyze_data_ref_access):
19185         (vect_analyze_data_ref_accesses):
19186         (vect_analyze_pointer_ref_access):
19187         (vect_get_memtag_and_dr):
19188         (vect_analyze_data_refs):
19189         (vect_mark_relevant):
19190         (vect_stmt_relevant_p):
19191         (vect_mark_stmts_to_be_vectorized):
19192         (vect_can_advance_ivs_p):
19193         (vect_get_loop_niters):
19194         (vect_analyze_loop):
19195         (vectorize_loops): Likewise.
19196
19197         (vectorizable_load): Argument in call to vect_debug_details/stats
19198         changed from loop to LOOP_LOC (loop_vinfo).
19199         (vect_transform_loop):
19200         (vect_analyze_operations):
19201         (vect_analyze_scalar_cycles):
19202         (vect_analyze_data_ref_dependence):
19203         (vect_enhance_data_refs_alignment):
19204         (vect_analyze_data_ref_accesses):
19205         (vect_analyze_pointer_ref_access):
19206         (vect_analyze_data_refs):
19207         (vect_analyze_loop): Likewise.
19208
19209         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
19210         changed from loop to loop_loc.
19211
19212         (vect_enhance_data_refs_alignment): Removed unused variable loop.
19213
19214 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
19215             Dorit Naishlos  <dorit@il.ibm.com>
19216
19217         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
19218         declaration added.
19219         (vect_analyze_data_ref_dependences): Likewise.
19220
19221         (vect_is_simple_use): Argument changed from loop structure to
19222         loop_vect_info structure.
19223         (vect_can_advance_ivs_p): Likewise.
19224         (vect_create_index_for_vector_ref): Likewise.
19225         (vect_update_ivs_after_vectorizer): Likewise.
19226         (new_stmt_vec_info): Likewise.
19227
19228         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
19229         changed from loop to loop_vinfo.
19230         (vect_create_data_ref_ptr): First argument in call to
19231         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
19232         (vectorizable_assignment): Second argument in call to vect_is_simple_use
19233         was changed from loop to loop_vinfo.
19234         (vectorizable_operation): Likewise.
19235         (vectorizable_store): Likewise.
19236         (vect_mark_stmts_to_be_vectorized): Likewise.
19237         (vect_do_peeling_for_loop_bound): First argument in call to
19238         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
19239         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
19240         was changed from loop to loop_vinfo.
19241         (vect_analyze_data_ref_dependences): Third argument in call to
19242         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
19243
19244         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
19245         (vect_create_data_ref_ptr): Likewise.
19246         (vect_init_vector): Likewise.
19247         (vect_get_vec_def_for_operand): Likewise.
19248         (vectorizable_assignment): Likewise.
19249         (vectorizable_operation): Likewise.
19250         (vectorizable_store): Likewise.
19251         (vectorizable_load): Likewise.
19252         (vect_update_ivs_after_vectorizer): Likewise.
19253         (vect_is_simple_use): Likewise.
19254         (vect_analyze_data_ref_dependence): Likewise.
19255         (vect_analyze_pointer_ref_access): Likewise.
19256         (vect_can_advance_ivs_p): Likewise.
19257
19258         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
19259         before _stmt_vec_info.
19260         (_stmt_vec_info): Loop field replaced by loop_vec_info.
19261         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
19262         (new_stmt_vec_info): Argument changed from loop structure to
19263         loop_vect_info structure
19264
19265         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
19266         (vect_analyze_offset_expr): Avoid 80 columns overflow.
19267         (vect_create_addr_base_for_vector_ref): Likewise.
19268         (vect_analyze_pointer_ref_access): Likewise.
19269
19270 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
19271
19272         PR tree-opt/19768
19273         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
19274         phi flag if the phi is abnormal.
19275
19276 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
19277
19278         PR tree-opt/19736
19279         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
19280         information for the new statement.
19281
19282 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
19283
19284         PR driver/19117
19285         * gcc.c (main): Include the target in -v output.
19286
19287 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
19288
19289         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
19290         Do not drop the extend if we'd have to add a paradoxical subreg
19291         later.  Include optabs.h and insn-codes.h.
19292         * Makefile.in (combine.o): Depend on $(OPTABS_H).
19293
19294 2005-02-02  Roger Sayle  <roger@eyesopen.com>
19295
19296         PR middle-end/19405
19297         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
19298         * fold-const.c (const_binop): Avoid constant folding floating
19299         point operations in modes that use composite representations.
19300         * simplify-rtx.c (simplify_binary_operation): Likewise.
19301
19302 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
19303
19304         * config/rs6000/altivec.md (altivec_dst): Make the first operand
19305         a REG, not a MEM.
19306         (altivec_dstt): Likewise.
19307         (altivec_dstst): Likewise.
19308         (altivec_dststt): Likewise.
19309         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
19310         of first operand.
19311
19312 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
19313
19314         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
19315         EXPR_LOCUS from orig_cond to the new cond_stmt.
19316         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
19317         the new vec_stmt.
19318
19319 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
19320
19321         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
19322         standard_iv_increment_position. Remove call to bsi_next
19323         (no need to bump the iterator anymore).
19324         (vect_create_index_for_vector_ref): Call
19325         standard_iv_increment_position. Remove second function argument.
19326         (vect_finish_stmt_generation): Remove call to bsi_next
19327         (no need to bump the iterator anymore).
19328         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
19329         to vect_create_index_for_vector_ref.
19330
19331 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
19332
19333         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
19334         phis are used out of the loop.
19335
19336 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
19337
19338         PR c/17807
19339         * c-decl.c (undef_nested_function): New variable.
19340         (pop_scope): Diagnose undefined nested functions.
19341         (finish_function): Don't attempt cgraph processing or genericizing
19342         if current top-level function contained an undefined nested
19343         function.  Reset undef_nested_function at the end of a top-level
19344         function.
19345
19346 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
19347
19348         * tree.c (build_int_cst_type): Take sign of the value into account
19349         when deciding whether sign extend the value.
19350
19351 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
19352
19353         PR c/18502
19354         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
19355         (cpp_options, cc1_options): Change %{std*&ansi} to
19356         %{std*&ansi&trigraphs}.
19357
19358 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
19359
19360         * cse.c: Update comments.
19361
19362 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
19363
19364         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
19365         arguments go on the stack.  Do not put complex doubles in odd/even
19366         pairs.
19367
19368 2005-02-02  Steven Bosscher  <stevenb@suse.de>
19369
19370         * doc/invoke.texi: Update the options enabled at -O1, -O2,
19371         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
19372         -ftree-pre, and -fthread-jumps.
19373
19374 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
19375
19376         PR tree-optimization/19578
19377         * tree-flow.h (modified_noreturn_calls): Declare.
19378         (noreturn_call_p): Declare.
19379         * tree-flow-inline.h (noreturn_call_p): New function.
19380         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
19381         * tree-cfg.c (modified_noreturn_calls): New variable.
19382         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
19383         that contain a mid-block noreturn call.
19384         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
19385
19386 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
19387
19388         * df.c (df_def_record_1, df_uses_record): Don't use
19389         DF_FOR_REGALLOC.
19390         * df.h (DF_FOR_REGALLOC): Remove.
19391
19392 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
19393
19394         PR c/19435
19395         * c-typeck.c (really_start_incremental_init): Reset
19396         constructor_max_index for arrays of incomplete type.
19397
19398 2005-02-02  Jeff Law  <law@redhat.com>
19399
19400         * gcse.c (struct reg_set): Store the block index where the register
19401         was set rather than the setting insn.
19402         (record_one_set, compute_transp): Corresponding changes.
19403         (pre_insert_copy_insn): Do not call replace_one_set.
19404         (replace_one_set): Remove.
19405
19406 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
19407
19408         PR other/15514
19409         * doc/gcov.texi: Fix typo.
19410
19411 2005-02-01  Richard Henderson  <rth@redhat.com
19412
19413         PR target/19680
19414         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
19415         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
19416         type to bool.
19417         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
19418         * config/i386/i386-protos.h: Update.
19419
19420 2005-02-01  Steven Bosscher  <stevenb@suse.de>
19421
19422         PR tree-optimization/19217
19423         * tree-cfg.c (verify_expr): Use the data field to see if TP was
19424         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
19425         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
19426         that it is walking a PHI node.
19427
19428 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
19429
19430         * doc/extend.texi (Nested Functions): Update.
19431
19432 2005-02-01  Richard Henderson  <rth@redhat.com>
19433
19434         PR 19696
19435         * optabs.c (expand_copysign_absneg): Export.
19436         * optabs.h (expand_copysign_absneg): Declare.
19437         * config/rs6000/rs6000.md (copysigntf3): New.
19438
19439 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
19440
19441         PR tree-optimization/19633
19442         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
19443         * tree-ssa-alias.c (init_alias_info): Initialize.
19444         (merge_pointed_to_info): Set.
19445         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
19446         (dump_points_to_info_for): Show value of pt_null.
19447         (struct count_ptr_d): Declare.
19448         (find_ptr_dereference): Remove.
19449         (ptr_is_dereferenced_by): Remove.
19450         (count_ptr_derefs): New local function.
19451         (count_uses_and_derefs): New local function.
19452         (compute_points_to_and_addr_escape): Call it.  If the number
19453         of dereferences is greater than zero, mark the pointer as
19454         dereferenced.  If there are fewer dereferences than uses of
19455         the pointer, the pointer's value escapes.
19456
19457 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
19458
19459         PR tree-optimization/19670
19460         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
19461         here...
19462         (verify_use): ... set it here, instead.
19463
19464 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
19465
19466         * doc/sourcebuild.texi (Test directives): Fix formatting.
19467
19468         * doc/sourcebuild.texi (Test directives): Describe selector
19469         expressions.
19470
19471 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
19472
19473         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
19474         specific 64-bit CPUs.
19475
19476 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
19477
19478         PR target/16201
19479         * arm.c (arm_eliminable_register): New function.
19480         (adjacent_mem_locations): Don't allow eliminable registers.  Use
19481         HOST_WIDE_INT for address offsets.
19482         * arm-protos.h (arm_eliminable_register): Add prototype.
19483
19484 2005-02-01  Steven Bosscher  <stevenb@suse.de>
19485
19486         PR optimization/15242
19487         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
19488         * basic-block.h (duplicate_computed_gotos): Add prototype.
19489         * bb-reorder.c (duplicate_computed_gotos): New function to
19490         duplicate sufficiently small blocks ending in a computed jump.
19491         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
19492         if not optimizing for size.
19493         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
19494         never do tail merging for blocks ending in a computed jump.
19495         * doc/invoke.texi: Document the max-goto-duplication-insns param.
19496
19497 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
19498
19499         Patch from Richard Sandiford <rsandifo@redhat.com>
19500         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
19501         from inheriting a subreg equivalence with a non-spill register.
19502
19503         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
19504
19505 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
19506
19507         * config/frv/frv.c (movcc_fp_destination_operand): New.
19508         (gpr_or_memory_operand): Fix typo in comment.
19509         (gpr_or_memory_operand_with_scratch): New.
19510         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
19511         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
19512         movcc_fp_destination_operand.
19513         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
19514         Legitimize memory addresses using a scratch register.
19515
19516 2005-01-31  Jeff Law  <law@redhat.com>
19517
19518         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
19519         bitmap a sparse bitmap instead of a simple bitmap.
19520         (mark_def_sites_initialize_block):  Corresponding changes.
19521         (ssa_mark_def_sites_initialize_block): Likewise.
19522         (ssa_mark_phi_uses): Likewise.
19523         (mark_def_site, ssa_mark_def_sites): Likewise.
19524         (mark_def_site_blocks): Likewise.
19525         (rewrite_ssa_into_ssa): Likewise.
19526
19527         * tree-ssa-dom.c (record_cond): Pass correct variable type
19528         for last argument to htab_find_slot_with_hash.
19529
19530         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
19531         effects when optimizing 0 % X.  Do not try to optimize X % 0.
19532
19533 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
19534
19535         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
19536         1_mmalua.
19537
19538 2005-02-01  Eric Christopher  <echristo@redhat.com>
19539
19540         * config/mips/mips.c (override_options): Warn if -mint64
19541         is used.
19542         * doc/invoke.texi (MIPS Options): Document that -mint64 is
19543         deprecated.
19544
19545 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
19546
19547         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
19548         timestamp.
19549         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
19550         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
19551         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
19552         (cached_regno): Initialize to INVALID_REGNUM.
19553         (cse_reg_info_table_size,
19554         cse_reg_info_table_first_uninitialized,
19555         cse_reg_info_timestamp): New.
19556         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
19557         get_cse_reg_info.
19558         (init_cse_reg_info, get_cse_reg_info_1): New.
19559         (get_cse_reg_info): Cache the last look-up.
19560         (new_basic_block): Update the code to clear mappings from
19561         registers to cse_reg_info entries.
19562         (cse_main): Call init_cse_reg_info.
19563
19564         * cse.c (get_cse_reg_info): Update a comment.
19565
19566 2005-01-31  Steven Bosscher  <stevenb@suse.de>
19567
19568         PR c/19333
19569         * c-decl.c (start_decl): Do not warn about arrays of elements with
19570         an incomplete type here.
19571         (grokdeclarator): Do it here by making a pedwarn an error.
19572         * c-typeck.c (push_init_level): If there were previous errors with
19573         the constructor type, do not warn about braces for initializers.
19574         (process_init_element): Likewise for excess initializer elements.
19575
19576 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
19577
19578         * cse.c (delete_trivially_dead_insn): Don't iterate.
19579
19580 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
19581
19582         * config/rs6000/rs6000.md (copysignsf3): New expand.
19583         (copysigndf3): Likewise.
19584
19585 2005-01-31  Steven Bosscher  <stevenb@suse.de>
19586
19587         * recog.c (constrain_operands): Only look for earlyclobber operand
19588         conflicts if an '&' constraint was seen.
19589
19590 2005-01-31  Marc Espie <espie@openbsd.org>
19591
19592         * config.gcc: Don't include embedded systems fragment, switches default
19593         debugging format to ELF.
19594         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
19595         longer pick it up there.
19596
19597 2005-01-31  Dale Johannesen  <dalej@apple.com>
19598
19599         * doc/extend.texi (nested functions): Fix linkage description.
19600         Clarify that static is not allowed.
19601
19602 2005-01-31  Dale Johannesen  <dalej@apple.com>
19603
19604         * config/rs6000/darwin.md (movsf_low_di):  Make work.
19605         (movdf_low_di):  Make work.
19606
19607 2005-01-31  Dale Johannesen  <dalej@apple.com>
19608
19609         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
19610         Make work for 64 bit.
19611
19612 2005-01-31  Roger Sayle  <roger@eyesopen.com>
19613             Dale Johannesen  <dalej@apple.com>
19614
19615         PR middle-end/19650
19616         * fold-const.c (fold_binary_op_with_conditional_arg):
19617         Make types match original operands, before STRIP_NOPS.
19618
19619 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
19620
19621         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
19622         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
19623         (struct gcc_sigcontext): Delete.  Merge contents to..
19624         (struct gcc_ucontext): ..here.
19625         (get_sigcontext): Delete.
19626         (get_regs): New function, like get_sigcontext but return regs ptr.
19627         64-bit version finds regs from r1 to support vdso.
19628         (ppc_linux_aux_vector): New function.
19629         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
19630         and vector regs.
19631
19632 2005-01-31  Ira Rosen  <irar@il.ibm.com>
19633
19634         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
19635         sizetype.
19636         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
19637         redundant fold. Fix misalignment for MINUS_EXPR.
19638         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
19639         (vect_analyze_pointer_ref_access): Likewise.
19640         (vect_get_memtag_and_dr): Likewise.
19641
19642 2005-01-31  Richard Henderson  <rth@redhat.com>
19643
19644         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
19645         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
19646         absnegdf2_i387, absnegxf2_i387): Likewise.
19647
19648 2005-01-31  Richard Henderson  <rth@redhat.com>
19649
19650         PR 19696
19651         * optabs.c (expand_copysign_absneg): New.
19652         (expand_copysign_bit): Split out from ...
19653         (expand_copysign): ... here.  Use expand_copysign_absneg.
19654
19655 2005-01-30  Roger Sayle  <roger@eyesopen.com>
19656
19657         PR middle-end/19697
19658         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
19659         constant as the second operand and a register as the third.
19660
19661 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
19662
19663         PR target/19704
19664         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
19665         that dllimport'd functions do not use all call-clobbered registers
19666         to pass parameters.
19667
19668 2005-01-30  Richard Henderson  <rth@redhat.com>
19669
19670         PR 19696
19671         * optabs.c (expand_absneg_bit): Split out from expand_unop and
19672         expand_abs_nojump and generalize.  Use operand_subword and
19673         emit_no_conflict_block.  Support large modes.
19674         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
19675         back to maximum.
19676         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
19677         negation to subtraction.
19678         (expand_copysign): Check that the format has signed zeros.
19679         Use operand_subword and emit_no_conflict_block.  Support large modes.
19680
19681 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
19682
19683         Fix PR tree-optimization/19624
19684
19685         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
19686         * tree-ssa-pre.c: Add cfgloop.h.
19687         Update comment.
19688         (pre_stats): New member, constified.
19689         (inserted_exprs): New static variable.
19690         (NECESSARY): New macro.
19691         (create_expression_by_pieces): Fold the expression, and
19692         mark it as defaulting to not necessary. Also put in
19693         inserted_exprs.
19694         (fully_constant_expression): New function.
19695         (insert_into_preds_of_block): Modify to not insert phis when we
19696         are playing with induction variables.
19697         Push phis onto the inserted_exprs vector, and mark them as not
19698         necessary by default.
19699         (insert_aux): Call fully_constant_expression on eprime.
19700         If all edges produce the same value, mark it constant.
19701         (mark_operand_necessary): New function.
19702         (remove_dead_inserted_code): New function.
19703         (init_pre): Init loop optimizer to get loop info.
19704         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
19705         (execute_pre): Commit edge inserts, then remove dead code.
19706
19707 2005-01-30  Richard Henderson  <rth@redhat.com>
19708
19709         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
19710         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
19711
19712 2005-01-30  Richard Henderson  <rth@redhat.com>
19713
19714         PR target/19700
19715         * config/i386/i386.c (ix86_expand_copysign): New.
19716         (ix86_split_copysign_const): New.
19717         (ix86_split_copysign_var): Rename from ix86_split_copysign,
19718         rearrange op1/nmask operands.
19719         * config/i386/i386-protos.h: Update.
19720         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
19721         (copysigndf3): Likewise.
19722         (copysignsf3_const, copysigndf3_const): New.
19723         (copysignsf3_var): Rename from copysignsf3, split out splitter
19724         and fix split predicate for X constraint.
19725         (copysigndf3_var): Similarly.
19726
19727 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
19728
19729         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
19730         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
19731         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
19732
19733 2005-01-29  Richard Henderson  <rth@redhat.com>
19734
19735         PR target/19690
19736         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
19737         of # and * in constraints.
19738
19739 2005-01-29  Richard Henderson  <rth@redhat.com>
19740
19741         PR middle-end/19689
19742         * expr.c (store_field): Don't strip sub-mode cast when the input
19743         data is even smaller.
19744
19745 2005-01-29  Richard Henderson  <rth@redhat.com>
19746
19747         PR middle-end/19687
19748         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
19749         union being empty.
19750
19751 2005-01-29  Richard Henderson  <rth@redhat.com>
19752
19753         * combine.c (make_field_assignment): Fix argument order
19754         to gen_int_mode.
19755
19756 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
19757
19758         PR tree-optimization/15791
19759         * fold-const.c (extract_array_ref): New function.
19760         (fold): Fold comparisons between &a[i] and &a[j] or
19761         semantically equivalent trees.
19762
19763 2005-01-29  Jeff Law  <law@redhat.com>
19764
19765         * gcse.c (insert_expr_in_table): Revamp handling of available
19766         and anticipatable occurrence lists to avoid unnecessary list
19767         walking.
19768         (insert_set_in_table): Similarly.
19769
19770 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
19771
19772         * c-common.c (fix_string_type): Just use c_build_qualified_type to
19773         build string type.
19774         (c_build_qualified_type): Build qualified array types with
19775         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
19776         * c-decl.c (c_make_fname_decl): Build unqualified array type
19777         before qualified type.
19778         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
19779         type is qualified, not just if type itself is.  Don't apply
19780         qualifiers to array type when declarator is processed.  Apply
19781         qualifiers to field type whether or not it is an array type.
19782         Don't handle array types specially for applying qualifiers to
19783         variables.
19784         * c-typeck.c (composite_type): Build unqualified element type and
19785         array type when forming composite of array types.
19786         (common_pointer_type, comptypes, comp_target_types,
19787         type_lists_compatible_p, build_indirect_ref, build_array_ref,
19788         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
19789         types.
19790         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
19791         (args2) in variables a1 and a2.
19792
19793 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
19794
19795         * cse.c (n_elements_made, max_elements_made): Remove.
19796         (insert): Don't touch n_elements_made.
19797         (cse_main): Don't touch n_elements_made or max_elements_made.
19798
19799 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
19800
19801         PR target/15384
19802         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
19803         configuration part of dp-bit.c to be lost.
19804
19805 2005-01-28  Roger Sayle  <roger@eyesopen.com>
19806
19807         * expmed.c (expand_mult_highpart_optab): When attempting to use
19808         a non-widening multiplication in a wider mode, the operands need
19809         to be converted (zero or sign extended) to that mode.
19810
19811 2005-01-28  Ian Lance Taylor  <ian@airs.com>
19812
19813         PR middle-end/16558
19814         PR middle-end/19583
19815         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
19816         through if both operands fall through.
19817
19818 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
19819
19820         * cse.c (fold_rtx) <PC>: Don't optimize.
19821
19822 2005-01-28  Jeff Law  <law@redhat.com>
19823
19824         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
19825         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
19826
19827 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
19828
19829         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
19830         cse_reg_info_used_list_end): Remove.
19831         (cse_reg_info_list, cse_reg_info_list_free): New.
19832         (get_cse_reg_info): When allocating an instance of
19833         cse_reg_info, add it to the beginning of the cse_reg_info_list
19834         list.  Remove code to maintain cse_reg_info_used_list.
19835         (new_basic_block): Reset the free list to the beginning of
19836         cse_reg_info_list.
19837
19838 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
19839
19840         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
19841         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
19842         (frv_expand_mdpackh_builtin): New function.
19843         (frv_expand_builtin): Use it to expand __MDPACKH.
19844         * doc/extend.texi (__MDPACKH): Update documentation.
19845
19846 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
19847
19848         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
19849         SSE_FLOAT_MODE_P for use_sse computation.
19850
19851 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
19852
19853         PR target/19663
19854         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
19855
19856 2005-01-27  Richard Henderson  <rth@redhat.com>
19857
19858         * builtins.c (expand_builtin_copysign): New.
19859         (expand_builtin): Call it.
19860         * genopinit.c (optabs): Add copysign_optab.
19861         * optabs.c (init_optabs): Initialize it.
19862         (expand_copysign): New.
19863         * optabs.h (OTI_copysign, copysign_optab): New.
19864         (expand_copysign): Declare.
19865
19866         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
19867         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
19868
19869         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
19870         (ix86_expand_fp_absneg_operator): ... here.
19871         (ix86_split_copysign): New.
19872         * config/i386/i386-protos.h: Update.
19873         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
19874         (copysignsf3, copysigndf3): New.
19875
19876         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
19877         (copysignsf3, ncopysignsf3): New.
19878         (copysigndf3, ncopysigndf3): New.
19879         (copysignxf3, ncopysignxf3): New.
19880         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
19881
19882 2005-01-27  Arend Bayer  <arend.bayer@web.de>
19883             Kazu Hirata  <kazu@cs.umass.edu>
19884
19885         * cse.c: (find_best_addr): Don't call copy_rtx before calling
19886         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
19887         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
19888         NULL_RTX.
19889
19890 2005-01-27  Jeff Law  <law@redhat.com>
19891
19892         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
19893         definitions of SSA_NAMEs which are not being rewritten.
19894         (rewrite_ssa_into_ssa): Only initialize the current definition
19895         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
19896         If checking is enabled, assert that SSA_NAME_AUX is clear for all
19897         SSA_NAMEs before returning.
19898
19899 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
19900
19901         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
19902         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
19903         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
19904         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
19905         config/mips/iris6.h, config/sh/sh.c: Update copyright.
19906
19907 2005-01-27  Steven Bosscher  <stevenb@suse.de>
19908
19909         PR middle-end/17278
19910         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
19911         higher to -O2 and higher.  Likewise for tree PRE.
19912         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
19913         and better.
19914
19915 2005-01-27  Ian Lance Taylor  <ian@airs.com>
19916
19917         PR middle-end/19583
19918         * gimple-low.c (try_catch_may_fallthru): New static function.
19919         (block_may_fallthru): Handle TRY_CATCH_EXPR.
19920         * tree-inline.c (expand_call_inline): Don't warn about reaching
19921         the end of a non-void function being inlined if the function uses
19922         a return slot.
19923
19924 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
19925
19926         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
19927
19928         PR c/18946
19929         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
19930         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
19931         (implicitly_declare): Handle error_mark_node.
19932
19933 2005-01-27  Richard Henderson  <rth@redhat.com>
19934
19935         PR tree-opt/14329
19936         * tree.h (struct tree_decl): Add debug_expr_is_from.
19937         (DECL_DEBUG_EXPR_IS_FROM): New.
19938         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
19939         * dwarf2out.c (dwarf2out_var_location): Update to match.
19940         * tree-outof-ssa.c (create_temp): Likewise.
19941         * var-tracking.c (track_expr_p): Likewise.
19942         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
19943         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
19944         * toplev.c (default_tree_printer): Likewise.
19945
19946 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
19947
19948         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
19949         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
19950
19951 2005-01-27  Steven Bosscher  <stevenb@suse.de>
19952
19953         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
19954         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
19955         ASM_CLOBBERS): Add tree checks.
19956
19957         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
19958         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
19959         * c-common.def (SWITCH_STMT): Update to match.
19960         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
19961         macros instead of SWITCH_EXPR ones.
19962         * c-dump.c (c_dump_tree): Likewise.
19963         * c-gimplify.c (gimplify_switch_stmt): Likewise.
19964         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
19965
19966         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
19967
19968 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
19969
19970         * unwind-dw2.c (execute_stack_op): Add missing cases for
19971         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
19972
19973 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
19974
19975         * config.gcc (Obsolete configurations): Remove 'dummy', add
19976         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
19977         sparc-*-openbsd*.
19978
19979 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
19980
19981         PR tree-optimization/19633
19982         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
19983         CALL_EXPRs.
19984         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
19985         are no call-clobbered variables.
19986         * tree-outof-ssa.c (check_replaceable): Return false for calls
19987         with side-effects.
19988
19989 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
19990
19991         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
19992         even for variables with NULL DECL_INITIAL.
19993
19994 2005-01-26  Stuart Hastings  <stuart@apple.com>
19995
19996         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
19997
19998 2005-01-26  Richard Henderson  <rth@redhat.com>
19999
20000         PR middle-end/18008
20001         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
20002         field's type.
20003         * expr.c (store_field): Strip conversions to odd-bit-sized types
20004         if the destination field width matches.
20005
20006 2005-01-26  Richard Henderson  <rth@redhat.com>
20007
20008         * c-decl.c, expmed.c, expr.c: Revert last change.
20009
20010 2005-01-26  Richard Henderson  <rth@redhat.com>
20011
20012         PR middle-end/18008
20013         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
20014         field's type.
20015         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
20016         if we don't need the bits above those present in the current mode.
20017         * expr.c (store_field): Strip conversions to odd-bit-sized types
20018         if the destination field width matches.
20019
20020 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
20021
20022         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
20023         either -ffast-math or -funsafe-math-optimizations is in use.
20024
20025 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20026
20027         PR target/19293
20028         PR target/19329
20029         * config/avr/avr.c (notice_update_cc): Only set condition code for
20030         ashrqi3 if shift count > 0.
20031         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
20032         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
20033         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
20034         count <= 0 as a no-op, and shift count >= width by copying zero
20035         or sign bit to all bits of the result.
20036         * config/avr/avr.md (all shifts): Add alternatives for zero shift
20037         count, with attribute "length" set to 0 and "cc" set to "none".
20038
20039 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
20040
20041         * doc/invoke.texi: Document -mTLS.
20042
20043         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
20044         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
20045         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
20046         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
20047         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
20048         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
20049         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
20050         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
20051
20052         * configure.ac: Check for a TLS capable gas.
20053
20054         * configure: Regenerate.
20055
20056 2005-01-26  Richard Henderson  <rth@redhat.com>
20057
20058         PR middle-end/18008
20059         * combine.c (make_field_assignment): Simplify store to zero_extract
20060         from a source with an overlapping mask.
20061
20062 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
20063
20064         2004-11-11  Eric Christopher  <echristo@redhat.com>
20065
20066         * config/frv/frv.md: Add fr400_integer automaton. Don't
20067         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
20068         to TYPE_MACC.
20069
20070 2005-01-26  Steven Bosscher  <stevenb@suse.de>
20071
20072         PR middle-end/16585
20073         * cfgbuild.c (make_edges): Do not clear or set
20074         current_function_has_computed_jump.
20075         * function.h (struct function): Remove the has_computed_jump field.
20076         (current_function_has_computed_jump): Do not define.
20077         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
20078         in a computed jump.  Ignore current_function_has_computed_jump.
20079
20080 2005-01-26  Richard Henderson  <rth@redhat.com>
20081
20082         PR middle-end/19515
20083         * expr.c (categorize_ctor_elements): New argument p_must_clear.
20084         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
20085         fully initialized.
20086         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
20087         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
20088         objects into static storage if they have more than one non-zero value.
20089         * tree.h (categorize_ctor_elements): Update decl.
20090
20091 2005-01-26  Steven Bosscher  <stevenb@suse.de>
20092
20093         PR middle-end/19616
20094         * tree.h (CALL_EXPR_TAILCALL): Add comment.
20095         * calls.c (check_sibcall_argument_overlap_1): Revert the change
20096         to this function from 2004-07-10.
20097         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
20098         the current function for tail call optimizations if the address
20099         of one of it its arguments is taken.
20100
20101 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20102
20103         * cse.c (fold_rtx): Call equiv_constant only when necessary.
20104
20105 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
20106
20107         * function.c (expand_function_end): If current_function_calls_alloca,
20108         emit stack restore in a place that is reached when the function falls
20109         through at the end.
20110
20111 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
20112
20113         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
20114         rule to avoid matching inappropriate suffix rule.
20115
20116 2005-01-26  Jan Hubicka  <jh@suse.cz>
20117
20118         PR tree-optimization/19241
20119         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
20120
20121 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
20122
20123         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
20124         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
20125         of doubling.
20126         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
20127         <sim*>: Always use crt1.o, regardless of N in simN.
20128         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
20129         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
20130         (CRT_CALL_STATIC_FUNCTION): Remove.
20131         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
20132         use crt1.o, regardless of N in simN.
20133         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
20134         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
20135         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
20136         case isystem setting.
20137         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
20138
20139 2005-01-25  Ian Lance Taylor  <ian@airs.com>
20140
20141         * gimple-low.c (block_may_fallthru): Correct handling of
20142         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
20143
20144 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
20145
20146         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
20147         handlers to match indentation; nested under the mtune=* handler.
20148         Similar for mcpu= and march=.
20149
20150 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
20151
20152         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
20153         * config/mips/linux64.h (LIB_SPEC): Likewise.
20154         * config/mn10300/linux.h (LIB_SPEC): Likewise.
20155         * config/sh/linux.h (LIB_SPEC): Likewise.
20156
20157 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
20158
20159         * config/frv/frv.c (frv_legitimize_tls_address): New.
20160         (TARGET_HAVE_TLS): Define.
20161         (FRV_SYMBOL_REF_TLS_P): Define.
20162         (frv_override_options): Handle new register classes.
20163         (frv_legitimate_address_p): Reject tls addresses.
20164         (frv_legitimize_address): Handle TLS addresses.
20165         (gen_inlined_tls_plt): New.
20166         (gen_tlsmoff): New.
20167         (frv_legitimize_tls_address): New.
20168         (unspec_got_name): Add TLS entries.
20169         (got12_operand): Add R_FRV_TLSMOFF12 case.
20170         (frv_emit_move): Fixup TLS addresses.
20171         (frv_emit_movsi): Legitimize TLS addresses.
20172
20173         * config/frv/frv.h (MASK_BIG_TLS): New.
20174         (TARGET_BIG_TLS): New.
20175         (HAVE_AS_TLS): Define.
20176         (TARGET_SWITCHES): Add -mTLS and -mtls options.
20177         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
20178         (REG_CLASS_NAMES): Same.
20179         (REG_CLASS_CONTENTS): Same.
20180         (CONSTRAINT_LEN): New.
20181         (REG_CLASS_FROM_CONSTRAINT): New.
20182         (PREDICATE_CODES): Add symbolic_operand.
20183
20184         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
20185         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
20186         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
20187         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
20188         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
20189         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
20190         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
20191         GR9_REG, GR14_REG, LRREG.
20192         (type): Add load_or_call attribute.
20193         ("load_or_call"): New reservation.
20194         ("call_gettlsoff"): New.
20195         ("tls_indirect_call"): New.
20196         ("tls_load_gottlsoff12"): New.
20197         ("tlsoff_hilo"): New.
20198         ("tls_tlsdesc_ldd"): New.
20199         ("tls_tlsoff_ld"): New.
20200         ("tls_lddi"): New.
20201
20202         * config/frv/frv-protos.h (symbolic_operand): Protoize.
20203
20204         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
20205
20206         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
20207         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
20208         * config/frv/frv.c (TLS_BIAS): Define.
20209         (frv_output_dwarf_dtprel): New.
20210
20211 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
20212
20213         PR rtl-optimization/19579
20214         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
20215         both A and B, see if they don't clobber registers the other expr uses.
20216
20217 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
20218
20219         * real.c (do_add): Initialize signalling and canonical members.
20220
20221         * real.c (real_from_integer): Zero out destination.
20222
20223 2005-01-18  Jan Hubicka  <jh@suse.cz>
20224
20225         PR tree-optimize/19337
20226         * tree-inline.c (initialize_inlined_parameters): Copy
20227         saved_static_chain_decl only.
20228
20229 2005-01-25  Richard Henderson  <rth@redhat.com>
20230
20231         PR target/19556
20232         PR target/19584
20233         * config/i386/i386.c (x86_inter_unit_moves): Zero.
20234         (ix86_preferred_reload_class): Rewrite fp-constant section, with
20235         80387 enabled, to return a proper subclass.  Return the subset that
20236         overlaps with GENERAL_REGS for PLUS.
20237         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
20238
20239 2005-01-25  Richard Henderson  <rth@redhat.com>
20240
20241         PR middle-end/19609
20242         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
20243
20244 2005-01-25  Roger Sayle  <roger@eyesopen.com>
20245
20246         * expmed.c (choose_multiplier): Change interface to return the
20247         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
20248         (expand_divmod): Update calls to choose_multiplier.
20249
20250 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20251
20252         PR middle-end/19330
20253         * expmed.c (extract_bit_field): Use adjust_address instead of
20254         gen_lowpart when op0 is a MEM.
20255
20256 2005-01-24  Steven Bosscher  <stevenb@suse.de>
20257
20258         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
20259
20260 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
20261
20262         * config/mips/irix-csr.c: New file.
20263         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
20264         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
20265         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
20266         executables.
20267
20268 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
20269
20270         PR bootstrap/19364
20271         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
20272         sparc/elf.h, add sparc/sp-elf.h.
20273         (sparc-*-rtems*): Likewise.
20274         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
20275         tm-dwarf2.h, add sparc/sp-elf.h.
20276         (sparc86x-*-elf): Likewise.
20277         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
20278         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
20279         TARGET_OS_CPP_BUILTINS.
20280         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
20281         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
20282         Undefine it.
20283         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
20284         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
20285         (SWITCH_TAKES_ARG): Likewise.
20286         (LOCAL_LABEL_PREFIX): Likewise.
20287         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20288         (TARGET_N_FORMAT_TYPES): Delete.
20289         (TARGET_FORMAT_TYPES): Likewise.
20290         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
20291         * config/sparc/elf.h: Delete.
20292         * config/sparc/sp-elf.h: New file.
20293
20294 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20295
20296         * tree-flow-inline.h (phi_arg_from_edge): Remove.
20297         * tree-flow.h: Remove the corresponding prototype.
20298         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
20299         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
20300
20301 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
20302
20303         PR target/17751
20304         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
20305         for AIX ABI or ELF -fPIC.
20306         (rs6000_emit_load_toc_table): Don't create toc_section here.
20307         (rs6000_xcoff_file_start): Nor here.
20308
20309 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
20310
20311         * sh.c (ra.h): Don't #include.
20312         (hard_regs_intersect_p): New function, resurrected from ra.c.
20313
20314         * sh.c: Fix 1996 Copyright.
20315
20316 2005-01-24  Richard Henderson  <rth@redhat.com>
20317             Aldy Hernandez  <aldyh@redhat.com>
20318
20319         * regrename.c (note_sets): Handle subregs.
20320
20321 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
20322
20323         PR bootstrap/18058
20324         * genconditions.c (write_header, write_conditions): Elide file if
20325         not GCC >= 3.0.1.
20326
20327 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20328
20329         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
20330         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
20331         Update copyright.
20332
20333 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
20334
20335         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
20336         expand_builtin_printf, expand_builtin_fprintf,
20337         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
20338         checking against POINTER_TYPE.
20339         (validate_arglist): Handle POINTER_TYPE code by checking
20340         POINTER_TYPE_P.
20341
20342 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
20343
20344         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
20345         init_rtlanal): New.
20346         (for_each_rtx): Call for_each_rtx_1.
20347         * rtl.h (init_rtlanal): Declare.
20348         * toplev.c (backend_init): Call init_rtlanal.
20349
20350 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
20351
20352         * flow.c (propagate_one_insn): Formatting.
20353
20354         PR middle-end/19551
20355         * flow.c (libcall_dead_p): Be more conservative if unsure.
20356         If there are any instructions between insn and call, see if they are
20357         all dead before saying the libcall is dead.
20358
20359 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
20360
20361         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
20362         operand constraint for operand 0.
20363
20364 2005-01-23  Richard Henderson  <rth@redhat.com>
20365
20366         PR 19486
20367         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
20368         edges leading to join block.
20369
20370 2005-01-23  Roger Sayle  <roger@eyesopen.com>
20371
20372         * expmed.c (expand_mult_highpart): Make static.  Change type of
20373         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
20374         (expand_divmod): Updates calls to expand_mult_highpart by using
20375         gen_int_mode to pass a CONST_INT rtx.
20376         * rtl.h (expand_mult_highpart): Remove prototype.
20377
20378 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
20379
20380         * flow.c (regset_bytes, regset_size): Remove.
20381
20382         * cfganal.c: Fix a reference to Harvey's paper.
20383
20384 2005-01-23  Steven Bosscher  <stevenb@suse.de>
20385
20386         PR rtl-optimization/19464
20387         * tree-optimize.c (init_tree_optimization_passes): Add one more
20388         copyrename pass just before out-of-ssa.
20389
20390 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
20391
20392         PR bootstrap/18058
20393         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
20394         * ggc-none.c (ggc_free): Define.
20395
20396 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
20397
20398         * cse.c (max_reg, max_insn_uid): Remove.
20399         (cse_main): Don't access max_reg or max_insn_uid.
20400
20401         * c-common.c (explicit_flag_signed_bitfields,
20402         lang_statement_code_p, lang_expand_function_end): Remove.
20403         * c-common.h: Remove the corresponding declarations.
20404         * c-opts.c (c_common_handle_option): Remove all write access
20405         to explicit_flag_signed_bitfields.
20406
20407         * cgraph.c (cgraph_varpool_n_nodes): Remove.
20408         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
20409         * cgraph.h: Remove the corresponding declaration.
20410
20411         * gcse.c (null_pointer_info): Remove.
20412
20413 2005-01-23  Roger Sayle  <roger@eyesopen.com>
20414             Eric Botcazou  <ebotcazou@libertysurf.fr>
20415
20416         * combine.c (simplify_logical): Only simplify logical expressions
20417         of the form ior(and(x,y),z) by the inverse distributive law if the
20418         result is cheaper than the original.
20419
20420 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
20421
20422         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
20423         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
20424         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
20425         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
20426         config/freebsd-spec.h, config/arm/arm.h,
20427         config/h8300/h8300.md, config/i386/i386.md,
20428         config/i386/predicates.md, config/i386/sse.md,
20429         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
20430         config/vax/vax.md: Fix comment typos.  Follow spelling
20431         conventions.
20432
20433 2005-01-23  Steven Bosscher  <stevenb@suse.de>
20434
20435         * gengtype.c (walk_type): Produce `not equal to' compares for loop
20436         tests, instead of `less than'.
20437
20438 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
20439
20440         * function.c (assign_parm_setup_block): When creating a new stack slot
20441         for a parameter, get its alignment from the parameter's DECL_ALIGN
20442         rather than the type's TYPE_ALIGN.  Make sure that the parameter
20443         is at least word aligned.
20444
20445 2005-01-22  Roger Sayle  <roger@eyesopen.com>
20446
20447         PR middle-end/19378
20448         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
20449
20450 2005-01-22  Richard Henderson  <rth@redhat.com>
20451
20452         PR target/19506
20453         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
20454         in both compare operands.
20455         (movdfcc_1_sse_max): Likewise.
20456         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
20457         (movdfcc_1_sse): Likewise.
20458         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
20459         scratch register as needed.
20460
20461 2005-01-22  Richard Henderson  <rth@redhat.com>
20462
20463         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
20464
20465         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
20466
20467 2005-01-22  Richard Henderson  <rth@redhat.com>
20468
20469         * genopinit.c (optabs): Use smin/smax for floating point too.
20470         * doc/md.texi: Update to match.  Clarify that floating point
20471         results are undefined for +0/-0 and NaN.
20472         * doc/rtl.texi: Likewise.
20473         * rtl.def (SMIN, SMAX): Likewise
20474         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
20475
20476         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
20477         leading 's' to the name.
20478         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
20479         smaxxf3, sminxf3): Likewise.
20480         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
20481         Likewise.
20482
20483 2005-01-22  Paul Brook  <paul@codesourcery.com>
20484
20485         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
20486
20487 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
20488
20489         * config/s390/s390.c (struct processor_costs): New fields
20490         dlgr, dlr, dr, dsgfr, dsgr.
20491         (z900_cost, z990_cost): Values for new fields.
20492         (s390_rtx_costs): New cases MEM und COMPARE in switch
20493         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
20494         DIV, MOD, UDIV, UMOD.
20495
20496 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
20497
20498         * config/s390/s390.md ("doloop_si64"): Reload input value directly
20499         into the register being decremented.
20500         ("doloop_si31", "doloop_di"): Likewise.
20501         ("*doloop_si_long"): Adapt pattern.
20502
20503 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
20504
20505         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
20506         access registers.
20507         (CLASS_MAX_NREGS): Likewise.
20508
20509 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
20510
20511         * doc/tree-ssa.texi (Statement Operands): Add example for new
20512         must-def macro. Note deprecation of old operands interface.
20513
20514 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
20515
20516         PR tree-optimization/19484
20517         * tree-cfg.c (remove_fallthru_edge): New function.
20518         (cleanup_control_flow): Remove fallthru edges from calls that are
20519         now known not to return.
20520
20521 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
20522
20523         Fix PR tree-optimization/19038
20524         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
20525         copies with loop variant ones.
20526
20527 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
20528
20529         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
20530         config/alpha/alpha-protos.h, config/alpha/alpha.h,
20531         config/alpha/alpha.md, config/alpha/predicates.md,
20532         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
20533         config/sparc/sol2.h: Update copyright.
20534
20535         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
20536         first label to see if it is a nonlocal label.
20537
20538 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
20539             Andrew Pinski  <pinskia@physics.uc.edu>
20540
20541         PR target/19491
20542         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
20543         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
20544
20545 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
20546
20547         * config/rs6000/rtems.h: Update copyright.
20548
20549 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
20550
20551         PR target/19548
20552         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
20553         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
20554         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
20555
20556 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20557
20558         PR c/18809
20559         * c-typeck.c (convert_arguments): Check for error_mark_node.
20560
20561 2005-01-21  Ian Lance Taylor  <ian@airs.com>
20562
20563         PR tree-optimization/13000
20564         * tree-inline.c: Include "tree-flow.h".
20565         (expand_call_inline): If warn_return_type, warn if non-void inline
20566         function falls through.
20567         * tree-cfg.c (execute_warn_function_return): Don't warn about
20568         control reaching end if TREE_NO_WARNING is set.  Set
20569         TREE_NO_WARNING.
20570         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
20571         has been lowered.
20572         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
20573         branch if we don't need one.
20574         * c-typeck.c: Include "tree-flow.h"
20575         (c_finish_bc_stmt): Don't add a goto if the current statement
20576         list doesn't fall through to the current point.
20577
20578 2005-01-21  Roger Sayle  <roger@eyesopen.com>
20579
20580         PR rtl-optimization/576
20581         * real.c (real_arithmetic): Change return type from void to bool
20582         to return an indication that the result may be inexact.
20583         * real.h (real_arithmeric): Update prototype.
20584         * fold-const.c (const_binop):  Don't constant fold floating
20585         point expressions when the user specifies -frounding-math and
20586         the result may depend upon the run-time rounding mode.
20587         (fold_convert_const_real_from_real): Clean-up.
20588         (fold_initializer): Ignore flag_rounding_math for initializers.
20589         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
20590         constant fold FP operations with flag_rounding_math if the
20591         result may depend upon the run-time rounding mode.
20592
20593 2005-01-21  Tom Tromey  <tromey@redhat.com>
20594
20595         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
20596
20597 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
20598
20599         * tree-cfg.c: Fix comment typos.
20600
20601 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
20602
20603         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
20604         around the call to rest_of_handle_branch_target_load_optimize.
20605
20606 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
20607
20608         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
20609         (sparc64-*-openbsd*): Likewise.
20610         (sparclite-*-elf*): Include tm-dwarf2.h.
20611         (sparc86x-*-elf*): Likewise.
20612         (sparc64-*-elf*): Likewise.
20613         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
20614         (DBX_DEBUGGING_INFO): Likewise.
20615         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
20616         (PREFERRED_DEBUGGING_TYPE): Likewise.
20617         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
20618         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
20619         (PREFERRED_DEBUGGING_TYPE): Likewise.
20620         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
20621         (PREFERRED_DEBUGGING_TYPE): Likewise.
20622         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
20623
20624 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
20625
20626         PR target/18701
20627         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
20628
20629 2005-01-20  Paul Brook  <paul@codesourcery.com>
20630
20631         * doc/rtl.texi: Document value extension requirements for CONST_INT.
20632
20633 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20634
20635         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
20636         label is first in a sequence of labels.
20637
20638         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
20639
20640 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
20641             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
20642
20643         * doc/sourcebuild.texi (Test Directives): New.
20644
20645 2005-01-20  Roger Sayle  <roger@eyesopen.com>
20646
20647         * real.c (real_floor): Don't leave the result uninitialized when
20648         mode is VOIDMode, but return the unrounded intermediate value.
20649         (real_ceil): Likewise.
20650
20651 2005-01-20  Paul Brook  <paul@codesourcery.com>
20652
20653         * config/arm/arm.md (insv): Use gen_int_mode.
20654
20655 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
20656
20657         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
20658         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
20659         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
20660         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
20661         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
20662
20663 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
20664
20665         Fix PR debug/19124
20666         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
20667         fbreg, so we have to assume we can't.
20668         (loc_descriptor_from_tree_1): Ditto.
20669         (containing_function_has_frame_base): New function.
20670         (add_location_or_const_value_attribute): Use it.
20671         Also try to generate a frame_base from a single element location
20672         list.
20673
20674 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20675
20676         PR tree-optimization/15349
20677         * timevar.def (TV_TREE_MERGE_PHI): New.
20678         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
20679         PHI_WANTED.
20680         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
20681         calls to tree_forwarder_block_p.
20682         (remove_forwarder_block_with_phi, merge_phi_nodes,
20683         gate_merge_phi, pass_merge_phi): New.
20684         * tree-optimize.c (init_tree_optimization_passes): Add
20685         pass_merge_phi.
20686         * tree-pass.h: Add an extern for pass_merge_phi;
20687
20688 2005-01-20  Richard Henderson  <rth@redhat.com>
20689
20690         PR target/19418
20691         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
20692         (_mm_castps_pd, _mm_castps_si128): New.
20693         (_mm_castsi128_ps, _mm_castsi128_pd): New.
20694
20695 2005-01-20  Richard Henderson  <rth@redhat.com>
20696
20697         PR target/19530
20698         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
20699         __builtin_ia32_vec_init_v2si.
20700         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
20701         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
20702         (ix86_init_mmx_sse_builtins): Create it.
20703         (ix86_expand_builtin): Expand it.
20704         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
20705         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
20706         (vec_extractv2si_0, vec_extractv2si_1): New.
20707
20708 2005-01-20  Richard Henderson  <rth@redhat.com>
20709
20710         PR target/16533
20711         * config/i386/i386.c (ix86_expand_push): New.
20712         * config/i386/mmx.md (push<MMXMODE>1): New.
20713         * config/i386/sse.md (push<SSEMODE>1): New.
20714         * config/i386/i386-protos.h: Update.
20715
20716 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
20717
20718         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
20719         copyright.
20720
20721 2005-01-20  Richard Henderson  <rth@redhat.com>
20722
20723         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
20724         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
20725
20726 2005-01-19  Richard Henderson  <rth@redhat.com>
20727
20728         PR target/19350
20729         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
20730         to V4SFmode in SSE1 fallback load path.
20731
20732 2005-01-19  Richard Henderson  <rth@redhat.com>
20733
20734         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
20735         in QImode expansion to ix86_expand_vector_set.
20736         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
20737
20738 2005-01-19  Richard Henderson  <rth@redhat.com>
20739
20740         PR target/19511
20741         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
20742         subclass of the input class.
20743         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
20744         Always true for cross-SSE1 classes.  Rationalize conditionals.
20745         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
20746         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
20747         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
20748         (movdi_2): Add MMX/SSE zeros.
20749         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
20750         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
20751         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
20752         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
20753         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
20754         (zero_extendsidi2_rex64_1): Remove.
20755         (MOV0 peephole): Check GENERAL_REG_P.
20756
20757 2005-01-19  Richard Henderson  <rth@redhat.com>
20758
20759         PR target/19427
20760         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
20761         shufps elements.
20762         (ix86_expand_vector_extract): Likewise.
20763
20764 2005-01-19  Richard Henderson  <rth@redhat.com>
20765
20766         PR middle-end/19304
20767         * expr.c (emit_move_change_mode): New argument force; use
20768         simplify_gen_subreg if true.
20769         (emit_move_via_alt_mode): Merge into ...
20770         (emit_move_via_integer): ... here.
20771         (emit_move_ccmode): Use emit_move_change_mode directly.
20772
20773 2005-01-19  Richard Henderson  <rth@redhat.com>
20774
20775         PR target/19518
20776         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
20777         (alpha_preferred_reload_class): Handle CONST_VECTOR.
20778         (alpha_emit_set_const_1): Add no_output parameter; don't emit
20779         rtl if true.
20780         (alpha_emit_set_const): Likewise.  Make static.
20781         (alpha_emit_set_long_const): Make static.
20782         (alpha_extract_integer): Split out from alpha_expand_mov.
20783         (alpha_split_const_mov): Likewise.
20784         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
20785         (alpha_legitimate_constant_p): New.
20786         * config/alpha/alpha-protos.h: Update.
20787         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
20788         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
20789         * config/alpha/alpha.md (movsi): Add n alternative.
20790         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
20791         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
20792         (splitters for all of the above): Use alpha_split_const_mov.
20793         * config/alpha/predicates.md (non_add_const_operand): New.
20794         (non_zero_const_operand): New.
20795         (input_operand): Use alpha_legitimate_constant_p after reload.
20796
20797 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
20798
20799         PR tree-optimization/19038
20800         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
20801         (add_candidate): Add ivs with increment in latch only if
20802         allow_ip_end_pos_p is true.
20803         (determine_iv_cost): Use empty_block_p.
20804
20805 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
20806
20807         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
20808         (compute_dominance_frontiers): Ditto.
20809
20810 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
20811
20812         PR target/19529
20813         * config/sh/t-rtems: New.
20814         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
20815
20816 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
20817
20818         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
20819         the offset of the selected field.
20820
20821 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
20822
20823         * tree-cfg.c (remove_forwarder_block): Fix the check to
20824         prevent a nonlocal label from appearing in the middle of a
20825         basic block.
20826
20827 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
20828
20829         PR rtl-optimization/19462
20830         * reorg.c (find_end_label): Create return insn only if
20831         current_function_epilogue_delay_list is empty.
20832
20833 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
20834
20835         * doc/passes.texi: Remove paragraph mentioning new-ra.
20836
20837 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
20838
20839         PR rtl-optimization/15139
20840         * combine.c: Include params.h.
20841         (count_rtxs): New function.
20842         (record_value_for_reg): If replace_rtx would replace at least
20843         2 occurrences of REG in VALUE and TEM is really large, replace REG with
20844         (clobber (const_int 0)) instead of TEM.
20845         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
20846         * params.h (MAX_LAST_VALUE_RTL): New.
20847         * Makefile.in (combine.o): Depend on $(PARAMS_H).
20848         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
20849
20850         PR c/17297
20851         * c-typeck.c (digest_init): Only call build_vector if all constructor
20852         elements are *_CST nodes.
20853         * gimplify.c (gimplify_init_constructor): Likewise.
20854
20855         PR middle-end/19164
20856         * c-typeck.c (digest_init): Only call build_vector if inside_init
20857         is a CONSTRUCTOR.
20858
20859 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
20860
20861         * toplev.c (init_asm_output): Remove dead #ifdef.
20862
20863 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20864
20865         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
20866
20867 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
20868
20869         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
20870         accessing DECL_FUNCTION_CODE.
20871         * dojump.c (do_jump): Likewise.
20872         * gimplify.c (gimplify_call_expr): Likewise.
20873         * predict.c (expr_expected_value): Likewise.
20874         (strip_builtin_expect): Likewise.
20875         * tree-inline.c (estimate_num_insns_1): Likewise.
20876         * tree-ssa-loop-im.c (stmt_cost): Likewise
20877         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
20878         (tree_expr_nonnegative_p): Likewise.
20879
20880 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
20881
20882         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
20883         variant of the load_pcrel_sym pattern.
20884         * config/sparc/sparc.md (P macro): Move to the top.
20885         (load_pcrel_sym): Macroize using P.
20886         (save_register_window): Likewise.
20887
20888 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
20889
20890         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
20891         ("sordered"): Same.
20892
20893 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
20894
20895         PR C/19472
20896         * c-typeck.c (build_asm_expr): Strip nops off
20897         input memory operands.
20898
20899 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
20900
20901         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
20902         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
20903         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
20904         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
20905
20906 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
20907
20908         PR target/19379
20909         * config/i386/i386.c (override_options): If the 80387 is disabled,
20910         then do not return FP values using FP registers.
20911
20912 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
20913
20914         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
20915         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
20916         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
20917         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
20918         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
20919         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
20920         output.h, postreload-gcse.c, postreload.c, recog.c,
20921         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
20922         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
20923         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
20924         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
20925         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
20926         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
20927         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
20928         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
20929
20930         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
20931         config/alpha/alpha.c, config/arm/vfp.md,
20932         config/i386/emmintrin.h, config/i386/i386-modes.def,
20933         config/i386/i386-protos.h, config/i386/i386.h,
20934         config/i386/pmmintrin.h, config/i386/ppro.md,
20935         config/i386/predicates.md, config/i386/xmmintrin.h,
20936         config/i860/i860.c, config/ia64/ia64-modes.def,
20937         config/ia64/ia64-protos.h, config/ia64/ia64.h,
20938         config/ia64/ia64.md, config/ia64/itanium1.md,
20939         config/ia64/itanium2.md, config/ia64/predicates.md,
20940         config/iq2000/iq2000.h, config/mips/linux64.h,
20941         config/rs6000/aix41.h, config/rs6000/aix43.h,
20942         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
20943         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
20944         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
20945         config/sparc/linux64.h, config/sparc/litecoff.h,
20946         config/sparc/sp64-elf.h, config/sparc/sparc.c,
20947         config/sparc/sparc.h, config/sparc/sparc.md,
20948         config/sparc/sysv4-only.h: Update copyright.
20949
20950 2005-01-18  Richard Henderson  <rth@redhat.com>
20951
20952         PR target/19496
20953         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
20954
20955 2005-01-18  Marc Espie  <espie@openbsd.org>
20956         * config/i386/openbsdelf.h: Typo.
20957
20958 2005-01-18  Richard Henderson  <rth@redhat.com>
20959
20960         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
20961         special case for sse.
20962         * config/i386/predicates.md (sse_comparison_operator): Likewise.
20963
20964 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
20965
20966         * tree-inline.c (estimate_num_insns_1): Added cases for
20967         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
20968
20969 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
20970
20971         PR rtl-optimization/19296
20972         * combine.c (simplify_comparison): Rewrite the condition under
20973         which a non-paradoxical SUBREG of a PLUS can be lifted when
20974         compared against a constant.
20975
20976 2005-01-18  Andi Kleen <ak@muc.de>
20977
20978         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
20979         * c.opt (-Wpointer-sign): Add.
20980         * doc/invoke.texi: (-Wpointer-sign): Add.
20981
20982 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
20983
20984         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
20985         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
20986         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
20987         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
20988         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
20989         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
20990         for TARGET_MIX_SSE_I387.
20991         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
20992         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
20993         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
20994         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
20995         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
20996         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
20997         TARGET_MIX_SSE_I387.
20998         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
20999         from expander.
21000
21001 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
21002
21003         PR target/19424
21004         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
21005         Add movaps alternative for xmm reg->reg move.
21006
21007 2005-01-17  Jeff Law  <law@redhat.com>
21008
21009         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
21010         at the end of the main DOM loop rather than just before DOM exits.
21011
21012 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
21013
21014         PR tree-optimization/19121
21015         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
21016         adding aliases to a name tag, also add them to the pointer's
21017         type tag.
21018         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
21019         sensitive alias info at all.  Only check that the two pointers
21020         have compatible pointed-to sets.
21021         * tree-ssa.c (verify_name_tags): Verify that the alias set of
21022         a pointer's type tag is a superset of the alias set of the
21023         pointer's name tag.
21024
21025 2005-01-17  James E Wilson  <wilson@specifixinc.com>
21026
21027         PR target/19357
21028         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
21029         comment to document why.
21030
21031 2005-01-17  Richard Henderson  <rth@redhat.com>
21032
21033         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
21034         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
21035         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
21036         sse2_vmsminv2df3_finite): New.
21037         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
21038         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
21039         Force op1 into register.
21040
21041 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
21042
21043         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
21044         bubblestrap from always rebuilding build directory.
21045
21046 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
21047
21048         * config/s390/s390.md ("*clc"): Remove incorrect '='.
21049         ("*cmpmem_short"): Likewise.
21050
21051 2005-01-17  Steven Bosscher  <stevenb@suse.de>
21052
21053         * basic-block.h: Document BB_* flags.
21054         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
21055         use an sbitmap instead.
21056         * sched-rgn.c (compute_trg_info): Likewise.
21057
21058 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
21059
21060         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
21061         redundant target_cpu_default and extra_parts lines.  Use the default
21062         "from-abi" ISA.
21063         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
21064         (SUBTARGET_EXTRA_SPECS): Delete.
21065         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
21066         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
21067         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
21068         and "n32" for -mabi=n32.
21069
21070 2005-01-17  Ian Lance Taylor  <ian@airs.com>
21071
21072         PR c/5675
21073         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
21074         fold constant variables into initial values.
21075
21076 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21077
21078         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
21079
21080         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
21081         through the statements backward.
21082
21083 2005-01-17  Ian Lance Taylor  <ian@airs.com>
21084
21085         PR middle-end/13127:
21086         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
21087         a variable set to the return value of the inlined function.
21088
21089 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
21090
21091         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
21092         when modes are tieable.
21093
21094 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
21095
21096         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
21097         of pthread_create to find out if threads are enabled.
21098         * gthr-posix95.h (__gthread_active_p): Likewise.
21099
21100 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
21101
21102         * common.opt (-fnew-ra): Remove.
21103         * ra*.*: Remove.
21104         * toplev.h (flag_new_regalloc): Remove.
21105         * Makefile.in (ra*.*): Don't mention.
21106         * passes.c (rest_of_handle_new_regalloc): Remove.
21107         (rest_of_handle_combine, rest_of_compilation): Always consider
21108         flag_new_regalloc as false.
21109         * doc/invoke.texi: Don't document -fnew-ra.
21110
21111 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
21112
21113         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
21114         last parameter to reg_scan.
21115         * loop.c (loop_optimize): Likewise.
21116         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
21117         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
21118         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
21119         rest_of_handle_gcse, rest_of_handle_loop_optimize,
21120         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
21121         * regclass.c (reg_scan): Likewise, for the declaration.
21122         * rtl.h (reg_scan): Likewise, for the prototype.
21123
21124 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21125
21126         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
21127         mark_dfs_back_edges.
21128
21129 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
21130
21131         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
21132         (compute_avail): Uses don't go in tmp_gen.
21133
21134 2005-01-16  Steven Bosscher  <stevenb@suse.de>
21135
21136         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
21137         loop to look for a free slot in a page entry.
21138
21139 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21140
21141         PR target/16304
21142         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
21143         * toplev.c (compile_file): Call process_pending_assemble_output_defs
21144         just before targetm.asm_out.file_end.
21145         * tree.h (process_pending_assemble_output_defs): Declare.
21146         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
21147         New functions.
21148         (assemble_alias): Defer generation of assembly code for defines when
21149         TARGET_DEFERRED_OUTPUT_DEFS is true.
21150         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
21151         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
21152         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
21153
21154 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21155
21156         PR target/19336
21157         * pa.c (pa_scalar_mode_supported_p): New function.
21158         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21159         * pa.h (MIN_UNITS_PER_WORD): Add comment.
21160
21161         * pa-protos.h (prefetch_operand): Delete.
21162         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
21163         * pa.c (prefetch_operand): Delete.
21164         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
21165         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
21166         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
21167         and prefetch_nocc_operand.
21168         * pa.md (prefetch): Rework to avoid reload problems handling short
21169         displacements when a cache control completer needs to be provided.
21170         (prefetch_32, prefetch_64): Delete.
21171         (prefetch_cc, prefetch_nocc): New patterns.
21172
21173 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
21174
21175         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
21176
21177 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21178
21179         PR ada/19388
21180         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
21181         exceeds maximum alignment for global common data.
21182         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
21183         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
21184
21185 2004-01-15  Roger Sayle  <roger@eyesopen.com>
21186
21187         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
21188
21189 2004-01-15  Roger Sayle  <roger@eyesopen.com>
21190
21191         * harg-reg-set.h (reg_class_names): Prototype global array.
21192         * regclass.c (reg_class_names): Declare here and initialize to
21193         REG_CLASS_NAMES.
21194         (dump_regclass): Remove local declaration of reg_class_names.
21195         (regclass): Likewise.
21196         * cfg.c (dump_flow_info): Likewise.
21197         * ra-debug.c (reg_class_names): Likewise.
21198         * regrename.c (reg_class_names): Likewise.
21199         * reload.c (reg_class_names): Likewise.
21200         * reload1.c (spill_failure): Likewise.
21201         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
21202
21203 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
21204
21205         * config/s390/s390.md ("reload_outti"): Remove predicate for
21206         output operand.  Abort if operand is not a MEM.
21207         ("reload_outdi", "reload_outdf"): Likewise.
21208
21209 2005-01-15  Marc Espie  <espie@openbsd.org>
21210
21211         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
21212         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
21213         * config/openbsd.h:  Fix C++ includes for native configurations.
21214         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
21215         Add trampoline support.
21216         * config/i386/openbsdelf.h: New.
21217
21218 2005-01-15  Marc Espie  <espie@openbsd.org>
21219
21220         * collect2.c (main): Explicitly parse -dynamic-linker option.
21221
21222 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
21223
21224         PR tree-optimization/19060
21225         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
21226         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
21227         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
21228         and handle extract_range_from_cond returning false.
21229         * fold-const.c (fold): Optimize comparisons with min/max even for
21230         width > HOST_BITS_PER_WIDE_INT.
21231
21232 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
21233
21234         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
21235         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
21236         Remove little endian multilib variants.
21237         Add mips32 multilib variant.
21238
21239 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
21240
21241         * explow.c (copy_all_reg, stabilize): Remove.
21242         * expr.h: Remove the corresponding prototypes.
21243
21244         * rtlanal.c (regs_set_between_p): Remove.
21245         * rtl.h: Remove the corresponding prototype.
21246
21247 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
21248
21249         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
21250         to rs6000_nonimmediate_operand.
21251         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
21252         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
21253         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
21254         rs6000_nonimmediate_operand.
21255         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
21256         rs6000_nonimmediate_operand.
21257
21258 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
21259
21260         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
21261
21262 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21263
21264         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
21265         on e500v2.
21266         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
21267         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
21268
21269         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
21270         (rs6k_nonimmediate_operand): New.
21271         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
21272         correctly.
21273         (legitimate_lo_sum_address_p): Same.
21274         (rs6000_legitimize_address): Same.
21275         (rs6000_legitimize_reload_address): Same.
21276         (rs6000_legitimate_address): Same.
21277         (spe_build_register_parallel): Pass DF and DC modes in a DI
21278         register.
21279
21280         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
21281         to rs6k_nonimmediate_operand.
21282
21283         * config/rs6000/spe.md ("*frob_df_di"): New.
21284         ("*frob_di_df"): New.
21285         ("*frob_di_df_2"): New.
21286         ("*mov_sidf_e500_subreg0"): New.
21287         ("*mov_sidf_e500_subreg4"): New.
21288         ("*movdf_e500_double"): Change predicate to
21289         rs6k_nonimmediate_operand.
21290
21291 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21292
21293         * postreload.c (move2add_note_store): Only call
21294         trunc_int_for_mode on scalar integers.
21295
21296 2005-01-14  Steven Bosscher  <stevenb@suse.de>
21297
21298         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
21299         replace BB_VISITED uses.
21300         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
21301         (propagate_necessity): Check the bitmap instead of BB_VISITED.
21302         (tree_dce_done): Free visited_control_parents.
21303         (perform_tree_ssa_dce): Allocate and clear it.
21304         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
21305         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
21306         instead of BB_VISITED.
21307
21308 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
21309
21310         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
21311         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
21312         Remove unused prototypes.
21313
21314 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21315
21316         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
21317         64-bit register usage.
21318         (spe_func_has_64bit_regs_p): Add FIXME note.
21319
21320 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21321
21322         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
21323         flag_finite_math_only with flag_unsafe_math_optimizations.
21324
21325 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
21326
21327         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
21328         end-of-stack check.
21329         (__tpf_eh_return): Copy TPF private stack area from the module
21330         boundary stack frame.  Add check for when module addresses are
21331         equal, but no stub address is found.
21332
21333 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
21334
21335         PR target/7525
21336         * arm.h (struct machine_function): Add call_via field.
21337         (thumb_call_via_label): Declare.
21338         * arm.c (thumb_call_via_label): New variable.
21339         (thumb_call_reg_needed): New variable.
21340         (arm_output_function_epilogue): For Thumb code, output any per-function
21341         call-indirect trampolines.
21342         (thumb_call_via_reg): New function.
21343         (arm_file_end): New function.
21344         (TARGET_ASM_FILE_END): Call arm_file_end.
21345         (aof_file_end): Likewise.
21346         * arm-protos.h (thumb_call_via_reg): Declare.
21347         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
21348         thumb_call_via_reg in normal case.
21349
21350 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
21351
21352         PR middle-end/19084
21353         PR rtl-optimization/19348
21354         * recog.c (peephole2_optimize): Do global life update if some peephole
21355         decides it doesn't need at least one of its inputs and that change
21356         influences liveness at the start of the basic block.
21357
21358         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
21359         arguments instead of 1.
21360
21361 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
21362
21363         PR middle-end/18820
21364         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
21365         zero for nested functions needing a static chain or functions
21366         with a non-constant address.
21367
21368 2005-01-13  Roger Sayle  <roger@eyesopen.com>
21369
21370         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
21371         (and (sign_extend X) C) into (zero_extend (and X C)).
21372
21373 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
21374
21375         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
21376
21377 2005-01-13  Richard Henderson  <rth@redhat.com>
21378
21379         PR target/19009
21380         PR target/19250
21381         PR target/19252
21382         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
21383         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
21384         not just TARGET_SSE.
21385         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
21386         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
21387         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
21388         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
21389         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
21390         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
21391         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
21392         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
21393         (movdicc_c_rex64): Rename with '*'.
21394         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
21395         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
21396         (movsfcc_1_387): Rename from movsfcc_1.
21397         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
21398         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
21399         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
21400         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
21401         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
21402         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
21403         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
21404         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
21405         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
21406         sse_movdfcc_const0_4): Remove.
21407         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
21408         recognize min/max early.  Update for changed sse cmove patterns.
21409         (ix86_split_sse_movcc): New.
21410         * config/i386/i386-protos.h: Update.
21411
21412 2005-01-13  Steven Bosscher  <stevenb@suse.de>
21413
21414         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
21415         (fix_stmt_v_may_defs): Likewise.
21416
21417 2005-01-13  Richard Henderson  <rth@redhat.com>
21418
21419         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
21420         for converting the mask.
21421
21422 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
21423
21424         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
21425         definition to 600.
21426
21427 2005-01-13  Richard Henderson  <rth@redhat.com>
21428
21429         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
21430         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
21431         IX86_BUILTIN_MOVDQ2Q): Remove.
21432         (IX86_BUILTIN_VEC_EXT_V4SI): New.
21433         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
21434         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
21435         shuffling.
21436         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
21437         (sse2_pextrw): Fix immediate constraint.
21438         (sse2_loadq, sse2_loadq_rex64): Remove.
21439         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
21440         Use __builtin_ia32_vec_ext_<size>.
21441         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
21442
21443 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
21444
21445         * function.c (assign_parm_setup_block): Look inside original
21446         entry_parm when inspecting PARALLEL.
21447
21448 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
21449             Joel Sherrill  <joel@oarcorp.com>
21450
21451         PR target/19399
21452         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
21453         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
21454         rtems_gxx_recursive_mutex_init.
21455         (__gthread_recursive_mutex_lock): New function.
21456         (__gthread_recursive_mutex_trylock): Likewise.
21457         (__gthread_recursive_mutex_unlock): Likewise.
21458
21459 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
21460
21461         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
21462
21463 2005-01-13  Jan Beulich  <jbeulich@novell.com>
21464
21465         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
21466         (ashrti3_internal): Indicate output is early clobber. Generate result
21467         into output rather than first input. Use move for low word of output
21468         if shift count is exactly 64.
21469         (lshrti3_internal): Likewise.
21470
21471 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
21472
21473         PR target/18329
21474         PR target/18330
21475         * reload1.c (delete_output_reload): Don't delete an output reload
21476         if the pseudo lives longer than a single basic block.  Adjust and
21477         improve wording of comment.
21478
21479 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
21480
21481         PR target/19334
21482         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
21483         of TYPE_SIZE where we mean the number of bytes.
21484
21485 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
21486
21487         * function.c (assign_parm_setup_block): Relax condition on
21488         multi-register optimization.
21489
21490 2005-01-12  Nick Clifton  <nickc@redhat.com>
21491
21492         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
21493         an "in_delay_slot" attribute of "no" to prevent them being used in
21494         delay slots.  This is forbidden because they might generate
21495         exceptions.
21496
21497 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
21498
21499         PR target/19389
21500         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
21501         with r->Y and Y->r.
21502
21503 2005-01-12  Nick Clifton  <nickc@redhat.com>
21504
21505         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
21506         passed on to GAS) but do not define, as GAS no longer supports or
21507         needs the -m2000 option.
21508
21509 2005-01-11  Roger Sayle  <roger@eyesopen.com>
21510
21511         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
21512         type as args of unprototyped builtins aren't automatically promoted.
21513         (fold_builtin_abs): Likewise.
21514
21515 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21516
21517         * Makefile.in: Set a `build-warn' variable.
21518
21519 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
21520
21521         PR tree-optimization/17949
21522         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
21523         (find_interesting_uses_address): Use it.
21524
21525 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
21526
21527         * regrename.c (kill_value): Handle subreg's that won't simplify.
21528
21529 2005-01-11  Richard Henderson  <rth@redhat.com>
21530
21531         PR target/13366
21532         * config/i386/i386.h (enum ix86_builtins): Move ...
21533         * config/i386/i386.c: ... here.
21534         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
21535         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
21536         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
21537         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
21538         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
21539         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
21540         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
21541         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
21542         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
21543         IX86_BUILTIN_LOADDDUP): Remove.
21544         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
21545         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
21546         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
21547         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
21548         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
21549         (ix86_init_builtins): Make static.
21550         (ix86_init_mmx_sse_builtins): Update for changed builtins.
21551         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
21552         if all the modes match.  Otherwise, fake it.
21553         (get_element_number, ix86_expand_vec_init_builtin,
21554         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
21555         (ix86_expand_builtin): Make static.  Update for changed builtins.
21556         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
21557         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
21558         (ix86_expand_vector_init_duplicate): New.
21559         (ix86_expand_vector_init_low_nonzero): New.
21560         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
21561         Split out from ix86_expand_vector_init; handle integer modes.
21562         (ix86_expand_vector_init): Use them.
21563         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
21564         * config/i386/i386-protos.h: Update.
21565         * config/i386/predicates.md (reg_or_0_operand): New.
21566         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
21567         (movv2sf_internal): Likewise.  And a splitter to match them all.
21568         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
21569         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
21570         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
21571         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
21572         (mmx_pinsrw): Fix operand ordering.
21573         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
21574         rather than sse_loadss expander.
21575         (movv2df splitter): Similarly.
21576         (sse_loadss, sse_loadlss): Remove.
21577         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
21578         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
21579         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
21580         (sse3_movddup): Rename with '*'.
21581         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
21582         (sse2_loadsd): Remove.
21583         (vec_dupv2df_sse3): Rename from sse3_loadddup.
21584         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
21585         (sse2_pinsrw): Fix argument ordering.
21586         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
21587         (sse2_stored): Remove 'r' destination.
21588         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
21589         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
21590         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
21591         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
21592         vec_extractv16qi, vec_initv16qi): New.
21593
21594         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
21595         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
21596         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
21597         constructor form.
21598         (_mm_load_pd, _mm_store_pd): Use plain dereference.
21599         (_mm_load_si128, _mm_store_si128): Likewise.
21600         (_mm_load1_pd): Use _mm_set1_pd.
21601         (_mm_load_sd): Use _mm_set_sd.
21602         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
21603         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
21604         (_mm_set_epi64): Use _mm_set_epi64x.
21605         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
21606         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
21607         _mm_setr_epi8): Use _mm_set_foo form.
21608         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
21609         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
21610         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
21611         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
21612         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
21613         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
21614         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
21615         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
21616         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
21617         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
21618         (_mm_movedup_pd): Use _mm_shuffle_pd.
21619         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
21620         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
21621         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
21622         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
21623         Use _mm_setzero_ps.
21624         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
21625         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
21626         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
21627         (_mm_store_ps): Use raw dereference.
21628         (_mm_store1_ps): Use _mm_storeu_ps.
21629         (_mm_storer_ps): Use _mm_store_ps.
21630         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
21631         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
21632
21633 2005-01-11  Stan Shebs  <shebs@apple.com>
21634
21635         * config/rs6000/rs6000.c (machopic_output_stub): Issue
21636         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
21637
21638 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
21639
21640         PR target/18761
21641         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
21642         Skip all DECLs except for FIELD_DECLs.
21643
21644 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
21645
21646         * config/s390/s390.c (override_options): Return error if
21647         -mbackchain, -mpacked-stack and -mhard-float are used together.
21648         (s390_va_start): Remove the backchain && packed-stack special case.
21649         (s390_gimplify_va_arg): Likewise.
21650         * doc/invoke.texi: Remove the ABI incompatibility note.
21651
21652 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
21653
21654         * config/s390/s390.c (struct s390_frame_layout): Remove
21655         save_backchain_p.
21656         (s390_frame_info, s390_emit_prologue): Replace occurrences of
21657         save_backchain_p with TARGET_BACKCHAIN.
21658
21659 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
21660
21661         PR target/18916
21662         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
21663         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
21664         * function.c (locate_and_pad_parm): Set new field.
21665         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
21666         Tweak where_pad test to include "none".  Always set mem align for
21667         stack_parm.
21668         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
21669         not sufficient for type.
21670         (assign_parm_setup_block): If stack_parm is zero on entry, always
21671         make a new stack local.  Block move old stack parm if necessary
21672         to new aligned stack local.
21673         (assign_parm_setup_stack): Use a block move to handle
21674         potentially misaligned entry_parm.
21675         (assign_parms_unsplit_complex): Specify required alignment when
21676         creating stack local.
21677         * calls.c (compute_argument_addresses): Override alignment of stack
21678         arg calculated from its type with the alignment given by
21679         FUNCTION_ARG_BOUNDARY.
21680         (store_one_arg): Likewise.
21681
21682 2005-01-11  Jan Beulich  <jbeulich@novell.com>
21683
21684         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
21685         Change respective itanium_class attribute to ialu.
21686         (shladdp4_internal): New.
21687         * config/ia64/predicates.md (shladd_log2_operand): New.
21688
21689 2005-01-11  Richard Henderson  <rth@redhat.com>
21690
21691         * expr.c (store_constructor): Use rtvec_alloc instead of
21692         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
21693
21694 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
21695
21696         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
21697
21698 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
21699
21700         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
21701         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
21702         (TARGET_RWRELOC): Define.
21703         (ia64_rwreloc_section_type_flags): Delete.
21704         (ia64_section_type_flags): New function.
21705         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
21706         (TARGET_RWRELOC): Define.
21707
21708 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
21709
21710         PR target/18987
21711         * config/ia64/ia64.c (process_set): For alloc insn, only call
21712         process_epilogue is !frame_pointer_needed.
21713
21714 2005-01-10  Roger Sayle  <roger@eyesopen.com>
21715
21716         PR c++/19355
21717         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
21718         unary operator and can't be treated as a binary/comparison operator.
21719
21720 2005-01-10  Richard Henderson  <rth@redhat.com>
21721
21722         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
21723         (ix86_return_in_memory): Likewise.
21724         (function_arg_advance):  Likewise.  Mirror structure in function_arg
21725         for choosing register to advance.
21726
21727 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
21728
21729         * tree-vectorizer.c, tree.def: Fix comment typos.
21730
21731 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
21732
21733         * config/s390/s390.c (struct processor_costs): 4 new fields:
21734         ddbr, ddr, debr, der.
21735         (s390_rtx_costs): More precise handling of divide instructions.
21736
21737 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
21738
21739         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
21740
21741 2005-01-10  Jan Beulich  <jbeulich@novell.com>
21742
21743         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
21744         names resulting from -ffunction-sections/-fdata-sections and linkonce
21745         ones.
21746         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
21747         based on the section name. Rearrange the section name comparison logic
21748         slightly so that each section name is compared against at most once.
21749
21750 2005-01-10  Ben Elliston  <bje@au.ibm.com>
21751
21752         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
21753         targets for which -fPIC reduces limitations on the GOT size.
21754
21755 2005-01-09  Falk Hueffner  <falk@debian.org>
21756
21757         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
21758         X/C1 cmpop C2.
21759
21760 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
21761
21762         PR target/18720
21763         * collect2.c (main): Set aixrtl_flag for -brtl option.
21764         (resolve_lib_name): Search for .so file extension before .a
21765         if aixrtl_flag set.
21766
21767 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
21768
21769         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
21770         (vect_analyze_data_refs_alignment): Add dump prints.
21771
21772 2005-01-09  Ira Rosen  <irar@il.ibm.com>
21773
21774         * tree-vectorizer.c (vect_analyze_offset_expr): Use
21775         expr_invariant_in_loop_p.
21776         Initialize outputs first thing in the function.
21777         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
21778         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
21779         (vect_analyze_pointer_ref_access): Check that the initial condition of
21780         the access function is loop invariant.
21781
21782 2005-01-09  Richard Henderson  <rth@redhat.com>
21783
21784         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
21785         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
21786         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
21787         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
21788         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
21789         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
21790         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
21791         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
21792         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
21793         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
21794         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
21795         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
21796         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
21797         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
21798         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
21799         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
21800         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
21801         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
21802         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
21803         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
21804         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
21805         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
21806         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
21807         mmx_ prefix.
21808         (mmx_clrdi, pavgusb): Remove.
21809         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
21810         with leading sse_ prefix.
21811         * config/i386/sse.md: Receive them.
21812         * config/i386/mmx.md: New file.
21813         (MMXMODE12, MMXMODE24, mmxvecsize): New.
21814         (subrv2sf3): Turn into expander for normal subtraction.
21815         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
21816         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
21817         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
21818         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
21819         commutative; use ix86_binary_operator_ok.
21820         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
21821         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
21822         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
21823         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
21824         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
21825         Macroize from existing patterns; use ix86_binary_operator_ok.
21826         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
21827         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
21828         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
21829         with vec_select+vec_concat.
21830         (mmx_pshufw, mmx_pshufw_1): Likewise.
21831         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
21832         (mmx_uavgv4hi3): Model correctly.
21833         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
21834         _mm_xor_si64): Remove casts.
21835
21836 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
21837
21838         PR tree-optimization/19224
21839         * tree-scalar-evolution.c (get_instantiated_value,
21840         set_instantiated_value): New functions.
21841         (instantiate_parameters_1): Cache the results.
21842         (instantiate_parameters, resolve_mixers): Initialize and free
21843         the cache.
21844
21845 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
21846
21847         * config/i386/i386.md (addhi_4): Correct reference in comment.
21848         (addqi_4): Same.
21849
21850 2005-01-08  Richard Henderson  <rth@redhat.com>
21851
21852         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
21853         (_mm_cvtsi128_si64x): Likewise.
21854         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
21855         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
21856         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
21857         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
21858         * config/i386/i386-protos.h: Update.
21859         * config/i386/i386.c (print_operand): Add 'H'.
21860         (ix86_fixup_binary_operands): Split out from ...
21861         (ix86_expand_binary_operator): ... here.
21862         (ix86_fixup_binary_operands_no_copy): New.
21863         (ix86_expand_fp_absneg_operator): Handle vector mode results.
21864         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
21865         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
21866         (safe_vector_operand): Use CONST0_RTX.
21867         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
21868         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
21869         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
21870         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
21871         special cases.
21872         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
21873         (IX86_BUILTIN_CMPNGESS): New.
21874         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
21875         (attr type): Add sselog1.
21876         (attr unit, attr memory): Handle it.
21877         (movti, movti_internal, movti_rex64): Move near other integer moves.
21878         (movtf, movtf_internal): Move near other fp moves.
21879         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
21880         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
21881         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
21882         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
21883         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
21884         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
21885         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
21886         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
21887         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
21888         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
21889         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
21890         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
21891         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
21892         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
21893         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
21894         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
21895         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
21896         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
21897         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
21898         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
21899         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
21900         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
21901         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
21902         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
21903         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
21904         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
21905         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
21906         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
21907         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
21908         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
21909         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
21910         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
21911         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
21912         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
21913         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
21914         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
21915         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
21916         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
21917         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
21918         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
21919         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
21920         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
21921         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
21922         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
21923         same time.
21924         (SSEPUSH, push<SSEPUSH>): Remove.
21925         (MMXPUSH, push<MMXPUSH>): Remove.
21926         (sse_movaps, sse_movaps_1, sse_movups): Remove.
21927         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
21928         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
21929         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
21930         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
21931         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
21932         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
21933         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
21934         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
21935         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
21936         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
21937         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
21938         (ppro_sse_log_V4SF): Handle sselog1.
21939         * config/i386/predicates.md (const_0_to_1_operand): New.
21940         (const_0_to_255_mul_8_operand): New.
21941         (const_1_to_31_operand): Rename from const_int_1_31_operand.
21942         (const_2_to_3_operand, const_4_to_7_operand): New.
21943         * config/i386/sse.md: New file.
21944         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
21945         (sse_movups): Rename from sse_movups_1.
21946         (sse_loadlss): Rename from sse_loadss_1.
21947         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
21948         from the name.
21949         (negv4sf2): Use ix86_expand_fp_absneg_operator.
21950         (absv4sf2, negv2df, absv2df): New.
21951         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
21952         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
21953         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
21954         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
21955         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
21956         (sse3_addsubv4sf3): Model correctly.
21957         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
21958         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
21959         (sse_movhlps): Model with vec_select+vec_concat.
21960         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
21961         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
21962         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
21963         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
21964         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
21965         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
21966         sse2_pshufhw_1): Likewise.
21967         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
21968         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
21969         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
21970         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
21971         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
21972         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
21973         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
21974         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
21975         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
21976         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
21977         sminv8hi3): Mark commutative
21978         operands.  Use ix86_binary_operator_ok.
21979         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
21980         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
21981         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
21982         sse2_punpcklqdq): Allow operand2 in memory.
21983         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
21984         sse2_movsd): Add memory alternatives.
21985         (sse_storelps): Turn expander into an insn; split after reload.
21986         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
21987         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
21988
21989 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
21990
21991         * configure.ac (DWARF-2 debug_line): Use objdump.
21992         * configure: Regenerate.
21993
21994 2005-01-08  Jeff Law  <law@redhat.com>
21995             Diego Novillo  <dnovillo@redhat.com>
21996
21997         PR tree-optimization/18241
21998         * tree-nrv.c (tree_nrv): Ignore volatile return values.
21999         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
22000         statements with volatile operands.
22001         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
22002         operands after marking a statement with has_volatile_ops.
22003
22004 2005-01-08  Roger Sayle  <roger@eyesopen.com>
22005
22006         * tree.c (int_fits_type_p): Always honor integer constant
22007         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
22008
22009 2005-01-08  Roger Sayle  <roger@eyesopen.com>
22010
22011         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
22012         the latent bug in rtl_delete_block has been resolved.
22013
22014 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
22015
22016         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
22017         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
22018
22019 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
22020
22021         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
22022         library as @multilib_dir@/$(SHLIB_SONAME).
22023
22024 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
22025
22026         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
22027         * configure: Regenerate.
22028
22029 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
22030
22031         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
22032         TYPE_MODE.
22033
22034 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
22035
22036         PR target/13674
22037         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
22038         Convert non-word aligned offset address using ld/std into
22039         indirect address.
22040
22041 2005-01-07  Richard Henderson  <rth@redhat.com>
22042
22043         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
22044
22045 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
22046
22047         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
22048
22049 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
22050
22051         PR tree-optimization/19283
22052         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
22053         is not shorter than the original type.
22054
22055         PR rtl-optimization/19012
22056         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
22057
22058         PR rtl-optimization/18861
22059         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
22060         (FULL_STATE): Define.
22061         (mark_tablejump_edge): New function.
22062         (purge_dead_tablejump_edges): New function.
22063         (find_bb_boundaries): Use it.
22064
22065         PR tree-optimization/18828
22066         * builtins.c (expand_builtin_next_arg): Remove argument and all
22067         the argument checking.
22068         (expand_builtin): Adjust caller.
22069         (expand_builtin_va_start): Likewise.  Remove error for too many
22070         arguments.
22071         (fold_builtin_next_arg): Issue error for too many arguments.
22072         After checking arguments, replace them with magic arguments that
22073         prevent further checking of the args.
22074
22075 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22076
22077         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
22078
22079 2005-01-06  Roger Sayle  <roger@eyesopen.com>
22080
22081         PR target/6077
22082         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
22083         and %{.S:...} (and their negative variants) to test whether the
22084         input file is assembler or pre-processed-assembler independent of
22085         the actual filename extension.
22086
22087 2005-01-06  Roger Sayle  <roger@eyesopen.com>
22088
22089         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
22090         of sign or zero extended values.
22091
22092 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
22093
22094         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
22095         for IBM long double format correctly.
22096
22097 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
22098
22099         Fix PR tree-optimization/18792
22100
22101         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
22102         to first_loop_depth, and use loop depth instead of loop number.
22103         (build_classic_dir_vector): Ditto.
22104         (compute_data_dependences_for_loop): Use depth, not loop number.
22105         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
22106         number. Pass in loops, instead of loop numbers.
22107         (gather_interchange_stats): Ditto.
22108         (linear_transform_loops): Ditto.
22109
22110 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
22111
22112         PR rtl-opt/13299
22113         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
22114         biv_fits_mode_p, extension_within_bounds_p): New functions.
22115         (check_ext_dependent_givs): Use them.
22116
22117 2005-01-06  Roger Sayle  <roger@eyesopen.com>
22118
22119         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
22120         more than one barrier, in which case we should delete them all.
22121
22122 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
22123
22124         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
22125
22126 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
22127
22128         Fix PR middle-end/19286
22129         Fix PR debug/19267
22130         * dwarf2out.c (gen_subprogram_die): If we've already tried to
22131         output this subprogram, simply ignore this attempt to do it again.
22132         (add_abstract_origin_attribute): Don't abort trying to add the abstract
22133         origin attribute if it's not possible.
22134         (gen_block_die): Don't ignore subblocks of "unused" blocks.
22135         (decls_for_scope): Ditto.
22136         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
22137         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
22138
22139 2005-01-05  Richard Henderson  <rth@redhat.com>
22140
22141         PR target/11327
22142         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
22143         (bdesc_2arg): Use it.
22144         (ix86_expand_binop_builtin): Force operands into registers
22145         when optimizing.
22146         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
22147         ix86_expand_sse_compare, ix86_expand_sse_comi,
22148         ix86_expand_builtin): Likewise.
22149
22150 2005-01-05  Richard Henderson  <rth@redhat.com>
22151
22152         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
22153         and VEC_SELECT.
22154         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
22155         (mulv4hi3): Set itanium_class mmmul.
22156         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
22157         (fpack): Rename from fpack_sfsf.
22158
22159 2005-01-05  Richard Henderson  <rth@redhat.com>
22160
22161         PR rtl-opt/10692
22162         * reload1.c (do_input_reload): Restrict the optimization deleteing
22163         a previous output reload to RELOAD_FOR_INPUT.
22164
22165 2005-01-05  Steven Bosscher  <stevenb@suse.de>
22166
22167         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
22168         comment that we fall through after case.
22169         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
22170         (distribute_links): Likewise.
22171         * cse.c (cse_insn): Likewise.
22172         * cselib.c (cselib_invalidate_mem): Likewise.
22173         * df.c: Update comments at the top of the file.
22174         (read_modify_subreg_p): Update comments here too.
22175         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
22176         * flow.c (mark_set_1): Likewise.
22177         (mark_used_regs): Likewise.
22178         * gcse.c (mems_conflict_for_gcse_p): Likewise.
22179         (canon_list_insert): Likewise.
22180         (mark_set): Likewise.
22181         (try_replace_reg): Likewise.
22182         (store_killed_in_insn): Likewise.
22183         * loop.c (count_one_set): Likewise.
22184         (basic_induction_var): Likewise.
22185         * postreload-gcse.c (find_mem_conflicts): Likewise.
22186         * postreload.c (reload_combine_note_store): Likewise.
22187         (move2add_note_store): Likewise.
22188         * reload.c (find_equiv_reg): Likewise.
22189         (mark_referenced_resources): Likewise.
22190         * rtlanal.c (set_noop_p): Likewise.
22191         (note_stores): Likewise.
22192         (note_uses): Likewise.
22193         * sched-deps.c (sched_analyze_1): Likewise.
22194         * sched-rgn.c (check_live_1): Likewise.
22195         (update_live_1): Likewise.
22196         * config/i860/i860.c: Likewise.
22197
22198         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
22199         an lvalue.
22200         (ZERO_EXTRACT): Mention that this one can be an lvalue.
22201
22202         * doc/rtl.texi: Update documentation for bit-fields and SET.
22203
22204 2005-01-05  Roger Sayle  <roger@eyesopen.com>
22205
22206         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
22207
22208 2005-01-05  Jan Hubicka  <jh@suse.cz>
22209             Richard Henderson  <rth@redhat.com>
22210
22211         PR target/18910
22212         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
22213         with an offset.
22214
22215 2005-01-05  Richard Henderson  <rth@redhat.com>
22216
22217         PR target/12902
22218         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
22219         (sse_shufps): Change operand 3 to const_int_operand.
22220         (sse2_storelps): Fix typo in template.
22221         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
22222         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
22223         (ix86_expand_builtin): Likewise.
22224
22225 2005-01-05  Julian Brown  <julian@codesourcery.com>
22226
22227         * config/arm/arm.c (arm_return_in_memory): Treat complex types
22228         as aggregates for AAPCS ABIs.
22229
22230 2005-01-05  Stan Shebs  <shebs@apple.com>
22231
22232         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
22233         Mach-O getters if ppc64.
22234         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
22235         size argument.
22236         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
22237         signed four-byte field for global code case.
22238         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
22239
22240 2005-01-05  Roger Sayle  <roger@eyesopen.com>
22241
22242         PR middle-end/19100
22243         * c-common.c: Include real.h.
22244         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
22245         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
22246         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
22247         * Makefile.in (c-common.o): Update dependencies.
22248
22249 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
22250
22251         * c-parse.in (asm_string): Add trailing semicolon.
22252
22253 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
22254
22255         * c-parse.in (asm_string): New.  Don't allow wide strings in
22256         'asm'.
22257         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
22258         asm_string instead of STRING.
22259
22260 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
22261
22262         * c-typeck.c (constructor_no_implicit): Remove.
22263         (set_designator, process_init_element): Don't check
22264         constructor_no_implicit.
22265
22266 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
22267             Kaz Kojima  <kkojima@gcc.gnu.org>
22268
22269         PR target/16482
22270         * lcm.c (create_pre_exit): New.
22271         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
22272         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
22273
22274 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
22275
22276         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
22277         -msoft-float in target_float_switch.
22278         * arm.c (arm_override_options): Fix processing of target_float_switch.
22279
22280 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
22281
22282         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
22283         preferencing.
22284
22285 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
22286
22287         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
22288         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
22289
22290 2005-01-04  Roger Sayle  <roger@eyesopen.com>
22291
22292         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
22293         if deleting the then-block allows the test-block to fallthru to the
22294         else-block.
22295
22296 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
22297
22298         PR c/19152
22299         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
22300         after the full declaration if the are in two different TUs.
22301
22302 2005-01-04  Richard Henderson  <rth@redhat.com>
22303
22304         PR tree-opt/19158
22305         * tree-sra.c (generate_one_element_init): Just
22306         call gimplify_and_add.
22307         (generate_element_init): Record the
22308         new referenced variables and mark them for renaming
22309         and split out to ...
22310         (generate_element_init_1): This.
22311         (scalarize_init): Don't call push_gimplify_context/
22312         pop_gimplify_context.
22313
22314 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
22315
22316         * toplev.c (get_src_pwd): Handle failure of getpwd().
22317
22318 2005-01-04  Roger Sayle  <roger@eyesopen.com>
22319
22320         * fold-const.c (fold_single_bit_test): Delete unreachable handling
22321         of TRUTH_NOT_EXPR.
22322         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
22323         all the cases handled by it are inverted by invert_truthvalue.
22324
22325 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
22326
22327         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
22328         (save_register_windowsi): Likewise.
22329
22330 2005-01-04  Richard Henderson  <rth@redhat.com>
22331
22332         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
22333
22334 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
22335
22336         PR middle-end/17767
22337         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
22338         any simplifications of vector mode comparison operators.
22339         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
22340
22341 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
22342             Devang Patel  <dpatel@apple.com>
22343
22344         PR tree-optimization/18308
22345         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
22346         the operands before creating a new expression.
22347         * dojump.c (do_jump): Make drop_through_label available
22348         for all cases.  Add expansion of COND_EXPR.
22349
22350 2005-01-04  Ira Rosen  <irar@il.ibm.com>
22351
22352         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
22353         INTEGER_CST instead of TREE_CONSTANT.
22354         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
22355         instead of TREE_CONSTANT.
22356         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
22357         instead of TREE_CONSTANT.
22358
22359 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
22360
22361         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
22362
22363 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
22364
22365         PR target/19240
22366         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
22367         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
22368
22369 2005-01-03  Richard Henderson  <rth@redhat.com>
22370
22371         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
22372         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
22373         fold_convert_const_real_from_real): Split out from ...
22374         (fold_convert_const): ... here.
22375
22376 2005-01-03  Richard Henderson  <rth@redhat.com>
22377
22378         PR target/19235
22379         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
22380         (mov<MMXMODEI>_internal): Likewise.
22381         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
22382         Add V2SF case; use it for SSE1; don't use TI.
22383         (movdf_integer): Likewise.
22384         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
22385
22386 2005-01-03  Ira Rosen  <irar@il.ibm.com>
22387
22388         * tree-vectorizer.c (vect_strip_conversions): New function.
22389         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
22390         check for binary class.
22391
22392 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
22393
22394         Fix PR debug/17924
22395         Fix PR debug/19191
22396         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
22397         is a decl.
22398         * gimple-low.c (mark_blocks_with_used_vars): New function.
22399         (mark_blocks_with_used_subblocks): Ditto.
22400         (mark_used_blocks): Ditto.
22401         (pass_mark_used_blocks): New pass.
22402         * tree-inline.c: Include debug.h.
22403         (expand_call_inline): Call outlining_inline_function here.
22404         * tree-optimize.c (init_tree_optimization_passes): Add
22405         pass_mark_used_blocks.
22406         * tree-pass.h (pass_mark_used_blocks): New.
22407         * Makefile.in (tree-inline.o): Add debug.h dependency.
22408
22409 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
22410
22411         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
22412         VAR_DECLs to have weak_import attribute.
22413
22414         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
22415         'struct ucontext'.
22416
22417 2004-01-03  Steven Bosscher  <stevenb@suse.de>
22418
22419         * passes.c (rest_of_compilation): Don't run regmove if only
22420         flag_expensive_optimizations, require flag_regmove instead.
22421
22422 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
22423
22424         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
22425         register "sparc".
22426         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
22427         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
22428         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
22429         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
22430
22431 2005-01-03  Richard Henderson  <rth@redhat.com>
22432
22433         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
22434         (ia64_const_ok_for_letter_p): New.
22435         (ia64_const_double_ok_for_letter_p): New.
22436         (ia64_extra_constraint): New.
22437         (ia64_expand_vecint_compare): New.
22438         (ia64_expand_vcondu_v2si): New.
22439         (ia64_expand_vecint_cmov): New.
22440         (ia64_expand_vecint_minmax): New.
22441         (ia64_print_operand): Add 'v'.
22442         (ia64_preferred_reload_class): New.
22443         (ia64_vector_mode_supported_p): New.
22444         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
22445         (PREFERRED_RELOAD_CLASS): Move to function.
22446         (CONST_OK_FOR_LETTER_P): Move to function.
22447         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
22448         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
22449         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
22450         (EXTRA_CONSTRAINT): Move to function.
22451         * config/ia64/ia64.md: Include vect.md.
22452         (itanium_class): Add mmalua.
22453         (type): Handle it.
22454         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
22455         (1b_mmalua): New.
22456         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
22457         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
22458         CONST0_RTX.
22459         (const_int_2bit_operand): New.
22460         (fr_reg_or_0_operand): New.
22461         * config/ia64/ia64-modes.def: Add vector modes.
22462         * config/ia64/ia64-protos.h: Update.
22463         * config/ia64/vect.md: New file.
22464
22465 2005-01-03  Richard Henderson  <rth@redhat.com>
22466
22467         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
22468
22469 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
22470
22471         PR target/19236
22472         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
22473         to SFmode.
22474         (log1pdf2): Change mode of operands[0,1] to DFmode.
22475
22476 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
22477
22478         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
22479         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
22480         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22481         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
22482         SPARC_RELAXED_ORDERING.
22483
22484 2005-01-03  Richard Henderson  <rth@redhat.com>
22485             Uros Bizjak  <uros@kss-loka.si>
22486
22487         PR target/14631
22488         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
22489         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
22490         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
22491         handling.
22492         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
22493         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
22494         const_pow2_1_to_128_operand): New predicates.
22495
22496 2005-01-02  Greg McGary  <greg@mcgary.org>
22497
22498         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
22499         anonymous decls.
22500         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
22501         object.  [ptr_type]: Remove unused variable.
22502         Remember nearest addressable array-element or record-component
22503         when checking bitfield components.  Tolerate empty BIND_EXPR.
22504
22505 2005-01-01  Richard Henderson  <rth@redhat.com>
22506
22507         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
22508         that don't narrow the value.  Fail for other conversions.
22509
22510 2005-01-01  Richard Henderson  <rth@redhat.com>
22511
22512         PR c/19031
22513         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
22514         * c-lang.c (finish_file): Don't do it here.
22515         * objc/objc-act.c (objc_finish_file): Likewise.
22516
22517         * cgraph.c (decl_assembler_name_equal): New.
22518         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
22519         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
22520         * cgraph.h (struct cgraph_varpool_node): Add next.
22521         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
22522         * varasm.c (assemble_alias): Mark the target as needed.
22523
22524 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
22525
22526         PR middle-end/19221
22527         * function.c (get_arg_pointer_save_area): Use entry_of_function
22528         instead of get_insns.
22529
22530 2005-01-01  Roger Sayle  <roger@eyesopen.com>
22531             Andrew Pinski  <pinskia@physics.uc.edu>
22532             James E. Wilson  <wilson@specifixinc.com>
22533
22534         PR rtl-optimization/12092
22535         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
22536         is zero.
22537
22538 2005-01-01  Roger Sayle  <roger@eyesopen.com>
22539             Olivier Hainque  <hainque@act-europe.fr>
22540
22541         * tree.c (int_fits_type_p): A narrower type always fits in a
22542         wider one, except for negative values into unsigned types.
22543
22544 2005-01-01  Roger Sayle  <roger@eyesopen.com>
22545
22546         * tree.c (int_fits_type_p): Compare the result of force_fit_type
22547         with the original constant rather than require TREE_OVERFLOW.
22548
22549 2005-01-01  Steven Bosscher  <stevenb@suse.de>
22550
22551         PR middle-end/17544
22552         * c-decl.c (finish_function): If compiling C99, annotate the
22553         compiler generated return with the current file name and line 0.
22554         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
22555         the source line is greater than 0.
22556         (remove_bb): Likewise.