]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
fold-const.c (make_range): Cleanup type checking through function.
[gcc.git] / gcc / ChangeLog
1 2004-06-23 Eric Christopher <echristo@redhat.com>
2
3 * fold-const.c (make_range): Cleanup type checking through function.
4 Remove orig_type. Replace with checks to exp_type and arg0_type.
5 Clarify comment when converting from unsigned to signed.
6
7 2004-06-23 Eric Christopher <echristo@redhat.com>
8
9 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Add R3000.
10 * config/mips/mips.md: Remove R3000 scheduling description.
11 * config/mips/3000.md: New file.
12
13 2004-06-23 Ulrich Weigand <uweigand@de.ibm.com>
14
15 * config/s390/s390-protos.h (s390_emit_compare): Add prototype.
16 (s390_emit_jump): Likewise.
17 * config/s390/s390.c (s390_emit_compare): New function.
18 (s390_emit_jump): Likewise.
19 * config/s390/s390.md ("beq", "bne", "bgt", "bgtu", "blt", "bltu",
20 "bge", "bgeu", "ble", "bleu", "bunordered", "bordered", "buneq",
21 "bungt", "bunlt", "bunge", "bunle", "bltgt"): Use s390_emit_compare
22 and s390_emit_jump.
23 ("cjump"): Remove, replace by ...
24 ("*cjump_64", "*cjump_31"): ... these insns. Improve length default.
25 ("icjump", "*icjump_64", "*icjump_31"): Likewise.
26 ("trap"): Fix type attribute.
27 ("conditional_trap"): Use s390_emit_compare.
28 ("doloop_si"): Remove, replace by ...
29 ("doloop_si64", "doloop_si31"): ... these new insn_and_split.
30 Merge existing splitter into insn_and_split. Improve length default.
31 ("doloop_di"): Merge with existing splitter into insn_and_split.
32 ("doloop"): Adapt.
33 ("jump"): Convert to expander. Use s390_emit_jump.
34 ("*jump_64", "*jump_31"): New insns. Improve length default.
35
36 2004-06-23 Wu Yongwei <adah@sh163.net>
37
38 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
39 (__gthr_i486_lock_cmp_xchg): New inline assembly function.
40 (__GTHR_W32_InterlockedCompareExchange): New macro to choose a
41 suitable function for interlocked compare-and-exchange.
42 (__gthread_mutex_trylock): Use
43 __GTHR_W32_InterlockedCompareExchange.
44 (__gthread_mutex_init_function, __gthread_mutex_lock,
45 __gthread_mutex_trylock, __gthread_mutex_unlock): Adjust the
46 initial counter value to work correctly under Windows 95.
47 * config/i386/gthr-win32.c: Adjust include order.
48 Define __GTHREAD_I486_INLINE_LOCK_PRIMITIVES before including
49 gthr-win32.h.
50 (__gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,
51 __gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): Adjust
52 to match inline versions in gthr-win32.h.
53
54 2004-06-23 David Edelsohn <edelsohn@gnu.org>
55
56 * config/rs6000/rs6000.c (rs6000_use_dfa_pipeline_interface): Delete.
57 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Redefine a hook_int_void_1.
58 (insvdi_rshift_rlwimi_p): New function.
59 * config/rs6000/rs6000.md (insvdi_internal2/3): New patterns.
60 (extendsfdf2): Convert to define_insn_and_split.
61 * config/rs6000/rs6000-protos.h (insvdi_rshift_rlwimi_p): Prototype.
62
63 2004-06-23 Andrew Pinski <apinski@apple.com>
64
65 * c-typeck.c (composite_type, <case ARRAY_TYPE>): Abort if we have
66 type qualifiers at all.
67 If both of the type domains are null and the new element type is
68 the same as one of the, return the one which the element type.
69 matches.
70 Do not call qualify_type on the new type.
71
72 2004-06-23 Ulrich Weigand <uweigand@de.ibm.com>
73
74 * config/s390/s390.h (DEFAULT_MAIN_RETURN): Remove.
75
76 2004-06-23 Roger Sayle <roger@eyesopen.com>
77
78 * convert.c (strip_float_extension): Skip both NOP_EXPR and
79 CONVERT_EXPR floating point extensions.
80
81 2004-06-23 Diego Novillo <dnovillo@redhat.com>
82
83 * Makefile.in (tree-vn.o): New.
84 (tree-ssa-pre.o): Don't depend on RTL_H.
85 * tree-dfa.c (find_referenced_vars): Don't call init_tree_ssa.
86 * tree-flow.h (struct var_ann_d): Remove field expr_set.
87 (add_to_value, expressions_equal_p, get_value_handle, vn_compute,
88 vn_lookup_or_add, vn_add, vn_lookup, vn_init, vn_delete): Declare.
89 * tree-optimize.c (execute_init_datastructures): New local function.
90 (pass_init_datastructures): New local variable.
91 (init_tree_optimization_passes): Sequence pass_init_datastructures.
92 * tree-pretty-print.c (MASK_POINTER): Remove.
93 (dump_generic_node): Handle VALUE_HANDLE.
94 * tree-ssa-pre.c: Move all value numbering routines to tree-vn.c.
95 Update callers to use new function names.
96 Use VALUE_HANDLE_ID and VALUE_HANDLE_EXPR_SET instead of
97 variable annotations.
98 * tree-ssa.c (init_tree_ssa): Call vn_init.
99 (delete_tree_ssa): Call vn_delete.
100 * tree-vn.c: New file.
101 * tree.c (tree_size): Handle VALUE_HANDLE.
102 (tree_node_structure): Likewise.
103 (iterative_hash_expr): Likewise.
104 * tree.def (VALUE_HANDLE): New code.
105 * tree.h (struct tree_value_handle): New.
106 (VALUE_HANDLE_ID): Define.
107 (VALUE_HANDLE_EXPR_SET): Define.
108 (enum tree_node_structure_enum): Add TS_VALUE_HANDLE.
109 (union tree_node): Add struct tree_value_handle.
110
111 2004-06-23 Andrew Pinski <apinski@apple.com>
112
113 * c-typeck.c (composite_type):
114 <case POINTER_TYPE>: Build a qualified type of
115 the new type.
116 <case ARRAY_TYPE>: Likewise.
117 <case FUNCTION_TYPE>: Likewise.
118
119 2004-06-23 Pat Haugen <pthaugen@us.ibm.com>
120
121 PR optimization/15633
122 * value-prof.c (divmod_fixed_value_transform): Compute probability
123 of taking optimal path and pass along to gen_ routine.
124 (mod_pow2_value_transform): Same.
125 (mod_subtract_transform): Same.
126 (gen_divmod_fixed_value): Add new probability parameter.
127 Add probability to newly created jump.
128 (gen_mod_pow2): Same.
129 (gen_mod_subtract): Same.
130
131 2004-06-23 Richard Earnshaw <rearnsha@arm.com>
132
133 * PR target/15948
134 * arm.md (bicsi3_cbranch): Add alternative to handle tying operands
135 one and two.
136
137 2004-06-23 Richard Earnshaw <rearnsha@arm.com>
138
139 PR target/15927
140 * arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Don't need a secondary
141 reload if CLASS is BASE_REGS.
142
143 2004-06-23 Richard Sandiford <rsandifo@redhat.com>
144
145 * gengtype-yacc.y (option): Avoid use of non-constant struct
146 initializer.
147
148 2004-06-23 Nathan Sidwell <nathan@codesourcery.com>
149
150 * doc/extend.texi (Function Attributes): Alphabetize.
151
152 2004-06-23 Richard Henderson <rth@redhat.com>
153
154 * c-gimplify.c (gimplify_decl_stmt): Update gimplify_type_sizes call.
155 Use gimplify_and_add.
156 * c-typeck.c (c_finish_if_stmt): Use NULL instead of empty stmt.
157 * gimplify.c (build_and_jump, gimplify_exit_expr,
158 gimplify_init_constructor, gimplify_save_expr, gimple_push_cleanup,
159 gimplify_stmt, gimplify_expr): Likewise.
160 (shortcut_cond_expr): Handle NULL arms of COND_EXPR.
161 (gimplify_statement_list): Remove NULL entries.
162 (gimplify_to_stmt_list): Handle NULL results.
163 (gimplify_type_sizes): Add list_p argument.
164 (gimplify_one_sizepos): Don't use internal pre/post queue.
165 * tree-gimple.h (gimplify_type_sizes): Update.
166
167 2004-06-22 Eric Christopher <echristo@redhat.com>
168
169 * config/rs6000/rs6000.md (*insvsi_internal5/6): New patterns.
170
171 2004-06-22 Pat Haugen <pthaugen@us.ibm.com>
172
173 * cfghooks.c (make_forwarder_block): Decrement count on fallthru edge
174 when redirecting back edges.
175
176 * cfghooks.c (split_block): Call make_single_succ_edge so that edge
177 count/probability are set correctly.
178
179 2004-06-22 Richard Henderson <rth@redhat.com>
180
181 * c-typeck.c (emit_side_effect_warnings): Ignore error marks.
182 (c_finish_stmt_expr): Likewise.
183
184 * config/i386/i386.c (TARGET_STRUCT_VALUE_RTX): New.
185 (ix86_return_in_memory): Move SSE vector return warning ...
186 (ix86_struct_value_rtx): ... here. New.
187
188 2004-06-22 Richard Henderson <rth@redhat.com>
189
190 * tree.def (VTABLE_REF): Remove.
191 (OBJ_TYPE_REF): New.
192 (TRY_CATCH_EXPR, TRY_FINALLY_EXPR): Set type 's'.
193 * expr.c (expand_expr_real_1): Replace VTABLE_REF with OBJ_TYPE_REF.
194 * fold-const.c (non_lvalue): Likewise.
195 * gimplify.c (gimplify_expr): Likewise.
196 (gimplify_call_expr): Use is_gimple_call_addr.
197 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New.
198 * langhooks.h (fold_obj_type_ref): New.
199 * tree-gimple.c (is_gimple_call_addr): New.
200 * tree-gimple.h (is_gimple_call_addr): Declare.
201 * tree-inline.c (inlinable_function_p): Fix merge error.
202 (estimate_num_insns_1): Replace VTABLE_REF with OBJ_TYPE_REF.
203 * tree-pretty-print.c (dump_generic_node): Likewise.
204 (print_call_name): Handle OBJ_TYPE_REF.
205 * tree-ssa-ccp.c (fold_stmt): Fold OBJ_TYPE_REF.
206 * tree-ssa-operands.c (get_expr_operands): Handle OBJ_TYPE_REF.
207 * tree.h (OBJ_TYPE_REF_EXPR): New.
208 (OBJ_TYPE_REF_OBJECT, OBJ_TYPE_REF_TOKEN): New.
209 * doc/c-tree.texi (VTABLE_REF): Remove.
210 * objc/objc-act.c (build_objc_method_call): Build an OBJ_TYPE_REF.
211
212 2004-06-22 Richard Henderson <rth@redhat.com>
213
214 PR middle-end/16026
215 * function.c (assign_parms): Don't abort for overaligned PARALLEL.
216
217 2004-06-22 Joseph S. Myers <jsm@polyomino.org.uk>
218
219 * Makefile.in (distclean): Don't try to remove empty directories.
220
221 2004-06-22 Richard Sandiford <rsandifo@redhat.com>
222
223 PR target/15869
224 * config/mips/mips.c (mips_avoid_hazards): Call split_all_insns_noflow.
225
226 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
227
228 * config/mn10300/mn10300.md (movdi, movdf): Use high/low for movu
229 operands.
230
231 2004-06-22 Dale Johannesen <dalej@apple.com>
232
233 * config/rs6000/rs6000.c (legitimate_offset_address_p): Make
234 global, rename rs6000_legitimate_offset_address_p.
235 (rs6000_legitimate_address_p): Adjust calls to it.
236 (lmw_operation): Ditto.
237 (stmw_operation): Ditto.
238 * config/rs6000/rs6000-protos.h: Declare it.
239 * config/rs6000/rs6000.md (*movdf_hardfloat32): Use it
240 instead of offsettable_memref_p.
241
242 2004-06-22 Dale Johannesen <dalej@apple.com>
243
244 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
245 [reg+reg] mode for TFmode memory accesses.
246 (rs6000_eliminate_indexed_memrefs): New.
247 (rs6000_emit_move): Call preceding for TImode and TFmode.
248
249 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
250
251 * tree-cfg.c (pass_warn_function_return): It needs
252 CFG, not SSA.
253
254 2004-06-22 Nathan Sidwell <nathan@codesourcery.com>
255
256 * doc/invoke.texi (Machine Dependent Options): Alphabetize.
257 (Submodel Options): Likewise.
258
259 2004-06-21 Andrew Pinski <apinski@apple.com>
260
261 Radar #: 3701874
262 * c-decl.c (push_file_scope): Return early if we already
263 have a file scope.
264
265 2004-06-21 Geoffrey Keating <geoffk@apple.com>
266
267 * c-opts.c (c_common_handle_option): Handle -fpch-preprocess.
268 * c-common.h (flag_pch_preprocess): Declare.
269 (c_common_pch_pragma): Likewise.
270 * c-common.c (flag_pch_preprocess): New.
271 * c-pch.c (c_common_read_pch): Support -fpreprocess-only.
272 (c_common_pch_pragma): New.
273 * c-ppoutput.c (cb_read_pch): New.
274 (init_pp_output): Support -fpch-preprocess.
275 * c-pragma.c (init_pragma): Support #pragma GNUC pch_preprocess.
276 * c.opt (fpch-preprocess): New.
277 * gcc.c (cpp_options): When save-temps, pass -fpch-preprocess.
278 * doc/cppopts.texi: Document -fpch-preprocess.
279 * doc/invoke.texi (Precompiled Headers): Mention that
280 -fpreprocessed is safe for PCH. Mention that if an option is
281 listed as safe that doesn't mean it does what you expect.
282
283 2004-06-22 Ben Elliston <bje@au.ibm.com>
284
285 * tree-ssa.c (ssa_redirect_edge): Correct leading comment.
286
287 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
288
289 * Makefile.in (gimplify.o): Add cgraph.h.
290 * alias.c (adjust_offset_for_component_ref): Use
291 component_ref_field_offset.
292 * c-decl.c (build_array_declarator): Add news args for ARRAY_REF.
293 * c-gimplify.c (gimplify_expr_stmt): Use alloc_stmt_list.
294 (gimplify_decl_stmt): Call gimplify_type_sizes for type.
295 For decl, call gimplify_one_sizepos and use statement list.
296 (gimplify_compound_literal_expr): New arg PRE_P.
297 Add statement to PRE_P list and return DECL.
298 (c_gimplify_expr, case COMPOUND_LITERAL_EXPR): Add arg to
299 gimplify_compound_literal_expr.
300 * c-tree.h (getdecls): Deleted.
301 * c-typeck.c (build_component_ref): Add operand for COMPONENT_REF.
302 (build_array_ref): Add two operands for ARRAY_REF.
303 (build_unary_op): Set TREE_INVARIANT and TREE_CONSTANT for
304 COMPOUND_LITERAL_EXPR.
305 * coverage.c (tree_coverage_counter_ref): Add new operands
306 for ARRAY_REF.
307 * emit-rtl.c (component_ref_for_mem_expr): Add new operand
308 for COMPONENT_REF.
309 (set_mem_attributes_minus_bitpos): Use array_ref_low_bound
310 and array_ref_element_size.
311 (widen_memory_access):Use component_ref_field_offset.
312 * explow.c (update_nonlocal_goto_save_area): Add two operands
313 for ARRAY_REF.
314 * expr.c (array_ref_element_size, array_ref_low_bound): New functions.
315 (component_ref_field_offset): Likewise.
316 (get_inner_reference): Use them.
317 (expand_expr_real_1, case ARRAY_REF): Use array_ref_low_bound.
318 * fold-const.c (fold, case EQ_EXPR): Properly handle DECL_SIZE.
319 (fold_read_from_constant_string): Use array_ref_low_bound.
320 Verify that result is a character type.
321 (build_fold_indirect_ref): Add two operands for ARRAY_REF.
322 * function.c (expand_function_start): Likewise.
323 * gimple-low.c (expand_var_p): Delete duplicated line.
324 * gimplify.c: Add static decls for local functions.
325 (cgraph.h): Now included.
326 (create_tmp_var): Remove check for ARRAY_TYPE.
327 (copy_if_shared_r): Look at bounds and sizes of types.
328 (build_and_jump): Return alloc_stmt_list instead of build_empty_stmt.
329 (gimplify_exit_expr, shortcut_cond_expr): Likewise.
330 (gimplify_save_expr, gimple_push_cleanup): Likewise.
331 (gimplify_init_constructor): Likewise.
332 WANT_VALUE now bool.
333 If empty list with no result wanted, return GS_UNHANDLED.
334 Add additional operands for ARRAY_REF and COMPONENT_REF.
335 (canonicalize_component_ref): Convert to &array[L].
336 (gimplify_array_ref_to_plus): Use array_ref_element_size and
337 array_ref_lower_bound.
338 (build_addr_expr_with_type, build_addr_expr): New functions.
339 (gimplify_compound_lval): WANT_LVALUE now bool.
340 Major rework to allow handle_component_p and initialize and
341 gimplify new operands for ARRAY_REF, ARRAY_RANGE_REF, and
342 COMPONENT_REF.
343 (gimplify_array_ref): Deleted.
344 (gimplify_self_mod_expr): WANT_VALUE now bool.
345 (gimplify_modify_expr): Gimplify to_p and from_p later.
346 Factor out code into gimplify_modify_expr_rhs and call twice.
347 Move variable-size code earlier and handle PLACEHOLDER_EXPR.
348 (gimplify_modify_expr_rhs, gimplify_variable_sized_compare): New fns.
349 (gimplify_addr_expr, case VIEW_CONVERT_EXPR): New case.
350 (gimplify_expr, case ARRAY_REF): Delete special case.
351 Instead handle like COMPONENT_REF; also do ARRAY_RANGE_REF,
352 IMAGPART, and REALPART the same way.
353 (gimplify_expr, case VIEW_CONVERT_EXPR): New case.
354 (gimplify_expr): Call gimplify_variable_sized_compare if applicable.
355 Call alloc_stmt_list instead of build_empty_stmt.
356 Deal with _REF that's volatile.
357 (gimplify_type_sizes, gimplify_one_sizepos): New functions.
358 (unshare_body, unvisit_body): New functions.
359 (gimplify_body): Call them.
360 * stmt.c (expand_stack_alloc): Don't expand TYPE_MAX_VALUE.
361 * stor-layout.c (get_pending_sizes): Don't change SAVE_EXPR_CONTEXT.
362 * tree-alias-common.c (get_alias_var): Also skip ARRAY_RANGE_REF.
363 * tree-cfg.c (tree_node_can_be_shared): Treat ARRAY_RANGE_REF
364 like ARRAY_REF.
365 (verify_expr, case ADDR_EXPR): Use handled_component_p.
366 * tree-dfa.c (get_virtual_var): Likewise.
367 * tree-dump.c (dequeue_and_dump, case COMPONENT_REF, ARRAY_REF):
368 New cases to dump new operands; likewise for ARRAY_RANGE_REF.
369 * tree-eh.c (tree_could_trap, case ARRAY_RANGE_REF): Like ARRAY_REF.
370 * tree-gimple.c (is_gimple_addr_expr_arg): Add ARRAY_RANGE_REF
371 and INDIRECT_REF.
372 (get_base_address): Use handled_component_p.
373 * tree-gimple.h (gimplify_type_sizes, gimplify_one_sizepos): New.
374 * tree-inline.c (walk_tree): Walk more things for types and decls.
375 * tree-mudflap.c (mf_build_check_statement_for): Add new operands
376 for ARRAY_REF and COMPONENT_REF.
377 (mx_xform_derefs_1): Clean up usage of decl sizes.
378 * tree-nested.c (build_addr): Use handled_component_p.
379 (walk_stmts, case CATCH_EXPR): Add missing "break".
380 (get_static_chain, get_frame_field): Add new operand for COMPONENT_REF.
381 (finalize_nesting_tree_1): Likewise.
382 (convert_nonlocal_reference, case ARRAY_RANGE_REF): Like ARRAY_REF
383 and process additional operands.
384 (convert_local_reference): Likewise.
385 * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Treat
386 ARRAY_RANGE_REF similarly to ARRAY_REF.
387 * tree-pretty-print.c (dump_generic_node, case QUAL_UNION_TYPE): Handle
388 like RECORD_TYPE.
389 (dump_generic_node, case COMPONENT_REF): Print offset operand.
390 (dump_generic_node, case ARRAY_RANGE_REF): Treat like ARRAY_REF
391 and print lower bound and element size for both.
392 (op_prio, case ARRAY_RANGE_REF): Like ARRAY_REF.
393 * tree-sra.c (csc_build_component_ref): Add new operand.
394 (scalarize_call_expr): Use get_base_address.
395 * tree-ssa-ccp.c (widen_bitfield): Clean up size handling.
396 (maybe_fold_offset_to_array_ref): Rework to handle input having an
397 ARRAY_REF, refine handling of lower bound, and add new operands
398 for ARRAY_REF.
399 (maybe_fold_to_component_ref): Add new operand for COMPONENT_REF.
400 (maybe_fold_stmt_indirect): Only fold *&B to B if types match.
401 (maybe_fold_stmt_addition): Only handle constant lower bound.
402 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
403 Treat ARRAY_REF and ARRAY_RANGE_REF the same; look at extra operands.
404 Look at new offset operand of COMPONENT_REF.
405 * tree-ssa.c (set_is_used): Use handled_component_p.
406 * tree.c (substitute_in_expr, case COMPONENT_REF): Add new operand.
407 (stabilize_reference, case COMPONENT_REF): Likewise.
408 (stabilize_reference, case ARRAY_RANGE_REF, ARRAY_REF): Similarly.
409 (recompute_tree_invariant_for_addr_expr): Completely rework to
410 be more precise. Also set TREE_SIDE_EFFECTS.
411 (build1_stat, case ARRAY_EXPR): Don't handle TREE_SIDE_EFFECTS here.
412 (build2_stat, build3_stat, build4_stat): For references,
413 propagate TREE_THIS_VOLATILE.
414 (get_unwidened): Add new operand for COMPONENT_REF.
415 (get_narrower): Likewise; use host_integerp for DECL_SIZE.
416 * tree.def (COMPONENT_REF): Add new operand.
417 (ARRAY_REF, ARRAY_RANGE_REF): Add two new operands.
418 * tree.h (array_ref_element_size, array_ref_low_bound): New decls.
419 (component_ref_field_offset): Likewise.
420 * config/alpha/alpha.c (alpha_va_start): Add new op for COMPONENT_REF.
421 (alpha_gimplify_va_arg): Likewise.
422 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
423 * config/i860/i860.c (i860_va_start, i860_va_arg): Likewise.
424 * config/iq2000/iq2000.c (iq2000_va_arg): Likewise.
425 * config/mips/mips.c (mips_va_start, mips_va_arg): Likewise.
426 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
427 Likewise.
428 * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
429 * config/sh/sh.c (sh_va_start, sh_va_arg): Likewise.
430 * config/stormy16/stormy16.c (xstormy1_expand_builin_va_start):
431 Likewise.
432 (xstormy16_expand_builtin_va_arg): Likewise.
433 * config/xtensa/xtensa.c (xtensa_va_start, xtensa_va_arg): Likewise.
434 * objc/objc-act.c (generate_static_references): Likewise.
435 (generate_strings, build_method_prototype_list_template): Likewise.
436 (generate_protocol_list): Likewise.
437
438 2004-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
439
440 PR rtl-optimization/14782
441 * pa.c (emit_move_sequence): Use SFmode for 4-byte modes when doing
442 the address checks for secondary reloads for loads from and stores
443 to floating-point registers.
444 * pa.h (EXTRA_CONSTRAINT, case T): Use SFmode for 4-byte modes
445 in the address check. Move work around for ELF32 targets to
446 GO_IF_LEGITIMATE_ADDRESS.
447 (GO_IF_LEGITIMATE_ADDRESS): Require constant offsets to be
448 correctly aligned for DImode loads and stores. Don't allow long
449 SFmode displacements on ELF32.
450
451 2004-06-21 Richard Henderson <rth@redhat.com>
452
453 PR rtl-opt/16114
454 * cse.c (merge_equiv_classes): Also rehash in response to
455 delete_reg_equiv changes.
456 (rehash_using_reg): Don't exclude REGs from rehashing.
457
458 2004-06-21 Richard Henderson <rth@redhat.com>
459
460 * c-common.def (RETURN_STMT): Remove.
461 * c-common.h (RETURN_STMT_EXPR): Remove.
462 (c_expand_return, build_return_stmt): Remove.
463 (c_common_stmt_codes): Remove RETURN_STMT.
464 * c-dump.c (dump_next_stmt): Remove.
465 (c_dump_tree): Remove RETURN_STMT.
466 * c-decl.c (finish_function): Use c_finish_return.
467 * c-parse.in (stmt): Likewise.
468 * c-gimplify.c (gimplify_return_stmt): Remove.
469 (c_gimplify_expr): Remove RETURN_STMT.
470 * c-pretty-print.c (pp_c_statement): Likewise.
471 * c-semantics.c (build_return_stmt): Remove.
472 * c-tree.h (c_finish_return): Declare.
473 * c-typeck.c (c_finish_return): Rename from c_expand_return.
474 Return void. Build RETURN_EXPR directly.
475 * tree-dump.h (dump_next_stmt): Remove.
476
477 2004-06-21 Zack Weinberg <zack@codesourcery.com>
478
479 * c-decl.c (start_function): Don't call make_decl_rtl. Don't
480 look at TREE_ADDRESSABLE of symbol name.
481
482 2004-06-21 Kelley Cook <kcook@gcc.gnu.org>
483
484 PR target/15551
485 * config/i386/i386.md: Change UNSPEC_STACK_PROBE to UNSPECV_STACK_PROBE.
486 (allocate_stack_worker): Make unspec_volatile.
487 (allocate_stack_worker_rex64): Likewise.
488 (allocate_stack_worker_postreload): Likewise.
489 (allocate_stack_worker_rex64_postreload): Likewise.
490
491 2004-06-21 Daniel Berlin <dberlin@dberlin.org>
492
493 Fix PR optimization/15982
494 * tree-ssa-pre.c: Update a few comments and todos to
495 reflect constants change.
496 (get_value_handle): Constants now value number to themselves.
497 (lookup): Constants lookup to themselves.
498 (add_to_value): Adjust to always be on.
499 (set_contains_value): Adjust for constants change.
500 (find_leader): Ditto.
501 (phi_translate): 'r' nodes are never ANTIC right now.
502 (valid_in_set): Ditto.
503 (get_expr_set): New function.
504 (find_or_generate_expression): New function, broken out from
505 insert_aux.
506 (create_expression_by_pieces): Ditto, plus additional
507 machinery to handle complex values.
508 (compute_avail): Remove dead RETURN_EXPR handling.
509
510 2004-06-21 Steven Bosscher <stevenb@suse.de>
511
512 * config/i386/i386.c: Include insn-codes.h
513 * config/i386/i386.h (FLAGS_REG, FPSR_REG, DIRFLAG_REG): Don't
514 define here.
515 * config/i386/i386.md (BP_REG, SP_REG, FLAGS_REG, FPSR_REG,
516 DIRFLAG_REG): New define_constants. Use them everywhere.
517
518 2004-06-21 Kaz Kojima <kkojima@gcc.gnu.org>
519
520 * config/sh/t-linux (MULTILIB_OPTIONS): Remove.
521
522 2004-06-21 J"orn Rennecke <joern.rennecke@superh.com>
523
524 * sh.h (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4): Conditionanlly define.
525 (SUPPORT_SH4_SINGLE): Likewise.
526 (TARGET_SWITCHES): Break out switches for cpu subtargets:
527 (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E): Define.
528 (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E): Likewise.
529 (TARGET_SWITCH_SH4_SINGLE_ONLY, TARGET_SWITCH_SH4_SINGLE): Likewise.
530 (TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4): Likewise.
531 (TARGET_SWITCH_SH5_64MEDIA, TARGET_SWITCH_SH5_64MEDIA_NOFPU): Likewise.
532 (TARGET_SWITCHES_SH5_32MEDIA): Likewise.
533 (TARGET_SWITCHES_SH5_32MEDIA_NOFPU): Likewise.
534 (SELECT_SH5_64, SELECT_SH5_64_NOFPU): Rename to:
535 (SELECT_SH5_64MEDIA, SELECT_SH5_64MEDIA_NOFPU)
536 (SELECT_SH5_32, SELECT_SH5_32_NOFPU): Rename to:
537 (SELECT_SH5_32MEDIA, SELECT_SH5_32MEDIA_NOFPU).
538 (SH_MULTILIB_CPU_DEFAULT, MULTILIB_DEFAULTS): Define.
539 (ASM_ISA_SPEC_DEFAULT, ASM_ISA_DEFAULT_SPEC): Likewise.
540 * sh64.h (ASM_SPEC, LINK_DEFAULT_CPU_EMUL): Don't redefine.
541 (TARGET_DEFAULT): Likewise.
542 * config/sh/t-elf: Amend comment.
543 * config/sh/t-1e, config/sh/t-mlib-sh1: New files.
544 * config/sh/t-mlib-sh2, config/sh/t-mlib-sh2e: Likewise.
545 * config/sh/t-mlib-sh3, config/sh/t-mlib-sh3e: Likewise.
546 * config/sh/t-mlib-sh4, config/sh/t-mlib-sh4-nofpu: Likewise.
547 * config/sh/t-mlib-sh4-single: Likewise.
548 * config/sh/t-mlib-sh4-single-only: Likewise.
549 * config/sh/t-mlib-sh5-32media: Likewise.
550 * config/sh/t-mlib-sh5-32media-nofpu: Likewise.
551 * config/sh/t-mlib-sh5-64media: Likewise.
552 * config/sh/t-mlib-sh5-64media-nofpu: Likewise.
553 * config/sh/t-mlib-sh5-compact: Likewise.
554 * config/sh/t-mlib-sh5-compact-nofpu: Likewise.
555 * config/sh/t-sh: (MULTILIB_ENDIAN): Add mb.
556 (MULTILIB_CPUS): Define.
557 (MULTILIB_OPTIONS): Use MULTILIB_CPUS.
558 (MULTILIB_MATCHES): Use some shell code to calculate it.
559 (MULTILIB_EXCEPTIONS): Change to ml/m1.
560 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Use ASM_ISA_DEFAULT_SPEC.
561 * config/sh/netbsd-elf.h: Update code which sets TARGET_VERSION_CPU.
562 (LINK_DEFAULT_CPU_EMUL): Don't redefine.
563 (NO_PROFILE_COUNTERS): Define to 1.
564 * config/sh/t-netbsd (MULTILIB_OPTIONS): Don't append to.
565 (MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
566 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Don't redefine.
567 (MULTILIB_MATCHES): Don't zap.
568 (MULTILIB_DIRNAMES): Use MULTILIB_RAW_DIRNAMES.
569 * config/sh/t-sh64 (MULTILIB_OPTIONS): Don't redefine.
570 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
571 (MULTILIB_RAW_DIRNAMES): Define.
572 (MULTILIB_DIRNAMES): Use it.
573 * config.gcc: Also set cpu_type / need_64bit_hwint for sh[be]*-*-*.
574 (sh*linux configurations): Merge into:
575 (sh*elf / sh*kaos configurations). Support --with-endian, --with-cpu,
576 --with-multilib-list options. Support sh-superh-elf configuration.
577 (sh*-netbsd*): Use SELECT_SH* macros.
578 (supported_defaults): sh[123456ble]-*-* | sh-*-* support "cpu".
579 Merge sh*-*-netbsd* configurations into sh-elf configurations.
580 * config/sh/t-netbsd-sh5, config/sh/t-be, config/sh/t-le: Delete.
581 * config/sh/t-monolib: Likewise.
582
583 2004-06-21 Paul Brook <paul@codesourcery.com>
584
585 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Soft-float need
586 not imply FPA.
587
588 2004-06-21 Roger Sayle <roger@eyesopen.com>
589
590 * fold-const.c (operand_equal_p): Pass flags in recursive calls for
591 binary and relational operations. Add support for TRUTH_ANDIF_EXPR,
592 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR.
593 * tree.c (commutative_tree_code): Also list UNORDERED_EXPR,
594 ORDERED_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR
595 and TRUTH_XOR_EXPR.
596
597 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
598
599 * rtlanal.c (may_trap_p): Mark LTGT as trapping.
600
601 2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk>
602
603 * tree-alias-common.h (struct tree_alias_ops): Change ip and
604 ip_partial to unsigned int.
605
606 2004-06-21 Richard Henderson <rth@redhat.com>
607
608 * c-common.c (verify_sequence_points): Export.
609 (c_expand_expr_stmt): Move to c-typeck.c.
610 * c-common.h (c_expand_expr_stmt): Remove.
611 (verify_sequence_points): Declare.
612 * c-mudflap.c (mflang_flush_calls): Use c_finish_expr_stmt.
613 * c-parse.in (for_init_stmt, stmt): Likewise.
614 * c-tree.h (c_finish_expr_stmt): Declare.
615 (c_tree_expr_nonnegative_p): Remove.
616 * c-typeck.c (c_tree_expr_nonnegative_p): Remove.
617 (build_conditional_expr, build_binary_op): Use tree_expr_nonnegative_p.
618 (emit_side_effect_warnings): New.
619 (c_finish_expr_stmt): Rename from c_expand_expr_stmt. Use it.
620 (c_finish_stmt_expr): Work without EXPR_STMT. Handle eh regions.
621 Use emit_side_effect_warnings.
622 (push_cleanup): Copy STATEMENT_LIST_STMT_EXPR.
623 * fold-const.c (tree_expr_nonnegative_p): Handle TARGET_EXPR.
624 * gimplify.c (gimplify_modify_expr): Don't discard TARGET_EXPR
625 with void initializer.
626 (gimplify_target_expr): Handle void BIND_EXPR initializer.
627 * tree-inline.c (estimate_num_insns_1): Fix type lookup for
628 INIT_EXPR and MODIFY_EXPR.
629 * objc/objc-act.c (build_module_descriptor): Use add_stmt
630 instead of c_expand_expr_stmt.
631
632 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
633
634 * fold-const.c (fold_cond_expr_with_comparison):
635 New function, extracted from fold.
636 (fold): Extract code to fold A op B ? A : C, use
637 it to fold A op B ? C : A. Really optimize
638 A & N ? N : 0 where N is a power of two. Avoid
639 relying on canonicalization and recursion for
640 foldings of COND_EXPR to happen.
641
642 2004-06-20 David Ayers <d.ayers@inode.at>
643
644 * objc/objc-act.h (get_object_reference): Rename to
645 get_protocol_reference.
646 (super_type): Rename to objc_super_type.
647 (selector_type): Rename to objc_selector_type.
648 (id_type): Rename to objc_id_type.
649 (instance_type): Rename to objc_instance_type.
650 (protocol_type): Rename to objc_protocol_type.
651 (IS_ID): Update reference to id_type.
652 * objc/objc-act.c (get_object_reference): Rename to
653 get_protocol_reference; add documentation; update references to
654 id_type.
655 (lookup_method_in_protocol_list): Rename class_meth to
656 is_class; add documentation.
657 (finish_message_expr): Rename is_class to class_tree.
658 (synth_module_prologue, objc_is_object_ptr, objc_build_exc_ptr,
659 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
660 build_next_objc_exception_stuff, get_arg_type_list,
661 build_objc_method_call): Update references to id_type.
662 (synth_module_prologue, build_objc_symtab_template,
663 build_selector_reference_decl, build_selector,
664 build_selector_translation_table, build_typed_selector_reference,
665 get_arg_type_list, synth_self_and_ucmd_args, get_arg_type_list,
666 synth_self_and_ucmd_args): Update references to selector_type.
667 (build_private_template, build_ivar_reference): Update references
668 to instance_type.
669 (synth_module_prologue, build_protocol_reference,
670 build_protocol_expr, start_protocol): Update references to
671 protocol_type.
672 (synth_module_prologue, get_arg_type_list, build_objc_method_call):
673 Update references to super_type.
674 * c-parse.in: (typespec_nonreserved_nonattr): Update
675 references to get_object_reference.
676 * objc/objc-tree.def: Add C mode identifier sequence.
677
678 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
679
680 * loop-invariant.c: New file.
681 * Makefile.in (loop-invariant.o): New.
682 * cfgloop.h (global_cost_for_size, init_set_costs,
683 move_loop_invariants): Declare.
684 * cfgloopanal.c (seq_cost, init_set_costs, global_cost_for_size): New
685 functions.
686 (avail_regs, res_regs, small_cost, pres_cost, spill_cost): New
687 variables.
688 * common.opt (floop-optimize2, fmove-loop-invariants): New options.
689 * loop-init.c (loop_optimizer_init): Call init_set_costs.
690 * passes.c (rest_of_handle_loop2): Call move_loop_invariants.
691 (rest_of_compilation): Check flag_loop_optimize2.
692 * toplev.c (process_options): Handle flag_loop_optimize2.
693 * doc/invoke.texi (-floop-optimize2, -fmove-loop-invariants): Document.
694 * doc/passes.texi (loop-invariant.c): Document.
695
696 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
697
698 * tree-ssa-pre.c (compute_antic): Keep BB_VISITED flag zeroed.
699
700 2004-06-20 Richard Henderson <rth@redhat.com>
701
702 * stmt.c (warn_if_unused_value): Add locus argument.
703 * tree.h (warn_if_unused_value): Update decl.
704 * c-typeck.c (internal_build_compound_expr): Update call.
705 * c-gimplify.c (gimplify_expr_stmt): Likewise.
706
707 2004-06-20 Andrew Pinski <pinskia@physics.uc.edu>
708
709 PR middle-end/16089
710 * builtins.c (entry_of_function): Move to ...
711 * cfgrtl.c (entry_of_function): Here and make non-static.
712 * integrate.c (emit_initial_value_sets): Use entry_of_function.
713 * rtl.h (entry_of_function): Prototype.
714
715 2004-06-20 Roger Sayle <roger@eyesopen.com>
716
717 * config/i386/i386.c (pentium4_cost): Increase "lea" cost from 1 to 3.
718 (ix86_rtx_costs) <ASHIFT, PLUS>: Consider ix86_cost->lea even when
719 TARGET_DECOMPOSE_LEA.
720
721 2004-06-20 Richard Henderson <rth@redhat.com>
722
723 * c-common.h (add_decl_stmt): Move to cp-tree.h.
724 * c-decl.c (finish_decl): Don't use add_decl_stmt.
725 * c-parse.in: Likewise.
726 * c-gimplify.c (gimplify_expr_stmt): Don't build CLEANUP_POINT_EXPR.
727 (gimplify_c_loop, gimplify_return_stmt, gimplify_decl_stmt): Likewise.
728 * c-semantics.c (add_decl_stmt): Move to cp/semantics.c.
729
730 2004-06-20 Richard Henderson <rth@redhat.com>
731
732 * c-common.def (IF_STMT, CLEANUP_STMT): Move to cp-tree.def.
733 * c-common.h (IF_COND, THEN_CLAUSE, ELSE_CLAUSE, CLEANUP_BODY,
734 CLEANUP_EXPR, CLEANUP_DECL): Move to cp-tree.h.
735 (c_common_stmt_codes): Remove IF_STMT, CLEANUP_STMT.
736 * c-dump.c (c_dump_tree): Move IF_STMT, CLEANUP_STMT to cp_dump_tree.
737 * c-pretty-print.c (pp_c_statement): Similarly.
738 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts,
739 gimplify_if_stmt): Move to cp-gimplify.c.
740 (c_genericize, c_gimplify_expr): Don't call them.
741 * c-semantics.c (push_cleanup): Move to cp/semantics.c.
742 * c-typeck.c (push_cleanup): New.
743 (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_finish_else,
744 c_finish_if_stmt): Use COND_EXPR.
745 * tree.h (CLEANUP_EH_ONLY): Update documentation.
746
747 2004-06-20 Zack Weinberg <zack@codesourcery.com>
748
749 * c-common.h (has_c_linkage): New interface.
750 * c-cppbuiltin.c: Include target.h.
751 (c_cpp_builtins): Define __PRAGMA_REDEFINE_EXTNAME and
752 __PRAGMA_EXTERN_PREFIX when appropriate.
753 * c-pragma.c: Include target.h.
754 Document clarified semantics of symbol-renaming #pragmas.
755 (handle_pragma_redefine_extname, handle_pragma_extern_prefix)
756 (maybe_apply_renaming_pragma): Rewrite according to clarified
757 semantics. Always recognize, but do not necessarily execute.
758 (init_pragma): Unconditionally register symbol-renaming pragmas.
759 * system.h: Poison HANDLE_PRAGMA_REDEFINE_EXTNAME
760 and HANDLE_PRAGMA_EXTERN_PREFIX.
761 * target.h (struct gcc_target): Add handle_pragma_redefine_extname
762 and handle_pragma_extern_prefix flags.
763 * target-def.h: Add defaults for TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
764 and TARGET_HANDLE_PRAGMA_EXTERN_PREFIX.
765 * Makefile.in (c-pragma.o, c-cppbuiltin.o): Update dependencies.
766 * config/sol2.h: Define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,
767 not HANDLE_PRAGMA_REDEFINE_EXTNAME.
768 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_REDEFINE_EXTNAME.
769 (TRANSFER_FROM_TRAMPOLINE): Prototype mprotect.
770 * config/alpha/osf.h: Define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,
771 not HANDLE_PRAGMA_EXTERN_PREFIX.
772 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_EXTERN_PREFIX.
773 * doc/extend.texi (Solaris Pragmas, Tru64 Pragmas): Combine
774 into one section "Symbol-Renaming Pragmas"; clarify; document
775 adjusted semantics.
776
777 * builtins.c (expand_builtin): Do not issue error for a builtin
778 with no special case code and no DECL_ASSEMBLER_NAME; just do the
779 library call.
780 * c-decl.c (builtin_function): Don't call make_decl_rtl.
781 * c-objc-common.c (has_c_linkage): Stub implementation.
782 * cgraphunit.c (cgraph_expand_function)
783 (cgraph_remove_unreachable_nodes): Don't clear DECL_ARGUMENTS.
784
785 2004-06-19 Roger Sayle <roger@eyesopen.com>
786
787 * builtins.c (fold_builtin_unordered_cmp): Take an EXP argument
788 instead of both an ARGLIST and a result TYPE. Handle these C99
789 comparison functions as "polymorphic" builtins. Also handle
790 lowering of BUILT_IN_ISUNORDERED to an UNORDERED_EXPR tree node.
791 (fold_builtin_1): Update calls to fold_builtin_unordered_cmp.
792 Move handling of BUILT_IN_ISUNORDERED from here to there.
793
794 2004-06-19 Richard Henderson <rth@redhat.com>
795
796 * c-common.c, c-common.h (lang_gimplify_stmt): Remove.
797 * c-gimplify.c: Remove unnecessary prototypes.
798 (c_gimplify_stmt): Merge into ...
799 (c_gimplify_expr): ... here. Don't play with prep_stmt.
800 * c-semantics.c (prep_stmt): Remove.
801 * gimplify.c (annotate_one_with_locus): Break out from ...
802 (annotate_all_with_locus): ... here.
803 (gimplify_expr): Add locus to expressions even if pre/post queues
804 are not present.
805
806 2004-06-19 Richard Henderson <rth@redhat.com>
807
808 PR target/15941
809 * function.c (assign_parms): If not padding upward or intentionally
810 forcing upward padding, take offset_rtx into account when determining
811 the alignment for stack_parm.
812
813 2004-06-19 Richard Henderson <rth@redhat.com>
814
815 PR target/15550
816 * ifcvt.c (noce_try_move): Recognize all generated instructions.
817
818 2004-06-19 Jan Hubicka <jh@suse.cz>
819
820 * function.c (free_after_compilation): Do not free computed_goto_common*.
821 * function.h (struct function): Kill computed_goto_common*.
822 * stmt.c (expand_computed_goto): Do not commonize the computed gotos.
823 * tree-cfg.c (disband_implicit_edges): Do not forward across the
824 commonized computed goto.
825
826 2004-06-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
827
828 * doc/invoke.texi: Remove obsolete comment regarding PA 2.0 support
829 in binutils.
830
831 2004-06-19 Andrew Pinski <apinski@apple.com>
832
833 PR c++/15721
834 * toplev.c (wrapup_global_declarations): Do not check
835 TREE_SYMBOL_REFERENCED of the DECL_ASSEMBLER_NAME but check
836 cgraph_varpool_node's needed field.
837
838 2004-06-19 Jan Hubicka <jh@suse.cz>
839 Steven Bosscher <stevenb@suse.de>
840
841 CFG transparent RTL expansion:
842 * Makefile.in (cfgexpand.o): New object file.
843 (builtins.o): Add dependency on basic-block.h
844 * builtins.c: Include basic-block.h
845 (entry_of_function): New function.
846 (expand_builtin_apply_args, expand_builtin_saveargs): Use it.
847 * cfgexpand.c: New file.
848 * expr.c (execute_expand, pass_expand): Kill.
849 * pass.c (rest_of_compilation): Do not build CFG unless called from
850 coverage code.
851 * tree-cfg.c (delete_tree_cfg): Rename to..
852 (delete_tree_cfg_annotations): ... this one; Do not remove the CFG itself.
853 * tree-flow.h (delete_tree_cfg_annotations): Declare.
854 (dleete_tree_cfg): Kill.
855 * tree-optimize.c (execute_rebuild_bind, pass_rebuild_bind): Kill.
856 (execute_del_cfg): Rename to...
857 (execute_free_datastructures): This one...
858 (pass_del_cfg): Rename to...
859 (pass_free_datastructures): ... this one; Do not kill PROP_cfg.
860 (init_tree_optimization_passes): Make cfg build and profiling to happen
861 unconditionally.
862
863 2004-06-19 Steven Bosscher <stevenb@suse.de>
864
865 * tree-mudflap.c (mf_decl_cache_locals): Skip labels before
866 inserting the cache variables.
867
868 * tree-mudflap.c: Include headers to make basic_block available.
869 Move functions around such that related functions are near each
870 other. Add prototypes for all static functions. Add comments
871 briefly explaining what IR the mudflap1 and mudflap2 work on and
872 what they do.
873 (mudflap_function_decls): Rename to execute_mudflap_function_decls.
874 (mudflap_function_ops): Rename to execute_mudflap_function_ops.
875 (pass_mudflap_1, pass_mudflap_2): Update.
876 (mf_decl_cache_locals): Make it work on the CFG instead of the saved
877 function tree.
878 (mf_build_check_statement_for): Make it work on the CFG.
879 (mf_xform_derefs_1): Likewise. Cleanup code style.
880 (mf_xform_derefs): Likewise.
881
882 2004-06-19 Jan Hubicka <jh@suse.cz>
883
884 * tree-cfg.c (label_to_block): Invent the label destination for
885 undefined labels.
886 (cleanup_dead_labels): Update table in the case label_to_block added
887 new label.
888
889 2004-06-18 Richard Henderson <rth@redhat.com>
890
891 PR c++/16036
892 * gimple-low.c (lower_function_body): Generate return statement for
893 fall off the end of the function here ...
894 * tree-cfg.c (make_edges): ... instead of here.
895 * gimplify.c (gimplify_return_expr): Mark return temp TREE_NO_WARNING.
896
897 2004-06-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
898
899 * tree-ssa.c (raise_value): Removed.
900 (get_eq_name, check_phi_redundancy): New functions.
901 (kill_redundant_phi_nodes): Use standard ssa minimalization algorithm.
902
903 2004-06-18 Roger Sayle <roger@eyesopen.com>
904
905 * fold-const.c (fold) <UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR,
906 UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR>: Add
907 constant folding for unordered comparison tree nodes. If both
908 operands are real constants, call fold_relational_const. If either
909 operand is a NaN, evaluate the other for side-effects and return a
910 constant. Optimize (double)float1 CMP (double)float2 into the
911 equivalent float1 CMP float2.
912 (nondestructive_fold_binary_to_constant) <UNORDERED_EXPR,
913 ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR,
914 LTGT_EXPR>: Call fold_relational_const for constant operands.
915 (fold_relational_const): Add support for unordered comparison tree
916 nodes. Don't constant fold "ordered" floating point comparisons
917 against NaN if when flag_trapping_math is set.
918
919 2004-06-19 Jakub Jelinek <jakub@redhat.com>
920
921 * fold-const.c (build_range_check): If !in_p and recursive call
922 fails, exit immediately. If high - low overflows and etype is
923 a signed type, retry with unsigned etype.
924 (merge_ranges): If !in0_p and !in1_p, handle even range2 adjacent
925 to range1 at TYPE_MAX_VALUE and TYPE_MIN_VALUE.
926
927 2004-06-18 Richard Henderson <rth@redhat.com>
928
929 * c-gimplify.c (gimplify_condition): Remove.
930 (gimplify_c_loop, gimplify_if_stmt, gimplify_switch_stmt): Don't
931 call it.
932
933 2004-06-18 Richard Henderson <rth@redhat.com>
934
935 * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
936 switch estimates.
937
938 2004-06-18 Andrew Pinski <pinskia@physics.uc.edu>
939
940 * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
941 (NORMAL_TEXT_SECTION_NAME): Define.
942 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
943 (SECTION_FORMAT_STRING): Define.
944
945 2004-06-18 Steven Bosscher <stevenb@suse.de>
946
947 * config/xtensa/xtensa.c
948 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
949 * xtensa.md: Replace the old pipeline description with a DFA model.
950
951 2004-06-18 Steven Bosscher <stevenb@suse.de>
952 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
953
954 * config/s390/s390.md: Remove the generic pipeline description.
955 * config/s390/2064.md: Make all insn reservations apply to
956 the z900, g5 and g6.
957 * config/s390/s390.c (s390_use_dfa_pipeline_interface): Remove.
958 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
959 Define to hook_int_void_1.
960 (s390_adjust_cost): Cleanup. Don't check address dependency here.
961 (s390_first_cycle_multipass_dfa_lookahead): Always return 4.
962
963 2004-06-18 Daniel Berlin <dberlin@dberlin.org>
964 Diego Novillo <dnovillo@redhat.com>
965
966 * tree-dfa.c (create_var_ann): tree_ann -> tree_ann_t.
967 (create_stmt_ann): Ditto.
968 (create_tree_ann): New function.
969 (create_cst_ann): Remove.
970 (create_expr_ann): Ditto.
971
972 * tree-flow-inline.h (cst_ann): Remove.
973 (get_cst_ann): Ditto.
974 (get_expr_ann): Ditto.
975 (expr_ann): Ditto.
976 (get_tree_ann): New function.
977 (tree_ann): Ditto.
978 (ann_type): tree_ann -> tree_ann_t.
979 * tree-flow.h (tree_ann_type): CST_ANN, EXPR_ANN removed.
980 (struct cst_ann_d): Removed.
981 (struct expr_ann_d): Ditto.
982 (union tree_ann_d): Removed cst and expr.
983 (tree_ann): Renamed to tree_ann_t.
984 * tree-ssa-ccp.c (set_rhs): tree_ann -> tree_ann_t.
985 * tree-ssa-pre.c (get_value_handle): Rewrite for single common
986 annotation.
987 (set_value_handle): Ditto.
988 (phi_translate): Ditto.
989 * tree-tailcall.c (adjust_return_value): tree_ann -> tree_ann_t.
990
991 2004-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
992
993 * config/sh/t-linux64: New file.
994 * config.gcc: Add it to tmake_file for sh64*-*-linux*.
995
996 2004-06-18 Paolo Bonzini <bonzini@gnu.org>
997
998 * emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
999 (unshare_all_rtl_again): Call unshare_all_rtl_1.
1000 (unshare_all_rtl): New.
1001 * function.c (instantiate_virtual_regs): Remove parameters.
1002 * function.h (instantiate_virtual_regs): Add prototype.
1003 * rtl.h (unshare_all_rtl): Add prototype.
1004 * tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
1005 prototype.
1006 * passes.c: Remove assertions on the parameters to
1007 rest_of_handle_* functions. Remove the parameters to
1008 the functions, replacing decl with current_function_decl
1009 and insns with get_insns ().
1010
1011 2004-06-17 Roger Sayle <roger@eyesopen.com>
1012
1013 * fold-const.c (constant_boolean_node): Handle boolean_type_node
1014 directly, return either boolean_true_node or boolean_false_node.
1015
1016 2004-06-18 Kelley Cook <kcook@gcc.gnu.org>
1017
1018 * opts.sh: Delete. Break out generated code to next four files.
1019 * opt-gather.awk: New file.
1020 * optc-gen.awk: New file.
1021 * opth-gen.awk: New file.
1022 * opt-functions.awk: New common file.
1023 * Makefile.in: Update for above.
1024 * configure.ac: Update comment.
1025 * configure: Regenerate.
1026
1027 2004-06-17 Richard Henderson <rth@redhat.com>
1028
1029 * c-common.c (flag_objc_sjlj_exceptions): New.
1030 * c-common.h (flag_objc_sjlj_exceptions): Declare.
1031 * c-opts.c (c_common_handle_option): Set it.
1032 (c_common_post_options): Handle interation of different
1033 objective-c exception and runtime switches.
1034 * c-decl.c (c_eh_initialized_p): New.
1035 (finish_decl): Use it instead of local eh_initialized_p.
1036 * c-parse.in (nested_function, notype_nested_function): Record
1037 the result of compstmt.
1038 (compstmt_or_error): Likewise.
1039 (compstmt): Don't add_stmt the result.
1040 (stmt): Don't return anything. Rewrite objc try and sync rules.
1041 (objc_try_stmt, objc_catch_list): Remove.
1042 (objc_catch_block, objc_finally_block): Remove.
1043 (objc_catch_prefix, objc_catch_clause, objc_opt_catch_list): New.
1044 (objc_try_catch_clause, objc_finally_clause): New.
1045 (objc_try_catch_stmt): Rewrite.
1046 * c-tree.h (c_eh_initialized_p): Declare.
1047 * c-opt (fobjc-sjlj-exceptions): New.
1048 * except.c (output_function_exception_table): Don't call cgraph
1049 on non-decls.
1050 * objc/objc-act.c (UTAG_EXCDATA_VAR, UTAG_CAUGHTEXC_VAR,
1051 UTAG_RETHROWEXC_VAR, UTAG_EVALONCE_VAR, struct val_stack,
1052 catch_count_stack, exc_binding_stack, if_nesting_count,
1053 blk_nesting_count, objc_enter_block, objc_exit_block,
1054 objc_declare_variable, val_stack_push, val_stack_pop,
1055 objc_build_try_enter_fragment, objc_build_extract_expr,
1056 objc_build_try_exit_fragment, objc_build_extract_fragment,
1057 objc_build_try_prologue, objc_build_try_epilogue,
1058 objc_build_catch_stmt, objc_build_catch_epilogue,
1059 objc_build_finally_prologue, objc_build_finally_epilogue,
1060 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
1061 objc_build_synchronized_epilogue): Remove.
1062 (objc_create_temporary_var, struct objc_try_context, cur_try_context,
1063 objc_eh_runtime_type, objc_init_exceptions, objc_build_exc_ptr,
1064 next_sjlj_build_try_exit, next_sjlj_build_enter_and_setjmp,
1065 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
1066 next_sjlj_build_try_catch_finally, objc_begin_try_stmt,
1067 objc_begin_catch_clause, objc_finish_catch_clause,
1068 objc_build_finally_clause, objc_finish_try_stmt,
1069 objc_build_synchronized): New.
1070 (objc_is_object_id, objc_is_class_id): New.
1071 (objc_comptypes): Use them.
1072 (build_next_objc_exception_stuff): Break NeXT sjlj out from
1073 build_objc_exception_stuff.
1074 (synth_module_prologue): Update to match.
1075 (objc_build_throw_stmt): Use cur_try_context to decide if
1076 we're in a @catch.
1077 * objc/objc-act.h: Update prototypes.
1078 (OCTI_EXCEPTION_BLK_STACK, objc_exception_block_stack): Remove.
1079
1080 2004-06-17 Andrew Pinski <apinski@apple.com>
1081
1082 * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
1083 Use TYPE_FIELDS instead of TYPE_VALUES.
1084
1085 2004-06-17 Jason Merrill <jason@redhat.com>
1086
1087 PR c++/16015
1088 * gimplify.c (gimplify_target_expr): Handle void initializer.
1089 * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
1090 * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
1091 and AGGR_INIT_EXPR.
1092
1093 2004-06-17 Roger Sayle <roger@eyesopen.com>
1094
1095 * fold-const.c (fold_relational_const): Use constant_boolean_node.
1096
1097 2004-06-17 Jan Hubicka <jh@suse.cz>
1098
1099 PR target/15433
1100 * i386.md (SSE SF cmov 0 splitter): The conditional is VOIDmode; fix
1101 operand numbering in the output template.
1102 (SSE DF cmov 0 splitter): The conditional is VOIDmode.
1103
1104 2004-06-17 Jan Hubicka <jh@suse.cz>
1105
1106 * except.c (can_throw_internal): Recognize RESX expresisons.
1107
1108 2004-06-17 Jan Hubicka <jh@suse.cz>
1109
1110 * cfgbuild.c (make_edges): Do not use label_value_list.
1111 (find_basic_blocks_1): Do not collect label_value_list.
1112 (find_sub_basic_blocks): Update call of make_edges.
1113
1114 2004-06-17 Andrew MacLeod <amacleod@redhat.com>
1115
1116 * tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT.
1117 * tree-flow-inline.h (get_use_op_ptr): Return a use_operand_p.
1118 (get_use_from_ptr, get_def_from_ptr): New. Return operand pointers.
1119 (get_def_op_ptr): Return a def_operand_p instead of a 'tree *'.
1120 (get_v_may_def_result_ptr): Return a def_operand_p.
1121 (get_v_may_def_op_ptr, get_vuse_op_ptr): Return a use_operand_p.
1122 (get_v_must_def_op_ptr): Return a def_operand_p.
1123 (get_phi_result_ptr): New. Return a pointer to the result of a PHI.
1124 (get_phi_arg_def_ptr): New. Return a pointer to an argument of a PHI.
1125 (phi_element_for_edge): Remove.
1126 * tree-flow.h (propagate_value, replace_exp): Change prototype.
1127 (propagate_tree_value): Add new prototype.
1128 (phi_element_for_edge): Remove prototype.
1129 * tree-into-ssa.c (mark_def_sites): Use new operand types.
1130 (prepare_operand_for_rename): Split into two functions.
1131 (prepare_use_operand_for_rename): Prepare use operands.
1132 (prepare_def_operand_for_rename): Prepare def operands.
1133 (rewrite_stmt): Use new operand types.
1134 (rewrite_operand): Use new operand types, change parameter type.
1135 * tree-outof-ssa.c (replace_variable): Split into two functions.
1136 (replace_use_variable): Rewrite uses.
1137 (replace_def_variable): Rewrite defs.
1138 (rewrite_trees, rewrite_vars_out_of_ssa): Use new operand types.
1139 * tree-phinodes.c (make_phi_node, resize_phi_node): Use new types.
1140 (add_phi_arg, remove_phi_arg_num): Use new operand types.
1141 * tree-ssa-ccp.c (substitute_and_fold): Use new operand types.
1142 (ccp_fold, replace_uses_in): Use new operand types.
1143 * tree-ssa-copy.c (replace_ssa_names): Rename to replace_ssa_names_ann
1144 and no longer set the value, change parameter type.
1145 (replace_exp_1): Use new operand types.
1146 (propagate_value): Change parameter type, use new operand types.
1147 (propagate_tree_value): Propagate_value without SSA operands.
1148 (replace_exp, cprop_operand, cprop_into_stmt): Use new operand types.
1149 (cprop_into_successor_phis): Use new operand types.
1150 * tree-ssa-dom.c (thread_across_edge): Use new operand types.
1151 (eliminate_redundant_computations): Use new operand types.
1152 * tree-ssa-dse.c (fix_phi_uses): Use new operand_types.
1153 (fix_stmt_v_may_defs): Use new operand_types.
1154 * tree-ssa-live.c (create_ssa_var_map): Use new operand_types.
1155 (build_tree_conflict_graph): Use new operand_types.
1156 * tree-ssa-loop.c (duplicate_blocks): Use PHI_ARG_DEF_FROM_EDGE.
1157 * tree-ssa-operands.c (struct freelist_d): Remove.
1158 (check_optype_freelist, add_optype_freelist): Remove.
1159 (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
1160 allocate_vuse_optype, allocate_v_must_def_optype): Call ggc_alloc.
1161 (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
1162 Call ggc_free instead of add_optype_freelist.
1163 (init_ssa_operands, fini_ssa_operands): Remove free list code.
1164 (finalize_ssa_defs, finalize_ssa_uses): Set new use/def operands.
1165 * tree-ssa-operands.h (struct def_optype_d): Change underlying type.
1166 (struct use_optype_d): Change underlying type.
1167 (def_operand_p, use_operand_p): New types for pointers to operands.
1168 (USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
1169 V_MUST_DEF_OP): Use new pointer type instead of dereferencing directly.
1170 (USE_FROM_PTR, DEF_FROM_PTR): New macros to "dereference" operand
1171 pointer types.
1172 (SET_USE, SET_DEF): New macros to set operands from their pointer.
1173 (SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
1174 SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
1175 (PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT): Macros to manage the
1176 PHI result as an operand.
1177 (PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
1178 PHI_ARG_DEF_PTR_FROM_EDGE): Macros to manage the PHI arguments.
1179 * tree-ssa-pre.c (eliminate): Call propagate_tree_value.
1180 * tree-tailcall.c (independent_of_stmt_p, propagate_through_phis): Use
1181 PHI_ARG_DEF_FROM_EDGE.
1182 * tree.h (PHI_RESULT): Renamed to PHI_RESULT_TREE.
1183 (PHI_ARG_DEF): Renamed to PHI_ARG_DEF_TREE.
1184
1185 2004-06-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1186
1187 PR tree-optimization/15991
1188 * tree-cfg.c (tree_block_label): Export.
1189 * tree-flow-inline.h (bsi_after_labels): New function.
1190 * tree-flow.h (bsi_after_labels, tree_block_label): Declare.
1191 * tree-ssa.c (propagate_into_addr): New function.
1192 (replace_immediate_uses): Handle propagation of pointer constants.
1193 (raise_value): Do not restrict propagation of pointer constants.
1194 * tree-ssanames.c (duplicate_ssa_name): New function.
1195 * tree.h (duplicate_ssa_name): Declare.
1196
1197 2004-06-17 David Ayers <d.ayers@inode.at>
1198
1199 * c-parse.in: Unify Objective-C token names.
1200
1201 2004-06-17 Zack Weinberg <zack@codesourcery.com>
1202
1203 Bug 14610
1204 * Makefile.in (min-insn-modes.o): Correct dependencies.
1205 * real.c (encode_ieee_extended, decode_ieee_extended): Always
1206 produce/consume 12-byte little-endian Intel format.
1207 (encode_ieee_extended_128, decode_ieee_extended_128): Delete.
1208 (encode_ieee_extended_motorola, decode_ieee_extended_motorola)
1209 (encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
1210 (encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
1211 New functions which convert between 12-byte little-endian Intel
1212 format and the desired format.
1213 (ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
1214 (ieee_extended_intel_96_format, ieee_extended_intel_128_format):
1215 Update.
1216
1217 2004-06-17 Zack Weinberg <zack@codesourcery.com>
1218
1219 * expmed.c (expand_mult_const): In sanity check, compare only
1220 the bits of val and val_so_far that are significant in the
1221 result mode.
1222
1223 2004-06-17 Daniel Berlin <dberlin@dberlin.org>
1224
1225 * tree-ssa-pre.c: Update comments.
1226 (val_expr_pair_eq): Factor code from here.
1227 (expr_pred_trans_eq): and here.
1228 (expressions_equal_p): To here.
1229 (print_value_set): Print value for expression.
1230 (phi_trans_lookup): Rename some variables.
1231 (lookup): Ditto.
1232 (value_exists_in_set_bitmap): Ditto.
1233 (value_remove_from_set_bitmap): Ditto.
1234 (value_insert_into_set_bitmap): Ditto.
1235
1236 2004-06-17 Ulrich Weigand <uweigand@de.ibm.com>
1237
1238 * config/s390/s390-modes.def (CCL3mode): New machine mode.
1239 * config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
1240 (s390_alc_comparison, s390_slb_comparison): Likewise.
1241 (s390_branch_condition_mask): Likewise.
1242 * config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
1243 ("*subsi3_cc2", "*subsi3_cconly2"): New.
1244
1245 * config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
1246 ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
1247 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
1248 Handle SIGN_EXTEND and ZERO_EXTEND.
1249
1250 * config/s390/s390-protos.h (s390_expand_addcc): New prototype.
1251 * config/s390/s390.c (s390_expand_addcc): New function.
1252 * config/s390/s390.md ("adddicc", "addsicc"): New expanders.
1253 ("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
1254 ("sltu", "sgtu", "sleu", "sgeu"): New expanders.
1255
1256 2004-06-17 Ben Elliston <bje@au.ibm.com>
1257
1258 * tree-alias-common.c: Add whitespace.
1259 * tree-inline.c: Correct comment about this file's purpose.
1260 * tree-optimize.c: Likewise.
1261 * tree-tailcall.c: Likewise.
1262
1263 * tree-alias-ander.h: Add standard top-of-file comment.
1264 * tree-alias-common.h: Likewise.
1265 * tree-alias-type.h: Likewise.
1266
1267 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
1268
1269 * tree-ssa-pre.c (compute_avail): Value number uses as well.
1270 Strip useless type conversions.
1271 Casts have to be treated slightly different than normal unaries.
1272
1273 2004-06-16 Richard Henderson <rth@redhat.com>
1274
1275 * c-common.def (COMPOUND_STMT): Remove.
1276 * c-common.c (finish_fname_decls): Don't look through it.
1277 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
1278 * c-common.h (COMPOUND_BODY): Remove.
1279 (c_common_stmt_codes): Remove COMPOUND_STMT.
1280 * c-dump.c (c_dump_tree): Likewise.
1281 * c-gimplify.c (c_gimplify_stmt): Likewise.
1282 * c-pretty-print.c (pp_c_statement): Likewise.
1283 * tree.h (DECL_SAVED_TREE): Update commentary.
1284 * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
1285 (CASE_LABEL_EXPR): Rename from CASE_LABEL.
1286 (GOTO_EXPR): Rename from GOTO_STMT.
1287 (GOTO_FAKE_P): Remove.
1288 (COMPOUND_STMT): Remove.
1289 (HANDLER): Update wrt COMPOUND_STMT.
1290 (STMT_EXPR): Likewise.
1291 (LABEL_EXPR): Rename from LABEL_STMT.
1292 (SCOPE_STMT): Remove.
1293 * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
1294 through COMPOUND_STMT.
1295
1296 2004-06-16 Richard Henderson <rth@redhat.com>
1297
1298 * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
1299 c_finish_while_stmt_cond): Remove decls.
1300 * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
1301 * c-typeck.c (c_begin_if_stmt): Return void.
1302 (c_begin_else): Tidy. Save stmt_count.
1303 * c-tree.h (c_begin_if_stmt): Update decl.
1304
1305 * objc/objc-act.c (objc_build_try_enter_fragment,
1306 objc_build_extract_fragment, objc_build_try_epilogue,
1307 objc_build_catch_stmt, objc_build_catch_epilogue,
1308 objc_build_finally_prologue, objc_build_finally_epilogue): Update
1309 for if builder function changes.
1310
1311 2004-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1312
1313 * config/s390/s390.c (struct machine_function): New member
1314 last_restore_gpr.
1315 (s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
1316 Do not modify machine->save_return_addr_p or regs_ever_live.
1317 Fill in machine->last_restore_gpr.
1318 (s390_optimize_prolog): Use s390_frame_info to compute registers
1319 to save/restore, remove duplicated code.
1320 (s390_arg_frame_offset): Use s390_frame_info to compute frame
1321 size, remove duplicated code.
1322 (s390_emit_prologue): Adapt s390_frame_info call. Update
1323 machine->save_return_addr_p and regs_ever_live.
1324 (s390_emit_epilogue): Use machine->last_restore_gpr instead of
1325 machine->last_save_gpr.
1326
1327 2004-06-16 Richard Henderson <rth@redhat.com>
1328
1329 * c-parse.in (if_stmt_locus): Remove.
1330 (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
1331 (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
1332 * c-typeck.c (if_elt): Sort by expected size. Rename locus to
1333 empty_locus. Add stmt_count, saw_else.
1334 (c_begin_if_stmt): Push if_stack here.
1335 (c_finish_if_cond): Rename from c_expand_end_cond. Record stmt_count.
1336 (c_finish_then, c_finish_else): Record empty_locus.
1337 (c_begin_else): Rename from c_expand_start_else. Record stmt_count.
1338 (c_finish_if_stmt): Rename from c_expand_end_cond. Warn for empty
1339 if or else body.
1340 * c-tree.h: Update prototypes.
1341
1342 2004-06-16 Steven Bosscher <stevenb@suse.de>
1343
1344 * tree.h (PHI_CHAIN): New.
1345 * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
1346 tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
1347 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
1348 tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1349 tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
1350 when traversing a list of PHI_NODEs.
1351
1352 2004-06-16 Bernardo Innocenti <bernie@develer.com>
1353
1354 PR target/13292
1355 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
1356 on -msoft-float.
1357 (TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
1358 68040 and soft-float.
1359 * config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
1360 in the TARGET_68040_ONLY case.
1361
1362 2004-06-16 Peter Barada <peter@the-baradas.com>
1363
1364 * config/m68k/m68k.md (movsi_cfv4): New pattern to allow mov3q.
1365 (movsi_cf): Make named, don't match TARGET_CFV4.
1366 (pushexthisi_const): Use mov3q if possible.
1367 (extendhisi2, cvf4_extendhisi2): Split extendhisi2 pattern
1368 to special case mvz.w for ColdFire V4.
1369 (extendqisi2, cvf4_extendqisi2): Split extendhisi2 pattern
1370 to special case mvz.b for ColdFire V4.
1371 (udivmodhi4, divmodhi4): Use mvz to zero extend arg for
1372 divide.
1373 (iorsi3, xorsi3, andsi3): Use bitfield instructions if possible.
1374 * config/m68k/m68k.c(valid_mov3q_const): New function.
1375 (const_method): SWAP is valid for ColdFire.
1376 (MULL_COST, MULW_COST): Fix costs for ColdFire V3/V4.
1377 * config/m68k/m68k-protos.h (valid_mov3q_const): Prototype here.
1378
1379 2004-06-16 Richard Henderson <rth@redhat.com>
1380
1381 * c-common.def (CASE_LABEL): Remove.
1382 * c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
1383 (match_case_to_enum_1): Likewise.
1384 * c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
1385 * c-dump.c (c_dump_tree): Likewise.
1386 * c-gimplify.c (c_gimplify_stmt): Likewise.
1387 * c-pretty-print.c (pp_c_statement): Likewise.
1388 * c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
1389 * tree.h (CASE_LOW): Update commentary.
1390
1391 2004-06-16 Richard Henderson <rth@redhat.com>
1392
1393 * c-common.def (ASM_STMT): Remove.
1394 * c-common.h (c_common_stmt_codes): Remove ASM_STMT.
1395 * c-dump.c (c_dump_tree): Likewise.
1396 * c-gimplify.c (c_gimplify_stmt): Likewise.
1397 * c-pretty-print.c (pp_c_statement): Likewise.
1398 * c-typeck.c (build_asm_expr): Use ASM_EXPR.
1399 * tree.h: Fix commentary.
1400
1401 2004-06-16 Richard Henderson <rth@redhat.com>
1402
1403 * c-common.def (GOTO_STMT, LABEL_STMT): Remove.
1404 * c-common.c (c_add_case_label): Use LABEL_EXPR.
1405 * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove.
1406 (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT.
1407 * c-dump.c (c_dump_tree): Likewise.
1408 * c-gimplify.c (c_gimplify_stmt): Likewise.
1409 * c-pretty-print.c (pp_c_statement): Likewise.
1410 * c-parse.in (stmt): Use GOTO_EXPR.
1411 (label): Use LABEL_EXPR.
1412 * c-semantics.c (build_stmt): Set TREE_TYPE to void.
1413 * tree-inline.c (copy_body_r): Don't build empty BLOCKs.
1414
1415 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1416
1417 * cfgcleanup.c (try_simplify_condjump): Update test to make
1418 sure we have a conditional branch around am unconditional branch.
1419
1420 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
1421
1422 * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
1423
1424 2004-06-16 Dale Johannesen <dalej@apple.com>
1425
1426 * loop.c (loop_givs_reduce): Avoid miscompilation of
1427 loops entered at bottom.
1428
1429 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1430
1431 * cfglayout.c (fixup_reorder_chain): Handle case where the
1432 destination of E_FALL is EXIT_BLOCK_PTR.
1433
1434 2004-06-16 Vladimir Makarov <vmakarov@redhat.com>
1435
1436 PR target/15653
1437 * config/ia64/ia64.c (ia64_dfa_new_cycle): Do not insert nops
1438 after shifts before asm.
1439
1440 2004-06-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1441
1442 PR tree-optimization/15993
1443 * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its
1444 destination is unchanged.
1445
1446 2004-06-16 Andreas Jaeger <aj@suse.de>
1447
1448 * doc/install.texi (Configuration): Update description for
1449 --enable-version-specific-runtime-libs.
1450
1451 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1452
1453 * doc/install.texi: boehm-gc now uses automake 1.8.5.
1454
1455 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1456
1457 * toplev.h (rest_of_compilation): Adjust prototype.
1458
1459 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1460
1461 * coverage.c: Remove argument to rest_of_compilation.
1462 * expr.c (execute_expand, set_save_expr_context, pass_expand): New.
1463 * passes.c (rest_of_compilation): Remove argument.
1464 (pass_rest_of_compilation): New.
1465 (rest_of_handle_final, rest_of_handle_delay_slots,
1466 rest_of_handle_stack_regs, rest_of_handle_variable_tracking
1467 rest_of_handle_machine_reorg, rest_of_handle_regrename
1468 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_gcse2
1469 rest_of_handle_regmove, rest_of_handle_tracer
1470 rest_of_handle_if_conversion, rest_of_handle_if_after_combine
1471 rest_of_handle_web, rest_of_handle_branch_prob
1472 rest_of_handle_value_profile_transformations, rest_of_handle_cfg
1473 rest_of_handle_addressof, rest_of_handle_jump_bypass
1474 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2):
1475 Check that the two arguments are actually superfluous.
1476 * tree-optimize.c (register_dump_files): Add properties argument.
1477 Track validity of passes. Only initialize dump files for
1478 tree-based passes. Store the full set of provided passes in
1479 the pass.
1480 (init_tree_optimization_passes): Register pass_expand and
1481 pass_rest_of_compilation.
1482 (execute_one_pass): Do not track the presence of required properties
1483 here. Set in_gimple_form. Do not update current_properties.
1484 (current_properties): Remove.
1485 (set_save_expr_context): Remove.
1486 (tree_rest_of_compilation): Do not set in_gimple_form. Do not
1487 expand to RTL here, and do not call rest_of_compilation. Push
1488 GGC context even before gimplification.
1489 * tree-pass.h (PROP_rtl, PROP_trees): New flags.
1490 (pass_expand, pass_rest_of_compilation): Declare.
1491
1492 2004-06-15 Jeff Law <law@redhat.com>
1493
1494 * fold-const.c (swap_tree_comparison): No longer static.
1495 (tree_swap_operands_p): Similarly. Return true if both operands
1496 are SSA_NAMEs and the first operand has a higher version number than
1497 the second operand.
1498 * tree.h (swap_tree_comparison): Prototype.
1499 (tree_swap_operands_p): Prototype.
1500 * tree-ssa-operands.c (get_expr_operands): For commutative
1501 operators and relational comparisons, canonicalize the
1502 order of the operands.
1503
1504 2004-06-15 Richard Henderson <rth@redhat.com>
1505
1506 * c-common.c (lang_gimplify_stmt): Remove next_p argument.
1507 (if_elt, if_stack, if_stack_space, c_expand_start_cond, c_finish_then,
1508 c_expand_end_cond, c_expand_start_else, c_finish_else, c_begin_if_stmt,
1509 c_begin_while_stmt, c_finish_while_stmt_cond): Move to c-typeck.c.
1510 (finish_fname_decls, fname_decl): Use statement_lists.
1511 (c_expand_expr_stmt): Don't set last_expr_type.
1512 (c_type_hash): Fix indentation.
1513 (c_safe_from_p): Don't follow TREE_CHAIN.
1514 (c_tree_chain_matters_p): Remove.
1515 * c-common.def (SCOPE_STMT): Remove.
1516 (CLEANUP_STMT): Redefine to contain its own body.
1517 * c-common.h (struct stmt_tree_s): Remove x_last_stmt,
1518 x_last_expr_type, x_last_expr_filename, x_scope_stmt_stack.
1519 Add x_cur_stmt_list.
1520 (last_tree, last_expr_type, last_expr_filename, RECHAIN_STMTS): Remove.
1521 (cur_stmt_list): New.
1522 (STATEMENT_LIST_STMT_EXPR): New.
1523 (SCOPE_BEGIN_P, SCOPE_END_P, SCOPE_STMT_BLOCK, SCOPE_NULLIFIED_P,
1524 SCOPE_NO_CLEANUPS_P, SCOPE_PARTIAL_P, NEW_FOR_SCOPE_P): Remove.
1525 (CLEANUP_BODY): New.
1526 (CLEANUP_DECL): Move to operand 2.
1527 (c_common_stmt_codes): Remove SCOPE_STMT.
1528 (COMPOUND_STMT_NO_SCOPE, COMPOUND_STMT_BODY_BLOCK): Remove.
1529 * c-decl.c (c_scope_stmt_stack, current_scope_stmt_stack): Remove.
1530 (c_push_function_context, c_pop_function_context): Don't save it.
1531 (finish_decl): Set TREE_USED on the decl for a cleanup.
1532 Use push_cleanup.
1533 (store_parm_decls): Use statement lists.
1534 (finish_function): Remove compstmt rule workaround. Use statement
1535 lists. Call finish_fname_decls after finalizing the body.
1536 (c_begin_compound_stmt): Move to c-typeck.c.
1537 * c-dump.c (c_dump_tree): Remove SCOPE_STMT.
1538 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts): New.
1539 (c_genericize): Invoke them.
1540 (c_gimplify_stmt): Don't look through TREE_CHAIN. Kill SCOPE_STMT.
1541 (c_build_bind_expr): Export.
1542 (gimplify_block, gimplify_cleanup): Remove.
1543 (gimplify_condition): Use gimplify_stmt.
1544 (gimplify_for_stmt): Remove FOR_INIT_STMT chaining hack.
1545 (gimplify_if_stmt): Remove recursion hack.
1546 (c_gimplify_expr): Remove STMT_EXPR handling.
1547 (stmt_expr_last_stmt, gimplify_stmt_expr): Remove.
1548 (is_last_stmt_of_scope): Remove.
1549 * c-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
1550 * c-mudflap.c (mflang_flush_calls): Use c_begin_compound_stmt,
1551 c_end_compound_stmt.
1552 * c-objc-common.c (build_cdtor): Likewise.
1553 * c-parse.in (primary): Use c_finish_stmt_expr.
1554 (push_scope, pop_scope): Remove.
1555 (c99_block_start, compstmt_start): Use c_begin_compound_stmt.
1556 (c99_block_end, compstmt): Use c_end_compound_stmt.
1557 (c99_block_lineno_labeled_stmt): Likewise.
1558 (compstmt_primary_start): Use c_begin_stmt_expr.
1559 (simple_if, select_or_iter_stmt): Update calls to stmt builders.
1560 (do_stmt_start): Fill in body directly.
1561 (lineno_stmt): Avoid setting lineno on constants.
1562 * c-pretty-print.c (pp_c_statement): Handle STATEMENT_LIST.
1563 Remove SCOPE_STMT.
1564 * c-semantics.c (begin_stmt_tree): Remove.
1565 (push_stmt_list, re_push_stmt_list, pop_stmt_list): New.
1566 (add_stmt): Use statement lists.
1567 (add_scope_stmt, finish_stmt_tree): Remove.
1568 (push_cleanup): New.
1569 * c-tree.h: Move some decls from c-common.h.
1570 * c-typeck.c (c_tree_expr_nonnegative_p): Simplify for statement lists.
1571 (do_case, c_finish_case): Likewise.
1572 (c_finish_then): Take body for then as argument.
1573 (c_finish_else): Similarly.
1574 (c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
1575 c_finish_for_stmt_incr, c_finish_for_stmt): New.
1576 (c_begin_stmt_expr, c_finish_stmt_expr): New.
1577 (c_begin_compound_stmt): Do scope management.
1578 (c_end_compound_stmt): New.
1579 * fold-const.c (tree_expr_nonnegative_p): Fix BIND_EXPR.
1580 * gimplify.c (voidify_wrapper_expr): Accept temporary argument.
1581 Look through exception handling constructs.
1582 (gimplify_bind_expr): Accept temporary argument.
1583 (gimplify_target_expr): Special case BIND_EXPR bodies.
1584 (gimplify_expr): Handle fallback == fb_none like a statement.
1585 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Kill.
1586 * langhooks.c (lhd_tree_inlining_tree_chain_matters_p): Remove.
1587 * langhooks.h (tree_chain_matters_p): Remove.
1588 * stub-objc.c (objc_clear_super_receiver): New.
1589 * tree-gimple.h (voidify_wrapper_expr): Update decl.
1590 (append_to_statement_list, append_to_statement_list_force): Move
1591 to tree-iterator.h.
1592 * tree-inline.c (expand_call_inline): Update call.
1593 (clone_body): Use statement lists.
1594 (walk_tree): Don't check tree_chain_matters_p.
1595 (copy_tree_r): Likewise.
1596 * tree-iterator.c (alloc_stmt_list): Clear lang bits.
1597 (tsi_link_before, tsi_link_after): Set TREE_SIDE_EFFECTS properly.
1598 * tree-iterator.h (append_to_statement_list,
1599 append_to_statement_list_force): Moved from tree-gimple.h.
1600 * tree-pretty-print.c (dump_generic_node): Clean up TARGET_EXPR dump.
1601 * objc/objc-act.c (build_module_descriptor): Use c_begin_compound_stmt.
1602 (objc_enter_block): Likewise.
1603 (objc_exit_block): Use c_end_compound_stmt.
1604 (objc_build_try_enter_fragment): Add #error and comment for
1605 rewriting for OBJCPLUS.
1606 (objc_build_extract_fragment, objc_build_try_epilogue,
1607 objc_build_catch_stmt, objc_build_finally_prologue,
1608 objc_build_finally_epilogue): Update for C statement builders.
1609 * objc/objc-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P):
1610 Remove.
1611
1612 2004-06-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1613
1614 * df.c (df_reg_clobber_gen): Removed.
1615 (df_bb_rd_local_compute, df_insn_refs_record, df_rd_local_compute):
1616 Make more effective for hard regs.
1617 * ra-build.c (livethrough_conflicts_bb): Check contains_call.
1618
1619 2004-06-15 Alexandre Oliva <aoliva@redhat.com>
1620
1621 * c-pragma.h (c_lex_string_translate): Change type to int.
1622 * c-parse.in: Change all assignments of c_lex_string_translate
1623 to true and false to 1 and 0.
1624 * c-lex.c (c_lex_string_translate): Likewise.
1625 (lex_string): Convert string without translation in the -1
1626 case.
1627
1628 2004-06-15 Mark G. Adams <mark.g.adams@sympatico.ca>
1629
1630 * convert.h: Add include guards
1631
1632 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1633
1634 * tree-flow-inline.h: Document all functions.
1635
1636 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1637
1638 * tree-flow-inline.h (stmt_ann): Remove use of is_essa_node.
1639 * tree-dfa.c (create_stmt_ann): Ditto.
1640 * tree-pretty-print.c (dump_generic_node): Remove E* node handling.
1641 * tree-inline.c (estimate_num_insns_1): Ditto.
1642 * tree.c (tree_size): Ditto.
1643 (make_node_stat): Ditto.
1644 (tree_node_structure): Ditto.
1645 (ephi_node_elt_check_failed): Remove.
1646 (is_essa_node): Ditto.
1647 * tree.def (EPHI_NODE): Ditto.
1648 (EEXIT_NODE): Ditto.
1649 (EUSE_NODE): Ditto.
1650 (EKILL_NODE): Ditto.
1651 * tree.h (EREF_NODE_CHECK): Remove.
1652 (EPHI_NODE_ELT_CHECK): Ditto.
1653 (struct tree_eref_common): Ditto.
1654 (struct tree_euse_node): Ditto.
1655 (struct ephi_arg_d): Ditto.
1656 (struct tree_ephi_node): Ditto.
1657 (ephi_node_elt_check_failed): Remove prototype.
1658 (is_essa_node): Ditto.
1659 (enum tree_node_structure_enum): Remove TS_E*_NODE.
1660 (union tree_node): Remove E*_NODE uses.
1661
1662 2004-06-15 Jerry Quinn <jlquinn@optonline.net>
1663
1664 * alias.c (record_set, record_base_value, canon_rtx, get_addr,
1665 nonlocal_mentioned_p_1, init_alias_analysis): Use REG_P.
1666 * bt-load.c (find_btr_reference, insn_sets_btr_p, note_btr_set):
1667 Likewise.
1668 * builtins.c (expand_builtin_setjmp, expand_builtin_apply,
1669 expand_builtin_mathfn, expand_builtin_strlen, expand_builtin_memcmp,
1670 expand_builtin_strcmp, expand_builtin_strncmp,
1671 expand_builtin_frame_address): Likewise.
1672 * caller-save.c (mark_set_regs, add_stored_regs, mark_referenced_regs,
1673 insert_one_insn): Likewise.
1674 * calls.c (prepare_call_address, precompute_register_parameters,
1675 precompute_arguments, expand_call, emit_library_call_value_1): Likewise.
1676 * cfganal.c (flow_active_insn_p): Likewise.
1677 * combine.c (set_nonzero_bits_and_sign_copies, can_combine_p,
1678 combinable_i3pat, try_combine, find_split_point, COMBINE_RTX_EQUAL_P,
1679 subst, combine_simplify_rtx, simplify_if_then_else, simplify_set,
1680 make_extraction, recog_for_combine, gen_lowpart_for_combine,
1681 simplify_comparison, record_dead_and_set_regs_1,
1682 record_dead_and_set_regs, record_promoted_value,
1683 check_promoted_subreg, get_last_value_validate, get_last_value,
1684 reg_dead_at_p_1, reg_bitfield_target_p, distribute_notes,
1685 unmentioned_reg_p_1): Likewise.
1686 * conflict.c (mark_reg): Likewise.
1687 * cse.c (HASH, COST, COST_IN, approx_reg_cost_1, notreg_cost,
1688 mention_regs, insert_regs, lookup, lookup_for_remove, insert,
1689 merge_equiv_classes, flush_hash_table, invalidate,
1690 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
1691 invalidate_for_call, use_related_value, canon_hash, exp_equiv_p,
1692 cse_rtx_varies_p, canon_reg, find_best_addr, fold_rtx, equiv_constant,
1693 record_jump_cond, cse_insn, addr_affects_sp_p,
1694 invalidate_from_clobbers, cse_process_notes, cse_around_loop,
1695 cse_set_around_loop, count_reg_usage, set_live_p, cse_change_cc_mode,
1696 cse_cc_succs, cse_condition_code_reg): Likewise.
1697 * cselib.c (cselib_reg_set_mode, rtx_equal_for_cselib_p,
1698 cselib_lookup, cselib_invalidate_regno, cselib_invalidate_rtx,
1699 cselib_record_set, cselib_record_sets): Likewise.
1700 * dbxout.c (dbxout_symbol_location, dbxout_parms, dbxout_reg_parms,
1701 dbxout_block): Likewise.
1702 * df.c (df_ref_record, df_def_record_1, df_uses_record): Likewise.
1703 * dojump.c (do_jump): Likewise.
1704 * dwarf2out.c (dwarf2out_frame_debug_expr, is_pseudo_reg,
1705 is_based_loc, rtl_for_decl_location): Likewise.
1706 * emit-rtl.c (set_reg_attrs_for_parm, set_decl_rtl,
1707 set_decl_incoming_rtl, mark_user_reg): Likewise.
1708 * explow.c (copy_all_regs, copy_all_regs, memory_address, force_reg,
1709 copy_to_suggested_reg, allocate_dynamic_stack_space,
1710 probe_stack_range, hard_function_value): Likewise.
1711 * expmed.c (store_bit_field, store_fixed_bit_field,
1712 store_split_bit_field, extract_bit_field, extract_fixed_bit_field,
1713 extract_split_bit_field, expand_divmod, emit_store_flag_force):
1714 Likewise.
1715 * expr.c (convert_move, convert_modes,
1716 block_move_libcall_safe_for_call_parm, emit_group_load, use_reg,
1717 use_group_regs, emit_move_insn, emit_move_insn_1,
1718 compress_float_constant, push_block, emit_single_push_insn,
1719 emit_push_insn, get_subtarget, expand_assignment, store_expr,
1720 store_constructor, store_field, force_operand, safe_from_p,
1721 expand_expr_real_1, expand_increment, do_store_flag, do_tablejump):
1722 Likewise.
1723 * final.c (profile_function, final_scan_insn, alter_subreg,
1724 get_mem_expr_from_op, output_asm_operand_names, output_operand,
1725 only_leaf_regs_used, leaf_renumber_regs_insn): Likewise.
1726 * flow.c (verify_wide_reg_1, mark_regs_live_at_end,
1727 find_regno_partial, propagate_one_insn, init_propagate_block_info,
1728 insn_dead_p, libcall_dead_p, mark_set_1, not_reg_cond,
1729 attempt_auto_inc, find_auto_inc, mark_used_regs,
1730 count_or_remove_death_notes_bb): Likewise.
1731 * function.c (find_temp_slot_from_address, update_temp_slot_address,
1732 preserve_temp_slots, put_var_into_stack, fixup_var_refs_insn,
1733 fixup_var_refs_1, fixup_stack_1, optimize_bit_field, flush_addressof,
1734 put_addressof_into_stack, purge_addressof_1, insns_for_mem_walk,
1735 purge_single_hard_subreg_set, instantiate_decl,
1736 instantiate_virtual_regs_1, aggregate_value_p, assign_parms,
1737 promoted_input_arg, setjmp_vars_warning, setjmp_args_warning,
1738 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
1739 expand_function_start, diddle_return_value, clobber_return_register,
1740 expand_function_end, keep_stack_depressed, handle_epilogue_set,
1741 update_epilogue_consts): Likewise.
1742 * genemit.c (gen_exp, gen_insn): Likewise.
1743 * genrecog.c (make_insn_sequence): Likewise.
1744 * global.c (global_conflicts, expand_preferences, mark_reg_store,
1745 mark_reg_conflicts, set_preference, reg_becomes_live,
1746 build_insn_chain, mark_reg_change): Likewise.
1747 * haifa_sched.c (CONST_BASED_ADDRESS_P, find_set_reg_weight):
1748 Likewise.
1749 * ifcvt.c (noce_try_abs, noce_get_condition, noce_process_if_block):
1750 Likewise.
1751 * integrate.c (copy_rtx_and_substitute, try_constants,
1752 subst_constants, mark_stores, allocate_initial_values): Likewise.
1753 * jump.c (reversed_comparison_code_parts, delete_prior_computation,
1754 delete_computation, rtx_renumbered_equal_p, true_regnum,
1755 reg_or_subregno): Likewise.
1756 * lcm.c (reg_dies, reg_becomes_live): Likewise.
1757 * local-alloc.c (validate_equiv_mem_from_store, validate_equiv_mem,
1758 update_equiv_regs, no_equiv, block_alloc, combine_regs, reg_is_set,
1759 wipe_dead_reg, no_conflict_p): Likewise.
1760 * loop-iv.c (simple_reg_p, simple_set_p, kill_sets,
1761 iv_get_reaching_def, iv_analyze_biv, altered_reg_used, mark_altered,
1762 simple_rhs_p, simplify_using_assignment, implies_p): Likewise.
1763 * loop.c (scan_loop, combine_movables, rtx_equal_for_loop_p,
1764 move_movables, note_set_pseudo_multiple_uses, consec_sets_invariant_p,
1765 find_single_use_in_loop, count_one_set, loop_bivs_init_find,
1766 loop_givs_rescan, check_insn_for_bivs, check_insn_for_givs,
1767 valid_initial_value_p, simplify_giv_expr, consec_sets_giv,
1768 loop_regs_update, check_dbra_loop, maybe_eliminate_biv,
1769 maybe_eliminate_biv_1, record_initial, update_reg_last_use,
1770 canonicalize_condition, loop_regs_scan, load_mems, try_copy_prop,
1771 try_swap_copy_prop): Likewise.
1772 * optabs.c (expand_binop, expand_vector_binop, expand_vector_unop,
1773 expand_abs, emit_no_conflict_block, emit_libcall_block, expand_float):
1774 Likewise.
1775 * postreload.c (reload_cse_simplify, reload_cse_simplify_set,
1776 reload_cse_simplify_operands, reload_combine,
1777 reload_combine_note_store, reload_combine_note_use,
1778 reload_cse_move2add, move2add_note_store): Likewise.
1779 * print-rtl.c (print_rtx): Likewise.
1780 * ra-build.c (copy_insn_p, remember_move, init_one_web_common,
1781 contains_pseudo, handle_asm_insn): Likewise.
1782 * ra-debug.c (ra_print_rtx_object, dump_constraints,
1783 dump_static_insn_cost): Likewise.
1784 * ra-rewrite.c (slots_overlap_p, emit_colors,
1785 remove_suspicious_death_notes): Likewise.
1786 * recog.c (validate_replace_rtx_1, find_single_use_1, find_single_use,
1787 register_operand, scratch_operand, nonmemory_operand,
1788 constrain_operands): Likewise.
1789 * reg-stack (check_asm_stack_operands, remove_regno_note,
1790 emit_swap_insn, swap_rtx_condition, subst_stack_regs_pat,
1791 subst_asm_stack_regs): Likewise.
1792 * regclass.c (scan_one_insn, record_reg_classes, copy_cost,
1793 record_address_regs, reg_scan_mark_refs): Likewise.
1794 * regmove.c (discover_flags_reg, replacement_quality,
1795 copy_src_to_dest, reg_is_remote_constant_p, regmove_optimize,
1796 fixup_match_1): Likewise.
1797 * regrename.c (note_sets, clear_dead_regs, build_def_use, kill_value,
1798 kill_set_value, copyprop_hardreg_forward_1): Likewise.
1799 * reload.c (MATCHES, push_secondary_reload, find_reusable_reload,
1800 reload_inner_reg_of_subreg, can_reload_into, push_reload,
1801 combine_reloads, find_dummy_reload, hard_reg_set_here_p,
1802 operands_match_p, decompose, find_reloads, find_reloads_toplev,
1803 find_reloads_address, subst_indexed_address, find_reloads_address_1,
1804 find_reloads_subreg_address, find_replacement,
1805 refers_to_regno_for_reload_p, reg_overlap_mentioned_for_reload_p,
1806 refers_to_mem_for_reload_p, find_equiv_reg, regno_clobbered_p): Likewise.
1807 * reload1.c (replace_pseudos_in, reload, calculate_needs_all_insns,
1808 find_reg, delete_dead_insn, alter_reg, eliminate_regs,
1809 elimination_effects, eliminate_regs_in_insn, scan_paradoxical_subregs,
1810 forget_old_reloads_1, reload_reg_free_for_value_p, choose_reload_regs,
1811 emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
1812 do_output_reload, emit_reload_insns, gen_reload,
1813 delete_address_reloads_1, inc_for_reload): Likewise.
1814 * reorg.c (update_reg_dead_notes, fix_reg_dead_note,
1815 update_reg_unused_notes, fill_slots_from_thread): Likewise.
1816 * resource.c (update_live_status, mark_referenced_resources,
1817 mark_set_resources, mark_target_live_regs): Likewise.
1818 * rtlanal.c (nonzero_address_p, get_jump_table_offset,
1819 global_reg_mentioned_p_1, reg_mentioned_p, reg_referenced_p,
1820 reg_set_p, set_noop_p, find_last_value, refers_to_regno_p,
1821 note_stores, dead_or_set_p, dead_or_set_regno_p, find_regno_note,
1822 find_reg_fusage, find_regno_fusage, replace_regs, regno_use_in,
1823 parms_set, find_first_parameter_load, keep_with_call_p,
1824 hoist_test_store, hoist_update_store, address_cost, nonzero_bits1,
1825 num_sign_bit_copies1): Likewise.
1826 * rtlhooks.c (gen_lowpart_general): Likewise.
1827 * sched-deps.c (deps_may_trap_p, sched_analyze_1, sched_analyze_insn,
1828 sched_analyze): Likewise.
1829 * sched-rgn.c (check_live_1, update_live_1, sets_likely_spilled_1):
1830 Likewise.
1831 * sdbout.c (sdbout_symbol, sdbout_parms, sdbout_reg_parms): Likewise.
1832 * simplify-rtx.c (simplify_replace_rtx, simplify_unary_operation,
1833 simplify_binary_operation, simplify_const_relational_operation,
1834 simplify_subreg): Likewise.
1835 * stmt.c (decl_conflicts_with_clobbers_p, expand_asm_operands,
1836 expand_end_stmt_expr, expand_return, expand_decl,
1837 expand_anon_union_decl): Likewise.
1838 * unroll.c (precondition_loop_p, calculate_giv_inc, copy_loop_body,
1839 find_splittable_regs, find_splittable_givs, find_common_reg_term,
1840 loop_iterations): Likewise.
1841 * var-tracking.c (variable_union, variable_part_different_p,
1842 variable_different_p, count_uses, add_uses, add_stores,
1843 compute_bb_dataflow, set_variable_part, delete_variable_part,
1844 emit_notes_in_bb, vt_get_decl_and_offset, vt_add_function_parameters):
1845 Likewise.
1846 * varasm.c (assemble_variable): Likewise.
1847
1848 2004-06-15 Chris Demetriou <cgd@broadcom.com>
1849
1850 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
1851 definition.
1852 * config/mips/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
1853 #undef and #if 0'd definition.
1854
1855 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
1856
1857 * combine.c (distribute_notes): Comment typo fix.
1858
1859 2004-06-15 Roger Sayle <roger@eyesopen.com>
1860
1861 * expmed.c (synth_mult): Mask bits of the multiplier to the
1862 machine mode of the multiplication. Don't consider shifts
1863 by more than (or equal to) the width of the operation's mode.
1864
1865 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1866
1867 * doc/install.texi: Yet another update for autoconf
1868 and automake versions.
1869
1870 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1871
1872 * function.h (struct function): Remove cannot_inline field.
1873 (current_function_cannot_inline): Remove.
1874 * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
1875 Simplify conditionals to ignore warn_return_type.
1876 * tree-optimize.c (tree_rest_of_compilation): Do not reset
1877 DECL_DEFER_OUTPUT.
1878 * objc/objc-act.c (build_module_descriptor, finish_method_def):
1879 Do not set current_function_cannot_inline.
1880
1881 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
1882
1883 * cfglayout.c (fixup_reorder_chain): Handle case where the
1884 destination of E_TAKEN is EXIT_BLOCK_PTR.
1885
1886 2004-06-15 Diego Novillo <dnovillo@redhat.com>
1887
1888 * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
1889
1890 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1891
1892 * fold-const.c (operand_equal_p): Update comment.
1893
1894 2004-06-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1895
1896 * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
1897 (INCOMING_RETURN_ADDR_RTX): Define.
1898 * config/m32r/m32r-protos.h (m32r_return_addr): Added.
1899 * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
1900 __builtin_return_address(0).
1901 (m32r_return_addr): Added for __builtin_return_address(0).
1902 (m32r_reload_lr): Ditto.
1903
1904 * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
1905
1906 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1907
1908 * doc/install.texi (Prerequisites): Update libbanshee,
1909 fastjar, libcpp, libjava/libltdl entries to
1910 automake 1.8.5.
1911
1912 2004-06-15 Eric Botcazou <ebotcazou@act-europe.fr>
1913 Olivier Hainque <hainque@act-europe.fr>
1914
1915 * function.c (fixup_var_refs): Also adjust the start of sequence
1916 after fixing up the insns.
1917
1918 2004-06-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1919
1920 * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
1921
1922 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1923
1924 * doc/install.texi (Prerequisites): Update libstdc++ entry to
1925 automake 1.8.5.
1926
1927 2004-06-14 Eric Christopher <echristo@redhat.com>
1928
1929 * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
1930 to -mtpf-trace (-mno-tpf-trace).
1931 * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
1932 documentation.
1933
1934 2004-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1935
1936 * real.c: Fix bit count in head comment.
1937
1938 2004-06-14 Jeff Law <law@redhat.com>
1939
1940 * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
1941 PHIs where the destination or an argument is marked with
1942 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1943
1944 2004-06-14 Jakub Jelinek <jakub@redhat.com>
1945
1946 PR middle-end/15945
1947 * simplify-rtx.c (simplify_binary_operation): Don't optimize out
1948 Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
1949
1950 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1951
1952 * opts.sh (var_args): Fix regexp.
1953
1954 2004-06-14 Jakub Jelinek <jakub@redhat.com>
1955
1956 PR target/15178
1957 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1958
1959 2004-06-14 Paul Brook <paul@codesourcery.com>
1960
1961 * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
1962
1963 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1964
1965 * Makefile.in (FLAGS_H): New.
1966 (flags.h): Replace by FLAGS_H.
1967 * c.opt: Document Var, VarExists, Init and Report attributes.
1968 * common.opt: Fill the values of the attributes.
1969 * diagnostic.c (flag_fatal_errors): Do not define.
1970 * except.c (flag_non_call_exceptions): Do not define.
1971 * flags.h: Include options.h. Remove declarations conflicting with
1972 the automatically defined ones.
1973 * opts.c: Remove automatically defined variables.
1974 (handle_option): Perform default initialization.
1975 (common_handle_option): Do not handle options covered by the
1976 default initialization.
1977 * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
1978 fields.
1979 (CL_REPORT): New.
1980 * opts.sh: Generate variable declarations, handle CL_REPORT.
1981 * toplev.c: Remove automatically defined variables.
1982 (f_options): Removed.
1983 (print_switch_values): Use cl_options instead of f_options.
1984 * toplev.h (version_flag): Declaration removed.
1985
1986 2004-06-14 Ian Lance Taylor <ian@wasabisystems.com>
1987
1988 * config/sparc/sparc.h: Correct comment about availability of
1989 little endian option.
1990
1991 * config.gcc: Remove sparc64-*-aout*.
1992 * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
1993 * config/sparc/sp64-aout.h: Remove.
1994 * config/sparc/aout.h: Remove.
1995
1996 2004-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1997
1998 * config/s390/s390.c: Include "tree-gimple.h".
1999 (s390_gimplify_va_arg): New function.
2000 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2001 (s390_va_arg): Remove.
2002 * config/s390/s390-protos.h (s390_va_arg): Remove.
2003 * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
2004
2005 2004-06-14 J"orn Rennecke <joern.rennecke@superh.com>
2006
2007 * basic-block.h (could_fall_through): Declare.
2008 * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
2009 Fail if the source already has a fallthrough edge to the exit
2010 block pointer.
2011 (could_fall_through): New function.
2012 * cfgbuild.c (make_edges): Check if we already have a fallthrough
2013 edge to the exit block pointer.
2014 * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
2015 not called before reload has completed.
2016 Handle special case of first block having a fall-through exit edge.
2017 (cfg_layout_finalize): Don't call it before reload or if we have
2018 rtl epilogues.
2019 (fixup_reorder_chain): A fall through to the exit block does not
2020 require the block to come last. Add sanity checks.
2021 * cfgrtl.c (rtl_split_edge): Add special handling of fall through
2022 edges to the exit block.
2023 * function.c (cfglayout.h): #include.
2024 (thread_prologue_and_epilogue_insns): If we have neither return nor
2025 epilogue, but a fall through to the exit block from mid-function,
2026 force a non-fall-through exit.
2027 * Makefile.in (function.o): Depend on CFGLAYOUT_H.
2028
2029 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2030
2031 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
2032 for power5 and rs64a. Correct condition for default. Correct power3,
2033 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
2034
2035 2004-06-13 Steven Bosscher <stevenb@suse.de>
2036
2037 * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
2038 Revert previous change, don't use CALL_P.
2039
2040 2004-06-13 Jason Merrill <jason@redhat.com>
2041
2042 * tree.h: Move std_gimplify_va_arg_expr protoype here.
2043 * tree-gimple.h: From here.
2044
2045 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
2046
2047 Fix PR tree-optimization/15979
2048 Fix PR tree-optimization/15981
2049 * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
2050 try to insert values undefined along some path.
2051
2052 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
2053
2054 * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
2055 are available everywhere too.
2056
2057 2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
2058
2059 * fold-const.c (fold_checksum_tree <case 't'>): Only
2060 look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
2061 Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
2062 EXPR is an INTEGERAL_TYPE or a scalar float type.
2063
2064 2004-06-13 Diego Novillo <dnovillo@redhat.com>
2065
2066 * tree-sra.c (tree_sra): Update documentation.
2067
2068 2004-06-13 Joseph S. Myers <jsm@polyomino.org.uk>
2069
2070 * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
2071 function_types_compatible_p, type_lists_compatible_p): Remove
2072 flags parameter.
2073 * c-tree.h (comptypes): Likewise.
2074 (COMPARE_STRICT): Remove.
2075 * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
2076 callers changed.
2077
2078 2004-06-13 Eric Christopher <echristo@redhat.com>
2079
2080 * c-decl.c (diagnose_mismatched_decls): Improve error message.
2081 Remove unused code.
2082 * c-typeck.c (comptypes): Add location in standard we're checking.
2083
2084 2004-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
2085
2086 * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
2087 version 3.3.4.
2088
2089 2004-06-12 Roger Sayle <roger@eyesopen.com>
2090
2091 * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
2092 index by machine mode.
2093 (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
2094 tables inside the loop over machine modes.
2095 (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
2096 expand_divmod): Index shift*_cost by the appropriate machine mode.
2097
2098 2004-06-12 Eric Christopher <echristo@redhat.com>
2099
2100 * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
2101 * config/s390/s390.md: Ditto.
2102 * config/s390/s390.c: Ditto.
2103 (s390_frame_info): Conditionalize frame and setup info on
2104 TARGET_TPF_PROFILING.
2105 (s390_arg_frame_offset): Ditto.
2106
2107 2004-06-12 Roger Sayle <roger@eyesopen.com>
2108
2109 * fold-const.c (omit_two_operands): New function.
2110 * tree.h (omit_two_operands): Prototype here.
2111 * builtins.c (fold_builtin_unordered_cmp): New function to lower
2112 C99 unordered comparison builtins to the appropriate tree nodes.
2113 (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
2114 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
2115 BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
2116 BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
2117 (simplify_builtin_memcmp, simplify_builtin_strncmp,
2118 simplify_builtin_strncat, simplify_builtin_strspn): Use the new
2119 omit_two_operands function to build the required COMPOUND_EXPRs.
2120
2121 2004-06-12 Steven Bosscher <stevenb@suse.de>,
2122 Andreas Jaeger <aj@suse.de>
2123
2124 * gcse.c (record_set_info): Use predicates like REG_P.
2125 (mems_conflict_for_gcse_p): Likewise.
2126 (load_killed_in_block_p): Likewise.
2127 (hash_expr_1): Likewise.
2128 (insert_set_in_table): Likewise.
2129 (gcse_constant_p): Likewise.
2130 (hash_scan_set): Likewise.
2131 (hash_scan_insn): Likewise.
2132 (canon_list_insert): Likewise.
2133 (record_last_mem_set_info): Likewise.
2134 (record_last_set_info): Likewise.
2135 (compute_hash_table_work): Likewise.
2136 (mark_set): Likewise.
2137 (mark_clobber): Likewise.
2138 (mark_oprs_set): Likewise.
2139 (compute_transp): Likewise.
2140 (find_avail_set): Likewise.
2141 (cprop_insn): Likewise.
2142 (do_local_cprop): Likewise.
2143 (cprop): Likewise.
2144 (find_implicit_sets): Likewise.
2145 (find_bypass_set): Likewise.
2146 (bypass_conditional_jumps): Likewise.
2147 (insert_insn_end_bb): Likewise.
2148 (pre_insert_copy_insn): Likewise.
2149 (compute_transpout): Likewise.
2150 (next_ls_expr): Likewise.
2151 (invalidate_any_buried_refs): Likewise.
2152 (compute_ld_motion_mems): Likewise.
2153 (reg_set_info): Likewise.
2154 (reg_clear_last_set): Likewise.
2155 (find_moveable_store): Likewise.
2156 (compute_store_table): Likewise.
2157 (find_loads): Likewise.
2158 (store_killed_in_insn): Likewise.
2159 (insert_insn_start_bb): Likewise.
2160 (reg_set_between_after_reload_p): Likewise.
2161 (reg_used_between_after_reload_p): Likewise.
2162 (is_jump_table_basic_block): Likewise.
2163 (gcse_after_reload): Likewise.
2164 (hash_scan_set_after_reload): Likewise.
2165 (compute_hash_table_after_reload): Likewise.
2166
2167 2004-06-12 Steven Bosscher <stevenb@suse.de>
2168
2169 * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
2170 (INSN_P): Don't look at the rtx code class, just explicitly
2171 check for one of the tree RTX_INSN codes.
2172
2173 2004-06-11 Zack Weinberg <zack@codesourcery.com>
2174
2175 * c-typeck.c (default_function_array_conversion): Use
2176 build_pointer_type not TYPE_POINTER_TO.
2177
2178 2004-06-11 Zack Weinberg <zack@codesourcery.com>
2179
2180 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
2181 * configure, config.in: Regenerate.
2182 * system.h: Unconditionally define bool as unsigned char,
2183 BOOL_BITFIELD as unsigned int.
2184 * domwalk.h: Use BOOL_BITFIELD.
2185
2186 2004-06-12 Andreas Jaeger <aj@suse.de>
2187
2188 * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
2189 * libgcc-darwin.ver: Likewise.
2190
2191 2004-06-12 Peter Jakubek <peter@laseranimation.com>
2192
2193 * reload.c (find_reloads): Force reload for pseudo registers on big
2194 endian machines.
2195
2196 2004-06-11 Steven Bosscher <stevenb@suse.de>
2197
2198 * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
2199 Don't try to mark anything control dependent on the entry or
2200 exit blocks.
2201
2202 2004-06-11 Daniel Berlin <dberlin@dberlin.org>
2203
2204 Fix Bug 15899
2205 Fix Bug 15460
2206 * tree.h (SSA_NAME_VALUE): New macro.
2207 (struct tree_ssa_name): Add value_handle member.
2208 * tree-ssa-pre.c: Replaced.
2209 * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
2210 (struct cst_ann_d): New.
2211 (struct expr_ann_d): New.
2212 (union tree_ann_d): Add cst_ann, expr_ann.
2213 * tree-dfa.c (create_cst_ann): New function.
2214 (create_expr_ann): Ditto.
2215 * tree-flow-inline.h (cst_ann): New function.
2216 (expr_ann): Ditto.
2217 (get_cst_ann): Ditto.
2218 (get_expr_ann): Ditto..
2219
2220 2004-06-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2221
2222 * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
2223 * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
2224 _U_Qfcmp library function.
2225 (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
2226 _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
2227
2228 * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
2229 unspec used for loading address from DLT.
2230 * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
2231 Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
2232 Don't use short code sequence when loading the address of a nonlocal
2233 label.
2234 (nonlocal_goto): New expander.
2235 (indirect_goto): New jump pattern for nonlocal gotos.
2236 (short_jump): Remove extra whitespace.
2237 (builtin_longjmp): Clobber memory and hard frame pointer. Restore
2238 frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
2239 pattern.
2240
2241 2004-06-11 Roger Sayle <roger@eyesopen.com>
2242
2243 * expmed.c (synth_mult): Add an additional MODE argument for the
2244 machine mode of the multiplication. Update recursive calls. Use
2245 mode instead of word_mode for determining operation costs.
2246 (choose_mult_variant): Update calls to synth_mult with "mode".
2247
2248 2004-06-11 Richard Henderson <rth@redhat.com>
2249
2250 * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
2251 and makes_aliased_stores.
2252
2253 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2254
2255 * doc/install.text (--enable-shared): Fix typo.
2256
2257 2004-06-11 Richard Henderson <rth@redhat.com>
2258
2259 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
2260 argument. Use internal post for call to gimplify_expr. Tidy
2261 rounded type size computation.
2262 (alpha_gimplify_va_arg): Use get_formal_tmp_var and
2263 get_initialized_tmp_var.
2264
2265 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2266
2267 * doc/install.texi (--enable-shared): Update libobjc's shared library
2268 status. Remove reference to libf2c.
2269
2270 2004-06-11 Jason Merrill <jason@redhat.com>
2271
2272 * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2273 * config/i386/i386.c (ix86_va_arg): Remove.
2274 * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2275 * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
2276 * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2277 * config/alpha/alpha.c (alpha_va_arg): Remove.
2278 * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2279 * config/sparc/sparc.c (sparc_va_arg): Remove.
2280
2281 * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
2282 assignment might throw.
2283 * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
2284 expressions.
2285
2286 2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
2287
2288 PR 15886:
2289 * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
2290
2291 2004-06-11 Joseph S. Myers <jsm@polyomino.org.uk>
2292
2293 * doc/install.texi (Prerequisites): Update documentation of
2294 required versions of autoconf and automake. Remove mention of
2295 libf2c.
2296
2297 2004-06-11 Jason Merrill <jason@redhat.com>
2298
2299 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
2300 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2301
2302 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
2303
2304 * typeclass.h: Add GPL plus exception license. Add include
2305 guard.
2306
2307 2004-06-10 Jason Merrill <jason@redhat.com>
2308
2309 * gimplify.c (gimplify_modify_expr): Don't force a temporary
2310 of an aggregate_value_p type.
2311
2312 2004-06-10 Jeff Law <law@redhat.com>
2313
2314 * fold-const.c (fold_inf_compare): Avoid creating non-gimple
2315 code when we are in gimple form.
2316
2317 2004-06-10 Diego Novillo <dnovillo@redhat.com>
2318
2319 * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
2320 * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
2321 (highest_ssa_version): Remove.
2322 * tree-outof-ssa.c (new_temp_expr_table): Replace
2323 highest_ssa_version with num_ssa_names.
2324 (dump_replaceable_exprs): Likewise.
2325 (rewrite_vars_out_of_ssa): Likewise.
2326 * tree-ssa-ccp.c (initialize): Likewise
2327 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2328 * tree-ssa-dce.c (tree_dce_init): Likewise.
2329 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2330 * tree-ssa-live.c (create_ssa_var_map): Likewise.
2331 (dump_var_map): Likewise.
2332 * tree-ssa.c (verify_ssa): Likewise.
2333 (kill_redundant_phi_nodes): Likewise.
2334 Do not build a local array of SSA_NAMEs. Use the ssa_names table.
2335 * tree-ssanames.c: Include tree-flow.h
2336 (ssa_names): New varray.
2337 (init_ssa_names): Initialize ssa_names.
2338 Reserve the first slot of the ssa_names table.
2339 (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
2340 Assign version numbers using num_ssa_names.
2341
2342 2004-06-10 Joseph S. Myers <jsm@polyomino.org.uk>
2343
2344 * doc/sourcebuild.texi (Front End): Add details of more
2345 installation documentation required.
2346
2347 2004-06-10 Brian Booth <bbooth@redhat.com>
2348
2349 * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
2350 of V_MAY_DEF and V_MUST_DEF.
2351 * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
2352 num_vdefs to num_v_may_defs.
2353 (compute_immediate_uses_for_stmt): Rename occurences of vdef
2354 to v_may_def.
2355 (redirect_immediate_uses): Ditto.
2356 (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
2357 (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
2358 Also add code to sum up the number of v_must_defs.
2359 (vdefs_disappeared_p): Replace with...
2360 (v_may_defs_disappeared_p): This.
2361 (v_must_defs_disappeared_p): New function.
2362 (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
2363 Also add code to mark new variables found in V_MUST_DEFs for
2364 renameing.
2365 * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
2366 vdef_ops to v_may_def_ops.
2367 (get_vdef_ops): Replace with...
2368 (get_v_may_def_ops): This.
2369 * tree-flow-inline.h (get_vdef_ops): Replace with...
2370 (get_v_may_def_ops): This.
2371 (get_v_must_def_ops): New function.
2372 (get_vdef_result_ptr): Replace with...
2373 (get_v_may_def_result_ptr): This.
2374 (get_vdef_op_ptr): Ditto with...
2375 (get_v_may_def_op_ptr); This.
2376 (get_v_must_def_op_ptr): New function.
2377 * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
2378 to v_may_def. Also add code to mark statements with
2379 V_MUST_DEFs as definition sites.
2380 (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
2381 add code to register new V_MUST_DEFs made by the statement.
2382 * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
2383 (check_replaceable): Rename occurences of vdef to v_may_def. Also
2384 add check for V_MUST_DEFs.
2385 (find_replaceable_in_bb): Ditto.
2386 * tree-pretty-print.c (dump_vops): Rename occurences of vdef
2387 to v_may_def. Also add code to dump V_MUST_DEFs.
2388 * tree-sra.c (mark_all_vdefs): Replace with...
2389 (mark_all_v_may_defs): This.
2390 (mark_all_v_must_defs): New function.
2391 (create_scalar_copies): Replace call to mark_all_vdefs with
2392 calls to mark_all_v_may_defs and mark_all_v_must_defs.
2393 (scalarize_structures): Rename occurences of vdef to v_may_def.
2394 Also add a check for V_MUST_DEFs.
2395 (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
2396 * tree-ssa-alias.c (global_var): Update comment.
2397 (compute_may_aliases): Ditto.
2398 (compute_points_to_and_addr_escape): Rename occurences of vdef
2399 to v_may_def. Also add code to mark variables in V_MUST_DEF
2400 operands as being written to.
2401 (group_aliases): Update comment.
2402 (maybe_create_global_var): Ditto.
2403 * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
2404 Also add a check for V_MUST_DEFs on GIMPLE registers.
2405 (replace_immediate_uses): Rename occurences of vdef to v_may_def.
2406 * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
2407 to v_may_def. Also add code to mark all V_MUST_DEF operands
2408 VARYING.
2409 (initialize): Ditto.
2410 (set_rhs): Rename occurences of vdef to v_may_def. Also add
2411 code to update SSA_NAMEs in V_MUST_DEFs.
2412 * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
2413 to v_may_def.
2414 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
2415 occurences of vdef to v_may_def. Also add code to mark statements
2416 with V_MUST_DEFs as necessary.
2417 (propagate_necessity): Rename occurences of vdef to v_may_def.
2418 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
2419 occurences of vdef to v_may_def. Also add code to mark operands
2420 in V_MUST_DEFs for renaming.
2421 (eliminate_redundant_computations): Rename occurences of vdef
2422 to v_may_def.
2423 (record_equivalences_from_stmt): Rename occurences of vdef
2424 to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
2425 (optimize_stmt): Remove unnesessary variable vdefs. Update
2426 comment.
2427 (register_definitions_for_stmt): Rename occurences of vdef
2428 to v_may_def. Also add code to register definitions made with
2429 V_MUST_DEFs.
2430 * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
2431 (fix_stmt_v_may_defs): This.
2432 (fix_phi_uses): Rename occurences of vdef to v_may_def.
2433 (dse_optimize_stmt): Ditto.
2434 * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
2435 to v_may_def. Also add code to mark V_MUST_DEF operands as being
2436 used in virtual operators.
2437 * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
2438 vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
2439 renaming.
2440 * tree-ssa-operands.c (opf_kill_def): New flag for killing
2441 definitions.
2442 (build_vdefs): Renamed to...
2443 (build_v_may_defs): This.
2444 (build_v_must_defs): New variable.
2445 (voperands_d): Add v_must_def_ops and replace vdef_ops with
2446 v_may_def_ops.
2447 (append_vdef): Replace with...
2448 (append_v_may_def): This.
2449 (append_v_must_def): New function.
2450 (NUM_FREE): Increment for V_MUST_DEF
2451 (optype_freelist): Increment its size for V_MUST_DEF
2452 (allocate_vdef_optype): Replace with...
2453 (allocate_v_may_def_optype): This.
2454 (allocate_v_must_def_optype): New function.
2455 (free_vdefs): Replace with...
2456 (free_v_may_defs): This.
2457 (free_v_must_defs): New function.
2458 (remove_vdefs): Replace with...
2459 (remove_v_may_defs): This.
2460 (remove_v_must_defs): New function.
2461 (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
2462 add code to initialize build_v_must_defs.
2463 (finalize_ssa_vdefs): Replace with...
2464 (finalize_ssa_v_may_defs): This.
2465 (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
2466 (finalize_ssa_v_must_defs): New function.
2467 (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
2468 with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
2469 (verify_start_operands): Rename occurences of vdef to v_may_def.
2470 Also add check for build_v_must_defs.
2471 (get_stmt_operands): Rename occurences of vdef to v_may_def.
2472 Also add code to handle V_MUST_DEFs and to use opf_kill_def for
2473 killing definitions.
2474 (get_expr_operands): Update comment and use opf_kill_def for
2475 killing definitions.
2476 (add_stmt_operand): Replace code that appends VDEFs with code
2477 that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
2478 otherwise.
2479 (add_call_clobber_ops): Update comments.
2480 * tree-ssa-operands.h (vdef_optype_d): Replace with...
2481 (v_may_def_optype_d): This.
2482 (v_must_def_optype_d): New structure.
2483 (VDEF_OPS): Replace with...
2484 (V_MAY_DEF_OPS): This.
2485 (STMT_VDEF_OPS): Same with...
2486 (STMT_V_MAY_DEF_OPS): This.
2487 (NUM_VDEFS): And...
2488 (NUM_V_MAY_DEFS): This.
2489 (VDEF_RESULT_PTR): As well as...
2490 (V_MAY_DEF_RESULT_PTR): This.
2491 (VDEF_RESULT): Same goes for...
2492 (V_MAY_DEF_RESULT): This.
2493 (VDEF_OP_PTR): And...
2494 (V_MAY_DEF_OP_PTR): This.
2495 (VDEF_OP): And...
2496 (V_MAY_DEF_OP): This.
2497 (V_MUST_DEF_OPS): New macro.
2498 (STMT_V_MUST_DEF_OPS): Ditto.
2499 (NUM_V_MUST_DEFS): Ditto.
2500 (V_MUST_DEF_OP_PTR): Ditto.
2501 (V_MUST_DEF_OP): Ditto.
2502 (remove_vdefs): Replace signature with...
2503 (remove_v_may_defs): This.
2504 (remove_v_must_defs): New function signature.
2505 * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
2506 with calls to remove_v_may_defs and remove_v_must_defs.
2507 (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
2508 Also add code that marks left occurences of operands in V_MUST_DEFs.
2509 * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
2510 to v_may_def. Also add check for V_MUST_DEFs.
2511 (eliminate_tail_call):Rename occurences of vdef to v_may_def.
2512
2513 2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
2514
2515 PR target/15653
2516 * haifa-sched.c (schedule_block): Finish cycle after issuing asm
2517 insn.
2518
2519 2004-06-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2520
2521 PR web/15263
2522 * doc/install.texi: Remove superfluous linebreak.
2523
2524 2004-06-10 Roger Sayle <roger@eyesopen.com>
2525
2526 * builtins.c (expand_builtin): Fall back to library function call for
2527 conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
2528 (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
2529 BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
2530 IMAGPART_EXPR respectively.
2531
2532 2004-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2533
2534 * sh.c (dump_table): New argument start. Changed caller.
2535 (fixup_mova): New function.
2536 (find_barrier): Use it.
2537 (sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
2538 If the label a mova refers to is above the mova itself, change
2539 the mova into a load.
2540 * sh.md (*casesi_worker): Rename to:
2541 (casesi_worker_1).
2542 (casesi_worker_2): New insn.
2543
2544 2004-06-10 Jason Merrill <jason@redhat.com>
2545
2546 * target.h (struct gcc_target): Change gimplify_va_arg_expr
2547 hook signature.
2548 * tree-gimple.h: Adjust.
2549 * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
2550 * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
2551 Use fold_convert.
2552 * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
2553 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
2554 Use COMPLEX_EXPR for complex numbers. Use fold_convert.
2555 * builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
2556 (gimplify_va_arg_expr): Return GS_ERROR in error case.
2557 Gimplify valist rather than calling stabilize_va_list.
2558
2559 2004-06-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2560
2561 * Makefile.in (df.o): Remove fibheap dependency.
2562 * df.h: Do not include sbitmap.h.
2563 (struct ref): New field "data".
2564 (DF_REF_DATA): New accessor macro.
2565 (struct df): Field "dom" removed.
2566 (df_analyze_subcfg): New function.
2567 (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
2568 (transfer_function): ... new type.
2569 (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
2570 (iterative_dataflow): ... new function.
2571 (enum set_representation, struct dataflow): New.
2572 * df.c: Do not include fibheap.h.
2573
2574 (df_reg_def_chain_clean, df_reg_use_chain_clean,
2575 (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
2576 prune_to_subcfg, df_bb_modify): New functions.
2577 (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
2578 df_refs_update, df_reg_table_realloc, df_ref_create,
2579 df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
2580 df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
2581 df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
2582
2583 (dataflow_set_a_op_b, dataflow_set_copy): New functions.
2584 (df_rd_transfer_function, df_ru_transfer_function,
2585 df_lr_transfer_function): Type of bitmaps changed to void *.
2586 (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
2587 (hybrid_search): ... new function.
2588 (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
2589 (iterative_dataflow): ... new function. Avoid use of fibheaps for
2590 a worklist. Do not process basic blocks unnecessarily.
2591
2592 2004-06-10 Roger Sayle <roger@eyesopen.com>
2593
2594 * fold-const.c (fold_abs_const): Make extern.
2595 * tree.h (fold_abs_const): Prototype here.
2596 * builtins.c (fold_builtin_fabs): New function to transform
2597 fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
2598 (fold_builtin_abs): New function to transform abs, labs, llabs
2599 and imaxabs builtins into ABS_EXPR tree nodes.
2600 (expand_builtin): Fall back to a function call for abs, labs,
2601 llabs and imaxabs builtins that survive constant folding.
2602 (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
2603 FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
2604
2605 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2606
2607 * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
2608 leaf function without unwind info at RP 0.
2609
2610 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2611
2612 PR c++/14791
2613 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
2614 (fileptr_type_node): Define.
2615 * tree.c (build_common_tree_nodes_2): Initialize
2616 fileptr_type_node to ptr_type_node.
2617 * c-common.c (c_common_nodes_and_builtins): For C++, make
2618 fileptr_type_node a distinct type copy.
2619 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
2620 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
2621 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
2622 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
2623 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
2624 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
2625 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
2626 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
2627 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
2628 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
2629 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
2630 the above *FILEPTR* types instead of *PTR*.
2631
2632 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
2633
2634 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
2635 match.
2636
2637 2004-06-09 Roger Sayle <roger@eyesopen.com>
2638
2639 * fold-const.c (fold_not_const): New function.
2640 (fold) <ABS_EXPR>: Don't bother testing wins.
2641 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
2642 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
2643
2644 2004-06-09 Richard Henderson <rth@redhat.com>
2645
2646 PR middle-end/15228
2647 * function.c (assign_parms): Always set_mem_align with the computed
2648 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
2649
2650 2004-06-09 Richard Henderson <rth@redhat.com>
2651
2652 PR opt/15108
2653 * tree-tailcall.c (find_tail_calls): Don't check early for
2654 tail_recursion failure.
2655
2656 2004-06-09 Diego Novillo <dnovillo@redhat.com>
2657
2658 Move SSA_NAME annotations into tree_ssa_name.
2659
2660 * tree-dfa.c (create_ssa_name_ann): Remove.
2661 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
2662 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
2663 (struct ssa_name_ann_d): Remove.
2664 (union tree_ann_d): Update.
2665 (ssa_name_ann_t): Remove.
2666 * tree-ssa-alias.c: (get_ptr_info): New local function.
2667 Replace references to ssa_name_ann_t with struct ptr_info_def.
2668 * tree-ssa-operands.c (get_expr_operands): Likewise.
2669 * tree.h (SSA_NAME_PTR_INFO): Define.
2670 (struct ptr_info_def): Declare.
2671 (struct tree_ssa_name): Add field 'ptr_info'.
2672
2673 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
2674
2675 * config/i386/winnt.c (i386_pe_output_labelref): Correct
2676 misplaced ')'.
2677
2678 2004-06-09 Steven Bosscher <stevenb@suse.de>
2679
2680 * config/i386/k6.md: Rewrite using the DFA model.
2681 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
2682 cost of load-operation insns for the K6.
2683 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
2684 (ia32_multipass_dfa_lookahead): Likewise.
2685
2686 2004-06-09 Richard Henderson <rth@redhat.com>
2687
2688 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
2689 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
2690
2691 2004-06-09 Richard Henderson <rth@redhat.com>
2692
2693 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
2694
2695 2004-06-09 Geoffrey Keating <geoffk@apple.com>
2696
2697 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
2698 (CPP_ID_DATA_H): New.
2699 (gtype-desc.o): Update dependencies.
2700 (GTFILES): Use CPP_ID_DATA_H.
2701
2702 2004-06-09 Mark Mitchell <mark@codesourcery.com>
2703
2704 Revert:
2705 PR c++/15815
2706 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2707 * doc/extend.texi: Deprecate #pragma interface and #pragma
2708 implementation.
2709
2710 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
2711
2712 * config/sparc/sparc.h (MOVE_RATIO): New definition.
2713
2714 2004-06-09 Richard Henderson <rth@redhat.com>
2715
2716 * basic-block.h (struct edge_def): Add goto_locus.
2717 * tree-cfg.c (make_goto_expr_edges): Set it.
2718 (disband_implicit_edges): Use it.
2719 * tree-pretty-print.c (dump_implicit_edges): Print it.
2720
2721 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2722
2723 * h8300.md (ldm_h8300s_4): Fix condition for expander.
2724
2725 2004-06-08 Jason Merrill <jason@redhat.com>
2726
2727 Gimplify VA_ARG_EXPR into simpler forms.
2728 * target.h: Add gimplify_va_arg_expr hook.
2729 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
2730 * fold-const.c (build_fold_addr_expr)
2731 (build_fold_addr_expr_with_type): Move from gimplify.c.
2732 * tree.h: Declare them.
2733 * gimplify.c (gimplify_and_add): New fn.
2734 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
2735 (gimplify_array_ref_to_plus, gimplify_modify_expr)
2736 (gimplify_expr): Use build_fold_*.
2737 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
2738 don't know how to gimplify it.
2739 * builtins.c (std_gimplify_va_arg_expr): New fn.
2740 (dummy_object): New static fn.
2741 (gimplify_va_arg_expr): New fn.
2742 (stabilize_va_list): Use build_fold_*.
2743 * tree-gimple.h: Declare new fns.
2744 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2745 (ix86_gimplify_va_arg): New fn.
2746 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2747 (ia64_gimplify_va_arg): New fn.
2748 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
2749 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2750 * alias.c (get_varargs_alias_set): Just return 0 for now.
2751
2752 * c-objc-common.c (c_tree_printer): Improve handling of %T.
2753
2754 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
2755
2756 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
2757 of convert.
2758 * tree-inline.c (setup_one_parameter): Likewise.
2759 * tree-sra.c (csc_build_component_ref): Likewise.
2760 * tree-ssa-ccp.c (ccp_fold): Likewise.
2761 * tree-ssa-copy.c (cprop_operand): Likewise.
2762 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2763 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2764
2765 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2766
2767 PR rtl-optimization/15521:
2768 * sched-int.h (in_post_call_group_p): Change type to enum.
2769 * sched-deps.c (sched_analyze_insn):
2770 (sched_analyze): When in_post_call_group_p is post_call_initial,
2771 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
2772 and also reset in_post_call_group_p to post_call.
2773 (sched_analyze): When the previous basic block ended in a CALL_INSN,
2774 initialize in_post_call_group_p as post_call_initial.
2775 (init_deps): initialize in_post_call_group_p to not_post_call.
2776
2777 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
2778
2779 PR ada/6637
2780 * doc/install.texi: List ada, libada as options to --enable-shared
2781
2782 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
2783
2784 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
2785 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
2786 config.in entries.
2787 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
2788 if hard links are not available.
2789 * configure: Regenerate.
2790 * config.in: Regenerate.
2791
2792 2004-06-08 Per Bothner <per@bothner.com>
2793
2794 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
2795
2796 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2797
2798 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
2799 Correct formatting.
2800
2801 2004-06-08 James E Wilson <wilson@specifixinc.com>
2802
2803 PR target/15790
2804 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
2805
2806 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2807
2808 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
2809 POINTER_TYPE and INTEGER_TYPE.
2810
2811 2004-06-08 Bernardo Innocenti <bernie@develer.com>
2812
2813 * modulo-sched.c: Compile only when INSN_SCHEDULING is
2814 defined.
2815
2816 2004-06-08 Jeff Law <law@redhat.com>
2817
2818 * doc/contrib.texi: Add entries for Stefan Olsson and
2819 Ola Ronnerup.
2820
2821 2004-06-08 DJ Delorie <dj@redhat.com>
2822
2823 * toplev.c (floor_log2_wide): Replace loop with faster bit
2824 operations.
2825 (exact_log2_wide): Define in terms of the above.
2826 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
2827 available.
2828
2829 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2830
2831 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
2832 Make sure that we are in INDIRECT mode when getting the
2833 stub name.
2834
2835 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2836
2837 * h8300.md (extendqisi2_h8300): Add constraints.
2838 (ldm_h8300s_4_normal): Fix typo.
2839
2840 2004-06-08 Richard Henderson <rth@redhat.com>
2841
2842 * gimple-low.c (struct lower_data): Replace the_return_label and
2843 one_return_stmt with return_statements.
2844 (lower_function_body): Process the entire list of return_statements.
2845 (lower_return_expr): Check source value before unifying return_exprs.
2846 * gimplify.c (gimplify_return_expr): Force the use of a temporary
2847 for !aggregate_value_p.
2848 * tree-gimple.c: Update RETURN_EXPR grammer.
2849
2850 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
2851
2852 PR target/15598
2853 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
2854
2855 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2856
2857 PR rtl-optimization/15717
2858 * config/i386/i386.c (legitimate_constant_p): Do not allow
2859 x - symbol_ref.
2860
2861 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2862
2863 * gimplify.c (copy_if_shared_r): Revert:
2864 2004-05-21 Richard Henderson <rth@redhat.com>
2865 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
2866
2867 2004-06-07 Roger Sayle <roger@eyesopen.com>
2868
2869 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
2870 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
2871 (init_expmed): Initialize these cost arrays as appropriate.
2872 (store_bit_field, extract_bit_field): Correct whitespace.
2873 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
2874 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
2875 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
2876 word_mode or compute_mode as appropriate.
2877
2878 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2879
2880 PR target/15783
2881 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
2882 parameter. Enumerate the registers inside the PARALLEL.
2883 (function_arg): Adjust call to function_arg_union_value.
2884 (function_value): Likewise.
2885
2886 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
2887
2888 2004-06-07 Roger Sayle <roger@eyesopen.com>
2889
2890 * real.c (real_copysign): New function to implement libm's copysign.
2891 * real.h (real_copysign): Prototype here.
2892 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
2893 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
2894 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
2895 fold_builtin_isdigit): Add function prototypes.
2896 (fold_builtin_copysign): New function to fold copysign, copysignf
2897 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
2898 constant arguments at compile-time using real_copysign. Fold
2899 copysign(X,Y) as fabs(X) if Y is always non-negative.
2900 (fold_builtin_1): Correct minor whitespace/style issues. Call
2901 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
2902
2903 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
2904
2905 * tree.c (iterative_hash_expr): Use real_hash.
2906
2907 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
2908
2909 PR c/14765
2910 * c-parse.in (compstmt_primary_start): Set last_expr_type to
2911 NULL_TREE.
2912
2913 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2914
2915 PR c++/15815
2916 * doc/extend.texi: Deprecate #pragma interface and #pragma
2917 implementation.
2918
2919 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
2920
2921 PR middle-end/15666
2922 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
2923 builtin decl as well.
2924
2925 2004-06-07 Roger Sayle <roger@eyesopen.com>
2926
2927 PR c/14649
2928 * c-typeck.c (require_constant_value, require_constant_elements):
2929 Move declarations to the top of the file.
2930 (build_function_call): If we require a constant value, fold with
2931 fold_initializer. If the result is a constant, and the function
2932 wasn't called using __builtin_foo, issue a pedantic warning.
2933 (build_unary_op): If we require a constant value, fold tree with
2934 fold_initializer.
2935 (build_binary_op): Use require_constant_value to determine whether
2936 to call fold or fold_initializer.
2937
2938 2004-06-07 Richard Henderson <rth@redhat.com>
2939
2940 * gimple-low.c (struct lower_data): Add the_return_label and
2941 one_return_stmt.
2942 (lower_function_body): Initialize and use them.
2943 (lower_return_expr): New.
2944 (lower_stmt): Call it.
2945 * gimplify.c (gimplify_return_expr): Force the argument to be either
2946 null or a result_decl.
2947 * tree-gimple.c: Update gimple grammer to match.
2948 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
2949 coalescing of result_decls.
2950
2951 2004-06-07 Richard Henderson <rth@redhat.com>
2952
2953 PR rtl-opt/15193
2954 * expmed.c (extract_bit_field): Fix vector_extract return.
2955
2956 * config/i386/i386.md (negv4sf2): New pattern.
2957
2958 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2959
2960 PR c++/15337
2961 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
2962 message.
2963
2964 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
2965
2966 * config.in: Regenerate.
2967
2968 2004-06-06 Steven Bosscher <stevenb@suse.de>
2969
2970 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
2971 SWITCH_LABELS are always sorted.
2972
2973 2004-06-06 Steven Bosscher <stevenb@suse.de>
2974
2975 * hooks.c (hook_int_void_1): New generic hook.
2976 * hooks.h (hook_int_void_1): Add prototype.
2977 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
2978 Define to hook_int_void_1.
2979 * config/c4x/c4x.md: Replace dummies for the old pipeline model
2980 with dummies for the new one.
2981
2982 2004-06-06 Roger Sayle <roger@eyesopen.com>
2983
2984 * tree.h (lvalue_or_else): Delete function prototype.
2985 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
2986
2987 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
2988
2989 PR target/14542
2990 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
2991 a live change of a register after peephole replacement.
2992
2993 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
2994
2995 PR c/13519
2996 * c-typeck.c (composite_type, common_pointer_type): New functions.
2997 (common_type): Split parts into composite_type and
2998 common_pointer_type. Ensure that arithmetic operations return
2999 unqualified types without attributes. Don't make composite type
3000 of signed enum and compatible integer be unsigned.
3001 (build_conditional_expr, build_binary_op): Use
3002 common_pointer_type.
3003 * c-decl.c (merge_decls): Use composite_type.
3004 * c-tree.h (composite_type): Declare.
3005
3006 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
3007
3008 PR target/14457
3009 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
3010 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
3011 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
3012 (inhibit_libc): Must define.
3013 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
3014 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
3015 ("xorhi3"): Likewise.
3016
3017 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3018
3019 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
3020 always_inline pass.
3021
3022 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
3023
3024 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
3025 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
3026
3027 2004-06-05 Bernardo Innocenti <bernie@develer.com>
3028
3029 * regclass.c (init_reg_sets): Check for missing registers in target
3030 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
3031
3032 2004-06-05 Zack Weinberg <zack@codesourcery.com>
3033
3034 * Makefile.in (MKDEPS_H): New shorthand.
3035 (c-opts.o): Update dependencies.
3036 * c-opts.c: Include mkdeps.h.
3037 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
3038 not cpp_add_dependency_target.
3039
3040 2004-06-05 Steven Bosscher <stevenb@suse.de>
3041
3042 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
3043 * config/v850/v850.md: Convert to DFA scheduler description.
3044
3045 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3046
3047 PR fortran/15478
3048 * doc/install.texi: Document GMP as prerequisite. Document
3049 --with-gmp and --with-gmp-dir configure options.
3050 * fortran/gfortran.texi: Remove section "Compiling and testing",
3051 remove TOC reference to it.
3052
3053 2004-06-05 Graham Stott <graham.stott@btinternet.com>
3054
3055 * combine.c(simplify_shift_const): Check shift amount is a
3056 CONST_INT.
3057
3058 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
3059
3060 * toplev.c (init_asm_output): Add explicit 'b' to mode when
3061 opening asm_out_file.
3062 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
3063 reading asm_out_file. Replace fflush after reading asm_out_file
3064 with fseek.
3065 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
3066 default and add to HOST_HOOKS_INITIALIZER.
3067 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
3068 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
3069 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
3070 to set mmi.offset padding.
3071 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
3072 $(srcdir)/config/i386/winnt.c.
3073 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
3074 (i[34567]86-*-uwin*): Likewise.
3075 *i[34567]86-*-interix3*): Likewise.
3076 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
3077 * config/i386/host-mingw32.c: New file.
3078 * config/i386/x-mingw32: Add rule for host-mingw32.o.
3079 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
3080 (extern_head): Likewise.
3081 (struct export_list) Likewise.
3082 (export_head): Likewise.
3083 (i386_pe_record_external_function): Use ggc_alloc.
3084 (i386_pe_record_exported_symbol): Likewise.
3085 Include "gt-winnt.h" at end.
3086 * doc/hostconfig.texi: Document
3087 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
3088
3089 2004-06-04 Bernardo Innocenti <bernie@develer.com>
3090
3091 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
3092 Rename 68000 and 68k to m68k for consistency in comments. Remove
3093 trailing whitespace before EOLs and before TABs.
3094 (MAX_CODE_ALIGN): Remove unused macro.
3095 (CALL_USED_REGISTERS): Reformat and add comments.
3096
3097 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
3098
3099 * gcc.c (MFLIB_SPEC): Remove library references, to require users
3100 to enumerate -lmudflap* and dependencies when linking.
3101
3102 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
3103
3104 PR target/15822
3105 * dojump.c (do_jump): Fix uninitialized variable tcode1.
3106
3107 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
3108
3109 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
3110 * genconditions.c (write_header): Back out removal of reload.h.
3111
3112 2004-06-04 Jan Hubicka <jh@suse.cz>
3113
3114 Re-apply hopefully fixed patch:
3115 * i386.md (UNSPECV_EH_RETURN): Kill.
3116 (eh_return): Use jump_insn.
3117 (eh_return_si, eh_return_di): Change pattern to jump instruction.
3118
3119 2004-06-04 Jeff Law <law@redhat.com>
3120
3121 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
3122
3123 2004-06-04 Steven Bosscher <stevenb@suse.de>
3124
3125 * except.c (for_each_eh_region): New function.
3126 * except.h (for_each_eh_region): Add a prototype for it.
3127 * tree-cfg.c (update_eh_labels): New function, callback for
3128 for_each_eh_region.
3129 (label_for_bb): Make global static, unfortunately.
3130 (cleanup_dead_labels): Also update label references for
3131 exception regions.
3132
3133 2004-06-03 Chris Demetriou <cgd@broadcom.com>
3134
3135 * config/mips/mips.c (struct irix_section_align_entry): Fix
3136 GTY marker.
3137
3138 2004-06-03 Geoffrey Keating <geoffk@apple.com>
3139
3140 * toplev.c (check_global_declarations): Don't ask for
3141 DECL_ASSEMBLER_NAME unless the function really is declared
3142 static and not defined.
3143
3144 2004-06-03 Matt Austern <austern@apple.com>
3145
3146 PR c++/15428
3147 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
3148 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
3149 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
3150 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
3151 documentation to reflect the new macro name and to clarify its
3152 meaning.
3153
3154 2004-06-03 Steven Bosscher <stevenb@suse.de>
3155
3156 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
3157
3158 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
3159
3160 * config/darwin.c (machopic_indirect_data_reference): Copy
3161 the SYMBOL_REF_DECL from the original RTX for the new
3162 non-lazy pointer RTX.
3163
3164 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
3165
3166 * tree.h: Remove include of version.h
3167 * c-cppbuiltin.c: Include version.h
3168 * diagnostic.c: Include version.h
3169 * dwarf2out.c: Include version.h
3170 * toplev.c: Include version.h
3171 * vmsdbgout.c: Include version.h
3172 * Makefile.in: Remove dependency on version.h from TREE_H, and
3173 add dependencies to required .o targets
3174
3175 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
3176
3177 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
3178 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
3179 (TARGET_H): Add insn-modes.h.
3180 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
3181 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
3182 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
3183 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
3184 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
3185 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
3186 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
3187 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
3188 CFGLAYOUT_H.
3189 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
3190 Replace ra.h with RA_H.
3191 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
3192 insn-recog.o): Replace resource.h with RESOURCE_H.
3193 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
3194 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
3195 with SCHED_INT_H.
3196 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
3197 ra-rewrite.o): Replace df.h with DF_H.
3198 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
3199 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
3200 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
3201 (insn-conditions.o): Remove unused reload.h.
3202 * cfglayout.h: Add include guard. Include basic-block.h.
3203 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
3204 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
3205 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
3206 basic-block.h.
3207 * genconditions.c: Remove reload.h.
3208 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
3209 hard-reg-set.h, insn-modes.h.
3210 * resource.h: Add include guard. Include hard-reg-set.h.
3211 * sched-int.h: Add include guard. Include insn-attr.h,
3212 basic-block.h, rtl.h.
3213 * target.h: Add include guard. Include insn-modes.h.
3214 * tree-ssa-live.h: Include partition.h.
3215
3216 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
3217 Kenneth Zadeck <zadeck@naturalbridge.com>
3218
3219 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
3220 (add_var_to_ssa_edges_worklist): Add value argument.
3221 Update callers.
3222 Use new worklist.
3223 (process_ssa_edge_worklist): New function.
3224 (tree_ssa_ccp): Move worklist processing core to
3225 process_ssa_edge_worklist, and just call that for the two worklists.
3226
3227 2004-06-03 Steven Bosscher <stevenb@suse.de>
3228
3229 * basic-block.c (tail_recursion_label_list): Don't declare.
3230 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
3231 accordingly.
3232 * cfgbuild.c (find_label_refs): Remove.
3233 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
3234 * cfgcleanup.c (tail_recursion_label_p): Remove.
3235 (merge_blocks_move): Do not check for tail recursion.
3236 (try_optimize_cfg): Likewise.
3237 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
3238 * cfgrtl.c (tail_recursion_label_list): Remove.
3239 * except.c (remove_unreachable_regions): Don't handle
3240 CALL_PLACEHOLDER insns.
3241 (convert_from_eh_region_ranges_1, can_throw_internal,
3242 can_throw_external): Likewise.
3243 * function.c (free_after_compilation): Don't clear
3244 x_tail_recursion_label.
3245 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
3246 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
3247 (reorder_blocks_1): Likewise.
3248 * function.h (struct function): Remove x_tail_recursion_label
3249 member. Don't define tail_recursion_label.
3250 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
3251 * print-rtl.c (print_rtx): Likewise.
3252 * rtl.def (CALL_PLACEHOLDER): Remove.
3253 * rtl.h (sibcall_use_t): Remove enum.
3254 (optimize_sibling_and_tail_recursive_calls,
3255 replace_call_placeholder): Remove function prototypes.
3256 * stmt.c (tail_recursion_args): Remove.
3257 (optimize_tail_recursion): Remove.
3258 (expand_return): Don't check for possible tail recursion.
3259 * tree.h (optimize_tail_recursion): Remove prototype.
3260
3261 2004-06-02 Jan Hubicka <jh@suse.cz>
3262
3263 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
3264 return_stmt.
3265
3266 2004-06-02 Jason Merrill <jason@redhat.com>
3267
3268 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
3269 Do include c-parse.in.
3270
3271 2004-06-02 Eric Christopher <echristo@redhat.com>
3272
3273 * c-typeck.c (common_type): Don't lose type qualifiers
3274 when creating new variants.
3275
3276 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3277
3278 PR tree-optimization/14042
3279 PR tree-optimization/14729
3280 PR tree-optimization/14736
3281 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
3282 Check the type which the pointer points to
3283 instead of the pointer types.
3284
3285 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
3286
3287 PR tree-optimization/15738.
3288 * builtins.c (fold_builtin_strchr): Transform
3289 strrchr (s, '\0') to strchr (s, '\0').
3290
3291 2004-06-02 Steven Bosscher <stevenb@suse.de>
3292
3293 * i386.c (ix86_adjust_cost): Don't increase the cost for
3294 load+operation for PROCESSOR_PENTIUMPRO, it is already
3295 modelled in the DFA description
3296
3297 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
3298
3299 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
3300 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
3301 (ALIAS_H, EMIT_RTL_H): New.
3302 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
3303 (cfgcleanup.o): Add EMIT_RTL_H.
3304 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
3305 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
3306 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
3307 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
3308 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
3309 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
3310 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
3311 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
3312 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
3313 set_mem_size): Move to emit-rtl.h.
3314 * emit-rtl.h: New.
3315 * alias.h: New.
3316
3317 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
3318
3319 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
3320 Call fixup_memory_subreg only if the MEM is equal to 'var'.
3321 Adjust recursive calls to self.
3322 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
3323
3324 2004-06-01 Richard Henderson <rth@redhat.com>
3325 Andrew Pinski <pinskia@physics.uc.edu>
3326
3327 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
3328 (primary): Handle offsetof. Add error productions for faux functions.
3329 Move component_ref objc checking to build_component_ref.
3330 (reswords): Add offsetof.
3331 (rid_to_yy): Add offsetof.
3332 * c-tree.h (build_offsetof): Declare.
3333 * c-common.h (objc_is_public): Declare.
3334 * c-typeck.c (build_component_ref): Check objc_is_public.
3335 (build_offsetof): New.
3336 * stub-objc.c (objc_is_public): New.
3337 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
3338 from is_public.
3339 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
3340 * doc/extend.texi (Offsetof): Move from C++ section to C section
3341 and rewrite for __builtin_offsetof.
3342
3343 2004-06-01 Peter Barada <peter@the-baradas.com>
3344 Peter Jakubek <peter@laseranimation.com>
3345
3346 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
3347 a scratch to perform an add to memory.
3348
3349 2004-06-01 Bernardo Innocenti <bernie@develer.com>
3350
3351 PR target/14018
3352 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
3353 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
3354 m68k_align_funcs): Remove.
3355 (override_options): Remove code to handle -malign-* options.
3356 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
3357 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
3358 (m68k_align_loops_string, m68k_align_jumps_string,
3359 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
3360 m68k_align_funcs): Remove definitions.
3361
3362 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
3363
3364 PR target/15626
3365 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
3366 by the Sun linker in conjunction with the Sun assembler.
3367 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
3368
3369 2004-06-01 Jeff Law <law@redhat.com>
3370
3371 * stmt.c (expand_decl): Be more selective about calling
3372 mark_reg_pointer.
3373
3374 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
3375
3376 PR objc/7993
3377 * objc-act.c (is_private): Do not emit the 'instance variable %s
3378 is declared private' error.
3379 (is_public): Emit the error after calling is_private.
3380 (lookup_objc_ivar): If the instance variable is private, return 0
3381 - the instance variable is invisible here.
3382
3383 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3384
3385 * doc/invoke.texi (-static-libgcc): Explicitly mention
3386 non-GNU linkers.
3387
3388 2004-06-01 Bernardo Innocenti <bernie@develer.com>
3389
3390 PR target/12968
3391 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
3392
3393 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
3394
3395 PR c/15749
3396 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
3397 misuses of structures with flexible array members if
3398 in_system_header.
3399
3400 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3401
3402 PR target/15693
3403 * config/sparc/sparc.c (compare_operand): New predicate.
3404 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
3405 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
3406 operand is a ZERO_EXTRACT and the second operand is not zero,
3407 force the former to a register.
3408 (cmpdi expander): Likewise.
3409
3410 2004-05-31 Geoffrey Keating <geoffk@apple.com>
3411
3412 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
3413 looks at.
3414 * alias.c (alias_invariant_size): Make alias_invariant_size
3415 static, fix GTY marker.
3416
3417 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3418
3419 PR tree-optimization/15743.
3420 * builtins.c (fold_builtin_1): Fold index() and rindex().
3421
3422 2004-05-31 Roger Sayle <roger@eyesopen.com>
3423
3424 PR middle-end/15069
3425 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
3426 into "X < 0" (where C is the signbit) if X's type is a full mode.
3427
3428 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3429
3430 * pa.md: Disable the peephole2 patterns that generate indexed
3431 floating-point stores when indexing is disabled.
3432
3433 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
3434
3435 * c-pretty-print.c (pp_c_left_bracket): Make a function.
3436 (pp_c_right_bracket): Likewise.
3437 (pp_c_star): Likewise.
3438 (pp_c_ampersand): Define.
3439 * c-pretty-print.h (pp_c_left_bracket): Declare.
3440 (pp_c_right_bracket): Likewise.
3441 (pp_c_star): Likewise.
3442 (pp_c_ampersand): Likewise.
3443
3444 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3445
3446 * config/sol2.h (__enable_execute_stack): ANSIfy function
3447 definition.
3448
3449 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
3450
3451 * c-incpath.c (add_path): Canonicalize paths to use '/' if
3452 HAVE_DOS_BASED_FILESYSTEM.
3453
3454 2004-05-31 Steven Bosscher <stevenb@suse.de>
3455
3456 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
3457 Only look at case labels if the immediate dominator is also
3458 the only predecessor. Don't look for more case labels if the
3459 first seen is a case range.
3460
3461 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3462
3463 * builtins.c: Add a prototype for fold_builtin_strchr().
3464
3465 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
3466
3467 Revert this patch:
3468 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3469
3470 * combine.c (gen_binary): Remove.
3471 (known_cond, simplify_shift_const
3472 find_split_point, combine_simplify_rtx,
3473 simplify_if_then_else, simplify_set,
3474 simplify_logical, expand_field_assignment,
3475 extract_left_shift, force_to_mode,
3476 if_then_else_cond, apply_distributive_law,
3477 simplify_and_const_int, simplify_shift_const,
3478 gen_lowpart_for_combine, simplify_comparison,
3479 reversed_comparison): Replace with
3480 simplify_gen_binary, simplify_gen_relational or
3481 distribute_and_simplify_rtx.
3482 (distribute_and_simplify_rtx): New function.
3483
3484 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3485
3486 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
3487 when generating PIC code.
3488
3489 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3490
3491 * c-decl.c (c_expand_body_1): Remove and fold back into ...
3492 (c_expand_body): here.
3493 (c_expand_decl): Move to ...
3494 * c-common.c (c_expand_decl): Here and remove check for nested
3495 functions.
3496 * c-common.h (c_expand_decl): Add prototype.
3497 * c-tree.h (c_expand_decl): Remove.
3498
3499 2004-05-30 Roger Sayle <roger@eyesopen.com>
3500
3501 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
3502 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
3503 fold_mathfn_compare, fold_inf_compare, fold,
3504 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
3505 Use constant_boolean_node where appropriate. Don't bother using
3506 fold_convert on the second argument to omit_one_operand.
3507
3508 2004-05-30 Roger Sayle <roger@eyesopen.com>
3509
3510 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
3511 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
3512 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
3513 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
3514 Add missing (but documented) tree nodes to the index.
3515
3516 2004-05-30 Steven Bosscher <stevenb@suse.de>
3517
3518 PR tree-optimization/14819
3519 * builtins.c (fold_builtin_strchr): New.
3520 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
3521 with fold_builtin_strchr().
3522
3523 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3524
3525 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
3526 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
3527 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
3528 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
3529 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
3530 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
3531 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
3532 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
3533 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
3534 formatting.
3535
3536 2004-05-30 Steven Bosscher <stevenb@suse.de>
3537
3538 * gimplify.c (sort_case_labels): New. Split out from...
3539 (gimplify_switch_expr): ...here. Use it.
3540 * tree-eh.c (lower_try_finally_switch): Sort the labels of
3541 the SWITCH_EXPR created here before leaving the function.
3542 * tree.c (sort_case_labels): Add prototype.
3543
3544 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3545
3546 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
3547 of BOOLEAN_TYPE.
3548
3549 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3550
3551 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
3552 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
3553 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
3554 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
3555 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
3556 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
3557 comment typos. Follow spelling conventions.
3558
3559 2004-05-29 Geoffrey Keating <geoffk@apple.com>
3560
3561 * gengtype-yacc.y: Add NESTED_PTR token.
3562 (option): Record `nested_ptr' option.
3563 * gengtype-lex.l: Handle `nested_ptr' keyword.
3564 * gengtype.c (walk_type): Process `nested_ptr' option.
3565 * gengtype.h (struct nested_ptr_data): New.
3566 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
3567 * stringpool.c (struct string_pool_data): Make 'entries' point to
3568 ht_identifier instead of tree.
3569 (gt_pch_save_stringpool): Don't adjust pointers.
3570 (gt_pch_restore_stringpool): Call ht_load.
3571
3572 2004-05-29 Jason Merrill <jason@redhat.com>
3573
3574 * gimplify.c (gimplify_expr): Don't build a statement list
3575 if no gimplification was necessary.
3576
3577 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3578
3579 * pretty-print.c (pp_base_format_text): Support %< instead of %`
3580 and %> as well as %'.
3581 * c-format.c: Use %< and %>.
3582 (gcc_diag_char_table, gcc_cdiag_char_table,
3583 gcc_cxxdiag_char_table): Update.
3584
3585 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3586
3587 * c-typeck.c (common_type): Correct comment.
3588
3589 2004-05-29 Peter Barada <peter@the-baradas.com>
3590
3591 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
3592 * config/m68k/m68k.c (const_method): Likewise.
3593 * config/m68k/m68k.c (const_int_cost): Likewise.
3594 * config/m68k/m68k.c (const_int_cost): Likewise.
3595 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
3596
3597 2004-05-29 Peter Barada <peter@the-baradas.com>
3598
3599 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
3600 addressing.
3601 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
3602 movsi,movhi,movqi insn patterns.
3603
3604 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3605
3606 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
3607
3608 PR target/15720
3609 * config/darwin.c (machopic_indirect_call_target): Copy
3610 the SYMBOL_REF_DECL from the original RTX for the new
3611 stub RTX.
3612
3613 2004-05-28 DJ Delorie <dj@redhat.com>
3614
3615 * stor-layout.c (place_field): Revert erroneous commit.
3616
3617 2004-05-28 Ziemowit Laski <zlaski@apple.com>
3618
3619 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
3620 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
3621 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
3622 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
3623 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
3624 vec_ste): Remove type checks for integral parameters and literals
3625 from '..._args_eq' macros.
3626
3627 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3628
3629 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
3630
3631 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3632
3633 * testsuite/g++.dg/charset/function.cc: New.
3634
3635 * testsuite/gcc.dg/charset/function.c: New.
3636
3637 * c-decl.c (c_make_fname_decl): Free return value from
3638 fname_as_string.
3639
3640 * cp/decl.c (cp_make_fname_decl): Free return value from
3641 fname_as_string.
3642
3643 * c-common.c (fname_as_string): Translate if necessary.
3644
3645 2004-05-28 Geoffrey Keating <geoffk@apple.com>
3646
3647 * stringpool.c: Add comments to PCH saving/restoring routines.
3648
3649 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3650
3651 * c-common.c (c_estimate_num_insns_1): Kill.
3652 (c_estimate_num_insns): Kill.
3653 * c-common.h (c_estimate_num_insns): Kill.
3654
3655 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
3656 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
3657 Remove comment about not checking for
3658 _POSIX_PRIORITY_SCHEDULING.
3659 * gthr-posix.c: Likewise.
3660
3661 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
3662 Roger Sayle <roger@eyesopen.com>
3663
3664 PR rtl-optimization/15649
3665 Add LTGT_EXPR and improve pretty-printing of unordered
3666 comparisons.
3667 * c-common.c (c_common_truthvalue_conversion):
3668 Handle LTGT_EXPR.
3669 * c-typeck.c (build_binary_op): Likewise.
3670 * dojump.c (do_jump): Likewise.
3671 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
3672 * predict.c (tree_predict_by_opcode): Likewise.
3673 * real.c (real_compare): Likewise.
3674 * tree-cfg.c (verify_expr): Likewise.
3675 * tree-inline.c (estimate_num_insns_1): Likewise.
3676 * tree-pretty-print.c (dump_generic_node): Likewise.
3677 Handle ORDERED_EXPR, UNORDERED_EXPR.
3678 (op_symbol): Print unordered comparisons differently
3679 than ordered ones.
3680 * tree.def (LTGT_EXPR): New '<' tree code.
3681 * doc/c-tree.texi (Expressions): Document floating-point
3682 comparison nodes.
3683
3684 Fold comparisons between floating point values.
3685 * fold-const.c (enum comparison_code): New, from
3686 #define'd constants. Define compcodes for unordered
3687 comparisons and for invalid transformations.
3688 (invert_tree_comparison): Add "honor_nans" parameter.
3689 (fold_truthop): Revamp to work on floating-point types too.
3690 (comparison_to_compcode): Support unordered comparisons.
3691 Use new enum comparison_code.
3692 (compcode_to_comparison): Likewise.
3693 (combine_compcodes): New function.
3694 (invert_truthvalue): Let invert_tree_comparison decide
3695 whether it is valid to fold the comparison. Fold ORDERED
3696 and UNORDERED even if flag_unsafe_math_optimizations is off,
3697 and the remaining even if flag_unsafe_math_optimizations
3698 is off but we are under -fno-trapping-math.
3699 (fold_relational_const): Integer modes do not honor NaNs.
3700
3701 2004-05-28 Paul Brook <paul@codesourcery.com>
3702
3703 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
3704
3705 2004-05-28 Paul Brook <paul@codesourcery.com>
3706
3707 * config/arm/arm.c (thumb_force_lr_save): New function.
3708 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
3709 thumb_output_function_prologue): Use it.
3710 (thumb_expand_prologue): Set lr_save_eliminated.
3711
3712 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3713
3714 * config/mips/mips.md (extendsidi2): Tie the source and destination
3715 of the register alternative. Split it into nothing.
3716
3717 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3718
3719 * rtl.h (skip_consecutive_labels): Declare.
3720 * emit-rtl.c (skip_consecutive_labels): New function.
3721 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
3722 * jump.c (follow_jumps): Say what null return values mean.
3723
3724 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
3725
3726 PR target/13250
3727 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
3728
3729 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
3730
3731 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
3732 libgcc-std.ver.
3733 * config/sh/libgcc-std.ver: New file.
3734
3735 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3736
3737 * except.c: Revert change of 2004-05-26.
3738 * config/i386/i386.md: Revert change of 2004-05-27.
3739
3740 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3741
3742 * configure.ac: Remove --enable-tree-browser option.
3743 Define TREEBROWSER when ac_tree_checking is defined.
3744 * configure: Rebuilt.
3745
3746 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
3747
3748 * expr.c (store_constructor): Restore sanity check on
3749 the size of the type before clearing.
3750
3751 2004-05-27 Jan Hubicka <jh@suse.cz>
3752
3753 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
3754
3755 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3756
3757 * combine.c (gen_binary): Remove.
3758 (known_cond, simplify_shift_const
3759 find_split_point, combine_simplify_rtx,
3760 simplify_if_then_else, simplify_set,
3761 simplify_logical, expand_field_assignment,
3762 extract_left_shift, force_to_mode,
3763 if_then_else_cond, apply_distributive_law,
3764 simplify_and_const_int, simplify_shift_const,
3765 gen_lowpart_for_combine, simplify_comparison,
3766 reversed_comparison): Replace with
3767 simplify_gen_binary, simplify_gen_relational or
3768 distribute_and_simplify_rtx.
3769 (distribute_and_simplify_rtx): New function.
3770 * simplify-rtx.c (simplify_binary_operation):
3771 Use nonzero_bits to simplify ANDs where we are
3772 turning off bits already known to be off in OP0.
3773
3774 2004-05-27 Alan Modra <amodra@bigpond.net.au>
3775
3776 PR target/14478
3777 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
3778
3779 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
3780
3781 PR middle-end/14084
3782 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
3783 to size of decl.
3784
3785 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
3786
3787 PR/14924
3788 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
3789
3790 2004-05-26 Roger Sayle <roger@eyesopen.com>
3791
3792 * tree.h: Fix comment typo.
3793
3794 2004-05-27 Steven Bosscher <stevenb@suse.de>
3795
3796 * gimplify.c (compare_case_labels): New function.
3797 (gimplify_switch_expr): Sort case labels, and make sure the
3798 last label in the label vector is the default case.
3799 * tree-cfg.c (group_case_labels): New function.
3800 (build_tree_cfg): Cleanup redundant labels and group case labels
3801 before creating edges.
3802 (cleanup_dead_labels): Handle GOTO_EXPRs.
3803 (find_case_label_for_value): Use a binary search to find the
3804 case label for the given value.
3805 * tree-gimple.c: Mention that labels are sorted, and that the
3806 last label must be the default.
3807
3808 2004-05-27 Jan Hubicka <jh@suse.cz>
3809
3810 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
3811
3812 2004-05-27 Jan Hubicka <jh@suse.cz>
3813
3814 * i386.md (UNSPECV_EH_RETURN): Kill.
3815 (eh_return): Use jump_insn.
3816 (eh_return_si, eh_return_di): Change pattern to jump instruction.
3817
3818 2004-05-26 Jan Hubicka <jh@suse.cz>
3819
3820 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
3821 not loop optimizing.
3822
3823 2004-05-26 Jan Hubicka <jh@suse.cz>
3824
3825 * except.c (can_throw_internal): Notice RESX instructions.
3826
3827 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
3828
3829 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
3830 of the two sizes to assemble_integer.
3831
3832 2004-05-25 Paul Brook <paul@codesourcery.com>
3833
3834 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
3835 pointless #ifdef.
3836
3837 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
3838
3839 * Makefile.in (top_builddir): Define to .
3840
3841 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
3842
3843 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
3844 top-level detects, except when in-tree ld is being cross-built.
3845 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
3846 then AS only if target is host.
3847 * configure: Rebuilt.
3848
3849 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
3850
3851 * global.c (global_alloc): Call make_accurate_live_analysis.
3852 (record_one_conflict): Remove dead code.
3853 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
3854 (bb_info): New structure.
3855 (BB_INFO, BB_INFO_BY_INDEX): New macros.
3856 (allocate_bb_info, free_bb_info, mark_reg_change,
3857 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
3858 modify_bb_reg_pav, calculate_reg_pav,
3859 make_accurate_live_analysis): New functions.
3860
3861 2004-05-25 Devang Patel <dpatel@apple.com>
3862
3863 * alias.c (init_alias_analysis): Use ggc_calloc instead of
3864 xrealloc.
3865 (end_alias_analysis): Use ggc_free instead fo free.
3866
3867 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
3868
3869 PR target/15546
3870 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
3871 as needed to be outputted.
3872
3873 2004-05-25 Jan Hubicka <jh@suse.cz>
3874
3875 * builtins.def (__builtin_expect): Mark the function as const&nothrow.
3876
3877 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
3878 Mostafa Hagog <mustafa@il.ibm.com>
3879
3880 * Makefile.in (modulo-sched.o, ddg.o): New.
3881 * ddg.h, ddg.c, modulo-sched.c: New files.
3882 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
3883 internals to "dupicate_insn".
3884 (duplicate_insn): New function.
3885 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
3886 declarations.
3887 * common.opt (fmodulo-sched): New flag.
3888 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
3889 Remove static and forward declaration.
3890 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
3891 functions.
3892 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
3893 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
3894 declarations.
3895 * flags.h (flag_modulo_sched): New flag.
3896 * opts.c (common_handle_option): Handle modulo-sched flag.
3897 * params.def (max-sms-loop-number, sms-max-ii-factor,
3898 sms-dfa-history, sms-loop-average-count-threshold): New
3899 parameters.
3900 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
3901 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
3902 parameters.
3903 * passes.c ("sms", "sms-vcg"): New dumps.
3904 (rest_of_handle_sched): Call sms_schedule.
3905 * rtl.h (sms_schedule): New declaration.
3906 * timevar.def (TV_SMS): New.
3907 * toplev.c (flag_modulo_sched): Initialize.
3908 (f_options): Handle -fmodulo-sched option.
3909 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
3910 * docs/passes.texi: Document new SMS pass.
3911
3912 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
3913
3914 * Makefile.in (OBJS): Add rtlhooks.o.
3915 (rtlanal.o): Depend on function.h.
3916 (cse.o): Depend on rtlhooks-def.h.
3917 (combine.o): Depend on rtlhooks-def.h.
3918 (rtlhooks.o): New rule.
3919 * combine.c: Include rtlhooks-def.h.
3920 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3921 num_sign_bit_copies, cached_num_sign_bit_copies,
3922 num_sign_bit_copies1): Move most of the code to rtlanal.c.
3923 (reg_nonzero_bits_for_combine,
3924 reg_num_sign_bit_copies_for_combine): New functions holding
3925 the remnants of the above.
3926 (combine_rtl_hooks): New.
3927 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
3928 * cse.c: Include rtlhooks-def.h.
3929 (cse_rtl_hooks): New.
3930 (cse_main): Set rtl_hooks instead of gen_lowpart.
3931 * emit-rtl.c (gen_lowpart): Remove.
3932 (gen_lowpart_general): Move to rtlhooks.c.
3933 * rtl.h (nonzero_bits, num_sign_bit_copies,
3934 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
3935 (gen_lowpart_general): Remove.
3936 (gen_lowpart): Temporarily redefine as a macro.
3937 * rtlanal.c: Include function.h.
3938 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3939 num_sign_bit_copies, cached_num_sign_bit_copies,
3940 num_sign_bit_copies1): New, from combine.c.
3941 * rtlhooks.c: New file.
3942 * rtlhooks-def.h: New file.
3943
3944 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3945
3946 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
3947 to support 32-bit -mint8 mode.
3948
3949 * doc/invoke.texi (-mint8): Added documentation for the -mint8
3950 option in the AVR architecture.
3951
3952 2004-05-24 Mike Stump <mrs@apple.com>
3953
3954 * doc/install.texi: Document that dejagnu 1.4.4 is required.
3955
3956 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
3957
3958 * intl.h (open_quote, close_quote): New.
3959 * intl.c (open_quote, close_quote): New.
3960 (gcc_init_libintl): Set them.
3961 * pretty-print.c: Include "intl.h".
3962 (pp_base_format_text): Support 'q' format flag and %` and %'
3963 formats. Use ' instead of ` in comments.
3964 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
3965 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
3966 foramt_types_orig): Describe these new formats.
3967 (decode_format_attr, check_function_format,
3968 check_format_info_main): Use these new formats.
3969 (status_warning): Use ATTRIBUTE_GCC_DIAG.
3970 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
3971 check these formats to 3.5.
3972
3973 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3974
3975 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
3976 (BACKEND): Reflect this.
3977 (LIBDEPS): Move CPPLIB before LIBIBERTY.
3978 (LIBS): Likewise.
3979
3980 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
3981
3982 PR tree-optimization/14197
3983 * builtins.c: Include "tree-gimple.h"
3984 (readonly_data_expr): Use get_base_address. Make sure to call
3985 decl_readonly_section only on trees it can handle.
3986 * tree-gimple.c (get_base_address): Accept STRING_CST and
3987 CONSTRUCTOR expressions.
3988 * Makefile.in: Update dependencies.
3989
3990 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
3991
3992 Move libcpp to the toplevel.
3993 * Makefile.in: Remove references to libcpp files,
3994 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
3995 and change hashtable.h to that.
3996 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
3997 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
3998 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
3999 * configure: Regenerate.
4000 * config.in: Regenerate.
4001 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
4002 * cppcharset.c: Removed.
4003 * cpperror.c: Removed.
4004 * cppexp.c: Removed.
4005 * cppfiles.c: Removed.
4006 * cpphash.c: Removed.
4007 * cpphash.h: Removed.
4008 * cppinit.c: Removed.
4009 * cpplex.c: Removed.
4010 * cpplib.c: Removed.
4011 * cpplib.h: Removed.
4012 * cppmacro.c: Removed.
4013 * cpppch.c: Removed.
4014 * cpptrad.c: Removed.
4015 * cppucnid.h: Removed.
4016 * cppucnid.pl: Removed.
4017 * cppucnid.tab: Removed.
4018 * hashtable.c: Removed.
4019 * hashtable.h: Removed.
4020 * line-map.c: Removed.
4021 * line-map.h: Removed.
4022 * mkdeps.c: Removed.
4023 * mkdeps.h: Removed.
4024 * stringpool.h: Include symtab.h instead of hashtable.h.
4025 * tree.h: Include symtab.h instead of hashtable.h.
4026 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
4027
4028 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
4029
4030 * gcc.c (struct prefix_list): Add forward declaration.
4031 (do_spec_path): New function, extracted from...
4032 (do_spec_1) <'D'>: ... here. Drop support for
4033 SPACE_AFTER_L_OPTION.
4034 (do_spec_1) <'I'>: Use do_spec_path.
4035 (process_command): Do not store the 'include' suffix
4036 in include_prefixes.
4037 * system.h: Poison SPACE_AFTER_L_OPTION.
4038
4039 2002-05-23 Roger Sayle <roger@eyesopen.com>
4040
4041 * fold-const.c (non_lvalue): Explicitly list the tree codes that
4042 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
4043
4044 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
4045
4046 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
4047 Update based on printed manual. Enable setting of offsets for
4048 FSFPRINT and move it to gcc-common.texi.
4049 * doc/gcc.texi: Update FSF printing details.
4050 * doc/gccint.texi: Remove FSF printing details.
4051
4052 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
4053
4054 * config/rs6000/t-rs6000: Remove the disabling -Werror.
4055
4056 2004-05-22 Roger Sayle <roger@eyesopen.com>
4057
4058 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4059 expand_builtin_strrchr, expand_builtin_strpbrk,
4060 expand_builtin_mempcpy, expand_builtin_memcmp,
4061 expand_builtin_strcmp, expand_builtin_strncmp,
4062 expand_builtin_strcat, std_expand_builtin_va_start,
4063 std_expand_builtin_va_arg, expand_builtin_va_copy,
4064 expand_builtin_signbit, fold_builtin_cabs,
4065 fold_builtin_logarithm, fold_builtin_mempcpy,
4066 fold_builtin_signbit, fold_builtin_isascii,
4067 fold_builtin_toascii, fold_builtin_isdigit,
4068 fold_builtin_1, build_function_call_expr,
4069 simplify_builtin_strchr, simplify_builtin_strrchr,
4070 simplify_builtin_strpbrk, simplify_builtin_strncpy,
4071 simplify_builtin_memcmp, simplify_builtin_strcmp,
4072 simplify_builtin_strncmp, simplify_builtin_strncat,
4073 simplify_builtin_strspn, simplify_builtin_strcspn,
4074 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
4075 to build with calls to build2, build3 or omit_one_operand.
4076
4077 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
4078
4079 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
4080 section when generating EABI code.
4081
4082 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
4083
4084 PR 15546
4085 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
4086 Call mark_decl_referenced on the SYMBOL_REF_DECL.
4087
4088 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
4089
4090 * c-common.c (c_common_truthvalue_conversion): Handle
4091 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
4092 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
4093 i.e. set the type to truthvalue_type_node and return.
4094
4095 2004-05-22 Zack Weinberg <zack@codesourcery.com>
4096
4097 * tree.h (struct tree_decl): Add possibly_inlined bit.
4098 (DECL_POSSIBLY_INLINED): New accessor macro.
4099 * cgraph.h: Remove declaration of cgraph_inline_hash.
4100 * cgraph.c: Remove definition of cgraph_inline_hash.
4101 (hash_node): Revert to hashing DECL_UID.
4102 (eq_node): Take two pointers to cgraph_node structures.
4103 Compare DECL_UIDs.
4104 (cgraph_remove_node): Pass the node directly to htab_find_slot.
4105 (cgraph_varpool_hash_node): Rename hash_varpool_node;
4106 hash on DECL_UID.
4107 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
4108 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
4109 (cgraph_node): Allocate a temporary node on the stack, fill in
4110 its DECL field, and pass that to htab_find_slot.
4111 (cgraph_varpool_node): Likewise.
4112 (cgraph_function_possibly_inlined_p): If global info is ready,
4113 return the DECL_POSSIBLY_INLINED bit.
4114 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
4115 instead of mucking with cgraph_inline_hash.
4116
4117 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
4118
4119 * doc/contrib.texi: Add g77 contributors.
4120
4121 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
4122
4123 * calls.c (initialize_argument_information): Forbid sibcalls if a
4124 callee-copied argument is stored in the current function's frame.
4125
4126 2004-05-22 Eric Christopher <echristo@redhat.com>
4127
4128 * fix-header.c (read_scan_file): Update for add_path change.
4129
4130 2004-05-22 Ben Elliston <bje@au.ibm.com>
4131
4132 * c.opt (Wmissing-include-dirs): New.
4133 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
4134 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
4135 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
4136 * c-incpath.h (add_path): Add fourth (bool) argument.
4137 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
4138 (add_standard_paths): Likewise.
4139 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
4140 is used and the directory was user-supplied via -I.
4141 (add_path): Set p->user_supplied_p. Remove duplicated code by
4142 using add_cpp_dir_path ().
4143 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
4144 (struct cpp_dir): Add user_supplied_p.
4145 * doc/invoke.texi (Warning Options): Document new option.
4146
4147 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4148
4149 * fold-const.c (fold_read_from_constant_string): Convert result to
4150 requested type.
4151
4152 2004-05-21 Richard Henderson <rth@redhat.com>
4153
4154 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
4155 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
4156 Don't mark VA_ARG_EXPRs volatile here.
4157 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
4158
4159 2004-05-21 Richard Henderson <rth@redhat.com>
4160
4161 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
4162 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
4163
4164 2004-05-21 Roger Sayle <roger@eyesopen.com>
4165
4166 * fold-const.c (fold, fold_relational_hi_lo,
4167 nondestructive_fold_binary_to_constant,
4168 fold_read_from_constant_string): Use fold_convert instead of convert.
4169 * builtins.c (simplify_builtin, simplify_builtin_strstr,
4170 simplify_builtin_strchr, simplify_builtin_strrchr,
4171 simplify_builtin_strpbrk): Use fold_convert instead of convert.
4172
4173 2004-05-21 Diego Novillo <dnovillo@redhat.com>
4174
4175 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
4176 is NULL.
4177
4178 2004-05-21 Jakub Jelinek <jakub@redhat.com>
4179
4180 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
4181 override sparc.h definition.
4182
4183 2004-05-20 Roger Sayle <roger@eyesopen.com>
4184
4185 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
4186 get_unwidened, get_narrower): Replace build with build2.
4187 * fold-const.c (negate_expr, associate_trees, size_binop,
4188 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
4189 pedantic_omit_one_operand, distribute_bit_expr,
4190 make_bit_field_ref, optimize_bit_field_compare,
4191 decode_field_reference, range_binop, make_range,
4192 build_range_check, fold_range_test, fold_truthop,
4193 optimize_minmax_comparison, extract_muldiv_1,
4194 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
4195 fold_inf_compare, fold_single_bit_test, fold,
4196 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
4197 Likewise replace build with either build2 or build3.
4198
4199 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
4200
4201 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
4202 * calls.c (prepare_call_address): Don't test
4203 NO_RECURSIVE_FUNCTION_CSE.
4204 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
4205 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4206 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4207 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4208 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4209 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4210 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4211 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4212 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4213 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4214 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4215 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
4216 Likewise.
4217 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4218 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
4219 * doc/tm.texi (Costs): Remove documentation for
4220 NO_RECURSIVE_FUNCTION_CSE.
4221
4222 2004-05-20 Paul Brook <paul@codesourcery.com>
4223
4224 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
4225 * unwind-dw2.c (extract_cie_info): Ditto.
4226 (_Unwind_FrameState): Change retaddr_column to word type.
4227
4228 2004-05-20 Roger Sayle <roger@eyesopen.com>
4229
4230 PR middle-end/3074
4231 * fold-const.c (strip_compound_expr): Delete function.
4232 (count_cond): Delete function.
4233 (fold_binary_op_with_conditional_arg): Only perform transformations
4234 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
4235 when a is constant. This greatly simplifies this routine.
4236
4237 * tree.c (saved_expr_p): Delete function.
4238 * tree.h (saved_expr_p): Delete function prototype.
4239
4240 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
4241
4242 * common.opt (ftree-loop-optimize): Remove.
4243
4244 2004-05-20 Daniel Jacobowitz <dan@debian.org>
4245
4246 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
4247 (NM_FOR_TARGET): Use := and $(shell).
4248 (mainversion): Remove unused variable.
4249
4250 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4251
4252 * reorg.c (delete_from_delay_slot): If we have a barrier after the
4253 sequence containing the insn to be deleted, always reemit it.
4254
4255 2004-05-20 Richard Henderson <rth@redhat.com>
4256
4257 PR 15454
4258 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
4259 * function.c (expand_function_start): Expand static_chain_decl by hand.
4260 * gimplify.c (create_tmp_var_name): Export.
4261 * tree-gimple.h (create_tmp_var_name): Declare.
4262
4263 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
4264
4265 * rs6000.c (print_operand) <case 'z'>: Call
4266 mark_decl_referenced before assemble_name.
4267
4268 2004-05-20 Zack Weinberg <zack@codesourcery.com>
4269
4270 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4271 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4272 (cgraph_varpool_node): Hash on the pointer to the decl, not
4273 the DECL_UID. Fixes 64-bit bootstrap failure.
4274
4275 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
4276
4277 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
4278 we don't earlyclobber operands used in the second insn.
4279
4280 2004-05-20 Steven Bosscher <stevenb@suse.de>
4281
4282 * tree-mudflap.c: Formatting fixes.
4283
4284 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
4285
4286 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
4287 * gengtype.c (open_base_files): Include reload.h in ifiles.
4288 * reload.h (reg_equiv_memory_loc_varray): Declare.
4289 * reload1.c (reg_equiv_memory_loc_varray): New variable.
4290 (init_reload): Initialize it.
4291 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
4292 reg_equiv_memory_loc_varray to size 0.
4293 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
4294 growing reg_equiv_memory_loc_varray to the desired size.
4295 * passes.c (rest_of_handle_old_regalloc): Likewise.
4296 * reload.c: Amend comment on calling init_reload.
4297
4298 2004-05-20 Nick Clifton <nickc@redhat.com>
4299
4300 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
4301 with 'TRAMP' in the body of the macro definition.
4302
4303 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
4304
4305 PR target/15383
4306 * config/ia64/ia64.c (ia64_expand_compare): Don't check
4307 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
4308 cmptf_libfunc isn't set.
4309 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
4310 conventions.
4311 (ia64_sysv4_init_libfuncs): New.
4312
4313 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
4314 ia64_sysv4_init_libfuncs.
4315
4316 2004-05-20 Falk Hueffner <falk@debian.org>
4317
4318 PR other/15526
4319 * libgcc2.c (__mulvsi3): Fix overflow test.
4320
4321 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
4322
4323 PR c/14171
4324 * reg-stack.c (nan): Rename to ...
4325 (not_a_num): Here.
4326 (reg_to_stack): Rename nan to not_a_num.
4327 (subst_stack_regs_pat): Likewise.
4328 (convert_regs_entry): Likewise.
4329 (convert_regs_1): Likewise.
4330
4331 * tree-cfg.c (find_case_label_for_value): Replace call to
4332 simple_cst_equal with tree_int_cst_equal.
4333
4334 2004-05-19 Jeff Law <law@redhat.com>
4335
4336 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
4337 If the operand is for a use, then strip away the SSA_NAME, do not
4338 strip away the SSA_NAME for a set. Never call release_ssa_name.
4339 (mark_def_sites): Appropriately pass additional argument to
4340 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
4341 then set the VDEF_RESULT to the VDEF_OP.
4342 (set_def_block): Strip away any SSA_NAME to get to the real
4343 underlying variable.
4344
4345 * tree-ssa-phiopt.c (value_replacement): Handle the case where
4346 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
4347 BB directly.
4348
4349 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4350
4351 PR c++/15463
4352 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
4353 result of inverse.
4354
4355 PR rtl-optimization/15274
4356 * loop-iv.c (determine_max_iter, shorten_into_mode,
4357 iv_number_of_iterations): Handle constants correctly.
4358 * rtl.h (get_mode_bounds): Declaration changed.
4359 * stor-layout.c (get_mode_bounds): Return a constant suitable for
4360 the target mode.
4361
4362 PR rtl-optimization/14692
4363 * loop-unswitch.c (may_unswitch_on): Try folding the result.
4364 (unswitch_single_loop): Work correctly when may_unswitch_on
4365 returns a folded constant.
4366
4367 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
4368 * simplify-rtx.c (simplify_const_relational_operation): Optimize
4369 comparisons with mode bounds.
4370
4371 * function.c (struct temp_slot): Add new field prev.
4372 (free_after_compilation, init_temp_slots): Free new fields.
4373 (cut_slot_from_list, insert_slot_to_list,
4374 temp_slots_at_level, max_slot_level, move_slot_to_level,
4375 make_slot_available): New functions.
4376 (assign_stack_temp_for_type, combine_temp_slots,
4377 find_temp_slot_from_address, preserve_temp_slots,
4378 preserve_rtl_expr_result, free_temp_slots,
4379 free_temps_for_rtl_expr, pop_temp_slots): Work with
4380 the new structure of lists.
4381 (mark_all_temps_used): Removed.
4382 * function.h (struct function): Field x_temp_slots
4383 replaced by x_used_temp_slots and x_avail_temp_slots.
4384 (temp_slots): Replaced by ...
4385 (used_temp_slots, avail_temp_slots): New.
4386 * tree.h (mark_all_temps_used): Declaration removed.
4387
4388 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
4389 simplify_using_assignment): Take the expression out of
4390 the expr_list wrapper.
4391
4392 * loop-iv.c (iv_number_of_iterations): Improve clasification of
4393 infinite loops.
4394
4395 2004-05-19 Roger Sayle <roger@eyesopen.com>
4396
4397 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
4398 costs should be based on code size when optimizing for size.
4399
4400 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
4401
4402 * fold-const.c: Remove non-printable character 160.
4403
4404 2004-05-19 Nick Clifton <nickc@redhat.com>
4405
4406 * doc/invoke.texi (ARM Options): Fix typo.
4407 Remove descrption of -mshort-load-bytes and
4408 -mno-short-load-bytes.
4409
4410 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
4411 missing parenthesis.
4412 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
4413 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
4414
4415 2004-05-19 Steven Bosscher <stevenb@suse.de>
4416
4417 * expr.c (store_constructor): Build loop start and end by hand
4418 instead of via loop functions from stmt.c.
4419 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
4420 Remove the code to expand them.
4421
4422 * stmt.c (loop_stack): Remove this and everything related.
4423 (struct nesting, enum nesting_desc): Update.
4424 (expand_fixup): Likewise.
4425 (expand_loop_start, expand_start_loop_continue_elsewhere,
4426 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
4427 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
4428 expand_exit_loop_if_false, expand_exit_loop_top_cond,
4429 expand_exit_something): Remove.
4430 * tree.h: Remove prototypes.
4431
4432 2004-05-18 Mike Stump <mrs@apple.com>
4433 Devang Patel <dpatel@apple.com>
4434
4435 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
4436 if this label is for eh.
4437 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
4438 * config/darwin.c (darwin_emit_unwind_label): Likewise.
4439 * dwarf2out.c (output_call_frame_info): Likewise.
4440 * output.h (default_emit_unwind_label): Likewise.
4441 * target.h (unwind_label): Likewise.
4442 * varasm.c (default_emit_unwind_label): Likewise.
4443
4444 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4445 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
4446 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
4447 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
4448 DEBUG_RANGES_SECTION): Define.
4449
4450 2004-05-18 Zack Weinberg <zack@codesourcery.com>
4451
4452 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4453 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4454 (cgraph_varpool_node):
4455 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
4456 (cgraph_function_possibly_inlined_p): Use the decl itself for
4457 the key, not DECL_ASSEMBLER_NAME.
4458 (change_decl_assembler_name): No need to muck with the hash tables.
4459 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
4460 Delete.
4461 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
4462 for the key, not DECL_ASSEMBLER_NAME.
4463 * cgraph.h: Remove prototypes of deleted functions.
4464 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
4465 (mark_decl_referenced): New function.
4466 * tree.h: Prototype mark_decl_referenced.
4467 * final.c (output_addr_const) <case SYMBOL_REF>: Call
4468 mark_decl_referenced before assemble_name.
4469 * c-decl.c (finish_decl): Use mark_decl_referenced.
4470
4471 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
4472 Jeff Law <law@redhat.com>
4473
4474 * tree-ssa-phiopt.c (abs_replacement): New function.
4475 (empty_block_p): New function extracted from...
4476 (candidate_bb_for_phi_optimization): Break out empty block test.
4477 (conditional_replacement): Use empty_block_p.
4478 (value_replacement): Similarly.
4479
4480 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
4481 * tree-ssa-phiopt.c: Include flags.h.
4482 (conditional_replacement): Remove argument names from prototype.
4483 Minor formatting and comment fixes.
4484 (tree_ssa_phiopt): If conditional_replacement returns false, then
4485 call value_replacement.
4486 (value_replacement): New function.
4487
4488 2004-05-18 Jeff Law <law@redhat.com>
4489
4490 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
4491 from conditional_replacement.
4492 (candidate_bb_for_phi_optimization): Similarly.
4493 (conditional_replacement): Use replace_phi_with_stmt and
4494 candidate_bb_for_phi_optimization.
4495
4496 * tree-ssa-phiopt.c: Fix various formatting issues.
4497
4498 2004-05-18 Steven Bosscher <stevenb@suse.de>
4499
4500 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
4501 s390_expand_cmpmem): Do not use expand_start_loop and
4502 expand_end_loop, instead build the loop manually.
4503
4504 2004-05-18 Alan Modra <amodra@bigpond.net.au>
4505
4506 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
4507 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
4508
4509 2004-05-17 Jeff Law <law@redhat.com>
4510
4511 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
4512 * flags.h (flag_delete_null_pointer_checks): Here.
4513 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
4514 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
4515 (add_phi_arg, remove_phi_arg_num): Similarly.
4516 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
4517 property into PHI nodes.
4518 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
4519 (record_equivalences_from_phis): If all PHI arguments are known to be
4520 nonzero, then the result must be nonzero as well.
4521 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
4522 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
4523 appropriately. Walk the USE-DEF chains and propagate nonzero property
4524 as appropriate.
4525 * tree.h (PHI_ARG_NONZERO): Define.
4526 (phi_arg_d): Add nonzero flag.
4527
4528 2004-05-17 Zack Weinberg <zack@codesourcery.com>
4529
4530 * f: Entire directory removed
4531
4532 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
4533 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
4534 (g77_integer_type_node, g77_uinteger_type_node)
4535 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
4536 * c-common.c (c_common_nodes_and_builtins): Do not initialize
4537 the above set of variables.
4538
4539 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
4540 * doc/invoke.texi, doc/standards.texi: Remove cross-references
4541 to g77 manual.
4542
4543 2004-05-17 Steven Bosscher <stevenb@suse.de>
4544
4545 PR tree-optimization/15438
4546 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
4547 attributed functions as pure or const.
4548
4549 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
4550
4551 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
4552 from source code with errors.
4553
4554 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
4555
4556 Enable tree browser for all front ends.
4557 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
4558 (BACKEND): ...to here.
4559
4560 2004-05-17 Jan Hubicka <jh@suse.cz>
4561
4562 * i386.c (construct_container): Do not produce BLKmode registers.
4563 (classify_argument): Properly compute alignment of complex types.
4564
4565 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
4566
4567 PR target/15084
4568 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
4569 and renamed to movdi_insv_1_rex64.
4570 (insv): Support SImode for 32bit and DImode for 64bit.
4571
4572 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4573
4574 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
4575 (TARGET_SWITCHES): Remove debugg.
4576 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
4577 TARGET_64BIT.
4578 (subdi3): Replace the define_expand with a define_insn, the latter
4579 renamed from subdi3_internal_3.
4580 (negdi2): Likewise negdi2_internal_2.
4581 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
4582 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
4583 and associated define_splits.
4584 (adddi3_internal): Renamed from adddi3_internal_3.
4585 (ashldi3_internal): Likewise ashldi3_internal4.
4586 (ashrdi3_internal): Likewise ashrdi3_internal4.
4587 (lshrdi3_internal): Likewise lshrdi3_internal4.
4588
4589 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4590
4591 * optabs.c (expand_unop): Try implementing negation using subtraction
4592 from zero.
4593
4594 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4595
4596 * pa.md: Fix typo from last change. Remove DFmode move to and from
4597 SAR register.
4598
4599 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
4600
4601 PR target/10982
4602 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
4603 (ne_zeroextractsi_shifted): New pattern.
4604 (ite_ne_zeroextractsi): New pattern.
4605 (ite_ne_zeroextractsi_shifted): New pattern.
4606
4607 2004-05-15 Steven Bosscher <stevenb@suse.de>
4608
4609 * c-gimplify.c (c_genericize):
4610 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
4611 * c-parse.in <expr_no_commas>: Likewise.
4612 <if_prefix>: Likewise.
4613 <select_or_iter_stmt>: Likewise.
4614 * expr.c (expand_var, expand_expr_real_1): Likewise.
4615 * expr.h (expand_expr): Make it a static inline function.
4616 Move prototype for expand_expr_real up before this.
4617 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
4618 Likewise.
4619 * gimplify.c (gimple_boolify, gimplify_addr_expr,
4620 gimplify_asm_expr, gimplify_expr): Likewise.
4621 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
4622 dump_function_to_file): Likewise.
4623 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
4624 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
4625 * tree-into-ssa.c (dump_tree_ssa): Likewise.
4626 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
4627 Likewise.
4628 * tree-optimize.c (execute_one_pass): Likewise.
4629 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
4630 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
4631
4632 * objc/objc-act.c (objc_build_try_enter_fragment,
4633 objc_build_try_epilogue, objc_build_catch_stmt,
4634 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
4635 with lang_hooks.foo ().
4636
4637 2004-05-15 Roger Sayle <roger@eyesopen.com>
4638
4639 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
4640 that simplify_builtin doesn't destructively modify its argument.
4641
4642 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4643
4644 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
4645 implementations for ARM and Thumb.
4646 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
4647
4648 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
4649
4650 * prefix.c (update_path): Replace PREFIX with KEY only
4651 when it matches a full directory name in PATH.
4652
4653 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4654
4655 * arm.h (TARGET_APCS_32): Delete.
4656 (TARGET_MMU_TRAPS): Delete.
4657 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
4658 define __APCS_26__.
4659 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
4660 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
4661 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
4662 (prog_mode_type): Delete.
4663 (PROMOTE_MODE): Always promote unsigned for HImode.
4664 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
4665 (MASK_RETURN_ADDR): Simplify.
4666 * arm.c (arm_prgmode): Delete.
4667 (arm_override_options, arm_gen_rotated_half_load): Simplify.
4668 (print_multi_reg, output_return_instruction): Simplify.
4669 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
4670 (arm_return_addr): Simplify.
4671 * arm.md (prog_mode): Delete.
4672 (conds): Simplify.
4673 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
4674 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
4675 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
4676 (loadhi_shiftpredec): Delete.
4677 (peephole for post-increment on HImode load): Delete.
4678 * arm/crtn.asm: (FUNC_END): Simplify.
4679 * arm/lib1funcs.asm: Remove APCS-26 return macros.
4680 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
4681 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
4682 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
4683 MULTILIB_DEFAULTS as required.
4684 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
4685 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
4686 variables as required.
4687 * doc/invoke.texi (ARM Options): Remove obsolete flags.
4688
4689 2004-05-15 Alan Modra <amodra@bigpond.net.au>
4690
4691 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
4692 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
4693 count to 8 to handle n_reg > 2.
4694
4695 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4696
4697 * doc/extend.texi: Update WG14 URL.
4698
4699 2004-05-15 Steven Bosscher <stevenb@suse.de>
4700
4701 * basic-block.h (life_analysis, delete_noop_moves):
4702 Update prototypes.
4703 * bt-load.c (branch_target_load_optimize): Don't take the
4704 insns stream as an argument. Update the life_analysis calls.
4705 * combine.c (combine_instructions): Update delete_noop_moves
4706 calls.
4707 * flow.c (notice_stack_pointer_modification): Don't take the
4708 insns stream as an argument. Work on the flow graph.
4709 (life_analysis): Likewise.
4710 (delete_noop_moves): Likewise.
4711 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
4712 (rest_of_handle_life): Update life_analysis call.
4713 (rest_of_compilation): Likewise, and also update
4714 branch_target_load_optimize call.
4715 * ra.c (reg_alloc): Update life_analysis call.
4716 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
4717 the insns stream as an argument.
4718 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
4719 call.
4720 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
4721 prototypes.
4722 * value-profile.c (branch_prob): Update life_analysis call.
4723 * web.c (web_main): Work on the CFG, not on the insns stream.
4724
4725 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
4726 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
4727 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4728
4729 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4730
4731 PR c/15444
4732 * c-format.c (avoid_dollar_number): New function.
4733 (check_format_info_main): Call avoid_dollar_number when operand
4734 numbers might occur but has_operand_number == 0.
4735
4736 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
4737
4738 * arm.md (all peephole2 patterns): Use predicates that validate
4739 register classes as appropriate.
4740
4741 2004-05-14 Steven Bosscher <stevenb@suse.de>
4742
4743 PR opt/14472
4744 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
4745 ignore type conversions that do not inhibit tail calling.
4746 (find_tail_calls): Likewise.
4747
4748 2004-05-14 Jeff Law <law@redhat.com>
4749
4750 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
4751 bother marking bypassed virtuals for out-of-ssa. Instead merge
4752 bypassed virtuals into vars_to_rename just before into-ssa pass.
4753
4754 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
4755 so that it picks up more opportunities to eliminate ABS expressions
4756 or turn them into negations.
4757
4758 2004-05-14 Steven Bosscher <stevenb@suse.de>
4759
4760 * passes.c (rest_of_handle_null_pointer): Remove.
4761 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
4762 (rest_of_compilation): Likewise.
4763 * rtl.h (delete_null_pointer_checks): Remove prototype.
4764 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
4765 Remove declarations.
4766 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
4767 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
4768 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
4769 expr_reaches_here_p, computing_insn, def_reaches_here_p,
4770 can_disregard_other_sets, handle_avail_expr, classic_gcse,
4771 one_classic_gcse_pass, invalidate_nonnull_info,
4772 delete_null_pointer_checks_1, delete_null_pointer_checks,
4773 expr_reached_here_p_work): Remove.
4774 (gcse_main): Do not perform classic GCSE when optimizing for size.
4775 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
4776 are never used.
4777
4778 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
4779
4780 PR optimization/14466
4781 * tree-complex.c (make_temp): Remove.
4782 (gimplify_val): Replace make_temp with make_rename_temp
4783 and add NULL as the second argument.
4784 (expand_complex_div_wide): Likewise.
4785 * tree-dfa.c (make_rename_temp): New function.
4786 * tree-flow.h (make_rename_temp): Declare.
4787 * tree-sra.c (make_temp): Remove.
4788 (lookup_scalar): Replace make_temp with make_rename_temp.
4789 (create_scalar_copies): Likewise.
4790 * tree-ssa-phiopt.c (conditional_replacement): When we
4791 get non gimple create a temporary variable to hold the
4792 casted expression.
4793
4794 2004-05-14 Paul Brook <paul@codesourcery.com>
4795
4796 * stor-layout.c (update_alignment_for_field): Use
4797 targetm.align_anon_bitfield.
4798 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
4799 (TARGET_INITIALIZER): Use it.
4800 * target.h (struct gcc_target): Add align_anon_bitfield.
4801 * config/arm/arm.c (arm_align_anon_bitfield): New function.
4802 (TARGET_ALIGN_ANON_BITFIELD): Define.
4803 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
4804
4805 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4806
4807 * tree.def (documentation): Remove mention of class 'b'.
4808 (BLOCK): Now in class 'x'.
4809 * c-common.c (verify_tree): Remove case 'b'.
4810 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
4811 * calls.c (calls_function_1): Control cannot get past the switch
4812 when exp is a BLOCK.
4813 * print-tree.c (print_node): Move code for class 'b' to the class
4814 'c'/'x' switch, as case BLOCK.
4815 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
4816 (unsafe_for_reeval, substitute_placeholder_in_expr)
4817 (stabilize_reference_1): Remove case 'b'.
4818 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
4819 of something being 'b' to tests for TREE_CODE of something being
4820 BLOCK.
4821 * tree-ssa-operands.c (get_expr_operands): Likewise.
4822
4823 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4824
4825 * tree-gimple.c: Rename from tree-simple.c.
4826 * tree-gimple.h: Rename from tree-simple.h.
4827 * c-gimplify.c: Rename from c-simplify.c
4828 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
4829 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
4830 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
4831 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
4832 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
4833 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
4834 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
4835 Update.
4836
4837 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
4838
4839 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
4840
4841 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
4842
4843 * tree-ssa.c (delete_tree_ssa): XFREE
4844 bitmaps allocated with BITMAP_XMALLOC.
4845
4846 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
4847 idfs_cache at the end of the function.
4848
4849 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
4850 at the end of the function.
4851
4852 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
4853 el at the end of the function.
4854
4855 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
4856 bitmaps allocated with BITMAP_XMALLOC.
4857
4858 * loop-unswitch.c (unswitch_single_loop): Free bbs at
4859 the end.
4860
4861 * final.c (shorten_branches): Free uid_shuid before
4862 reallocating it.
4863
4864 * bb-reoder.c (connect_traces): Free cold_traces at the end.
4865
4866 2004-05-13 Jeff Law <law@redhat.com>
4867
4868 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
4869 variables. Simplify slightly by using USE_OP/DEF_OP instead
4870 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
4871
4872 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
4873 rather than iterating through the blocks testing each bit in
4874 livein to initialize the worklist.
4875 (mark_def_sites): Remove useless checks of KILLS for virtual
4876 operands.
4877
4878 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
4879 new parameters for the statement and variable worklist as well
4880 as a bitmap of interesting SSA_NAMEs. Walk over the statement
4881 worklist recording interesting variables in the variable worklist
4882 and bitmap. Handle casts between integral and boolean types.
4883 (substitute_single_use_vars): Accept new parameters for the statement
4884 and variable worklist. When a substitution is made add a new
4885 entry to the statement worklist. Handle casts between integral
4886 and boolean types.
4887 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
4888 worklists to children. Iterate until the statement worklist
4889 is empty.
4890
4891 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
4892
4893 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
4894 the end of the block.
4895
4896 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
4897 with BITMAP_XMALLOC.
4898
4899 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
4900 with BITMAP_XMALLOC.
4901
4902 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
4903 Free nonzero_vars at the end of the function.
4904
4905 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
4906 need to generate code instead of a NOP_EXPR.
4907
4908 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
4909
4910 * gcc.c (default_compilers): Fill out initializers for new Fortran
4911 entries.
4912
4913 2004-05-13 Paul Brook <paul@codesourcery.com>
4914
4915 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
4916
4917 2004-05-13 Paul Brook <paul@codesourcery.com>
4918
4919 * config/arm/arm.c (arm_default_short_enums): New function.
4920 (TARGET_DEFAULT_SHORT_ENUMS): Define.
4921
4922 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4923
4924 Merge from tree-ssa-20020619-branch.
4925
4926 * Makefile.in (reload1.o-warn): Add.
4927 (tree-alias-ander.o-warn): Add.
4928 (GMPLIBS): Define.
4929 (GMPINC): Define.
4930 (BANSHEELIB): Define.
4931 (BANSHEEINC): Define.
4932 (TREE_DUMP_H): Define.
4933 (TREE_SIMPLE_H): Define.
4934 (TREE_FLOW_H): Define.
4935 (LIBDEPS): Add BANSHEELIB.
4936 (INCLUDES): Add BANSHEEINC and GMPINC.
4937 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
4938 c-mudflap.o and c-pretty-print.o.
4939 (C_OBJS): Remove c-pretty-print.o.
4940 (OBJS-common): Remove sibcall.o.
4941 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
4942 tree-ssa.o, tree-optimize.o, tree-simple.o,
4943 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
4944 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
4945 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
4946 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
4947 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
4948 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
4949 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
4950 tree-tailcall.o, gimple-low.o, tree-iterator.o,
4951 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
4952 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
4953 tree-profile.o.
4954 (OBJC-archive): Add tree-nomudflap.o.
4955 (cc1): Add dependency on @TREEBROWSER@.
4956 (c-decl.o): Add dependency on TREE_DUMP_H.
4957 (c-dump.o): Likewise.
4958 (c-common.o): Add dependency on tree-iterator.h
4959 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
4960 (gtype-desc.o): Add dependency on TREE_FLOW_H.
4961 (tree.o): Add dependency on tree-iterator.h,
4962 BASIC_BLOCK_H and TREE_FLOW_H.
4963 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
4964 (langhooks.o): Add dependency on TREE_SIMPLE_H.
4965 (tree-alias-type.o, tree-alias-ander.o,
4966 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
4967 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
4968 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
4969 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
4970 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
4971 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
4972 tree-nested.o, tree-iterator.o, tree-dfa.o,
4973 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
4974 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
4975 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
4976 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
4977 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
4978 tree-sra.o, tree-complex.o, tree-profile.o,
4979 rtl-profile.o): New rules.
4980 (function.o): Add dependency on basic-block.h
4981 (expr.o): Add dependency on tree-iterator.h.
4982 (sibcall.o): Remove.
4983 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
4984 (cfg.o): Add dependency on TIMEVAR_H.
4985 (cfghooks.o): Add dependency on TREE_FLOW_H.
4986 (reg-stack.o): Add dependency on basic-block.h.
4987 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
4988 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
4989 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
4990 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
4991 tree-alias-type.h, tree-alias-common.h,
4992 tree-alias-type.c, tree-alias-common.c,
4993 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
4994 rtl-profile.c and tree-nested.c.
4995 (gt-tree-alias-common.h, gt-tree-mudflap.h,
4996 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
4997 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
4998 gt-tree-cfg.h, gt-tree-nested.h): New rules.
4999 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
5000 * basic-block.h: Include predict.h
5001 (struct edge_def): Add GTY marker.
5002 Change field 'insns' to be a union of tree and rtx.
5003 (EDGE_TRUE_VALUE): Define.
5004 (EDGE_FALSE_VALUE): Define.
5005 (EDGE_EXECUTABLE): Define.
5006 (struct bb_ann_d): Forward declare.
5007 (struct basic_block_def): Add GTY marker.
5008 Remove fields head_tree and end_tree.
5009 Add fields stmt_list, rbi and tree_annotations.
5010 (struct reorder_block_def): Define.
5011 (basic_block_info): Add GTY marker.
5012 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
5013 variables instead of macros.
5014 (flow_call_edges_add): Remove declaration.
5015 (make_eh_edge): Remove declaration.
5016 (brief_dump_cfg, find_edge, tree_predicted_by_p,
5017 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
5018 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
5019 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
5020 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
5021 (try_redirect_by_replacing_jump): Modfiy return type to
5022 edge instead of bool.
5023 * bb-reorder.c (copy_bb): Call duplicate_block
5024 instead of cfg_layout_duplicate_bb.
5025 (copy_bb_p): Call can_duplicate_block_p instead of
5026 cfg_layout_can_duplicate_bb_p.
5027 * bitmap.c (bitmap_first_set_bit): Abort if word
5028 wasn't found.
5029 (bitmap_last_set_bit): Likewise.
5030 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
5031 (DEF_FUNCTION_TYPE_3): Add.
5032 * builtins.c (c_strlen): Make extern.
5033 (builtin_save_expr): New.
5034 (expand_builtin_nonlocal_goto): New.
5035 (expand_builtin_constant_p): Remove.
5036 (expand_builtin_mathfn): Call builtin_save_expr instead
5037 of save_expr.
5038 (expand_builtin_mathfn_2): Likewise.
5039 (expand_builtin_strcmp): Likewise.
5040 (expand_builtin_strncmp): Likewise.
5041 (expand_builtin_strcat): Likewise.
5042 (fold_builtin_cabs): Likewise.
5043 (expand_builtin_alloca): Don't trigger if -fmudflap is
5044 given.
5045 (build_string_literal): Set TREE_INVARIANT on new node.
5046 (expand_builtin_profile_fun): New.
5047 (round_trampoline_addr): New.
5048 (expand_builtin_init_trampoline): New.
5049 (expand_builtin_adjust_trampoline): New.
5050 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
5051 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
5052 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
5053 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
5054 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
5055 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
5056 Handle.
5057 (fold_builtin_expect): New.
5058 (fold_builtin_isascii): Don't return non-constant results
5059 in GIMPLE form.
5060 (fold_builtin_isdigit): Likewise.
5061 (fold_builtin_1): New.
5062 (fold_builtin): Call it.
5063 (build_function_call_expr): Update call to build a new
5064 CALL_EXPR.
5065 (purge_builtin_constant_p): Remove.
5066 (simplify_builtin, simplify_builtin_memcmp,
5067 simplify_builtin_strcmp, simplify_builtin_strncmp,
5068 simplify_builtin_strpbrk, simplify_builtin_strstr,
5069 simplify_builtin_strchr, simplify_builtin_strrchr,
5070 simplify_builtin_strcat, simplify_builtin_strncat,
5071 simplify_builtin_strspn, simplify_builtin_strcspn,
5072 simplify_builtin_next_arg, simplify_builtin_va_start,
5073 simplify_builtin_sprintf): New.
5074 * builtins.def (BUILT_IN_STACK_ALLOC,
5075 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
5076 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
5077 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
5078 BUILT_IN_PROFILE_FUNC_EXIT): Define.
5079 * c-common.c: Include tree-iterator.h and hashtab.h.
5080 (lang_statement_code_p): Declare.
5081 (lang_gimplify_stmt): Declare.
5082 (fix_string_type): Set TREE_INVARIANT for value.
5083 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
5084 (c_type_hash): New.
5085 (c_common_get_alias_set): Handle multiple type nodes
5086 referring to "the same" type, currently for C90 only.
5087 (c_add_case_label): Use create_artificial_label.
5088 (finish_label_address_expr): Don't set TREE_CONSTANT on
5089 result.
5090 (c_expand_expr): Don't handle STMT_EXPR.
5091 (handle_alias_attribute): Marke aliased variables to be
5092 TREE_STATIC.
5093 (handle_nonnull_attribute): Initialize arg_num.
5094 (check_function_nonnull): Likewise.
5095 (c_walk_subtrees): New.
5096 (c_estimate_num_insns_1): Don't handle
5097 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
5098 (c_decl_uninit_1): Remove.
5099 (c_decl_uninit): Remove.
5100 (c_warn_unused_result): New.
5101 * c-common.def (ASM_STMT): Change number of operands
5102 to 4.
5103 (FILE_STMT): Remove.
5104 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
5105 Remove.
5106 (lang_gimplify_stmt): Add.
5107 (expand_stmt): Remove.
5108 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
5109 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
5110 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
5111 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
5112 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
5113 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5114 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5115 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
5116 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
5117 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
5118 genrtl_compound_stmt, genrtl_asm_stmt,
5119 genrtl_cleanup_stmt, c_decl_uninit): Remove.
5120 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
5121 c_tree_chain_matters_p, c_warn_unused_result,
5122 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
5123 Declare.
5124 * c-convert.c (convert): Make convert work when
5125 converting to compatible types across translation unit.
5126 * c-decl.c: Include langhooks.h, tree-mudflap.h,
5127 tree-simple.h, diagnostic.h and tree-dump.h
5128 (merge_decls): Initialize oldtype to NULL.
5129 (finish_decl): Use DECL_HARD_REGISTER instead of
5130 DECL_C_HARD_REGISTER.
5131 (check_bitfield_type_and_width): Check for null
5132 lang_type_specific when check the precision of an enum.
5133 (grokdeclarator): Immediately layout an ARRAY_TYPE used
5134 in a pointer-to-array declarator.
5135 (finish_struct): Clear allocated struct lang_type.
5136 (finish_enum): Set enum_min and enum_max. Set
5137 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
5138 not to the enumerators.
5139 (set_decl_nonlocal): New.
5140 (store_parm_decls): Use it via walk_tree.
5141 (c_finalize): New.
5142 (finish_function): When !targetm.have_ctors_dtors,
5143 record static constructors and destructors here...
5144 (c_expand_body_1): ... not here.
5145 (c_expand_decl): Rename from c_expand_decl_stmt.
5146 Handle all C-specific expansion semantics.
5147 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
5148 STMT_LINENO.
5149 * c-format.c (handle_format_arg_attribute): Initialize
5150 format_num.
5151 * c-lang.c: Include tree-inline.h
5152 (LANG_HOOKS_EXPAND_DECL,
5153 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5154 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
5155 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
5156 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
5157 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
5158 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
5159 (c_types_compatible_p): New.
5160 * c-mudflap.c: New file.
5161 * c-objc-common.c: Include tree-mudflap.h
5162 (start_cdtor, finish_cdtor): Collapse
5163 together into
5164 (build_cdtor): ...here. Update to construct a complete tree
5165 for the function. No need to call push_scope, pop_scope, or
5166 clear_last_expr, or set current_function_cannot_inline.
5167 (c_missing_noreturn_ok_p): Change prototype to return
5168 bool.
5169 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
5170 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
5171 opts.c.
5172 (c_common_post_options): Don't ever use rtl inlining.
5173 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
5174 * c-pragma.c (handle_pragma_redefine_extname): Define
5175 always.
5176 (init_pragma): Activate #pragma redefine_extname for mudflap.
5177 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
5178 (pp_c_initializer): Accept any type CONSTRUCTOR.
5179 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
5180 COMPLEX_TYPE.
5181 (decl_name_str): New local function.
5182 (pp_c_direct_declarator): Call it.
5183 (pp_c_primary_expression): Call it.
5184 (pp_c_id_expression): Call it.
5185 (pp_c_statement): Call it.
5186 (print_c_tree): Create new pp object.
5187 * c-pretty-print.h (pp_c_tree_decl_identifier,
5188 print_c_tree): Declare.
5189 * c-semantics.c: Include langhooks.h
5190 (lang_expand_stmt, lang_expand_decl_stmt,
5191 find_reachable_label_1, find_reachable_label,
5192 expand_unreachable_if_stmt, expand_unreachable_stmt,
5193 genrtl_do_stmt_1): Remove.
5194 (begin_stmt_tree): Don't check for changed filename.
5195 Call annotate_with_locus.
5196 (finish_stmt_tree): Don't set line for end of function.
5197 (build_stmt): Don't check type nodes for
5198 side effects.
5199 (build_stmt): Set TREE_SIDE_EFFECTS.
5200 Set EXPR_LOCUS instead of STMT_LINENO.
5201 (lang_expand_stmt, lang_expand_decl_stmt,
5202 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5203 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5204 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
5205 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
5206 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
5207 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
5208 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
5209 find_reachable_label_1, expand_unreachable_if_stmt,
5210 expand_unreachable_stmt): Remove.
5211 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
5212 * c-simplify.c: New file.
5213 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
5214 (struct lang_type): Add fields enum_min and enum_max.
5215 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
5216 (c_expand_decl, c_missing_noreturn_ok_p,
5217 c_types_compatible_p): Declare.
5218 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
5219 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
5220 (default_function_array_conversion): Rely on build to
5221 set TREE_CONSTANT.
5222 (parser_build_binary_op, pointer_diff): Likewise.
5223 (build_unary_op, build_binary_op): Likewise.
5224 (build_array_ref):
5225 (build_external_ref): Set TREE_INVARIANT.
5226 (build_c_cast, pop_init_level): Likewise.
5227 (process_init_element): Use ASM_VOLATILE_P.
5228 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
5229 (c_finish_case): Call c_do_switch_warnings.
5230 * c.opt (fdump-): Remove.
5231 * calls.c (try_to_integrate): Remove.
5232 (prepare_call_address): Replace fndecl arg with a
5233 precomputed static chain value.
5234 (emit_call_1): New argument for full call expr.
5235 (flags_from_decl_or_type): Call special_function_p.
5236 (initialize_argument_information): Add argument
5237 may_tailcall.
5238 (purge_reg_equiv_notes): New.
5239 (expand_call): Do not try to expand calls inline.
5240 (fixup_tail_calls): New.
5241 * cfg.c: Include timevar.h and ggc.h.
5242 (bb_pool, edge_pool): Remove.
5243 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
5244 (entry_exit_blocks): Remove.
5245 (rbi_pool): Declare.
5246 (init_flow): Do not create pools.
5247 Allocate entry/exit block.
5248 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
5249 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
5250 (unlink_block): Clear b->prev_bb and b->next_bb.
5251 (compact_blocks): Clear all slots of BASIC_BLOCK array.
5252 (dump_flow_info): Work on trees too.
5253 (dump_cfg_bb_info): New.
5254 (brief_dump_cfg): New.
5255 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
5256 (find_edge): New.
5257 * cfgbuild.c (rtl_make_eh_edge): Rename from
5258 make_eh_edge. Update all users.
5259 (find_basic_blocks): Don't call VARRAY_FREE on
5260 basic_block_info.
5261 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
5262 and newpos2.
5263 (delete_unreachable_blocks): Return changed status.
5264 (merge_seq_blocks): New.
5265 * cfghooks.c: Include tree-flow.h
5266 (tree_register_cfg_hooks, ir_type): New.
5267 (redirect_edge_and_branch): Change return type to edge.
5268 (predict_edge, predicted_by_p, can_duplicate_block_p,
5269 duplicate_block, block_ends_with_call_p,
5270 block_ends_with_condjump_p, flow_call_edges_add): New.
5271 * cfghooks.h (redirect_edge_and_branch): Change return
5272 type to edge.
5273 (predict_edge, predicted_by_p, can_duplicate_block_p,
5274 duplicate_block, block_ends_with_call_p,
5275 block_ends_with_condjump_p, flow_call_edges_add): Declare.
5276 (redirect_edge_and_branch): Change return type to edge.
5277 (struct cfg_hooks): Add fields block_ends_with_call_p,
5278 block_ends_with_condjump_p, flow_call_edges_add,
5279 predict_edge, predicted_by_p, can_duplicate_block_p and
5280 duplicate_block.
5281 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
5282 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
5283 (fixup_reorder_chain): Use initialize_bb_rbi.
5284 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
5285 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
5286 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
5287 (insn_locators_initialize): Use new info about blocks.
5288 * cfglayout.h (typedef struct reorder_block_def): Moved to
5289 basic_block.h.
5290 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
5291 removed.
5292 * cfgloop.c: Include tree.h and tree-flow.h.
5293 * cfgloop.h (create_loop_notes): Declare.
5294 * cfgloopmanip.c (create_loop_notes): New.
5295 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
5296 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
5297 and duplicate_block fields.
5298 (create_basic_block_structure): Don't look at
5299 RTX_INTEGRATED_P.
5300 (rtl_block_ends_with_call_p): New.
5301 (rtl_block_ends_with_condjump_p): New.
5302 (need_fake_edge_p): Moved from cfganal.c.
5303 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
5304 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
5305 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
5306 (cfg_layout_rtl_cfg_hooks): Ditto.
5307 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
5308 functions to be reachable.
5309 * cgraphunit.c (decide_is_function_needed):
5310 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
5311 inline functions don't need to be output.
5312 (cgraph_assemble_pending_functions): Don't do anything
5313 special for nested functions.
5314 (cgraph_mark_functions_to_output): Likewise.
5315 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
5316 (cgraph_analyze_function): Use estimate_num_insns.
5317 (cgraph_mark_functions_to_output): Likewise.
5318 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
5319 (cgraph_expand_function): Allow functions to not be
5320 emitted.
5321 (cgraph_remove_unreachable_nodes):
5322 (cgraph_recursive_inlining_p): Simplify.
5323 (lookup_recursive_calls,
5324 cgraph_decide_recursive_inlining): New.
5325 (cgraph_decide_inlining_*): Update calls of
5326 cgraph_mark_inline.
5327 * combine.c (get_pos_from_mask): Always set *plen.
5328 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
5329 ftree-based-profiling, ftree-ccp, ftree-ch,
5330 ftree-combine-temps, ftree-copyrename, ftree-dce,
5331 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
5332 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
5333 ftree-lrs): Add.
5334 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
5335 Undefine.
5336 * configure.ac: Add --enable-tree-browser option.
5337 Add --with-libbanshee option.
5338 Add GMPLIBS and GMPINC.
5339 * configure: Regenerate.
5340 * coverage.c (tree_ctr_tables): New.
5341 (coverage_counter_alloc): Use it.
5342 (build_ctr_info_value): Ditto.
5343 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
5344 (tree_coverage_counter_ref): New.
5345 * coverage.h (coverage_counter_ref): Remove declaration.
5346 (rtl_coverage_counter_ref): Declare.
5347 (tree_coverage_counter_ref): Declare.
5348 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
5349 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
5350 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
5351 (struct cse_basic_block_data): Rename enum values to not
5352 conflict with profile.h; update all uses.
5353 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
5354 in comments.
5355 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
5356 * diagnostic.h (debug_output_buffer, dump_generic_node,
5357 print_generic_stmt, print_generic_stmt_indented,
5358 print_generic_expr, print_generic_decl,
5359 debug_generic_expr, debug_generic_stmt, debug_c_tree):
5360 Declare.
5361 * dominance.c: Cache immediate dominators.
5362 * domwalk.c: New file.
5363 * domwalk.h: New file.
5364 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
5365 (gen_subprogram_die): Generate a DIE for a named
5366 return value.
5367 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
5368 (add_location_or_const_value_attribute): Likewise.
5369 (add_bound_info): Likewise.
5370 (gen_decl_die): Likewise.
5371 * emit-rtl.c (maybe_set_first_label_num): New.
5372 (copy_most_rtx): Don't copy the integrated flag.
5373 Copy the new return_val flag.
5374 * et-forest.c (MAX_NODES): Define.
5375 (record_path_before_1): Abort if len is greater than
5376 MAX_NODES.
5377 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
5378 gen_eh_region_catch, gen_eh_region_allowed,
5379 gen_eh_region_must_not_throw, get_eh_region_number,
5380 get_eh_region_may_contain_throw, get_eh_region_tree_label,
5381 set_eh_region_tree_label, expand_resx_expr): New.
5382 (expand_eh_region_start, expand_start_catch): Use them.
5383 (expand_end_catch): Tidy.
5384 (note_eh_region_may_contain_throw): Take region argument.
5385 (note_current_region_may_contain_throw): New.
5386 (get_exception_filter): Export.
5387 (collect_eh_region_array): Export.
5388 (remove_unreachable_regions): Check ERT_TRY based on reachability
5389 of catches, not reachability of continue_label. Never remove
5390 ERT_MUST_NOT_THROW regions.
5391 (collect_rtl_labels_from_trees): New.
5392 (convert_from_eh_region_ranges): Use it.
5393 (connect_post_landing_pads): Handle dying cleanups.
5394 (struct reachable_info): Add callback data.
5395 (add_reachable_handler): Invoke the callback.
5396 (foreach_reachable_handler): New.
5397 (reachable_handlers): Use it.
5398 (arh_to_landing_pad, arh_to_label): New.
5399 (can_throw_internal_1): Split out from can_throw_internal.
5400 (can_throw_external_1): Similarly.
5401 * except.h: Update.
5402 * explow.c (emit_stack_save): Remove savearea mode check.
5403 (update_nonlocal_goto_save_area): New.
5404 (allocate_dynamic_stack_space): Use it.
5405 (probe_stack_range): Never emit loop notes.
5406 * expmed.c (extract_fixed_bit_field): Always propagate the
5407 target for the shift if it is a REG.
5408 * expr.c: Include tree-iterator.h
5409 (is_zeros_p): Remove.
5410 (categorize_ctor_elements_1, categorize_ctor_elements): New.
5411 (count_type_elements): New.
5412 (mostly_zeros_p): Use them.
5413 (expr_wfl_stack): Remove.
5414 (convert_move): Do nothing if to and from are the same.
5415 (emit_block_move_via_loop): Don't emit LOOP notes.
5416 (emit_move_insn): Don't handle CONSTANT_P_RTX.
5417 (emit_move_insn_1): Don't generate inline warnings.
5418 (expand_vars, expand_var): Split from ...
5419 (expand_expr_1): ... here.
5420 (expand_expr_real, expand_expr_real_1): Use new macros
5421 EXPR_LOCATION and EXPR_HAS_LOCATION.
5422 * expr.h (simplify_builtin_fputs,
5423 simplify_builtin_strcpy, simplify_builtin_strncpy,
5424 expand_var, fixup_tail_calls,
5425 update_nonlocal_goto_save_area): Declare.
5426 (lookup_static_chain, expand_inline_function,
5427 mark_seen_cases): Remove.
5428 (prepare_call_address): Change type of 2nd argument to
5429 rtx.
5430 * final.c (profile_function): Update static chain test.
5431 (final): Don't look at RTX_INTEGRATED_P.
5432 * flags.h (flag_mudflap, flag_mudflap_threads,
5433 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
5434 flag_tree_dce, flag_tree_combine_temps,
5435 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
5436 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
5437 flag_tree_points_to): Declare.
5438 (enum pta_type): Declare.
5439 * flow.c (lang_missing_noreturn_ok_p): Remove.
5440 (check_function_return_warnings): Remove.
5441 (update_life_info): Update comments.
5442 (free_basic_block_vars): Don't call VARRAY_FREE for
5443 basic_block_info.
5444 (regno_uninitialized): Remove.
5445 * fold-const.c (int_const_binop): Make extern.
5446 (non_lvalue): Rely on build to set TREE_CONSTANT.
5447 (operand_equal_p): Replace only_const argument with
5448 flags. Allow pure functions if OEP_PURE_SAME.
5449 (fold): Use OEP_ONLY_CONST.
5450 (invert_truthvalue) <NOP_EXPR> Break if argument is of
5451 boolean type.
5452 (fold_relational_hi_lo,
5453 nondestructive_fold_binary_to_constant,
5454 nondestructive_fold_unary_to_constant,
5455 fold_read_from_constant_string): New.
5456 * function.c (struct function): Remove calls_constant_p.
5457 (current_function_calls_constant_p): Remove.
5458 (inline_function_decl): Remove.
5459 (put_var_into_stack): Don't use it.
5460 (fix_lexical_addr): Likewise.
5461 (inline_function_decl): Remove extern declaration.
5462 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
5463 (trampolines_created): Move to varasm.c.
5464 (free_after_compilation): Update for removed fields.
5465 (allocate_struct_function): Likewise.
5466 (delete_handlers, lookup_static_chain): Remove.
5467 (fix_lexical_addr): Don't consider non-local variable refs.
5468 (trampoline_address): Remove.
5469 (round_trampoline_addr): Move to builtins.c.
5470 (adjust_trampoline_addr): Remove.
5471 (expand_function_start): Update for changes to static chain
5472 and nonlocal goto handling.
5473 (initial_trampoline): Move to varasm.c.
5474 (expand_function_end): Don't build trampolines or kill
5475 unreferenced nonlocal goto labels.
5476 (free_after_compilation): Don't set it.
5477 (expand_function_end): Likewise.
5478 (setjmp_vars_warning): Rename from
5479 uninitialized_vars_warning, remove uninitialized vars warning.
5480 (uninitialized_vars_warning): Remove old comment
5481 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
5482 and do not call the langhook.
5483 (expand_function_start, expand_function_end): Don't do
5484 function instrumentation here.
5485 (clear_block_marks): Rename from reorder_blocks_0, export.
5486 (blocks_nreverse): Export.
5487 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
5488 of rtl.
5489 (reset_block_changes, record_block_change, finalize_block_changes,
5490 check_block_change, free_block_changes): New functions.
5491 (assign_parms): Setting of current_function_stdarg
5492 moved ...
5493 (allocate_struct_function): ... here.
5494 * function.h (struct function): Remove x_nonlocal_labels,
5495 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
5496 x_context_display, x_trampoline_list, needs_context.
5497 Add static_chain_decl, nonlocal_goto_save_area.
5498 (struct function): Remove x_clobber_return_insn.
5499 Add tail_call_emit field, last_label_uid,
5500 unexpanded_var_list, dont_emit_block_notes,
5501 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
5502 (clear_block_marks): Declare.
5503 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
5504 (mfwrap_spec, mflib_spec): Declare.
5505 (cpp_unique_options, cc1_options): Ditto.
5506 (default_compilers): Add .F and .f90.
5507 (static_specs): Add mfwrap and mflib.
5508 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
5509 CONSTANT_RTX_P.
5510 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
5511 Update to match insns field in struct edge_def.
5512 * gdbinit.in (pgs, pge): Define.
5513 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
5514 instead of the integrated flag.
5515 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
5516 * gengtype-yacc.y (bitfieldlen): Add empty action.
5517 (struct_fields): Accept unnamed bitfields.
5518 (bitfieldlen): Split from ...
5519 (bitfieldopt): ... here.
5520 * gengtype.c (ifiles): Add tree-alias-type.h and
5521 tree-flow.h.
5522 * genrecog.c (validate_pattern): Do not handle
5523 CONSTANT_P_RTX.
5524 * gimple-low.c: New file.
5525 * gimplify.c: New file.
5526 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
5527 (restore_line_notes): Do not set RTX_INTEGRATED_P.
5528 * ifcvt.c (dead_or_predicable): Initialize local variable
5529 'earliest'.
5530 * input.h (expr_wfl_stack): Remove.
5531 * integrate.c (INTEGRATE_THRESHOLD): Remove.
5532 (setup_initial_hard_reg_value_integration): Likewise.
5533 (initialize_for_inline): Likewise.
5534 (note_modified_parmregs): Likewise.
5535 (integrate_parm_decls): Likewise.
5536 (process_reg_param): Likewise.
5537 (save_parm_insns): Likewise.
5538 (copy_insn_list): Likewise.
5539 (copy_insn_notes): Likewise.
5540 (compare_blocks): Likewise.
5541 (find_block): Likewise.
5542 (inlining): Likewise.
5543 (function_cannot_inline_p): Likewise.
5544 (parmdecl_map): Likewise.
5545 (in_nonparam_insns): Likewise.
5546 (save_for_inline): Likewise.
5547 (FIXED_BASE_PLUS): Likewise.
5548 (expand_inline_function): Likewise.
5549 (copy_rtx_and_substitute): Don't look at map->integrating,
5550 map->inline_target, and inlining, since we are never copying
5551 for integrating.
5552 Don't abort on RTX_INTEGRATED_P.
5553 (old_fun): Remove.
5554 (output_inline_function): Remove.
5555 * integrate.h (struct inline_map): Remove fields integrating,
5556 block_map, leaf_reg_map, inline_target, and local_return_label.
5557 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
5558 copy_loop_headers, never_reached_warning): Removed.
5559 (any_uncondjump_p): Reject nonlocal goto.
5560 * langhooks-def.h (lhd_types_compatible_p,
5561 lhd_expand_decl, lhd_gimplify_expr): Declare.
5562 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5563 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5564 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5565 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5566 LANG_HOOKS_GIMPLIFY_EXPR,
5567 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
5568 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5569 LANG_HOOKS_GIMPLIFY_EXPR,
5570 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
5571 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
5572 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
5573 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5574 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
5575 LANG_HOOKS_DECL_UNINIT,
5576 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
5577 * langhooks.c: Include tree-simple.h.
5578 (lhd_expand_decl): New.
5579 (lhd_types_compatible_p): New.
5580 (lhd_decl_uninit): Remove.
5581 (lhd_gimplify_expr): New.
5582 * langhooks.h (struct lang_hooks_for_rtl_expansion):
5583 Remove.
5584 (struct lang_hooks_for_functions): Add field
5585 missing_noreturn_ok_p.
5586 (struct lang_hooks): Add field expand_decl,
5587 types_compatible_p, gimplify_expr and
5588 gimple_before_inlining.
5589 Remove fields decl_uninit and rtl_expand
5590 * opts.c (decode_options): Set flag_tree_ccp,
5591 flag_tree_dce, flag_tree_dom, flag_tree_dse,
5592 flag_tree_pre, flag_tree_ter,
5593 flag_tree_live_range_split, flag_tree_sra,
5594 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
5595 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
5596 OPT_fmudflapth, OPT_fmudflapir,
5597 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
5598 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
5599 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
5600 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
5601 OPT_ftree_points_to_ and OPT_ftree_pre.
5602 * output.h (regno_uninitialized, find_basic_blocks,
5603 cleanup_cfg, delete_unreachable_blocks,
5604 check_function_return_warnings): Remove.
5605 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
5606 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
5607 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
5608 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
5609 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
5610 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
5611 Define.
5612 * passes.c (rest_of_decl_compilation):
5613 (rest_of_handle_sibling_calls): Remove.
5614 (rest_of_handle_inlining): Remove.
5615 (rest_of_handle_gcse): Do not run
5616 purge_builtin_constant_p.
5617 (rest_of_compilation): Update.
5618 Do not call copy_loop_headers.
5619 Do rtl-based profiling only when
5620 !flag_tree_based_profiling. Register rtl-based profiling
5621 hooks.
5622 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
5623 (predicted_by_p): Rename to ...
5624 (rtl_predicted_by_p): .. this one; make global
5625 (tree_predicted_by_p): New.
5626 (dump_prediction): Add FILE argument.
5627 (predict_edge): Rename to ...
5628 (rtl_predict_edge): .. this one.
5629 (tree_predict_edge): New.
5630 (combine_predictions_for_insn): Update calls of predict_edge.
5631 (predict_loops): Break out from ...
5632 (estimate_probability): ... here; update comments; move updating
5633 of unknown probabilities from ...
5634 (estimate_bb_frequencies): ... here.
5635 (combine_predictions_for_bb): New.
5636 (tree_predict_by_opcode): New.
5637 (tree_estimate_probability): New.
5638 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
5639 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
5640 * predict.h: Add include guard.
5641 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
5642 * pretty-print.c (pp_write_text_to_stream): Make extern.
5643 * pretty-print.h (pp_write_text_to_stream): Declare.
5644 * print-rtl.c (print_rtx): Don't print the integrated flag.
5645 Print the return_val flag.
5646 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
5647 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
5648 Remove support for EXPR_WITH_FILE_LOCATION nodes.
5649 (print_node): Print TREE_INVARIANT and TREE_VISITED.
5650 * profile.c: Include cfghooks.h, tree-flow.h.
5651 (profile_hooks): New.
5652 (profile_dump_file): New.
5653 (instrument_edges): Use hooks instead of RTL-specific code.
5654 (instrument_values): Ditto.
5655 (get_exec_counts): Ditto.
5656 (compute_branch_probabilities): Ditto.
5657 (compute_value_histograms): Ditto.
5658 (branch_prob): Ditto.
5659 (find_spanning_tree): Ditto.
5660 (end_branch_prob): Ditto.
5661 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
5662 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
5663 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
5664 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
5665 (tree_register_profile_hooks): New.
5666 (rtl_register_profile_hooks): New.
5667 * ra-rewrite.c (rewrite_program): Clear variable info.
5668 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
5669 * regs.h: Add include guards.
5670 * reload.c (decompose): Clear val using memset.
5671 * rtl.def (CONSTANT_P_RTX): Remove.
5672 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
5673 (copy_loop_headers): Remove.
5674 (struct rtx_def): Replace the integrated flag with the
5675 return_val flag.
5676 (maybe_set_first_label_num): Declare.
5677 (init_branch_prob): Move declaration to value-prof.h.
5678 (end_branch_prob): Ditto.
5679 (branch_prob): Ditto.
5680 (never_reached_warning): Don't declare it.
5681 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
5682 (hoist_insn_to_edge): Update to match field insns in
5683 struct edge_def.
5684 * sbitmap.c (sbitmap_realloc): New.
5685 * sbitmap.h (sbitmap_realloc): Declare.
5686 * sibcall.c: Remove file.
5687 * simplify-rtx.c (simplify_rtx): Do not handle
5688 CONSTANT_P_RTX.
5689 * stmt.c (parse_output_constraint): Don't warn for read-write
5690 memory operand.
5691 (tail_recursion_args): Use types_compatible_p langhook.
5692 (force_label_rtx): Don't look at inline_function_decl.
5693 (label_rtx): Set LABEL_PRESERVE_P appropriately.
5694 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
5695 (declare_nonlocal_label): Remove.
5696 (expand_goto): Don't handle nonlocal gotos.
5697 (expand_nl_handler_label): Remove.
5698 (expand_nl_goto_receivers): Remove.
5699 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
5700 update_nonlocal_goto_save_area.
5701 (expand_expr_stmt_value): Check TREE_NO_WARNING.
5702 (warn_if_unused_value): Likewise.
5703 (expand_start_loop, expand_loop_continue_here,
5704 expand_end_loop): Don't create loop notes.
5705 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
5706 mark_seen_cases, check_for_full_enumeration_handling): Remove.
5707 (expand_end_case_type): Don't do warn_switch handling.
5708 (pushcase, pushcase_range) Update add_case_node calls.
5709 (add_case_node): Add dont_expand_label argument.
5710 (same_case_target_p): Don't search rtl.
5711 (expand_start_bindings_and_block, expand_end_bindings):
5712 Don't emit block notes when dont_emit_block_notes.
5713 (using_eh_for_cleanups_p): Export.
5714 (expand_return): Allow any typed rhs.
5715 (expand_stack_alloc): New.
5716 (expand_stack_save, expand_stack_restore): New.
5717 (containing_blocks_have_cleanups_or_stack_level): New
5718 function.
5719 (asm_op_is_mem_input): New fn.
5720 (expand_asm_expr): New fn.
5721 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
5722 nodes.
5723 * stor-layout.c (layout_type): Just return if type is
5724 error_mark_node.
5725 (update_alignment_for_field): Export.
5726 (variable_size): We don't care about global_bindings_p if
5727 the frontend doesn't want a list of the expressions.
5728 * system.h: Poison INTEGRATE_THRESHOLD.
5729 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
5730 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
5731 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
5732 TV_TREE_SSA_OTHER, TV_TREE_OPS,
5733 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
5734 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
5735 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
5736 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
5737 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
5738 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
5739 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
5740 TV_CONTROL_DEPENDENCES): Define.
5741 * toplev.c: Include tree-alias-common.h
5742 (current_file_decl, flag_mudflap, flag_mudflap_threads,
5743 flag_mudflap_ignore_reads, flag_tree_based_profiling,
5744 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
5745 flag_tree_dce, flag_tree_ch, flag_tree_sra,
5746 flag_tree_combine_temps, flag_tree_ter,
5747 flag_tree_live_range_split, flag_tree_dom,
5748 flag_tree_copyrename, flag_tree_dse): Declare.
5749 (f_options): Add tree-based-profiling, tree-gvn,
5750 tree-pre, tree-ccp, tree-dce,
5751 tree-dominator-opts, tree-copyrename, tree-dse,
5752 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
5753 (wrapup_global_declarations): Don't output nested inlined functions.
5754 (general_init): Call init_tree_optimization_passes.
5755 (process_options): Sorry for -ftree-based-profiling plus
5756 -ftest-coverage or -fprofile-values.
5757 * toplev.h (init_tree_optimization_passes,
5758 flag_tree_based_profiling): Declare.
5759 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
5760 * tree-alias-ander.c: New file.
5761 * tree-alias-ander.h: New file.
5762 * tree-alias-common.c: New file.
5763 * tree-alias-common.h: New file.
5764 * tree-alias-type.c: New file.
5765 * tree-alias-type.h: New file.
5766 * tree-browser.c: New file.
5767 * tree-browser.def: New file.
5768 * tree-cfg.c: New file.
5769 * tree-complex.c: New file.
5770 * tree-dfa.c: New file.
5771 * tree-dump.c (dump_enable_all): New.
5772 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
5773 (dump_node): Remove const from field suffix and swtch.
5774 (dump_files): Add null entry, .generic, .nested, .vcg,
5775 .xml and a match-all entry.
5776 (extra_dump_files, extra_dump_files_in_use,
5777 extra_dump_files_alloced): Declare
5778 (dump_option_value_info): Add raw, details, stats,
5779 blocks, vops, lineno, uid and all.
5780 (dump_register): New.
5781 (get_dump_file_info): New.
5782 (dump_begin): Call it.
5783 Do nothing for TDI_none.
5784 (dump_begin): Include phase number in dump filename.
5785 (dump_enable_all): New.
5786 (dump_switch_p_1): Split out from dump_switch_p.
5787 (dump_switch_p): Handle extra_dump_files.
5788 Start our scan at TDI_none + 1.
5789 If -fdump-tree-all was given, call dump_enable_all.
5790 * tree-dump.h: Include splay-tree.h.
5791 (dump_function, dump_function_to_file, dump_register):
5792 Declare.
5793 * tree-eh.c: New file.
5794 * tree-flow-inline.h: New file.
5795 * tree-flow.h: New file.
5796 * tree-inline.c: Re-write to handle inlining on GIMPLE.
5797 * tree-inline.h (walk_tree,
5798 walk_tree_without_duplicates): Move to tree.h.
5799 (estimate_num_insns): Declare.
5800 * tree-into-ssa.c: New file.
5801 * tree-iterator.c: New file.
5802 * tree-iterator.h: New file.
5803 * tree-mudflap.c: New file.
5804 * tree-mudflap.h: New file.
5805 * tree-nested.c: New file.
5806 * tree-nomudflap.c: New file.
5807 * tree-nrv.c: New file.
5808 * tree-optimize.c (dump_flags, vars_to_rename,
5809 in_gimple_form, all_passes, pass_gimple,
5810 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
5811 (execute_gimple, execute_rebuild_bind,
5812 gate_all_optimizations, execute_del_cfg,
5813 register_one_dump_file, register_dump_files, dup_pass_1,
5814 init_tree_optimization_passes, execute_todo,
5815 execute_one_pass, execute_pass_list): New.
5816 (clear_decl_rtl): Remove.
5817 (tree_rest_of_compilation): Update to use tree
5818 optimizers.
5819 * tree-outof-ssa.c: New file.
5820 * tree-pass.h: New file.
5821 * tree-phinodes.c: New file.
5822 * tree-pretty-print.c: New file.
5823 * tree-profile.c: New file.
5824 * tree-simple.c: New file.
5825 * tree-simple.h: New file.
5826 * tree-sra.c: New file.
5827 * tree-ssa-alias.c: New file.
5828 * tree-ssa-ccp.c: New file.
5829 * tree-ssa-copy.c: New file.
5830 * tree-ssa-copyrename.c: New file.
5831 * tree-ssa-dce.c: New file.
5832 * tree-ssa-dom.c: New file.
5833 * tree-ssa-dse.c: New file.
5834 * tree-ssa-forwprop.c: New file.
5835 * tree-ssa-live.c: New file.
5836 * tree-ssa-live.h: New file.
5837 * tree-ssa-loop.c: New file.
5838 * tree-ssa-operands.c: New file.
5839 * tree-ssa-operands.h: New file.
5840 * tree-ssa-phiopt.c: New file.
5841 * tree-ssa-pre.c: New file.
5842 * tree-ssa.c: New file.
5843 * tree-ssanames.c: New file.
5844 * tree-tailcall.c: New file.
5845 * tree.c: Include tree-iterator.h, basic-block.h and
5846 tree-flow.h.
5847 (tree_node_kind): Add phi_nodes and ssa names.
5848 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
5849 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
5850 (make_node_stat): Handle PHI_NODE and SSA_NAME.
5851 <'c'> Set TREE_INVARIANT.
5852 (copy_node_stat): Abort if trying to copy a
5853 STATEMENT_LIST.
5854 Clear TREE_VISITED.
5855 Clear annotation field.
5856 (build_constructor): Copy TREE_INVARIANT from vals.
5857 Don't clear TREE_CONSTANT.
5858 (expr_first, expr_last, expr_length): Remove.
5859 (staticp): Pass unknown component references to the language.
5860 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
5861 (skip_simple_arithmetic): Likewise.
5862 (stabilize_reference_1): Likewise.
5863 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
5864 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
5865 STATEMENT_LIST.
5866 (lhd_unsave_expr_now): Remove.
5867 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
5868 (recompute_tree_invarant_for_addr_expr): New.
5869 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
5870 Call recompute_tree_invarant_for_addr_expr.
5871 Set TREE_INVARIANT accordingly.
5872 (build2_stat): Don't handle CALL_EXPR.
5873 (build3_stat): Don't call build2_stat for CALL_EXPRs.
5874 (build_expr_wfl): Remove.
5875 (annotate_with_file_line, annotate_with_locus): New.
5876 (simple_cst_equal): Call simple_cst_list_equal to compare
5877 CONSTRUCTOR_ELTS pointers.
5878 (iterative_hash_expr): Don't hash types associated
5879 with conversions. Instead hash on the signedness of the
5880 toplevel object and the operand of the conversion.
5881 (dump_tree_statistics): Call ssanames_print_statistics
5882 and phinodes_print_statistics.
5883 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
5884 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
5885 needs_to_live_in_memory): New.
5886 (initializer_zerop): Handle VECTOR_CST. Don't check
5887 AGGREGATE_TYPE_P for CONSTRUCTOR.
5888 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
5889 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
5890 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
5891 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
5892 (CALL_EXPR): Add another operand.
5893 (EXPR_WITH_FILE_LOCATION): Remove.
5894 (SWITCH_EXPR): Add another operand.
5895 * tree.h: Update various comments.
5896 (union tree_ann_d): Forward declare.
5897 (struct tree_common): Add fields nowarning_flag,
5898 invariant_flag and visited.
5899 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
5900 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
5901 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
5902 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
5903 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
5904 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
5905 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
5906 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
5907 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
5908 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
5909 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
5910 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
5911 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
5912 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
5913 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
5914 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
5915 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
5916 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
5917 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
5918 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
5919 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
5920 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
5921 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
5922 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
5923 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
5924 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
5925 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
5926 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
5927 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
5928 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
5929 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
5930 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
5931 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
5932 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
5933 TDF_UID,): Define.
5934 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
5935 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
5936 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
5937 EXPR_WFL_SET_LINECOL): Remove.
5938 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
5939 make_phi_node, init_phinodes, fini_phinodes,
5940 release_phi_node, phinodes_print_statistics,
5941 init_ssanames, fini_ssanames, make_ssa_name,
5942 release_ssa_name, ssanames_print_statistics,
5943 annotate_with_file_line, build_empty_stmt,
5944 annotate_with_locus, expr_only, categorize_ctor_elements,
5945 count_type_elements, add_var_to_bind_expr, is_essa_node,
5946 expand_stack_alloc, expand_stack_save,
5947 expand_stack_restore, add_case_node, operand_equal_p,
5948 nondestructive_fold_unary_to_constant,
5949 nondestructive_fold_binary_to_constant,
5950 fold_read_from_constant_string, int_const_binop,
5951 strip_float_extensions, simplify_builtin, c_strlen,
5952 recompute_tree_invarant_for_addr_expr,
5953 needs_to_live_in_memory, make_vector,
5954 setjmp_vars_warning, update_alignment_for_field,
5955 expand_asm_expr, asm_op_is_mem_input,
5956 containing_blocks_have_cleanups_or_stack_level,
5957 create_artificial_label, gimplify_function_tree,
5958 get_name, unshare_expr, walk_tree,
5959 walk_tree_without_duplicates, in_gimple_form): Declare.
5960 (struct tree_exp): Add fields locus and block.
5961 (struct tree_ssa_name, struct edge_def, struct
5962 tree_phi_node, struct tree_eref_common, struct
5963 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
5964 union alias_var_def, struct tree_statement_list_node,
5965 struct tree_statement_list, enum operand_equal_flag): Declare.
5966 (enum tree_node_structure_enum): Add TS_SSA_NAME,
5967 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
5968 TS_STATEMENT_LIST.
5969 (union tree_node): Add fields ssa_name, phi, eref, ephi,
5970 euse and stmt_list.
5971 (function_cannot_inline_p, uninitialized_vars_warning,
5972 save_for_inline, output_inline_function, all_cases_count,
5973 check_for_full_enumeration_handling,
5974 declare_nonlocal_label): Remove.
5975 (enum tree_dump_index): Add TDI_none, TDI_tu,
5976 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
5977 * unroll.c (unroll_loop): Don't clear map->inline_target.
5978 * unwind-sjlj.c (uw_install_context): Make a proper static inline
5979 function.
5980 * value-prof.c (value_prof_hooks): New.
5981 (find_values_to_profile): Rename to rtl_find_values_to_profile.
5982 Move rtl-specific bits in from branch_prob.
5983 (value_profile_transformations): Rename to
5984 rtl_value_profile_transformations.
5985 (struct value_prof_hooks): New.
5986 (rtl_value_prof_hooks): New.
5987 (rtl_register_value_prof_hooks): New.
5988 (tree_find_values_to_profile): New stub.
5989 (tree_value_profile_transformations): New stub.
5990 (tree_value_prof_hooks): New stub.
5991 (tree_register_value_prof_hooks): New stub.
5992 (find_values_to_profile): New.
5993 (value_profile_transformations): New.
5994 * value-prof.h: Add multiple inclusion guard.
5995 (struct histogram_value): Change rtx fields to void *.
5996 (rtl_register_value_prof_hooks): New declaration.
5997 (tree_register_value_prof_hooks): New declaration.
5998 (find_values_to_profile): New declaration.
5999 (free_profiled_values): New declaration.
6000 (value_profile_transformations): New declaration.
6001 (struct profile_hooks): New declaration.
6002 (init_branch_prob): Declaration moved from rtl.h.
6003 (branch_prob): Declaration moved from rtl.h.
6004 (end_branch_prob): Declaration mooved from rtl.h.
6005 (tree_register_profile_hooks): New declaration.
6006 (rtl_register_profile_hooks): New declaration.
6007 (tree_profile_hooks): New declaration.
6008 (rtl_profile_hooks): New declaration.
6009 * varasm.c: Include tree-mudflap.h.
6010 (TRAMPOLINE_ALIGNMENT): Remove.
6011 (make_decl_rtl): Call mudflap_enqueue_decl.
6012 (assemble_static_space):
6013 (assemble_trampoline_template): Set and return
6014 TRAMPOLINE_ALIGNMENT.
6015 * varray.c (element): Add GENERIC_PTR_NOGC entry.
6016 Add entry for 'tree *'.
6017 Add entry for struct edge_def *.
6018 (varray_copy): New.
6019 * varray.h (enum varray_data_enum): Add
6020 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
6021 VARRAY_DATA_TREE_PTR.
6022 (union varray_data_tag): Corresponding changes.
6023 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
6024 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
6025 VARRAY_EDGE, VARRAY_TREE_PTR,
6026 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
6027 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
6028 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
6029
6030 * config/*/*: Various updates for changed macros, tree
6031 codes, etc. Check ChangeLog.tree-ssa.
6032
6033 * doc/cfg.texi: New file.
6034 * doc/tree-ssa.texi: New file.
6035 * doc/c-tree.texi: Document new codes.
6036 * doc/gccint.texi: Include new files.
6037 * doc/install.texi: Document new features.
6038 * doc/invoke.texi: Document new switches.
6039 * doc/passes.texi: Document new passes.
6040 * doc/rtl.texi: Update changed RTL codes.
6041 * doc/sourcebuild.texi: Update build instructions.
6042 * doc/standards.texi: Document Fortran changes.
6043 * doc/tm.texi: Update.
6044
6045 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
6046
6047 Replace several arrays with a struct of arrays.
6048 * combine.c (struct reg_stat): New.
6049 (init_reg_last_arrays): Renamed to...
6050 (init_reg_last): ...this. Callers adjusted.
6051 (reg_stat): New.
6052 (combine_instructions): Allocate it and use it.
6053 (reg_last_death, reg_last_set, reg_last_set_value,
6054 reg_last_set_label, reg_last_set_table_tick,
6055 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
6056 reg_last_set_mode, reg_last_set_nonzero_bits,
6057 reg_last_set_sign_bit_copies): Replace throughout
6058 with items of reg_stat.
6059
6060 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
6061
6062 PR optimization/15100
6063 * combine.c (distribute_notes): Don't create a dangling
6064 REG_LIBCALL/REG_RETVAL note.
6065
6066 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
6067
6068 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
6069
6070 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
6071 negv2si2.
6072
6073 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
6074
6075 * doc/md.texi (Standard Names): Fix typo in vec_init description.
6076
6077 2004-05-11 Geoffrey Keating <geoffk@apple.com>
6078
6079 * doc/gty.texi (GTY Options): Clarify example.
6080
6081 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
6082
6083 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
6084 Add const qualifier to altivec vector type if one is needed.
6085
6086 2004-05-11 Paul Brook <paul@codesourcery.com>
6087
6088 * flags.h (flag_short_enums): Update comment.
6089 * opts.c (decode_options): Set flag_short_enums to 2.
6090 * toplev.c (flag_short_enums): Update comment.
6091 (process_options): Call default_short_enums target hook.
6092
6093 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
6094
6095 PR target/14063
6096 * config/rs6000/altivec.md (altivec_dssall):
6097 Change to unspec_volatile.
6098 (altivec_dss): Likewise.
6099
6100 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
6101
6102 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
6103 vnor.
6104 ("one_cmplv8hi2"): Same.
6105 ("one_cmplv4si2"): Same.
6106
6107 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
6108
6109 PR target/15130
6110 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
6111 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
6112 into account. Compute the correct number of general registers
6113 for the return value. Generate a special push/pop sequence when
6114 failing to get a temporary register for non SHmedia epilogue.
6115 (sh_expand_epilogue): Add an argument to show whether it's for
6116 sibcall or not. Set the 3rd argument of output_stack_adjust to
6117 -1 if needed.
6118 (sh_need_epilogue): Call sh_expand_epilogue with 0.
6119 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
6120 with 1.
6121 (epilogue): Call sh_expand_epilogue with 0.
6122
6123 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
6124
6125 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
6126 goto a cleanup label. After the cleanup, free the allocated memory.
6127
6128 2004-05-10 Ziemowit Laski <zlaski@apple.com>
6129
6130 * config/rs6000/altivec.h (vec_sld): Add overloads for
6131 argument/return types of 'vector bool int', 'vector bool short'
6132 and 'vector bool char'.
6133
6134 2004-05-10 Zack Weinberg <zack@codesourcery.com>
6135
6136 * c-decl.c (store_parm_decls_newstyle): Correct test for a
6137 nested function.
6138
6139 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
6140
6141 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
6142 treating missing ones as "".
6143 * config/mips/mips.md: Remove constraints from match_operands and
6144 match_scratches if they appear in define_expands (except reload*),
6145 define_peephole2s, define_splits or attribute specifications.
6146 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
6147 constraint strings.
6148
6149 2004-05-10 Alan Modra <amodra@bigpond.net.au>
6150
6151 * config/rs6000/rs6000.c (function_arg_boundary): Always align
6152 AltiVec vectors.
6153 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
6154 vectors by refererence. Align the same for TARGET_64BIT to a 16
6155 byte boundary. Remove useless code. Add function comment.
6156 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
6157 call to where it belongs.
6158 (function_arg_partial_nregs): Return true for all TARGET_32BIT
6159 -mabi=no-altivec AltiVec vectors. Fix debug output.
6160 (rs6000_va_arg): Adjust for AltiVec change.
6161
6162 2004-05-10 Paul Brook <paul@codesourcery.com>
6163
6164 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6165 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6166 (TARGET_DOUBLEWORD_ALIGN): Use it.
6167 (WCHAR_TYPE): Define.
6168 (WCHAR_SIZE_TYPE): Define.
6169 (SIZE_TYPE): Define.
6170
6171 2004-05-10 Alan Modra <amodra@bigpond.net.au>
6172
6173 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
6174 when size is 8 bytes.
6175 (function_arg_advance): Account for stack space used by AltiVec
6176 args when -mabi=altivec. Simplify alignment calculations. For
6177 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
6178 (function_arg): Similarly.
6179 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
6180 not AltiVec ABI.
6181 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
6182 Correct alignment, and align before testing reg count. Remove
6183 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
6184 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
6185 TARGET_FPRS here..
6186 (rs6000_function_value): .. not here before call.
6187
6188 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
6189
6190 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
6191
6192 2004-05-09 Zack Weinberg <zack@codesourcery.com>
6193
6194 PR 15007
6195 * c-decl.c (current_file_decl): Rename to all_translation_units,
6196 adjust comment.
6197 (pop_scope): If popping file_scope, construct a
6198 TRANSLATION_UNIT_DECL and make it the context of all the
6199 symbols in the scope.
6200 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
6201 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
6202 anything to current_file_decl.
6203 (pushdecl_top_level): Likewise.
6204 (store_parm_decls_newstyle): Adjust check for nested function.
6205 (c_write_global_declarations): Update for renamed variable.
6206
6207 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
6208
6209 * config/rs6000/rs6000-protos.h
6210 (rs6000_conditional_register_usage): Protoize.
6211
6212 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
6213
6214 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
6215 function.
6216
6217 2004-05-08 Roger Sayle <roger@eyesopen.com>
6218
6219 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
6220 where op is a comparison operator and C1 and C2 are integer constants
6221 into a range check.
6222 (fold): Call fold_div_compare.
6223
6224 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6225
6226 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
6227 problems with earlier versions of the GNU compiler.
6228
6229 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
6230
6231 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
6232 Declare.
6233
6234 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
6235 (rs6000_hard_regno_mode_ok): New.
6236 (rs6000_init_hard_regno_mode_ok): New.
6237 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
6238
6239 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
6240 result.
6241
6242 2004-05-07 Ziemowit Laski <zlaski@apple.com>
6243
6244 * config/rs6000/altivec.h (vector, pixel, bool): Do not
6245 define as macros #ifdef __APPLE_ALTIVEC__.
6246
6247 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
6248
6249 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
6250 Generate appropriate parallels for vector arguments
6251 passed to vararg functions. (function_arg): make the call
6252 to rs6000_mixed_function_arg for vector args as needed.
6253
6254 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6255
6256 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
6257 EABI_FLOAT_VARARGS_P.
6258
6259 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6260
6261 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
6262 * config/mips/mips.c (override_options): Disable branch likely
6263 instructions if TUNE_MIPS5500.
6264
6265 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6266
6267 * config/mips/mips.c (override_options): Allow the hi and lo registers
6268 to store any integral mode, not just MODE_INTs.
6269
6270 2004-05-07 Paul Brook <paul@codesourcery.com>
6271
6272 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6273 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6274 (TARGET_DOUBLEWORD_ALIGN): Use it.
6275 (WCHAR_TYPE): Define.
6276 (WCHAR_SIZE_TYPE): Define.
6277 (SIZE_TYPE): Define.
6278
6279 2004-05-07 Uros Bizjak <uros@kss-loka.si>
6280
6281 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
6282 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
6283
6284 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
6285
6286 * loop-doloop.c (doloop_valid_p): Make sure that body
6287 gets freed.
6288
6289 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
6290
6291 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
6292 declaration.
6293 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
6294 (sparc_skip_caller_unimp): New global variable.
6295 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
6296 Use it instead of SKIP_CALLERS_UNIMP_P.
6297 * config/sparc/sparc.md (call expander): Add sanity check.
6298 (call_address_struct_value_sp32): Re-sync with expander.
6299 (call_symbolic_struct_value_sp32): Likewise.
6300 (return peepholes): Use 'sparc_skip_caller_unimp' instead
6301 of custom predicate.
6302
6303 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6304
6305 PR c++/14962
6306 * c-pragma.c (handle_pragma_redefine_extname): Only change
6307 the assembler name of FUNCTION_DECLs and VAR_DECLs.
6308
6309 2004-05-07 Uros Bizjak <uros@kss-loka.si>
6310
6311 * optabs.h (enum optab_index): Add new OTI_log1p.
6312 (log1p_optab): Define corresponding macro.
6313 * optabs.c (init_optabs): Initialize log1p_optab.
6314 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
6315 patterns.
6316 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
6317 using log1p_optab.
6318 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
6319 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6320
6321 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
6322
6323 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
6324 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
6325 Prototype here.
6326 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
6327 x87's fyl2xp1 instruction.
6328 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
6329 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
6330 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
6331 log1p and log1pl built-ins as inline x87 intrinsics.
6332
6333 2004-05-07 Loren James Rittle <ljrittle@acm.org>
6334
6335 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
6336 * config/arm/freebsd.h: Likewise.
6337 * config/ia64/freebsd.h: Likewise.
6338 * config/sparc/freebsd.h: Likewise.
6339
6340 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
6341
6342 PR optimization/15296
6343 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
6344 getting last consecutive label at a branch.
6345 (relax_delay_slots): Similar, near top of loop.
6346
6347 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6348
6349 PR target/15202
6350 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
6351 register to general register.
6352
6353 2004-05-07 Alan Modra <amodra@bigpond.net.au>
6354
6355 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
6356 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
6357 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
6358 (STACK_BOUNDARY): Delete.
6359
6360 2004-05-06 Stuart Hastings <stuart@apple.com>
6361
6362 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
6363 mistakenly clobbered by 1.423.
6364
6365 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
6366
6367 * doc/invoke.texi: Document -mvr4130-align.
6368 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
6369 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
6370 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
6371 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
6372 * config/mips/mips.md: Include sched-int.h.
6373 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
6374 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
6375 (override_options): Enable -mvr4130-align at -O3 and above.
6376 (mips_sim_insn): New variable.
6377 (mips_sim): New structure.
6378 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
6379 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
6380 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
6381 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
6382 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
6383 (mips_reorg): Call vr4130_align_insns.
6384 (vr4130_last_insn): New variable.
6385 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
6386 (vr4130_swap_insns_p, vr4130_reorder): New functions.
6387 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
6388 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
6389 (mips_use_dfa_pipeline_interface): Return true for the same.
6390 * config/mips/4130.md: New file.
6391 * config/mips/mips.md: Include it. Add a peephole2 to convert
6392 "mult;mflo" into "mtlo;macc".
6393 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
6394 target of maccs.
6395 (*msac_using_macc): New pattern.
6396
6397 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
6398
6399 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
6400 (ir_vr55_hilo): Split into...
6401 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
6402 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
6403 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
6404 Add various multiplication bypasses.
6405 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
6406 multiplication.
6407
6408 2004-05-06 Uros Bizjak <uros@kss-loka.si>
6409
6410 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
6411 attribute to "XF".
6412
6413 2004-05-05 Uros Bizjak <uros@kss-loka.si>
6414
6415 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
6416 (fmod_optab, drem_optab): Define corresponding macros.
6417 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
6418 * genopinit.c (optabs): Implement fmod_optab and drem_optab
6419 using fmod?f3 and drem?f3 patterns.
6420 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
6421 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
6422 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
6423 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
6424 flag_unsafe_math_optimizations is set.
6425
6426 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
6427 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
6428
6429 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
6430 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
6431 Prototype here.
6432 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
6433 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
6434 fprem and fprem1 instructions.
6435 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
6436 Rename insn definition to x86_fnstsw_1.
6437 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
6438 x87 instructions.
6439 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
6440 and fmodl built-ins as inline x87 intrinsics.
6441 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
6442 and dreml built-ins as inline x87 intrinsics.
6443
6444 2004-05-05 Roger Sayle <roger@eyesopen.com>
6445
6446 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
6447
6448 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
6449
6450 PR driver/9822
6451 * doc/invoke.texi (Spec Files): Remove documentation of %c.
6452
6453 2004-05-05 Chris Demetriou <cgd@broadcom.com>
6454
6455 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
6456 representation.
6457
6458 2004-05-06 Paul Brook <paul@codesourcery.com>
6459
6460 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
6461 (arm_coproc_mem_operand): ... To this.
6462 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
6463 (arm_legitimate_index_p): Ditto.
6464 (vfp_mem_operand): Rename ...
6465 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
6466 (vfp_secondary_reload_class): Use it.
6467 (output_move_double): Use doubleword load/store instructions.
6468 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
6469 * config/arm/arm.h (TARGET_LDRD): Define.
6470 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
6471 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
6472 New splitter for invalid doubleword loads.
6473 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
6474 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
6475 * doc/md.texi: Document Uy constraint.
6476
6477 2004-05-05 Jan Hubicka <jh@suse.cz>
6478
6479 PR opt/14980
6480 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
6481 inline clones.
6482
6483 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
6484
6485 PR target/15290
6486 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
6487 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
6488
6489 2004-05-05 Mike Stump <mrs@apple.com>
6490
6491 * config/darwin-c.c (add_framework): Copy the directory name as it
6492 can be freed later. Also, ensure we always allocate enough room
6493 for the cached framework information.
6494 (find_subframework_header): Keep track of the directory where the
6495 subframework header was found.
6496 (framework_construct_pathname): Speed up by not trying to re-add a
6497 framework.
6498 * cppfiles.c (search_path_exhausted): Arrange for the missing
6499 header callback to be able to set the directory where the header
6500 was found.
6501 (cpp_get_dir): Add.
6502 * cpplib.h (missing_header_cb): Add a parameter.
6503 (cpp_get_dir): Add.
6504
6505 2004-05-03 Mike Stump <mrs@apple.com>
6506
6507 * doc/invoke.texi (Directory Options): Document -iquote.
6508 * doc/cpp.texi: Likewise.
6509 * doc/cppopts.texi: Likewise.
6510 * c-opts.c (c_common_missing_argument): Add -iquote processing.
6511 (c_common_handle_option): Likewise.
6512 * c.opt (iquote): Add.
6513 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
6514 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
6515
6516 * c-opts.c (case OPT_I): Deprecate -I- support.
6517 * doc/invoke.texi: Likewise.
6518 * doc/cpp.texi: Likewise.
6519 * doc/cppopts.texi: Likewise.
6520
6521 2004-05-05 Steven Bosscher <stevenb@suse.de>
6522
6523 * basic-block.h (free_basic_block_vars): Update prototype.
6524 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
6525 argument.
6526 (life_analysis): Update call.
6527 * ifcvt.c (if_convert): Likewise.
6528 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
6529 * passes.c (rest_of_handle_final): Likewise.
6530 (rest_of_compilation): Likewise.
6531 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6532
6533 * emit-rtl.c (next_real_insn): Use INSN_P.
6534 (prev_real_insn): Likewise.
6535
6536 2004-05-05 Eric Christopher <echristo@redhat.com>
6537
6538 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
6539 representation.
6540
6541 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
6542
6543 * config/rs6000/rs6000.c (build_opaque_vector_type):
6544 New function.
6545 (rs6000_init_builtins): Use it.
6546
6547 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
6548
6549 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
6550 (func_table): Change type from char ** to vms_func_ref.
6551 (write_rtnbeg): Update to reflect func_table change. Use
6552 fde->funcdef_number instead of rtnnum in output.
6553 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
6554
6555 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6556 Richard Henderson <rth@redhat.com>
6557
6558 PR target/14899
6559
6560 * c-common.c (vector_types_convertible_p): New function.
6561 * c-typeck.c (comptypes): Recurse on vector types.
6562 (convert_for_assignment): Use vector_types_convertible_p.
6563 (digest_init): Use vector_types_convertible_p to check
6564 validness of constant vector initializers; otherwise treat
6565 them as scalars.
6566 * tree.c (make_or_reuse_type): New.
6567 (build_common_tree_nodes): Use it.
6568 * cp/call.c (standard_conversion): Likewise.
6569 * cp/typeck.c (comptypes): Recurse on vector types.
6570 (convert_for_assignment): Use vector_types_convertible_p.
6571
6572 2004-05-04 Chris Demetriou <cgd@broadcom.com>
6573
6574 * config/mips/mips.c (override_options): Default to no
6575 generation of branch-likely operations when tuning for
6576 CPUs where they tend to have a negative performance impact
6577 (e.g., SB-1).
6578
6579 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6580
6581 * expr.c (store_constructor_field): Don't call store_constructor
6582 if bitsize is not a multiple of a byte.
6583
6584 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
6585
6586 * reload1.c (inherit_piecemeal_p): New function.
6587 (emit_reload_insns): When reloading a group of hard registers, use
6588 inherit_piecemeal_p to decide whether the values of individual hard
6589 registers can be inherited.
6590
6591 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
6592
6593 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
6594 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
6595 * config/t-linux (LIB2ADDEHDEP): Likewise.
6596
6597 2004-05-04 Paul Brook <paul@codesourcery.com>
6598
6599 * config/arm/crti.asm: Push an even number of registers.
6600 * config/arm/crtn.asm: And restore them. Load via sp.
6601
6602 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6603
6604 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
6605 Collect overhead information.
6606 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
6607 parameter and pass it through.
6608 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
6609 MEM_STAT_DECL parameter and pass it through.
6610 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
6611 MEM_STAT_DECL parameter and pass it through.
6612
6613 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6614
6615 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
6616
6617 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
6618
6619 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
6620 rs6000_hard_regno_nregs.
6621
6622 2004-05-03 Eric Christopher <echristo@redhat.com>
6623
6624 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
6625 prologue insn instead of setting up call.
6626 (s390_emit_epilogue): Ditto.
6627 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
6628 (define_constants): Add numbers for above patterns.
6629
6630 2004-05-03 Eric Christopher <echristo@redhat.com>
6631
6632 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
6633 * config/s390/s390.c (s390_conditional_register_usage): ...here.
6634 * config/s390/s390-protos.h: Prototype.
6635
6636 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
6637
6638 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
6639 assignment.
6640
6641 2004-05-03 Eric Christopher <echristo@redhat.com>
6642
6643 * config/mips/mips.md: Fix branch length attribute definition.
6644
6645 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6646
6647 * config.gcc: Remove --enable-altivec support.
6648
6649 * config/rs6000/altivec-defs.h: Remove.
6650
6651 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6652
6653 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
6654 * fixinc/fixincl.x: Regenerate.
6655
6656 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6657
6658 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
6659 definition.
6660 (log?f2, log10?f2, log2?f2): Reimplement expanders with
6661 float_truncate insn.
6662 (*fxtractsf3, *fxtractdf3): Remove insn definition.
6663 (logb?f2): Reimplement expanders with float_truncate insn.
6664
6665 2004-05-03 Graham Stott <graham.stott@btinternet.com>
6666
6667 PR 14718
6668 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
6669 force_type_die for CONST_DECL.
6670
6671 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6672 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6673
6674 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
6675 tm-dwarf2.h to tm_file.
6676 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
6677 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
6678 (ASM_DEBUG_SPEC): Delete.
6679
6680 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6681
6682 * optabs.h (enum optab_index): Add new OTI_expm1.
6683 (expm1_optab): Define corresponding macro.
6684 * optabs.c (init_optabs): Initialize expm1_optab.
6685 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
6686 patterns.
6687 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
6688 using expm1_optab.
6689 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
6690 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6691
6692 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
6693 to implement expm1, expm1f and expm1l built-ins as inline x87
6694 intrinsics.
6695
6696 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6697
6698 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
6699 * config/frv/frv.md (*return_true, *return_false): New patterns.
6700
6701 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
6702
6703 * rtl.h (PHI_NODE_P): Remove.
6704
6705 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
6706
6707 PR middle-end/14988
6708 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
6709 when passed -2 as 'align'.
6710 (put_var_into_stack): Use 'bool' as the type for the three local
6711 predicates. Adjust calls to put_reg_into_stack.
6712 When passed a CONCAT, instruct put_reg_into_stack to use
6713 a consecutive stack slot for the second part.
6714 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
6715 'consecutive_p' parameter. Turn the three predicates into 'bool'
6716 parameters. Retrieve the register mode from 'reg'.
6717 When consecutive_p is true, instruct assign_stack_local_1 to use
6718 BITS_PER_UNIT alignment.
6719 (put_addressof_into_stack): Use 'bool' as the type for the two
6720 local predicates. Adjust call to put_reg_into_stack.
6721
6722 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6723
6724 * fold-const.c (fold_convert_const, fold): Add missing
6725 FIX_ROUND_EXPR case.
6726
6727 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6728
6729 * configure.ac (FLEX, BISON): Only use tools from the build tree
6730 if build equals host.
6731 * configure: Rebuilt.
6732
6733 * config/frv/frv-protos.h (frv_expand_epilogue,
6734 frv_expand_fdpic_call): Add bool argument.
6735 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
6736 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
6737 (frv_expand_epilogue): Use new argument to decide whether to emit
6738 return instruction or copy the return address to LR.
6739 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
6740 sibcalls.
6741 (sibcall_operand): New.
6742 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
6743 PLUS nor LABEL_REF. Add sibcall_operand.
6744 * config/frv/frv.md (call, call_value): Pass false to
6745 frv_expand_fdpic_call.
6746 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
6747 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
6748 sibcall_value_internal, sibcall_value_fdpicdi): New.
6749 (return_unsigned_true, return_unsigned_false): New.
6750 (epilogue): Adjust call to frv_expand_epilogue.
6751 (sibcall_epilogue): New.
6752
6753 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
6754 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
6755 before redefining them.
6756
6757 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6758
6759 * builtins.c (fold_fixed_mathfn): New function.
6760 (fold_builtin_lround, fold_builtin): Use it.
6761
6762 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6763
6764 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
6765 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
6766
6767 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
6768
6769 * config/cris/cris.h: Revert my "fix comment typos" patch.
6770
6771 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
6772
6773 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
6774
6775 2004-05-01 Falk Hueffner <falk@debian.org>
6776
6777 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
6778 builtin_insll): Disallow 0 as first input operand.
6779
6780 2004-05-01 Falk Hueffner <falk@debian.org>
6781
6782 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
6783
6784 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
6785
6786 PR middle-end/15054
6787 * expr.c (expand_expr_real): Do not call preserve_temp_slots
6788 on a TARGET_EXPR temp.
6789 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
6790 TARGET_EXPR temp slots.
6791
6792 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
6793
6794 * simplify-rtx.c (simplify_ternary_operation): When
6795 converting an IF_THEN_ELSE to a relational op, return
6796 correct mode.
6797
6798 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6799
6800 * builtins.c (fold_builtin_round): Fix comment typo.
6801 (fold_builtin_lround): New function.
6802 (fold_builtin): Use it.
6803
6804 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
6805
6806 PR target/11608
6807 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
6808 more like the one in config/dbxelf.h.
6809
6810 2004-04-30 Zack Weinberg <zack@codesourcery.com>
6811
6812 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
6813 and adjust definition accordingly.
6814 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
6815 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
6816 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
6817 VECTOR_TYPE.
6818
6819 2004-04-30 Jason Merrill <jason@redhat.com>
6820
6821 PR c++/14587
6822 * config/i386/winnt.c (associated_type): Look for attributes on
6823 the TYPE_MAIN_VARIANT of *this.
6824 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
6825 apply the attributes to the variants.
6826
6827 2004-04-30 Paul Brook <paul@codesourcery.com>
6828
6829 * config.gcc: Simplify arm --with-{cpu,tune} test.
6830 * config/arm/arm-cores.def: Document whitespace restrictions.
6831
6832 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6833
6834 PR other/1963
6835 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
6836
6837 2004-04-30 Brian Ford <ford@vss.fsi.com>
6838 DJ Delorie <dj@redhat.com>
6839
6840 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
6841 (DWARF2_DEBUGGING_INFO): Define to enable.
6842 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
6843 DWARF2.
6844 * configure.ac (Target-specific assembler checks)
6845 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
6846 relocs.
6847 * configure: Regenerate.
6848 * config.in: Likewise.
6849
6850 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
6851 (ASM_OUPUT_DWARF_OFFSET): Define.
6852
6853 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
6854
6855 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
6856 (s390_emit_call): New function prototype added.
6857 (s390_tls_get_offset): Function removed.
6858 * config/s390/s390.c (s390_function_ok_for_sibcall,
6859 s390_call_saved_register_used_p): New functions.
6860 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
6861 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
6862 (s390_emit_tls_call_insn): New function.
6863 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
6864 emit_call_insn.
6865 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
6866 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
6867 added.
6868 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
6869 register number used to hold the target address for sibcalls.
6870 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
6871 New expanders.
6872 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
6873 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
6874 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
6875 Expanders removed.
6876 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
6877 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
6878 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
6879 ("epilogue"): Changed the call to s390_emit_epilogue to use the
6880 new parameter.
6881
6882 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
6883
6884 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
6885 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
6886 reg-stack.c, varasm.c, config/alpha/ev4.md,
6887 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
6888 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
6889 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
6890 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
6891 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
6892 config/ia64/itanium2.md, config/ip2k/ip2k.c,
6893 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
6894 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
6895 comment typos.
6896
6897 2004-04-30 Paul Brook <paul@codesourcery.com>
6898
6899 * config.gcc: Default ep9312 to hard-float.
6900 * config/arm/arm-cores.def: Add ARCH field.
6901 * config/arm/arm.c (FL_FOR_ARCH*): Define.
6902 (arm_arch_cirrus): New variable.
6903 (all_cores): Set and use arch.
6904 (all_architectures): Ditto.
6905 (arm_arch_name): New variable.
6906 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
6907 Set and use arm_arch_cirrus.
6908 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
6909 (enum processor_type): Update ARM_CORE define.
6910 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
6911 (CPP_SPEC): Remove %(cpp_cpu_arch).
6912 (CPP_ARCH_DEFAULT_SPEC): Remove.
6913 (CPP_CPU_ARCH_SPEC): Remove.
6914 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
6915 (FPUTYPE_DEFAULT): Don't define here.
6916
6917 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
6918
6919 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
6920 updates too.
6921
6922 2004-04-30 Paul Brook <paul@codesourcery.com>
6923
6924 * arm.c (arm_needs_doubleword_align): Use mode alignment.
6925
6926 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
6927
6928 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
6929 vec_sububs.
6930 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
6931 duplicates.
6932
6933 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6934
6935 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
6936 atan2?f3 expanders.
6937
6938 2004-04-29 Nick Clifton <nickc@redhat.com>
6939
6940 Bug 14093
6941 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
6942 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
6943 Delete static from definition.
6944 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
6945
6946 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6947
6948 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
6949 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
6950 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
6951 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
6952
6953 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
6954
6955 * commom.opt (Wfatal-errors): Add it.
6956 * diagnostic.c (flag_fatal_errors): Define it.
6957 (diagnostic_action_after_output): Check for flag_fatal_errors.
6958 * flags.h (flag_fatal_errors): Declare it.
6959 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
6960 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
6961
6962 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
6963
6964 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
6965 blocks which have kill flag set.
6966
6967 2004-04-29 Ben Elliston <bje@au.ibm.com>
6968
6969 * configure.ac (--with-as): Abort if user-supplied assembler
6970 cannot be executed.
6971 (--with-ld): Likewise for the linker.
6972 * configure: Regenerate.
6973
6974 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6975
6976 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
6977 isn't NULL before using it.
6978
6979 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
6980
6981 PR target/15189
6982 * config/mips/mips.md (load_df_low): Use default length.
6983 (load_df_high, store_df_high): Likewise.
6984
6985 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
6986
6987 * config/mips/mips.md, config/mips/sb1.md,
6988 config/rs6000/rs6000.c: Fix comment typos.
6989
6990 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
6991
6992 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
6993 Fix comment typos.
6994
6995 2004-04-29 Douglas B Rupp <rupp@gnat.com>
6996
6997 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
6998 (delete_if_ordinary): Use above macro.
6999 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
7000 Update copyright.
7001 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
7002
7003 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
7004
7005 * c-decl.c (get_parm_info): Use the correct tag keywords when
7006 warning about type declarations in prototypes.
7007
7008 2004-04-29 Paul Brook <paul@codesourcery.com>
7009
7010 * config.gcc: Pull list of cores from arm-cores.def.
7011
7012 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
7013
7014 * combine.c (combine_simplify_rtx): Adjust call to use
7015 simplify_relational_operation. Do not use SELECT_CC_MODE
7016 when a comparison already has a MODE_CC mode.
7017
7018 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
7019
7020 (simplify_set): simplify_relational_operation may now
7021 return another relational expression.
7022 * cse.c (fold_rtx): simplify_relational_operation now
7023 takes of computing the comparison mode.
7024 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
7025 remove dead code.
7026 (do_compare_rtx_and_jump): Likewise.
7027 * integrate.c (subst_constants): simplify_relational_operation
7028 may now return another relational expression.
7029 * simplify-rtx.c (simplify_gen_relational): Move most code to
7030 the new simplify_relational_operation and
7031 simplify_relational_operation_1 functions.
7032 (simplify_relational_operation): Rewritten.
7033 (simplify_relational_operation_1): New function.
7034 (simplify_ternary_operation): simplify_relational_operation
7035 may now return another relational expression.
7036 (simplify_rtx): Remove unnecessary temp variable.
7037
7038 2004-04-29 Uros Bizjak <uros@kss-loka.si>
7039
7040 * reg-stack.c (swap_to_top): New function.
7041 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
7042 swap_to_top().
7043 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
7044 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
7045 UNSPEC_FSCALE_EXP.
7046
7047 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
7048 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
7049 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
7050 x87's fscale insn.
7051 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
7052 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
7053 patterns.
7054
7055 2004-04-28 Serge Belyshev <1319@bot.ru>
7056
7057 PR 14944
7058 * coverage.c (read_counts_file): Fix usage of warning () call.
7059 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
7060
7061 2004-04-28 Ben Elliston <bje@au.ibm.com>
7062
7063 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
7064 options with "-" in the option index.
7065 (SPARC Options): Likewise.
7066 (M32R/D Options): Likewise.
7067
7068 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7069
7070 * convert.c (convert_to_integer): Convert (long)round -> lround,
7071 etc.
7072
7073 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
7074
7075 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
7076 Return false if we do not have fp register.
7077 (addrs_ok_for_quad_peep): Rename to ...
7078 (mems_ok_for_quad_peep): this.
7079 Add check for volatile memory.
7080 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
7081 Rename to ...
7082 (mems_ok_for_quad_peep): this.
7083 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
7084 to peephole2's.
7085 (lfq_power2): New instruction.
7086 (stfq_power2): Likewise.
7087
7088 2004-04-28 Jan Hubicka <jh@suse.cz>
7089
7090 PR c/15004
7091 * function.c (do_warn_unused_parameter): Break out form ...
7092 (expand_function_end): ... here; warn only when not using cgraphunit.
7093 * function.h (do_warn_unused_parameter): Declare.
7094 * cgraphunit.c: Include function.h.
7095 (cgraph_finalize_function): Do unused parameter warning.
7096 * Makefile.in (cgraphunit.o): Depend on function.h
7097
7098 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
7099
7100 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
7101 calling install-info on $(DESTDIR)$(infodir)/dir already being
7102 present.
7103
7104 2004-04-28 Paul Brook <paul@codesourcery.com>
7105
7106 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
7107
7108 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7109
7110 * gcse.c (find_moveable_store): Do not accept store insns with
7111 REG_EH_REGION note.
7112
7113 2004-04-28 Paul Brook <paul@codesourcery.com>
7114
7115 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
7116 * function.c (assign_temp): Ditto.
7117 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
7118
7119 2004-04-28 Paul Brook <paul@codesourcery.com>
7120
7121 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
7122
7123 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
7124
7125 * var-tracking.c (variable_different_p): Add a parameter
7126 compare_current_location, compare current location of variable parts
7127 if it is true.
7128 (dataflow_set_different_1): Pass compare_current_location == false.
7129 (dataflow_set_different_2): Pass compare_current_location == false.
7130 (emit_notes_for_differences_1): Pass compare_current_location == true.
7131
7132 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7133
7134 * config/s390/s390.md ("casesi"): Mark jump table access as
7135 non-trapping and unchanging.
7136
7137 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7138
7139 PR debug/14829
7140 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
7141 callers.
7142 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
7143 number for indexing hard_regno_nregs array.
7144
7145 2004-04-27 Geoffrey Keating <geoffk@apple.com>
7146
7147 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
7148 * config/darwin-crt2.c: Only have contents on __ppc__.
7149
7150 2004-04-27 Bob Wilson <bob.wilson@acm.org>
7151
7152 * config/xtensa/xtensa.c (call_insn_operand): Check
7153 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
7154 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
7155 * config/xtensa/xtensa.md (call, call_value): Likewise.
7156
7157 2004-04-27 Wu Yongwei <adah@sh163.net>
7158
7159 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
7160 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
7161 (__gthread_mutex_init_function): Replace CreateMutex with
7162 initialization of custom mutex using CreateSemaphore.
7163 (__gthread_mutex_lock): Use InterlockedIncrement.
7164 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
7165 (__gthread_mutex_unlock): Use InterlockedDecrement and
7166 ReleaseSemaphore to unlock
7167 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
7168 __gthread_mutex_lock, __gthread_mutex_trylock,
7169 __gthread_mutex_unlock): Adjust to match inline versions in
7170 gthr-win32.h.
7171
7172 2004-04-27 Paul Brook <paul@codesourcery.com>
7173
7174 * config/arm/arm.c (arm_promote_prototypes): New function.
7175 (TARGET_PROMOTE_PROTOTYPES): Use it.
7176
7177 2004-04-27 Paul Brook <paul@codesourcery.com>
7178
7179 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
7180
7181 2004-04-26 Bernard Giroud <bgiroud@free.fr>
7182
7183 * config/alpha.c (alpha_end_function): For OpenVMS gas,
7184 correctly output .pdesc directive before .end.
7185
7186 2004-04-26 James E Wilson <wilson@specifixinc.com>
7187
7188 Bug 14927
7189 * config/ia64/ia64.md (movxf): New local op0. Handle case where
7190 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
7191
7192 2004-04-26 Zack Weinberg <zack@codesourcery.com>
7193
7194 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
7195 * config/pa/pa-hpux10.h: Likewise.
7196 * config/pa/pa-hpux11.h: Likewise.
7197
7198 2004-04-26 Geoffrey Keating <geoffk@apple.com>
7199
7200 * doc/invoke.texi (Overall Options): Document default for -o
7201 for PCH files.
7202
7203 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7204
7205 * builtins.c (expand_builtin_update_setjmp_buf): New function.
7206 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
7207 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
7208
7209 2004-04-26 Paul Brook <paul@codesourcery.com>
7210
7211 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
7212
7213 2004-04-26 Paul Brook <paul@codesourcery.com>
7214
7215 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
7216
7217 2004-04-25 Roger Sayle <roger@eyesopen.com>
7218
7219 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
7220 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
7221 X % -1 as 0.
7222
7223 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
7224
7225 PR bootstrap/15141
7226 * except.c (connect_post_landing_pads): Delete insns after the
7227 barrier when generating a unwind_resume_libfunc call.
7228
7229 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7230
7231 PR/c++ 15119
7232 * tree.c (substitute_placeholder_in_expr, case 4): New case,
7233 for TARGET_EXPR.
7234
7235 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7236
7237 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7238 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
7239 inhibit_libc is defined.
7240
7241 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
7242
7243 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
7244 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
7245 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
7246 (TARGET_SCHED_VARIABLE_ISSUE): Define.
7247 (mips_adjust_cost): Move later in file, next to other sched hooks.
7248 (mips_macc_chains_last_hilo): New variable.
7249 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
7250 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
7251 * config/mips/mips.md (may_clobber_hilo): New attribute.
7252
7253 2004-04-24 Roger Sayle <roger@eyesopen.com>
7254 Bruce Korb <bkorb@gnu.org>
7255
7256 * fixinc/inclhack.def (aix_syswait_2): New fix.
7257 * fixinc/fixincl.x: Regenerate.
7258 * fixinc/tests/base/sys/wait.h: Update for new test.
7259
7260 2004-04-24 Alan Modra <amodra@bigpond.net.au>
7261
7262 PR target/14960
7263 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
7264 to non_fixed_size, and leave out fixed_size from the sum.
7265 (generate_set_vrsave): Correct clobbers.
7266 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
7267 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
7268 (rs6000_libcall_value): Likewise.
7269 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
7270 (FUNCTION_ARG_REGNO_P): Likewise.
7271
7272 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
7273
7274 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
7275 is a CONST_INT.
7276 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
7277 with NARROW_OP1 instead of OP1.
7278
7279 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
7280
7281 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
7282 and __s390x__ hosts.
7283
7284 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7285
7286 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
7287 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
7288 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
7289 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
7290 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
7291 * builtins.c (expand_builtin_fork_or_exec): New.
7292 (expand_builtin): Call it.
7293 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
7294 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
7295 * c-common.c (PID_TYPE): New macro.
7296 (c_common_nodes_and_builtins): Initialize pid_type_node.
7297 * calls.c (special_function_p): Do not handle fork and exec.
7298 (expand_call): Do not handle ECF_FORK_OR_EXEC.
7299 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7300 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
7301 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7302 __gcov_execv, __gcov_execvp, __gcov_execve): New.
7303 * tree.h (enum tree_index): Add TI_PID_TYPE.
7304 (pid_type_node): New macro.
7305 (ECF_FORK_OR_EXEC): Removed.
7306
7307 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
7308
7309 PR optimization/13985
7310 * cfgloopmanip.c (fix_loop_placements): New prototype.
7311 Call fix_bb_placements on the preheader of loops that have
7312 been reparented.
7313 (remove_path): Adjust call to fix_loop_placements.
7314
7315 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
7316
7317 * config/darwin7.h: New file.
7318 * config.gcc (*-*-darwin*): Add darwin7.h if the
7319 version is greater than 6.
7320 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
7321 (MATH_LIBRARY): Wrap in ifdefs.
7322
7323 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
7324
7325 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
7326 loading iWMMXt registers with a frame pointer. Use post-increment
7327 without a frame pointer.
7328 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
7329
7330 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
7331
7332 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
7333 mode" rather than "-funit-at-a-time" since -O2 enables it
7334 without requiring -f* options. Refer to -fprofile-generate and
7335 -fprofile-use correctly. Move -funit-at-a-time among options
7336 enabled by -O. Add information about unit-at-a-time caveats.
7337
7338 2004-04-22 Per Bothner <per@bothner.com>
7339
7340 * line-map.h (struct line_maps): New field highest_line.
7341 (linemap_position_for_column): Make non-inline function.
7342 (LINEMAP_POSITION_FOR_COLUMN): New macro.
7343 * line-map.c (linemap_init): Clear highest_line field.
7344 (linemap_add): Set highest_line field.
7345 (linemap_line_start): Minor optimization - use highest_line field.
7346 Reduce maximum column hint to 10000. Update highest_line field.
7347 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
7348 * cpphash.h (struct cpp_reader): Remove line field - instead use
7349 line_table->highest_line.
7350 (saved_line): Remove unused field.
7351 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
7352 Use line_table's highest_line field instead of cpp_reader's line.
7353 * cpplib.c (start_directive): Likewise use highest_line field.
7354 (do_line, do_linemarker): Likewise just use newest map.
7355 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
7356 * cpperror.c (cpp_error): Likewise use highest_line field.
7357 * cppfiles.c (open_file_failed: Likewise.
7358 (cpp_make_system_header): Likewise use newest map and highest_line.
7359 * cppinit.c (cpp_create_reader): Don't initialize removed field.
7360 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
7361 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
7362 _cpp_lex_direct): Likewise use highest_line.
7363 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
7364 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
7365 and use newest map.
7366 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
7367 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
7368 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
7369
7370 2004-04-23 Alan Modra <amodra@bigpond.net.au>
7371
7372 PR bootstrap/14992
7373 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
7374 * config/linux.h (USE_LD_AS_NEEDED): Define.
7375 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
7376 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
7377 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
7378 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
7379 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
7380 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
7381 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
7382
7383 2004-04-22 Per Bothner <per@bothner.com>
7384
7385 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
7386 Fixes PR preprocessor/15067.
7387
7388 2004-04-23 Andreas Schwab <schwab@suse.de>
7389
7390 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
7391 avoid aliasing warning.
7392
7393 2004-04-22 Jan Hubicka <jh@suse.cz>
7394 Mostafa Hagog <mustafa@il.ibm.com>
7395
7396 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
7397 * cfgloopanal.c (expected_loop_iterations): Change the return value
7398
7399 2004-04-22 Jakub Jelinek <jakub@redhat.com>
7400
7401 * cselib.h (struct elt_loc_list): Remove canon_loc field.
7402 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
7403 (cselib_invalidate_mem): Remove all canon_loc and canon_x
7404 traces.
7405
7406 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
7407
7408 Revert
7409 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7410
7411 * var-tracking.c (variable_part_different_p): Variable parts
7412 differ when the most recent locations differ.
7413
7414 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
7415
7416 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
7417 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
7418 (embedded_pic_offset): Delete.
7419 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
7420 MASK_* constants.
7421 (TARGET_EMBEDDED_PIC): Delete.
7422 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
7423 (ASM_SPEC): Remove -membedded-pic.
7424 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
7425 (ASM_OUTPUT_CASE_LABEL): Likewise.
7426 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
7427 * config/mips/windiss.h (ASM_SPEC): Likewise.
7428 * config/mips/mips.c (struct machine_function): Remove
7429 embedded_pic_fnaddr_rtx.
7430 (TARGET_ENCODE_SECTION_INFO): Remove override.
7431 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
7432 (override_options): Remove -membedded-pic handling.
7433 (print_operand): Remove handling of '%S'.
7434 (mips_select_section: Remove -membedded-pic handling.
7435 (mips_encode_section_info): Delete.
7436 (mips_output_conditional_branch): Remove mention of -membedded-pic.
7437 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
7438 -membedded-pic handling.
7439 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
7440
7441 2004-04-22 Alan Modra <amodra@bigpond.net.au>
7442
7443 * var-tracking.c (frame_base_decl): Remove useless GTY.
7444
7445 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
7446
7447 * config/rs6000/rs6000.c (rs6000_override_options): Error when
7448 user wants altivec and e500 instructions.
7449
7450 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
7451
7452 PR target/14813
7453 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
7454 in .init_array section to ...
7455 * config/ia64/crtbegin.asm: Here.
7456
7457 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
7458 and hidden if HAVE_INITFINI_ARRAY is defined.
7459
7460 2004-04-21 James E Wilson <wilson@specifixinc.com>
7461
7462 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
7463 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
7464 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
7465 (fp_register_operand, lo_operand): New.
7466 (mips_rtx_costs): Add TUNE_SB1 support.
7467 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
7468 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
7469 (mips_multipass_dfa_lookahead): New.
7470 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
7471 TUNE_SB1): New.
7472 (TARGET_SWITCHES): Add -mfp-exceptions support.
7473 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
7474 (BRANCH_COST): Fix whitespace.
7475 * config/mips/mips.md: Include sb1.md.
7476 * config/mips/sb1.md: New file.
7477 * doc/invoke.texi: Document -mfp-exceptions.
7478
7479 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
7480 comment.
7481 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
7482 (fixincl.o-warn): Delete.
7483
7484 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7485
7486 * config/rs6000/rs6000 (print_operand) ['z']:
7487 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
7488
7489 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
7490
7491 * config.gcc: Support --with-arch=iwmmxt for ARM.
7492
7493 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7494
7495 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
7496 in two more places; remove unneeded force_reg
7497
7498 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7499
7500 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
7501 for TARGET_MACHO.
7502 (print_operand): For TARGET_MACHO check to see if we need a stub
7503 and output one if we need it.
7504
7505 PR debug/15033
7506 * dwarf2out.c (rtl_for_decl_location): Check for NULL
7507 rtl.
7508
7509 2004-04-20 James E Wilson <wilson@specifixinc.com>
7510
7511 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
7512 (vall_value_gp): Likewise.
7513
7514 2004-04-20 DJ Delorie <dj@redhat.com>
7515
7516 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
7517 variables stored in word registers, then in memory.
7518
7519 2004-04-20 Eric Christopher <echristo@redhat.com>
7520
7521 * cp/parser.c (cp_parser_declaration): Move translate
7522 up before tokens are lexed.
7523
7524 2004-04-20 Uros Bizjak <uros@kss-loka.si>
7525
7526 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
7527 (asin_optab, acos_optab): Define corresponding macros.
7528 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
7529 * genopinit.c (optabs): Implement asin_optab and acos_optab
7530 using asin?f2 and acos?f2 patterns.
7531 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
7532 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
7533 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
7534 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7535
7536 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
7537 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
7538 acos, acosf and acosl built-ins as inline x87 intrinsics.
7539
7540 2004-04-20 Paul Brook <paul@codesourcery.com>
7541
7542 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
7543
7544 2004-04-20 Paul Brook <paul@codesourcery.com>
7545
7546 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
7547
7548 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
7549
7550 Revert part of 2004-04-17 change that moved -frename-registers
7551 to -O1. -frename-registers is buggy.
7552
7553 * toplev.c (flag_rename_registers): Initialize to 0.
7554 * doc/invoke.texi (Optimize options): Move -frename-registers
7555 to "Not triggered by any -O level" section. Adjust commentary
7556 accordingly.
7557
7558 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
7559
7560 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
7561
7562 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
7563
7564 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
7565 for mflo and mfhi instructions.
7566 (mips_output_move): Remove mflo and mfhi handling.
7567 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
7568 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
7569 Likewise various define_peephole2s.
7570 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
7571 alternatives.
7572 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
7573 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
7574 (mfhilo_di, mfhilo_si): New patterns.
7575
7576 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7577
7578 * function.c (assign_parms): Force
7579 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
7580
7581 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7582
7583 * var-tracking.c (variable_part_different_p): Variable parts differ
7584 when the most recent locations differ.
7585
7586 2004-04-19 James E Wilson <wilson@specifixinc.com>
7587
7588 * rtl.h (reg_set_last): Delete declaration.
7589 * rtlanal.c (reg_set_last): Delete.
7590
7591 2004-04-19 Roger Sayle <roger@eyesopen.com>
7592
7593 * fold-const.c (fold_convert): Make function extern/public.
7594 * tree.h (fold_convert): Prototype here.
7595 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
7596 expand_builtin_strrchr, expand_builtin_strpbrk,
7597 expand_builtin_mempcpy, expand_builtin_bcopy,
7598 expand_builtin_bzero, expand_builtin_memcmp,
7599 expand_builtin_strcmp, expand_builtin_strncmp,
7600 stabilize_va_list, expand_builtin_sprintf,
7601 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
7602 fold_builtin_exponent, fold_builtin_mempcpy,
7603 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
7604 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
7605 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
7606
7607 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
7608
7609 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
7610 (move_from_CR_gt_bit): New.
7611 (cceq_ior_compare): Name previously unnamed pattern. Disable for
7612 E500.
7613 (cceq_rev_compare): Name previously unnamed pattern. Allow for
7614 E500.
7615
7616 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
7617 (tstsfeq_gpr): Same.
7618 (cmpsfgt_gpr): Same.
7619 (tstsfgt_gpr): Same.
7620 (cmpsflt_gpr): Same.
7621 (tstsflt_gpr): Same.
7622 (e500_cceq_ior_compare): New.
7623 (e500_flip_gt_bit): New.
7624
7625 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
7626 (print_operand): Add 'c' and 'D'.
7627 (rs6000_generate_compare): Rewrite to generate correct rtl.
7628 (rs6000_emit_sCOND): Handle E500.
7629 (output_cbranch): Adjust for changes in rs6000_generate_compare.
7630 (output_e500_flip_gt_bit): New.
7631
7632 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
7633 Protoize.
7634
7635 2004-04-19 Eric Christopher <echristo@redhat.com>
7636
7637 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
7638
7639 2004-04-19 David Edelsohn <edelsohn@gnu.org>
7640
7641 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
7642 fix information.
7643
7644 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7645
7646 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
7647 download URL.
7648
7649 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7650
7651 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
7652 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
7653
7654 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
7655
7656 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
7657 (fold_builtin): Update caller to match.
7658
7659 PR bootstrap/15009
7660 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
7661
7662 PR bootstrap/14999
7663 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
7664
7665 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7666
7667 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
7668
7669 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
7670 (expand_mult_highpart_optab): Likewise.
7671 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
7672
7673 2004-04-19 Paul Brook <paul@codesourcery.com>
7674
7675 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
7676 floatunssisf2, floatunssidf2): New patterns.
7677
7678 2004-04-18 Mark Mitchell <mark@codesourcery.com>
7679
7680 PR other/14918
7681 * doc/invoke.texi (-fprofile-generate): Document requirement to
7682 use -fprofile-generate when linking.
7683
7684 * doc/extend.texi (Strong Using): Warn users against using this
7685 feature.
7686
7687 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
7688
7689 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
7690 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
7691 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
7692 * config/mips/mips.c (struct mips16_constant): Renamed from struct
7693 constant. Propogate change throughout file.
7694 (struct machine_function): Remove insns_len.
7695 (mips_string_length, mips16_strings, string_constants): Delete.
7696 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
7697 when generating mips16 code. Remove special mips16 treatment of
7698 string constants.
7699 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
7700 to have the form LABEL+CONSTANT.
7701 (mips_symbolic_address_p): Fix comment.
7702 (m16_usym8_4, m16_usym5_4): Delete.
7703 (mips_output_function_epilogue): Remove mips16 string handling.
7704 (mips_output_mi_thunk): Call mips16_lay_out_constants.
7705 (mips_select_section, mips_encode_section_info): Remove mips16
7706 string handling.
7707 (struct mips16_constant_pool): New.
7708 (add_constant): Take a mips16_constant_pool structure. Keep pool
7709 sorted into order of ascending mode size. Keep track of the highest
7710 possible start address, taking padding and the masking of the base PC
7711 value into account.
7712 (dump_constants_1): New function, split out from dump_constants.
7713 Handle vector constants. Use gen_consttable_{int,float} rather than
7714 separate functions for each mode.
7715 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
7716 rather than separate functions for each alignment.
7717 (mips_find_symbol): Delete.
7718 (mips16_insn_length): New function, split out from
7719 mips16_lay_out_constants.
7720 (mips16_rewrite_pool_refs): New function.
7721 (mips16_lay_out_constants): Rework. Remove string handling.
7722 Always create an inline constant pool.
7723 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
7724 (UNSPEC_ALIGN): New constants.
7725 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
7726 (UNSPEC_ALIGN_[248]): Delete.
7727 (consttable_int, consttable_float, align): New patterns.
7728 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
7729
7730 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
7731
7732 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
7733 __unn_args_eq.
7734
7735 2004-04-17 Alan Modra <amodra@bigpond.net.au>
7736
7737 PR target/14715
7738 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
7739 with STARTING_FRAME_OFFSET.
7740
7741 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7742
7743 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
7744 * config/mips/mips.c (macc_msac_operand): New function.
7745 * config/mips/mips.md (*msac): Move after *macc.
7746 (*msac2): New. Generalize macc-related peepholes so that they apply
7747 to msac too.
7748
7749 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
7750
7751 * opts.c (decode_options): Do not enable flag_rename_registers
7752 and flag_web at -O3.
7753 * toplev.c (flag_rename_registers): Initialize
7754 flag_rename_registers and flag_web to
7755 AUTODETECT_FLAG_VAR_TRACKING.
7756 (default_debug_hooks): New global.
7757 (process_options): Initialize default_debug_hooks. Warn if
7758 -fvar-tracking specified but not supported by the current
7759 debug format. Do not run var tracking at -O0 or if not
7760 supported by the current debug format, even if
7761 -fvar-tracking was given. If -fno-rename-registers
7762 is not specified, always run register renaming if var
7763 tracking is supported by the default debugging information
7764 format for the target, and we are at -O1 or higher; similarly
7765 for -fweb, but only at -O2 or higher.
7766 * doc/invoke.texi (Optimize Options): Document this.
7767
7768 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7769
7770 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
7771 * configure: Regenerate.
7772
7773 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7774
7775 * gcc.c (used_arg): Check whether an option has been removed.
7776
7777 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7778
7779 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
7780 debugging on Solaris 7 and up.
7781
7782 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7783
7784 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
7785 IRIX 5 port.
7786 Remove -save-temps workaround, handled automatically.
7787 Require GNU binutils 2.15 for debugging.
7788 Remove SGI make warnings since GNU make is now required.
7789 (Specific, mips-sgi-irix6): Some markup fixes.
7790 Describe MIPSpro C problems and workarounds.
7791 Mention working O32 ABI support.
7792 Recommend GNU as 2.15 for O32 with debugging.
7793 Remove description of fixed structure pass/return bug.
7794
7795 2004-04-16 DJ Delorie <dj@redhat.com>
7796
7797 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
7798 TYPE_FIELDS.
7799 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
7800
7801 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7802
7803 * pa.md: Remove unnecessary declarations for asm_out_file.
7804
7805 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
7806 SAR register. Fix comment.
7807 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
7808 (%cr11).
7809
7810 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
7811
7812 2004-04-16 Nick Clifton <nickc@redhat.com>
7813
7814 * config/arm/arm.c (arm_override_options): Revert previous patch.
7815 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
7816 be safely built.
7817
7818 2004-04-16 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7819
7820 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
7821 bug.
7822 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
7823 TARGET_DEFAULT): Changed. Ditto.
7824 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
7825 TARGET_ENDIAN_DEFAULT): Added. Ditto.
7826 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
7827 (TARGET_ENDIAN_DEFAULT): Added.
7828
7829 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7830
7831 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
7832 ATTR_CONST_NOTHROW_LIST.
7833
7834 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7835
7836 PR/middle-end 14915
7837 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
7838 BITS_BIG_ENDIAN.
7839
7840 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
7841
7842 * ra-debug.c (ra_print_rtx): Add break's to case legs.
7843
7844 2004-04-14 James E Wilson <wilson@specifixinc.com>
7845
7846 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
7847
7848 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
7849
7850 * libada-mk.in: New file.
7851 * configure.ac: Create libada-mk from libada-mk.in.
7852 * configure: Regenerate.
7853
7854 2004-04-14 Uros Bizjak <uros@kss-loka.si>
7855
7856 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
7857 (logb_optab, ilogb_optab): Define corresponding macros.
7858 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
7859 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
7860 using logb?f2 and ilogb?i2 patterns.
7861 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
7862 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
7863 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
7864 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7865
7866 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
7867 and UNSPEC_XTRACT_EXP.
7868
7869 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
7870 patterns to implement fxtract x87 instruction.
7871 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
7872 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
7873 intrinsics.
7874 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
7875 x87's fxtract insn.
7876
7877 2004-04-14 Eric Christopher <echristo@redhat.com>
7878
7879 * config/mips/t-elf: Enable multilibs by default.
7880
7881 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
7882
7883 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
7884 previous fix to check HAVE_return at runtime too.
7885
7886 2004-04-14 Nick Clifton <nickc@redhat.com>
7887
7888 * config/arm/arm.c (arm_override_options): If the user has not
7889 specified an ABI, then default to AAPCS for the iWMMXt processor.
7890 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
7891 * config/arm/t-xscale-coff: Likewise.
7892
7893 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7894
7895 * builtins.c (fold_builtin_isdigit): New.
7896 (fold_builtin): Handle BUILT_IN_ISDIGIT.
7897 * defaults.h: Add TARGET_DIGIT0 and sort.
7898 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
7899
7900 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7901
7902 * builtins.c (fold_builtin_cabs, fold_builtin): Use
7903 `mathfn_built_in' to determine the new builtin.
7904 * fold-const.c (fold): Likewise.
7905
7906 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
7907
7908 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
7909 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
7910 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
7911 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
7912 (ASM_SPEC): Update accordingly.
7913 * config/mips/mips.c: Update after above renaming.
7914 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
7915 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
7916
7917 2004-04-13 James E Wilson <wilson@specifixinc.com>
7918
7919 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
7920 increment errorcount and return false instead of true.
7921
7922 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
7923
7924 * optabs.c (expand_twoval_unop): Reorder function arguments.
7925 * builtins.c (expand_builtin_mathfn_3): Update calls to
7926 expand_twoval_unop.
7927
7928 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
7929 and UNSPEC_TAN_TAN. Add missing comment.
7930
7931 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
7932 patterns to implement fptan x87 instruction.
7933 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
7934 and tanl built-ins as inline x87 intrinsics. Define corresponding
7935 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
7936 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
7937 x87's fptan insn.
7938
7939 2004-03-13 Richard Henderson <rth@redhat.com>
7940
7941 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
7942 for LABEL_REFs.
7943
7944 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
7945 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
7946 * doc/invoke.texi: Update to match.
7947
7948 * varasm.c (unlikely_text_section): Use assemble_align instead of
7949 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
7950 correct alignment argument.
7951
7952 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
7953
7954 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
7955 after setting reg_last_reload_reg for optional output reloads.
7956
7957 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
7958
7959 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
7960 Definition of these two macros are corrected by adding
7961 matchine right paren.
7962
7963 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
7964
7965 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
7966
7967 2004-04-12 Roger Sayle <roger@eyesopen.com>
7968
7969 * config/i386/i386.c (output_387_reg_move): New function.
7970 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
7971 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
7972 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
7973 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
7974 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
7975
7976 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7977
7978 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
7979 TYPE_DECL.
7980 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
7981 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
7982 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
7983 Use skip_simple_arithmetic to find SAVE_EXPR.
7984 (force_type_save_exprs, force_type_save_exprs_1): New functions.
7985 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
7986 Properly chain multiple pointers.
7987 (copy_tree_r): Copy a TYPE_DECL.
7988 * tree.c (variably_modified_type_p): Add some missing tests and
7989 make some other minor changes.
7990 * tree.h (force_type_save_exprs): New declaration.
7991
7992 2004-04-12 Roger Sayle <roger@eyesopen.com>
7993
7994 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
7995 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
7996 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
7997 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
7998 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
7999 x%-1 into 0 (or x&0 if x has side-effects).
8000
8001 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
8002
8003 * config/rs6000/rs6000.md: Document why a pattern is not
8004 available.
8005
8006 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
8007 of floats on the E500.
8008 (branch_positive_comparison_operator): Do not allow NE even on the
8009 E500.
8010
8011 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
8012
8013 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
8014 in_text_unlikely_section to in_unlikely_text_section.
8015
8016 2004-04-11 Roger Sayle <roger@eyesopen.com>
8017
8018 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
8019 calling convention to allow a NULL_TREE to be returned. Factor
8020 sanity checks from callers, return NULL_TREE when appropriate.
8021 (fold): Handle COMPOUND_EXPR operands of binary expressions
8022 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
8023 whether a op (b,c) can be rewritten as (b, a op c). Simplify
8024 calls to fold_binary_op_with_conditional_arg.
8025
8026 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8027
8028 * config/mips/iris5.h (current_section_flags): Add
8029 in_unlikely_executed_text and default case.
8030
8031 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
8032
8033 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
8034 failure on solaris. Place ifdef HAVE_return around gen_ret call.
8035 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
8036 HAVE_return and place it around the place where it is needed.
8037
8038 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
8039
8040 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
8041 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
8042 and NORMAL_TEXT_SECTION_NAME.
8043 (unlikely_text_section): Check targetm.have_named_sections
8044 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
8045 instead of SECTION_FORMAT_STRING.
8046 * config/mips/iris5.h (current_section_name): Add
8047 in_unlikely_executed_text case and move the abort into the switch.
8048 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
8049 (NORMAL_TEXT_SECTION_NAME): Remove.
8050 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
8051 (SECTION_FORMAT_STRING): Remove.
8052 * defaults.h (SECTION_FORMAT_STRING): Remove.
8053 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
8054 (SECTION_FORMAT_STRING): Remove.
8055
8056 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
8057
8058 * c-typeck.c (common_type): Prefer long long to long when same
8059 precision.
8060
8061 2004-04-09 Zack Weinberg <zack@codesourcery.com>
8062
8063 PR 14887
8064 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
8065 mode argument.
8066 * config/ia64/ia64.c (ia64_hpux_file_end): Check
8067 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
8068
8069 2004-04-09 Roger Sayle <roger@eyesopen.com>
8070
8071 * simplify-rtx.c (mode_signbit_p): New function to check whether
8072 an RTX is an immediate constant that represents the most significant
8073 bit of a given machine mode.
8074 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
8075 C is the sign bit.
8076 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
8077 when C2 is the sign bit.
8078 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
8079 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
8080 sign bit.
8081
8082 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8083
8084 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
8085 TYPE_MODE.
8086
8087 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
8088
8089 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
8090 of TREE_READONLY for types.
8091
8092 2004-04-09 Caroline Tice <ctice@apple.com>
8093
8094 * basic-block.h (struct edge_def): Add new field, crossing_edge.
8095 (struct basic_block_def): Add new field, partition.
8096 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
8097 definitions.
8098 (partition_hot_cold_basic_blocks): Add extern function
8099 declaration.
8100 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
8101 include statements.
8102 (N_ROUNDS): Increase the maximum number of rounds by 1.
8103 (branch_threshold): Add array value for new round.
8104 (exec_threshold): Add array value for new round.
8105 (push_to_next_round_p): New function.
8106 (add_unlikely_executed_notes): New function.
8107 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
8108 (mark_bb_for_unlikely_executed_section): New function.
8109 (add_labels_and_missing_jumps): New function.
8110 (add_reg_crossing_jump_notes): New function.
8111 (fix_up_fall_thru_edges): New function.
8112 (find_jump_block): New function.
8113 (fix_crossing_conditional_branches): New function.
8114 (fix_crossing_unconditional_branches): New function.
8115 (fix_edges_for_rarely_executed_code): New function.
8116 (partition_hot_cold_basic_blocks): New function.
8117 (find_traces): Add an extra round for partitioning hot/cold
8118 basic blocks.
8119 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
8120 and only cold blocks, into the last (extra) round of collecting traces.
8121 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
8122 over crossing edges.
8123 (bb_to_key): Add code to correctly identify cold blocks when
8124 doing partitioning.
8125 (connect_traces): Modify to connect all the non-cold traces first, then
8126 go back and connect up all the cold traces.
8127 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
8128 * cfg.c (entry_exit_blocks): Add initialization for partition field in
8129 entry and exit blocks.
8130 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
8131 if we are doing hot/cold partitioning.
8132 * cfgcleanup.c (cfglayout.h): Add new include statement.
8133 (try_simplify_condjump): Modify to not attempt on blocks with jumps
8134 that cross section boundaries.
8135 (try_forward_edges): Likewise.
8136 (merge_blocks_move_predecessor_nojumps): Likewise.
8137 (merge_blocks_move_successor_nojumps): Likewise.
8138 (merge_blocks_move): Likewise.
8139 (try_crossjump_to_edge): Modify to not attempt after we have done
8140 the block partitioning.
8141 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
8142 cross section boundaries.
8143 (try_optimize_cfg): Likewise.
8144 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
8145 jumps that cross section boundaries.
8146 * cfglayout.c (flags.h): Add new include statement.
8147 (update_unlikely_executed_notes): New function.
8148 (fixup_reorder_chain): Add code so when a new jumping basic block is
8149 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
8150 updated appropriately.
8151 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
8152 introduced by this optimization.
8153 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
8154 extern function declaration.
8155 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
8156 list of notes that can be deleted.
8157 (create_basic_block_structure): Add initialization for partition field.
8158 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
8159 section boundaries.
8160 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
8161 cross section boundaries.
8162 (commit_one_edge_insertion): Add code so newly created basic block
8163 ends up in correct (hot or cold) section. Modify to disallow
8164 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
8165 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
8166 crosses section boundaries.
8167 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
8168 cross section boundaries.
8169 (force_nonfallthru_and_redirect): Modify to make sure new basic block
8170 ends up in correct section, with correct notes attached.
8171 * common.opt (freorder-blocks-and-partition): Add new flag for this
8172 optimization.
8173 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
8174 the end of functions are written into the correct (hot or cold)
8175 section.
8176 (dbx_source_file): Add code so writing debug file information
8177 doesn't incorrectly change sections.
8178 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
8179 in partitioning hot/cold basic blocks into separate sections.
8180 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
8181 section partitioning.
8182 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
8183 conditional branches can span all of memory.
8184 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
8185 unconditional branches can span all of memory.
8186 * final.c (scan_ahead_for_unlikely_executed_note): New function.
8187 (final_scan_insn): Add code to check for NOTE instruction indicating
8188 whether basic block belongs in hot or cold section, and to make sure
8189 the current basic block is being written to the appropriate section.
8190 Also added code to ensure that jump table basic blocks end up in the
8191 correct section.
8192 * flags.h (flag_reorder_blocks_and_partition): New flag.
8193 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
8194 one of the branches has a jump that crosses between sections.
8195 (find_if_case_2): Likewise.
8196 (ifcvt): Modify to not attempt to mark loop exit edges after
8197 hot/cold partitioning has occurred.
8198 * opts.c (decode_options): Code to handle new flag,
8199 flag_reorder_blocks_and_partition; also to turn it off if
8200 flag_exceptions is on.
8201 (common_handle_option): Code to handle new flag,
8202 flag_reorder_blocks_and_partition.
8203 * output.h (unlikely_text_section): New extern function declaration.
8204 (in_unlikely_text_section): New extern function declaration.
8205 * passes.c (rest_of_handle_stack_regs): Add
8206 flag_reorder_blocks_and_partition as an 'or' condition for calling
8207 reorder_basic_blocks.
8208 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
8209 as an 'or' condition for calling reorder_basic_blocks.
8210 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
8211 * print-rtl.c (print_rtx): Add code for handling new note,
8212 NOTE_INSN_UNLIKELY_EXECUTED_CODE
8213 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
8214 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
8215 cross between section boundaries.
8216 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
8217 indicating the basic block containing it belongs in the cold section.
8218 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
8219 between hot and cold sections.
8220 * toplev.c (flag_reorder_blocks_and_partition): Add code to
8221 initialize this flag, and to tie it to the command-line option
8222 freorder-blocks-and-partition.
8223 * varasm.c (cfglayout.h): Add new include statement.
8224 (unlikely_section_label_printed): New global variable, used for
8225 determining when to output section name labels for cold sections.
8226 (in_section): Add in_unlikely_executed_text to enum data structure.
8227 (text_section): Modify code to use SECTION_FORMAT_STRING and
8228 NORMAL_TEXT_SECTION_NAME macros.
8229 (unlikely_text_section): New function.
8230 (in_unlikely_text_section): New function.
8231 (function_section): Add code to make sure beginning of function is
8232 written into correct section (hot or cold).
8233 (assemble_start_function): Add code to make sure stuff is written to
8234 the correct section.
8235 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
8236 to an if statement that was checking 'in_text_section'.
8237 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
8238 condition to an if statement that was checking 'in_text_section'.
8239 (default_section_type_flags_1): Add check: if in cold section
8240 flags = SECTION_CODE.
8241 * config/darwin.c (darwin_asm_named_section): Modify to use
8242 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
8243 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
8244 specifically for the i386.
8245 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
8246 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
8247 text string to something more informative.
8248 (NORMAL_TEXT_SECTION_NAME): Add new definition.
8249 (SECTION_FORMAT_STRING): Add new definition.
8250 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
8251 '!in_unlikely_text_section' as an 'and' condition to an if statement
8252 that was already checking '!in_text_section'.
8253 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
8254 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
8255 sure these are properly defined for linux on ppc.
8256 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
8257 for this new flag.
8258 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
8259 reg_note.
8260 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
8261 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
8262 these new macros.
8263
8264 2004-04-08 Roger Sayle <roger@eyesopen.com>
8265
8266 * function.c (gen_mem_addressof): When changing the RTX from a REG
8267 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
8268
8269 2004-04-08 Roger Sayle <roger@eyesopen.com>
8270
8271 PR target/14888
8272 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
8273 truncxfdf2_noop): Provide dummy "fmov" implementations.
8274
8275 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
8276
8277 * gcc.c (default_compilers): Add missing initializers.
8278
8279 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
8280 Return 1 if file was successfully mapped.
8281
8282 2004-04-08 Geoffrey Keating <geoffk@apple.com>
8283
8284 PR pch/13419
8285 PR pch/14137
8286 Radar #: 3315288
8287 * doc/invoke.texi (Precompiled Headers): Suggest -o
8288 to put an output file in a particular place. Be more detailed
8289 about which options affect PCH validity and which options
8290 might not work.
8291 * c-pch.c (pch_matching): New.
8292 (MATCH_SIZE): New.
8293 (struct c_pch_validity): New field 'match'.
8294 (pch_init): Handle pch_matching.
8295 (c_common_valid_pch): Check pch_matching.
8296
8297 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
8298
8299 2004-04-08 Mark Mitchell <mark@codesourcery.com>
8300
8301 * doc/invoke.texi (Precompiled Headers): Warn about known
8302 problems.
8303
8304 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
8305
8306 PR c++/14808
8307 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
8308 to 1 if ASM_OUTPUT_DEF is defined.
8309 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
8310 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
8311 Set to non-zero iff not a one_only decl.
8312
8313 2004-04-08 Paul Brook <paul@codesourcery.com>
8314
8315 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
8316
8317 2004-04-08 Paul Brook <paul@codesourcery.com>
8318
8319 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
8320 PROMOTE_FOR_CALL_ONLY.
8321 * config/arm/arm-protos.h (arm_function_value): Declare.
8322 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8323 (TARGET_PROMOTE_PROTOTYPES): Return false.
8324 (arm_function_value): New function.
8325 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
8326 (FUNCTION_VALUE): Call arm_function_value.
8327 * config/cris/cris.h (PROMOTE_MODE): Rename ...
8328 (PROMOTE_FUNCTION_MODE): ... to this.
8329 (PROMOTE_FOR_CALL_ONLY): Remove.
8330 * config/mmix/mmix.h: Likewise.
8331 * config/s390/s390.h: Likewise.
8332 * config/sparc/sparc.h: Likewise.
8333 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
8334 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
8335 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
8336 (PROMOTE_FOR_CALL_ONLY): Remove.
8337
8338 2004-04-08 Joel Sherrill <joel@oarcorp.com>
8339
8340 PR ada/14538
8341 * ada/5rosinte.adb: Remove fake mprotect() body.
8342 * ada/5rosinte.ads: Add SA_SIGINFO.
8343 * ada/5rtpopsp.adb: Rewrite to use new interface.
8344 * ada/init.c: Reorder so the simple single OS conditional __rtems__
8345 is tested before more complex ones which mix UNIX and embedded
8346 systems in the conditional.
8347
8348 2004-04-08 Joel Sherrill <joel@oarcorp.com>
8349
8350 PR ada/14665
8351 * ada/osint.adb (Find_Program_Name): Rework to properly handle
8352 filenames which end in .exe or have versioning suffixes like VMS.
8353
8354 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
8355
8356 PR target/10129
8357 * config/darwin.c (darwin_encode_section_info): When the decl has
8358 a DECL_INITIAL, it is only defined also when it is not a common.
8359
8360 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8361
8362 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
8363 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
8364
8365 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
8366
8367 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
8368 global register variables.
8369
8370 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
8371
8372 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
8373 rpc_xdr_lvalue_cast_b): New fixes.
8374 * fixinc/fixincl.x: Regenerate.
8375 * fixinc/tests/base/rpc/xdr.h: Add new tests.
8376
8377 2004-04-07 David Edelsohn <edelsohn@gnu.org>
8378
8379 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
8380 to power4 and power5 entries.
8381
8382 2004-04-06 Geoffrey Keating <geoffk@apple.com>
8383
8384 * c-common.h (pending_lang_change): Mark for PCH.
8385
8386 2004-04-07 Caroline Tice <ctice@apple.com>
8387
8388 * gcc.c (main): Move 'break' in main loops (on an error)
8389 to wait until error processing has occurred.
8390
8391 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
8392
8393 * config.gcc: Stop changing enable_threads midstream.
8394 Replace uses of enable_threads_flag with enable_threads.
8395 * configure.ac: Replace uses of enable_threads_flag with
8396 enable_threads. Improve autoconf quotation in one place.
8397 * configure: Regenerate.
8398
8399 2004-04-06 Uros Bizjak <uros@kss-loka.si>
8400
8401 * builtins.c: Implement support for sincos function.
8402 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
8403 BUILT_IN_COS{,F,L}.
8404 (expand_builtin_mathfn_3): New function.
8405 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
8406 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
8407 flag_unsafe_math_optimization is set.
8408
8409 * optabs.h (enum optab_index): Add new OTI_sincos.
8410 (sincos_optab): Define corresponding macro.
8411
8412 * optabs.c (init_optabs): Initialize sincos_optab.
8413 (expand_twoval_unop): New function.
8414
8415 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
8416 patterns.
8417
8418 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
8419 and UNSPEC_SINCOS_SIN.
8420
8421 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
8422 sincosxf3): New patterns to implement sincos, sincosf and sincosl
8423 built-ins as inline x87 intrinsics. Define splits for
8424 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
8425 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
8426 sincos patterns.
8427 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
8428 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
8429
8430 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
8431 x87's fsincos insn.
8432
8433 2004-04-06 Devang Patel <dpatel@apple.com>
8434
8435 PR 14467
8436 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
8437
8438 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8439
8440 * doc/install.texi: Update HP-UX 11 installation procedure.
8441
8442 2004-04-06 Paul Brook <paul@codesourcery.com>
8443
8444 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
8445
8446 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
8447
8448 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
8449 when the TLS address is generated by a function call.
8450 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
8451 (tls_local_dynamic): Likewise.
8452
8453 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
8454
8455 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
8456 and TYPE_VOLATILE.
8457
8458 2004-04-05 Caroline Tice <ctice@apple.com>
8459
8460 * gcc.c (combine_flag): New global variable, for new driver option.
8461 (struct compiler): Add two new fields, to be used when
8462 combining multiple input files in a single pass (IMA).
8463 (default_compilers): Add values for the new fields to all
8464 compiler entries. Modify the "@c" compiler entry for doing IMA
8465 properly with "-save-temps" and the "combine" flag.
8466 (option_map): Add new driver option, "--combine", to tell driver
8467 to pass multiple input files to compiler at one time.
8468 (have_o_argbuf_index): New global variable.
8469 (store_arg): Modify to assign value to have_o_argbuf_index.
8470 (struct infile): Add three new fields, to help with IMA.
8471 (display_help): Add help for new "combine" option.
8472 (process_command): Remove local variable have_o; add code to check
8473 for new "combine" option; remove assignment to combine_inputs.
8474 (do_spec_1): Modify to deal with IMA better.
8475 (main): Make variable 'lang_n_infiles' local to entire function
8476 rather than to a single block. Use flag combine_flag to
8477 determine whether to do IMA or not; Modify loop initializing
8478 infiles to deal properly with linker files.
8479 Add code for doing preprocessing in presence of
8480 IMA with "-save-temps" flag. Modify "main" loop to handle
8481 multiple input files, in multiple languages, with or without
8482 preprocessing, gracefully.
8483 * toplev.c (set_src_pwd): Modify to not complain if attempting to
8484 re-set it to same directory it's previously been set to (avoid
8485 irritating, meaningless warning messages when doing IMA with
8486 save-temps).
8487 * doc/invoke.texi: Add "-combine" to list of Overall Options;
8488 remove documentation about IMA that is no longer accurate; Add
8489 documentation explaining what "-combine" does.
8490 * ada/lang-specs.h: Add initialization values for new fields in
8491 "struct compiler".
8492 * cp/lang-specs.h: Likewise.
8493 * f/lang-specs.h: Likewise.
8494 * java/lang-specs.h: Likewise.
8495 * objc/lang-specs.h: Likewise.
8496 * treelang/lang-specs.h: Likewise.
8497
8498 2004-04-05 David Edelsohn
8499
8500 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
8501 symbol handling.
8502
8503 2004-04-05 Jakub Jelinek <jakub@redhat.com>
8504 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8505
8506 PR optimization/13424 (hppa), bootstrap/14462, c/14828
8507 * pa.md: Use replace_equiv_address to retain the attributes of the
8508 memory operands used in the split and peephole2 patterns for optimizing
8509 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
8510
8511 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8512
8513 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
8514 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8515 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
8516 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
8517 PARM_DECL.
8518 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
8519 for a type.
8520 * print-tree.c (print_node): Properly handle side-effects, readonly,
8521 and constant flags.
8522 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
8523 and TREE_CONSTANT if not a type.
8524 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
8525 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
8526 (NON_TYPE_CHECK): New macro.
8527 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
8528
8529 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
8530
8531 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
8532 to DWARF2_DEBUG unconditionally.
8533 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
8534
8535 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
8536 Nathanael Nerode <neroden@gcc.gnu.org>
8537
8538 PR target/14548
8539 * config.host: Set the shell variable host_can_use_collect2.
8540 Set it to yes by default, and to no for alpha*-dec-*vms*,
8541 i[34567]86-*-mingw32*, and powerpc-*-beos*.
8542 * configure.ac: Set and substitute the shell variable collect2.
8543 Give an error if use_collect2 is yes and host_can_use_collect2 is
8544 no.
8545 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
8546 uses. Initialize to @collect2@.
8547 (STAGESTUFF): Remove $(USE_COLLECT2).
8548 * config/alpha/x-vms (USE_COLLECT2): Don't set.
8549 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
8550 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
8551 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
8552 * configure: Regenerate.
8553
8554 2004-04-04 Roger Sayle <roger@eyesopen.com>
8555
8556 * simplify-rtx.c (simplify_binary_operation): Constant fold
8557 DIV, MOD, UDIV and UMOD using div_and_round_double.
8558
8559 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8560
8561 PR c++/14804
8562 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
8563 RECORD_TYPEs.
8564
8565 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8566
8567 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
8568 documentation.
8569
8570 2004-04-04 Roger Sayle <roger@eyesopen.com>
8571
8572 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
8573 updating the REG_EQUAL note on an insn's libcall_insn.
8574
8575 2004-04-04 Roger Sayle <roger@eyesopen.com>
8576
8577 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
8578
8579 2004-04-03 Roger Sayle <roger@eyesopen.com>
8580
8581 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
8582 with reorder_operands_p.
8583
8584 2004-04-03 Jan Hubicka <jh@suse.cz>
8585
8586 * md.texi (vec_set, vec_extract, vec_init): Document.
8587
8588 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
8589
8590 * opts.c (decode_options): Do function inlining with very small
8591 max-inline-insns-* parameters when optimizing for size.
8592
8593 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
8594
8595 * config/i386/i386.h (TARGET_NOCONA): New macro.
8596 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
8597 (processor_type): Add PROCESSOR_NOCONA.
8598
8599 * config/i386/i386.md (cpu): Add nocona to the attribute values.
8600
8601 * config/i386/i386.c (nocona_cost): New variable.
8602 (m_NOCONA): New macro.
8603 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
8604 x86_branch_hints, x86_use_sahf, x86_single_stringop,
8605 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
8606 x86_integer_DFmode_moves, x86_partial_reg_dependency,
8607 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
8608 x86_decompose_lea, x86_arch_always_fancy_math_387,
8609 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
8610 x86_ext_80387_constants, x86_four_jump_limit):
8611 (override_options): Add nocona_cost to processor_target_table.
8612 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
8613 (incdec_operand): Prevent inc/dec generation for Nocona too.
8614 (ix86_issue_rate): Add PROCESSOR_NOCONA.
8615
8616 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
8617
8618 * rtlanal.c (find_reg_note): Manually
8619 unswitch the loop.
8620
8621 2004-04-01 Mark Mitchell <mark@codesourcery.com>
8622
8623 * genemit.c (gen_split): Change prototype of generated code.
8624 * genrecog.c (write_action): Adjust prototype for and calls to
8625 gen_split_*.
8626 * gensupport.c (struct queue_elem): Add split field.
8627 (queue_pattern): Return a value. Clear the split field.
8628 (process_rtx): Maintain an association between an insn and the
8629 split generated from it for a define_insn_and_split.
8630 (process_one_cond_exec): Generate a new split for a
8631 define_insn_and_split.
8632 * config/arm/arm-protos.h (arm_split_constant): Add insn
8633 parameter.
8634 (emit_constant_insn): New function.
8635 (arm_gen_constant): Use it.
8636 * config/arm/arm.md: Adjust calls to arm_split_constant.
8637
8638 2004-04-02 Jan Hubicka <jh@suse.cz>
8639
8640 * cgraph.c: Add overall comment.
8641 (cgraph_inline_hash): New global variable.
8642 (cgraph_create_node): Break out from ...
8643 (cgraph_node): ... here.
8644 (cgraph_edge): New function.
8645 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
8646 (cgraph_remove_edge): Accept edge, intead of source and destination.
8647 (cgraph_redirect_edge_callee): New.
8648 (cgraph_remove_node): Update all new datastructures.
8649 (cgraph_record_call, cgraph_remove_call): Kill.
8650 (dump_cgraph_node): Break out from ... ; dump new datastructures.
8651 (dump_cgraph): ... here.
8652 (cgraph_function_possibly_inlined_p): Use new hashtable.
8653 (cgraph_clone_edge, cgraph_clone_node): New.
8654 * cgraph.h: Include hashtab.h
8655 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
8656 fields, add inlined_to pointer.
8657 (cgraph_node): Add pointer to next_clone.
8658 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
8659 (cgraph_remove_call, cgraph_record_call): Kill.
8660 (cgraph_inline_hash): Declare.
8661 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
8662 cgraph_redirect_edge_callee): Declare.
8663 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
8664 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
8665 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
8666 * cgraphunit.c: Add overall comment.
8667 (cgraph_optimize_function): Kill.
8668 (cgraph_assemble_pending_functions): Do not assemble inline clones.
8669 (cgraph_finalize_function): Update call of cgraph_remove_node
8670 (record_call_1): Record call sites.
8671 (cgraph_create_edges): Accept node instead of decl argument.
8672 (error_found): New static variable.
8673 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
8674 (cgraph_analyze_function): Update for new datastructures.
8675 (cgraph_finalize_compilation_unit): Plug memory leak.
8676 (cgraph_optimize_function): Kill.
8677 (cgraph_expand_function): Do not use cgraph_optimize_function.
8678 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
8679 cgraph_inlined_callees): Kill.
8680 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
8681 clones.
8682 (estimate_growth): Simplify.
8683 (cgraph_clone_inlined_nodes): New function.
8684 (cgraph_mark_inline_edge): Re-implement.
8685 (cgraph_mark_inline): Likewise.
8686 (cgraph_check_inline_limits): Simplify.
8687 (cgraph_recursive_inlining_p): New.
8688 (update_callee_keys): Break out from ...
8689 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
8690 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
8691 Likewise.
8692 (cgraph_expand_all_functions): Remove inline clones from the ordered
8693 list.
8694 (cgraph_preserve_function_body_p): New predicate.
8695 (cgraph_optimize): Verify cgraph.
8696 * function.h (struct function): Add fields saved_tree/saved_args.
8697 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
8698 * toplev.c (rest_of_compilation): Do not free cfun.
8699 * tree-inline.c: Include function.h
8700 (struct inline_data): Add saving_p field; replace decl/current_decl by
8701 node/current_node.
8702 (insert_decl_map): New function.
8703 (copy_body_r): Handle saving; update cgraph datastructure.
8704 (copy_body): Handle recursive inlining.
8705 (initialize_inlined_parameters): Likewise.
8706 (expand_call_inline): Propagate node attributes; update cgraph.
8707 (optimize_inline_calls): Verify that datastructure still match.
8708 (save_body): New function.
8709 * tree-inline.h (save_body): New.
8710 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
8711 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
8712 * langhooks.c (lang_hooks): Add update_decl_after_saving.
8713
8714 2004-04-01 Serge Belyshev <1319@bot.ru>
8715
8716 PR target/14702
8717 * config/i386/i386.md: fix source operand constraints in
8718 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
8719
8720 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
8721
8722 * fold-const.c (folda): Preserve types of comparisons.
8723
8724 2004-04-01 Richard Henderson <rth@redhat.com>
8725
8726 * toplev.c (backend_init): Move init_optimization_passes call ...
8727 (lang_dependent_init): ... here.
8728
8729 2004-04-01 Alan Modra <amodra@bigpond.net.au>
8730 Jakub Jelinek <jakub@redhat.com>
8731
8732 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
8733 -lgcc --as-needed -lgcc_s --no-as-needed by default.
8734 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
8735 * configure: Rebuilt.
8736 * config.in: Rebuilt.
8737 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
8738 (stage2-start, stage3-start, stage4-start): Likewise.
8739 (stageprofile-start, stagefeedback-start): Likewise.
8740
8741 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8742
8743 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
8744 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8745 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8746 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8747 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
8748 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
8749 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
8750 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
8751 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
8752 * config/sparc/t-linux: Removed.
8753
8754 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8755
8756 PR c++/14755
8757 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
8758 "bitfld++ == const" to "++bitfld == const + incr" transformations.
8759
8760 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8761
8762 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
8763 * stor-layout.c (layout_decl): Likewise.
8764 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
8765 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
8766 * print-tree.c (print_node): Handle various used of unsigned_flag.
8767 * tree.def (BIT_FIELD_REF): Update comment.
8768 * tree.h (TREE_UNSIGNED): Deleted.
8769 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
8770
8771 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8772
8773 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
8774 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
8775 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
8776 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
8777 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
8778 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
8779 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
8780 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
8781 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
8782 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
8783 REAL_TYPE, not INTEGER_TYPE.
8784 (layout_type, case VECTOR_TYPE): Simplify code.
8785 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
8786 * tree.h: Update comments.
8787 (STRIP_NOPS): Use TYPE_UNSIGNED.
8788 (TYPE_UNSIGNED): New macro.
8789 (TYPE_TRAP_SIGNED): Remove now redundant check.
8790 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
8791
8792 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8793
8794 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
8795
8796 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
8797
8798 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
8799 Add darwin-fpsave.asm, darwin-vecsave.asm,
8800 and darwin-world.asm.
8801 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
8802 as the asm files contain altivec instructions.
8803 * config/rs6000/darwin-fpsave.asm: New file.
8804 * config/rs6000/darwin-vecsave.asm: New file.
8805 * config/rs6000/darwin-world.asm: New file.
8806
8807 2004-03-31 Zack Weinberg <zack@codesourcery.com>
8808
8809 * gengtype-yacc.y (option, stringseq): Add missing
8810 terminating semicolon.
8811
8812 2004-03-30 David Edelsohn <edelsohn@gnu.org>
8813
8814 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
8815 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
8816 tls_dtprel_ha_32, tls_dtprel_ha_64,
8817 tls_dtprel_lo_32, tls_dtprel_lo_64,
8818 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
8819 tls_tprel_ha_32, tls_tprel_ha_64,
8820 tls_tprel_lo_32, tls_tprel_lo_64,
8821 tls_got_tprel_32, tls_got_tprel_64,
8822 tls_tls_32, tls_tls_64): Replace register_operand with
8823 gpc_reg_operand.
8824
8825 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
8826
8827 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
8828 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
8829 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
8830 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
8831 *ctrdi_internal6): Replace register_operand with
8832 nonimmediate_operand.
8833
8834 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
8835
8836 * fold-const.c (fold): Reassociate multiply expression
8837 with an adjacent non-multiply expression to use
8838 architecture's multiply-add instruction.
8839
8840 2004-03-30 Zack Weinberg <zack@codesourcery.com>
8841
8842 * gengtype.c (create_option): New function.
8843 * gengtype.h: Prototype it.
8844 * gengtype-yacc.y (stringseq): New rule.
8845 (option): Use create_option. Add new bare ID production. Use
8846 stringseq, not STRING directly.
8847
8848 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
8849 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
8850 * varray.h, config/alpha/alpha.c:
8851 Use new shorter form of GTY markers.
8852
8853 * doc/gty.texi: Rewrite.
8854
8855 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
8856
8857 * config/darwin.c (machopic_function_base_name):
8858 Remove current_name and getting the name of the
8859 current function.
8860
8861 2004-03-30 Nick Clifton <nickc@redhat.com>
8862
8863 * config/arm/arm.md (thumb_jump): Reduce the backward branch
8864 range, and increase the forward branch range, to allow for
8865 the fact that the PC will be off by 4.
8866
8867 2004-03-30 Alan Modra <amodra@bigpond.net.au>
8868
8869 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
8870
8871 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
8872
8873 * config/rs6000/rs6000.c (output_vec_const_move):
8874 Find all cases of EASY_VECTOR_15_ADD_SELF.
8875 (easy_vector_constant_add_self): Accept
8876 all vector constant loadable by vsplt* and vadd*.
8877 (easy_vector_same): Use easy_vector_splat_const.
8878 (easy_vector_const): Use easy_vector_splat_const.
8879 (easy_vector_splat_const): New function.
8880 (gen_easy_vector_constant_add_self): New function.
8881
8882 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
8883 New prototype.
8884
8885 * config/rs6000/altivec.md (movv4si splitter): Change to
8886 emit move insn with halfed vector constant.
8887 (*movv8hi splitter): Likewise.
8888 (*movv16qi splitter): Likewise.
8889
8890 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
8891
8892 PR 11591
8893 * config/rs6000/rs6000.c (rs6000_legitimate_address):
8894 Allow any offset to argument pointer in no-strict case.
8895
8896 2004-03-30 Jan Hubicka <jh@suse.cz>
8897
8898 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
8899 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
8900 dump file in non-unit-at-a-time mode.
8901
8902 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
8903
8904 * config/cris/cris.h: Correct #ifdef to test for
8905 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
8906 HAVE_AS_MUL_BUG_ABORT_OPTION.
8907
8908 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8909
8910 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
8911 the address inside the old RTL.
8912
8913 2004-03-28 Zack Weinberg <zack@codesourcery.com>
8914
8915 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
8916 (struct c_binding, struct c_scope): Add chain_next
8917 attributes to GTY markers.
8918 (struct lang_identifier, struct lang_tree_node): Define
8919 here...
8920 * c-tree.h: ... not here. No longer need to declare struct
8921 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8922 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
8923 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8924
8925 PR 14734, 11944
8926 * c-decl.c (get_parm_info): If error_mark_node is encountered
8927 in the bindings chain, unbind and discard it; don't abort.
8928
8929 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
8930 Dorit Naishlos <dorit@il.ibm.com>
8931
8932 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
8933 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
8934
8935 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8936
8937 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
8938
8939 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
8940 (m68hc11_attribute_table): New attribute "page0" to mark a global
8941 variable as being allocated from within page0 section.
8942 (m68hc11_encode_label): New function.
8943 (m68hc11_strip_name_encoding): New function.
8944 (m68hc11_page0_symbol_p): New function.
8945 (m68hc11_indirect_p): Accept global variables marked in page0.
8946 (m68hc11_encode_section_info): Lookup "page0" attribute.
8947
8948 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
8949 represents access to page0 variables.
8950
8951 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
8952 ("*logicalsi3_silshl16_zext"): Likewise.
8953 ("*ashldi3_const32"): Likewise.
8954 (peephole2 ashift): Likewise.
8955
8956 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
8957
8958 * c-tree.h (C_DECL_REGISTER): New.
8959 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
8960 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
8961 (build_array_ref, c_mark_addressable): Set and use it.
8962 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
8963 Allow structures with volatile fields to be declared register.
8964 Don't check TREE_ADDRESSABLE before warning about taking address
8965 of register.
8966 * c-decl.c (finish_decl): Don't allow structures with volatile
8967 fields to be placed in named register.
8968 * doc/trouble.texi: Remove reference to structures with volatile
8969 fields in registers.
8970
8971 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8972
8973 * function.c (thread_prologue_and_epilogue): Move
8974 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
8975 before the epilogue.
8976
8977 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8978
8979 * expr.c (store_constructor): Use gen_int_mode to correctly
8980 sign-extend CONST_INT value.
8981
8982 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8983
8984 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
8985 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
8986 * doc/extend.texi: Likewise.
8987
8988 2004-03-26 Diego Novillo <dnovillo@redhat.com>
8989
8990 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
8991 with TYPE_ORIG_SIZE_TYPE.
8992
8993 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
8994
8995 PR 14219
8996 * c-typeck.c (build_binary_op): Do not allow comparisons of
8997 vectors.
8998
8999 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
9000
9001 * config.gcc: Remove sparc-tti-*.
9002 * config/sparc/pbd.h: Delete.
9003
9004 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
9005 * config/sparc/aout.h: Likewise.
9006
9007 * config/sparc/sparc.h: Remove if 0'd code.
9008 * config/sparc/sparc.md (call): Remove if 0'd code.
9009 (call_value): Likewise.
9010 (nonlocal_goto): Likewise.
9011 (unimp_insn): Delete.
9012
9013 2004-03-25 Roger Sayle <roger@eyesopen.com>
9014
9015 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
9016 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
9017
9018 2004-03-25 Richard Henderson <rth@redhat.com>
9019
9020 PR 11527
9021 * c-typeck.c (pop_init_level): Emit pending init elements earlier
9022 rather than later.
9023
9024 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9025
9026 * builtins.c (fold_builtin): Fix error in last change.
9027
9028 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
9029
9030 * config/mips/mips.h: Formatting fix.
9031
9032 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9033
9034 * builtins.def: Add ctype builtins.
9035 * doc/extend.texi: Likewise.
9036
9037 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9038
9039 * builtins.c (fold_builtin): Add new builtin optimizations for
9040 sqrt and/or cbrt.
9041 * fold-const.c (fold): Likewise.
9042
9043 2004-03-25 David Edelsohn <edelsohn@gnu.org>
9044
9045 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
9046 (rs6000_sched_groups): New variable.
9047 (processor_target_table): Add power5.
9048 (rs6000_override_options): Set rs6000_sched_insert_nops,
9049 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
9050 from rs6000_sched_groups.
9051 (output_cbranch): Use rs6000_always_hint.
9052 (rs6000_variable_issue): Use rs6000_sched_groups.
9053 (rs6000_adjust_cost): Add CPU_POWER5.
9054 (is_microcoded_insn): Use rs6000_sched_groups.
9055 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
9056 Return 2 for POWER5 cracked instructions.
9057 (is_cracked_insn): Use rs6000_sched_groups.
9058 (is_branch_slot_insn): Use rs6000_sched_groups.
9059 (rs6000_issue_rate): Add CPU_POWER5.
9060 (rs6000_sched_finish): Use rs6000_sched_groups.
9061 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
9062 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
9063 (DEFAULT_SCHED_COSTLY_DEP): Delete.
9064 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
9065 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
9066 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
9067 * config/rs6000/power5.md: New file.
9068 * doc/invoke.texi: Add power5 option.
9069
9070 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
9071
9072 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
9073 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
9074 * doc/invoke.texi: Fix a typo.
9075
9076 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
9077
9078 PR optimization/9707.
9079 * stmt.c (emit_case_nodes): Emit equality comparisons instead
9080 of recursing if both children are single-valued cases with no
9081 children.
9082
9083 2004-03-25 Paul Brook <paul@codesourcery.com>
9084
9085 * config/arm/arm.c (vfp_print_multi): Remove.
9086 (arm_output_fldmx): New function.
9087 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
9088 (arm_expand_prologue): Update to match.
9089 (arm_get_vfp_saved_size): New Function.
9090 (arm_get_frame_offsets): Use it.
9091 (arm_output_epilogue): Use new functions.
9092
9093 2004-03-24 Richard Henderson <rth@redhat.com>
9094
9095 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
9096 (reg_known_value, reg_known_value_size): Likewise; make static.
9097 (reg_known_equiv_p): Make static.
9098 (clear_reg_alias_info): Update for new indexing.
9099 (get_reg_known_value, set_reg_known_value): New.
9100 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
9101 (canon_rtx): Use them.
9102 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
9103 Don't play queer offsetting games with reg_known_value and
9104 reg_known_equiv_p.
9105 (end_alias_analysis): Free reg_known_value with gc.
9106 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
9107 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
9108 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
9109 functions instead.
9110
9111 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
9112
9113 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
9114 config/i386/mmintrin.h: Update copyright.
9115
9116 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9117
9118 * configure.ac: Add --enable-werror-always (for top level bootstrap
9119 support).
9120 * configure: Regenerate.
9121
9122 2004-03-24 Ziemowit Laski <zlaski@apple.com>
9123
9124 * objc/objc-act.c (objc_comptypes): Treat comparisons
9125 between 'Class' and '<class> *' as explicitly invalid.
9126
9127 2004-03-24 David Edelsohn <edelsohn@gnu.org>
9128
9129 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
9130 (-fprofile-values): Add enabled with profile-{generate,use}.
9131 (-fvpt): Same.
9132 (-ftracer): Add enabled with profile-use.
9133 (-funit-at-a-time): Add enabled at -O2,-O3.
9134 (-funroll-loops): Add enabled with profile-use.
9135 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
9136 (max-gcse-passes): Mention default.
9137 (max-cse-path-length): Mention default.
9138
9139 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9140
9141 * Makefile.in (STRICT2_WARN): Reorder.
9142 * configure.ac: Check for -Wold-style-definition, and use it
9143 in strict1_warn if it's available.
9144 * configure: Regnerate.
9145
9146 2004-03-24 Paul Brook <paul@nowt.org>
9147
9148 * config.gcc <arm>: Add --with-abi=
9149 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
9150 thumb_far_jump_used): Remove prototypes.
9151 (arm_needs_doubleword_align): Add prototype.
9152 (thumb_compute_initial_elimination_offset): Ditto.
9153 * config/arm/arm.c (arm_get_frame_offsets): New function.
9154 (use_return_insn, output_return_instruction, arm_output_epilogue,
9155 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
9156 arm_expand_prologue, thumb_expand_epilogue): Use it.
9157 (arm_abi, target_abi_name, all_arm_abis): New variables.
9158 (arm_override_options): Set them. Set structure padding for AAPCS.
9159 (arm_return_in_memory): Update ABI check.
9160 (arm_init_cumulative_args): Initialize can_split.
9161 (arm_needs_doubleword_align): New function.
9162 (arm_function_arg): Don't split args after pushing to stack. Handle
9163 doubleword/even reg alignment.
9164 (arm_va_arg): Handle all doubleword aligned args.
9165 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
9166 on ABI, not CPU.
9167 (arm_compute_save_reg0_reg12_mask): Fix comment.
9168 (thumb_get_frame_size, thumb_get_frame_size): Remove.
9169 (thumb_jump_far_used_p): Remove superfluous argument. Return save
9170 value for alignment.
9171 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
9172 to match.
9173 (thumb_compute_initial_elimination_offset): New function.
9174 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
9175 unneccessary rounding.
9176 * config/arm/arm.h (target_abi_name): Declare.
9177 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
9178 arm_abi_type, ARM_DEFAULT_ABI): Define.
9179 (ARM_FLAG_ATPCS): Remove.
9180 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
9181 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
9182 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
9183 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
9184 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
9185 Contitionalize on ABI, not CPU.
9186 (struct arm_stack_offsets): Define.
9187 (struct machine_function): Add stack_offsets. Remove frame_size.
9188 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
9189 pushed.
9190 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
9191 doubleword alignment.
9192 (THUMB_INITIAL_ELIMINATION_OFFSET,
9193 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
9194 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
9195 * config/arm/arm.md (align_8): Enable for all targets.
9196 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
9197 (ARM_DEFAULT_ABI): Define.
9198 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
9199 -mstructure-size-boundary.
9200
9201 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9202
9203 * configure.ac: Check for -Wno-variadic-macros; don't use
9204 -pedantic (in stage 1 or a simple 'make all') unless it's available,
9205 and if it's available, use it. Also, clean up check for
9206 -Wno-long-long.
9207 * configure: Regenerate.
9208
9209 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
9210
9211 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
9212 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
9213 (MULTILIB_DEFAULTS): Use it.
9214 (MIPS_CPU_STRING_DEFAULT): Remove.
9215 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
9216 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
9217 EABI64 -mlong32 the default ABI. Enforce the default architecture.
9218 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
9219 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
9220 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
9221 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
9222 accordingly.
9223
9224 2004-03-24 DJ Delorie <dj@redhat.com>
9225 Richard Sandiford <rsandifo@redhat.com>
9226
9227 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
9228 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
9229 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
9230 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
9231 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
9232 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
9233 if TARGET_FIX_VR4122.
9234 * config/mips/mips.md (define_attr length): Account for nops inserted
9235 after macc and dmult when using -mfix-vr4122-bugs.
9236 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
9237 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
9238 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
9239 * config/mips/vr4122-div.S: New file.
9240 * doc/invoke.texi: Document -mfix-vr4122-bugs.
9241
9242 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
9243
9244 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
9245 (TARGET_MIPS4130): New macro.
9246 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
9247 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
9248 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
9249 with PROCESSOR_R4130.
9250 * config/mips/mips.md (define_attr cpu): Add r4130.
9251 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
9252
9253 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9254 Richard Sandiford <rsandifo@redhat.com>
9255
9256 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
9257
9258 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
9259
9260 PR preprocessor/14438
9261 * cpplib.c (do_pragma): Remove line_change call after pragma
9262 handler.
9263
9264 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
9265
9266 * doc/extend.texi (ARM Built-in Functions): Replace with correct
9267 declarations.
9268
9269 2004-03-23 Roger Sayle <roger@eyesopen.com>
9270
9271 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
9272 if flag_unsafe_math_optimizations.
9273 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
9274 and TARGET_80387 expand using truncdfsf2_noop pattern.
9275 (truncxfsf2): Likewise using truncxfsf2_noop.
9276 (truncxfdf2): Likewise using truncxfdf2_noop.
9277 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
9278
9279 2004-03-23 Ziemowit Laski <zlaski@apple.com>
9280
9281 * hooks.c (hook_constcharptr_tree_null): New hook.
9282 * hooks.h (hook_constcharptr_tree_null): New prototype.
9283 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
9284 * target.h (mangle_fundamental_type): New target hook.
9285 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
9286 target hook at rs6000_mangle_fundamental_type.
9287 (rs6000_mangle_fundamental_type): New function.
9288 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
9289
9290 2004-03-23 Zack Weinberg <zack@codesourcery.com>
9291
9292 PR 12267, 12391, 12560, 13129, 14114, 14133
9293 * c-tree.h: Forward declare struct c_binding. Declare
9294 c_override_bindings_to_false. Update prototypes.
9295 (struct lang_identifier): Update comments. Change fields to be
9296 struct c_binding *.
9297 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
9298 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
9299 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
9300 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
9301 * c-common.h: Update prototypes.
9302 * c-decl.c (struct c_scope): Update commentary. Remove names,
9303 names_last, parms, parms_last, tags, and shadowed fields. Add
9304 bindings and depth fields.
9305 (scope_freelist): Move to more appropriate location.
9306 (c_print_identifier): Update for changes to struct lang_identifier.
9307 (objc_mark_locals_volatile): Update for new bindings structures.
9308 (global_bindings_p): Honor c_override_global_bindings_to_false.
9309 (pushlevel): Rename to push_scope; take no arguments; use the
9310 scope_freelist; initialize scope->depth and check for overflow.
9311 (poplevel): Rename to pop_scope; totally rewritten for new bindings
9312 structures.
9313 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
9314 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
9315 Improve some commentary. Adjust handling of forward parm decls.
9316 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
9317 Preserve C_DECL_IN_EXTERNAL_SCOPE.
9318 (warn_if_shadowing): Correct indentation. Improve diagnostics.
9319 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
9320 decls. Rewrite for new bindings structures. Improve commentary.
9321 Eliminate the copy_node call.
9322 (implicit_decl_warning): Use the "diag" idiom (as seen in
9323 locate_old_decl) to reduce code duplication; call locate_old_decl
9324 if appropriate. Relocate to remove need for forward declaration.
9325 (implicitly_declare): Adjust for new bindings structures. Kludge
9326 around Objective-C not-really-builtin functions.
9327 (undeclared_variable): Improve diagnostics. If current_function_decl
9328 is nonnull but current_function_scope is null, use current_scope.
9329 Use bind.
9330 (lookup_tag): Adjust for new bindings structures. Kludge around
9331 Objective-C's tag declarations that wind up in the external scope.
9332 (lookup_name): Adjust for new bindings structures. Kludge around
9333 c-common.c's pseudo-typedefs that wind up in the external scope.
9334 (lookup_name_current_level): Rename lookup_name_in_scope; take a
9335 second argument indicating the scope to examine; rewrite for
9336 new bindings structures.
9337 (c_init_decl_processing): Adjust for renamed functions. Do not
9338 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
9339 First scope pushed is the external scope, not the global scope.
9340 (builtin_function): Use bind, not pushdecl. Adjust other bits
9341 for new data structures. Keep track of builtins that should be
9342 made visible automatically.
9343 (start_decl): Adjust diagnostics. Remove unnecessary call to
9344 expand_decl.
9345 (grokparms): Return 0 if arg_types is error_mark_node.
9346 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
9347 reversed sense. Rewrite for new bindings structures. Do not
9348 leave any decls in the scope, to prevent pop_scope from doing
9349 contradictory things with them.
9350 (finish_struct, finish_enum): Remove redundant diagnostics.
9351 (build_enumerator): Don't cascade diagnostics for error_mark_node.
9352 Mark location where -pedantic changes the meaning of the program.
9353 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
9354 parameter decls into the function's scope structure using bind.
9355 Warn here about function definitions in the wrong style.
9356 Adjust diagnostics.
9357 (store_parm_decls): Correct the determination of whether a
9358 function was defined with a prototype.
9359 (c_write_global_declarations): Operate on all file decls and on
9360 the external scope. Split body of the loop to...
9361 (c_write_global_declarations_1): ... this new function, to avoid
9362 code duplication.
9363 (truly_local_externals, first_builtin_decl, last_builtin_decl)
9364 (make_scope, pop_scope, in_parm_level_p, set_block)
9365 (any_external_decl, record_external_decl, bind_label, getdecls)
9366 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
9367 (c_reset_state): Delete.
9368 (visible_builtins, c_override_global_bindings_to_false)
9369 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
9370 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
9371 (external_scope, binding_freelist, bind, free_binding_and_advance)
9372 (push_file_scope, pop_file_scope): New.
9373 (pushtag, pushdecl_top_level, lookup_label, declare_label)
9374 (define_label, c_make_fname_decl, finish_decl)
9375 (mark_forward_parm_decls, build_compound_literal)
9376 (grokdeclarator, start_function, check_for_loop_decls)
9377 (identifier_global_value, record_builtin_type): Minor adjustments
9378 for new bindings structures. Improve diagnostics and commentary.
9379 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
9380 pushlevel/poplevel respectively.
9381 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
9382 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
9383 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
9384 correct loop over multiple translation units; call fatal_error if
9385 requested to compile more than one file at once. (This disables
9386 IMA temporarily - an up-front error being preferable to a crash.)
9387 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
9388 (all actions): Adjust calls to pushlevel/poplevel.
9389 (parsing_iso_function_signature): Delete.
9390 (extdef_1): Fold into extdef.
9391 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
9392 warn here about function definitions in the wrong style.
9393 (after_tyle_declarator, parm_declarator_starttypename)
9394 (parm_declarator_nostarttypename, notype_declarator): Remove
9395 commented-out productions.
9396 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
9397 an empty TREE_LIST node. Adjust calls to get_parm_info.
9398 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
9399 to suppress -Wold-style-definition after this error.
9400 (c_parse_file): Don't clear the binding stack or call
9401 finish_fname_decls here. Correct comment.
9402 * c-typeck.c (same_translation_unit_p): Export.
9403 (common_type): Use c_override_global_bindings_to_false, not
9404 pushlevel/poplevel/declare_parm_level.
9405 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
9406 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
9407 and LANG_HOOKS_GETDECLS with do-nothing stubs.
9408 * objc/objc-lang.c: Likewise.
9409 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
9410 get_parm_info.
9411 (OBJC_VOID_AT_END): Delete; replace all uses
9412 with void_list_node.
9413 (generate_forward_declaration_to_string_table): Delete.
9414 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
9415
9416 * coverage.c (create_coverage): Don't pushdecl anything.
9417 * langhooks.c (lhd_clear_binding_stack): Call
9418 lang_hooks.decls.poplevel, not poplevel.
9419 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
9420 circular list rather than going into an infinite loop.
9421
9422 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
9423
9424 * optabs.c (expand_binop): When synthesizing double word rotates
9425 from single word shifts, use a new register target if the provided
9426 target is not a REG already.
9427
9428 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9429
9430 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
9431 * c-common.c (handle_mode_attribute): Add extra arg to
9432 build_pointer_type_for_mode and build_reference_type_for_mode.
9433 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
9434 for INTEGER_CST.
9435 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
9436 Chain pointers via TYPE_NEXT_PTR_TO.
9437 (build_reference_type_for_mode): Similarly.
9438 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
9439 and build_reference_type_for_mode.
9440 (tree_check4_failed): New function.
9441 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
9442 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
9443 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
9444 Add check.
9445
9446 2004-03-23 Roger Sayle <roger@eyesopen.com>
9447
9448 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
9449 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
9450 when both A and B are nonnegative.
9451 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
9452 nonzero.
9453
9454 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9455
9456 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
9457 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
9458
9459 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9460
9461 PR optimization/14669
9462 * fold-const.c (fold): Only unwiden integer comparisons for equality
9463 and inequality operators, or when the signedness doesn't change.
9464
9465 2004-03-23 Jakub Jelinek <jakub@redhat.com>
9466
9467 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
9468 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
9469 * config/sparc/t-linux: New file.
9470
9471 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
9472
9473 * gcse.c (can_assign_to_reg_p): New function, split out from...
9474 (want_to_gcse_p): ...here.
9475 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
9476 the rhs of a store.
9477
9478 2004-03-22 Diego Novillo <dnovillo@redhat.com>
9479
9480 * c-typeck.c (same_translation_unit_p): Fix pasto.
9481
9482 2004-03-22 David Edelsohn <edelsohn@gnu.org>
9483
9484 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
9485 (PARAM_MAX_SCHED_REGION_INSNS): New.
9486 * sched-rgn.c: Include params.h
9487 (MAX_RGN_BLOCKS): Delete.
9488 (MAX_RGN_INSNS): Delete.
9489 (too_large): Return bool. Convert to PARAM_VALUE.
9490 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
9491 * doc/invoke.texi (param): Document max-sched-region-blocks and
9492 max-sched-region-insns.
9493
9494 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9495
9496 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
9497 for base types.
9498
9499 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9500
9501 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
9502 change.
9503
9504 2004-03-22 Jakub Jelinek <jakub@redhat.com>
9505
9506 PR c/14069
9507 * c-decl.c (finish_struct): Change type of incorrect flexible array
9508 field into error_mark_node.
9509
9510 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
9511
9512 PR target/14580
9513 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
9514 who are not local for Darwin PIC.
9515
9516 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
9517
9518 * regrename.c (regrename_optimize): Set regs_ever_live for all
9519 registers introduced as replacement.
9520
9521 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9522
9523 PR middle-end/14470
9524 * expr.c (mark_queue): New function.
9525 (emit_insns_enqueued_after_mark): New function replacing
9526 emit_queue. Clear the body of emitted queued insns.
9527 (emit_queue): Call emit_insns_enqueued_after_mark.
9528 (store_expr): Mark the increment queue on entry. Emit
9529 only the incrementations queued when expanding the source.
9530
9531 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
9532
9533 * configure.ac: Allow --disable-coverage-flags (for the future benefit
9534 of top level bootstrap, and consistency). Reindent.
9535 * configure: Regenerate.
9536
9537 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
9538
9539 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
9540 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
9541 unnecessary casts.
9542
9543 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
9544
9545 PR target/14291
9546 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
9547 __MINGW32__.
9548
9549 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9550
9551 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
9552 to nonimmediate_operand.
9553 ("*doloop_di"): Likewise.
9554
9555 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
9556
9557 * real.h (struct real_value): Use the same type for all
9558 bitfields. Rename exp to uexp.
9559 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
9560 Adjust all uses of exp...
9561 * builtins.c: ... here, ...
9562 * emit-rtl.c: ... here, and ...
9563 * real.c: ... and here.
9564
9565 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
9566
9567 * pretty-print.c (pp_base_maybe_space): New function.
9568 * pretty-print.h (pp_base_maybe_space): Declare.
9569 (pp_maybe_space): New macro.
9570
9571 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9572
9573 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
9574
9575 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9576
9577 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
9578 of using register multiplication cost.
9579 (expand_mult): Adapt choose_mult_variant call.
9580 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
9581 of MODE; pass appropriate cost bound. Adjust result when
9582 performing signed multiplication by a negative constant.
9583 Don't use intermediate modes larger than word_mode.
9584
9585 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9586
9587 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
9588 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
9589 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9590 * explow.c (expr_size): Likewise.
9591 * expr.h (placeholder_list, find_placeholder): Deleted.
9592 * expr.c (store_constructor): Likewise.
9593 (get_inner_reference): Likewise. Also don't call find_placeholder.
9594 (placeholder_list, find_placeholder): Deleted.
9595 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
9596 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
9597 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
9598 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
9599 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
9600 Likewise.
9601 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
9602 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
9603 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
9604 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
9605 Clean up by using first_rtl_op.
9606 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
9607 (substitute_placeholder_in_expr): New function.
9608 * tree.def (WITH_RECORD_EXPR): Deleted.
9609 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
9610 (substitute_placeholder_in_expr): New.
9611
9612 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
9613
9614 * dojump.c (prefer_and_bit_test): Fix which part of
9615 the and_test is replaced.
9616
9617 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
9618
9619 * frontends.texi: Add missing line.
9620
9621 2004-03-21 Zack Weinberg <zack@codesourcery.com>
9622 Chris Devers <cdevers@pobox.com>
9623 Joseph S. Myers <jsm@polyomino.org.uk>
9624
9625 * doc/frontends.texi: Rewrite.
9626 * doc/gcc.texi: Update last modification date.
9627
9628 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
9629
9630 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
9631 message before redirecting the edge.
9632
9633 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9634
9635 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
9636 flag.
9637 * explow.c (force_not_mem): Set REG_POINTER flag according to
9638 MEM_POINTER one.
9639 * rtl.h (MEM_POINTER): New macro.
9640 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
9641 for MEM_POINTER.
9642
9643 2004-03-20 Roger Sayle <roger@eyesopen.com>
9644
9645 PR target/13889
9646 * cse.c (fold_rtx): Avoid substituting constants into unary
9647 conversion operations.
9648
9649 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9650
9651 * fold-const.c (fold): Replace "expr" with "t".
9652
9653 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
9654
9655 PR c/12373
9656 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
9657 DECL_ORIGINAL_TYPE if there isn't one.
9658
9659 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9660
9661 * fold-const.c (fold): Replace "final_type" with "type".
9662 Remove variable "final_type".
9663
9664 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9665
9666 * fold-const.c (fold): Constify "type".
9667 Replace "TREE_TYPE (t)" with "type".
9668
9669 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9670
9671 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
9672 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
9673 via (*targetm.foo) () with targetm.foo ().
9674
9675 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9676
9677 PR other/14630
9678 * doc/install.texi: Add info directory category and entry.
9679
9680 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9681
9682 * fold-const.c (fold): Replace "t" with "tem" where it is used
9683 as a temporary variable. Remove "orig_t" and all of its uses.
9684
9685 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9686
9687 * fold-const.c (fold): Remove variable "invert".
9688 Move the handling of relational expressions that can be folded
9689 to a constant ...
9690 (fold_relational_const): ... here.
9691 (tree_expr_nonzero_p): New.
9692
9693 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9694
9695 PR c/14635
9696 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
9697 DEF_GCC_BUILTIN.
9698
9699 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
9700
9701 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
9702 (GTFILES): Add $(srcdir)/dojump.h.
9703 (gt-dojump.h): New dependency.
9704 * dojump.c (and_reg, and_test, shift_test): New static variables.
9705 (prefer_and_bit_test): New function.
9706 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
9707
9708 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9709
9710 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
9711 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
9712 reorg.c, tree.h: Fix comment typos.
9713
9714 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9715
9716 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
9717 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
9718 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
9719 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
9720 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
9721 vmsdbgout.c: Replace calls via (*targetm.foo) () with
9722 targetm.foo ().
9723
9724 2004-03-19 Ziemowit Laski <zlaski@apple.com>
9725
9726 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
9727 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
9728 always_inline attribute.
9729 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
9730 Treat expansion as completed even if literal argument is
9731 invalid (so that other expansions are not tried in vain).
9732
9733 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9734
9735 * loop-doloop.c (add_test): Replace GEN_INT (0) with
9736 const0_rtx.
9737
9738 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9739
9740 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
9741 ...
9742 (fold_abs_const): ... here.
9743
9744 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9745
9746 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
9747
9748 2004-03-19 Denis Chertykov <denisc@overta.ru>
9749
9750 PR target/11520
9751 * config/avr/avr.md ("call_insn"): Handle explicit integer
9752 specially.
9753 (call_value_insn): Likewise.
9754
9755 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9756
9757 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
9758
9759 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9760
9761 * fold-const.c (negate_expr): Move the handling of constants
9762 ...
9763 (fold_negate_const): ... here.
9764
9765 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9766
9767 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
9768 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
9769 * tree.c (debug_no_type_hash): Deleted.
9770 (type_hash_canon): Abort if passed a variant.
9771 Check lang_hooks.types.hash_types.
9772 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
9773 (build_array_type): Remove unnecessary allocation of pointer type.
9774 (build_complex_type): Properly qualify resulting type.
9775
9776 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
9777
9778 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
9779
9780 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
9781
9782 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
9783 (expand_mult): ...here.
9784 (extract_high_half): New, split out from expand_mult_highpart.
9785 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
9786 (expand_highpart): Evaluate the cost of a shift/add sequence,
9787 then see if any of the specialized optabs are cheaper.
9788
9789 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
9790
9791 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
9792
9793 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9794
9795 * convert.c (convert_to_real): Add more math builtins.
9796
9797 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9798
9799 * convert.c (convert_to_real): Reformat using switch stmt.
9800
9801 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9802
9803 * c-common.c (pointer_int_sum): Do not complain about using
9804 pointers to pointers-to-members.
9805
9806 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
9807
9808 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
9809 have moved to the target hooks structure".
9810
9811 2004-03-18 James E Wilson <wilson@specifixinc.com>
9812
9813 * config/mips/mips.md (type): Split move into arith and fmove. Split
9814 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
9815 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
9816 Likewise.
9817 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
9818 Likewise.
9819 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
9820 rm7_fp_quick): Likewise.
9821 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
9822 rm9k_fquick): Likewise.
9823 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
9824 Likewise.
9825 (ir_sr70_icmp): Delete.
9826
9827 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9828
9829 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
9830 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
9831 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
9832 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
9833 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
9834 Protect with proper check.
9835 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
9836 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
9837 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
9838 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
9839 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
9840 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
9841 not TYPE_FIELDS.
9842 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
9843
9844 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
9845
9846 * gcse.c (eliminate_partially_redundant_loads): Reject change if
9847 dest is set between beginning and current insn.
9848
9849 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9850
9851 * c-decl.c (grokdeclarator): Do not complain about redeclaring
9852 visible "static" identifiers "extern" in a local scope.
9853 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
9854 post-increments/decrements.
9855
9856 2004-03-18 Bob Wilson <bob.wilson@acm.org>
9857
9858 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
9859 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
9860 (xtensa_va_start): Remove assignment to current_function_arg_words.
9861
9862 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
9863
9864 * alias.c (record_set): Detect the case where a register is assigned
9865 a new value that has the same base term as the old one.
9866
9867 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9868
9869 * doloop.c: Removed.
9870 * loop-doloop.c: New file.
9871 * Makefile.in (doloop.o): Remove.
9872 (loop-doloop.o): New.
9873 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
9874 * cfgloopanal.c (get_loop_level): New function.
9875 * loop-iv.c (iv_number_of_iterations): Handle case when loop
9876 is leaved immediatelly.
9877 * loop.c (strength_reduce): Do not call doloop optimization.
9878 * loop.h (LOOP_BCT): Removed.
9879 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
9880 (rest_of_handle_loop2): Call doloop_optimize_loops.
9881 (rest_of_compilation): Test for optimizations moved to
9882 rest_of_handle_loop2.
9883
9884 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
9885
9886 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
9887 for mixed mode.
9888 (rs6000_emit_prologue): Ditto.
9889 (rs6000_emit_epilogue): Ditto.
9890 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
9891 macro for mixed mode.
9892
9893 2004-03-18 Jan Hubicka <jh@suse.cz>
9894
9895 * predict.c (propagate_freq): Compute correctly frequency of
9896 EXIT_BLOCK.
9897
9898 2004-03-17 Eric Christopher <echristo@redhat.com>
9899
9900 * builtins.c (apply_args_size): Use reg_raw_mode.
9901 (apply_result_size): Ditto.
9902
9903 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9904
9905 PR target/14620
9906 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
9907
9908 2004-03-17 Jakub Jelinek <jakub@redhat.com>
9909
9910 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
9911 32-bit builds when defaulting to 32-bit.
9912
9913 2004-03-17 Jan Hubicka <jh@suse.cz>
9914
9915 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
9916 array.
9917
9918 2004-03-17 James E Wilson <wilson@specifixinc.com>
9919
9920 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
9921 (hazard_nop): Change type to nop.
9922 (type): Split arith into arith, shift, slt, clz. Delete darith.
9923 Fix all uses. Change arith to multi if more than one insn emitted.
9924 * config/mips/5400.md (ir_vr54_arith): Likewise.
9925 * config/mips/5500.md (ir_vr55_arith): Likewise.
9926 * config/mips/7000.md (rm7_int_other): Likewise.
9927 * config/mips/9000.md (rm9k_int): Likewise.
9928 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
9929
9930 2004-03-17 Joel Brobecker <brobecker@gnat.com>
9931
9932 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
9933 to hold the subtype tree instead of recomputing it several times.
9934
9935 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
9936
9937 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
9938 CC_INVERT.
9939 * config/mn10300/mn10300.md (cc): Remove "invert".
9940
9941 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9942
9943 * builtins.c (integer_valued_real_p): Add builtin rint.
9944 (fold_builtin): Likewise.
9945 * convert.c (convert_to_real): Likewise.
9946
9947 * convert.c (convert_to_real): Fix typos in `long double'
9948 builtins.
9949
9950 2004-03-16 Mark Mitchell <mark@codesourcery.com>
9951
9952 PR c++/14481
9953 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
9954 generated COMPOUND_EXPRs.
9955
9956 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9957
9958 * config/h8300/t-rtems (h8300-*-rtems*): New.
9959
9960 2004-03-16 Eric Christopher <echristo@redhat.com>
9961
9962 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
9963
9964 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
9965
9966 * config/i386/i386-protos.h: Add a prototype for
9967 ix86_reverse_condition.
9968 * config/i386/i386.c (ix86_reverse_condition): New.
9969 * config/i386/i386.h (REVERSE_CONDITION): Use
9970 ix86_reverse_condition.
9971 * config/i386/i386.md: Use ix86_reverse_condition instead of
9972 REVERSE_CONDITION.
9973
9974 2004-03-16 J. Brobecker <brobecker@gnat.com>
9975
9976 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
9977
9978 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
9979
9980 PR bootstrap/12974
9981 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
9982
9983 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
9984
9985 * c-common.c (c_common_type_for_mode): Build vector types on
9986 demand.
9987 (handle_mode_attribute): Deprecate using the mode attribute
9988 to create vector types. Fix indentation.
9989 (vector_type_node_list): Remove.
9990 (handle_vector_size_attribute): Create vector types on demand.
9991 Strip a NON_LVALUE_EXPR from the attribute if there is one.
9992 * c-typeck.c (comptypes): Make vector types compatible if they
9993 have the same underlying mode.
9994 (convert_for_assignment): Use comptypes to convert between
9995 vector types.
9996 * tree.c (build_common_tree_nodes_2): Do not create vector types.
9997 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
9998 vector types.
9999 * tree.h: Remove vector types.
10000 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
10001 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
10002 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
10003 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
10004 * doc/extend.texi (Vector Types): Document how to use the
10005 vector_size attribute to create vectors, rather than mode.
10006
10007 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
10008 * config/i386/emmintrin.h: Likewise.
10009 * config/i386/mmintrin.h: Likewise.
10010 * config/i386/xmmintrin.h: Likewise.
10011 * config/sh/ushmedia.h: Likewise.
10012
10013 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
10014
10015 * config/freebsd-spec.h, config/arc/arc-protos.h,
10016 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
10017 config/arm/linux-gas.h, config/arm/semi.h,
10018 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
10019 config/ia64/freebsd.h, config/mips/7000.md,
10020 config/mips/9000.md, config/ns32k/ns32k-protos.h,
10021 config/sparc/pbd.h: Update copyright.
10022
10023 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10024
10025 PR target/14577
10026 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
10027
10028 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10029
10030 * combine.c (combine_simplify_rtx): Remove the "last"
10031 parameter and its documentation. Adjust recursive calls.
10032 (simplify_logical): Always perform the only simplification
10033 controlled by "last", if the simplified expression is
10034 actually different.
10035 (try_combine): Do not pass the "last" parameter to
10036 combine_simplify_rtx.
10037
10038 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
10039
10040 PR target/14599
10041 * config/mips/mips.md (UNSPEC_GP): New constant.
10042 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
10043 an UNSPEC instead of (reg $gp).
10044 (mips16_gp_pseudo_reg): Change accordingly.
10045 (print_operand): Print $gp directly when handling CONST_GP_P.
10046
10047 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
10048
10049 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
10050 * longlong.h: Make code 68060 clean when compiling for m68060.
10051
10052 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
10053
10054 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
10055 * doc/md.texi: Clarify description of "i" constraint.
10056
10057 2004-03-15 James E Wilson <wilson@specifixinc.com>
10058
10059 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
10060 Split store into store, fpstore, fpidxstore. Fix all uses.
10061 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
10062 Likewise.
10063 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
10064 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
10065 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
10066 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
10067 ir_sr70_fstore): Likewise.
10068
10069 2004-03-15 Richard Henderson <rth@redhat.com>
10070
10071 PR middle-end/14535
10072 * except.c (collect_one_action_chain): Record action for cleanup
10073 outer of exception spec.
10074
10075 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
10076
10077 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10078 Fix the check for abort and only do the mmap if we can.
10079
10080 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
10081
10082 * config/sparc/sparc.h: Rework comments about the code model
10083 in 64-bit environment and the mode 'Pmode'.
10084 * doc/invoke.texi (SPARC options): Rework description of the
10085 different code models supported in 64-bit environment.
10086
10087 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
10088
10089 * defaults.h (REVERSIBLE_CC_MODE): Define.
10090 * jump.c (reversed_comparison_code_parts): Don't check if
10091 REVERSIBLE_CC_MODE is defined.
10092
10093 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
10094
10095 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
10096 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
10097 hosthooks.h, params.h, ra-colorize.c, web.c,
10098 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
10099 config/avr/avr-protos.h, config/avr/avr.md,
10100 config/fr30/fr30-protos.h, config/fr30/fr30.md,
10101 config/h8300/fixunssfsi.c, config/i386/darwin.h,
10102 config/i386/freebsd.h, config/i386/freebsd64.h,
10103 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
10104 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
10105 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
10106 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
10107 config/pa/pa64-regs.h, config/rs6000/aix41.h,
10108 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
10109 config/sparc/aout.h, config/sparc/freebsd.h,
10110 config/sparc/litecoff.h, config/vax/vax-protos.h,
10111 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
10112 copyright.
10113
10114 2004-03-15 Paul Brook <paul@codesourcery.com>
10115
10116 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
10117
10118 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
10119
10120 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
10121 (pp_c_cv_qualifier): Document.
10122 (pp_c_space_for_pointer_operator): Likewise.
10123 (pp_c_integer_constant): Likewise.
10124 (pp_c_identifier): Likewise.
10125 (pp_c_init_declarator): Don't print function body.
10126
10127 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
10128
10129 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
10130 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
10131 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
10132 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
10133 wording and grammar.
10134
10135 2004-03-14 Roger Sayle <roger@eyesopen.com>
10136
10137 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
10138 with lang_hooks.foo ().
10139 * builtins.c (expand_builtin_va_arg): Likewise.
10140 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
10141 c_common_type_for_mode, c_common_nodes_and_builtins,
10142 handle_mode_attribute, handle_vector_size_attribute): Likewise.
10143 * c-convert.c (convert): Likewise.
10144 * c-format.c (check_format_types): Likewise.
10145 * c-objc-common.c (c_tree_printer): Likewise.
10146 * c-typeck.c (build_unary_op, build_conditional_expr,
10147 build_binary_op): Likewise.
10148 * calls.c (try_to_integrate, expand_call,
10149 emit_library_call_value_1): Likewise.
10150 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
10151 Likewise.
10152 * cgraphunit.c (record_call_1, cgraph_analyze_function,
10153 cgraph_expand_function): Likewise.
10154 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
10155 * coverage.c (build_fn_info_type, build_ctr_info_type,
10156 build_gcov_info, create_coverage): Likewise.
10157 * dbxout.c (dbxout_init): Likewise.
10158 * diagnostic.c (diagnostic_report_current_function): Likewise.
10159 * dojump.c (do_jump): Likewise.
10160 * dwarf2out.c (dwarf2_name): Likewise.
10161 * except.c (init_eh): Likewise.
10162 * explow.c (expr_size, int_expr_size): Likewise.
10163 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
10164 Likewise.
10165 * expr.c (store_expr, store_constructor, safe_from_p,
10166 expand_expr_real, do_store_flag, try_casesi): Likewise.
10167 * function.c (push_function_context_to, pop_function_context_from,
10168 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
10169 put_var_into_stack, allocate_struct_function, current_function_name):
10170 Likewise.
10171 * integrate.c (copy_decl_for_inlining, expand_inline_function):
10172 Likewise.
10173 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
10174 lhd_print_error_function): Likewise.
10175 * opts.c (handle_option, decode_options): Likewise.
10176 * passes.c (open_dump_file): Likewise.
10177 * print-tree.c (print_node): Likewise.
10178 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
10179 expand_decl_cleanup, emit_case_nodes): Likewise.
10180 * stor-layout.c (variable_size): Likewise.
10181 * toplev.c (announce_function, wrapup_global_declarations,
10182 check_global_declarations, compile_file, default_tree_printer,
10183 process_options, lang_dependent_init, finalize): Likewise.
10184 * tree-dump.c (dequeue_and_dump): Likewise.
10185 * tree-inline.c (remap_decl, remap_block, copy_body_r,
10186 initialize_inlined_parameters, declare_return_variable,
10187 inlinable_function_p, expand_call_inline, optimize_inline_calls,
10188 walk_tree, copy_tree_r): Likewise.
10189 * tree-optimize.c (tree_rest_of_compilation): Likewise.
10190 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
10191 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
10192 variably_modified_type_p, dump_tree_statistics): Likewise.
10193 * varasm.c (assemble_variable, compare_constant, copy_constant,
10194 force_const_mem, compute_reloc_for_constant, output_constant,
10195 output_addressed_constants, initializer_constant_valid_p): Likewise.
10196
10197 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
10198
10199 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
10200
10201 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
10202
10203 * doc/install.texi: Reflect autoconf and automake version for
10204 libffi. Update autoconf version to 2.59.
10205
10206 2004-03-13 Roger Sayle <roger@eyesopen.com>
10207
10208 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
10209 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
10210 make_range, build_range_check, fold_range_test, unextend,
10211 constant_boolean_node, fold_binary_op_with_conditional_arg,
10212 fold_truthop, fold_mathfn_compare, fold_inf_compare,
10213 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
10214 with lang_hooks.foo ().
10215
10216 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
10217
10218 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
10219
10220 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
10221
10222 * doc/install.texi: Note status of -fnew-ra.
10223
10224 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10225
10226 PR middle-end/14470
10227 * expr.c (store_expr): Call emit_queue before generating the move
10228 from the temporary to the original target. Protect the temporary
10229 from emit_queue.
10230
10231 2004-03-13 Jakub Jelinek <jakub@redhat.com>
10232
10233 PR target/14533
10234 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
10235 other than UNSPEC_GOTOFF.
10236
10237 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
10238
10239 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
10240 to arm_legitimate_index_p. Update all callers with SET as default
10241 value.
10242 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
10243 range if OUTER is a sign-extend operation on QImode. Correctly
10244 reject shift operations on sign-extended QImode addresses.
10245 (bad_signed_byte_operand): Delete.
10246 (arm_extendqisi_mem_op): New function.
10247 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
10248 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
10249 constraints.
10250 (CONSTRAINT_LEN): New.
10251 (EXTRA_CONSTRAINT): Delete. Replace with...
10252 (EXTRA_CONSTRAINT_STR): ... this.
10253 (PREDICATE_CODES): Remove bad_signed_byte_operand.
10254 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
10255 is now always default.
10256 (define_splits for bad sign-extend loads): Delete.
10257 (arm_extendqisi, arm_extendqisi_v5): Likewise.
10258 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
10259 Rework 'U' constraint to 'Uv'.
10260 * arm-protos.h: Remove bad_signed_byte_operand. Add
10261 arm_extendqisi_mem_op.
10262 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
10263 Add Uq constraint.
10264
10265 2004-03-13 Alan Modra <amodra@bigpond.net.au>
10266
10267 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
10268 with targetm version.
10269
10270 PR target/14567
10271 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
10272 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
10273 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
10274 Update all users of RS6000_ARG_SIZE.
10275 (function_arg_advance): Count fregno using mode size.
10276 (function_arg): Handle long double split over regs and memory.
10277 (function_arg_partial_nregs): Likewise.
10278 (rs6000_va_arg): Repackage complex args.
10279
10280 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
10281
10282 PR target/14047
10283 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
10284 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
10285 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
10286
10287 2004-03-12 Jakub Jelinek <jakub@redhat.com>
10288
10289 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
10290 prototype.
10291 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
10292 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10293
10294 2004-03-12 Andrew Pinski <apinski@apple.com>
10295
10296 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10297 Use ret instead of result. Use addr instead of base.
10298
10299 2004-03-12 David Edelsohn <edelsohn@gnu.org>
10300
10301 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
10302 fixes required by libstdc++ and update installation instructions
10303 for libstdc++.a.
10304
10305 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
10306
10307 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
10308 leading '@' on fastcall symbols before stripping suffix.
10309
10310 2004-03-12 Roger Sayle <roger@eyesopen.com>
10311
10312 * combine.c (unmentioned_reg_p): New function to check whether an
10313 expression is a "specialization" of another, i.e. that there are
10314 no registers or memory references mentioned in the first that don't
10315 appear in the second.
10316 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
10317 (combine_instructions): Also try combining instructions using the
10318 REG_EQUAL note from a preceding log-linked instruction.
10319
10320 2004-03-12 Roger Sayle <roger@eyesopen.com>
10321
10322 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
10323
10324 2004-03-12 Matt Austern <austern@apple.com>
10325
10326 * target.h (struct gcc_target): New target hook, unwind_label.
10327 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
10328 * output.h (default_emit_unwind_label): New function.
10329 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
10330 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
10331 (TARGET_SUPPORTS_HIDDEN): New target macro.
10332 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
10333 that corresponds to this FDE.
10334 (FRAME_BEGIN_LABEL): Allow target to override default label.
10335 (output_call_frame_info): If FDEs are linknonce, then use extra
10336 indirection for FDE encoding, output a label for each FDE, and
10337 output an empty label for each function without an FDE.
10338 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
10339 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
10340 decls with DECL_ONE_ONLY set, if that macro is defined.
10341 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
10342 for a SUPPORTS_ONE_ONLY target.
10343 * config/darwin-protos.h (darwin_unique_section): Declare.
10344 (darwin_asm_named_section): Likewise.
10345 (darwin_section_type_flags): Likewise.
10346 (darwin_non_lazy_pcrel): Likewise.
10347 (darwin_emit_unwind_label): Likewise.
10348 (darwin_make_decl_one_only): Likewise.
10349 * config/darwin.c (machopic_finish): Get rid of tweak that
10350 eliminate stubs for symbols that are defined.
10351 (darwin_encode_section_info): Don't treat weak functions as defined.
10352 (darwin_make_decl_one_only): Define.
10353 (darwin_asm_named_section): Likewise.
10354 (darwin_section_type_flags): Likewise.
10355 (darwin_unique_section): Likewise.
10356 (darwin_emit_unwind_label): Likewise.
10357 (darwin_non_lazy_pcrel): Likewise.
10358 (darwin_asm_output_dwarf_delta): Difference between two labels is
10359 local only if both labels are local.
10360 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
10361 (ASM_MAKE_LABEL_LINKONCE): Likewise.
10362 (TARGET_SUPPORTS_HIDDEN): Likewise.
10363 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
10364 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
10365 (FRAME_BEGIN_LABEL): Likewise.
10366 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
10367 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10368 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
10369 (TARGET_ASM_UNIQUE_SECTION): Define.
10370 (EH_FRAME_SECTION_NAME): Define.
10371 (EH_FRAME_SECTION_ATTR): Likewise.
10372 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10373 (TARGET_ASM_NAMED_SECTION): Likewise.
10374 (TARGET_SECTION_TYPE_FLAGS): Likewise.
10375 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
10376 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
10377 TARGET_ASM_EMIT_UNWIND_LABEL.
10378
10379 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10380
10381 * builtins.c (expand_builtin_mathfn): Add pow10* to the
10382 existing exp10* case.
10383 (expand_builtin): Likewise.
10384
10385 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
10386
10387 * doc/tm.texi (registers) <Values in Registers>: Add
10388 entry for REGMODE_NATURAL_SIZE.
10389
10390 2004-03-12 Richard Henderson <rth@redhat.com>
10391
10392 PR target/14547
10393 * target.h (struct gcc_target): Move calls substructure before
10394 booleans. Add split_complex_arg.
10395 * function.c (assign_parms, split_complex_args): Use it.
10396 * calls.c (expand_call): Likewise.
10397 (split_complex_values): Likewise. Check for splittable types
10398 before allocating memory.
10399 (split_complex_types): Likewise.
10400 * system.h (SPLIT_COMPLEX_ARGS): Poison.
10401 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
10402 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
10403 * config/alpha/alpha.c (alpha_split_complex_arg): New.
10404 (TARGET_SPLIT_COMPLEX_ARG): New.
10405 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
10406 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
10407 (rs6000_override_options): Zap it for non-AIX.
10408 (rs6000_function_value): Use targetm.calls.split_complex_arg.
10409 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
10410 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
10411 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
10412 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
10413 SPLIT_COMPLEX_ARGS entry.
10414
10415 2004-03-11 Richard Henderson <rth@redhat.com>
10416
10417 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
10418 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
10419 (alpha_emit_xfloating_arith): Update to match.
10420 (alpha_emit_xfloating_compare): Likewise.
10421 (alpha_emit_xfloating_cvt): Likewise.
10422 (alpha_emit_xfloating_libcall): Take already built symbol,
10423 mark call const.
10424 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
10425 op1 in a register.
10426
10427 2004-03-11 Richard Henderson <rth@redhat.com>
10428
10429 PR target/14539
10430 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
10431
10432 * simplify-rtx.c (simplify_relational_operation): Fix typo.
10433
10434 2004-03-11 Richard Henderson <rth@redhat.com>
10435
10436 PR middle-end/14477
10437 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
10438
10439 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10440
10441 PR target/14262
10442 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
10443 defined, pass small BLKmode values in registers in the low-order part.
10444
10445 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10446
10447 * combine.c (if_then_else_cond): Check for NULL return value of
10448 simplify_gen_subreg.
10449
10450 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10451
10452 PR target/14496
10453 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
10454 TARGET_SINGLE_FLOAT.
10455
10456 2004-03-11 Steve Ellcey <sje@cup.hp.com>
10457
10458 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
10459 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
10460 * config/ia64/ia64.c (ia64_init_libfuncs): New.
10461 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
10462
10463 2004-03-11 Roger Sayle <roger@eyesopen.com>
10464
10465 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
10466 -((int)X>>C) where C is an integer constant one bit less than the
10467 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
10468 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
10469
10470 * simplify-rtx.c (simplify_unary_operation): Also implement the
10471 above transformations at the RTL level.
10472
10473 2004-03-11 Alan Modra <amodra@bigpond.net.au>
10474
10475 * real.c (encode_ibm_extended): Do round low word.
10476
10477 2004-03-11 Ben Elliston <bje@wasabisystems.com>
10478
10479 * config/arm/arm.md (is_xscale): Comment this attribute and move
10480 it a bit further up in the file, closer to related attributes.
10481
10482 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
10483
10484 * config/host-solaris.c (sol_gt_pch_use_address): Add
10485 missing terminating marker to comment.
10486
10487 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10488
10489 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
10490 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
10491 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
10492 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
10493 move_operand as source predicate in all cases.
10494 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
10495 Test reg_or_0_operand. Use move_operand as source predicate.
10496 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
10497 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
10498 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
10499 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
10500 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
10501 Use move_operand as source predicate. Remove 'K' constraint.
10502 (*movqi_internal): Likewise movqi_internal.
10503 (*movsf_hardfloat): Renamed from movsf_internal1. Test
10504 reg_or_0_operand. Use move_operand as source predicate.
10505 (*movsf_softfloat): Likewise movsf_internal2.
10506 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
10507 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
10508 (*movdf_softfloat): Likewise movdf_internal2.
10509 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
10510 for DImode if !TARGET_64BIT.
10511 (mips_legitimize_move): Simplify accordingly.
10512
10513 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10514
10515 PR/14362
10516 * var-tracking.c (struct variable_def): Added field refcount.
10517 (variable_htab_free): Decrease the refcount and delete variable
10518 only if there are no more references.
10519 (unshare_variable): New function.
10520 (vars_copy_1): Increase refcount instead of copying the variable.
10521 (variable_union): Share the variables where possible, unshare
10522 the variables if needed.
10523 (variable_different_p): Return false if var1 and var2 are
10524 the same structure.
10525 (variable_was_changed): Init the refcount of new variable.
10526 (set_frame_base_location): Unshare variable if needed.
10527 (set_variable_part): Init the refcount of new variable.
10528 Unshare the variables if needed.
10529 (delete_variable_part): Unshare the variables if needed.
10530 (emit_notes_for_differences_1): Init the refcount of new variable.
10531 (vt_add_function_parameters): Do not add function parameters to
10532 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
10533 (vt_initialize): Do not add frame_base_decl to IN set of
10534 ENTRY_BLOCK_PTR because it is unused anyway.
10535
10536 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10537
10538 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
10539 (vars_copy): Likewise.
10540 (variable_union): Likewise.
10541 (set_variable_part): Likewise.
10542 (delete_variable_part): Likewise.
10543
10544 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
10545
10546 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
10547 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
10548 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
10549 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
10550 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
10551 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
10552 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
10553 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
10554 config/stormy16/stormy16.c: Fix comment typos and formatting.
10555
10556 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
10557
10558 * configure: Regenerate, since I forgot to while committing Paolo's
10559 changes.
10560
10561 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
10562
10563 PR ada/14131
10564 Move language detection to the top level.
10565 * configure.ac: Remove code to detect languages,
10566 it now lives exclusively in the top level.
10567 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
10568 top level, renamed to ACX_PROG_GNAT.
10569
10570 2004-03-10 Richard Henderson <rth@redhat.com>
10571
10572 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
10573 extra arguments.
10574 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
10575 and host_xmake_file fragments.
10576 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
10577 (gt_pch_restore): Similarly for gt_pch_use_address.
10578 (default_gt_pch_get_address): New.
10579 (mmap_gt_pch_get_address): Split out of gt_pch_save.
10580 (default_gt_pch_use_address): Split out of gt_pch_restore.
10581 (mmap_gt_pch_use_address): Likewise.
10582 * hooks.c (hook_voidp_size_t_null): Remove.
10583 (hook_bool_voidp_size_t_false): Remove.
10584 * hooks.h: Likewise.
10585 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
10586 default_ or mmap_ definitions.
10587 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
10588 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
10589 and gt_pch_use_address.
10590 * config/host-linux.c, config/host-solaris.c: New files.
10591 * config/x-linux, config/x-solaris: New files.
10592 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
10593 Update for changed definition.
10594 (darwin_rs6000_gt_pch_use_address): Likewise.
10595 * doc/hostconfig.texi: Update docs.
10596
10597 2004-03-10 Richard Henderson <rth@redhat.com>
10598
10599 PR c/14517
10600 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
10601 except for pedantic c90 mode.
10602
10603 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
10604
10605 * configure.ac: Bump AC_PREREQ to 2.59.
10606 * configure: Regenerate.
10607
10608 2004-03-10 Uros Bizjak <uros@kss-loka.si>
10609
10610 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
10611 (exp10_optab, exp2_optab): Define corresponding macros.
10612 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
10613 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
10614 using exp10?f2 and exp2?f2 patterns.
10615 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
10616 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
10617 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
10618 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
10619
10620 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
10621 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
10622 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
10623
10624 2004-03-10 Anthony Green <green@redhat.com>
10625
10626 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
10627
10628 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10629
10630 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
10631 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
10632 __LONGDOUBLE128.
10633 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
10634 TARGET_OS_AIX_CPP_BUILTINS.
10635 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
10636 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
10637 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
10638 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
10639 previous change.
10640
10641 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10642
10643 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
10644
10645 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10646
10647 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10648 __LONGDOUBLE128 on AIX.
10649
10650 2004-03-10 Andrew Haley <aph@redhat.com>
10651
10652 PR optimization/14381
10653 * function.c (expand_function_end): Emit a blockage insn before
10654 the epilogue when -fnon-call-exceptions is used.
10655
10656 * except.c (expand_start_all_catch): Make comment more accurate.
10657
10658 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10659
10660 PR target/14480
10661 * config/rs6000/t-rtems: Add missing file on branch.
10662
10663 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
10664
10665 * dbxout.c (dbxout_symbol_location): Do not output references
10666 to optimized-out constant pool symbols.
10667
10668 2004-03-10 Andreas Schwab <schwab@suse.de>
10669
10670 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
10671 twon34_r.
10672
10673 2004-03-09 James E Wilson <wilson@specifixinc.com>
10674
10675 * alias.c (alias_sets_might_conflict_p): New.
10676 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
10677 * common.opt (Wstrict-aliasing=): New.
10678 * flags.h (warn_strict_aliasing): Change type to int.
10679 * opts.c (warn_strict_aliasing): Change type to int.
10680 (common_handle_option): Handle OPT_Wstrict_aliasing_.
10681 * tree.h (alias_sets_might_conflict_p): Declare it.
10682 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
10683
10684 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
10685
10686 PR bootstrap/12371
10687 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
10688 (CALL_USED_REGISTERS): Likewise.
10689 (REG_CLASS_CONTENTS): Likewise.
10690 (REG_ALLOC_ORDER): New.
10691 (REGNO_REG_CLASS): Use regno_reg_class.
10692 * config/m68k/m68k.c: Add regno_reg_class array.
10693
10694 2004-03-09 Steve Ellcey <sje@cup.hp.com>
10695
10696 * config/ia64/ia64.md (divsi3): Fix algorithm.
10697 (udivsi3): Ditto.
10698 (setf_exp_xf): Remove '*' from name.
10699 * testsuite/gcc.dg/20040309-1.c: New test.
10700
10701 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
10702
10703 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
10704 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
10705 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
10706 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
10707 (sparc_aout_select_rtx_section): Don't check
10708 SUNOS4_SHARED_LIBRARIES.
10709 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
10710
10711 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
10712
10713 PR other/14474
10714 * doc/md.texi (Pattern Ordering, Dependent Patterns)
10715 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
10716 INTERNALS".
10717
10718 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10719
10720 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
10721 (LIBGCC_SPEC): Update to match.
10722
10723 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10724
10725 * c-decl.c (last_function_parms, last_function_parm_tags)
10726 (last_function_parm_others, current_function_parms)
10727 (current_function_parm_tags, current_function_parm_others):
10728 Delete.
10729 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
10730 New macros.
10731 (grokdeclarator): For function definitions, save the arg-info
10732 block from the declarator in DECL_ARGUMENTS.
10733 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
10734 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
10735 contains only PARM_DECLs. Improve diagnostics.
10736 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
10737 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
10738 (store_parm_decls_newstyle): Take the function to operate on,
10739 and an arg-info block, as arguments; don't get anything from
10740 current_function_* globals.
10741 (store_parm_decls_oldstyle): Likewise.
10742 (store_parm_decls): Pass fndecl and its arg-info block down to
10743 store_parm_decls_newstyle/oldstyle. Send functions with empty
10744 argument lists through store_parm_decls_newstyle to reduce
10745 overhead.
10746 (pushdecl): Comment on the problems with the call to copy_node.
10747 Clear DECL_ARGUMENTS of the old node after copying it, if it
10748 is an arg-info block instead of a chain of decls.
10749 (start_function): Do not manipulate current_function_parm* or
10750 last_function_parm*.
10751
10752 2004-03-09 Roger Sayle <roger@eyesopen.com>
10753 Andrew Pinski <pinskia@physics.uc.edu>
10754
10755 * ifcvt.c (noce_try_sign_mask): New function to transform
10756 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
10757 (noce_process_if_block): Call noce_try_sign_mask.
10758
10759 2004-03-09 Andrew Pinski <apinski@apple.com>
10760
10761 * c-typeck.c (tagged_types_tu_compatible_p):
10762 Fix typo.
10763
10764 2004-03-09 Roger Sayle <roger@eyesopen.com>
10765
10766 * simplify-rtx.c (simplify_const_relational_operation): New function
10767 renamed from simplify_relational_operation.
10768 (simplify_relational_operation): Change prototype to accept an
10769 additional mode argument. Call simplify_const_relational_operation.
10770 (simplify_gen_relational): Update simplify_relational_operation call.
10771 (simplify_ternary_operation): Update simplify_relational_operation
10772 subroutine call to use simplify_const_relational_operation instead.
10773
10774 * rtl.h (simplify_const_relational_operation): Prototype here.
10775 (simplify_relational_operation): Add addtional mode argument.
10776
10777 * combine.c (combine_simplify_rtx): Update calls to
10778 simplify_relational_operation.
10779 (simplify_set): Likewise.
10780 (gen_binary): Likewise.
10781 * cse.c (fold_rtx): Likewise.
10782 * dojump.c (compare_from_rtx): Likewise.
10783 (do_compare_rtx_and_jump): Likewise.
10784 * integrate.c (subst_constants): Likewise.
10785 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
10786
10787 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
10788
10789 * config/m32r/m32r.md: Remove all define_peephole's.
10790
10791 2004-03-09 Alan Modra <amodra@bigpond.net.au>
10792
10793 * config/rs6000/rs6000.md: Remove trailing whitespace.
10794
10795 2004-03-08 Eric Christopher <echristo@redhat.com>
10796
10797 * Makefile.in (site.exp): Add libiconv variable definition.
10798
10799 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
10800
10801 * configure: Regenerate for config/accross.m4 correction.
10802
10803 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10804
10805 PR target/14480
10806 * config/rs6000/t-rtems: Add missing file on branch.
10807
10808 2004-03-08 Roger Sayle <roger@eyesopen.com>
10809
10810 PR middle-end/14289
10811 * c-typeck.c (c_mark_addressable): A register variable should
10812 be considered global if its not automatic, i.e. TREE_PUBLIC,
10813 TREE_STATIC or DECL_EXTERNAL.
10814 * function.c (put_var_into_stack): Call abort when placing a
10815 hard register into the stack, if x_parm_reg_stack_loc is NULL.
10816
10817 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
10818
10819 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
10820 ("*extendqisi2_short_displ"): Likewise.
10821
10822 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
10823
10824 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
10825 (comp_operator): Likewise.
10826 * config/pdp11/pdp11-protos.h: Remove corresponding
10827 prototypes.
10828
10829 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
10830
10831 * expr.c (highest_pow2_factor_for_type): Rename into
10832 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
10833 TYPE_ALIGN when the target is a COMPONENT_REF.
10834 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
10835
10836 2004-03-08 Alan Modra <amodra@bigpond.net.au>
10837
10838 * config/rs6000/rs6000.c: Formatting fix.
10839 (legitimate_offset_address_p): Correct offset range check.
10840
10841 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
10842 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
10843 and MASK_STRING.
10844
10845 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10846
10847 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
10848 for little endian.
10849 ("ashrdi3_no_power"): Disable for little endian.
10850 (ashrdi3): Same.
10851
10852 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10853
10854 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
10855 builtins.
10856
10857 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
10858
10859 PR target/14471
10860 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
10861 case, checking for -no-mul-bug-abort option.
10862 * configure, config.in: Regenerate.
10863 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
10864 and -mno-mul-bug-workaround.
10865 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
10866 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
10867 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
10868 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
10869 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
10870 sure mulu.d is not last on cache-line.
10871 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
10872 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
10873 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
10874 (TARGET_SWITCHES): New options -mmul-bug-workaround and
10875 -mno-mul-bug-workaround.
10876 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
10877 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
10878 * config/cris/cris.c (cris_operand_extend_operator): Clarify
10879 relation to MULT in head comment.
10880 (cris_op_str): Abort for MULT.
10881 (cris_print_operand) <case '!'>: New case.
10882
10883 2004-03-08 Alan Modra <amodra@bigpond.net.au>
10884
10885 PR debug/11983
10886 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
10887 dw_val_class_vec. Replace use throughout file.
10888 (dw_float_const): Delete.
10889 (dw_vec_const): New.
10890 (dw_val_struct_union): Rename val_float to val_vec. Replace use
10891 throughout file.
10892 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
10893 (same_dw_val_p): Adjust vec comparison. Use memcmp.
10894 (size_of_die): Adjust dw_val_class_vec sizing.
10895 (output_die): Output dw_val_class_vec.
10896 (insert_int, extract_int, insert_float): New functions.
10897 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
10898 Handle CONST_VECTOR.
10899 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
10900
10901 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10902
10903 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
10904 AltiVec abi cannot co-exist.
10905
10906 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
10907
10908 2004-03-07 Jan Hubicka <jh@suse.cz>
10909
10910 * except.c (emit_to_new_bb_before): Break fallthru edges.
10911
10912 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
10913
10914 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
10915 ("*lshrsi3"): Also accept an immediate for 68HC12.
10916 ("*ashrsi3_const"): Likewise.
10917 ("*ashrsi3"): Likewise.
10918 ("*ashlsi3_const"): Likewise.
10919 ("*ashlsi3"): Likewise.
10920 ("cmphi_1_hc12"): Compare two hard register by pushing them and
10921 comparing with a pop; don't use a split for that.
10922 ("cmphi split"): Disable compare split for 68HC12.
10923
10924 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
10925 the status operands if they have side effects.
10926
10927 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
10928
10929 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
10930 definition.
10931 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
10932 config/h8300/h8300.h, config/ia64/ia64.h,
10933 config/mcore/mcore.h, config/mmix/mmix.h,
10934 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
10935 config/stormy16/stormy16.h, config/v850/v850.h,
10936 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
10937 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
10938 definition.
10939
10940 2004-03-07 Roger Sayle <roger@eyesopen.com>
10941
10942 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
10943 <XOR_EXPR>: Fold x ^ x as zero.
10944 <AND_EXPR>: Fold x & x as x.
10945
10946 2004-03-07 Roger Sayle <roger@eyesopen.com>
10947
10948 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
10949 "foo++ == const" into "++foo == const+incr".
10950
10951 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
10952
10953 * config/mips/mips.c (mips_in_small_data_p): Return false if
10954 TARGET_ABICALLS.
10955
10956 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
10957
10958 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
10959 the stack register.
10960 (expand_prologue): Don't make an interrupt or a trap handler a far
10961 symbol.
10962 (m68hc11_initial_elimination_offset): Likewise.
10963
10964 2004-03-06 Richard Henderson <rth@redhat.com>
10965
10966 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
10967
10968 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
10969
10970 * config/ns32k/ns32k-protos.h: Add a prototype for
10971 ns32k_notice_update_cc.
10972 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
10973 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
10974 ns32k_notice_update_cc.
10975
10976 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10977
10978 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
10979 "*load_multiple_si"): Allow only if reload_completed.
10980 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
10981 Likewise.
10982
10983 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
10984
10985 * config/vax/vax-protos.h: Add a prototype for
10986 vax_notice_update_cc.
10987 * config/vax/vax.c (vax_notice_update_cc): New.
10988 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
10989 vax_notice_update_cc.
10990
10991 2004-03-06 David Edelsohn <edelsohn@gnu.org>
10992
10993 * collect2.c (main): Only export initfunc and finifunc if
10994 LD_INIT_SWITCH not defined.
10995 (scan_prog_file): Only export constructors and destructors if
10996 LD_INIT_SWITCH not defined. Only export symbols not found in
10997 shared objects.
10998
10999 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11000
11001 * pa.md (icacheflush): Reorder operands to make match_scratch operand
11002 last.
11003 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
11004 from calls to gen_icacheflush.
11005
11006 2004-03-06 Richard Henderson <rth@redhat.com>
11007
11008 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
11009 (TARGET_LONG_DOUBLE_128): New.
11010 (TARGET_SWITCHES): Add long-double-{128,64}.
11011 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
11012 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
11013 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
11014 (WIDEST_HARDWARE_FP_SIZE): New.
11015 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
11016 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
11017 if TARGET_VAX_FLOAT.
11018 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
11019 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
11020
11021 2004-03-06 Richard Henderson <rth@redhat.com>
11022
11023 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
11024 botched rtx class conversion.
11025
11026 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11027
11028 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
11029 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
11030
11031 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
11032 macros.
11033 * fold-const.c (fold_mathfn_compare, fold): Likewise.
11034
11035 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
11036
11037 PR target/14343
11038 * config/i386/i386.md (movv2di_internal): Conditionalize on
11039 TARGET_SSE, not TARGET_SSE2.
11040
11041 2004-03-05 Chris Demetriou <cgd@broadcom.com>
11042
11043 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
11044 duplicated line.
11045
11046 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11047
11048 * builtins.c: Consistently use logN not log* in comments.
11049
11050 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
11051
11052 * rtl.h (mem_expr_equal_p): Function prototype added.
11053 * cfgcleanup.c (merge_memattrs): New function.
11054 (flow_find_cross_jump): Call merge_memattrs for matching insns.
11055 * emit-rtl.c (mem_expr_equal_p): New function.
11056
11057 2004-03-05 Ziemowit Laski <zlaski@apple.com>
11058
11059 * objc/objc-act.c (synth_module_prologue): Const-qualify
11060 objc_selector type if using the GNU runtime; fix generated
11061 signatures for objc_msg_lookup and objc_msg_lookup_super
11062 to match what GNU ObjC headers provide; reformat and clean up.
11063 (synth_self_and_ucmd_args): Use previously constructed (and
11064 hence possibly const-qualified) objc_selector type.
11065
11066 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
11067
11068 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
11069
11070 2004-03-05 Jason Merrill <jason@redhat.com>
11071
11072 * tree.h (TYPE_HASH): Use TYPE_UID.
11073 (TREE_HASH): New macro with old definition of TYPE_HASH.
11074 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
11075 (build_array_type, build_function_type): Likewise.
11076 (build_method_type_directly): Likewise.
11077 (build_offset_type, build_complex_type): Likewise.
11078 (type_hash_list, attribute_hash_list): Likewise. Now static.
11079 * except.c: s/TYPE_HASH/TREE_HASH/.
11080
11081 2004-03-05 Bob Wilson <bob.wilson@acm.org>
11082
11083 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
11084 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
11085 __va_ndx by 2 words when referencing an argument on the stack.
11086 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
11087 words when an arg on the stack is first seen.
11088
11089 2004-03-05 Paul Brook <paul@codesourcery.com>
11090
11091 * arm.h (ARM_FLAG_VFP): Remove.
11092 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
11093 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
11094
11095 2004-03-05 Paul Brook <paul@codesourcery.com>
11096
11097 * function.c (assign_parms): Include pretend alignment offset.
11098
11099 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11100
11101 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
11102 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
11103
11104 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
11105
11106 * configure.ac: When passing --enable-languages to subdir
11107 configure when host != build, make sure we don't pass an empty
11108 value.
11109 * configure: Regenerate.
11110
11111 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
11112
11113 PR 13577
11114 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
11115 options.
11116
11117 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11118
11119 * simplify-rtx.c (simplify_relational_operation): If
11120 flag_wrapv is set, do not move terms between the two
11121 side of a relational operator.
11122
11123 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11124
11125 * rtlanal.c: Include target.h and output.h
11126 (rtx_cost, address_cost, default_address_cost): Move from...
11127 * cse.c (rtx_cost, address_cost, default_address_cost):
11128 ... this file.
11129 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
11130 * Makefile.in: Adjust dependencies.
11131
11132 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11133
11134 * cse.c (cse_end_of_basic_block): Make static.
11135 * local-alloc.c (function_invariant_p): Move to
11136 reload1.c.
11137 * loop.c (libcall_other_reg, record_excess_regs):
11138 Make static.
11139 * reload1.c (function_invariant_p): Moved here
11140 from local-alloc.c, made static.
11141 * rtl.h (cse_end_of_basic_block, function_invariant_p,
11142 libcall_other_reg, record_excess_regs): Remove
11143 declarations.
11144
11145 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
11146
11147 * config/m32r/m32r.c (signed_comparison_operator): Add a
11148 missing parenthesis.
11149
11150 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
11151
11152 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
11153 going to call mmap again. Read the file into the right place.
11154 Give a fatal error if we have to relocate.
11155
11156 2004-03-04 Bob Wilson <bob.wilson@acm.org>
11157
11158 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
11159 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
11160
11161 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
11162
11163 PR other/14354
11164 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
11165 round the same. When rounding, clear bits that would cause a
11166 second rounding in pack_d.
11167 (_fpmul_parts): Ditto. Remove #if 0:d code.
11168
11169 2004-03-04 Ziemowit Laski <zlaski@apple.com>
11170
11171 PR c++/14425, c++/14426
11172 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
11173 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
11174 Change C++ definitions to accept a 'const int' argument;
11175 the prototypes already do.
11176 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
11177 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
11178 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
11179 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
11180 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
11181 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
11182 end in ..._int; change them to accept an int instead of a char
11183 as the last parameter.
11184
11185 2004-03-04 Phil Edwards <phil@codesourcery.com>
11186
11187 * genmultilib: Change '=' to '-' when translating option names
11188 to directory names.
11189
11190 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11191
11192 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
11193 stack slot for temp used for result of BLKmode but in integral mode.
11194
11195 2004-03-04 Jan Hubicka <jh@suse.cz>
11196
11197 * reload.c (find_reloads): Reorganize if seqeunce to switch.
11198
11199 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
11200 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
11201
11202 2004-03-04 Steve Ellcey <sje@cup.hp.com>
11203
11204 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
11205 * testsuite/gcc.dg/20040303-1.c: New test.
11206
11207 2004-03-04 Steven Bosscher <stevenb@suse.de>
11208
11209 * ppro.md: Rewrite as a DFA pipeline description.
11210 * i386.md: Remove all uses of the ppro_uops attribute.
11211 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
11212 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
11213 ix86_sched_reorder, ix86_variable_issue,
11214 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
11215 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
11216 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
11217 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
11218 * athlon.md (athlon_ssecmp_load): Fix comment
11219
11220 2004-03-04 Stuart Hastings <stuart@apple.com>
11221
11222 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
11223
11224 2004-03-04 Stuart Hastings <stuart@apple.com>
11225
11226 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
11227 686, tell Darwin assembler to allow prefetch insns, non-empty def
11228 of SUBTARGET_OPTION_TRANSLATE_TABLE.
11229
11230 2004-03-04 DJ Delorie <dj@redhat.com>
11231
11232 PR optimization/14282
11233 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
11234 between a call and the assignment of its return value.
11235
11236 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
11237
11238 * config/h8300/h8300.c: Put a comment for every function.
11239
11240 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
11241
11242 * config/h8300/h8300.md: Add comments about peephole2's.
11243
11244 2004-03-04 Steven Bosscher <stevenb@suse.de>
11245
11246 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
11247
11248 2004-03-04 Jan Hubicka <jh@suse.cz>
11249
11250 * cfgcleanup.c (thread_jump): Update call of cselib_init.
11251 * cselib.c (cselib_record_memory): New static variable.
11252 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
11253 Give up on memories when asked for.
11254 (cselib_init): Accept new argument.
11255 * cselib.h (cselib_init): Update prototype.
11256 * gcse.c (local_cprop_pass): Update call of cselib_init.
11257 * loop.c (load_mems): Update call of cselib_init.
11258 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
11259 * sched-deps.c (sched_analyze): Update call of cselib_init.
11260
11261 2004-03-04 David Edelsohn <edelsohn@gnu.org>
11262 GP <gp@qnx.com>
11263
11264 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
11265 when compiling PIC.
11266
11267 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
11268
11269 PR/14362
11270 * var-tracking.c (track_expr_p): Do not track variables which
11271 should be ignored for debugging purposes.
11272
11273 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11274
11275 * real.c (encode_ibm_extended): Don't bother rounding low double.
11276 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
11277 when fmt->pnan < fmt->p.
11278
11279 2004-03-04 Eric Christopher <echristo@redhat.com>
11280
11281 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
11282 only range of valid arg registers and fixed_regs.
11283
11284 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11285
11286 PR target/14406
11287 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
11288 (abstf2, abstf2_internal): New define_expand.
11289
11290 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11291
11292 PR optimization/14235
11293 * expr.c (convert_move): Copy the source to a new pseudo
11294 when converting from a sub-word source to a larger-than-word
11295 register which conflicts with the source.
11296
11297 2004-03-03 Zack Weinberg <zack@codesourcery.com>
11298
11299 PR 13728
11300 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
11301 parameters with the same name, unless one is a forward decl.
11302 Do not issue a redundant-redeclaration warning for forward
11303 decls of parameters.
11304
11305 2004-03-04 David Edelsohn <edelsohn@gnu.org>
11306
11307 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
11308 configuration.
11309
11310 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
11311
11312 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
11313
11314 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11315
11316 * target-def.h (TARGET_OPTF): Delete.
11317 * c-opts.c (TARGET_OPTF): Define.
11318
11319 2004-03-04 Jan Hubicka <jh@suse.cz>
11320
11321 * cselib.c (cselib_finish): Fix another miss-application of my previous
11322 patch.
11323
11324 2004-03-03 Mike Stump <mrs@apple.com>
11325
11326 Add framework support for darwin.
11327
11328 * c-incpath.c: Include target.h and machmode.h.
11329 (add_path): Use a consistent style for cpp_dir. Initialize
11330 p->construct to 0.
11331 (add_cpp_dir_path): New.
11332 (register_include_chains): Add use of extra_includes callback.
11333 (hook_void_int): Add.
11334 (target_c_incpath): Add.
11335 * c-incpath.h (add_cpp_dir_path): New.
11336 (target_c_incpath_s): Add.
11337 (target_c_incpath): Add.
11338 (C_INCPATH_INIT): Add.
11339 * c-opts.c (c_common_missing_argument,
11340 c_common_handle_option): Add -F argument processing.
11341 * c.opt: Add -F argument processing.
11342 * gcc.c (trad_capable_cpp): Add -F argument processing.
11343 * cppfiles.c (find_file_in_dir): Update to use construct
11344 callback.
11345 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
11346 cpp_get_prev): New.
11347 (_cpp_find_file): Use search_path_exhausted.
11348 (make_cpp_dir): Initialize construct to 0.
11349 * cpplib.h (missing_header_cb
11350 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
11351 (cpp_callbacks): Add missing_header
11352 (cpp_dir): Add construct.
11353 * target-def.h: (TARGET_OPTF): New.
11354 * hooks.c (hook_void_int, hook_void_charptr): Add.
11355 * hooks.h (hook_void_int, hook_void_charptr): Add.
11356 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
11357 $(MACHMODE_H) dependencies.
11358 * doc/invoke.texi (Darwin Options): Document -F.
11359 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
11360 (TARGET_OPTF): Add.
11361 * fix-header.c (target_c_incpath): Add.
11362
11363 * config/darwin-c.c: Add c-incpath.h include.
11364 (using_frameworks, find_subframework_file,
11365 find_subframework_header, add_system_framework_path,
11366 frameworks_in_use, num_frameworks, max_frameworks,
11367 add_framework, find_framework, struct framework_header,
11368 framework_header_dirs, framework_construct_pathname,
11369 find_subframework_file, add_system_framework_path,
11370 add_framework_path, framework_defaults,
11371 darwin_register_frameworks, find_subframework_header): Add.
11372 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
11373 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
11374 (CPP_SPEC): Add __APPLE_CC__ support.
11375 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
11376
11377 2004-03-04 Jan Hubicka <jh@suse.cz>
11378
11379 * cselib.c (cselib_finish): Fix miss-application of my previous
11380 patch.
11381
11382 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11383
11384 * hooks.c (hook_tree_tree_identity): New.
11385 * hooks.h: Add a prototype for hook_tree_tree_identity.
11386 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
11387 instead of MD_ASM_CLOBBERS.
11388 * system.h (MD_ASM_CLOBBERS): Poison.
11389 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
11390 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
11391 * target.h (gcc_target): Add md_asm_clobbers.
11392 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
11393 (ix86_md_asm_clobbers): New.
11394 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
11395 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
11396 TARGET_MD_ASM_CLOBBERS.
11397
11398 2004-03-03 Stuart Hastings <stuart@apple.com>
11399
11400 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
11401
11402 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11403
11404 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
11405
11406 * config/sparc/sparc.h (ASM_FLOAT): Delete.
11407 (ASM_DOUBLE): Likewise.
11408 (ASM_LONGDOUBLE): Likewise.
11409 * config/sparc/pbd.h (ASM_INT_OP): Delete.
11410
11411 2004-03-03 Richard Henderson <rth@redhat.com>
11412
11413 PR opt/13862
11414 * cselib.c (cselib_record_sets): Don't record multiple sets in
11415 asm insns.
11416
11417 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
11418
11419 * common.opt: Add description of the new -fgcse-after-reload flag.
11420
11421 * flags.h (flag_gcse_after_reload): Declaration of global variable.
11422
11423 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
11424 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
11425 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
11426 get_bb_avail_insn, hash_scan_set_after_reload,
11427 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
11428 gcse_after_reload, get_bb_avail_insn): New functions to implement
11429 gcse-after-reload.
11430 (gcse_after_reload_main): New function, the main entry point to
11431 gcse-after-reload.
11432
11433 * rtl.h (gcse_after_reload_main): Declaration of the new function.
11434
11435 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
11436
11437 * toplev.c (flag_gcse_after_reload): Initialization.
11438
11439 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
11440
11441 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11442 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
11443 the gcse after reload optimization.
11444
11445 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11446 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
11447 parameters.
11448
11449 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
11450
11451 2004-03-03 Nicolas Pitre <nico@cam.org>
11452
11453 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
11454 small negative values.
11455
11456 2004-03-03 Jan Hubicka <jh@suse.cz>
11457
11458 * cselib.c (hash_table): Remove GTY marker.
11459 (reg_values): Turn into array.
11460 (used_regs): Likewise.
11461 (n_used_regs): New static variable.
11462 (reg_values_old): Kill.
11463 (clear_table): Update uses of arrays.
11464 (cselib_lookup): Likewise.
11465 (cselib_record_set): Likewise.
11466 (cselib_init): Likewise.
11467 (cselib_finish): Likewise.
11468 (cselib_udpate_varray_sizes): Kill.
11469 * cselib.h (cselib_update_varray_sizes): Kill.
11470
11471 2004-03-03 Paul Brook <paul@codesourcery.com>
11472
11473 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
11474
11475 2004-03-03 Jan Hubicka <jh@suse.cz>
11476
11477 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
11478 Rename from ...; make statistics transparent.
11479 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
11480 (loc_descriptor): New structure.
11481 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
11482 add_statistics):
11483 New static function.
11484 (ggc_record_overhead, dump_statistics): New global function.
11485 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11486 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
11487 from ...; accept locations
11488 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11489 ggc_realloc, ggc_alloc_typed): ... this one.
11490 from ...; accept locations
11491 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
11492 ggc_alloc_stat): Rename from ... ; pass locations
11493 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
11494 ... this one.
11495 (ggc_alloc_stat): Record overehead.
11496 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11497 ggc_realloc, ggc_alloc_typed): Turn to macros
11498 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11499 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
11500 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
11501 * langhooks.h (lhd_make_node): Declare.
11502 (LANG_HOOKS_MAKE_TYPE): Default to new function,
11503 * langhooks.c (lhd_make_node): New.
11504 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
11505 locations.
11506 (rtx_alloc, swallow_copy_rtx): ... this one.
11507 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
11508 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
11509 * toplpev.c (finalize): Dump stats.
11510 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
11511 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11512 Rename from ... ; pass locators.
11513 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11514 build?, build_decl): Declare.
11515 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
11516 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11517 Declare.
11518 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11519 build?, build_decl): New macros.
11520 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
11521 * statistics.h: New file.
11522
11523 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11524 Richard Sandiford <rsandifo@redhat.com>
11525
11526 * config/mips/mips.h (MASK_FIX_SB1): Bump.
11527 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
11528 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
11529 * config/mips/mips.c (mips_output_division): Fill the branch delay
11530 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
11531 TARGET_FIX_R4400.
11532 (mips_output_division): Adjust accordingly.
11533 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
11534 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
11535
11536 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
11537
11538 * alias.c (rtx_equal_for_memref_p): Use predicates
11539 to test rtx classes and new rtx class codes, possibly
11540 splitting conditionals that tested against '<' and 'o'.
11541 * caller-save.c (save_call_clobbered_regs): Likewise.
11542 * combine.c (contains_muldiv, find_split_point, subst,
11543 combine_simplify_rtx, simplify_if_then_else,
11544 simplify_set, simplify_logical, expand_compound_operation,
11545 make_compound_operation, if_then_else_cond, known_cond,
11546 apply_distributive_law, cached_nonzero_bits,
11547 cached_num_sign_bit_copies, simplify_shift_const,
11548 gen_binary, simplify_comparison, update_table_tick,
11549 record_value_for_reg, get_lsat_value_validate): Likewise.
11550 * cse.c (mention_regs, find_best_addr, find_comparison_args,
11551 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
11552 Likewise.
11553 * emit-rtl.c (copy_insn_1): Likewise.
11554 * expr.c (force_operand): Likewise.
11555 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
11556 * flow.c (notice_stack_pointer_modification_1,
11557 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
11558 and_reg_cond, elim_reg_cond): Likewise.
11559 * function.c (update_epilogue_consts): Likewise.
11560 * genattrtab.c (attr_rtx_1): Likewise.
11561 * genopinit.c (gen_insn): Likewise.
11562 * integrate.c (subst_constants): Likewise.
11563 * jump.c (reversed_comparison_code_parts,
11564 reversed_comparison_code, delete_related_insns,
11565 rtx_renumbered_equal_p): Likewise.
11566 * local-alloc.c (block_alloc): Likewise.
11567 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
11568 canonicalize_condition): Likewise.
11569 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
11570 Likewise.
11571 * optabs.c (add_equal_node, expand_binop): Likewise.
11572 * predict.c (estimate_probability): Likewise.
11573 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
11574 * recog.c (validate_replace_rtx_1, comparison_operator,
11575 offsettable_address_p, constrain_operands): Likewise.
11576 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
11577 Likewise.
11578 * regclass.c (scan_one_insn): Likewise.
11579 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
11580 * regrename.c (kill_autoinc_value): Likewise.
11581 * reload.c (find_reusable_reload, find_reloads,
11582 reg_overlap_mentioned_for_reload_p): Likewise.
11583 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
11584 * rtl.c (copy_rtx): Likewise.
11585 * rtl.h (CONSTANT_P, INSN_P): Likewise.
11586 * rtlanal.c (commutative_operand_precedence): Likewise.
11587 * sched-deps.c (conditions_mutex_p): Likewise.
11588 * sched-rgn.c (is_cfg_nonregular): Likewise.
11589 * simplify-rtx.c (simplify_gen_binary,
11590 simplify_gen_relational, simplify_replace_rtx,
11591 simplify_unary_operation, simplify_binary_operation,
11592 simplify_ternary_operation, simplify_rtx): Likewise.
11593 * unroll.c (reg_dead_after_loop): Likewise.
11594 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
11595 print_operand): Likewise.
11596 * config/arc/arc.c (proper_comparison_operator): Likewise.
11597 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
11598 Likewise.
11599 * config/avr/avr.c (_reg_unused_after): Likewise.
11600 * config/frv/frv.c (frv_ifcvt_modify_tests,
11601 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
11602 * config/i386/i386.c (ix86_comparison_operator,
11603 ix86_carry_flag_operator, fcmov_comparison_operator,
11604 arith_or_logical_operator, print_operand,
11605 ix86_expand_binary_operator, ix86_binary_operator_ok):
11606 Likewise.
11607 * config/i386/i386.md: Likewise.
11608 * config/ia64/ia64.c (not_postinc_memory_operand,
11609 ia64_print_operand, update_set_flags, errata_emit_nops):
11610 Likewise.
11611 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
11612 CONSTRAINT_OK_FOR_S): Likewise.
11613 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
11614 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
11615 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
11616 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
11617 Likewise.
11618 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
11619 eqne_comparison_operator, signed_comparison_operator):
11620 Likewise.
11621 * config/mips/mips.c (cmp_op, symbolic_expression_p):
11622 Likewise.
11623 * config/mmix/mmix (mmix_foldable_comparison_operator,
11624 mmix_comparison_operator): Likewise.
11625 * config/pa/pa.c (hppa_legitimize_address): Likewise.
11626 * config/rs6000/rs6000.c (stmw_operation,
11627 branch_comparison_operator, trap_comparison_operator,
11628 ccr_bit): Likewise.
11629 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
11630 * config/s390/s390.c (s390_alc_comparison,
11631 s390_slb_comparison):L Likewise.
11632 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
11633 Likewise.
11634 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
11635 noov_compare_op, noov_compare64_op, v9_regcmp_op,
11636 emit_hard_tfmode_operation, reg_unused_after)
11637 * doc/md.texi, doc/rtl.texi: Likewise.
11638
11639 * ra-debug.c: Add 2004 to list of copyright years.
11640 * unroll.c: Likewise.
11641
11642 * combine.c (simplify_logical): Remove dummy test,
11643 (apply_distributive_law): Fix typo in comment.
11644 GET_CODE (x) == AND so x is a commutative binary op.
11645 * jump.c (delete_related_insns): simplify loop
11646 condition, move testing of RTX codes inside the loop.
11647 (rtx_renumbered_equal_p): do not use RTX_CODE.
11648 * rtl.c (rtx_class): Declare as enum rtx_class.
11649 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
11650 Move to RTX_COMM_COMPARE class.
11651 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
11652 Move to RTX_CONST_OBJ class.
11653 * rtl.h (enum rtx_class): New declaration,
11654 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
11655 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
11656 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
11657 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
11658 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
11659 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
11660 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
11661 OBJECT_P): New macros.
11662 * config/sparc/sparc.c (noov_compare_op): Remove register
11663 from parameter.
11664
11665 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11666
11667 * target.h: Remove texi jargons in comments.
11668
11669 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11670
11671 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
11672 threshold to 0x4f.
11673
11674 Revert:
11675 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11676 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
11677 as well.
11678 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
11679 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
11680
11681 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11682
11683 * doc/md.texi (cbranchmode4): New.
11684
11685 2004-03-02 Eric Christopher <echristo@redhat.com>
11686
11687 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
11688 fix_trunc.
11689 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
11690 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
11691 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
11692 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
11693
11694 2004-03-02 Richard Henderson <rth@redhat.com>
11695
11696 PR middle-end/11767
11697 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
11698 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
11699 before the compare, if flag_non_call_exceptions.
11700
11701 2004-03-02 Richard Henderson <rth@redhat.com>
11702
11703 PR middle-end/14327
11704 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
11705 emitting the label, not after.
11706
11707 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11708
11709 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
11710 (m68hc11_mov_addr_mode): Likewise.
11711 (m68hc11_override_options): Initialize them based on target.
11712 (register_indirect_p): Allow a MEM for indirect addressing modes and
11713 use flags to control what is allowed.
11714 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
11715 supported addressing modes.
11716 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
11717 (go_if_legitimate_address_internal): Likewise.
11718 (m68hc11_indirect_p): Likewise and check the mode.
11719 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
11720
11721 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11722
11723 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
11724 (expand_builtin_setjmp_setup): Use
11725 targetm.builtin_setjmp_frame_value instead of
11726 BUILTIN_SETJMP_FRAME_VALUE.
11727 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
11728 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
11729 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11730 * target.h (gcc_target): Add builtin_setjmp_frame_value.
11731 * targhooks.c (default_builtin_setjmp_frame_value): New.
11732 * targhooks.h: Add a prototype for
11733 default_builtin_setjmp_frame_value.
11734 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
11735 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11736
11737 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11738
11739 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
11740 sequences of moves.
11741 (add peepholes): New peepholes to optimize sequences adding small
11742 constants.
11743 (bset peepholes): New peepholes to transform an OR in a bset form
11744 (bclr peepholes): Likewise for bclr form.
11745 (cmp peepholes): New peepholes to avoid register copies when comparing.
11746
11747 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11748
11749 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
11750 to separate push from moves.
11751 ("*pushdf_internal"): Likewise.
11752 ("*pushsf_internal"): Likewise.
11753 ("*pushsi_internal"): Likewise.
11754 ("movdi_internal"): Use define_insn_and_split; non push operand.
11755 ("movdf_internal"): Likewise.
11756 ("movsf_internal"): Likewise.
11757 ("movsi_internal"): Likewise.
11758 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
11759 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
11760 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
11761
11762 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11763
11764 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
11765 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
11766 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
11767 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
11768 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
11769 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
11770 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
11771 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
11772 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
11773 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
11774 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
11775
11776 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11777
11778 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
11779 (SOFT_XY_REGNUM): Define.
11780 (cmp split): Use the above instead of hard coded numbers.
11781 (8-bit op split): No need to check the mode; allow Q_REG.
11782 (ashift split): Adjust the first operand if it uses the SP and we
11783 are pushing the shifted value.
11784 (plus shift split): Fix when a source is in register D+X.
11785 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
11786
11787 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11788
11789 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
11790 comparing with Z register.
11791
11792 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11793
11794 * cfgloop.h (struct loop_desc): Removed.
11795 (struct loop): Fields simple, desc and has_desc removed.
11796 (simple_loop_p, count_loop_iterations): Declaration removed.
11797 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
11798 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
11799 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
11800 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
11801 simple_loop_exit_p, variable_initial_value, variable_initial_values,
11802 simple_condition_p, simple_increment, count_strange_loop_iterations,
11803 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
11804 Removed.
11805 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
11806
11807 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11808
11809 * genattrtab.c: Don't handle MATCH_INSN.
11810 * genrecog.c: Likewise.
11811 * gensupport.c: Likewise.
11812 * rtl.def (match_insn): Remove.
11813 * doc/md.texi (match_insn, match_insn2): Remove.
11814
11815 2004-03-02 Mark Mitchell <mark@codesourcery.com>
11816
11817 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
11818 macro results in memory allocation.
11819
11820 2004-03-02 David O'Brien <obrien@FreeBSD.org>
11821
11822 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
11823 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
11824 %(fbsd_dynamic_linker),
11825 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
11826 config/i386/freebsd.h
11827 * config/arm/freebsd.h: Ditto.
11828 * config/i386/freebsd.h: Ditto.
11829 * config/i386/freebsd64.h: Ditto.
11830 * config/ia64/freebsd.h: Ditto.
11831 * config/rs6000/sysv4.h: Ditto.
11832 * config/sparc/freebsd.h: Ditto.
11833
11834 2004-03-02 Loren James Rittle <ljrittle@acm.org>
11835
11836 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
11837
11838 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11839
11840 * rtl.def (define_combine): Remove.
11841
11842 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11843
11844 * config/h8300/h8300.md: Tweak formatting.
11845
11846 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11847
11848 * config/h8300/h8300.md (*cmphi_h8300): Rename to
11849 *cmphi_h8300_znvc.
11850 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
11851
11852 2004-03-01 Mark Mitchell <mark@codesourcery.com>
11853
11854 PR bootstrap/14356
11855 * gcc.c (process_command): Remove const-qualification from argv.
11856 (main): Likewise.
11857
11858 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11859
11860 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
11861 pushqi1_h8300hs_advanced. Adjust its caller.
11862 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
11863 Adjust its caller.
11864
11865 2004-03-02 Nicolas Roche <roche@act-europe.fr>
11866
11867 * Makefile.in (install-libgcc, install-multilib): Pass
11868 mkinstalldirs var to libgcc.mk.
11869
11870 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
11871
11872 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
11873 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
11874
11875 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
11876
11877 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
11878 * config/h8300/h8300.md: Split several peephole2's, each into
11879 two.
11880
11881 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11882
11883 * dominance.c (recount_dominator): Handle postdominators.
11884
11885 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11886
11887 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
11888 (NUM_SYMBOL_TYPES): Likewise.
11889 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
11890 (mips_unspec_address): Declare.
11891 (mips_gotoff_page, mips_gotoff_global): Delete.
11892 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
11893 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
11894 (mips_symbolic_constant_p, mips_symbolic_address_p)
11895 (mips_symbol_insns): Handle new symbol types.
11896 (general_symbolic_operand): New predicate.
11897 (mips_unspec_address): Make extern.
11898 (mips_gotoff_page, mips_gotoff_global): Delete.
11899 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
11900 Handle new symbol types.
11901 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
11902 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
11903 mips_unspec_address directly.
11904 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
11905 the documentation of -mexplicit-relocs.
11906
11907 2004-03-01 Jeff Law <law@redhat.com>
11908
11909 * fold-const.c (fold): An equality comparison of a non-weak object
11910 against zero has a known result. Similarly an equality comparison
11911 of the address of two non-weak, unaliased symbols has a known result.
11912
11913 * ggc-page.c (struct page_entry): New field PREV.
11914 (ggc_alloc): Update PREV field appropriately.
11915 (sweep_pages): Likewise.
11916 (ggc_free): Likewise. Use PREV field rather than loop to
11917 improve ggc_free performance.
11918
11919 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11920
11921 * config/mips/mips.c (mips_output_division): Use the division
11922 instruction to fill the delay slot of a zero check.
11923 (mips_idiv_insns): Adjust accordingly.
11924
11925 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
11926
11927 * config.gcc: Create a default tmake_file for linux, and use
11928 it in all but two linux clauses. Comment those two.
11929
11930 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
11931
11932 * combine.c (try_combine): Do not refer to is_replaced.
11933 (gen_lowpart_for_combine): Perverse subregs now have a
11934 more politically correct name.
11935 * cse.c (cse_insn): Likewise.
11936 * jump.c: Fix bogus reference to delete_insn.
11937
11938 2004-02-29 Mark Mitchell <mark@codesourcery.com>
11939
11940 PR debug/14328
11941 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
11942 constants as signed values.
11943
11944 PR middle-end/13448
11945 * c-tree.h (readonly_warning): Rename to ...
11946 (readonly_error): ... this.
11947 * c-typeck.c (build_unary_op): Adjust accordingly.
11948 (readonly_warning): Rename to ...
11949 (readonly_error): ... this and issue errors, not warnings.
11950 (build_modify_expr): Call readonly_error, not readonly_warning.
11951 (c_expand_asm_operands): Likewise.
11952 * tree-inline.c (optimize_inline_calls): Do not inline functions
11953 after errors have occurred.
11954
11955 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
11956
11957 * configure.ac: Rearrange some threading code for clarity;
11958 add section comment.
11959 * configure: Regenerate.
11960
11961 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11962
11963 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
11964 typos.
11965 * doc/cppopts.texi: Fix a typo.
11966
11967 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11968
11969 * config/i386/i386.md: Fix formatting.
11970
11971 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
11972
11973 * configure.ac: Add some comments delineating sections of code.
11974
11975 * doc/install.texi: Note that libada uses autoconf 2.57 also.
11976
11977 * doc/install.texi: Fix idiot typo in previous commit.
11978
11979 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
11980
11981 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11982
11983 * config/h8300/h8300.md: Add comments about peephole2's.
11984
11985 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11986
11987 * config/h8300/h8300.md: Tweak operand numbers of some
11988 peephole2's.
11989
11990 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11991
11992 * config/h8300/h8300.md: Tweak comments about peephole2's.
11993
11994 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
11995
11996 PR middle-end/14203
11997 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
11998 instead of testing whether DECL_RTL is not NULL.
11999
12000 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12001
12002 * config/sh/sh.c: Fix formatting.
12003
12004 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12005
12006 * config/sh/sh.c: Convert to ISO-C.
12007
12008 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
12009
12010 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
12011 my previous patch.
12012
12013 * config/darwin.h (machopic_finish): Output stub even if the
12014 symbol is already defined.
12015
12016 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12017
12018 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
12019
12020 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12021
12022 * genattr.c (main): Don't define
12023 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
12024 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
12025 (DFA_PIPELINE_INTERFACE): Likewise.
12026 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
12027 (DFA_PIPELINE_INTERFACE): Likewise.
12028
12029 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
12030
12031 * config/mips/mips.md (tstsi, tstdi): Delete.
12032
12033 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12034
12035 * config/mips/mips.c (override_options): Remove an obsolete
12036 duplicate definition of the "e" constraint.
12037 * config/mips/mips.h: Update a comment accordingly.
12038
12039 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12040
12041 * config/mips/mips.md: Complete the unfinished R4000
12042 multiply/shift errata workaround. Improve documentation.
12043 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
12044 has a hilo hazard.
12045 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
12046 (muldi3, muldi3_internal): Likewise.
12047 (muldi3_internal2): Remove, replacing with...
12048 (muldi3_mult3, muldi3_r4000): ...these new patterns.
12049 (mulsidi3): Take the errata into account.
12050 (mulsidi3_32bit): Remove, replacing with...
12051 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
12052 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
12053 (umulsidi3): Take the errata into account.
12054 (umulsidi3_32bit): Remove, replacing with..
12055 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
12056 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
12057 TARGET_FIX_R4000.
12058 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
12059 (smuldi3_highpart, umuldi3_highpart): Likewise.
12060 * doc/invoke.texi: Document the errata workaround.
12061
12062 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12063
12064 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
12065 * config/mips/mips.h (MASK_FIX_SB1): Bump.
12066 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
12067 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
12068 * config/mips/mips.c (mips_idiv_insns): New function.
12069 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
12070 (mips_output_division): Add a workaround for the R4000 divide/shift
12071 errata.
12072 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
12073 the length of an "idiv" instruction.
12074 * doc/invoke.texi: Document the new switches.
12075
12076 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12077
12078 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
12079 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
12080
12081 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12082
12083 PR optimization/14229
12084 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
12085
12086 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
12087
12088 * fold-const.c (fold): Strip NOPs that change the signedness
12089 for RSHIFT too. Expand comment.
12090
12091 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
12092
12093 PR optimization/7871
12094 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
12095 from or to call insns.
12096
12097 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
12098
12099 PR optimization/7871
12100 * flow.c (propagate_one_insn): Interpret calls as setting global
12101 registers, not merely clobbering them.
12102
12103 2004-02-27 Dale Johannesen <dalej@apple.com>
12104
12105 * config/darwin.c (machopic_output_possible_stub_label): Remove.
12106 config/darwin-protos.h: Ditto.
12107 config/darwin.h: Remove call to it.
12108 * combine.c (distribute_notes): Do not place a REG_DEAD note
12109 when value is both set and used.
12110
12111 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12112
12113 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
12114 as well.
12115 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
12116 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
12117
12118 2004-02-27 Andrew Pinski <apinski@apple.com>
12119
12120 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
12121 Speedup common case of the type values being in the same order.
12122
12123 2004-02-27 Steve Ellcey <sje@cup.hp.com>
12124
12125 * config/ia64/ia64.h (no-inline-float-divide): New option.
12126 * config/ia64/ia64.h (no-inline-int-divide): New option.
12127 * config/ia64/ia64.h (no-inline-sqrt): New option.
12128 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
12129 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
12130 * config/ia64/ia64.c (ia64_override_options): Modify error
12131 checking for inlined division/sqrt.
12132
12133 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12134
12135 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
12136 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
12137 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
12138 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
12139 copyright.
12140
12141 2004-02-27 Paul Brook <paul@codesourcery.com>
12142
12143 * function.c (assign_parms): Don't count pretend args for alignment.
12144
12145 2004-02-27 Richard Henderson <rth@redhat.com>
12146
12147 * passes.c: New file.
12148 * Makefile.in (OBJS-common): Add it.
12149 * diagnostic.c (rtl_dump_and_exit): Move decl ...
12150 * flags.h (rtl_dump_and_exit): ... here.
12151 * output.h (size_directive_output, last_assemble_variable_decl):
12152 Move from toplev.c.
12153 * rtl.h (reg_alloc): Move from toplev.c.
12154 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
12155 struct dump_file_info, enum dump_file_index, dump_file_tbl,
12156 open_dump_file, close_dump_file, rest_of_decl_compilation,
12157 rest_of_type_compilation, rest_of_handle_final,
12158 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12159 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12160 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
12161 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
12162 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
12163 rest_of_handle_tracer, rest_of_handle_if_conversion,
12164 rest_of_handle_if_after_combine, rest_of_handle_web,
12165 rest_of_handle_branch_prob,
12166 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12167 rest_of_handle_addressof, rest_of_handle_sibling_calls,
12168 rest_of_handle_jump_bypass, rest_of_handle_inlining,
12169 rest_of_handle_null_pointer, rest_of_handle_combine,
12170 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12171 rest_of_handle_gcse, rest_of_handle_loop_optimize,
12172 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
12173 (decode_d_option): Use enable_rtl_dump_file.
12174 (compile_file, finalize, do_compile): Move profile+combine+graph
12175 cleanup to finish_optimization_passes.
12176 * toplev.h (init_optimization_passes, finish_optimization_passes,
12177 enable_rtl_dump_file): Declare.
12178
12179 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
12180 Roger Sayle <roger@eyesopen.com>
12181
12182 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
12183 operands to build a tree with swapped operands.
12184 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
12185 'unsignedp' predicate to specify the signedness.
12186
12187 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12188
12189 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
12190 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
12191 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
12192 comment typos and formatting. Follow spelling conventions.
12193
12194 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
12195
12196 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
12197 fix_truncsfsi2.
12198
12199 * config/rs6000/spe.md: Delete spe_efsctuiz.
12200 Add spe_fixuns_truncsfsi2.
12201 Add spe_fix_truncsfsi2.
12202
12203 2004-02-26 Eric Christopher <echristo@redhat.com>
12204
12205 * c-lex.c (c_lex_string_translate): New variable.
12206 (lex_string): Use to determine string translation.
12207 * c-pragma.h: Prototype.
12208 * c-parse.in (start_string_translation): New. Set above.
12209 (stop_string_translation): Ditto.
12210 (attribute, attribute_list, asm_def, asm_stmt,
12211 asm_operand): Use above functions.
12212 * cp/parser.c (cp_parser_declaration): Translate strings
12213 unless token is RID_EXTERN. Set c_lex_string_translate
12214 for recursive use.
12215 (cp_parser_asm_definition): Only translate argument strings
12216 to asms.
12217 (cp_parser_asm_operand_list): Ditto.
12218 (cp_parser_attribute_list): Do not translate attribute strings.
12219
12220 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12221
12222 * stmt.c (expand_start_case_dummy): Remove.
12223 * tree.h: Remove the corresponding prototype.
12224
12225 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12226
12227 * builtins.c (apply_args_register_offset): Remove.
12228 * tree.h: Remove the corresponding prototype.
12229
12230 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12231
12232 * stor-layout.c (is_pending_size): Remove.
12233 * tree.h: Remove the corresponding prototype.
12234
12235 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12236
12237 * recog.c (validate_replace_src): Remove.
12238 * recog.h: Remove the corresponding prototype.
12239
12240 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12241
12242 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
12243 MAYBE_REG_PARM_STACK_SPACE.
12244 * function.c: Likewise.
12245 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
12246 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12247 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
12248 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12249
12250 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12251
12252 * c-decl.c (c_expand_deferred_function): Remove.
12253 * c-tree.h: Remove the corresponding prototype.
12254
12255 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12256
12257 * postreload.c (reload_cse_move2add): Generate just a PLUS
12258 instead of an entire SET.
12259
12260 2004-02-26 Jan Hubicka <jh@suse.cz>
12261
12262 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
12263 /pentium4m.
12264 * i386.c (override_options): Add support for new CPUs.
12265 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
12266 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
12267 constants.
12268 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
12269
12270 2004-02-26 Bob Wilson <bob.wilson@acm.org>
12271
12272 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
12273
12274 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
12275
12276 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
12277 (sparc_emit_fixunsdi): New prototype.
12278 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
12279 (sparc_emit_fixunsdi): New function.
12280 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
12281 operand 1. Pass SFmode to sparc_emit_floatunsdi.
12282 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
12283 to sparc_emit_floatunsdi.
12284 (fixuns_truncsfdi2): New expander.
12285 (fixuns_truncdfdi2): Likewise.
12286
12287 2004-02-26 Alan Modra <amodra@bigpond.net.au>
12288
12289 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
12290 unless HAVE_cc0.
12291
12292 2004-02-25 Richard Henderson <rth@redhat.com>
12293
12294 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
12295 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
12296 use (op0-op1) == 0 if op0 is a pointer.
12297 * config/alpha/alpha.md (cmpdi): Use some_operand.
12298 (three comparison combine splits): Remove.
12299
12300 2004-02-25 Richard Henderson <rth@redhat.com>
12301
12302 PR c/12794
12303 * c-common.c (handle_alias_attribute): Reject the attribute if
12304 current_function_decl is set.
12305
12306 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
12307
12308 * config.gcc: Add comment describing extra_gcc_objs.
12309 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
12310 * configure.ac (extra_gcc_objs): New substitution variable.
12311 (host_extra_gcc_objs): Don't substitute.
12312 * configure: Regenerate.
12313 * Makefile.in: Use extra_gcc_objs.
12314
12315 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
12316
12317 * doc/contrib.texi: Add an entry for myself.
12318
12319 2004-02-25 Jan Hubicka <jh@suse.cz>
12320
12321 * basic-block.h (make_eh_edge, break_superblocks): Declare.
12322 * cfgbuild.c (make_eh_edge): Make global.
12323 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
12324 * except.c (build_post_landing_pads, connect_post_landing_pads,
12325 dw2_build_landing_pads, sjlj_emit_function_enter,
12326 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12327 sjlj_build_landing_pads): Update CFG.
12328 (emit_to_new_bb_before): New function.
12329 (finish_eh_generation): Do not rebuild the CFG.
12330
12331 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12332
12333 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
12334 target_cpu_default defines.
12335 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
12336 * pa.h (TARGET_DEFAULT): Likewise.
12337
12338 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
12339
12340 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
12341 comparisons with regard to signedness.
12342
12343 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
12344
12345 * arm.c (thumb_legitimize_address): New function.
12346 * arm-protos.h: Prototype it.
12347 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
12348 (LEGITIMIZE_ADDRESS): Use it.
12349
12350 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
12351
12352 * reload1.c (reload): Only spill eliminable register with multiple
12353 adjacent elimination alternatives if all alternatives fail.
12354
12355 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
12356
12357 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
12358 is -4095...+4095 inclusive.
12359
12360 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
12361
12362 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
12363 the bootstrap failure with Sun CC 5.4 and 5.5.
12364
12365 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12366
12367 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
12368 which modifies NEWREG.
12369 (cse_condition_code_reg): Update the mode of CC_REG in
12370 CC_SRC_INSN on our own.
12371
12372 2004-02-24 Michael Matz <matz@suse.de>
12373
12374 * config/i386/i386.c (ix86_comp_type_attributes): Check for
12375 regparm attributes.
12376
12377 2004-02-24 Richard Henderson <rth@redhat.com>
12378
12379 * toplev.c (dump_file_tbl): Rename from dump_file.
12380 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
12381 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
12382 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
12383 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
12384 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
12385 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
12386 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
12387 s/rtl_dump_file/dump_file/g.
12388
12389 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
12390
12391 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
12392 (spe_fixuns_truncsfsi2): Delete.
12393
12394 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
12395 (fixuns_truncsfsi2): Delete.
12396
12397 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
12398
12399 PR/14240
12400 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
12401
12402 2004-02-24 Geoffrey Keating <geoffk@apple.com>
12403
12404 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
12405
12406 2004-02-24 Jason Merrill <jason@redhat.com>
12407
12408 * tree.c (check_qualified_type): New fn.
12409 (get_qualified_type): Use it. If type already has the desired
12410 quals, just return it.
12411 * tree.h: Declare it.
12412
12413 2004-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
12414
12415 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
12416 TARGET_SCHED_FINISH_GLOBAL): New macros.
12417
12418 * target.h (md_init_global, md_finish_global): Function
12419 declarations corresponding to new target macros.
12420
12421 * haifa-sched.c (sched_init, sched_finish): Allow target to
12422 call the new schedular hooks.
12423
12424 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
12425 call to update_life_info.
12426
12427 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
12428 flag_schedule_insns for SH4.
12429
12430 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
12431 find_set_regmode_weight, find_insn_regmode_weight,
12432 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
12433 sh_variable_issue, high_pressure, ready_reorder,
12434 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
12435 functions used to throttle the insn movement in first
12436 scheduling pass for SH.
12437
12438 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
12439 TARGET_SCHED_FINISH_GLOBAL.
12440
12441 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
12442
12443 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
12444 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
12445 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
12446 symbols in sections named by the user.
12447 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
12448 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
12449 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
12450 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
12451 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
12452 the above.
12453 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
12454 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
12455 one more pseudo to further improve code generation.
12456 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
12457 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
12458 inside UNSPEC.
12459 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
12460 * config/frv/frv.c (frv_legitimate_address_p): Added
12461 allow_double_reg_p argument. Adjust all callers. Use it to
12462 decide whether to enable double-register indirect addressing.
12463 (frv_funcdesc_alias_set): Remove.
12464 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
12465 register. Emit movdi_ldd.
12466 (ldd_address_operand): New.
12467 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
12468 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12469 (PREDICATE_CODES): Add ldd_address_operand.
12470 * config/frv/frv.md (movdi_ldd): New.
12471 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
12472 intermediate computations if possible.
12473 (symGOTOFF2reg_i): Fix harmless typo.
12474 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
12475 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
12476 relocated p_vaddr to vaddr type.
12477 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
12478 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
12479 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
12480 MEM, or use a funcdesc alias set. Use regular move instead of
12481 ldd.
12482 (dbl_memory_one_insn_operand): Recognize function descriptors by
12483 type or by alias set, and don't split them.
12484 * config/frv/frv.md (call, call_value): Never use call_internal
12485 for fdpic.
12486 (call_internal, call_value_internal): Never match for FDPIC.
12487 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
12488 call_value_fdpicsi): Require FDPIC.
12489 (ldd): Removed.
12490 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
12491 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
12492 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
12493 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
12494 FDPIC. Compute data base address.
12495 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
12496 before the other self-specs are processed.
12497 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
12498 Build with -fPIC.
12499 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
12500 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
12501 inhibit_libc is defined.
12502 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
12503 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
12504 __FRV_FDPIC__.
12505 (__RELOC_POINTER): Define.
12506 (_Unwind_IteratePhdrCallback): Use it.
12507 * config/frv/frv.h (Twrite): Define.
12508 (TRANSFER_FROM_TRAMPOLINE): Use it.
12509 * config/frv/linux.h (INVOKE__main): Undefine.
12510 (Twrite): Override.
12511 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
12512 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
12513 (-mlibrary-pic): Emphasize that this option generates EABI code.
12514 (-mcpu): Add fr550.
12515 (-mpack): Remove.
12516 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
12517 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
12518 and CONSTs in FDPIC mode.
12519 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
12520 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12521 * config/frv/frv.c (move_source_operand): Don't accept symbolic
12522 constants.
12523 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
12524 rather than 'i' constraint for the 2-instruction alternative.
12525 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
12526 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12527 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
12528 EXTRA_CONSTRAINT_FOR_Y.
12529 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
12530 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
12531 (addsi3): Change 'Y' constraint to 'Q'.
12532 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
12533 * reload.c (CONST_POOL_OK_P): New macro.
12534 (find_reloads): Use it to decide whether a constant can be forced
12535 into memory.
12536 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
12537 constant satisfies got12_operand.
12538 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
12539 (frv_legitimate_address_p): Check for valid unspec offsets using
12540 got12_operand rather than frv_legitimate_fdpic_operand_p.
12541 (frv_legitimate_fdpic_operand_p): Delete.
12542 (frv_emit_movsi): Abort if we try to use the FDPIC register during
12543 or after reload.
12544 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
12545 TARGET_FDPIC.
12546 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
12547 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
12548 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
12549 (frv_fdpic_fptr_operand): Don't declare here.
12550 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
12551 rather than fdpic_got12_operand.
12552 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
12553 got12_operand and const_unspec_operand.
12554 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
12555 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
12556 (symbolic_operand): Remove.
12557 (const_unspec_operand): New predicate.
12558 * config/frv/frv.md (*movsi_got): Use got12_operand.
12559 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
12560 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
12561 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
12562 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
12563 * config/frv/frv.c (frv_unspec): New structure.
12564 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
12565 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
12566 validate CONST indices. Use frv_output_const_unspec to print them.
12567 (frv_print_operand): Update call to unspec_got_name. Use
12568 frv_output_const_unspec to print constant unspecs.
12569 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
12570 Reject UNSPECs otherwise.
12571 (unspec_got_name): Take the relocation number as argument, not an
12572 rtx containing it.
12573 (frv_output_addr_const_extra): Remove, replacing with...
12574 (frv_output_const_unspec): ...this new function.
12575 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
12576 (gpr_or_int12_operand): Use fdpic_got12_operand.
12577 (dbl_memory_one_insn_operand): Likewise.
12578 (fdpic_got12_operand): Use frv_const_unspec_p.
12579 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
12580 are already legitimate. Use frv_small_data_reloc_p when deciding
12581 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
12582 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
12583 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
12584 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
12585 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12586 label, for real this time.
12587 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
12588 representation of visibility.
12589 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
12590 such.
12591 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
12592 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
12593 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
12594 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
12595 it was explicitly disabled.
12596 (frv_stack_info): There is no need to save the link register in every
12597 frame unless TARGET_LINKED_FP is true.
12598 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
12599 frame pointer if the stack pointer might change value.
12600 (frv_return_addr_rtx): Check and process "count" argument.
12601 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
12602 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
12603 (frv_find_base_term): Declare.
12604 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
12605 (FIND_BASE_TERM): Define.
12606 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
12607 small_data_register_operand, small_data_symbolic_operand. Add
12608 symbolic_operand.
12609 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
12610 (frv_print_operand_memory_reference, output_move_single): Remove
12611 special handling for unlegitimized sdata addresses.
12612 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
12613 and symbolic addresses.
12614 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
12615 (frv_find_base_term): New function.
12616 (int_2word_operand): Check specifically for symbolic address constants.
12617 (pic_register_operand, pic_symbolic_operand): Delete.
12618 (small_data_register_operand, small_data_symbolic_operand): Delete.
12619 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
12620 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
12621 (move_source_operand): Only accept CONSTs if they're a two-insn
12622 symbolic constant.
12623 (fdpic_got12_operand): Don't require TARGET_FDPIC.
12624 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
12625 using gen_symGOTOFF2reg*.
12626 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
12627 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
12628 themselves a cost of 3 insns.
12629 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
12630 Change predicate to symbolic_operand.
12631 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
12632 (*movsi_lda_sdata): Delete.
12633 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
12634 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
12635 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
12636 frv-*-*linux*.
12637 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12638 label.
12639 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
12640 -multilib-library-pic.
12641 (LINK_SPEC): Add -z text for -mfdpic.
12642 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
12643 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
12644 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
12645 Override.
12646 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
12647 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
12648 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
12649 crtstuff-generated files.
12650 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
12651 * config.gcc: Add frv-*-*linux*.
12652 * config/frv/linux.h, config/frv/t-linux: New.
12653 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
12654 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
12655 when -mfdpic even if a linker script is explicitly listed.
12656 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12657 * config/frv/frv.c (frv_override_options): Clear asm_out
12658 unaligned_op for SImode on FDPIC.
12659 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
12660 argument passed to decl_readonly_section.
12661 (frv_assemble_integer): Revert 2003-09-30's change, but make the
12662 whole block run with FDPIC even with -fno-PIC.
12663 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12664 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
12665 symbol or label plus offset to memory.
12666 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
12667 GOTOFF and GPREL for LABEL_REF.
12668 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
12669 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
12670 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
12671 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
12672 * doc/invoke.texi: Document them.
12673 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
12674 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
12675 (frv_splittable_got_operand): Removed.
12676 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
12677 LO_SUM. Add comments.
12678 (frv_override_options): Moved enabling of FDPIC to
12679 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
12680 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
12681 (frv_legitimize_fdpic_address): Don't duplicate logic in
12682 frv_emit_movsi.
12683 (frv_gen_GPsym2reg): New.
12684 (unspec_got_name): Added gprel.
12685 (frv_expand_fdpic_call): Add support for inlining PLTs.
12686 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
12687 (gpr_or_int12_operand): Added GPREL12.
12688 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
12689 (small_data_symbolic_operand): Fail if FDPIC.
12690 (fdpic_splittable_got_operand): Removed.
12691 (fdpic_got12_operand): Added GPREL12.
12692 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
12693 when appropriate. Fix sdata GOTOFF.
12694 (frv_legitimate_constant_p): Require legitimate PIC operand for
12695 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
12696 (frv_assemble_integer): Move FDPIC funcdesc handling out of
12697 flag_pic case.
12698 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
12699 frv_assemble_integer fails.
12700 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
12701 (SUBTARGET_DRIVER_SELF_SPECS): New.
12702 (ASM_SPEC): Don't pass -mno-fdpic.
12703 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
12704 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
12705 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
12706 -multilib-library-pic.
12707 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
12708 condexec_si_media_operator, condexec_sf_add_operator and
12709 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
12710 and condexec_sf_unary_operator.
12711 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
12712 New.
12713 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
12714 movsi_internal. Give them internal names. movsi_got has type
12715 int.
12716 (fdpic got splitters): Remove.
12717 (symGPREL2reg, symGPREL2reg_hilo): New.
12718 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
12719 to -mlibrary-pic. Map -multilib-library-pic to it.
12720 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
12721 Document.
12722 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
12723 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
12724 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
12725 (frv_cannot_force_const_mem): New function.
12726 (const_small_data_p, plus_small_data_p): Update comments on sdata
12727 on FDPIC.
12728 (frv_override_options): Set flag_pie for FDPIC too.
12729 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
12730 call-saved registers on FDPIC.
12731 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
12732 don't force LR to be preserved.
12733 (frv_expand_prologue): Likewise.
12734 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
12735 (frv_frame_pointer_required): Don't force it just because the
12736 FDPIC register is used.
12737 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
12738 operand only if !condexec_p.
12739 (frv_legitimize_address): Return the FDPIC-legitimized address.
12740 Don't match small data here on FDPIC.
12741 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
12742 symbols. Use TRUE/FALSE instead of 1/0.
12743 (frv_local_funcdesc_p): New.
12744 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
12745 immediates when possible.
12746 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
12747 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
12748 an UNSPEC_GOT.
12749 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
12750 12-bit immediates when possible.
12751 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
12752 are not legitimate pic operands.
12753 (frv_in_small_data_p): Re-enable for FDPIC.
12754 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
12755 (FRV_GLOBAL_P): Removed.
12756 * config/frv/frv.md: Add modes to CONSTs.
12757 (movsi_got): New.
12758 (movsi_lo_sum_got): Use separate matches instead of match_dup.
12759 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
12760 (fdpic splittable operations): Match on flag_pic != 1.
12761 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
12762 * config/frv/frv.c (frv_asm_out_constructor,
12763 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
12764 bytes, not bits.
12765 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
12766 * config/frv/frv.c (frv_assemble_integer): Reject complex
12767 expressions referencing function SYMBOL_REFs.
12768 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
12769 (move_source_operand): Reject CONSTs that reference function
12770 SYMBOL_REFs on FDPIC.
12771 (frv_emit_movsi): If we get such a CONST, break it up.
12772 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
12773 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
12774 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
12775 MEM.
12776 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
12777 (frv_trampoline_size): Increase for FDPIC.
12778 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
12779 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
12780 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
12781 Disable use of GOTOFF for now.
12782 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
12783 Disable use of small data in FDPIC for now.
12784 (frv_asm_output_mi_thunk): Implement for FDPIC.
12785 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
12786 * config/frv/frv.c (frv_asm_out_constructor): Use
12787 frv_assemble_integer for FDPIC pointers.
12788 (frv_asm_out_destructor): Likewise.
12789 * config/frv/frv.md (ldd): Fix order of operands. Use
12790 address_operand for input.
12791 2003-09-18 DJ Delorie <dj@redhat.com>
12792 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
12793 (unspec_got_name): Correct typo.
12794 (frv_emit_movsi): Pre-expand splittable GOTs.
12795 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
12796 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
12797 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
12798 * config/frv/t-frv: Add -mfdpic multilibs.
12799 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
12800 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
12801 * config/frv/frv.c (frv_override_options): -mfdpic assumes
12802 flag_pic, default to 32-bit pics, require DWORD ops.
12803 (frv_override_options): Add W and Z constraints.
12804 (frv_expand_prologue): No pic prologue for -mfdpic.
12805 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
12806 (frv_print_operand_memory_reference): Handle GOT constants.
12807 (frv_legitimate_address_p): Allow GOT constants.
12808 (frv_legitimize_address): Handle GOT addresses too.
12809 (frv_legitimate_fdpic_operand_p): New.
12810 (frv_legitimize_fdpic_address): New.
12811 (unspec_got_name): New.
12812 (frv_output_addr_const_extra): New.
12813 (frv_expand_fdpic_call): New.
12814 (frv_fdpic_fptr_operand): New.
12815 (gpr_or_int12_operand): Handle GOT operands.
12816 (int_2word_operand): Handle GOT operands.
12817 (fdpic_operand): New.
12818 (fdpic_splittable_got_operand): New.
12819 (fdpic_got12_operand): New.
12820 (frv_emit_movsi): Handle GOT operands.
12821 (frv_assemble_integer): -mfdpic doesn't use rofixups.
12822 (frv_print_operand): Support 'g' code for GOT operands.
12823 * config/frv/frv-protos.h: Add prototypes as needed.
12824 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
12825 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
12826 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
12827 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
12828 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
12829 R_FRV_GOTOFFLO): New.
12830 (movsi_high_got, movsi_lo_sum_got): New.
12831 (*movsi_pic): Don't use this splitter for -mfdpic.
12832 (addsi3): Allow GOT references also.
12833 (call, call_value): Handle -mfdpic separately.
12834 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
12835 call_value_fdpicsi): New.
12836 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
12837 symGOTOFF2reg_i): New.
12838 * config/frv/frv.h (MASK_FDPIC): New.
12839 (TARGET_FDPIC): New.
12840 (TARGET_SWITCHES): Add -mfdpic.
12841 (FDPIC_FPTR_REGNO): New.
12842 (FDPIC_REGNO): New.
12843 (OUR_FDPIC_REG): New.
12844 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
12845 FDPIC_CALL_REGS.
12846 (REG_CLASS_NAMES): Likewise.
12847 (REG_CLASS_CONTENTS): Likewise.
12848 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
12849 (EXTRA_CONSTRAINT): Add it here.
12850 (FRV_GLOBAL_P): New.
12851 (OUTPUT_ADDR_CONST_EXTRA): New.
12852
12853 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12854
12855 * config/sparc/sparc.h: Remove commented-out definitions of
12856 TARGET_EDOM and GEN_ERRNO_RTX.
12857
12858 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12859
12860 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
12861 df_analyse with df_analyze.
12862
12863 2004-02-24 Alan Modra <amodra@bigpond.net.au>
12864
12865 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
12866 beginning of block.
12867
12868 2004-02-23 James E Wilson <wilson@specifixinc.com>
12869
12870 * calls.c (precompute_arguments): Update comment.
12871
12872 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12873
12874 * et-forest.c: Replace et_occurences with et_occurrences.
12875
12876 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12877
12878 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
12879 with iv_analyze.
12880
12881 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
12882
12883 * config/i386/i386.c: Rename pni to sse3.
12884 * config/i386/i386.h: Likewise.
12885 * config/i386/i386.md: Likewise.
12886 * config/i386/pmmintrin.h: Likewise.
12887 * doc/extend.texi: Likewise.
12888 * doc/invoke.texi: Likewise.
12889
12890 2004-02-23 Zack Weinberg <zack@codesourcery.com>
12891 Kazu Hirata <kazu@cs.umass.edu>
12892
12893 Remove -fwritable-strings.
12894 * c-common.c (fix_string_type): Don't check
12895 flag_writable_strings.
12896 (fix_string_type): Likewise.
12897 * c-opts.c (set_std_c89): Don't initialize
12898 flag_writable_strings.
12899 (set_std_c99): Likewise.
12900 * common.opt (fwritable-strings): Remove.
12901 * flags.h: Remove the external declaration of
12902 flag_writable_strings.
12903 * opts.c (common_handle_option) <OPT_fwritable_strings>:
12904 Remove.
12905 * toplev.c (flag_writable_strings): Remove.
12906 (f_options): Remove an entry for writable-strings.
12907 * varasm.c (const_hash_1) <STRING_CST>: Don't check
12908 flag_writable_strings.
12909 (compare_constant) <STRING_CST>: Likewise.
12910 (build_constant_desc): Likewise.
12911 * config/darwin.c (machopic_select_section): Likewise.
12912 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
12913 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
12914 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
12915 * config/mips/mips.c (mips_select_section): Likewise.
12916 (mips_encode_section_info): Likewise.
12917 * config/pa/pa.c (pa_select_section): Likewise.
12918 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
12919 * config/v850/v850.c (v850_select_section): Likewise.
12920 * doc/invoke.texi (-fwritable-strings): Remove.
12921 (-fno-const-strings): Don't mention -fwritable-strings.
12922 * doc/trouble.texi: Don't mention -fwritable-strings.
12923
12924 2004-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
12925
12926 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
12927
12928 2004-02-23 Dale Johannesen <dalej@apple.com>
12929
12930 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
12931 (movdf_hardfloat64): Ditto.
12932 (movdf_softfloat64): Ditto.
12933
12934 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
12935 * config/rs6000/rs6000.c (function_arg): call to
12936 rs6000_mixed_function_arg for DFmode moved to allow
12937 normal DFmode incoming register assignment.
12938
12939 2004-02-23 Dale Johannesen <dalej@apple.com>
12940
12941 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
12942 (movdf_hardfloat64): Ditto.
12943
12944 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12945
12946 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
12947 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
12948 copyright.
12949
12950 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
12951
12952 PR c/14156
12953 * c-typeck.c (c_expand_return): Change check for VAR_DECL
12954 to use DECL_P instead.
12955
12956 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
12957 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
12958
12959 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12960
12961 * Makefile.in (opts.o): Depend on target.h.
12962 * opts.c (decode_options): Use targetm.default_short_enums
12963 instead of DEFAULT_SHORT_ENUMS.
12964 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12965 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
12966 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
12967 * target.h (gcc_target): Add default_short_enums.
12968 * config/cris/cris.h: Remove a comment about
12969 DEFAULT_SHORT_ENUMS.
12970 * config/ip2k/ip2k.h: Likewise.
12971 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
12972 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
12973
12974 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12975 Falk Hueffner <falk@debian.org>
12976
12977 PR c/14188
12978 * builtins.c (expand_builtin_va_arg): Emit an informative message
12979 if a trap is generated.
12980 * c-typeck.c (build_function_call): Likewise.
12981
12982 2004-02-22 Jakub Jelinek <jakub@redhat.com>
12983
12984 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
12985 fopen.
12986 * libgcov.c: Include sys/stat.h.
12987 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
12988 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
12989 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
12990 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
12991
12992 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
12993
12994 * reorg.c: Remove comments about dead ports.
12995
12996 2004-02-22 Christopher Faylor <cgf@redhat.com>
12997
12998 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
12999 extra host object file when targetting cygwin rather than generic
13000 object files.
13001
13002 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
13003
13004 Merge from tree-ssa:
13005 2003-11-20 Richard Henderson <rth@redhat.com>
13006
13007 * tree-inline.c (insert_decl_map): New.
13008 (remap_decl, remap_type, remap_block, copy_body_r,
13009 initialize_inlined_parameters, declare_return_variable,
13010 remap_save_expr): Use it.
13011
13012 * function.c (copy_body_r): Add mapping from id->ret_label to
13013 id->ret_label. Revert test for ret_label.
13014
13015 2004-02-22 Jakub Jelinek <jakub@redhat.com>
13016
13017 * genoutput.c (process_template): Strip trailing whitespace in @
13018 templates and issue a warning if there was any.
13019
13020 2004-02-21 Christopher Faylor <cgf@redhat.com>
13021
13022 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
13023 object file when targetting cygwin.
13024 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
13025 overridden by top-level Makefile.
13026
13027 2004-02-21 Roger Sayle <roger@eyesopen.com>
13028
13029 * config/i386/i386.c (standard_80387_constant_p): Also prefer
13030 the x87's load constant instructions when optimizing for size.
13031
13032 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
13033
13034 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
13035 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
13036 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
13037 * fold-const.c: Likewise.
13038 * simplify-rtx.c: Likewise.
13039
13040 2004-02-21 Alan Modra <amodra@bigpond.net.au>
13041
13042 * combine.c (can_combine_p): Don't ignore SETs marked with
13043 REG_EH_REGION notes.
13044 (try_combine): When attemting to fix unrecognized insns, don't
13045 split a PARALLEL that contains the original i2.
13046
13047 2004-02-21 Ziemowit Laski <zlaski@apple.com>
13048
13049 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
13050 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
13051 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
13052 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
13053 (vector, pixel, bool): #define to __vector, __pixel and __bool.
13054 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
13055 portion of header.
13056 (__altivec_link_error_invalid_argument): Remove prototype; will use
13057 __builtin_altivec_compiletime_error("vec_*") instead.
13058 (vec_*): Fix/complete set of available operation overloads given the
13059 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
13060 cv-correctness of pointer arguments; in C, always check for correct
13061 argument types before macro expansion.
13062 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
13063 defining Darwin/PowerPC-specific '-f[no-]altivec' and
13064 '-W[no-]altivec-long-deprecated' switches.
13065 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
13066 '__vector', '__pixel' and '__bool' macros using
13067 '__attribute__((altivec(...)))' types.
13068 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
13069 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
13070 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
13071 New type nodes.
13072 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
13073 handling '-W[no-]altivec-long-deprecated'.
13074 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
13075 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
13076 altivec_expand_dst_builtin): Remove casts from integer literals.
13077 (altivec_expand_builtin): Likewise; handle expansion of new
13078 '__builtin_altivec_compiletime_error' function.
13079 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
13080 types, and make them distinct from other vector types; register
13081 '__builtin_altivec_compiletime_error' function.
13082 (print_operand): For 'P', print a full target register name instead of
13083 merely its number.
13084 (rs6000_attribute_table): Add "altivec" attribute.
13085 (rs6000_handle_altivec_attribute): New function.
13086 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
13087 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
13088 maps to).
13089 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
13090 declare.
13091 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
13092
13093 2004-02-20 James E Wilson <wilson@specifixinc.com>
13094
13095 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
13096 check.
13097 (shift_mix4left+2): Delete redundant pattern.
13098
13099 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13100
13101 * alias.c (OUTGOING_REGNO): Don't define the default.
13102 * builtins.c (OUTGOING_REGNO): Likewise.
13103 (INCOMING_REGNO): Likewise.
13104 (apply_args_register_offset): Always use OUTGOING_REGNO.
13105 * combine.c (OUTGOING_REGNO): Likewise.
13106 * sibcall.c (OUTGOING_REGNO): Likewise.
13107 * defaults.h (INCOMING_REGNO): Provide the default.
13108 (OUTGOING_REGNO): Likewise.
13109
13110 2004-02-21 Jan Hubicka <jh@suse.cz>
13111
13112 * params.def (max-peeled-insns, max-completely-peeled-insns,
13113 max-once-peeled-insns): Set to 400.
13114
13115 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13116
13117 PR c++/12007
13118 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
13119 are set for parameters before outputing debugging information.
13120
13121 2004-02-20 Falk Hueffner <falk@debian.org>
13122
13123 PR target/14201
13124 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
13125 numbers.
13126
13127 2004-02-20 Per Bothner <per@bothner.com>
13128
13129 * input.h: Don't #include line-map.h. It may cause link problems
13130 with undefined linemap_line_start when line-map.h is included but
13131 line-map.o is not linked, as currently happens with gengtype on
13132 compilers that don't support inline.
13133 * toplev.c: So we do have to explicitly #include line-map.h here.
13134
13135 2004-02-20 Richard Henderson <rth@redhat.com>
13136
13137 * doc/invoke.texi: Add -Wvariadic-macros.
13138
13139 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13140
13141 * haifa-sched.c (sched_emit_insn): Remove.
13142 * sched-int.h: Remove the corresponding prototype.
13143
13144 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13145
13146 Revert:
13147 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13148 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13149 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13150 * config/cris/cris.h: Remove a comment about
13151 DEFAULT_SHORT_ENUMS.
13152 * config/ip2k/ip2k.h: Likewise.
13153 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13154
13155 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
13156 Tom Tromey <tromey@redhat.com>
13157
13158 * doc/install.texi: Moved --disable-libgcj and
13159 --with-system-zlib documentation to new section for
13160 Java-specific options.
13161 Added explicit Cross-Compiler-Specific Options subheading.
13162 Added section for Java-specific options.
13163
13164 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
13165
13166 * doc/install.texi (Building the Ada compiler): Remove
13167 example.
13168
13169 2004-02-20 James E Wilson <wilson@specifixinc.com>
13170
13171 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
13172
13173 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13174
13175 * gcc.c (process_command): Allow translation of the copyright
13176 symbol but not the rest of the copyright message.
13177 * gcov.c (print_version): Likewise. Allow translation of the
13178 message about warranty.
13179
13180 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
13181
13182 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
13183 predicate.
13184 ("*andsi_clear"): Tweak constraints to not match postincrement.
13185 Adjust the predicate to exclude a volatile memory reference.
13186 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
13187 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
13188
13189 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
13190
13191 * move-if-change: Remove.
13192 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
13193 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
13194 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
13195 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
13196 (s-gtyp-gen, s-iov): Use the top level move-if-change.
13197 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
13198
13199 2004-02-19 James E Wilson <wilson@specifixinc.com>
13200
13201 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
13202 for operand2. Add condition that requires register_operand operand2
13203 before reload.
13204
13205 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
13206 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13207
13208 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
13209 * config/mips/mips.md: Expand comment above unaligned loads and stores.
13210
13211 2004-02-19 Richard Henderson <rth@redhat.com>
13212
13213 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
13214 * tree.c (build0, build1, build2, build3, build4): Split out from...
13215 (build): ... here. Call them.
13216 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
13217
13218 * convert.c (convert_to_integer): Remove extra build argument.
13219 * tree-inline.c (expand_call_inline): Likewise.
13220
13221 2004-02-19 Richard Henderson <rth@redhat.com>
13222
13223 * c-opts.c (warn_variadic_macros): New.
13224 (c_common_handle_option): Set it.
13225 (sanitize_cpp_opts): Copy it to cpp_opts.
13226 * c.opt (Wvariadic-macros): New.
13227 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
13228 * cppinit.c (cpp_create_reader): Initialize it.
13229 * cppmacro.c (parse_params): Check it.
13230
13231 2004-02-19 David Daney <ddaney@avtrex.com>
13232
13233 PR preprocessor/14198
13234 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
13235 builtin_assert ("machine=mips")
13236
13237 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13238
13239 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13240 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13241 * config/cris/cris.h: Remove a comment about
13242 DEFAULT_SHORT_ENUMS.
13243 * config/ip2k/ip2k.h: Likewise.
13244 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13245
13246 2004-02-19 Zack Weinberg <zack@codesourcery.com>
13247
13248 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
13249 when passing single SFmode quantities in general registers,
13250 put them in the high half.
13251
13252 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
13253
13254 * doc/md.texi (Standard Names): Document additional dependency on
13255 fix pattern.
13256
13257 * optabs.c (ftruncify): Remove.
13258 (expand_fix): Manually inline ftruncify above.
13259 (can_fix_p): Add FIXME note.
13260
13261 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
13262
13263 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
13264 spe_fixuns_truncsfsi2.
13265
13266 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
13267 fixuns_truncsfsi2.
13268
13269 2004-02-19 Steve Ellcey <sje@cup.hp.com>
13270
13271 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
13272 * testsuite/gcc.dg/20040219-1.c: New test.
13273
13274 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
13275
13276 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
13277 "*subsf3_cconly"): Subtraction is not commutative.
13278
13279 2004-02-19 Zack Weinberg <zack@codesourcery.com>
13280
13281 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
13282 (sdbout_symbol): If called before sdbout_init, queue DECL for
13283 later and return.
13284 (sdbout_init): Set sdbout_initialized true, process decls
13285 queued earlier by sdbout_symbol.
13286 (sdbout_finish): Use size_t for index variable.
13287
13288 2004-02-19 Jeff Law <law@redhat.com>
13289
13290 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
13291 for unordered comparison codes.
13292
13293 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
13294
13295 * reload1.c (reload): Correct comment.
13296 (scan_paradoxical_subregs): Remove #if 0 and old comment.
13297 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
13298 register variables are not used by reload.
13299
13300 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
13301
13302 PR target/14209
13303 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
13304 constraints to not match postincrement. Adjust the predicate to
13305 exclude a volatile memory reference.
13306
13307 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13308
13309 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
13310
13311 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13312
13313 * hooks.c (hook_void_tree_int): Remove.
13314 (hook_void_constcharptr): Likewise.
13315 (hook_int_void_0): Likewise.
13316 * hooks.h: Remove the prototypes for the above three
13317 functions.
13318 * targhooks.c (hook_bool_machine_mode_true): Remove.
13319 * targhooks.h: Remove the prototype for
13320 hook_bool_machine_mode_true.
13321
13322 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13323
13324 * emit-rtl.c (subreg_realpart_p): Remove.
13325 (reorder_insns_with_line_notes): Likewise.
13326 (end_full_sequence): Likewise.
13327 * rtl.h: Remove the prototype for the above functions.
13328
13329 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13330
13331 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
13332 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
13333 config/iq2000/iq2000.h, config/m32r/m32r.h,
13334 config/pdp11/pdp11.h, config/sparc/sparc.h,
13335 config/xtensa/xtensa.h: Remove commented-out or useless
13336 definitions of CASE_VECTOR_PC_RELATIVE.
13337
13338 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13339
13340 * loop.c (all_sets_invariant_p): Remove.
13341
13342 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
13343
13344 PR target/12916
13345 * config/sparc/sparc.h (NPARM_REGS): Delete.
13346 (BASE_RETURN_VALUE_REG): Likewise.
13347 (BASE_OUTGOING_VALUE_REG): Likewise.
13348 (BASE_PASSING_ARG_REG): Likewise.
13349 (BASE_INCOMING_ARG_REG): Likewise.
13350 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
13351 TARGET_ARCH64, not TARGET_V9.
13352 (function_arg_slotno): Dispatch based on the mode class.
13353 Handle vector modes like floating-point modes.
13354 (function_arg_record_value_1): Handle vector types like
13355 floating-point types.
13356 (function_arg_record_value_2): Likewise.
13357 Calculate regno after mode transformation.
13358 (function_arg): Handle vector modes like floating-point modes.
13359 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
13360 If ARCH64, do not recheck alignment.
13361 (function_arg_pass_by_reference): Reorder the conditions.
13362 (sparc_return_in_memory): Move after function_arg_padding.
13363 Implement calling conventions for vector modes.
13364 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
13365 (function_value): Move scope of 'regbase'.
13366 Implement calling conventions for vector modes.
13367 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
13368 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
13369 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
13370 the argument is passed by reference.
13371 (sparc_type_code): Handle vector types.
13372
13373 2004-02-19 Alan Modra <amodra@bigpond.net.au>
13374
13375 * function.c (assign_parms): When building decl_rtl for
13376 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
13377
13378 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
13379
13380 * expr.c (is_aligning_offset): Check if we are aligning the
13381 expressions's address over BIGGEST_ALIGNMENT in bytes, not
13382 in bits.
13383
13384 2004-02-18 Matt Austern <austern@apple.com>
13385
13386 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
13387 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
13388 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
13389 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
13390 spec string.
13391 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
13392
13393 2004-02-18 Zack Weinberg <zack@codesourcery.com>
13394
13395 * dwarf2out.c (loclabel_num): Move outside #ifdef
13396 DWARF2_DEBUGGING_INFO and mark with GTY(()).
13397 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
13398 Mark with GTY(()).
13399 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
13400 Allocate memory with ggc_alloc. No need to copy anything.
13401 (ia64_hpux_file_end): Update to match.
13402
13403 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13404
13405 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
13406 by default.
13407
13408 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13409
13410 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
13411 ("divmodtisi3"): Likewise.
13412 ("udivmoddi4", "udivmodtidi3"): Likewise.
13413 ("divmodsi4", "divmoddisi3"): Likewise.
13414 ("udivmodsi4", "udivmoddisi3"): Likewise.
13415 ("udivsi3", "umodsi3"): Likewise.
13416
13417 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13418
13419 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
13420 placeholder insn when chunkifying the pool.
13421
13422 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13423
13424 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
13425 generating PIC code.
13426
13427 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13428
13429 * config/h8300/h8300-protos.h: Add a prototype for
13430 h8300_expand_branch.
13431 * config/h8300/h8300.c (h8300_expand_branch): New.
13432 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
13433 bgtu, beq, bne): Call h8300_expand_branch().
13434
13435 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13436
13437 * config/h8300/h8300-protos.h: Add prototypes for
13438 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
13439 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
13440 (h8300_hard_regno_mode_ok): Likewise.
13441 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
13442 h8300_hard_regno_nregs().
13443 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
13444
13445 2004-02-18 Per Bothner <per@bothner.com>
13446
13447 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
13448 partly reverts my 2003-10-01 change, because we're back to logically
13449 including <command line> inside the main line.
13450 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
13451 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
13452 Fixes PR preprocessor/14103.
13453
13454 * cppfiles.c (_cpp_stack_include): When appropriate decrement
13455 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
13456 (cpp_push_include): Don't need to increment pfile's line field.
13457 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
13458
13459 * c-ppoutput.c (print struct): New first_time field.
13460 (init_pp_output): Set print.first_time.
13461 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
13462 which is set also for (say) <command line>. Clear print.first_time.
13463
13464 * cppfiles.c (struct _cpp_file): Comment and type for pch field
13465 does not match the code, so fix both.
13466 (should_stack_file): Inline include_pch_p function.
13467 (include_pch_p): Remove pointless function.
13468
13469 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
13470
13471 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13472
13473 * config/h8300/h8300.md (four define_peephole2's): Use
13474 h8300_regs_ok_for_stm().
13475
13476 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13477
13478 * config/h8300/h8300-protos.h: Update the prototype for
13479 expand_a_rotate().
13480 * config/h8300/h8300.c (expand_a_rotate): Remove the first
13481 argument.
13482 * config/h8300/h8300.md: Update all callers.
13483
13484 2004-02-18 Jan Hubicka <jh@suse.cz>
13485
13486 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
13487 floats.
13488 (simplify_binary_operation): Deal with logicals on floats.
13489
13490 * i386.md (SSE fabs splitters): Emit new patterns.
13491 (SSE cmov splitters): Likewise.
13492 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
13493 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
13494 subregs.
13495 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
13496 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
13497
13498 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13499
13500 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
13501 by hand.
13502 (output_a_rotate): Tweak a comment.
13503 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
13504 (*rotlhi3_1): Change to rotlhi3_1.
13505 (*rotlsi3_1): Change to rotlsi3_1.
13506
13507 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
13508
13509 PR target/13866
13510 * arm.c (load_multiple_operation): Don't insist that the source reg
13511 of a post-increment component is the same as the destination.
13512 (store_multiple_operation): Likewise.
13513
13514 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13515
13516 * config/h8300/h8300.md: Move movsf patterns into one section
13517 of the file.
13518
13519 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13520
13521 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
13522 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
13523 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
13524 config/mips/linux64.h, config/pa/pa-64.h,
13525 config/rs6000/aix51.h, config/rs6000/aix52.h,
13526 config/rs6000/spe.md, config/sparc/linux.h,
13527 config/sparc/linux64.h: Update copyright.
13528
13529 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13530
13531 * config/h8300/h8300.md: Move push patterns into one
13532 section of the file.
13533
13534 2004-02-18 Mark Mitchell <mark@codesourcery.com>
13535
13536 PR c++/11326
13537 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
13538 fntype.
13539
13540 2004-02-18 Paul Brook <paul@codesourcery.com>
13541
13542 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
13543
13544 2004-02-18 Paul Brook <paul@codesourcery.com>
13545
13546 PR debug/12934
13547 * dwarf2out.c (loc_descriptor_from_tree): Handle
13548 EXPR_WITH_FILE_LOCATION.
13549
13550 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13551
13552 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
13553 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
13554 trailing whitespace from instructions.
13555
13556 2004-02-17 Geoffrey Keating <geoffk@apple.com>
13557
13558 * configure.ac: When generating auto-build.h, pass
13559 --enable-languages to the sub-configure.
13560 Put quotes around ${program_transform_name} when generating
13561 name of as, ld, nm, objdump.
13562 * configure: Regenerate.
13563
13564 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
13565
13566 * Makefile.in (s-check, s-config, s-conditions, s-flags)
13567 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
13568 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
13569 (s-preds, s-iov): Do not depend on move-if-change.
13570
13571 2004-02-17 James E Wilson <wilson@specifixinc.com>
13572
13573 * caller-save.c (insert_restore): Pass mem through copy_rtx.
13574 (insert_save): Likewise.
13575
13576 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13577
13578 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
13579 warning.
13580
13581 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13582
13583 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
13584 *one_cmplsi2_h8300.
13585 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
13586
13587 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13588
13589 * config/h8300/h8300-protos.h: Update the prototype of
13590 fix_bit_operand().
13591 * config/h8300/h8300.c (fix_bit_operand): Remove the second
13592 argument "what".
13593 * config/h8300/h8300.md: Update all callers.
13594
13595 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13596
13597 * config/h8300/h8300.c (fix_bit_operand): Change the name of
13598 the last argument to "code" from "type".
13599
13600 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13601
13602 * config/h8300/h8300.c: Remove an extern declaration of
13603 rtx_equal_function_value_matters.
13604
13605 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13606
13607 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
13608 by hand.
13609 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
13610 (*iorqi3_1): Change to iorqi3_1.
13611 (*xorqi3_1): Change to xorqi3_1.
13612
13613 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13614
13615 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
13616 typos.
13617
13618 2004-02-17 Jan Hubicka <jh@suse.cz>
13619
13620 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
13621
13622 2004-02-18 Alan Modra <amodra@bigpond.net.au>
13623
13624 PR optimization/14119
13625 * combine.c (try_combine): When attemting to fix unrecognized insns,
13626 don't delete SETs marked with REG_EH_REGION notes.
13627
13628 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
13629
13630 * combine.c (simplify_if_then_else): Do not replace
13631 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
13632 modes differ.
13633
13634 2004-02017 Steven Bosscher <stevenb@suse.de>
13635
13636 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
13637 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
13638 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
13639 * ada/utils.c: Likewise.
13640 * cp/decl.c: Likewise.
13641 * f/com.c: Likewise.
13642 * java/class.c: Likewise.
13643
13644 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13645
13646 * config/h8300/h8300.md: Fix comment typos.
13647
13648 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13649
13650 * config/mips/t-iris6gld: Renamed to ...
13651 * config/mips/t-irix-gld: ... this.
13652 * config.gcc (mips-sgi-irix6*): Reflect this
13653 (mips-sgi-irix5*): Use it with GNU ld.
13654
13655 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
13656 to ...
13657 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
13658 * config/mips/t-irix-gld: Reflect this.
13659 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13660
13661 * config/mips/iris5gld.h: New file.
13662 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
13663 Only use collect2 without gas.
13664
13665 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
13666 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13667 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
13668 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13669
13670 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
13671 * config/mips/iris5.h: ... here.
13672
13673 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
13674 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13675 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
13676
13677 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
13678 using irix_startfile_spec, irix_endfile_spec.
13679
13680 2004-02-16 Gunther Nikl <gni@gecko.de>
13681
13682 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
13683
13684 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13685
13686 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
13687 insns by hand.
13688
13689 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13690
13691 * cfghooks.c (split_edge): Speed up updating of dominators.
13692
13693 2004-02-17 Mark Mitchell <mark@codesourcery.com>
13694
13695 PR c++/11326
13696 * c-common.c (flag_abi_version): Remove.
13697 * c-common.h (flag_abi_version): Likewise.
13698 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
13699 * c.opt (fabi-version): Remove.
13700 * calls.c (expand_call): Always pass a function type to
13701 struct_value_rtx. Use convert_memory_address.
13702 * common.opt (fabi-version): Add it.
13703 * flags.h (flag_abi_version): Likewise.
13704 (abi_version_at_least): New macro.
13705 * opts.c (common_handle_option): Add OPT_fabi_version.
13706 * toplev.c (flag_abi_version): Define it.
13707 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
13708 New function.
13709 (ia64_output_mi_thunk): Use it.
13710 (ia64_struct_value_rtx): Likewise.
13711
13712 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13713
13714 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
13715 Don't generate insns by hand.
13716
13717 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
13718
13719 PR c++/14178
13720 * doc/invoke.texi (fabi-version): The default is 2 now.
13721
13722 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13723
13724 * loop-iv.c: New file.
13725 * Makefile.in (loop-iv.o): New.
13726 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
13727 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
13728 num_loop_branches): New functions.
13729 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
13730 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
13731 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
13732 get_simple_loop_desc, free_simple_loop_desc): Declare.
13733 (simple_loop_desc): New inline function.
13734 (struct rtx_iv, struct niter_desc): New.
13735 * cfgloopmanip.c (loopify): Specify semantics more precisely.
13736 * expr.c (force_operand): Handle subregs of expressions created by
13737 loop unroller.
13738 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
13739 parts of the initialization to toplev.c
13740 * loop-unroll.c (loop_exit_at_end_p): New.
13741 (unroll_and_peel_loops): Call iv_analysis_done.
13742 (decide_peel_once_rolling, decide_peel_completely,
13743 decide_unroll_stupid, decide_unroll_constant_iterations,
13744 decide_unroll_runtime_iterations, decide_peel_simple,
13745 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
13746 unroll_loop_runtime_iterations): Use new simple loop analysis.
13747 * loop-unswitch.c (compare_and_jump_seq): New.
13748 (may_unswitch_on_p): Renamed to ...
13749 (may_unswitch_on): Use new iv analysis.
13750 (reversed_condition): Export.
13751 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
13752 * predict.c (estimate_probability): Use new simple loop analysis.
13753 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
13754 canon_condition, simplify_using_condition): Declare.
13755 * stor-layout.c (get_mode_bounds): New.
13756 * toplev.c (rest_of_handle_loop2): Some parts of
13757 initialization/finalization moved here from loop-init.c.
13758
13759 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13760
13761 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
13762 pointer.
13763 (CALL_USED_REGISTERS): Likewise.
13764 (REG_ALLOC_ORDER): Likewise.
13765 (REG_CLASS) <GENERAL_REGS>: Likewise.
13766
13767 2004-02-16 Geoffrey Keating <geoffk@apple.com>
13768
13769 * doc/md.texi (Insn Canonicalizations): Document left-chaining
13770 in associative operators.
13771 * rtlanal.c (commutative_operand_precedence): Create some new
13772 variables. Prefer a commutative operand on the left, then
13773 binary expressions, then NEG and NOT.
13774
13775 2004-02-16 Matthias Klose <doko@debian.org>
13776
13777 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
13778 in terms of SHLIB_SOVERSION.
13779 * config/m68k/t-slibgcc-elf-ver: New file.
13780 * config/pa/t-slibgcc-elf-ver: New file.
13781 * config.gcc (m68k-linux, parisc-linux): Use them when not
13782 sjlj exceptions are not configured.
13783
13784 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
13785
13786 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
13787
13788 2004-02-16 Zack Weinberg <zack@codesourcery.com>
13789
13790 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
13791
13792 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
13793
13794 * doc/sourcebuild.texi: Mention backends.html.
13795
13796 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
13797
13798 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
13799 line-map.c, line-map.h, var-tracking.c: Fix comment
13800 formatting.
13801
13802 2004-02-16 Richard Henderson <rth@redhat.com>
13803
13804 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
13805
13806 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
13807
13808 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13809
13810 * config/h8300/h8300.md: Remove unnecessary parallels from
13811 all define_insn and define_split patterns.
13812
13813 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13814
13815 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
13816 "clobber").
13817
13818 2004-02-15 Bernardo Innocenti <bernie@develer.com>
13819
13820 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
13821 '%#'.
13822
13823 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13824
13825 * config/ia64/ia64.c, config/mips/mips.c,
13826 config/mmix/mmix-modes.def: Fix comment typos.
13827
13828 2004-02-15 Roger Sayle <roger@eyesopen.com>
13829
13830 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
13831 (get_directive_line): Remove unused function prototype.
13832
13833 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
13834
13835 * tree-inline.c (copy_body_r): Do not replace ret_label.
13836
13837 2004-02-14 Jan Hubicka <jh@suse.cz>
13838
13839 * i386.c (x86_four_jump_limit): New variable.
13840 (k8_avoid_jump_misspredicts): Rename to ...
13841 (ix86_avoid_jump_misspredicts): .. this one.
13842 (ix86_pad_returns): Break out from ...
13843 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
13844 to.
13845 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
13846
13847 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
13848
13849 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
13850 PARALLEL is NULL.
13851
13852 2004-02-14 Per Bothner <per@bothner.com>
13853
13854 * fix-header.c (line_table): Move local variable in main to global.
13855 * scan.h (line_table): Use it.
13856 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
13857 line (recently renamed to src_loc) before calling recognized_function.
13858
13859 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
13860
13861 * Makefile.in: Fix comment typos.
13862
13863 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
13864
13865 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
13866 for start_value when it is directly moved into reg, and factorize
13867 the retrieval of GET_MODE (reg).
13868
13869 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
13870
13871 * config/mips/mips-protos.h (mips_load_got_page): Delete.
13872 (mips_load_got_global): Delete.
13873 (mips_gotoff_page): Declare.
13874 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
13875 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
13876 UNSPEC_LOAD_GOT pattern rather than a MEM.
13877 (*load_got[sd]i): New patterns.
13878 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
13879 (mips_load_got_page, mips_load_got_global): Delete.
13880 (mips_gotoff_page): New function.
13881 (override_options): Don't initialize mips_got_alias_set.
13882
13883 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
13884
13885 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
13886 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
13887 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
13888 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
13889 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
13890 * config/mips/mips.c: Fix some overly-long lines.
13891 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
13892 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
13893
13894 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13895
13896 * configure.ac: Search for as, ld below libexec/gcc.
13897 * configure: Regenerate.
13898
13899 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13900
13901 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
13902 __builtin_arm_setwcx ().
13903 * config/arm/arm.c (arm_expand_builtin): Generate operands
13904 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
13905
13906 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13907
13908 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
13909 and "wmuluh" to "wmulsm" and "wmulum", respectively.
13910 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
13911 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
13912 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
13913 (_mm_mulhi_pu16): Likewise.
13914
13915 2004-02-13 Zack Weinberg <zack@codesourcery.com>
13916
13917 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
13918 DECL_NAME != 0 before dereferencing.
13919
13920 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
13921
13922 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
13923 (s390_output_addr_const_extra): Declare.
13924 (s390_output_pool_entry): Remove FILE * argument.
13925 * config/s390/s390.c (s390_output_symbolic_const): Remove.
13926 (s390_output_addr_const_extra): New function.
13927 (print_operand_address): Call output_addr_const instead of
13928 s390_output_symbolic_const.
13929 (print_operand): Likewise.
13930 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
13931 Remove FILE * argument.
13932 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
13933 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
13934 call.
13935
13936 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13937
13938 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
13939 (struct edge, struct vertex, struct graph): New.
13940 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
13941 free_graph): New functions.
13942
13943 2004-02-12 Chris Demetriou <cgd@broadcom.com>
13944
13945 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13946 Use ".set macro" to avoid warnings about multi-instruction
13947 macros, since they're intentional.
13948
13949 2004-02-12 Geoffrey Keating <geoffk@apple.com>
13950
13951 * config/darwin.h: Add include guards. Remove old, now incorrect,
13952 comment about STANDARD_EXEC_PREFIX.
13953
13954 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
13955 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
13956 for installing .1 manpages. Add rules for installing cpp
13957 and gcov manpages under their installed names.
13958
13959 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
13960
13961 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
13962 host, but try LD_FOR_TARGET first.
13963 * configure: Rebuilt.
13964
13965 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13966
13967 * dbxout.c: Move declaration of dbxout_type_decl outside
13968 #ifdef DBX_DEBUGGING_INFO.
13969 * c-parse.in: Don't give the asmdef production a type.
13970
13971 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13972
13973 * debug.h (struct gcc_debug_hooks): Add type_decl field.
13974 (debug_nothing_tree_int): Prototype.
13975 (dwarf_debug_hooks): Delete, unused.
13976 * debug.c (do_nothing_debug_hooks): Update.
13977 (debug_nothing_tree_int): New function.
13978 * langhooks.h (struct lang_hooks_for_decls):
13979 Remove builtin_type_decls field.
13980 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
13981 (LANG_HOOKS_DECLS): Update.
13982 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
13983 Use debug_hooks->type_decl.
13984 * dbxout.c (preinit_symbols): New static.
13985 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13986 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
13987 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
13988 for symbols to output.
13989 (dbxout_type_decl): New function.
13990 (dbxout_symbol): If called before dbxout_init has run, queue
13991 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
13992 to TYPE_DECLs before emitting them.
13993 * xcoffout.c (assign_type_number): Delete.
13994 (xcoff_type_numbers): New static table.
13995 (xcoff_assign_fundamental_type_number): New function.
13996 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
13997 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
13998 * sdbout.c: Include varray.h.
13999 (deferred_global_decls): New static.
14000 (sdb_debug_hooks): Update.
14001 (sdbout_global_decl): If we can't emit something right now,
14002 remember it in deferred_global_decls.
14003 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
14004 (sdbout_init): Initialize deferred_global_decls.
14005 * Makefile.in: Update dependencies of sdbout.o.
14006 * dwarf2out.c (dwarf2out_type_decl): New function.
14007 (dwarf2_debug_hooks): Update.
14008 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
14009 * c-decl.c (getdecls): Just return 0.
14010 (check_for_loop_decls): Don't use getdecls.
14011 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
14012 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
14013
14014 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
14015
14016 * config/s390/s390.c (s390_sched_reorder2): Remove.
14017 (TARGET_SCHED_REORDER2): Do not redefine.
14018
14019 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14020
14021 * c-parse.in (maybe_type_qual): Delete.
14022 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
14023 (asm_argument): New grammar rules.
14024 (extdef_1): Use asmdef.
14025 (maybeasm): Move down with other asm rules; use simple_asm_expr.
14026 (xexpr): Move up with other expression rules.
14027 (stmt): Use asm_stmt.
14028
14029 * c-typeck.c (build_asm_expr): New function - body mostly
14030 pulled from build_asm_stmt.
14031 (build_asm_stmt): Just handle tacking on the volatile qualifier.
14032 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
14033
14034 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
14035
14036 PR bootstrap/13617
14037 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
14038 (mips_declare_object): Make variadic.
14039 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
14040 mips_output_aligned_decl_common.
14041 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
14042 (mips_declare_object): Make variadic.
14043
14044 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14045
14046 * function.c (update_epilogue_consts): Teach about binary operations.
14047
14048 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
14049 previous MEM_VOLATILE in REF.
14050 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
14051 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
14052
14053 2004-02-12 Gunther Nikl <gni@gecko.de>
14054
14055 * config.gcc: Restore support for m68k-openbsd.
14056
14057 2004-02-12 Jan Hubicka <jh@suse.cz>
14058
14059 * tree-optimize.c (tree_rest_of_compilation): Do not release
14060 DECL_ARGUMENTS.
14061
14062 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
14063
14064 * doc/install.texi: Fix the spelling of "explicitly".
14065
14066 2004-02-11 Eric Christopher <echristo@redhat.com>
14067
14068 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
14069 duplicate argument structure of cpp_interpret_string.
14070 * cpphash.h: Move prototype...
14071 * cpplib.h: Here.
14072 * cpplib.c: Fix calls to match new function signature.
14073
14074 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
14075
14076 PR c/456
14077 * cppexp.c (num_binary_op): Don't allow comma operators in #if
14078 constant expressions at all outside C99 mode if pedantic.
14079
14080 2004-02-11 Uros Bizjak <uros@kss-loka.si>
14081
14082 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
14083 (log10_optab, log2_optab): Define corresponding macros.
14084 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
14085 * genopinit.c (optabs): Implement log10_optab and log2_optab
14086 using log10?f2 and log2?f2 patterns.
14087 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
14088 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
14089 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
14090 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14091
14092 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
14093 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
14094 log2, log2f and log2l built-ins as inline x87 intrinsics.
14095
14096 2004-02-11 Richard Henderson <rth@redhat.com>
14097
14098 PR target/1532
14099 * flow.c (insn_dead_p): A clobber of a dead hard register is a
14100 dead insn after reload.
14101
14102 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
14103
14104 * tree.h (frame_base_decl): Add GTY marker.
14105 * var-tracking.c (frame_base_decl): Likewise.
14106
14107 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
14108
14109 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
14110 incorrect, hunk.
14111 (add_location_or_const_value_attribute): Use text_section_label,
14112 not TEXT_SECTION_NAME.
14113
14114 2004-02-11 Per Bothner <per@bothner.com>
14115
14116 Represent column numbers using line-map's source_location.
14117 The "next available source_location" is now managed internally by
14118 line-maps.c rather than by clients.
14119 * line-map.h (struct line_map): New field column_bits.
14120 <from_line>: Rename field to start_location.
14121 (struct line_maps): New fields highest_location and max_column_hint.
14122 (linemap_check_files_exited): New declaration.
14123 (linemap_line_start): New declaration.
14124 (linemap_add): Remove from_line parameter; use highest_location field.
14125 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
14126 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
14127 (CURRENT_LINE_MAP): Remove macro.
14128 (linemap_position_for_column): New inline function.
14129 * line-map.c (linemap_init): Clear new fields.
14130 (linemap_check_files_exited): New function, extracted from ...
14131 (linemap_free): Use linemap_check_files_exited.
14132 (linemap_add): Remove from_line parameter. Various updates.
14133 (linemap_line_start): New function.
14134 (linemap_lookeup): Update for new field names.
14135 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
14136 linemap_position_for_column may unpredictably change the current map,
14137 it is cleaner and simpler for us to not cache it in cpp_reader.
14138 (struct cpp_buffer): New sysp field.
14139 Changed warned_cplusplus_comments and from_stage3 to bitfields.
14140 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
14141 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
14142 current map using linemap_lookup.
14143 (do_linemarker): Also set buffer's sysp field.
14144 (destringize_and_run): No longer need to decrement current line.
14145 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
14146 (search_path_head, open_file_failed): Use buffer's sysp.
14147 (cpp_make_system_header): Get current map using linemap_lookup.
14148 Also set buffer's sysp flag.
14149 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
14150 * cpphash.h (CPP_INCREMENT_LINE): New macro.
14151 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
14152 (struct cpp_reader): ... and adding saved_line_base field.
14153 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
14154 Update accordingly. Don't adjust line.
14155 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
14156 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
14157 (cpp_in_system_header): ... new inline function, using buffer's sysp.
14158 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
14159 * cpplex.c (_cpp_lex_direct): Likewise.
14160 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
14161 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
14162 * cpplib.h (struct cpp_token): Rename line field to src_loc.
14163 Remove col field as it is now subsumed by src_loc.
14164 * cpperror.c: Update various field, parameter, and macro names.
14165 (print_location): If col==0, try SOURCE_COLUMN of line.
14166 (cpp_error): Use cur_token's src_loc field, rather than line+col.
14167 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
14168 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
14169 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
14170 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
14171 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
14172 (_cpp_lex_direct): Use linemap_position_for_column.
14173 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
14174 parameter. Instead get it from the line_table global. Adjust callers.
14175 (print): Remove map field. Replace line field to src_line.
14176 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
14177 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
14178 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
14179 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
14180 * cpptrad.c (copy_comment): Rename variable.
14181 * c-lex.c (map): Remove static variable, for same reason we removed
14182 cpp_reader's map field.
14183 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
14184 to call linemap_lookup.
14185 (cb_line_change): Token's line field replaced by src_loc.
14186 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
14187 Don't save new_map.
14188
14189 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
14190 source_location.
14191
14192 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
14193
14194 * config/rs6000/altivec.md (*movv4si_internal): At least one
14195 operand must be register_operand.
14196 (*movv8hi_internal1): Likewise.
14197 (*movv16qi_internal1): Likewise.
14198 (*movv4sf_internal1): Likewise.
14199
14200 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
14201
14202 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
14203 operand.
14204 (movv4hi_internal): Same.
14205 (movv2sf_internal): Same.
14206 (movv1di_internal): Same.
14207
14208 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
14209
14210 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
14211 TARGET_OLDABI consistently.
14212 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
14213 mips_va_arg,override_options,compute_frame_size,
14214 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
14215 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
14216 and TARGET_OLDABI consistently.
14217 * config/mips/mips.md (exception_receiver): Likewise.
14218 * config/mips/linux64.h: Likewise.
14219
14220 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
14221
14222 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
14223 Set AltiVec ABI and vrsave as default for ppc64 linux.
14224 (init_cumulative_args): Post error, if try to return
14225 value in AltiVec register without enable AltiVec.
14226 (function_arg_advance): Ditto for passing arguments.
14227
14228 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
14229
14230 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
14231 a label before updating its usage count.
14232
14233 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
14234
14235 * doc/install.texi: Remove extra cd.
14236
14237 2004-02-10 Ziemowit Laski <zlaski@apple.com>
14238
14239 * c-common.c (vector_size_helper): Remove; call
14240 reconstruct_complex_type() instead.
14241 * tree.c (reconstruct_complex_type): New function
14242 (formerly vector_size_helper() in c-common.c).
14243 (make_vector): Make externally visible.
14244 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
14245
14246 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
14247
14248 * config/h8300/h8300-protos.h: Add a prototype for
14249 h8300_regs_ok_for_stm.
14250 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
14251 * config/h8300/h8300.md (stm_h8300s_2_advanced,
14252 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
14253 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
14254 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
14255 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
14256 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
14257 ldm_h8300s_4_normal, ldm_h8300s_4): Use
14258 h8300_regs_ok_for_stm().
14259
14260 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14261
14262 PR c/14088
14263 * real.c (real_from_string): Look for 'X' as well as 'x' in
14264 hexfloat strings.
14265
14266 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
14267
14268 * config/h8300/h8300.md: Remove an incorrect comment about
14269 peephole2. Add comments.
14270
14271 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
14272
14273 PR/14058
14274 * emit-rtl.c (set_decl_incoming_rtl): New.
14275 * tree.h (set_decl_incoming_rtl): New.
14276 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
14277 DECL_INCOMING_RTL.
14278 * ada/misc.c (adjust_decl_rtl): Likewise.
14279
14280 2004-02-10 Per Bothner <per@bothner.com>
14281
14282 * c-opts.c (c_common_post_options): Don't emit working directory
14283 in cpp output if -P was specified.
14284
14285 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
14286
14287 PR c/14092
14288 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
14289 negate_expr back to the original type.
14290
14291 2004-02-10 Alan Modra <amodra@bigpond.net.au>
14292
14293 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
14294 bump retaddr here.
14295
14296 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
14297
14298 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
14299 gen_lowpart_SUBREG): Move under the file in which they
14300 are actually declared.
14301
14302 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
14303
14304 * doc/sourcebuild.texi: Add libada documentation.
14305
14306 * doc/install.texi: Update documentation on Ada build, now
14307 that the GNAT lib and tools are built automatically.
14308
14309 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
14310
14311 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
14312 && TARGET_IRIX.
14313
14314 2004-02-09 Ziemowit Laski <zlaski@apple.com>
14315
14316 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
14317 boundaries outside build_component_ref() call (a macro in ObjC++).
14318
14319 2004-02-09 Bob Wilson <bob.wilson@acm.org>
14320
14321 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
14322 (init_cumulative_args): Likewise.
14323 (a7_overlap_mentioned_p): Delete prototype.
14324 * config/xtensa/xtensa.c (struct machine_function): Replace
14325 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
14326 Add set_frame_ptr_insn field.
14327 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
14328 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
14329 if the operand is an argument in a7. If so, copy a7 to a new pseudo
14330 at the function entry and replace the operand with the pseudo.
14331 (init_cumulative_args): Remove unused arguments. Add new "incoming"
14332 argument and record this flag in CUMULATIVE_ARGS.
14333 (function_arg): Remove result_mode and special-case code to handle
14334 arguments in a7. Instead, set need_a7_copy flag when there is an
14335 incoming argument in a7.
14336 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
14337 and use the value recorded in cfun->machine->set_frame_ptr_insn.
14338 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
14339 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
14340 special-case code.
14341 (a7_overlap_mentioned_p): Delete.
14342 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
14343 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
14344 arguments to init_cumulative_args and pass "incoming" flag instead.
14345 (BLOCK_REG_PADDING): Delete.
14346 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
14347 checks for reload_in_progress and reload_completed. Update calls to
14348 xtensa_copy_incoming_a7.
14349 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
14350 to call xtensa_copy_incoming_a7.
14351
14352 2004-02-09 DJ Delorie <dj@redhat.com>
14353
14354 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
14355 longer modify standard_exec_prefix, standard_bindir_prefix, or
14356 standard_startfile_prefix.
14357
14358 2004-02-09 James E Wilson <wilson@specifixinc.com>
14359
14360 PR c++/11295
14361 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
14362 to expand_expr_real call, and pass in alt_rtl as last argument.
14363
14364 PR libstdc++/5625
14365 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
14366 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
14367 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
14368 * except.c (expand_builtin_extend_pointer): New.
14369 * except.h (expand_builtin_extend_pointer): Declare.
14370
14371 2004-02-09 David Edelsohn <edelsohn@gnu.org>
14372
14373 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
14374 unaligned loads and stores.
14375
14376 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14377
14378 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
14379 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
14380
14381 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
14382 * config/mips/iris5.h: ... here.
14383 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
14384
14385 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
14386 * config/mips/iris5.h: ... here.
14387
14388 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14389
14390 * configure.ac: Remove default executable files before AC_PROG_CC.
14391 * configure: Regenerate.
14392
14393 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
14394
14395 PR target/13721
14396 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
14397 print a operand other than a register.
14398
14399 2004-02-09 Roger Sayle <roger@eyesopen.com>
14400
14401 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
14402 tree code rather than call fold_convert, which doesn't specify a
14403 default floating point to integer conversion.
14404
14405 2004-02-08 Bernardo Innocenti <bernie@develer.com>
14406
14407 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
14408 code to support SGS assembler. Reformat adjacent code where possible.
14409 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
14410 definition.
14411 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
14412 for '%#'.
14413 * config/m68k/linux.h, config/m68k/m68k.c,
14414 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
14415 macros and asm_printf() format strings.
14416 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
14417 * config/m68k/linux.h: Update copyright.
14418 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
14419
14420 2004-02-08 Andreas Schwab <schwab@suse.de>
14421 Bernardo Innocenti <bernie@develer.com>
14422
14423 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
14424 REGISTER_PREFIX.
14425 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
14426 frame pointer register, overridable by OS targets.
14427 * (M68K_REGNAME): Macro to obtain register name for asm output,
14428 eventually replacing %a6 with M68K_FP_REG_NAME.
14429 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
14430 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
14431 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
14432 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
14433 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
14434
14435 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14436
14437 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
14438 hook_rtx_tree_int_null.
14439 * targhooks.c (default_struct_value_rtx): Remove.
14440 * targhooks.h: Remove the prototype for
14441 default_struct_value_rtx.
14442 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
14443 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
14444 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
14445 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
14446 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
14447 config/rs6000/rs6000.c, config/s390/s390.c,
14448 config/stormy16/stormy16.c, config/v850/v850.c,
14449 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
14450 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
14451
14452 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
14453
14454 * README.Portability: Change "ISO C89" to "ISO C90".
14455 * c-parse.in (primary, initelt): Likewise.
14456
14457 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
14458
14459 * real.c (encode_ibm_extended): Normalize the input value before
14460 converting it to a double. Handle the case where a normal value
14461 rounds to infinity.
14462
14463 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14464
14465 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
14466 warning.
14467 * cse.c (preferrable): Change to preferable. Update all of its
14468 callers.
14469 * genautomata.c (ainsn): Change
14470 first_ainsn_with_given_equialence_num to
14471 first_ainsn_with_given_equivalence_num. Update all of its
14472 references.
14473
14474 2004-02-08 Jan Hubicka <jh@suse.cz>
14475
14476 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
14477
14478 2004-02-07 David Edelsohn <edelsohn@gnu.org>
14479
14480 * function.c (assign_parms): Fix formatting.
14481
14482 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14483
14484 * default.h (PROMOTE_PROTOTYPES): Remove.
14485 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
14486 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
14487 EXPAND_BUILTIN_SAVEREGS): Poison.
14488 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
14489 hook_bool_tree_false.
14490 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14491 * target.h: Replace SETUP_INCOMING_VARARGS with
14492 targetm.calls.setup_incoming_varargs().
14493 * targhooks.c (default_promote_function_return): Remove.
14494 (default_promote_prototypes): Likewise.
14495 (default_struct_value_rtx): Always abort().
14496 (default_expand_builtin_saveregs): Always print an error
14497 message.
14498 (default_setup_incoming_varargs): Do nothing.
14499 (default_pretend_outgoing_varargs_named): Don't depend on
14500 SETUP_INCOMING_VARARGS.
14501 * targhooks.h: Remove the prototype for
14502 default_promote_function_return and
14503 default_promote_prototypes.
14504
14505 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14506
14507 * system.h (SHARED_SECTION_ASM_OP): Poison.
14508 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
14509 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
14510
14511 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14512
14513 Bug 13856
14514 * c-decl.c (diagnose_mismatched_decls): Only give special
14515 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
14516 is also true.
14517 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
14518 DECL_FUNCTION_CODE when defining a built-in function.
14519 Don't update DECL_ESTIMATED_INSNS.
14520 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
14521 FUNCTION_DECLs.
14522 * tree.h: Delete DECL_ESTIMATED_INSNS.
14523 * tree-inline.c (struct inline_data): Delete inlined_insns field.
14524 (expand_call_inline, optimize_inline_calls): Don't update
14525 DECL_ESTIMATED_INSNS nor inlined_insns.
14526 * cgraphunit.c (cgraph_analyze_function): Don't update
14527 DECL_ESTIMATED_INSNS.
14528
14529 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14530
14531 * c-common.c (shadow_warning): Delete.
14532 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
14533 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
14534 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
14535 * c-parse.in (free_parser_stacks): Delete.
14536
14537 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
14538
14539 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
14540 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
14541 Use the top level mkinstalldirs, not the one in the gcc subdir.
14542 * mkinstalldirs: Remove (from the gcc subdir).
14543
14544 2004-02-07 Roger Sayle <roger@eyesopen.com>
14545
14546 PR middle-end/13696
14547 * fold-const.c (fold_convert): New function to provide type
14548 conversion to the middle-end without using convert.
14549 (negate_expr, associate_trees, size_diffop, omit_one_operand,
14550 operand_equal_for_comparison_p, pedantic_omit_one_operand,
14551 invert_truthvalue, optimize_bit_field_compare, range_binop,
14552 decode_field_reference, make_range, build_range_check, unextend,
14553 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
14554 fold_binary_op_with_conditional_arg, fold_inf_compare,
14555 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
14556 convert with calls to fold_convert.
14557
14558 2004-02-07 Jan Hubicka <jh@suse.cz>
14559
14560 * genrecog.c (find_operand): add extra argument stop.
14561 (validate_pattern): Verify that mach_dup is duplicating operand
14562 defined lexically earlier.
14563
14564 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14565
14566 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
14567 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14568 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
14569 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14570 config/ia64/ia64.h, config/ip2k/ip2k.h,
14571 config/iq2000/iq2000.h, config/mips/iris5.h,
14572 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
14573 config/rs6000/aix51.h, config/rs6000/aix52.h,
14574 config/rs6000/darwin.h, config/rs6000/rs6000.h,
14575 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
14576 config/sparc/linux.h, config/sparc/linux64.h,
14577 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
14578 config/xtensa/xtensa.h: Remove the definitions of
14579 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
14580 MAX_WCHAR_TYPE_SIZE.
14581 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14582 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
14583
14584 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
14585
14586 PR bootstrap/13990
14587 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
14588 gen_rtx_NE.
14589
14590 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
14591
14592 * var-tracking.c (vt_add_function_parameters): Surround checkings by
14593 #ifdef ENABLE_CHECKING and #endif.
14594
14595 2004-02-07 Roger Sayle <roger@eyesopen.com>
14596
14597 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
14598 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
14599 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
14600 integer types and floating point with unsafe_math_optimizations.
14601 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
14602 Optimize A - B as A + (-B), if B is easily negated.
14603
14604 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14605
14606 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
14607 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
14608 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
14609 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
14610 Update copyright.
14611
14612 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14613
14614 * c-ppoutput.c, var-tracking.c: Fix comment typos.
14615
14616 2004-02-06 James E Wilson <wilson@specifixinc.com>
14617
14618 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
14619 glibc 2.3 or better.
14620
14621 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14622
14623 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
14624 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
14625
14626 2004-02-07 Alan Modra <amodra@bigpond.net.au>
14627
14628 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
14629 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
14630 (SHLIB_MKMAP_OPTS): Delete.
14631 (TARGET_LIBGCC2_CFLAGS): Add -specs.
14632 (bispecs): Add rule.
14633 * config/rs6000/libgcc-ppc64.ver: New file.
14634 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
14635 (__floatdidf, __floatdisf): Optimize multiply.
14636 (__fixunstfdi): New function.
14637 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
14638 real and imag parts larger than one register.
14639 (function_arg): Correct type of reg used when fp arg split partially
14640 to stack.
14641 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
14642 and __MACH__ or __powerpc64__.
14643
14644 2004-02-06 Roger Sayle <roger@eyesopen.com>
14645 Ulrich Weigand <uweigand@de.ibm.com>
14646
14647 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
14648 of gen_highpart or gen_lowpart when the floating point format is
14649 wider than the result mode.
14650
14651 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
14652
14653 * dwarf2out.c (loclabel_num): Move into #ifdef
14654 DWARF2_DEBUGGING_INFO.
14655
14656 2004-02-06 Ziemowit Laski <zlaski@apple.com>
14657
14658 * objc/objc-act.c (build_super_template) the 'class' field of
14659 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
14660 (get_super_receiver): Likewise.
14661
14662 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14663
14664 * reload1.c (check_eliminable_occurrences): Optimize the reset
14665 of can_eliminate.
14666 (eliminate_regs_in_insn): Likewise.
14667
14668 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14669 Josef Zlomek <zlomekj@suse.cz>
14670
14671 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
14672 at the beginning of function, call dwarf2out_var_location for
14673 NOTE_INSN_VAR_LOCATION note.
14674 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
14675 decl_loc_table): New.
14676 (lookup_decl_loc): New function.
14677 (add_var_loc_to_decl): New function.
14678 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
14679 only if can_use_fbreg.
14680 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
14681 functions.
14682 (loc_descriptor): Likewise. Process VAR_LOCATION.
14683 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
14684 (loc_descriptor_from_tree): Call mem_loc_descriptor with
14685 can_use_fbreg == true.
14686 (add_location_or_const_value_attribute): Added parameter enum
14687 dwarf_attribute attr, generate attribute ATTR. Create the location list.
14688 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
14689 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
14690 with attr == DW_AT_location.
14691 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
14692 if frame_base_decl is defined and has a location list.
14693 (gen_variable_die): Call add_location_or_const_value_attribute with
14694 attr == DW_AT_location.
14695 (dwarf2out_var_location): New function.
14696 (dwarf2out_begin_function): New function.
14697 (dwarf2out_init): Create decl_loc_table.
14698
14699 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14700
14701 * loop.c (force_movables): Transitively increase the priorities of
14702 all insns forces by an insn, not just the first one.
14703
14704 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
14705 Daniel Berlin <dberlin@dberlin.org>
14706
14707 Josef Zlomek <zlomekj@suse.cz>
14708 * Makefile.in (var-tracking.o): New.
14709 * common.opt (fvar-tracking): New.
14710 * flags.h (flag_var_tracking): New.
14711 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
14712 * opts.c (common_handle_option): Add OPT_fvar_tracking.
14713 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
14714 * rtl.c (note_insn_name): Likewise.
14715 * rtl.def (VAR_LOCATION): New.
14716 * rtl.h (NOTE_VAR_LOCATION): New.
14717 (NOTE_VAR_LOCATION_DECL): New.
14718 (NOTE_VAR_LOCATION_LOC): New.
14719 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
14720 (variable_tracking_main): New exported function.
14721 * timevar.def (TV_VAR_TRACKING): New.
14722 * toplev.c (enum dump_file_index): Added DFI_vartrack.
14723 (dump_file): "vartrack" was added (-dV).
14724 (flag_var_tracking): New.
14725 (f_options): "var-tracking" was added.
14726 (rest_of_handle_variable_tracking): New function.
14727 (rest_of_compilation): Run variable tracking.
14728 (process_options): If user has not specified flag_var_tracking set it
14729 according to optimize, debug_info_level and debug_hooks.
14730 * tree.h (frame_base_decl): New.
14731 * var-tracking.c: New file.
14732 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
14733 (ia64_override_options): Set flags to run variable tracking in machine
14734 dependent reorg instead of toplev.c.
14735 (ia64_reorg): Run variable tracking if wanted.
14736 * doc/invoke.texi: Mention variable tracking in -dV,
14737 add and -fvar-tracking.
14738 * doc/passes.texi: Added variable tracking pass.
14739
14740 Daniel Berlin <dberlin@dberlin.org>
14741 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
14742 * dbxout.c (dbx_debug_hooks): Likewise.
14743 (xcoff_debug): Likewise.
14744 * debug.c (do_nothing_debug_hooks): Likewise.
14745 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14746 * dwarfout.c (dwarf_debug_hooks): Likewise.
14747 * sdbout.c (sdb_debug_hooks): Likewise.
14748 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14749 * final.c (final_scan_insn): Call var_location debug hook for each
14750 NOTE_INSN_VAR_LOCATION.
14751
14752 2004-02-06 Jan Hubicka <jh@suse.cz>
14753
14754 * flow.c (update_life_info): Allocate reg_deaths when called from
14755 scheudler.
14756 (attempt_auto_inc): Update life ranges accordingly.
14757
14758 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14759
14760 PR debug/11816
14761 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
14762
14763 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14764
14765 * cfganal.c (flow_call_edges_add): Never split a libcall block.
14766
14767 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14768
14769 * dwarf2out.c (output_loc_list): Don't use deltas if we have
14770 a separate line info table in use.
14771 Use the correct size for terminators.
14772 (output_die): Use offset, not delta.
14773
14774 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
14775
14776 * doc/invoke.texi: Remove the pni option from -mfpmath=.
14777
14778 2004-02-06 Jan Hubicka <jh@suse.cz>
14779
14780 * recog.c (split_all_insns): Do not update reg info.
14781 * regrename.c (regrename_optimize): Likewise.
14782 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
14783 * flow.c (struct propagate_block_info): Add insn_num field.
14784 (reg_deaths): New array.
14785 (life_analysis): Free reg_deaths info.
14786 (allocate_reg_life_data): Allocate reg_deaths array.
14787 (propagate_one_insn): Use new array.
14788 (init_propagate_block): Initialize it.
14789 (free_propagate_block_info): Finish compuation of
14790 REG_LIVE_LENGTH
14791 (attempt_auto_inc): Sanity check that REG_INFO is not
14792 computed at same time.
14793 (mark_used_regs): Update new array.
14794
14795 * reg-stack.c (subst_stack_regs): Unshare clobbers before
14796 substitution.
14797
14798 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14799
14800 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
14801 *extendqisi2_short_displ.
14802
14803 2004-02-06 Alan Modra <amodra@bigpond.net.au>
14804
14805 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
14806 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
14807 (emit_library_call_value_1): Likewise pass nargs.
14808 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
14809 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
14810 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
14811 parameter instead of scanning TYPE_ARGS_TYPES to count args.
14812 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
14813 prototype.
14814 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
14815 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
14816 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
14817 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
14818 INIT_CUMULATIVE_ARGS.
14819 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
14820 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
14821 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
14822 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
14823 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
14824 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
14825 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14826 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
14827 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
14828 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
14829 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
14830 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
14831
14832 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14833
14834 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
14835 possible.
14836
14837 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14838
14839 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
14840 note containing (plus (reg) (const_int)), where reg is an
14841 eliminable reg, then perform the register elimination without
14842 depending on eliminate_regs().
14843
14844 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14845
14846 * config/arc/arc.c (arc_return_in_memory): Check the return
14847 value of int_size_in_bytes against -1. Don't check
14848 TREE_ADDRESSABLE.
14849 * config/avr/avr.c (avr_return_in_memory): Check the return
14850 value of int_size_in_bytes against -1.
14851 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
14852 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
14853 Likewise.
14854 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
14855 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
14856 Likewise.
14857
14858 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14859
14860 * config/frv/frv-protos.h: Remove the prototype for
14861 frv_setup_incoming_varargs.
14862 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
14863 (frv_setup_incoming_varargs): Make it static.
14864 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
14865
14866 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14867
14868 * config/fr30/fr30-protos.h: Remove the prototype for
14869 fr30_setup_incoming_varargs.
14870 Update the prototypes for fr30_num_arg_regs and
14871 fr30_function_arg_partial_nregs.
14872 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
14873 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14874 (fr30_setup_incoming_varargs): Make it static.
14875 Add argument second_time. Don't do anything when second_time
14876 is nonzero.
14877 (fr30_num_arg_regs): Change the type of the first argument to
14878 enum machine_mode.
14879 (fr30_function_arg_partial_nregs): Change the type of the
14880 second argument to enum machine_mode.
14881 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
14882 (SETUP_INCOMING_VARARGS): Remove.
14883
14884 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14885
14886 * config/arc/arc-protos.h: Remove the prototype for
14887 arc_setup_incoming_varargs.
14888 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
14889 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14890 (arc_setup_incoming_varargs): Make it static.
14891 (arc_external_libcall): Likewise.
14892 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
14893 Remove the commented-out definition of
14894 ASM_OUTPUT_EXTERNAL_LIBCALL.
14895
14896 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14897
14898 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
14899 to $$(slibdir) in the installation commands.
14900
14901 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14902
14903 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
14904 with inner_regno, not regno.
14905 * rtlanal.c (refers_to_regno_p): Same.
14906
14907 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14908
14909 * config.gcc: Remove i370 support.
14910
14911 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14912
14913 * doc/install.texi: Update automake and autoconf version
14914 requirements. Note where to find gcj automake version.
14915
14916 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14917
14918 * Makefile.in (generate-manpages): Move dependencies to ...
14919 (man): here.
14920 * doc/makefile.texi: Document new targets.
14921 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
14922
14923 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14924
14925 PR/13485
14926 Makefile.in (srcextra): Add a level of indirection to ...
14927 (gcc.srcextra): ... here.
14928 (po-generated): Delete.
14929 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
14930 options.c.
14931 (start.encap): Remove superfluous lang.srcextra dependency.
14932 objc/Make-lang.in (po-generated): Delete.
14933
14934 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14935
14936 * config/ia64/ia64.c (REG_GP): Remove.
14937
14938 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14939
14940 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
14941
14942 2004-02-05 Devang Patel <dpatel@apple.com>
14943
14944 * dwarf2out.c (force_type_die): Look up input type itself
14945 instead of root_type() of type.
14946
14947 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
14948
14949 * config/s390/s390.md ("*tmqidi_ext"): New insn.
14950 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
14951 pre-reload splitters are transformed to post-reload
14952 define_insn_and_split patterns.
14953 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
14954
14955 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14956
14957 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
14958 TARGET_PROMOTE_PROTOTYPES.
14959
14960 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14961
14962 PR middle-end/13750
14963 Revert:
14964 2004-01-15 Geoffrey Keating <geoffk@apple.com>
14965 PR pch/13361
14966 * c-typeck.c (constructor_asmspec): Delete.
14967 (struct initializer_stack): Delete field 'asmspec'.
14968 (start_init): Delete saving of asmspec.
14969 (finish_init): Don't update constructor_asmspec.
14970 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
14971 * stmt.c (expand_asm): Duplicate strings from tree.
14972 (expand_asm_operands): Likewise.
14973 * tree.c (tree_size): Update computation of size of STRING_CST.
14974 (make_node): Don't make STRING_CST nodes.
14975 (build_string): Allocate string with tree node.
14976 * tree.def (STRING_CST): Update comment.
14977 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
14978 (tree_string): Place contents of string in tree node.
14979 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
14980 from tree.
14981
14982 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
14983
14984 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
14985 msgid.
14986
14987 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
14988
14989 * config/rs6000/altivec.md (*movv4si_internal): At least one
14990 operand must be altivec_register_operand.
14991 (*movv8hi_internal1): Likewise.
14992 (*movv16qi_internal1): Likewise.
14993 (*movv4sf_internal1): Likewise.
14994
14995 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14996
14997 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
14998 * configure: Regenerate.
14999
15000 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
15001
15002 * doc/install.texi: Update description of --gxx-include-dir to
15003 give correct default value.
15004
15005 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15006
15007 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
15008 8 with MAC_REG.
15009
15010 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15011
15012 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
15013 gen_rtx_PARALLEL.
15014
15015 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15016
15017 * emit-rtl.c: Update the comment about the file.
15018
15019 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
15020
15021 * sourcebuild.texi (Test Idioms): Update testcase naming
15022 conventions.
15023
15024 2004-02-04 Per Bothner <per@bothner.com>
15025
15026 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
15027 * c-ppoutput.c (pp_dir_change): New function.
15028 * c-common.h (pp_dir_change): New declaration.
15029 * cpplib.h (struct cpp_options): Remove working_directory field.
15030 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
15031 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
15032 Don't handle -fworking_directory here, but in c_common_post_options.
15033 (read_original_directory): Don't back up when done.
15034 Don't clear no-longer used working_directory flag.
15035 * cpplib.h: Update declarations to match.
15036 * c-lex.c (cb_dir_change): Move to c-opts.c.
15037 (init_c_lex): Don't set dir_change callback here, since we want
15038 to set it even if flag_preprocess_only.
15039 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
15040 (c_common_post_options): Set dir_change callback.
15041 Call pp_dir_change if approporiate.
15042 (finish_options): Don't call cpp_find_main_file here. Hence remove
15043 unneeded parameter and result. Do LC_RENAME for <built-in>.
15044 (c_common_post_options): Call cpp_read_main_file here instead.
15045 (c_common_init): Update accordingly.
15046 (push_command_line_include): Don't cpp_push_main_file.
15047 Do LC_RENAME rather than LC_LEASE to get back to main file.
15048 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
15049 (c_common_parse_file): Call cpp_read_main_file for subsequent main
15050 files, but call finish_options for all files.
15051 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
15052 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
15053 cpp_find_main_file + cpp_push_main_file.
15054 * c-lex.c (fe_file_change): Don't set main_input_filename here.
15055 * opts.c (handle_options): Only set main_input_filename first time.
15056
15057 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
15058
15059 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
15060
15061 2004-02-04 Geoffrey Keating <geoffk@apple.com>
15062
15063 * reload.c (find_equiv_reg): When checking for register overlap,
15064 don't index hard_regno_nregs with a pseudo-reg.
15065
15066 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15067
15068 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
15069
15070 2004-02-04 David Edelsohn <edelsohn@gnu.org>
15071
15072 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
15073 against FIRST_PSEUDO_REGISTER.
15074
15075 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15076
15077 * Makefile.in: Move target, host overrides after per-language
15078 fragments.
15079
15080 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
15081 (GNATLIBCFLAGS): Remove -g.
15082
15083 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15084
15085 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
15086 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15087 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15088 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
15089 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
15090 config/sparc/sparc.c, config/vax/vax.c: Revert the
15091 replacements of "FALLTHRU" with "Fall through" done in the
15092 previous patch.
15093
15094 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15095
15096 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
15097 config/arm/arm.c, config/arm/arm.md,
15098 config/cris/cris-protos.h, config/fr30/fr30.c,
15099 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
15100 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
15101 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
15102 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
15103 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
15104 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
15105 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
15106 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
15107 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
15108 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
15109 config/s390/s390.md, config/sparc/netbsd-elf.h,
15110 config/sparc/openbsd.h, config/sparc/sparc.c,
15111 config/xtensa/lib2funcs.S: Fix comment formatting.
15112
15113 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15114
15115 * config/alpha/alpha.c, config/arc/arc.c,
15116 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
15117 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
15118 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
15119 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
15120 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15121 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15122 config/iq2000/iq2000.c, config/m32r/m32r.c,
15123 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
15124 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
15125 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
15126 config/rs6000/rs6000.h, config/sparc/sparc.c,
15127 config/vax/vax.c: Fix comment typos. Follow spelling
15128 conventions.
15129
15130 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15131
15132 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
15133 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
15134 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
15135 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
15136 config/arm/fpa.md, config/arm/iwmmxt.md,
15137 config/arm/netbsd-elf.h, config/arm/netbsd.h,
15138 config/m68hc11/m68hc11.md, config/mips/iris5.h,
15139 config/mn10300/mn10300.md, config/rs6000/altivec.md,
15140 config/sparc/netbsd-elf.h: Update copyright.
15141
15142 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15143
15144 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
15145 for all modes whose size is greater than 8 bytes if ARCH32.
15146 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
15147 by reference if ARCH32.
15148
15149 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
15150
15151 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
15152
15153 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15154
15155 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
15156 to before adddi3 insn patterns.
15157 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
15158 "reload_insi"): Move to before addsi3 insn patterns.
15159
15160 2004-02-04 Mark Mitchell <mark@codesourcery.com>
15161
15162 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
15163 parameter. Use it instead of current_function_is_thunk.
15164 * function.h (struct function): Update documentation for is_thunk.
15165 * tree.h (CALL_FROM_THUNK_P): New macro.
15166 * config/alpha/alpha.c (alpha_sa_mask): Do not check
15167 no_new_pseudos when testing current_function_is_thunk.
15168 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
15169
15170 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15171
15172 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
15173 TARGET_SETUP_INCOMING_VARARGS.
15174
15175 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15176
15177 * emit-rtl.c (gen_rtx): Remove.
15178 * genattrtab.c: Don't mention gen_rtx in a comment.
15179 * rtl.h: Remove the prototype for gen_rtx.
15180 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
15181
15182 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15183
15184 * config/arc/arc.h, config/fr30/fr30.h
15185 (SETUP_INCOMING_VARARGS): Remove the target-independent
15186 comments.
15187 * doc/tm.texi: Don't mention deprecated target macros.
15188
15189 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15190
15191 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
15192 target-independent comment.
15193
15194 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15195
15196 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
15197 mention deprecated target macros.
15198
15199 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15200
15201 * config.gcc: Remove obsolete ports and configurations.
15202 * config/linux-aout.h, config/netware.h,
15203 config/t-linux-gnulibc1, config/d30v/abi,
15204 config/d30v/d30v-protos.h, config/d30v/d30v.c,
15205 config/d30v/d30v.h, config/d30v/d30v.md,
15206 config/d30v/libgcc1.asm, config/d30v/t-d30v,
15207 config/dsp16xx/dsp16xx-modes.def,
15208 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15209 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
15210 config/i370/README, config/i370/i370-c.c,
15211 config/i370/i370-protos.h, config/i370/i370.c,
15212 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
15213 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
15214 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
15215 config/i386/moss.h, config/i386/netware.h,
15216 config/i386/svr3.ifile, config/i386/svr3dbx.h,
15217 config/i386/svr3gas.h, config/i386/svr3z.ifile,
15218 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
15219 config/i960/i960-c.c, config/i960/i960-coff.h,
15220 config/i960/i960-modes.def, config/i960/i960-protos.h,
15221 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
15222 config/i960/rtems.h, config/i960/t-960bare,
15223 config/m68k/hp310.h, config/m68k/hp320.h,
15224 config/m68k/hp320base.h, config/m68k/m68kv4.h,
15225 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
15226 Remove.
15227 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
15228 doc/md.texi: Remove mentions of obsolete ports.
15229
15230 2004-02-04 Jan Hubicka <jh@suse.cz>
15231
15232 * alias.c (find_base_term, get_addr): Do not dereference NULL
15233 pointer when all VALUE's locations has been invalidated.
15234 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
15235
15236 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
15237
15238 * doc/invoke.texi (x86 options): Fix spelling/wording.
15239
15240 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
15241
15242 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
15243 put the original string in a comment.
15244 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
15245 * config/mips/mips.c (mips_output_ascii): Likewise.
15246 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
15247
15248 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15249
15250 * system.h (GIV_SORT_CRITERION): Poison.
15251 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
15252 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
15253
15254 2004-02-03 Roger Sayle <roger@eyesopen.com>
15255
15256 PR target/9348
15257 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
15258 multiplies with a multiplication of the wrong signedness, its the
15259 signedness of the multiplication that we've performed that needs to
15260 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
15261 if expand_mult_highpart_adjust places the result in target.
15262
15263 2004-02-03 Richard Henderson <rth@redhat.com>
15264
15265 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
15266
15267 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
15268
15269 * config.gcc (sh[234]l): Use little endian fragments.
15270
15271 2004-02-03 Paul Koning <pkoning@equallogic.com>
15272
15273 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
15274 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
15275 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
15276 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
15277 floating point format.
15278 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
15279 the above functions.
15280 (output_move_quad): Output float values in correct target format.
15281 (legitimate_const_double_p): New function.
15282 * config/pdp11/pdp11.h: Fix typos.
15283 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
15284 (TARGET_FLOAT_FORMAT): Ditto.
15285 (pdp11_f_format, pdp11_d_format): Add external declarations.
15286 (MAX_REGS_PER_ADDRESS): Corrected.
15287 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
15288 (PRINT_OPERAND): Output float literals in target format.
15289
15290 2004-02-03 Mark Mitchell <mark@codesourcery.com>
15291
15292 PR c++/13975
15293 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
15294 TI_PRIVATE.
15295 (access_public_node): Redefine.
15296 (access_protected_node): Likewise.
15297 (access_private_node): Likewise.
15298 * tree.c (build_common_tree_nodes): Create access_public_node,
15299 access_protected_node, and access_private_node.
15300
15301 2004-02-03 Steve Ellcey <sje@cup.hp.com>
15302
15303 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
15304 (MASK_INLINE_INT_DIV_THR): Ditto.
15305 (MASK_INLINE_SQRT_LAT): Ditto.
15306 (MASK_INLINE_SQRT_THR): Ditto.
15307 (MASK_DWARF2_ASM): Ditto.
15308 (MASK_EARLY_STOP_BITS): Ditto.
15309
15310 2004-02-02 Paul Brook <paul@codesourcery.com>
15311
15312 Merge from csl-arm-branch.
15313
15314 2004-01-30 Paul Brook <paul@codesourcery.com>
15315
15316 * aof.h (REGISTER_NAMES): Add vfp reg names
15317 (ADDITIONAL_REGISTER_NAMES): Ditto.
15318 * aout.h (REGISTER_NAMES): Ditto.
15319 (ADDITIONAL_REGISTER_NAMES): Ditto.
15320 * arm-protos.h: Update/Add Prototypes.
15321 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
15322 Only allow 0.0 for VFP.
15323 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
15324 (values_fp): Rename from values_fpa. Update Users.
15325 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
15326 Update users. Only check valid constants for this hardware.
15327 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
15328 Only allow consts for FPA.
15329 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
15330 Only allow consts for FPA.
15331 (use_return_insn): Check for saved VFP regs.
15332 (arm_legitimate_address_p): Handle VFP DFmode addressing.
15333 (arm_legitimize_address): Ditto.
15334 (arm_general_register_operand): New function.
15335 (vfp_mem_operand): New function.
15336 (vfp_compare_operand): New function.
15337 (vfp_secondary_reload_class): New function.
15338 (arm_float_compare_operand): New function.
15339 (vfp_print_multi): New function.
15340 (vfp_output_fstmx): New function.
15341 (vfp_emit_fstm): New function.
15342 (arm_output_epilogue): Output VPF reg restore code.
15343 (arm_expand_prologue): Output VFP reg save code.
15344 (arm_print_operand): Add 'P'.
15345 (arm_hard_regno_mode_ok): Return modes for VFP regs.
15346 (arm_regno_class): Return classes for VFP regs.
15347 (arm_compute_initial_elimination_offset): Include space for VFP regs.
15348 (arm_get_frame_size): Ditto.
15349 * arm.h (FIXED_REGISTERS): Add VFP regs.
15350 (CALL_USED_REGISTERS): Ditto.
15351 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
15352 (FIRST_VFP_REGNUM): Define.
15353 (LAST_VFP_REGNUM): Define.
15354 (IS_VFP_REGNUM): Define.
15355 (FIRST_PSEUDO_REGISTER): Include VFP regs.
15356 (HARD_REGNO_NREGS): Handle VFP regs.
15357 (REG_ALLOC_ORDER): Add VFP regs.
15358 (enum reg_class): Add VFP_REGS.
15359 (REG_CLASS_NAMES): Ditto.
15360 (REG_CLASS_CONTENTS): Ditto.
15361 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
15362 (REG_CLASS_FROM_LETTER): Add 'w'.
15363 (EXTRA_CONSTRAINT_ARM): Add 'U'.
15364 (EXTRA_MEMORY_CONSTRAINT): Define.
15365 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
15366 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
15367 (REGISTER_MOVE_COST): Ditto.
15368 (PREDICATE_CODES): Add arm_general_register_operand,
15369 arm_float_compare_operand and vfp_compare_operand.
15370 * arm.md (various): Rename as above.
15371 (divsf3): Enable when TARGET_VFP.
15372 (divdf3): Ditto.
15373 (movdfcc): Ditto.
15374 (sqrtsf2): Ditto.
15375 (sqrtdf2): Ditto.
15376 (arm_movdi): Disable when TARGET_VFP.
15377 (arm_movsi_insn): Ditto.
15378 (movsi): Only split with general regs.
15379 (cmpsf): Use arm_float_compare_operand.
15380 (push_fp_multi): Restrict to TARGET_FPA.
15381 (vfp.md): Include.
15382 * vfp.md: New file.
15383 * fpa.md (various): Rename as above.
15384 * doc/md.texi: Document ARM w and U constraints.
15385
15386 2004-01-15 Paul Brook <paul@codesourcery.com>
15387
15388 * config.gcc: Add with_fpu. Allow with-float=softfp.
15389 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
15390 Break out of loop when we find a float-abi. Fix typo.
15391 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
15392 Set -mfloat-abi=.
15393 * doc/install.texi: Document --with-fpu.
15394
15395 2003-01-14 Paul Brook <paul@codesourcery.com>
15396
15397 * config.gcc (with_arch): Add armv6.
15398 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
15399 * config/arm/arm.c (arm_overrride_options): Ditto.
15400
15401 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
15402
15403 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
15404 (FL_ARCH6): Renamed from FL_ARCH6J.
15405 (arm_arch3m): Renamed from arm_fast_multiply.
15406 (arm_arch6): Renamed from arm_arch6j.
15407 * arm.h: Update all uses of above.
15408 * arm-cores.def: Likewise.
15409 * arm.md: Likewise.
15410
15411 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
15412 not arm6j. Add entry for arch armv6.
15413
15414 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
15415
15416 * arm.c (arm_emit_extendsi): Delete.
15417 * arm-protos.h (arm_emit_extendsi): Delete.
15418 * arm.md (zero_extendhisi2): Also handle zero-extension of
15419 non-subregs.
15420 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
15421 (thumb_zero_extendhisi2): Only match if not v6.
15422 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
15423 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
15424 (thumb_extendqisi2): Likewise.
15425 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
15426 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
15427 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
15428 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
15429 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
15430 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
15431 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
15432 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
15433 (arm_extendqisi2addsi): Likewise.
15434
15435 2003-12-31 Mark Mitchell <mark@codesourcery.com>
15436
15437 Revert this change:
15438 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15439 + REG addressing modes.
15440
15441 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15442 + REG addressing modes.
15443
15444 2003-12-30 Mark Mitchell <mark@codesourcery.com>
15445
15446 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
15447 CONSTANT_P_RTX.
15448
15449 2003-30-12 Paul Brook <paul@codesourcery.com>
15450
15451 * longlong.h: protect arm inlines with !defined (__thumb__)
15452
15453 2003-30-12 Paul Brook <paul@codesourcery.com>
15454
15455 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
15456
15457 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
15458
15459 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
15460 change.
15461
15462 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15463
15464 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
15465 to the virtual incoming args pointer for downward stacks.
15466
15467 2003-12-29 Paul Brook <paul@codesourcery.com>
15468
15469 * config/arm/arm-cores.def: Add cost function.
15470 * config/arm/arm.c (arm_*_rtx_costs): New functions.
15471 (arm_rtx_costs): Remove
15472 (struct processors): Add rtx_costs field.
15473 (all_cores, all_architectures): Ditto.
15474 (arm_override_options): Set targetm.rtx_costs.
15475 (thumb_rtx_costs): New function.
15476 (arm_rtx_costs_1): Remove cases handled elsewhere.
15477 * config/arm/arm.h (processor_type): Add COSTS parameter.
15478
15479 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15480
15481 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
15482 (arm926ejs.md): Include it.
15483 * config/arm/arm926ejs.md: New pipeline description.
15484
15485 2003-12-24 Paul Brook <paul@codesourcery.com>
15486
15487 * config/arm/arm.c (arm_arch6j): New variable.
15488 (arm_override_options): Set it.
15489 (arm_emit_extendsi): New function.
15490 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
15491 * config/arm/arm.h (arm_arch6j): Declare.
15492 * config/arm/arm.md: Add sign/zero extend insns.
15493
15494 2003-12-23 Paul Brook <paul@codesourcery.com>
15495
15496 * config/arm/arm.c (all_architectures): Add armv6.
15497 * doc/invoke.texi: Document it.
15498
15499 2003-12-19 Paul Brook <paul@codesourcery.com>
15500
15501 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
15502 insn patterns to match.
15503 * config/arm/arm-generic.md: Ditto.
15504 * config/arm/cirrus.md: Ditto.
15505 * config/arm/fpa.md: Ditto.
15506 * config/amm/iwmmxt.md: Ditto.
15507 * config/arm/arm1026ejs.md: Ditto.
15508 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
15509 for 11_loadb.
15510
15511 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
15512
15513 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
15514 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
15515 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
15516 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
15517 arm_no_early_mul_dep): Correctly deal with conditional execution,
15518 parallels and single shift operations.
15519 (arm_no_early_alu_shift_value_dep): Define.
15520 * arm.md (attr type): Replace 'normal' with 'alu',
15521 'alu_shift' and 'alu_shift_reg'.
15522 (attr core_cycles): Adjust.
15523 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
15524 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
15525 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
15526 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
15527 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
15528 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
15529 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
15530 attribute appropriately.
15531 * config/arm/arm1026ejs.md (alu_op): Adjust.
15532 (alu_shift_op, alu_shift_reg_op): New.
15533 * config/arm/arm1136.md: Add better bypasses for early
15534 registers. Remove load[234] and store[234] bypasses.
15535 (11_alu_op): Adjust.
15536 (11_alu_shift_op, 11_alu_shift_reg_op): New.
15537
15538 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
15539
15540 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
15541 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
15542 * config/arm/arm.c (arm_no_early_store_addr_dep,
15543 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
15544 * config/arm/arm1026ejs.md: Add load-store bypass.
15545 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
15546 Add bypasses between instructions.
15547
15548 2003-12-10 Paul Brook <paul@codesourcery.com>
15549
15550 * config/arm/arm.c (arm_fpu_model): New variable.
15551 (arm_fload_abi): New variable.
15552 (target_fpe_name): Rename from target_fp_name.
15553 (target_fpu_name): New variable.
15554 (arm_is_cirrus): Remove.
15555 (fpu_desc): New struct.
15556 (all_fpus): Define.
15557 (pf_model_for_fpu): Define.
15558 (all_loat_abis): Define.
15559 (arm_override_options): Set fp arch flags based on -mfpu=
15560 and -float-abi=.
15561 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15562 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15563 (*): Use new TARGET_* flags.
15564 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
15565 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
15566 (TARGET_SOFT_FLOAT): Ditto.
15567 (TARGET_SOFT_FLOAT_ABI): New.
15568 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
15569 TARGET_HARD_FLOAT.
15570 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
15571 (TARGET_OPTIONS): Add -mfpu=.
15572 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15573 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15574 (arm_pf_model): Define.
15575 (arm_float_abi_type): Define.
15576 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
15577 * config/arm/arm.md: Use new TARGET_* flags.
15578 * config/arm/cirrus.md: Ditto.
15579 * config/arm/fpa.md: Ditto.
15580 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
15581 * config/arm/semi.h (ASM_SPEC): Ditto.
15582 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
15583 (FPUTYPE_DEFAULT): Set to VFP.
15584 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
15585
15586 2003-11-22 Phil Edwards <phil@codesourcery.com>
15587
15588 PR target/12476
15589 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
15590 'bx' instead of 'b' to avoid branch range restrictions. Output
15591 the thunk immediately before the thunked-to function.
15592 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
15593 .thumb_func if a thunk is being generated. Emit .code 16 along
15594 with .thumb_func if a thunk is not being generated.
15595
15596 2003-11-15 Nicolas Pitre <nico@cam.org>
15597
15598 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
15599 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
15600 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
15601 (lshrdi3_iwmmxt): Renamed from lshrdi3.
15602 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
15603
15604 2003-11-12 Steve Woodford <scw@wasabisystems.com>
15605 Ian Lance Taylor <ian@wasabisystems.com>
15606
15607 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
15608 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
15609
15610 2003-11-05 Phil Edwards <phil@codesourcery.com>
15611
15612 * config/arm/arm.md (insn): Add new V6 instruction names.
15613 (generic_sched): New attr.
15614 * config/arm/arm-generic.md: Use generic_sched here.
15615 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
15616 stages of pipeline. Adjust latency counts accordingly.
15617 * config/arm/arm1136jfs.md: New file.
15618
15619 2003-10-28 Mark Mitchell <mark@codesourcery.com>
15620
15621 * config/arm/arm.h (processor_type): New enumeration type.
15622 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
15623 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
15624 (CPP_CPU_ARCH_SPEC): Likewise.
15625 * config/arm/arm.c (arm_tune): New variable.
15626 (all_cores): Use cores.def.
15627 (all_architectures): Add representative processor.
15628 (arm_override_options): Restructure way in which tuning
15629 information is deduced.
15630 * arm.md: Update "insn" and "type" attributes throughout.
15631 (insn): New attribute.
15632 (type): Compute "mult" from "insn" attribute. Add load2,
15633 load3, load4 alternatives.
15634 (arm automaton): Move to arm-generic.md.
15635 * config/arm/arm-cores.def: New file.
15636 * config/arm/arm-generic.md: Likewise.
15637 * config/arm/arm1026ejs.md: Likewise.
15638
15639 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15640
15641 * doc/invoke.texi (SPARC options): Remove -mflat and
15642 all -mxxx (xxx:chip) options.
15643 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
15644 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
15645 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
15646 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
15647 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
15648 * config/sparc/sparc.c: Likewise.
15649 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
15650 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
15651 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
15652 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
15653 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
15654 (sparc_flat_must_save_register_p): Likewise.
15655 (sparc_flat_compute_frame_size): Likewise.
15656 (sparc_flat_save_restore): Likewise.
15657 (sparc_flat_function_prologue): Likewise.
15658 (sparc_flat_function_epilogue): Likewise.
15659 (sparc_flat_epilogue_delay_slots): Likewise.
15660 (sparc_flat_eligible_for_epilogue_delay): Likewise.
15661 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
15662 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
15663 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
15664 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
15665 (CONDITIONAL_REGISTER_USAGE): Likewise.
15666 (FRAME_POINTER_REQUIRED): Likewise.
15667 (INITIAL_ELIMINATION_OFFSET): Likewise.
15668 (BASE_RETURN_VALUE_REG): Likewise.
15669 (BASE_OUTGOING_VALUE_REG): Likewise.
15670 (BASE_PASSING_ARG_REG): Likewise.
15671 (BASE_INCOMING_ARG_REG): Likewise.
15672 (INCOMING_REGNO): Likewise.
15673 (OUTGOING_REGNO): Likewise.
15674 (LOCAL_REGNO): Likewise.
15675 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
15676 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
15677 (EPILOGUE_USES): Likewise.
15678 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
15679 ("flat" attribute): Delete.
15680 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
15681 handling.
15682 (call followed by jump define_peephole's): Delete.
15683 (exception_receiver): Likewise.
15684 (builtin_setjmp_receiver): Likewise.
15685 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
15686
15687 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
15688
15689 PR c/11658
15690 PR c/13994
15691 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
15692 on langhooks.h.
15693 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
15694 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
15695 Include langhooks.h. Replace c_common_truthvalue_conversion
15696 with the truthvalue_conversion language hook throughout.
15697 (expr_no_commas): Call default_conversion before save_expr
15698 for the first term of the production 'x ? : y'.
15699 * c-common.c (c_common_truthvalue_conversion): Remove
15700 obsolete block. Invoke recursively the hook instead
15701 of this function.
15702 * c-convert.c (convert): handle ERROR_MARK_NODE.
15703 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
15704 returned by the truthvalue_conversion language hook.
15705 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15706 c_objc_common_truthvalue_conversion.
15707 * c-objc-common.c (c_objc_common_truthvalue_conversion):
15708 New function.
15709 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
15710 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15711 c_objc_common_truthvalue_conversion.
15712
15713 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15714
15715 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
15716 of gen_rtx.
15717 (LIBCALL_VALUE): Likewise.
15718 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
15719 gen_rtx_CC0 instead of gen_rtx.
15720 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
15721 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
15722 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
15723 gen_rtx.
15724 (m68hc11_emit_logical): Likewise.
15725
15726 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15727
15728 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
15729 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
15730 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
15731 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
15732 config/mips/mips.md, config/mmix/mmix.c,
15733 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
15734 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
15735 config/rs6000/altivec.md, config/s390/s390.c,
15736 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
15737 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
15738 Use const0_rtx instead of GEN_INT (0). Do the same for other
15739 constants that are readily available.
15740
15741 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15742
15743 * doloop.c, optabs.c, regmove.c, sched-deps.c,
15744 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
15745 instead of GEN_INT (0). Do the same for other constants that
15746 are readily available.
15747
15748 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15749
15750 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
15751 gen_rtx.
15752 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
15753 instead of gen_rtx.
15754 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
15755 gen_rtx.
15756 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
15757 gen_rtx_ASHIFT instead of gen_rtx.
15758 (udivmodqi4): Likewise.
15759
15760 2004-02-02 Richard Henderson <rth@redhat.com>
15761
15762 PR target/13789
15763 * expr.c (store_expr): Use force_operand before emit_move_insn.
15764
15765 2004-02-02 Jeff Law <law@redhat.com>
15766 Roger Sayle <roger@eyesopen.com>
15767
15768 * tree.c (commutative_tree_code, associative_tree_code): New
15769 functions.
15770 (iterative_hash_expr): Use commutative_tree_code.
15771 * tree.h (commutative_tree_code, associative_tree_code): Declare.
15772 * fold-const.c (operand_equal_p): Use commutative_tree_code
15773 rather than inlining the commutativity check.
15774 (fold): Likewise.
15775
15776 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15777
15778 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
15779 * config/frv/frv-protos.h: Remove the prototype for
15780 frv_function_arg_keep_as_reference.
15781 * config/frv/frv.c (frv_function_arg_keep_as_reference):
15782 Remove.
15783 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
15784 * config/stormy16/stormy16.h: Remove the commented-out
15785 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
15786
15787 2004-02-03 Alan Modra <amodra@bigpond.net.au>
15788
15789 PR target/13914
15790 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
15791 for retaddr_column.
15792
15793 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15794
15795 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
15796 gen_rtx.
15797
15798 2004-02-02 Eric Christopher <echristo@redhat.com>
15799 Zack Weinberg <zack@codesourcery.com>
15800
15801 * c-opts.c (c_common_handle_option): Add -finput-charset.
15802 * c.opt: Ditto.
15803 * cppcharset.c (one_iso88591_to_utf8): Remove.
15804 (convert_iso88591_utf8): Ditto.
15805 (conversion_tab): Remove 8859-1 converter.
15806 (_cpp_input_to_utf8): Remove.
15807 (_cpp_init_iconv_buffer): Ditto.
15808 (_cpp_close_iconv_buffer): Ditto.
15809 (_cpp_convert_input): New function.
15810 (_cpp_default_encoding): Ditto.
15811 * cpphash.h: Add/remove prototypes for above.
15812 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
15813 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
15814 for narrow execution and input character sets.
15815 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
15816 * doc/cppopts.texi: Document -finput-charset.
15817
15818 2004-02-02 David Edelsohn <edelsohn@gnu.org>
15819
15820 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
15821 against FIRST_PSEUDO_REGISTER.
15822
15823 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15824
15825 * doc/invoke.texi (SPARC options): Further improve.
15826
15827 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15828
15829 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
15830 config/h8300/h8300.c, config/ip2k/ip2k.md,
15831 config/iq2000/iq2000.c, config/mips/mips.c,
15832 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
15833 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
15834 config/v850/v850.md: Fix indentation.
15835
15836 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15837
15838 * config/sparc/sparc.c (function_arg_slotno): Align TImode
15839 arguments on a 16-byte boundary in the parameter array if ARCH64.
15840 Split handling of TFmode.
15841
15842 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
15843
15844 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
15845 Don't test CONSTANT_P (x).
15846 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
15847 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
15848 Fix misindentation.
15849
15850 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15851
15852 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
15853
15854 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15855
15856 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
15857 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
15858 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
15859 config/iq2000/iq2000.c, config/m32r/m32r.c,
15860 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
15861 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
15862 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
15863 config/stormy16/stormy16.c, config/v850/v850.md,
15864 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
15865
15866 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15867
15868 * config/mcore/mcore.c (block_move_sequence): Replace
15869 gen_rtx_CONST_INT with GEN_INT.
15870
15871 2004-02-02 Jan Hubicka <jh@suse.cz>
15872
15873 * alias.c (record_set): Use hard_regno_nregs.
15874 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
15875 * builtins.c (apply_args_size): Likewise.
15876 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
15877 mark_set_regs, add_stored_regs, mark_referenced_regs,
15878 insert_restore, insert_save, insert_one_insn): Likewise.
15879 * cfgcleanup.c: Include regs.h
15880 (mark_effect, mentions_nonequal_regs): Likewise.
15881 * cfgrtl.c (mark_killed_regs): Likewise
15882 * combine.c (update_table_tick, record_value_for_reg,
15883 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
15884 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
15885 reg_bitfield_target_p, distribute_notes): Likewise.
15886 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
15887 exp_equiv_p, cse_insn): Likewise.
15888 * cselib.c (cselib_lookup): Likewise.
15889 (cselib_invalidate_regno, cselib_record_set): Likewise.
15890 * df.c (df_ref_record): Likewise.
15891 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
15892 Likewise.
15893 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
15894 count_or_remove_death_notes_bb): Likewise.
15895 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
15896 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
15897 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
15898 * integrate.c (mark_stores): Likewise.
15899 * jump.c (delete_prior_computation): Likewise.
15900 * lcm.c (reg_dies, reg_becomes_live): Likewise.
15901 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
15902 * loop.c (LOOP_REGNO_NREGS): Likewise.
15903 * postreload.c (reload_combine, reload_combine_note_store,
15904 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
15905 * ra-colorize.c (combine, color_usable_p, get_free_reg,
15906 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
15907 try_recolor_web, insert_coalesced_conflicts, check_colors,
15908 break_precolored_alias): Likewise.
15909 * ra-debug.c: Include regs.h
15910 (ra_print_rtx_object): Likewise.
15911 * ra-rewrite (choose_spill_colors): Likewise.
15912 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
15913 * ra.c (init_ra): Likewise.
15914 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
15915 peep2_find_free_register): Likewise.
15916 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
15917 * regclass.c (hard_regno_nregs): New array.
15918 (init_reg_modes_once): Initialize it.
15919 (choose_hard_reg_mode): Use it.
15920 (record_reg_classes): Likewise.
15921 * regmove.c (mark_flags_life_zones): Likewise.
15922 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
15923 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
15924 copy_value, maybe_mode_change, find_oldest_value_reg,
15925 copyprop_hardreg_forward_1):
15926 * regs.h (hard_regno_nregs): Declare.
15927 * realod.c (reload_inner_reg_of_subreg): Use it.
15928 (push_reload, combine_reloads, find_dummy_reload,
15929 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
15930 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
15931 reload_adjust_reg_for_mode): Likewise.
15932 * reload1.c (compute_use_by_pseudos, count_pseudo,
15933 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
15934 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
15935 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
15936 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
15937 delete_output_reload): Likewise.
15938 * resource.c (update_live_status, mark_referenced_resources,
15939 mark_set_resources, mark_target_live_regs): Likewise.
15940 * rtlanal.c: Include regs.h
15941 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
15942 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
15943 subreg_regno_offset, subreg_offset_representable_p,
15944 hoist_test_store): Likewise.
15945 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
15946 * sched-rgn.c (check_live_1, update_live_1): Likewise.
15947 * stmt.c: Include regs.h
15948 (decl_conflicts_with_clobbers_p): Likewise.
15949 * varasm.c (make_decl_rtl): Likewise.
15950 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
15951
15952 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15953
15954 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
15955 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
15956 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
15957 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
15958 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
15959 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
15960 config/iq2000/iq2000.h, config/m32r/m32r.c,
15961 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
15962 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
15963 config/mcore/mcore.c, config/mcore/mcore.h,
15964 config/mcore/mcore.md, config/mips/mips.c,
15965 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
15966 config/rs6000/rs6000.c, config/s390/s390.c,
15967 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
15968 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
15969 "gen_rtx (FOO, " with "gen_rtx_FOO (".
15970
15971 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15972
15973 * config/h8300/h8300.md (two peephole2's): New.
15974
15975 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
15976
15977 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
15978 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
15979 (ASM_CPU_SPEC): Likewise
15980 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
15981 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
15982
15983 2004-02-01 Roger Sayle <roger@eyesopen.com>
15984
15985 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
15986 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
15987 (expand_builtin): Always call expand_builtin_pow.
15988
15989 2004-02-01 Roger Sayle <roger@eyesopen.com>
15990
15991 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
15992 BUILT_IN_SIGNBITL): New GCC builtins.
15993 * builtins.c (expand_builtin_signbit): New function to RTL expand
15994 calls to signbit, signbitf and signbitl as inline intrinsics.
15995 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
15996 (fold_builtin_signbit): New function to perform constant folding
15997 of signbit, signbitf and signbitl.
15998 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
15999
16000 * doc/extend.texi: Document new signbit{,f,l} builtins.
16001
16002 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
16003
16004 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
16005
16006 2004-02-01 Chris Demetriou <cgd@broadcom.com>
16007
16008 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
16009 "mips_const_double_ok" and "simple_memory_operand", which were
16010 removed from the MIPS port with the mips-3_4-rewrite branch merge.
16011 * config/mips/mips.c (mips16_lay_out_constants): Update comment
16012 for removal of simple_memory_operand.
16013
16014 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16015
16016 * config/c4x/c4x.md: Use GEN_INT instead of
16017 gen_rtx (CONST_INT, ...).
16018
16019 2004-01-31 Richard Henderson <rth@redhat.com>
16020
16021 * varasm.c (output_constant_pool): Don't zap the pool.
16022
16023 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16024
16025 * genrecog.c (decision_type): Add DT_const_int.
16026 (write_cond) [DT_const_int]: Print a comparison against small
16027 constant.
16028 (write_node): Simplify comparisons against small constants
16029 before printing tests.
16030
16031 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16032
16033 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
16034 instead of gen_rtx_CONST_INT.
16035
16036 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16037
16038 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
16039 instead of gen_rtx_CONST_INT.
16040
16041 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16042
16043 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
16044 hook_bool_CUMULATIVE_ARGS_false.
16045 * targhooks.c (default_strict_argument_naming): Rename to
16046 hook_bool_CUMULATIVE_ARGS_false.
16047 * targhooks.h: Update the prototype for
16048 default_strict_argument_naming.
16049
16050 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16051
16052 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16053 * config/sh/sh.h: Likewise.
16054 * config/sh/sh.md: Likewise.
16055
16056 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
16057
16058 * doc/invoke.texi (SPARC options): Restructure and update.
16059
16060 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16061
16062 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
16063 STRICT_ARGUMENT_NAMING): Poison.
16064 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
16065 hook_bool_tree_false.
16066 * targhooks.c (default_promote_function_args): Remove.
16067 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
16068 Don't check incoming.
16069 (default_strict_argument_naming): Don't use
16070 STRICT_ARGUMENT_NAMING.
16071 * targhooks.h: Remove the prototype for
16072 default_promote_function_args.
16073
16074 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16075
16076 * config/i386/i386-protos.h: Remove the prototype for
16077 ix86_setup_incoming_varargs.
16078 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
16079 (ix86_setup_incoming_varargs): Make it static.
16080 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
16081
16082 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16083
16084 * alloc-pool.c: Fix comment typos.
16085 * builtin-types.def: Likewise.
16086 * builtins.def: Likewise.
16087 * c-pretty-print.c: Likewise.
16088 * df.h: Likewise.
16089 * reload1.c: Likewise.
16090
16091 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16092
16093 * doc/invoke.texi: Follow spelling conventions.
16094 * doc/tm.texi: Likewise.
16095
16096 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16097
16098 * doc/install.texi: Fix typos.
16099 * doc/invoke.texi: Likewise.
16100
16101 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
16102
16103 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
16104 registers as pointers.
16105 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
16106
16107 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
16108
16109 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
16110 and restore it to gen_lowpart_general on exit.
16111 (gen_lowpart_for_combine): Adjust all callers to go through
16112 gen_lowpart.
16113 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
16114 and restore it to gen_lowpart_general on exit.
16115 (gen_lowpart_if_possible): Adjust all callers to go through
16116 gen_lowpart.
16117 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
16118 (gen_lowpart): Declare as pointer to function, initialized to
16119 gen_lowpart_general.
16120 * rtl.h (gen_lowpart): Declare as pointer to function.
16121
16122 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16123
16124 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16125 * calls.c: Likewise.
16126 * emit-rtl.c: Likewise.
16127 * function.c: Likewise.
16128 * reload1.c: Likewise.
16129 * config/i386/cygming.h: Likewise.
16130 * config/i386/i386.c: Likewise.
16131 * config/i386/winnt.c: Likewise.
16132
16133 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
16134
16135 PR bootstrap/9249
16136 * doc/install.texi: document --enable-__cxa_atexit option.
16137 * configure.ac: Disable __cxa_atexit if not supported.
16138 * configure: Regenerate.
16139
16140 2004-01-30 Daniel Berlin <dberlin@dberlin.org>
16141
16142 * ggc-zone.c (ggc_free): New function.
16143
16144 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16145
16146 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
16147 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
16148 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
16149 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
16150 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
16151 config/alpha/alpha.c, config/alpha/alpha.h,
16152 config/alpha/alpha.md, config/alpha/unicosmk.h,
16153 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
16154 config/c4x/c4x-protos.h, config/c4x/c4x.md,
16155 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
16156 config/frv/frvend.c, config/i386/cygming.h,
16157 config/i386/djgpp.h, config/i386/emmintrin.h,
16158 config/i386/gthr-win32.c, config/i386/i386-interix.h,
16159 config/i386/i386-protos.h, config/i386/openbsd.h,
16160 config/i386/winnt.c, config/i386/xm-mingw32.h,
16161 config/i386/xmmintrin.h, config/ia64/ia64.md,
16162 config/iq2000/iq2000.md, config/m32r/m32r.md,
16163 config/m68k/m68k.md, config/mcore/mcore-elf.h,
16164 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
16165 config/mips/iris5gas.h, config/mips/iris6.h,
16166 config/mips/iris6gas.h, config/mips/linux.h,
16167 config/mips/mips.md, config/mips/netbsd.h,
16168 config/mips/openbsd.h, config/mips/windiss.h,
16169 config/pa/fptr.c, config/rs6000/aix.h,
16170 config/rs6000/altivec.h, config/rs6000/darwin.h,
16171 config/rs6000/xcoff.h, config/s390/s390-protos.h,
16172 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
16173 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
16174 config/sparc/sol2.h: Update copyright.
16175
16176 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
16177
16178 * Makefile.in (abs_docdir, abs_srcdir): Define.
16179 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
16180
16181 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16182
16183 * genconfig.c (main): Have CC0_P check its operand even on a
16184 target without cc0.
16185
16186 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16187
16188 * config/alpha/alpha.c: Remove mentions of deprecates macros
16189 in comments, remove some target-independent comments about target
16190 macros, and/or add minimal function comments for target hook
16191 implementations.
16192 * config/avr/avr.c: Likewise.
16193 * config/ia64/ia64.h: Likewise.
16194 * config/ip2k/ip2k.c: Likewise.
16195 * config/iq2000/iq2000.c: Likewise.
16196 * config/m32r/m32r.h: Likewise.
16197 * config/m68hc11/m68hc11.c: Likewise.
16198 * config/mcore/mcore.c: Likewise.
16199 * config/mmix/mmix.c: Likewise.
16200 * config/mn10300/mn10300.c: Likewise.
16201 * config/pa/pa.c: Likewise.
16202 * config/pdp11/pdp11.c: Likewise.
16203 * config/rs6000/rs6000.h: Likewise.
16204 * config/sh/sh.c: Likewise.
16205 * config/sh/sh.h: Likewise.
16206 * config/sparc/sparc.c: Likewise.
16207 * config/sparc/sparc.h: Likewise.
16208 * config/stormy16/stormy16.c: Likewise.
16209 * config/xtensa/xtensa.c: Likewise.
16210
16211 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
16212
16213 PR optimization/12147
16214 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
16215 RELOAD_FOR_OPADDR_ADDR.
16216 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
16217 might be reused as RELOAD_FOR_OPADDR_ADDR register.
16218
16219 2004-01-30 Jan Hubicka <jh@suse.cz>
16220
16221 * reload.c (get_secondary_mem): Fix updating of
16222 secondary_memlocs_elim_used.
16223
16224 2004-01-30 Richard Henderson <rth@redhat.com>
16225
16226 * varasm.c (struct rtx_const, struct pool_constant): Remove.
16227 (MAX_RTX_HASH_TABLE): Remove.
16228 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
16229 (first_pool, last_pool, pool_offset): Remove.
16230 (struct rtx_constant_pool): Split out from ...
16231 (struct varasm_status): ... here. Reference one via pointer.
16232 (struct constant_descriptor_rtx): Merge struct pool_constant.
16233 (SYMHASH): Remove.
16234 (decode_rtx_const): Remove.
16235 (const_hash_rtx, compare_constant_rtx): Remove.
16236 (record_constant_rtx): Remove.
16237 (const_desc_rtx_hash, const_desc_rtx_eq): New.
16238 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
16239 (const_rtx_hash_1, const_rtx_hash): New.
16240 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
16241 (simplify_subtraction): Use simplify_rtx.
16242 (force_const_mem): Rewrite to use new data structures.
16243 (find_pool_constant): Likewise.
16244 (get_pool_constant, get_pool_constant_mark,
16245 get_pool_constant_for_function, get_pool_mode,
16246 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
16247 (output_constant_pool_2): Split out from output_constant_pool.
16248 (output_constant_pool_1): Likewise. Use new pool datastructures.
16249 (output_constant_pool): Zap entire pool datastructure.
16250 (mark_constant): Use new pool datastructures.
16251 (mark_constants): Use for_each_rtx.
16252 (mark_constant_pool): Use new pool datastructures.
16253
16254 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
16255
16256 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
16257 Copy operands[1] to pseudo for simplify_gen_subreg.
16258
16259 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16260
16261 * gcse.c (bypass_block): Fix a typo in the previous check-in
16262 to the file.
16263
16264 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
16265
16266 * toplev.c: Include alloc-pool.h.
16267 * Makefile.in (toplev.c): Update dependencies.
16268
16269 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16270
16271 * combine.c (simplify_shift_const, case XOR): Be careful when
16272 commuting XOR with ASHIFTRT.
16273
16274 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16275 Eric Botcazou <ebotcazou@libertysurf.fr>
16276
16277 * config/sparc/sparc-protos.h: Remove the prototype for
16278 sparc_builtin_saveregs.
16279 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16280 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16281 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16282 (TARGET_STRUCT_VALUE_RTX): Likewise.
16283 (TARGET_RETURN_IN_MEMORY): Likewise.
16284 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16285 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16286 (sparc_builtin_saveregs): Make it static.
16287 (sparc_promote_prototypes): New.
16288 (sparc_struct_value_rtx): Likewise.
16289 (sparc_return_in_memory): Likewise.
16290 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
16291 (PROMOTE_FUNCTION_RETURN): Likewise.
16292 (RETURN_IN_MEMORY): Likewise.
16293 (STRUCT_VALUE): Likewise.
16294 (STRUCT_VALUE_INCOMING): Likewise.
16295 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16296 (STRICT_ARGUMENT_NAMING): Likewise.
16297 (PROMOTE_PROTOTYPES): Likewise.
16298
16299 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
16300
16301 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
16302
16303 PR c/12818
16304 * varasm.c (const_hash_1) <STRING_CST>: Use the
16305 address to compute the hash value if flag_writable_strings.
16306 (compare_constant) <STRING_CST>: Compare the addresses
16307 if flag_writable_strings.
16308 (build_constant_desc): Do not copy the expression for a
16309 STRING_CST if flag_writable_strings.
16310
16311 2004-01-30 Jan Hubicka <jh@suse.cz>
16312
16313 * alloc-pool.c: Include hashtab.h
16314 (alloc_pool_descriptor): New structure
16315 (alloc_pool_hash): New global variable.
16316 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
16317 (create_alloc_pool): Update statistics.
16318 (free_alloc_pool): Likewise.
16319 (pool_alloc): Likewise.
16320 (output_info): New structure
16321 (print_statistics, dump_alloc_pool_statistics): New function.
16322 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
16323 (dump_alloc_pool_statistics): Declare.
16324 * toplev.c (finalize): Dump statistics.
16325
16326 * reload.c (secondary_memlocs_elim_used): New static variable.
16327 (get_secondary_mem): Update it.
16328 (find_reloads): Use it.
16329
16330 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
16331
16332 * toplev.c: Fix broken checkin of 2003-12-30, again.
16333
16334 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
16335
16336 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
16337 s390*-*-* targets by specifying a 'nop' insn.
16338 * configure: Regenerate.
16339
16340 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
16341
16342 PR target/11475
16343 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
16344
16345 2004-01-29 Jakub Jelinek <jakub@redhat.com>
16346
16347 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
16348 of addr when creating MEM copy.
16349
16350 2004-01-29 Devang Patel <dpatel@apple.com>
16351
16352 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
16353
16354 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16355
16356 PR inline-asm/6162
16357 * reload.c (find_reloads): Only support one pair of commutative
16358 operands.
16359
16360 2004-01-29 Roger Sayle <roger@eyesopen.com>
16361
16362 PR java/13824
16363 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
16364 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
16365 recursion.
16366
16367 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16368
16369 * config/frv/frv.c: Don't mention deprecated macros in
16370 comments. Remove some target-independent comments about
16371 target macros.
16372 * config/frv/frv.h: Likewise.
16373
16374 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16375
16376 * cfghooks.c (split_block): Set probability and count of the
16377 new edge.
16378
16379 2004-01-29 Josef Zlomek <zlomekj@suse.cz>
16380
16381 * dwarf2out.c (struct die_struct): Added field decl_id.
16382 (decl_die_table): Changed to hash table.
16383 (decl_die_table_allocated): Deleted.
16384 (decl_die_table_in_use): Deleted.
16385 (DECL_DIE_TABLE_INCREMENT): Deleted.
16386 (decl_die_table_hash): New function.
16387 (decl_die_table_eq): New function.
16388 (lookup_decl_die): Lookup in a hash table.
16389 (equate_decl_number_to_die): Insert into a hash table.
16390 (dwarf2out_init): Init hash table decl_die_table.
16391
16392 2004-01-29 Jakub Jelinek <jakub@redhat.com>
16393
16394 PR optimization/13424
16395 * expr.c (store_constructor): Revert 2003-12-03 change.
16396
16397 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
16398 expected before returning early. Avoid sharing RTL if they
16399 need to be changed.
16400
16401 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
16402 handling so that memory attributes are preserved. Don't call
16403 ix86_set_move_mem_attrs.
16404 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
16405 (ix86_expand_clrstr): Rename src argument to
16406 dst. Rework rep_stos and strset handling so that memory attributes
16407 are preserved.
16408 (ix86_expand_strlen): Pass src argument to
16409 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
16410 memory attributes are preserved.
16411 (ix86_expand_strlensi_unroll_1): Add src argument. Use
16412 change_address instead of gen_rtx_MEM.
16413 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
16414 expanders.
16415 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
16416 strmovqi, strmovqi_rex64): Remove.
16417 (rep_mov*, strmov*): Prefix insn names with *.
16418 (strset, strset_singleop, rep_stos): New expanders.
16419 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
16420 strsetqi, strsetqi_rex64): Remove.
16421 (rep_stos*, strset*): Prefix insn names with *.
16422 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
16423 to SImode.
16424 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
16425 are preserved.
16426 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
16427 Prefix insn names with *.
16428 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
16429 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
16430 (strlenqi_1): New expander.
16431 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
16432
16433 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16434
16435 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
16436 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
16437 verify_flow_info): Declaration removed.
16438 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
16439 (debug_bb, debug_bb_n): Add argument to dump_bb call.
16440 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
16441 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
16442 instead of delete_block.
16443 * cfghooks.c: Include timevar.h and toplev.h.
16444 (cfg_hooks): Define here.
16445 (verify_flow_info, dump_bb): Moved from cfg.c.
16446 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16447 split_block, split_block_after_labels, move_block_after,
16448 delete_basic_block, split_edge, create_basic_block,
16449 create_empty_bb, can_merge_blocks_p, merge_blocks,
16450 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16451 New functions.
16452 * cfghooks.h (struct cfg_hooks): Added fields name,
16453 make_forwarder_block, tidy_fallthru_edge and
16454 move_block_after. Changed type of verify_flow_info, dump_bb,
16455 split_block fields. Renamed cfgh_split_edge and delete_block
16456 fields.
16457 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16458 split_block, delete_block, split_edge, create_basic_block,
16459 can_merge_blocks_p, merge_blocks): Macros removed.
16460 (cfg_hooks): Do not export.
16461 (verify_flow_info, dump_bb, redirect_edge_and_branch,
16462 redirect_edge_and_branch_force, split_block, split_block_after_labels,
16463 move_block_after, delete_basic_block, split_edge, create_basic_block,
16464 create_empty_bb, can_merge_blocks_p, merge_blocks,
16465 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16466 Declare.
16467 (cfg_layout_rtl_cfg_hooks): Declare.
16468 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
16469 New functions.
16470 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
16471 (redirect_edge_with_latch_update): Removed.
16472 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
16473 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
16474 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
16475 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
16476 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
16477 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
16478 cfghooks.c.
16479 (rtl_create_basic_block): Coding style fix.
16480 (rtl_tidy_fallthru_edge, rtl_move_block_after,
16481 rtl_make_forwarder_block): New functions.
16482 (update_cfg_after_block_merging): Removed.
16483 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
16484 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
16485 to dump_bb.
16486 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
16487 find_if_case_2): Don't update dominators.
16488 * timevar.def (TV_CFG_VERIFY): New.
16489 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
16490 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
16491 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
16492 (remove_bbs): Don't call remove_bbs.
16493 (create_preheader): Use make_forwarder_block.
16494 (mfb_keep_just, mfb_update_loops): New static functions.
16495
16496 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16497
16498 * config/avr/avr.h: Remove target-independent comments about
16499 target macros.
16500
16501 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
16502
16503 * timevar.c (timevar_print): Mention when checking is enabled.
16504
16505 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
16506
16507 * c-lex.c (c_lex): Rename to...
16508 (c_lex_with_flags): Add new parameter to get CPP flags.
16509 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
16510 * c-pragma.h (c_lex_with_flags): Declare.
16511
16512 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16513
16514 * config/mcore/mcore.c (mcore_external_libcall): Add a
16515 comment.
16516 (mcore_return_in_memory): Likewise.
16517
16518 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16519
16520 * config/mcore/mcore-protos.h: Remove the prototype for
16521 mcore_setup_incoming_varargs.
16522 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16523 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
16524 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16525 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16526 (TARGET_STRUCT_VALUE_RTX): Likewise.
16527 (TARGET_RETURN_IN_MEMORY): Likewise.
16528 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16529 (mcore_setup_incoming_varargs): Make it static. Receive the
16530 first argument by reference. Add argument second_time.
16531 (mcore_external_libcall): New.
16532 (mcore_return_in_memory): Likewise.
16533 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
16534 (PROMOTE_FUNCTION_RETURN): Likewise.
16535 (STRUCT_VALUE): Likewise.
16536 (RETURN_IN_MEMORY): Likewise.
16537 (SETUP_INCOMING_VARARGS): Likewise.
16538 (PROMOTE_PROTOTYPES): Likewise.
16539 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16540
16541 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16542
16543 * config/m32r/m32r-protos.h: Remove the prototype for
16544 m32r_setup_incoming_varargs.
16545 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
16546 (TARGET_STRUCT_VALUE_RTX): Likewise.
16547 (TARGET_RETURN_IN_MEMORY): Likewise.
16548 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16549 (m32r_return_in_memory): New.
16550 (m32r_setup_incoming_varargs): Make it static.
16551 * config/m32r/m32r.h: Remove #undef of
16552 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
16553 definitions of PROMOTE_FUNCTION_ARGS and
16554 PROMOTE_FUNCTION_RETURN.
16555 (PROMOTE_PROTOTYPES): Remove.
16556 (RETURN_IN_MEMORY): Likewise.
16557 (STRUCT_VALUE): Likewise.
16558
16559 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16560
16561 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
16562 (TARGET_STRUCT_VALUE_RTX): Likewise.
16563 (m68k_struct_value_rtx): Likewise.
16564 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
16565 STRUCT_VALUE_REGNUM.
16566 (PROMOTE_PROTOTYPES): Remove.
16567 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
16568 STRUCT_VALUE_REGNUM.
16569 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
16570 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
16571
16572 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16573
16574 * config/stormy16/stormy16.c
16575 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
16576 TARGET_BUILD_BUILTIN_VA_LIST.
16577
16578 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16579
16580 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
16581 (TARGET_STRUCT_VALUE_RTX): Likewise.
16582 (TARGET_RETURN_IN_MEMORY): Likewise.
16583 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16584 (v850_return_in_memory): Likewise.
16585 (v850_setup_incoming_varargs): Likewise.
16586 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
16587 (SETUP_INCOMING_VARARGS): Likewise.
16588 (RETURN_IN_MEMORY): Likewise.
16589 (STRUCT_VALUE): Likewise.
16590
16591 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16592
16593 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
16594 (fr30_setup_incoming_varargs): Don't use
16595 STRICT_ARGUMENT_NAMING.
16596 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
16597 (STRICT_ARGUMENT_NAMING): Likewise.
16598
16599 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16600
16601 * config/frv/frv-protos.h: Remove the prototype for
16602 frv_expand_builtin_saveregs.
16603 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
16604 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16605 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
16606 STRUCT_VALUE_REGNUM.
16607 (frv_expand_builtin_saveregs): Make it static.
16608 (frv_struct_value_rtx): New.
16609 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
16610
16611 2004-01-29 Jan Hubicka <jh@suse.cz>
16612
16613 PR c++/12850
16614 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
16615 initial pointers.
16616 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
16617 for functions that will be only inlined.
16618 (cgraph_mark_function_to_output): Likewise.
16619 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
16620 do not clear function body.
16621 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
16622 (tree_rest_of_compilation): Reorganize the logic releasing function
16623 body to use callgraph datastructure.
16624
16625 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16626
16627 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
16628 to register_operand.
16629
16630 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16631
16632 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
16633 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
16634 match_operand expressions so that all match_dups appear
16635 lexically after their corresponding match_operands.
16636
16637 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16638
16639 * config/h8300/h8300.c (WORD_REG_USED): Use
16640 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
16641 (compute_saved_regs): Likewise.
16642 (h8300_expand_prologue): Likewise. Allocate locals after
16643 saving registers.
16644 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
16645 of FRAME_POINTER_REGNUM. Deallocate locals before saving
16646 registers.
16647 (h8300_initial_elimination_offset): Adjust for the new frame
16648 layout, which swaps flips the order of locals and saved
16649 registers.
16650 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
16651 (HARD_FRAME_POINTER_REGNUM): New.
16652 (ELIMINABLE_REGS): Add an elimination rule from
16653 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
16654 (REGISTER_NAMES): Add fp.
16655 * config/h8300/h8300.md (FP_REG): Change to 11.
16656 (HFP_REG): New.
16657
16658 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16659
16660 * genrecog.c (write_node): Remove a useless local variable.
16661
16662 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16663
16664 * Makefile.in (options.c options.h): Use stamp file s-options to
16665 avoid unnecessary rebuilds.
16666 (options.o): New target listing dependencies.
16667 (gtyp-gen.h): Use stamp file s-gtyp-gen.
16668 (STAGESTUFF): Add s-gtyp-gen.
16669
16670 2004-01-28 Richard Henderson <rth@redhat.com>
16671
16672 * ggc.h (ggc_free): Declare.
16673 * ggc-common.c (ggc_realloc): Use it.
16674 * ggc-page.c: Remove lots of inline markers.
16675 (globals): Add free_object_list.
16676 (ggc_alloc): Tidy.
16677 (ggc_free, validate_free_objects): New.
16678 (poison_pages): Provide default.
16679 (ggc_collect): Call validate_free_objects; emit markers to
16680 the debug file.
16681
16682 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16683 Jim Wilson <wilson@specifixinc.com>
16684
16685 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
16686 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
16687 scratch pointer.
16688 (ia64_secondary_reload_class): Delete case GR_REGS.
16689 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
16690 Do not allocate a scratch register.
16691 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
16692
16693 2004-01-28 Jan Hubicka <jh@suse.cz>
16694
16695 * gcse.c (bypass_block): Prevent edges to be unified when we are
16696 about to emit compenstation code.
16697
16698 2004-01-28 Nick Clifton <nickc@redhat.com>
16699
16700 * config/arm/arm.c (arm_expand_builtin): Force second argument of
16701 the setcwx insn into a register.
16702
16703 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
16704
16705 * config/fp-bit.c (pack_d): When using paired doubles to implement
16706 a long double, round the high part separately.
16707 (unpack_d): Fix the case in which the high part is a power of two
16708 and the low part is a nonzero value of the opposite sign.
16709
16710 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16711
16712 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16713 (TARGET_STRUCT_VALUE_RTX): Likewise.
16714 (c4x_external_libcall): Likewise.
16715 (c4x_struct_value_rtx): Likewise.
16716 * config/c4x/c4x.h: Remove.
16717 (STRUCT_VALUE_REGNUM): Likewise.
16718 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16719
16720 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16721
16722 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
16723 (TARGET_STRUCT_VALUE_RTX): Likewise.
16724 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
16725 (STRUCT_VALUE): Likewise.
16726 (PROMOTE_PROTOTYPES): Likewise.
16727
16728 2004-01-27 Roger Sayle <roger@eyesopen.com>
16729
16730 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
16731 CONST_INT before using INTVAL.
16732
16733 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
16734
16735 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
16736 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
16737 frame if !TARGET_BACKCHAIN.
16738 * config/s390/s390.md ("allocate_stack"): Use pattern only if
16739 TARGET_BACKCHAIN.
16740 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
16741
16742 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16743
16744 * ia64.c (ia64_function_arg): When placing HFAs in integer
16745 registers, do not special case the mode used for complex
16746 types. Do not advance int_regs until the current register
16747 is full.
16748
16749 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
16750
16751 PR target/7297
16752 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
16753
16754 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16755
16756 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
16757 slow, unaligned loads and stores while debugging. Fix formatting.
16758
16759 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16760
16761 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
16762 of computing wmode.
16763 (restore_stack_nonlocal): Same.
16764
16765 2004-01-27 Devang Patel <dpatel@apple.com>
16766
16767 * Makefile.in (dwarf2out.o): Depend on input.h
16768 * dbxout.c (dbx_debug_hooks): Add new empty hook for
16769 imported_module_or_decl.
16770 (xcoff_debug_hooks): Same.
16771 * sdbout.c (sdb_debug_hooks): Same.
16772 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
16773 * debug.c (do_nothing_debug_hooks): Same.
16774 (debug_nothing_tree_tree): New function.
16775 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
16776 * dwarf2out.c: Include input.h.
16777 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
16778 (remove_child_TAG): New function.
16779 (dwarf_tag_name): Handle DW_TAG_imported_module.
16780 (gen_subprogram_die): Equate decl number to declaration die. Do not
16781 remove all children dies while reusing declaration die for definition.
16782 Instead, selectively remove only formal parameters.
16783 (gen_variable_die): Equate variable decl to declaration die.
16784 (gen_field_die): Equate field decl to line number.
16785 (force_namespace_die): Replace it with ...
16786 (force_decl_die): ... this.
16787 (force_type_die): New function.
16788 (setup_namespace_context): Replace use of force_namespace_die() with
16789 force_decl_die().
16790 (gen_namespace_die): Same.
16791 (dwarf2out_imported_module_or_decl): New function.
16792
16793 2004-01-27 Bob Wilson <bob.wilson@acm.org>
16794
16795 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
16796 on CQImode and CHImode incoming arguments in register a7.
16797 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
16798 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
16799 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
16800 xtensa_copy_incoming_a7 before reload.
16801
16802 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16803
16804 * coverage.c (get_coverage_counts): Give a different message
16805 if flag_guess_branch_prob is set.
16806 * predict.c (counts_to_freqs): Return an int.
16807 (estimate_bb_frequencies): If counts_to_freqs returns zero,
16808 calculate estimates.
16809
16810 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
16811
16812 * config/iq2000/iq2000-protos.h: Remove the prototype for
16813 iq2000_setup_incoming_varargs.
16814 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16815 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16816 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16817 (TARGET_STRUCT_VALUE_RTX): Likewise.
16818 (TARGET_RETURN_IN_MEMORY): Likewise.
16819 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16820 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16821 (iq2000_return_in_memory): Likewise.
16822 (iq2000_setup_incoming_varargs): Make it static. Receive the
16823 first argument by reference.
16824 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
16825 (PROMOTE_FUNCTION_RETURN): Likewise.
16826 (PROMOTE_PROTOTYPES): Likewise.
16827 (RETURN_IN_MEMORY): Likewise.
16828 (STRUCT_VALUE): Likewise.
16829 (SETUP_INCOMING_VARARGS): Likewise.
16830 (STRICT_ARGUMENT_NAMING): Likewise.
16831
16832 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
16833
16834 * fixinc/fixinc.c (test_test): Initialize res.
16835 (start_flexer): Initialize pz_cmd_save.
16836
16837 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16838
16839 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
16840 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
16841
16842 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16843
16844 PR 7198
16845 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
16846 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
16847 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
16848 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
16849 Possibly rename pattern for consistency.
16850 Remove ??? comments suggesting that this be done.
16851 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
16852 New patterns.
16853 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
16854 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
16855 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
16856 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
16857 Update to match.
16858
16859 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
16860
16861 * config/arm/arm.c (output_return_instruction): Only restore IP
16862 into SP if frame_pointer_needed.
16863
16864 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
16865
16866 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
16867 for SCmode and DCmode if ARCH32.
16868 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
16869 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
16870 if ARCH32.
16871 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
16872 if ARCH32.
16873 (BASE_OUTGOING_VALUE_REG): Likewise.
16874
16875 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
16876
16877 PR target/10904
16878 PR target/13058
16879 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
16880 Forbid mode changes from SImode for lower FP regs if ARCH64.
16881
16882 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16883
16884 * Makefile.in (bt-load.o): Depend on except.h.
16885 * bt-load.c (except.h): #include.
16886 (compute_defs_uses_and_gen): If insn at end of BB can throw
16887 within this function, consider registers used by it unavailable for
16888 btr migration.
16889 (move_btr_def): If insn at end of BB can throw, insert before rather
16890 than after.
16891
16892 * flags.h (flag_btr_bb_exclusive): Declare.
16893 * toplev.c (flag_btr_bb_exclusive): New variable.
16894 (f_options): Add btr-bb-exclusive.
16895 * bt-load.c (augment_live_range): Restore old behaviour if
16896 flag_btr_bb_exclusive is set.
16897 * common.opt: Add entry for -fbtr-bb-exclusive.
16898 * opts.c (common_handle_options): Same.
16899 * doc/invoke.texi: Document -fbtr-bb-exclusive.
16900
16901 * bt-load.c (btrs_live_at_end): New variable.
16902 (compute_defs_uses_and_gen): Compute its pointed-to array.
16903 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
16904 (augment_live_range): When augmenting with a new dominator,
16905 use only its btrs_live_at_end set, but also add in the full set
16906 of the old dominator.
16907 (btr_def_live_range): Use btrs_live_at_end.
16908 (move_btr_def): Set other_btr_uses_before_def, and move new set
16909 to the end of the basic block, if appropriate.
16910 (migrate_btr_defs): Allocate and free btrs_live_at_end.
16911
16912 * bt-load.c (basic_block_freq): Remove outdated comment.
16913
16914 2004-01-27 Alan Modra <amodra@bigpond.net.au>
16915
16916 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
16917 (PREDICATE_CODES): Remove duplicate.
16918 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
16919 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
16920 (MASK_PROFILE_KERNEL): Adjust define.
16921
16922 2004-01-27 Jakub Jelinek <jakub@redhat.com>
16923
16924 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
16925 of long string literals from 32 bytes to sizeof (void *) when !-Os
16926 and to 1 with -Os.
16927
16928 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16929
16930 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
16931 constant addresses in the normal mode.
16932
16933 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16934
16935 * system.h (CHAR_BITFIELD): Delete.
16936 (BOOL_BITFIELD): New.
16937 * c-decl.c (c_scope): Use BOOL_BITFIELD.
16938 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
16939
16940 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16941
16942 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16943 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16944 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16945 (TARGET_STRUCT_VALUE_RTX): Likewise.
16946 (TARGET_RETURN_IN_MEMORY): Likewise.
16947 (arc_return_in_memory): Likewise.
16948 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
16949 (PROMOTE_FUNCTION_RETURN): Likewise.
16950 (RETURN_IN_MEMORY): Likewise.
16951 (STRUCT_VALUE): Likewise.
16952
16953 2004-01-26 Richard Henderson <rth@redhat.com>
16954
16955 * c-parse.in (extension): Use itype.
16956 (SAVE_EXT_FLAGS): Don't allocate a tree.
16957 (RESTORE_EXT_FLAGS): Don't read a tree.
16958
16959 2004-01-26 Jan Hubicka <jh@suse.cz>
16960
16961 * cselib.c (discard_useless_values): Clear out value pointer pointing
16962 to datastructure to be recycled.
16963
16964 2004-01-25 Jan Hubicka <jh@suse.cz>
16965
16966 * genextract.c (main): Do not output the memset when not checking.
16967
16968 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16969
16970 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
16971 switch statement instead of a chain of if statements.
16972
16973 2004-01-26 Jeff Law <law@redhat.com>
16974
16975 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
16976 acute accents for Petur Runolfsson's entry.
16977
16978 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16979
16980 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
16981 (TARGET_RETURN_IN_MEMORY): Likewise.
16982 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
16983 (RETURN_IN_MEMORY): Likewise.
16984
16985 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16986
16987 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
16988 unaligned load/store into smaller loads and stores.
16989
16990 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16991
16992 * function.c (assign_parms): Do not assign
16993 long long argument to memory in prologue if
16994 is it loaded into register.
16995
16996 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16997
16998 PR middle-end/13779
16999 * expr.c (emit_group_load): split constant
17000 correctly into register components of PARALLEL insn.
17001
17002 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17003
17004 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
17005 Use adjust_address_nv directly with appropriate mode.
17006 (restore_stack_nonlocal): Ditto.
17007
17008 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17009
17010 * config/xtensa/xtensa-protos.h: Remove the prototype for
17011 xtensa_builtin_saveregs.
17012 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17013 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17014 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17015 (TARGET_STRUCT_VALUE_RTX): Likewise.
17016 (TARGET_RETURN_IN_MEMORY): Likewise.
17017 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17018 (xtensa_builtin_saveregs): Make it static.
17019 (xtensa_return_in_memory): New.
17020 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
17021 (PROMOTE_FUNCTION_RETURN): Likewise.
17022 (PROMOTE_PROTOTYPES): Likewise.
17023 (STRUCT_VALUE): Likewise.
17024 (RETURN_IN_MEMORY): Likewise.
17025 (EXPAND_BUILTIN_SAVEREGS): Likewise.
17026
17027 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17028
17029 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
17030 (arm_setup_incoming_varargs): Likewise.
17031 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
17032
17033 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17034
17035 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
17036 (cris_setup_incoming_varargs): Likewise.
17037 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
17038
17039 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17040
17041 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
17042 (ns32k_struct_value_rtx): Likewise.
17043 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
17044 NS32K_STRUCT_VALUE_REGNUM.
17045
17046 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17047
17048 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17049 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17050 (TARGET_STRUCT_VALUE_RTX): Likewise.
17051 (arm_struct_value_rtx): Likewise.
17052 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
17053 (STRUCT_VALUE): Likewise.
17054 (STRUCT_VALUE_REGNUM): Likewise.
17055 (PROMOTE_PROTOTYPES): Likewise.
17056
17057 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17058
17059 * config/ia64/ia64-protos.h: Remove the prototype for
17060 ia64_setup_incoming_varargs and ia64_return_in_memory.
17061 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
17062 (TARGET_RETURN_IN_MEMORY): Likewise.
17063 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17064 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17065 (ia64_setup_incoming_varargs): Adjust the arguments to meet
17066 the requirement of TARGET_SETUP_INCOMING_VARARGS.
17067 (ia64_return_in_memory): Make it static. Change the return
17068 type to bool from int. Add an argument.
17069 (ia64_struct_value_rtx): New.
17070 * config/ia64/ia64.h: Remove commented-out definitions of
17071 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
17072 PROMOTE_PROTOTYPES.
17073 (RETURN_IN_MEMORY): Remove.
17074 (STRUCT_VALUE_REGNUM): Likewise.
17075 (STRICT_ARGUMENT_NAMING): Likewise.
17076
17077 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
17078
17079 PR target/13666
17080 * config/sparc/sparc.c (function_arg_union_value): New function.
17081 (function_arg): Use it to deal with unions.
17082 (function_value): Likewise. Define 'regbase' only for ARCH64.
17083 Replace a conditional statement by a simpler one.
17084
17085 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
17086
17087 * config/mips/mips.c (mips16_optimize_gp): Delete.
17088 (mips_reorg): Don't call it.
17089
17090 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17091
17092 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
17093 (floatunsqihf2): Remove operand 6.
17094 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
17095 fix patterns.
17096 (ldi_conditional, ldf_conditional): Validate operands.
17097
17098 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17099
17100 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
17101 (HAVE_GAS_HIDDEN): Undefine as interim measure.
17102
17103 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17104
17105 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
17106 memory references if TARGET_EXPOSE_LDP nonzero.
17107
17108 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17109
17110 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
17111
17112 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17113
17114 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
17115 invalid operand combinations.
17116
17117 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17118
17119 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
17120 c4x_legitimate_address_p. Fix post_modify check.
17121
17122 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
17123 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
17124
17125 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17126
17127 * config/pa/pa-protos.h: Remove the prototype for
17128 hppa_builtin_saveregs. Add a prototype for
17129 pa_return_in_memory.
17130 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
17131 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17132 (TARGET_STRUCT_VALUE_RTX): Likewise.
17133 (TARGET_RETURN_IN_MEMORY): Likewise.
17134 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17135 (pa_struct_value_rtx): Likewise.
17136 (pa_return_in_memory): Likewise.
17137 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
17138 PA_STRUCT_VALUE_REGNUM.
17139 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
17140 (EXPAND_BUILTIN_SAVEREGS): Remove.
17141 (PROMOTE_PROTOTYPES): Likewise.
17142 (PROMOTE_FUNCTION_RETURN): Likewise.
17143
17144 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17145
17146 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
17147 (TARGET_STRUCT_VALUE_RTX): Likewise.
17148 (vax_struct_value_rtx): Likewise.
17149 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
17150 VAX_STRUCT_VALUE_REGNUM.
17151 (PROMOTE_PROTOTYPES): Remove.
17152
17153 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17154
17155 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
17156
17157 2004-01-25 Chris Demetriou <cgd@broadcom.com>
17158
17159 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
17160 and MIPS64 have HI/LO interlocks. Update comment.
17161
17162 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17163
17164 * config/stormy16/stormy16-protos.h: Remove the prototype for
17165 xstormy16_setup_incoming_varargs.
17166 * config/stormy16/stormy16.c
17167 (xstormy16_setup_incoming_varargs): Remove.
17168 (xstormy16_return_in_memory): New.
17169 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
17170 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17171 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17172 (TARGET_STRUCT_VALUE_RTX): Likewise.
17173 (TARGET_RETURN_IN_MEMORY): Likewise.
17174 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
17175 (PROMOTE_FUNCTION_RETURN): Likewise
17176 (PROMOTE_PROTOTYPES): Likewise
17177 (RETURN_IN_MEMORY): Likewise
17178 (STRUCT_VALUE): Likewise
17179 (SETUP_INCOMING_VARARGS): Likewise
17180
17181 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
17182
17183 * config/mips/mips.c (mips_offset_within_object_p): New function.
17184 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
17185 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
17186 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
17187
17188 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17189
17190 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
17191 (PROMOTE_FUNCTION_RETURN): Likewise.
17192
17193 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17194
17195 * config/mn10300/mn10300-protos.h: Remove the prototype for
17196 mn10300_builtin_saveregs.
17197 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
17198 (TARGET_STRUCT_VALUE_RTX): Likewise.
17199 (TARGET_RETURN_IN_MEMORY): Likewise.
17200 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17201 (mn10300_return_in_memory): Likewise.
17202 (mn10300_builtin_saveregs): Make it static.
17203 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
17204 (RETURN_IN_MEMORY): Likewise.
17205 (STRUCT_VALUE): Likewise.
17206 (EXPAND_BUILTIN_SAVEREGS): Likewise.
17207
17208 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
17209
17210 PR bootstrap/13853
17211 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
17212
17213 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17214
17215 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
17216 using ccr.
17217
17218 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17219
17220 * config/i860/i860-protos.h: Remove the prototype for
17221 i860_saveregs.
17222 * config/i860/i860.c (i860_saveregs): Make it static.
17223 (i860_struct_value_rtx): New.
17224 (TARGET_STRUCT_VALUE_RTX): Likewise.
17225 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17226 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
17227 I860_STRUCT_VALUE_REGNUM.
17228 (EXPAND_BUILTIN_SAVEREGS): Remove.
17229
17230 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17231
17232 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
17233 (TARGET_RETURN_IN_MEMORY): Likewise.
17234 (m68hc11_struct_value_rtx): Likewise.
17235 (m68hc11_return_in_memory): Likewise.
17236 * config/m68hc11/m68hc11.h: Remove a commented-out definition
17237 of PROMOTE_PROTOTYPES.
17238 (RETURN_IN_MEMORY): Remove.
17239 (STRUCT_VALUE_REGNUM): Likewise.
17240
17241 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17242
17243 * config/mmix/mmix-protos.h: Remove the prototype for
17244 mmix_setup_incoming_varargs.
17245 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17246 (TARGET_STRUCT_VALUE_RTX): Likewise.
17247 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17248 (mmix_setup_incoming_varargs): Make it static.
17249 (mmix_struct_value_rtx): New.
17250 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
17251 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
17252 (STRUCT_VALUE_REGNUM): Remove.
17253 (SETUP_INCOMING_VARARGS): Likewise.
17254
17255 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17256
17257 * config/mips/mips-protos.h: Remove the prototypes for
17258 mips_setup_incoming_varargs and mips_return_in_memory.
17259 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17260 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17261 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17262 (TARGET_STRUCT_VALUE_RTX): Likewise.
17263 (TARGET_RETURN_IN_MEMORY): Likewise.
17264 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17265 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17266 (mips_setup_incoming_varargs): Match the prototype for
17267 TARGET_SETUP_INCOMING_VARARGS.
17268 (mips_return_in_memory): Make it static. Add argument fntype.
17269 (mips_strict_argument_naming): New.
17270 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
17271 (PROMOTE_FUNCTION_ARGS): Likewise.
17272 (PROMOTE_FUNCTION_RETURN): Likewise.
17273 (STRUCT_VALUE): Likewise.
17274 (RETURN_IN_MEMORY): Likewise.
17275 (SETUP_INCOMING_VARARGS): Likewise.
17276 (STRICT_ARGUMENT_NAMING): Likewise.
17277
17278 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17279
17280 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
17281 (TARGET_RETURN_IN_MEMORY): Likewise.
17282 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17283 (ip2k_return_in_memory): Likewise.
17284 (ip2k_setup_incoming_varargs): Likewise.
17285 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
17286 (STRUCT_VALUE): Likewise.
17287 (STRUCT_VALUE_INCOMING): Likewise.
17288 (SETUP_INCOMING_VARARGS): Likewise.
17289
17290 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17291
17292 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
17293 (TARGET_RETURN_IN_MEMORY): Likewise.
17294 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17295 (avr_return_in_memory): Remove.
17296 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
17297 (STRUCT_VALUE): Likewise.
17298 (STRUCT_VALUE_INCOMING): Likewise.
17299 (STRICT_ARGUMENT_NAMING): Likewise.
17300
17301 2004-01-25 Jan Hubicka <jh@suse.cz>
17302
17303 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
17304
17305 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
17306
17307 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
17308 (mips_regno_mode_ok_for_base_p): Declare.
17309 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
17310 (FRAME_POINTER_REGNUM): Renumber to 78.
17311 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
17312 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
17313 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
17314 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
17315 (REG_MODE_OK_FOR_BASE_P): Likewise.
17316 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
17317 entry for 77 to "$arg" and entry for 78 to "$frame".
17318 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
17319 (mips_reg_mode_ok_for_base_p): Remove.
17320 (mips_regno_mode_ok_for_base_p): New function, derived from old
17321 BASE_REG_P macro. Don't enforce the mips16 stack pointer
17322 restrictions unless we're being strict.
17323 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
17324
17325 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17326
17327 * c-common.h: Fix comment typos.
17328 * c-decl.c: Likewise.
17329 * cgraphunit.c: Likewise.
17330 * combine.c: Likewise.
17331 * et-forest.c: Likewise.
17332 * flow.c: Likewise.
17333 * function.c: Likewise.
17334 * ifcvt.c: Likewise.
17335 * integrate.c: Likewise.
17336 * jump.c: Likewise.
17337 * postreload.c: Likewise.
17338 * varray.c: Likewise.
17339
17340 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17341
17342 * doc/frontends.texi: Update copyright.
17343 * doc/gcov.texi: Likewise.
17344 * doc/gty.texi: Likewise.
17345 * doc/sourcebuild.texi: Likewise.
17346 * doc/standards.texi: Likewise.
17347
17348 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
17349
17350 PR target/12978
17351 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
17352 Remove movstrqi_small because it conflicts with movstrqi_large.
17353
17354 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17355
17356 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17357 (TARGET_STRUCT_VALUE_RTX): Likewise.
17358 (cris_struct_value_rtx): Likewise.
17359 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
17360 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
17361 STRUCT_VALUE_REGNUM.
17362 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
17363
17364 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
17365
17366 PR bootstrap/13848
17367 * cse.c (cse_cc_succs): Change the mode of the source expression
17368 as soon as decide we need a new mode. Don't permit changing modes
17369 if we found a match in a successor block.
17370 (cse_condition_code_reg): Save original mode of source expression
17371 so that we know whether we have to change the mode in other
17372 insns.
17373
17374 2004-01-24 Jan Hubicka <jh@suse.cz>
17375
17376 * emit-rtl.c (change_address, adjust_address_1, offset_address,
17377 widen_memory_access): Return early when there is nothing to change.
17378
17379 2004-01-24 Jakub Jelinek <jakub@redhat.com>
17380
17381 * simplify-rtx.c (simplify_relational_operation): Don't
17382 simplify address == constant into address + -constant == 0.
17383
17384 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17385
17386 * gcc.c (process_command): Don't internationalize the
17387 Copyright message.
17388 * mips-tfile.c (main): Likewise.
17389
17390 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
17391
17392 * cse.c: (cse_cc_succs) Fix comparison warning.
17393
17394 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17395
17396 * config/h8300/h8300.md: Remove extraneous USE in expanders.
17397
17398 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17399
17400 * config/h8300/h8300-protos.h: Provide prototypes for
17401 h8300_legitimate_constant_p and h8300_legitimate_address_p.
17402 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
17403 (h8300_rtx_ok_for_base_p): Likewise.
17404 (h8300_legitimate_address_p): Likewise.
17405 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
17406 h8300_legitimate_constant_p.
17407 (RTX_OK_FOR_BASE_P): Remove.
17408 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
17409
17410 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17411
17412 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
17413 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
17414 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
17415 (REG_OK_FOR_BASE_STRICT_P): Likewise.
17416 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
17417 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
17418 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
17419 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
17420
17421 2004-01-24 Jan Hubicka <jh@suse.cz>
17422
17423 * cselib.c (remove_useless_values): Do not access discarded values.
17424
17425 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
17426
17427 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
17428 arrays.
17429
17430 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
17431
17432 * recog.c: Fix a typo in copyright.
17433
17434 2004-01-23 Andrew Pinski <apinski@apple.com>
17435
17436 * config/rs6000/rs6000.md (call): Fix misappiled patch.
17437 (call_value): Likewise.
17438
17439 2004-01-23 Richard Henderson <rth@redhat.com>
17440
17441 PR opt/12941
17442 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
17443 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
17444 if SHIFT_COUNT_TRUNCATED is set.
17445
17446 2004-01-23 Bob Wilson <bob.wilson@acm.org>
17447
17448 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
17449 separate real and imaginary parts.
17450 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
17451
17452 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
17453
17454 PR target/13674
17455 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
17456 loading into GPR.
17457
17458 2004-01-23 Jan Hubicka <jh@suse.cz>
17459
17460 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
17461 change.
17462
17463 * alloc-pool.c (align_four): Kill.
17464 (create_alloc_pool): Align size to eight.
17465 (free_alloc_pool, free_pool): Invalidate deallocated data.
17466
17467 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
17468
17469 PR gcc/1532
17470 * cse.c (cse_change_cc_mode): New static function.
17471 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
17472 (cse_condition_code_reg): New function.
17473 * rtl.h (cse_condition_code_reg): Declare.
17474 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
17475 * target.h (struct gcc_target): Add fixed_condition_code_regs and
17476 cc_modes_compatible.
17477 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17478 (TARGET_CC_MODES_COMPATIBLE): Define.
17479 (TARGET_INITIALIZER): Add new initializers.
17480 * targhooks.c (default_cc_modes_compatible): New function.
17481 * targhooks.c (default_cc_modes_compatible): Declare.
17482 * hooks.c (hook_bool_intp_intp_false): New function.
17483 * hooks.h (hook_bool_intp_intp_false): Declare.
17484 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17485 (TARGET_CC_MODES_COMPATIBLE): Define.
17486 (ix86_fixed_condition_code_regs): New static function.
17487 (ix86_cc_modes_compatible): Likewise.
17488 * doc/tm.texi (Condition Code): Document new hooks.
17489
17490 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17491
17492 * fixinc/inclhack.def (bad_lval): Renamed to ...
17493 (alpha_bad_lval): ... this.
17494 Removed file list.
17495 Restrict to alpha*-dec-osf*.
17496 * fixinc/fixincl.x: Regenerate.
17497 * fixinc/tests/base/dirent.h: Remove, moving test ...
17498 * fixinc/tests/base/testing.h: ... here, reflecting new name.
17499
17500 2004-01-23 Zack Weinberg <zack@codesourcery.com>
17501
17502 PR c/13814
17503 * c-decl.c (diagnose_mismatched_decls): Also discard a
17504 built-in if we encounter an old-style definition with the
17505 same name.
17506
17507 2004-01-23 Jakub Jelinek <jakub@redhat.com>
17508
17509 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
17510 set to default{32,64}.
17511
17512 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17513
17514 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
17515 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
17516
17517 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
17518 Olivier Hainque <hainque@act-europe.fr>
17519
17520 * fold-const.c (fold_binary_op_with_conditional_arg): Only
17521 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
17522
17523 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
17524
17525 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
17526 size for minipool references.
17527
17528 2004-01-23 Roger Sayle <roger@eyesopen.com>
17529
17530 * real.c (real_floor, real_ceil): Tweak to allow input and output
17531 arguments to overlap.
17532 (real_round): New function to implement round(3m) semantics.
17533 * real.h (real_round): Prototype here.
17534 * builtins.c (fold_builtin_round): New function to constant fold
17535 round, roundf and roundl.
17536 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
17537
17538 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
17539
17540 PR optimization/13819
17541 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
17542 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
17543 (sh_handle_sp_switch_attribute): Remove warning.
17544
17545 2004-01-23 Jan Hubicka <jh@suse.cz>
17546
17547 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
17548
17549 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
17550
17551 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
17552 may or may not return non-NIL.
17553 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
17554 check CANNOT_CHANGE_MODE_CLASS
17555
17556 2004-01-23 Jan Hubicka <jh@suse.cz>
17557
17558 * basic-block.h (PROP_POSTRELOAD): New macro.
17559 (CLEANUP_LOG_LINKS): New.
17560 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
17561 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
17562
17563 * cselib.c (value_pool): New.
17564 (new_cselib_val): Use pool.
17565 (cselib_init): Initialize value_pool
17566 (cselib_finish): Free pool.
17567
17568 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
17569
17570 * config/sparc/sparc.c (scan_record_type): New function.
17571 (function_arg_slotno): Use it to determine which kinds of
17572 registers the record can be passed in.
17573
17574 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
17575
17576 * config/pa/fptr.c: Fix old-style definition.
17577
17578 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
17579
17580 PR optimization/13724
17581 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
17582 represents the zero bits produced by a ZERO_EXTEND operation.
17583
17584 2004-01-22 Roger Sayle <roger@eyesopen.com>
17585
17586 PR optimization/13821
17587 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
17588 correctly calculate the lowpart offset of the contracted subreg.
17589
17590 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
17591
17592 * doc/invoke.texi (Optimize Options): Note that --param arguments
17593 are subject to change without notice.
17594
17595 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17596
17597 * config.gcc (mips-sgi-irix6*o32): Removed.
17598 * config/mips/iris6-o32-as.h: Likewise.
17599 * config/mips/iris6-o32-gas.h: Likewise.
17600 * config/mips/iris6-o32.h: Likewise.
17601
17602 2004-01-22 Jan Hubicka <jh@suse.cz>
17603
17604 * cfgcleanup.c (first_pass): New static variable.
17605 (try_forward_edges): Add work limiting check for threading.
17606 (try_crossjump_bb): Add work limiting check for crossjumping.
17607 (try_optimize_cfg): Maintain first pass variable.
17608
17609 2004-01-22 Bob Wilson <bob.wilson@acm.org>
17610
17611 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
17612 handles complex and vector modes.
17613
17614 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17615
17616 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
17617 (REG_OK_FOR_BASE_P_STRICT): Likewise.
17618 (STRICT): Likewise.
17619
17620 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17621
17622 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
17623 (genrtl_for_stmt): Remove emit_nop calls.
17624
17625 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17626
17627 PR target/13713
17628 PR target/13324
17629 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
17630 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
17631 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
17632
17633 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17634
17635 * config/arm/arm.c: Include "debug.h".
17636 (thumb_pushpop): Take two new arguments. Add some commentary.
17637 Output frame information when pushing.
17638 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
17639 thumb_pushpop.
17640 (thumb_output_function_prologue): Likewise. Accumulate a CFA
17641 offset, and pass it to thumb_pushpop. Output CFI information.
17642 (thumb_expand_prologue): Add some frame-related markers and notes.
17643
17644 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
17645
17646 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
17647 for TARGET_64BIT.
17648 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
17649 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
17650
17651 2004-01-22 Roger Sayle <roger@eyesopen.com>
17652 Paolo Bonzini <bonzini@gnu.org>
17653
17654 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
17655 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
17656 * rtl.h (subreg_lsb_1): Prototype here.
17657 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
17658 sign extensions.
17659
17660 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17661
17662 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
17663 macro need not be defined if jump-tables should contain
17664 relative addresses only when -fPIC or -fPIC is in effect.
17665
17666 2004-01-22 Jan Hubicka <jh@suse.cz>
17667
17668 * alias.c (reg_base_value): Turn into varray.
17669 (reg_base_value_size): Kill.
17670 (old_reg_base_value): New deletable varray.
17671 (alias_invariant_size): New variable.
17672 (REG_BASE_VALUE): Update to use varray.
17673 (find_base_value): Likewise.
17674 (record_set): Likewise.
17675 (record_base_value): Likewise.
17676 (memrefs_conflict_p): Likewise.
17677 (record_set): Likewise
17678 (record_base_value): Likewise.
17679 (memrefs_conflict_p): Use alias_invariant_size.
17680 (init_alias_analysis): Use varray; set alias_invariant_size;
17681 rescale other arrays to be sized by maxreg.
17682 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
17683
17684 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17685
17686 * config/sparc/sparc.c (function_arg_slotno): Use
17687 FLOAT_TYPE_P to detect FP fields in structures.
17688 (function_arg_record_value_1): Likewise.
17689 (function_arg_record_value_2): Likewise.
17690
17691 2004-01-22 Jan Hubicka <jh@suse.cz>
17692
17693 * function.c (allocate_struct_function): Do not initialize expr, emit
17694 and varasm.
17695 (prepare_function_start): Do it here.
17696 * c-parse.in (maybe_type_qual): Do not produce line number notes.
17697
17698 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17699
17700 PR target/13559
17701 * config/sparc/sparc.c (function_arg_record_value_3): Revert
17702 to 'word_mode' once the first slot has been filled.
17703
17704 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
17705
17706 * config/sparc/sparc.c (function_arg_record_value_1): Fix
17707 computation of the number of integer registers required.
17708
17709 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17710
17711 * config/i386/i386.md: Simplify certain comparisons of
17712 const_int.
17713
17714 2004-01-21 Andrew Pinski <apinski@apple.com>
17715
17716 PR target/13785
17717 * config/rs6000/rs6000.md (call_value): Force operand
17718 1 not operand 0 into a register.
17719
17720 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17721
17722 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
17723 unwind-dw2-fde.h: Update copyright.
17724
17725 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17726
17727 * pa-protos.h: Update copyright.
17728 * pa.h: Likewise.
17729 * pa.md: Likewise.
17730
17731 2004-01-21 Caroline Tice <ctice@apple.com>
17732
17733 PR target/12308
17734 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
17735 flags register.
17736 (fix_truncdfdi2): Likewise.
17737 (fix_truncsfdi2): Likewise.
17738 (*fix_truncdi_1): Likewise.
17739 (fix_truncxfsi2): Likewise.
17740 (fix_truncdfsi2): Likewise.
17741 (fix_truncsfsi2): Likewise.
17742 (*fix_truncsi_1): Likewise.
17743 (fix_truncxfhi2): Likewise.
17744 (fix_truncdfhi2): Likewise.
17745 (fix_truncsfhi2): Likewise.
17746 (*fix_trunchi_1): Likewise.
17747
17748 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17749
17750 * alias.c, basic-block.h, c-common.c, c-common.h,
17751 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
17752 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
17753 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
17754 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
17755 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
17756 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
17757 genautomata.c, genconditions.c, genemit.c, genflags.c,
17758 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
17759 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
17760 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
17761 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
17762 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
17763 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
17764 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
17765 unwind.h, varray.c, varray.h: Update copyright.
17766
17767 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17768
17769 * config/h8300/coff.h: Update copyright.
17770 * config/h8300/elf.h: Likewise.
17771 * config/h8300/h8300-protos.h: Likewise.
17772 * config/h8300/h8300.c: Likewise.
17773 * config/h8300/h8300.h: Likewise.
17774 * config/h8300/h8300.md: Likewise.
17775
17776 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17777
17778 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
17779 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
17780 ultrix_unistd): New hacks.
17781 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
17782 ULTRIX_CONST2_CHECK): Add checks.
17783 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
17784 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
17785 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
17786 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
17787 * fixinc/tests/base/locale.h: New file.
17788 * fixinc/fixincl.x: Rebuilt.
17789
17790 2004-01-21 Andreas Jaeger <aj@suse.de>
17791 Michael Matz <matz@suse.de>
17792
17793 * doc/extend.texi (Extended Asm): Clarify memory clobber.
17794
17795 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17796
17797 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
17798 _Jv_RegisterClasses through a function pointer.
17799
17800 2004-01-21 Falk Hueffner <falk@debian.org>
17801
17802 PR target/12898
17803 * config/alpha/alpha.c (alpha_emit_set_const_1): If
17804 no_new_pseudos, use gen_rtx_SET directly for SImode constants
17805 which need multiple instructions to emit.
17806
17807 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
17808
17809 * config/m32r/m32r.h (CPP_SPEC): Define.
17810
17811 2004-01-21 Zack Weinberg <zack@codesourcery.com>
17812
17813 * c-decl.c (merge_decls): Kill different_binding_level and
17814 different_tu arguments; simplify throughout.
17815 (duplicate_decls): Likewise.
17816 (pushdecl, merge_translation_unit_decls): Update calls to
17817 duplicate_decls.
17818
17819 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17820
17821 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
17822 $(SYSTEM_H).
17823 (print-rtl1.o): Depend on $(SYSTEM_H).
17824
17825 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17826
17827 PR bootstrap/12730
17828 * configure.ac: Delete definition and subsitution of docdir.
17829 Add info, man, srcman and srcinfo to target hooks. Create doc/
17830 directory.
17831 * configure: Regenerate.
17832 * Makefile.in: Don't substitute docdir and delete all references
17833 throughout.
17834 (MAKEINFOFLAGS): Define.
17835 (stmp-docobjdir): Delete.
17836 (INFOFILES, MANFILES): Define.
17837 (info): Call lang.info, srcinfo and lang.srcinfo.
17838 (generated-manpages): Call lang.man, srcman and lang.srcman.
17839 (srcinfo, srcman): New rules to copy back files to source directory.
17840 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
17841 (install-man): Revamp rule.
17842 (clean): Update dvi directory.
17843 (distclean): Delete TAGS from front end directorys.
17844 (maintainer-clean): Delete all document files in source directory.
17845
17846 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
17847 (objc.srcman, objc.srcinfo): Likewise.
17848
17849 2004-01-20 Bruce Korb <bkorb@gnu.org>
17850
17851 * fixinc/inclhack.def(math_exception): bypass only for glibc.
17852 (matherr_decl): rename & relocate as exception_structure.
17853 This fix must precede the math_exception fix.
17854
17855 2004-01-20 Roger Sayle <roger@eyesopen.com>
17856
17857 * fold-const.c (fold_convert): Rename to fold_convert_const.
17858 (fold_convert_const): Change arguments to take a tree_code,
17859 a type and the operand/expression to be converted. Return
17860 NULL_TREE if no simplification is possible. Add support for
17861 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
17862 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
17863 Adjust call to fold_convert to match new fold_convert_const.
17864 Avoid modifying the tree passed to fold in-place.
17865
17866 2004-01-21 Alan Modra <amodra@bigpond.net.au>
17867
17868 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
17869 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
17870 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
17871
17872 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17873
17874 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
17875 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
17876 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
17877 (emit_move_sequence): Check scratch_reg first in various if statements.
17878 Extend source simplification to handle all 64-bit CONST_INTs.
17879 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
17880 frame size.
17881 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
17882 frame offset calculations.
17883 * pa.h (NEW_HP_ASSEMBLER): Add comment.
17884 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
17885 LEGITIMATE_64BIT_CONST_INT_P): Define.
17886 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
17887 any CONST_INT as legitimate during and after reload.
17888 (VAL_32_BITS_P, INT_32_BITS): Define.
17889 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
17890
17891 2004-01-20 Jan Hubicka <jh@suse.cz>
17892
17893 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
17894 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
17895 containing hard regs are shared.
17896 (gen_hard_reg_clobber): New function.
17897 (hard_reg_clobbers): New array.
17898 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
17899 (copy_rtx): Do not copy clobbers containing hard regs.
17900 * rtl.h (gen_hard_reg_clobber): Declare.
17901
17902 2004-01-20 Jan Hubicka <jh@suse.cz>
17903
17904 * varray.c: Include hashtab.h
17905 (varray_descriptor): New structure.
17906 (hash_descriptor, eq_descriptor, varray_descriptor,
17907 print_statistics): New static functions
17908 (varray_init, varray_grow): Update statistics
17909 (dump_varray_statistics): New function.
17910 * varray.h (dump_varray_statistics): Declare.
17911 * toplev.c (finalize): Call it.
17912 * Makefile.in (varray.o): Add dependency.
17913
17914 2004-01-20 Jan Hubicka <jh@suse.cz>
17915
17916 * cselib.c: Include alloc-pool.h
17917 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
17918 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
17919 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
17920 unchain_one_elt_loc_list_pool, unchain_one_value,
17921 new_cselib_val): Simplify using allocpool.
17922 (cselib_init): Initialize allocpools.
17923 (cselib_finish): Finish allocpools.
17924 * Makefile.in (cselib.o): Depend on alloc-pool.h
17925
17926 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
17927
17928 * config/mips/mips.c (mips_load_call_address): Make the call insn
17929 use $gp if it could be calling a lazy binding stub.
17930
17931 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
17932
17933 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
17934 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17935 (TARGET_STRUCT_VALUE_RTX): Likewise.
17936 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
17937 (PROMOTE_FUNCTION_RETURN): Remove.
17938 (STRUCT_VALUE): Remove.
17939
17940 2004-01-20 Denis Chertykov <denisc@overta.ru>
17941
17942 PR bootstrap/13735
17943 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
17944 register as pointer after reload.
17945
17946 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17947
17948 PR optimization/12440
17949 * loop.c: Include ggc.h.
17950 (loop_optimize): Run garbage collector between optimization of loops.
17951 * Makefile.in (loop.o): Add GGC_H dependency.
17952
17953 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
17954
17955 * gcc/config/rs6000/rs6000.c (function_arg) Handle
17956 vector register special in function without prototype.
17957 (function_arg_advance): Vector parameters get always
17958 GPRs allocated for the linux64 target.
17959
17960 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17961
17962 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
17963 not TARGET_M32RX_MASK.
17964
17965 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
17966
17967 PR target/13557
17968 * config/sparc/sparc.c (function_arg): Reorder the cases.
17969
17970 2004-01-19 Per Bothner <per@bothner.com>
17971
17972 Move cpp_reader's line_maps field to a shared global.
17973 * cpphash.h (cpp_reader): Rename line_maps field to line_table
17974 and change the type to a pointer rather than a struct.
17975 * cppinit.c (cpp_push_main_field): Adjust accordingly.
17976 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
17977 Likewise.
17978 * cppfiles.c (validate_pch): Likewise.
17979 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
17980 Likewise.
17981 * cpperror.c (print_location): Likewise.
17982 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
17983 * cppinit.c (cpp_create_reader): Handle new parameter.
17984 (cpp_destroy): Don't free line_maps - that's no longer our job.
17985 * input.h (line_table): New variable.
17986 * toplev.c (line_table): Declare variable.
17987 (general_init): Initialize line_table.
17988 * c-opts.c (c_common_init_options): Pass line_table to
17989 cpp_create_reader.
17990 * fix-header.c (read_scan_file): New local variable line_table.
17991 Initialize, and pass it to cpp_create_reader.
17992 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
17993 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
17994
17995 2004-01-19 Per Bothner <per@bothner.com>
17996
17997 Implement a cache for linemap_lookup.
17998 * line-map.h (struct_line_maps): Add cache field.
17999 * line-map.c (linemap_init): Zero cache field.
18000 (linemap_add): Set cache field to offset of newly allocated map.
18001 (linemap_lookup): Use and set cache field.
18002
18003 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
18004
18005 PR optimization/13567
18006 * cse.c (cse_basic_block): Call cse_insn with a non-null
18007 libcall_insn for the last SET insn of a no-confilict block.
18008
18009 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
18010
18011 * Makefile.in (target_noncanonical, program_transform_name): Use
18012 immediate define instead of deferred.
18013 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
18014 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
18015 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
18016 deferred backquote.
18017
18018 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
18019
18020 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
18021 true unconditionally.
18022 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
18023 Remove.
18024 (build_unary_op, build_modify_expr): Don't handle extended
18025 lvalues.
18026 (build_component_ref, build_conditional_expr): Call non_lvalue
18027 instead of pedantic_non_lvalue.
18028 (build_c_cast): Don't condition use of non_lvalue on pedantic.
18029 * fold-const.c (fold): Don't check pedantic directly for
18030 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
18031 passed to pedantic_non_lvalue.
18032 * doc/extend.texi: Remove documentation of extended lvalues.
18033
18034 2004-01-19 Roger Sayle <roger@eyesopen.com>
18035
18036 PR optimization/5263
18037 * simplify-rtx.c (associative_constant_p): Delete.
18038 (simplify_associative_operation): Rewrite to linearize terms, and
18039 attempt to simplify new term against both left and right subterms.
18040 (simplify_binary_operation): Call swap_commutative_operands_p on
18041 op0 and op1, not trueop0 and trueop1. Move the initialization of
18042 trueop0 and trueop1 down to where first needed.
18043 (simplify_relational_operation): Likewise.
18044 * rtlanal.c (commutative_operand_precedence): Also order constant
18045 operands using avoid_constant_pool_reference.
18046
18047 2004-01-19 Richard Henderson <rth@redhat.com>
18048
18049 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
18050 don't check memory mode.
18051 (unaligned_memory_operand): Likewise.
18052 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
18053 abort for op0 not MEM.
18054
18055 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
18056 is not a reg, copy to a scratch first.
18057 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
18058 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
18059 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
18060 (reload_inqi, reload_inhi): Fix mode of op0.
18061 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
18062 reload_outhi_help): Likewise. Use define_insn_and_split.
18063
18064 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
18065 as well as $29 dead.
18066
18067 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
18068
18069 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
18070 "tls_object" for thread-local objects.
18071 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
18072 "#tls" for thread-local sections.
18073 * configure.ac (thread-local checks): Specify --fatal-warnings in
18074 every binutils-specific checks. For sparc*-*-*, test whether the
18075 OS is Solaris and the tools are native and act accordingly.
18076 * configure: Rebuild.
18077
18078 2004-01-19 Jeff Law <law@redhat.com>
18079
18080 * contrib.texi: Update Paolo Carlini's entry. New entries for
18081 Jerry Quinn and Petur Runolfsson.
18082
18083 2004-01-19 Roger Sayle <roger@eyesopen.com>
18084
18085 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
18086 size, don't use the larger zero-extending loads.
18087
18088 2004-01-19 Richard Henderson <rth@redhat.com>
18089
18090 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
18091 * alpha.md (UNSPEC_NT_LDA): Remove.
18092 (UNSPEC_CVTLQ, cvtlq): New.
18093 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
18094 (extendsidi2_fix): Remove.
18095 (extendsidi2 splitter): Use cvtlq.
18096 (extendsidi2 fp peepholes): Remove.
18097 (cvtql): Use SFmode instead of SImode.
18098 (fix_trunc?fsi): Update to match.
18099 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
18100 (movsi): Rename from movsi_nofix, remove f alternatives.
18101 (movsi_nt_vms): Similarly.
18102 (movsi_fix, movsi_nt_vms_fix): Remove.
18103 (nt_lda): Remove.
18104 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
18105
18106 2004-01-19 Jan Hubicka <jh@suse.cz>
18107
18108 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
18109 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
18110 list.
18111 (cgraph_remove_unreachable_nodes): New function
18112 (cgraph_decide_inlining_of_small_function): Fix pasto.
18113 (cgraph_decide_inlining_incrementally): Fix pasto.
18114 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
18115
18116 2004-01-19 Steven Bosscher <stevenb@suse.de>
18117
18118 * gengtype.c (header_file): Make it static.
18119 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
18120 * gengtype.h (header_file): No longer extern.
18121
18122 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18123
18124 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
18125 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
18126 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
18127
18128 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18129
18130 * stmt.c (HAVE_casesi): Define it not already defined.
18131 (HAVE_tablejump): Likewise.
18132 (expand_end_case_type): Resort to the binary tree method if
18133 neither casesi or tablejump is available.
18134
18135 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
18136
18137 * final.c (final_scan_insn): Make non-static again.
18138 * output.h (final_scan_insn): Re-add prototype.
18139 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
18140 to final_scan_insn call.
18141 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
18142 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
18143 * config/pa/pa.c (output_lbranch, output_call): Likewise.
18144 * config/sh/sh.c (print_slot): Likewise.
18145 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
18146 (output_sibcall, sparc_flat_function_epilogue): Likewise.
18147
18148 2004-01-18 Jan Hubicka <jh@suse.cz>
18149
18150 * basic-block.h (try_redirect_by_replacing_jump): Declare.
18151 * cfgcleanup.c (try_optimize_cfg): Use it.
18152 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
18153 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
18154 Kill hack.
18155 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
18156
18157 Revert:
18158 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18159
18160 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18161 even after reload, just don't remove the actual jump tables.
18162
18163 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18164
18165 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
18166
18167 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18168
18169 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
18170 the size of a pointer in bytes.
18171
18172 2004-01-18 Roger Sayle <roger@eyesopen.com>
18173
18174 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
18175 live "next" variable, which could lead to an infinite loop.
18176
18177 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
18178
18179 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
18180 block.
18181
18182 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18183 Check for NULL in the chain and remove repeated code.
18184
18185 2004-01-18 Jan Hubicka <jh@suse.cz>
18186
18187 * coverage.c (checksum_string): Rename to ...
18188 (coverage_checksum_string): ... this one, Use crc32_string; recognize
18189 names containing random number and zero the number out in order to get
18190 match.
18191
18192 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
18193
18194 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
18195
18196 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18197
18198 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
18199 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
18200 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
18201 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
18202 doc/trouble.texi: Remove trailing whitespace.
18203
18204 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
18205
18206 PR target/7618
18207 * config/mips/mips.c: Include cfglayout.h.
18208 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18209 (mips_unspec_offset_high): Add temporary register argument.
18210 (mips_load_call_address): New function, split out from...
18211 (mips_expand_call): ...here.
18212 (mips_output_cplocal): New function.
18213 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
18214 (mips_emit_loadgp): New function, split out from...
18215 (mips_expand_prologue): ...here.
18216 (mips_output_mi_thunk): New function.
18217
18218 2004-01-17 Bernardo Innocenti <bernie@develer.com>
18219
18220 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
18221 mcpu32): Remove redundant checks for implied target predefines.
18222
18223 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
18224
18225 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18226 Return type is unsigned int not int.
18227 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18228 Likewise.
18229
18230 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18231
18232 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
18233 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
18234 "GNU/Linux" and "Microsoft Windows" terminology.
18235
18236 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18237
18238 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
18239 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
18240 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
18241 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
18242 @smallexample instead of @example.
18243
18244 2004-01-17 Ziemowit Laski <zlaski@apple.com>
18245
18246 * objc/objc-act.c (build_objc_method_call): Use target
18247 hooks instead of macros to determine if ..._stret
18248 dispatchers should be used (NeXT runtime only).
18249
18250 2004-01-17 Roger Sayle <roger@eyesopen.com>
18251
18252 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
18253 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
18254
18255 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
18256
18257 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
18258 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
18259 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
18260 macros.
18261 * reload1.c (emit_reload_insns): Use them.
18262 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
18263 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
18264 for NULL PATTERN.
18265
18266 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
18267
18268 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
18269 (final_scan_insn): Update to take an additional SEEN argument. Emit
18270 a line note after the prologue. Make static.
18271 (line_note_exists): Remove.
18272 (final): Don't initialize line_note_exists. Update call to
18273 final_scan_insn.
18274 * output.h (final_scan_insn): Remove prologue.
18275 * function.c (set_insn_locators): Update comment.
18276 (thread_prologue_and_epilogue_insns): Add a comment.
18277
18278 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
18279
18280 PR target/10781
18281 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18282 Prototype.
18283 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18284 New function.
18285 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
18286 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
18287 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
18288
18289 2004-01-17 Jan Hubicka <jh@suse.cz>
18290
18291 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
18292 commit.
18293
18294 * toplev.c (HAVE_conditional_execution): Provide default.
18295 (rest_of_handle_reorder_blocks): For conditional_execution target
18296 update liveness once after all transformations
18297 (rest_of_compilation): Do crossjumping before ce3.
18298
18299 2004-01-17 Geoffrey Keating <geoffk@apple.com>
18300
18301 * alias.c (new_alias_set): Mark last_alias_set for PCH.
18302 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
18303 for PCH.
18304 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
18305 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
18306 (get_TOC_alias_set): Mark 'set' for PCH.
18307
18308 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18309
18310 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18311 even after reload, just don't remove the actual jump tables.
18312
18313 2004-01-17 J. Brobecker <brobecker@gnat.com>
18314
18315 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
18316 Remove checks for is_ada() and TREE_UNSIGNED.
18317 (subrange_type_die): Emit a byte_size attribute if the subrange
18318 type size is different from the base type size.
18319 (modified_type_die): Replace call to is_ada_subrange_type() by
18320 call to is_subrange_type().
18321
18322 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
18323
18324 * config/sh/sh.c: Include ggc.h.
18325
18326 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18327
18328 * Makefile.in (MD5_H): New.
18329 (fold-const.o): Depend on md5.h.
18330 (dwarf2out.o): Likewise.
18331 (cppfiles.o): Likewise.
18332 * cppfiles.c: Include md5.h.
18333 (should_stack_file): Check against list read from PCH file.
18334 (struct pchf_data): New.
18335 (pchf): New variable.
18336 (struct pchf_adder_info): New.
18337 (pchf_adder): New.
18338 (pchf_save_compare): New.
18339 (_cpp_save_file_entries): New.
18340 (_cpp_read_file_entries): New.
18341 (struct pchf_compare_data): New.
18342 (pchf_compare): New.
18343 (check_file_against_entries): New.
18344 * cpphash.h (_cpp_save_file_entries): Prototype.
18345 (_cpp_read_file_entries): Prototype.
18346 * cpppch.c (cpp_write_pch_state): Write the list of headers.
18347 (cpp_read_state): Read the list of headers.
18348
18349 2004-01-17 Jan Hubicka <jh@suse.cz>
18350
18351 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
18352 builtin_expect specially.
18353 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
18354 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
18355 * invoke.texi (max-inline-insns-single): Set to 100.
18356 (large-function-insns): Set to 3000.
18357
18358 2004-01-16 Eric Christopher <echristo@redhat.com>
18359 Chandrakala Chavva <cchavva@redhat.com>
18360
18361 * cppcharset.c (one_iso88591_to_utf8): New function.
18362 (convert_iso88591_utf8): Ditto. Use.
18363 (conversion_tab): Use.
18364 (_cpp_input_to_utf8): New function.
18365 (_cpp_init_iconv_buffer): Ditto.
18366 (_cpp_close_iconv_buffer): Ditto.
18367 * cpphash.h: Prototype new functions.
18368 (cpp_buffer): Add input_cset_desc.
18369 * cppinit.c: Add input_charset default.
18370 * cpplib.c (cpp_push_buffer): Support init and
18371 close of iconv.
18372 * cpplib.h (cpp_options): Add input_charset.
18373
18374 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18375
18376 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
18377 * config/alpha/unicosmk.h: Remove a commented-out definition
18378 of ASM_OUTPUT_SECTION_NAME.
18379 * config/stormy16/stormy16.h: Likewise.
18380
18381 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18382
18383 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
18384 (alpha___extern_prefix_sys_stat): ... this.
18385 Apply to <sys/mount.h>, too.
18386 Tweak to match more variations.
18387 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
18388
18389 * fixinc/inclhack.def (alpha___extern_prefix,
18390 alpha___extern_prefix_standards): New hacks to obey
18391 __PRAGMA_EXTERN_PREFIX.
18392 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
18393 test.
18394 * fixinc/tests/base/standards.h: Likewise.
18395
18396 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
18397 variations.
18398 New testcase.
18399 * fixinc/tests/base/pthread.h: Handle it.
18400
18401 * fixincl/inclhack.def (bad_lval): Sort file list.
18402 Add many missing files up to Tru64 UNIX V5.1B.
18403 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
18404 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
18405 order.
18406
18407 * fixinc/fixincl.x: Regenerate.
18408
18409 2004-01-16 Mark Mitchell <mark@codesourcery.com>
18410
18411 * version.c (version_string): Change to 3.5.0.
18412 * doc/include/gcc-common.texi (version-GCC): Likewise.
18413
18414 2004-01-16 Jan Hubicka <jh@suse.cz>
18415
18416 * i386.md (load_tp_di): Fix pasto.
18417
18418 PR opt/13608
18419 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
18420
18421 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
18422 pp_c_character_constant, pp_c_floating_constant,
18423 pp_c_additive_expression, pp_c_shift_expression,
18424 pp_c_equality_expression, pp_c_and_expression,
18425 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
18426 pp_c_logical_and_expression): Remove inline modifier.
18427 * dwarf2out.c (get_AT): Likewise.
18428 * et-forest.c (et_splay): Likewise.
18429 * ra.h (ra_alloc, ra_calloc): Likewise
18430
18431 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18432
18433 * config/frv/frv-protos.h: Fix comment formatting.
18434 * config/frv/frv.c: Likewise.
18435 * config/frv/frv.h: Likewise.
18436 * config/frv/frv.md: Likewise.
18437 * config/frv/frvbegin.c: Likewise.
18438 * config/frv/frvend.c: Likewise.
18439
18440 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18441
18442 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
18443 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
18444 LINKER_DOES_NOT_WORK_WITH_DWARF2.
18445 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
18446
18447 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
18448
18449 PR 11864
18450 * postreload.c (reload_cse_simplify_operands): Don't remove
18451 implicit extension from LOAD_EXTEND_OP.
18452
18453 2004-01-16 Jan Hubicka <jh@suse.cz>
18454
18455 PR opt/11350
18456 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
18457 after reload.
18458 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
18459 rtl_try_redirect_by_replacing_branch): Likewise.
18460
18461 2004-01-15 Geoffrey Keating <geoffk@apple.com>
18462
18463 PR pch/13689
18464 * alias.c (struct alias_set_entry): Mark for GC.
18465 (alias_sets): Make static, mark for GC.
18466 (record_alias_subset): Use GC to allocate alias structures.
18467 * varray.c (element): Make generic varrays GCed.
18468
18469 PR pch/13361
18470 * c-typeck.c (constructor_asmspec): Delete.
18471 (struct initializer_stack): Delete field 'asmspec'.
18472 (start_init): Delete saving of asmspec.
18473 (finish_init): Don't update constructor_asmspec.
18474 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
18475 * stmt.c (expand_asm): Duplicate strings from tree.
18476 (expand_asm_operands): Likewise.
18477 * tree.c (tree_size): Update computation of size of STRING_CST.
18478 (make_node): Don't make STRING_CST nodes.
18479 (build_string): Allocate string with tree node.
18480 * tree.def (STRING_CST): Update comment.
18481 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
18482 (tree_string): Place contents of string in tree node.
18483 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
18484 from tree.
18485
18486 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
18487 altivec operands.
18488
18489 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18490
18491 * c-common.h: Fix comment formatting.
18492 * c-cppbuiltin.c: Likewise.
18493 * c-pragma.c: Likewise.
18494 * calls.c: Likewise.
18495 * collect2.c: Likewise.
18496 * cppcharset.c: Likewise.
18497 * cpptrad.c: Likewise.
18498 * dbxout.c: Likewise.
18499 * defaults.h: Likewise.
18500 * dwarf2out.c: Likewise.
18501 * fold-const.c: Likewise.
18502 * genautomata.c: Likewise.
18503 * genconditions.c: Likewise.
18504 * genflags.c: Likewise.
18505 * gengtype.c: Likewise.
18506 * integrate.c: Likewise.
18507 * loop.c: Likewise.
18508 * predict.c: Likewise.
18509 * sdbout.c: Likewise.
18510
18511 2004-01-15 Zack Weinberg <zack@codesourcery.com>
18512
18513 * config/ia64/ia64.md (*movti_internal): C output template
18514 extracted to ia64.c.
18515 (*movti_internal_reg): Delete.
18516 (reload_inti, reload_outti): Use the correct mode on operand 2
18517 in the first place, don't fix it up in the output template.
18518 (movtf, reload_ointf, reload_outtf): New expanders.
18519 (*movtf_internal): New define_insn_and_split.
18520 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
18521 make static; do not hand TFmode CONST_DOUBLEs to split_double.
18522 (ia64_split_tmode_move): New function, body mostly pulled
18523 from ia64.md:*movti_internal.
18524 (ia64_function_arg_words): New function, extracted common
18525 logic from ia64_function_arg et seq.
18526 (ia64_function_arg_offset): Likewise. Handle correctly the
18527 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
18528 (ia64_function_arg, ia64_function_arg_partial_nregs)
18529 (ia64_function_arg_advance): Use ia64_function_arg_words and
18530 ia64_function_arg_offset.
18531 (ia64_function_value): TCmode does not go in float regs.
18532 (ia64_secondary_reload_class): Also handle TFmode.
18533 * config/ia64/ia64-protos.h: Remove prototype for
18534 ia64_split_timode; add prototype for ia64_split_tmode_move.
18535
18536 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18537
18538 * Makefile.in (MAINT): Make it an immediate assignment.
18539
18540 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18541
18542 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
18543
18544 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18545
18546 * config/h8300/coff.h: Replace Hitachi with Renesas.
18547 * config/h8300/elf.h: Likewise.
18548 * config/h8300/h8300-protos.h: Likewise.
18549 * config/h8300/h8300.c: Likewise.
18550 * config/h8300/h8300.h: Likewise.
18551 * config/h8300/h8300.md: Likewise.
18552 * config/h8300/lib1funcs.asm: Likewise.
18553
18554 2004-01-15 Andrew Pinski <apinski@apple.com>
18555
18556 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
18557 around it.
18558
18559 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18560
18561 * config/h8300/h8300.c (h8300_return_in_memory): New.
18562 (TARGET_STRUCT_VALUE_RTX): Likewise.
18563 (TARGET_RETURN_IN_MEMORY): Likewise.
18564 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
18565 (RETURN_IN_MEMORY): Likewise.
18566
18567 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18568
18569 PR optimization/13375
18570 * gcse.c (handle_avail_expr): Just return if the source is not a
18571 single set.
18572
18573 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18574 Daniel Jacobowitz <drow@mvista.com>
18575
18576 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
18577 (EQUIV): Define.
18578 (ARM_FUNC_ALIAS): New macro.
18579 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
18580 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
18581
18582 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18583
18584 PR optimization/12372
18585 * calls.c (expand_call): Add call_fusage data for stack arguments in
18586 constant calls.
18587
18588 2004-01-15 Alan Modra <amodra@bigpond.net.au>
18589
18590 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
18591 (rs6000_elf_declare_function_name): Formatting.
18592 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
18593
18594 2004-01-15 Jan Hubicka <jh@suse.cz>
18595
18596 PR bootstrap/13692
18597 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
18598 previous patch.
18599
18600 2004-01-15 Richard Henderson <rth@redhat.com>
18601
18602 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
18603 integer regs of the same call-savedness.
18604
18605 2004-01-15 Andreas Schwab <schwab@suse.de>
18606
18607 PR bootstrap/13562
18608 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
18609 status for NOTB/NOTW/NEGW methods.
18610
18611 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18612
18613 * doc/invoke.texi: Update dump file names. Fix a typo.
18614
18615 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18616
18617 * builtins.c (expand_builtin_va_end): Don't use
18618 EXPAND_BUILTIN_VA_END.
18619 * system.h (EXPAND_BUILTIN_VA_END): Poison.
18620 * config/d30v/d30v.h: Remove a commented-out definition of
18621 EXPAND_BUILTIN_VA_END.
18622 * config/stormy16/stormy16.h: Likewise.
18623
18624 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18625
18626 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
18627 * targhooks.c (default_struct_value_rtx): Don't use
18628 STRUCT_VALUE_INCOMING_REGNUM.
18629
18630 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18631
18632 PR bootstrap/12744
18633 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
18634 GENINSRC and not parsedir. Define srcextra as a langhook.
18635 * configure: Regenerate.
18636 * Makefile.in: Suppress default .l.c rule. Don't substitute
18637 parsedir and delete all references throughout. Conditionally define
18638 rule for srcextra dependent on GENINSRC.
18639 (stmp-docobjdir): Delete.
18640 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
18641 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
18642 and gengtype-yacc.h back to source directory.
18643 (maintainer-clean): Delete all parse files in source directory.
18644 (distclean): Delete generated files.
18645
18646 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
18647 (objc-parse.c, objc-parse.y): Don't use parsedir.
18648 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
18649 directory if requested.
18650 (po-generated): Don't use parsedir.
18651 (objc.maintainer-clean): Delete above files from source directory.
18652
18653 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18654
18655 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
18656
18657 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18658
18659 * doc/tm.texi: Replace RETURN_IN_MEMORY with
18660 TARGET_RETURN_IN_MEMORY.
18661
18662 2004-01-15 Jan Hubicka <jh@suse.cz>
18663
18664 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
18665 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
18666 functions accepting SSE arguments
18667 (function_arg): Warn only when asked to warn.
18668 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
18669
18670 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
18671
18672 * c-parse.in (stmts_and_decls): Make label at end of compound
18673 statement a hard error.
18674
18675 2004-01-14 Jan Hubicka <jh@suse.cz>
18676
18677 * cgraph.c (create_edge): Use local.redefined_extern_inline.
18678 * cgraph.h (cgraph_local_info): Sort fields by size; add
18679 redefined_extern_inline
18680 (cgraph_global_info): Sort fields by size.
18681 (cgraph_node): Likewise.
18682 * cgraphunit.c (cgraph_finalize_function): Se
18683 local.redefined_extern_inline on redefinition.
18684 (cgraph_analyze_function): Use it; fix formating.
18685
18686 2004-01-14 Jan Hubicka <jh@suse.cz>
18687
18688 PR c++/10776
18689 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
18690 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
18691 bitmaps
18692 (cache_size): New variable
18693 (add_dependence): Update use; canonize early memory locations
18694 (sched_analyze_1): Likewise.
18695 (sched_analyze_2): Likewise.
18696 (init_dependency_caches): Initialize bitmaps.
18697 (free_dependency_caches): Free bitmaps
18698
18699 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18700
18701 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
18702 targetm.calls.strict_argument_naming().
18703 * target.h: Likewise.
18704
18705 2004-01-14 Richard Henderson <rth@redhat.com>
18706
18707 PR debug/13231
18708 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
18709 instructions.
18710
18711 2004-01-14 Richard Henderson <rth@redhat.com>
18712
18713 PR c++/12491
18714 * except.c (struct eh_region): Add u.fixup.resolved.
18715 (resolve_one_fixup_region): Split out from ...
18716 (resolve_fixup_regions): ... here.
18717
18718 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18719
18720 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
18721
18722 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18723
18724 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
18725 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
18726 (STRUCT_VALUE): Remove.
18727
18728 2004-01-14 Steven Bosscher <stevenb@suse.de>
18729
18730 * system.h: Poison PROMOTED_MODE
18731 * integrate.c (expand_inline_function): Don't mention the
18732 PROMOTED_MODE.
18733 * loop.c (update_giv_derive): Same.
18734 * tree.h (DECL_RTL): Same.
18735
18736 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
18737
18738 PR target/9365
18739 * sh.c (gen_block_redirect): Add special handling of RETURN.
18740 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
18741 far branch target (i.e. it's a return).
18742
18743 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18744
18745 * regrename.c (find_oldest_value_reg): Fix a warning.
18746
18747 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18748
18749 PR bootstrap/12527
18750 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
18751 Move linux-gas.h and linux-elf.h before aout.h.
18752 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
18753 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
18754
18755 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18756
18757 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
18758 (CONST_INT, VOIDmode, ...).
18759
18760 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18761
18762 * regrename.c (find_oldest_value_reg): If the replacement uses
18763 multiple hard registers, check that all of them are in CLASS.
18764
18765 2004-01-14 Jan Hubicka <jh@suse.cz>
18766
18767 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
18768 impossible.
18769
18770 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
18771
18772 * Makefile.in: Define MAINT from --enable-maintainer-mode.
18773
18774 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
18775
18776 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
18777 Calculate always vrsave_mask if TARGET_ALTIVEC.
18778 (rs6000_emit_prologue): Emit code for vrsave
18779 only if TARGET_ALTIVEC_VRSAVE.
18780 (rs6000_emit_epilogue): Likewise.
18781
18782 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
18783
18784 * config/sparc/sparc.md (tie_add32): Fix pasto.
18785 (tie_add64): Likewise.
18786
18787 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18788
18789 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
18790
18791 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18792
18793 * config/iq2000/iq2000-protos.h: Fix comment formatting.
18794 * config/iq2000/iq2000.c: Likewise.
18795 * config/iq2000/iq2000.md: Likewise.
18796
18797 2004-01-14 J. Brobecker <brobecker@gnat.com>
18798
18799 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
18800 (subrange_type_die): Add handle for nameless subrange types.
18801
18802 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18803
18804 * config/h8300/h8300-protos.h: Replace do_movsi with
18805 h8300_expand_movsi.
18806 * config/h8300/h8300.c (do_movsi): Change to
18807 h8300_expand_movsi.
18808 * config/h8300/h8300.md (movsi): Replace do_movsi with
18809 h8300_expand_movsi.
18810 (movsf): Likewise.
18811
18812 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18813
18814 * config/h8300/h8300.c (dosize): Change to
18815 h8300_emit_stack_adjustment. Update callers.
18816
18817 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18818
18819 * config/h8300/h8300.md (movstrictqi): Add an alternative with
18820 the source being post_inc. Tighten the predicate for the
18821 destination to register_operand.
18822 (movstricthi): Likewise.
18823
18824 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18825
18826 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
18827 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
18828 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
18829
18830 2004-01-14 Jan Hubicka <jh@suse.cz>
18831
18832 Partial fix PR c++/12850
18833 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
18834 at zero nest level.
18835
18836 2004-01-13 Bernardo Innocenti <bernie@develer.com>
18837
18838 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
18839 pseudo-register.
18840
18841 2004-01-13 Devang Patel <dpatel@apple.com
18842
18843 PR debug/7078
18844 * dbxout.c (dbxout_symbol_name): Emit mangled names for
18845 NAMESPACE_DECL memebers.
18846
18847 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
18848
18849 PR c++/12709
18850 * c-common.c (finish_fname_decls): Use the chain only if the
18851 tree is an expr_stmt.
18852
18853 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
18854
18855 * rtl.def: Add comment about new option in automata_option.
18856
18857 * genautomata.c (PROGRESS_OPTION): New macro.
18858 (progress_flag): New global variable.
18859 (gen_automata_option): Process `progress'.
18860 (transform_insn_regexps, check_unit_distributions_to_automata,
18861 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
18862 expand_automata, write_automata): Print about the progress only if
18863 progress_flag. Remove fflush.
18864 (initiate_automaton_gen): Process command line flag `-progress'.
18865
18866 * doc/md.texi: Describe the new option.
18867
18868 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18869
18870 * cfg.c (dump_bb): Dump entry edges.
18871
18872 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
18873
18874 * arm.c (thumb_legitimate_address_p): Only allow constant pool
18875 references from SImode.
18876 * arm.md (thumb_movhi_insn): Don't allow minipool references.
18877
18878 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18879
18880 * system.h (TEXT_SECTION): Poison.
18881 * varasm.c (text_section): Don't use TEXT_SECTION.
18882 * config/sh/sh.c (sh_file_start): Fix a comment typo.
18883 * doc/tm.texi (TEXT_SECTION): Remove.
18884
18885 2004-01-13 Ben Elliston <bje@wasabisystems.com>
18886
18887 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
18888
18889 2004-01-12 James E Wilson <wilson@specifixinc.com>
18890
18891 * unwind-libunwind.c: Delete.
18892
18893 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18894
18895 PR 13656
18896 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
18897 oldtype is set, set *newtypep or *oldtypep too. Do not set
18898 them at the very end.
18899 (validate_proto_after_old_defn): Restructure for comprehensibility;
18900 make error messages clearer.
18901
18902 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18903
18904 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
18905 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
18906 * varray.c: No need to prototype error.
18907 (varray_check_failed): Wrap long string onto two lines.
18908 (varray_underflow): New function.
18909
18910 2004-01-13 Steven Bosscher <stevenb@suse.de>
18911
18912 PR c++/13376
18913 * function.h (struct function): Kill `name' field.
18914 (current_function_name): Make it an extern function.
18915 * function.c (current_function_name): New function.
18916 * graph.c: Update all uses of current_function_name.
18917 * gcse.c: Likewise.
18918 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
18919 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
18920 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
18921 instead of a strcmp with "main".
18922
18923 2004-01-13 Jan Hubicka <jh@suse.cz>
18924
18925 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
18926
18927 * cgraphunit.c (cgraph_optimize_function): Always do
18928 optimize_inline_calls when there is always_inline callee.
18929 (cgraph_decide_inlining): Fix formating.
18930 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
18931 functions.
18932 (expand_call_inline): Likewise.
18933 * toplev.h (sorry): Fix prototype.
18934
18935 2004-01-12 Roger Sayle <roger@eyesopen.com>
18936
18937 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
18938 conditional jumps that drop through to unconditional jumps or the
18939 end of the sequence.
18940
18941 2004-01-13 Jan Hubicka <jh@suse.cz>
18942
18943 * alias.c (new_alias_set): Construct the alias_set varray.
18944 (init_alias_once): Don't do it here.
18945
18946 2004-01-12 Marc Espie <espie@openbsd.org>
18947
18948 * system.h: handle YYBYACC like YYBISON.
18949
18950 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
18951
18952 PR target/10847
18953 * config.gcc: No longer includes conflicting header sparc/sol2.h when
18954 building on sparc64-*-openbsd*.
18955
18956 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
18957
18958 PR debug/13539
18959 * dbxout.c (dbxout_type): Protected inheritance is not
18960 private but protected.
18961
18962 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
18963
18964 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
18965
18966 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
18967
18968 PR optimization/12508.
18969 * combine.c (try_combine): Remove a dead set in a parallel
18970 even if its destination is a subreg.
18971
18972 Revert:
18973 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
18974 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
18975 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
18976
18977 2004-01-12 Geoffrey Keating <geoffk@apple.com>
18978
18979 * real.c: Update copyright date.
18980 * emit-rtl.c: Likewise.
18981 * rtl.h: Likewise.
18982 * dwarf2out.c: Likewise.
18983 * config/rs6000/darwin-ldouble.c: Likewise.
18984 * config/rs6000/rs6000.md: Likewise.
18985
18986 2004-01-12 David Edelsohn <edelsohn@gnu.org>
18987
18988 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
18989 TFmode to SImode libfuncs.
18990
18991 2004-01-12 Roger Sayle <roger@eyesopen.com>
18992
18993 PR middle-end/11397
18994 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
18995
18996 2004-01-12 Jan Hubicka <jh@suse.cz>
18997
18998 PR opt/12826
18999 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
19000 stored.
19001
19002 PR opt/12863
19003 * cfgcleanup.c (label_is_jump_target_p): Move to...
19004 * rtlanal.c (label_is_jump_target_p): ... here.
19005 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
19006 edges unified with branch edges.
19007
19008 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
19009
19010 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
19011 high word of an integral CONST_DOUBLE.
19012
19013 2004-01-12 Paul Brook <paul@codesourcery.com>
19014
19015 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
19016
19017 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
19018
19019 PR target/13585
19020 * sh-protos.h (check_use_sfunc_addr): Declare.
19021 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
19022 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
19023
19024 2004-01-12 Jan Hubicka <jh@suse.cz>
19025
19026 * alias.c: Invlude varray.h
19027 (alias_sets): Turn into varray.
19028 (get_alias_set_entry): Use VARRAY; mark inline.
19029 (mems_in_disjoint_alias_sets_p): Mark inline.
19030 (record_alias_subset): Use varray.
19031 (init_alias_once): Initialize varray.
19032 (new_alias_set): Grow array.
19033 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
19034
19035 2004-01-12 Jan Hubicka <jh@suse.cz>
19036
19037 Partial fix for PR opt/10776 II
19038 * cselib.c: Include params.h
19039 (cselib_invalidate_mem): Limit amount of nonconflicting memory
19040 locations.
19041 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
19042 * Makefile.in (cselib.o): Depend on params.h
19043
19044 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
19045
19046 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
19047 simplify_unary_operation if the operand has a known mode.
19048
19049 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
19050
19051 PR target/13534
19052 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
19053 predicate to handle 'ld' conform addresses.
19054 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
19055 contraint.
19056 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
19057 are memory contraints.
19058 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
19059 New prototype.
19060 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
19061 Change 'o' to 'Y' constraint.
19062 (*movdf_softfloat64): Ditto.
19063
19064 2004-01-12 Bernardo Innocenti <bernie@develer.com>
19065
19066 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
19067 brace-enclosed syntax in all C output statements.
19068
19069 2004-01-12 David Edelsohn <edelsohn@gnu.org>
19070
19071 PR target/13401
19072 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19073 Objective-C language type value is 14.
19074
19075 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
19076
19077 PR c/12148
19078 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
19079 `int' in a number of places to make sure we always have a SImode
19080 and not a HImode. Add a 'L' suffix to a number of constants.
19081
19082 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19083
19084 * pa.c: Don't include obstack.h.
19085
19086 * pa.md: Correct constraint in pattern for loading PIC label address.
19087
19088 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
19089
19090 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
19091 before defining.
19092
19093 2004-01-11 Steven Bosscher <stevenb@suse.de>
19094
19095 PR fortran/9972
19096 * toplev.c (rest_of_handle_inline): Also consider functions
19097 for deferral if the language is GNU F77.
19098
19099 2004-01-11 Zack Weinberg <zack@codesourcery.com>
19100
19101 * c-decl.c (diagnose_arglist_conflict): Add missing space to
19102 diagnostic messages.
19103
19104 2004-01-11 Jakub Jelinek <jakub@redhat.com>
19105
19106 PR middle-end/13392
19107 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
19108 to drop through label. Don't fall back to SCC even when conditional
19109 jump has not been found.
19110
19111 2004-01-11 Jan Hubicka <jh@suse.cz>
19112
19113 * invoke.texi: Fix syntax error in previous patch.
19114
19115 Partial fix for PR opt/10776
19116 * Makefile.in (reload.o): Include param.h
19117 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
19118 * reload.c: Include params.h.
19119 (find_equiv_reg): Work limiting check.
19120 * invoke.texi: Document.
19121
19122 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
19123
19124 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
19125 out-of-bounds accesses to string constants. Simplify mips16
19126 case accordingly.
19127
19128 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
19129
19130 PR optimization/13469
19131 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
19132 reload_cse_regs (-fnon-call-exceptions only).
19133
19134 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
19135
19136 * config/mcore/lib1.asm: Fix comment formatting.
19137 * config/mcore/mcore-elf.h: Likewise.
19138 * config/mcore/mcore.c: Likewise.
19139 * config/mcore/mcore.h: Likewise.
19140 * config/mcore/mcore.md: Likewise.
19141
19142 2004-01-10 Zack Weinberg <zack@codesourcery.com>
19143
19144 * c-decl.c (duplicate_decls): Break apart into...
19145 (diagnose_arglist_conflict, validate_proto_after_old_defn)
19146 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
19147 ... these new functions. Restructure for comprehensibility.
19148 Remove various archaic special cases. Always report the
19149 location of the previous declaration when a diagnostic is issued.
19150 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
19151 (match_builtin_function_types): Delete unnecessary forward declaration.
19152
19153 2004-01-10 Zack Weinberg <zack@codesourcery.com>
19154
19155 * genautomata.c (make_automaton, NDFA_to_DFA):
19156 Print progress bars with '.' characters instead of '*'.
19157 (build_automaton): Change notes to match.
19158
19159 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
19160
19161 * config/m32r/m32r.md: Use define_constants for unspec and
19162 unspec_volatile.
19163
19164 2004-01-10 Jan Hubicka <jh@suse.cz>
19165
19166 PR opt/11635
19167 * expr.c (expand_expr_real): More curefully expand union casts.
19168
19169 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
19170
19171 * config/m32r/m32r.md (flush_icache): Use 1 for
19172 unspec_volatile.
19173
19174 2004-01-10 David Edelsohn <edelsohn@gnu.org>
19175 James E Wilson <wilson@specifixinc.com>
19176
19177 PR debug/12860
19178 * dbxout.c (dbxout_symbol): Remove initialization of
19179 current_sym_code, current_sym_value, and current_sym_addr.
19180 (dbxout_symbol_location): Same.
19181 (dbxout_prepare_symbol): Zero current_sym_code,
19182 current_sym_value, and current_sym_addr.
19183
19184 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
19185
19186 * tree.c (get_unwidened): Reorder conditions so that the null pointer
19187 check is done first.
19188
19189 2004-01-09 Eric Christopher <echristo@redhat.com>
19190
19191 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
19192 if we're running mark_constant_function.
19193
19194 2004-01-09 Jeff Bailey <jbailey@nisa.net>
19195
19196 PR target/12561
19197 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
19198
19199 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
19200
19201 PR debug/11231
19202 * dbxout.c (dbxout_type_fields): Return if any item is
19203 error_mark_node or the type is error_mark_node.
19204
19205 2004-01-09 Geoffrey Keating <geoffk@apple.com>
19206
19207 * config/rs6000/darwin-ldouble.c: Add big comment explaining
19208 exactly what is expected as a 'long double'.
19209 (_xlqadd): When a value to be returned is representable as a
19210 'double', just return it directly, do not construct it using a union.
19211 Also, correct final fixup.
19212 (_xlqmul): Likewise.
19213 (_xlqdiv): Likewise.
19214 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
19215
19216 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
19217
19218 2004-01-09 Richard Henderson <rth@redhat.com>
19219
19220 * recog.c (constrain_operands): Validate mem operands.
19221
19222 2004-01-09 James E Wilson <wilson@specifixinc.com>
19223
19224 * gcc.c (init_spec): Remove -lunwind from shared case.
19225 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
19226
19227 2004-01-09 Steve Ellcey <sje@cup.hp.com>
19228
19229 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
19230 * configure: Regenerate
19231
19232 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
19233
19234 PR c/11234
19235 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
19236 between function and object pointers.
19237 (digest_init): When comparing a pointer to function type to the
19238 target type, only apply TREE_TYPE once to the pointer to function
19239 type.
19240 * except.c (for_each_eh_label_1): Treat data as a pointer to a
19241 function pointer rather than casting it to a function pointer.
19242 (for_each_eh_label): Update caller.
19243 * recog.h (struct insn_data): Use a struct or union for output.
19244 * genoutput.c (output_insn_data): Update.
19245 * final.c (get_insn_template): Update.
19246
19247 2004-01-09 Mark Mitchell <mark@codesourcery.com>
19248
19249 * expr.h (expand_expr): Make it a macro, not a function.
19250 (expand_expr_real): New function.
19251 * expr.c (store_expr): Adjust logic for deciding whether or not to
19252 copy the value returned by expand_expr.
19253 (expand_expr): Rename to ...
19254 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
19255 calls to language hooks.
19256 * c-common.h (c_expand_expr): Adjust prototype.
19257 * c-common.c (c_expand_expr): Add alt_rtl parameter.
19258 * langhooks-def.h (lhd_expand_expr): Change prototype.
19259 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
19260 * langhooks.h (lang_hooks): Change type of expand_expr.
19261 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
19262 (last_expr_alt_rtl): Likewise.
19263 (expand_expr_stmt_value): Set last_expr_alt_rtl.
19264 (clear_last_expr): Clear it.
19265 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
19266 (expand_end_bindings): Save and restor last_expr_alt_rtl.
19267 * tree.def (RTL_EXPR): Give it an additional operand.
19268 * tree.h (RTL_EXPR_ALT_RTL): New macro.
19269
19270 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19271
19272 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
19273 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
19274
19275 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19276
19277 PR target/13380.
19278 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
19279 or (ne:SI (reg:CC 17) (const_int 0)).
19280 Be specific about modes wherever possible.
19281
19282 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19283
19284 * config/m32r/m32r.c (m32r_expand_block_move): Call
19285 gen_movestrsi_internal with two more arguments.
19286 (m32r_output_block_move): Adjust operand numbers.
19287 Properly update the source and destination pointers.
19288 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
19289 'r+'. Change the set detinations to match_operand.
19290
19291 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19292
19293 * final.c (FIRST_INSN_ADDRESS): Remove.
19294 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
19295 * system.h (FIRST_INSN_ADDRESS): Poison.
19296 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
19297 * config/m32r/m32r-protos.h: Remove the prototype for
19298 m32r_first_insn_address.
19299 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
19300 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
19301 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
19302
19303 2004-01-09 J. Brobecker <brobecker@gnat.com>
19304
19305 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
19306 we just created.
19307 (is_ada_subrange_type): DIEs for enumeration subtypes should be
19308 emitted as subrange types too.
19309 (subrange_type_die): Add handling of enumeration subtypes.
19310
19311 2004-01-08 Richard Henderson <rth@redhat.com>
19312
19313 PR opt/12441
19314 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
19315 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19316 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19317 (ix86_address_cost): Be prepared for SUBREGed registers.
19318 (legitimate_address_p): Accept SUBREGed registers.
19319
19320 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
19321
19322 * Makefile.in: Rename configure.in to configure.ac
19323 * doc/sourcebuild.texi: Likewise.
19324 * configure: Regenerate.
19325 * config.in: Regenerate.
19326
19327 2004-01-08 Stuart Hastings <stuart@apple.com>
19328
19329 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
19330
19331 2004-01-08 Jan Hubicka <jh@suse.cz>
19332
19333 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
19334
19335 2004-01-08 Geoffrey Keating <geoffk@apple.com>
19336
19337 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
19338 (UNSPEC_FIX_TRUNC_TF): New constant.
19339 (movtf_internal): Make splitter active only when insn is active.
19340 (extenddftf2): Rewrite to properly load zero into low part.
19341 (extenddftf2_internal): New.
19342 (extendsftf2): Rewrite.
19343 (truncdftf2): Correct length.
19344 (floatditf2): Delete.
19345 (fix_trunc_helper): New.
19346 (fix_trunctfdi2): Use fix_trunc_helper.
19347 (fix_trunctfsi2): Likewise.fix_trunc
19348 (fix_trunctfsi2_internal): New.
19349
19350 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
19351 addresses are legitimate on Darwin even when flag_pic.
19352 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
19353 non-offsettable addresses for loads of TFmode constants.
19354
19355 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19356
19357 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
19358 variables in the appropriate bss section.
19359
19360 2004-01-09 Alan Modra <amodra@bigpond.net.au>
19361
19362 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
19363 target_flags has MASK_POWERPC64 when -m64.
19364 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
19365 to 620, 630, power3, power4 and rs64a entries.
19366 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
19367
19368 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
19369
19370 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
19371 floating-point constants.
19372
19373 2004-01-08 J. Brobecker <brobecker@gnat.com>
19374
19375 * dwarf2out.c (subrange_type_die): Add context_die parameter.
19376 Create the subrange_type DIE using the given context DIE.
19377 (modified_type_die): Update call to subrange_type_die.
19378
19379 2004-01-08 Zack Weinberg <zack@codesourcery.com>
19380
19381 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
19382 Add multiple-include guard.
19383
19384 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
19385
19386 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
19387 all vector constant loadable by vsplt*.
19388 (output_vec_const_move): Likewise.
19389
19390 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
19391
19392 PR c/6024
19393 * c-typeck.c (comptypes): Only treat enumerated types in the same
19394 translation unit as compatible with each other when they are the
19395 same type.
19396 * doc/extend.texi: Update.
19397
19398 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
19399
19400 PR c/12165
19401 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
19402 array type from the array element type.
19403
19404 2004-01-07 Alan Modra <amodra@bigpond.net.au>
19405
19406 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
19407 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
19408 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
19409 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
19410 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
19411
19412 2004-01-06 Eric Christopher <echristo@redhat.com>
19413
19414 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
19415 (DWARF2_DEBUGGING_INFO): Define.
19416 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
19417 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
19418 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
19419 for irix as.
19420 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
19421 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
19422 * config/mips/iris5gas.h: Ditto.
19423 (DBX_DEBUGGING_INFO): Remove.
19424 (DWARF2_DEBUGGING_INFO): Ditto.
19425 (MIPS_DEBUGGING_INFO): Ditto.
19426 (PREFERRED_DEBUGGING_TYPE): Ditto.
19427 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
19428 (PREFERRED_DEBUGGING_TYPE): Ditto.
19429 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
19430 * config/mips/elf64.h: Ditto.
19431
19432 2004-01-06 Jan Hubicka <jh@suse.cz>
19433
19434 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
19435 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
19436
19437 2004-01-06 Geoffrey Keating <geoffk@apple.com>
19438
19439 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
19440 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
19441 * config/rs6000/darwin-ldouble.c: New.
19442
19443 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
19444 for constants.
19445 (constant_subword): Delete.
19446 * rtl.h (constant_subword): Delete prototype.
19447 (immed_double_const): Is not in varasm.c.
19448 * simplify-rtx.c (simplify_immed_subreg): New.
19449 (simplify_subreg): Use simplify_immed_subreg.
19450
19451 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
19452 than trying to generate RTL directly.
19453 (fix_trunctfsi2): Use expand_fix rather than trying to generate
19454 RTL directly.
19455
19456 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
19457
19458 2004-01-06 David Edelsohn <edelsohn@gnu.org>
19459
19460 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
19461 function into a separate macro.
19462 (read_only_data_section): Add void argument.
19463 (private_data_section): Same.
19464 (read_only_private_data_section): Same.
19465 (toc_section): Same.
19466
19467 2004-01-06 Jan Hubicka <jh@suse.cz>
19468
19469 * invoke.texi: Remove typo in last change.
19470
19471 PR target/10301
19472 * config.gcc: Accept opteron and athlon-64 as variants
19473 of k8.
19474 * i386.c (override_options): Likewise.
19475 * invoke.texi (i386 -mtune): Expand documentation.
19476
19477 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19478
19479 * alias.c: Fix comment typos.
19480 * builtins.c: Likewise.
19481 * cfg.c: Likewise.
19482 * df.c: Likewise.
19483 * dominance.c: Likewise.
19484 * dwarf2out.c: Likewise.
19485 * emit-rtl.c: Likewise.
19486 * expr.c: Likewise.
19487 * final.c: Likewise.
19488 * fold-const.c: Likewise.
19489 * gcse.c: Likewise.
19490 * genattrtab.c: Likewise.
19491 * genrecog.c: Likewise.
19492 * gensupport.c: Likewise.
19493 * ggc-zone.c: Likewise.
19494 * integrate.c: Likewise.
19495 * local-alloc.c: Likewise.
19496 * loop.c: Likewise.
19497 * recog.c: Likewise.
19498 * regmove.c: Likewise.
19499 * reg-stack.c: Likewise.
19500 * reorg.c: Likewise.
19501 * rtlanal.c: Likewise.
19502 * rtl.h: Likewise.
19503 * sched-ebb.c: Likewise.
19504 * simplify-rtx.c: Likewise.
19505 * toplev.c: Likewise.
19506 * varasm.c: Likewise.
19507
19508 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19509
19510 * doc/install.texi: Fix typos.
19511 * doc/invoke.texi: Likewise.
19512 * doc/md.texi: Likewise.
19513
19514 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19515
19516 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
19517
19518 2004-01-06 Jan Hubicka <jh@suse.cz>
19519
19520 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
19521 (function_arg_advance): Do not pass aggregates in SSE; deal handling
19522 of MMX_REGPARM.
19523 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
19524 add MMX_REGPARM.
19525 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
19526 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
19527 (MMX_REGPARM_MAX): Similarly for -mmmx.
19528
19529 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19530
19531 * config/sh/linux.h: Fix comment formatting.
19532 * config/sh/netbsd-elf.h: Likewise.
19533 * config/sh/sh.c: Likewise.
19534 * config/sh/sh.h: Likewise.
19535 * config/sh/vxworks.h: Likewise.
19536
19537 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19538
19539 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
19540 * toplev.c (output_file_directive): Don't use
19541 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
19542
19543 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
19544
19545 * toplev.c: Fix broken checkin of 2003-12-30.
19546
19547 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
19548
19549 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
19550 (USING_MMAP): We don't support non-mmap.
19551 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
19552 large objects.
19553 (struct page_entry): Remove bytes_free.
19554 (struct page_table_chain): Remove.
19555 (struct globals): Remove page_table member.
19556 (loookup_page_table_entry): Function deleted.
19557 (set_page_table_entry): Ditto.
19558 (ggc_allocated_p): No longer need page table lookups.
19559 (ggc_marked_p): Ditto.
19560 (alloc_small_page): Don't care about bytes_free anymore.
19561 (alloc_large_page): Round up size.
19562 (ggc_alloc_zone_1): Mark large objects as such, and calculate
19563 their size the new way.
19564 Remove page table lookups and setting.
19565 (ggc_get_size): Calculate large object size the new way.
19566 (sweep_pages): Redo to account for fact that we no longer have
19567 bytes_free.
19568 (ggc_collect): No longer need to reincrement bytes_free.
19569 (ggc_pch_alloc_object): Handle new large objects properly.
19570 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
19571
19572 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19573
19574 * doc/invoke.texi: Remove a page break.
19575
19576 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19577
19578 * config/avr/avr.c (avr_output_function_prologue): Remove an
19579 extra pair of curly braces.
19580
19581 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19582
19583 * config/mn10300/mn10300.c: Fix comment formatting.
19584 * config/mn10300/mn10300.h: Likewise.
19585
19586 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19587
19588 * tree.h: Update documentation on nothrow_flag.
19589 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
19590 types.
19591
19592 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19593
19594 * doc/invoke.texi: Remove traces of dead ports.
19595
19596 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19597
19598 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
19599 option.
19600
19601 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19602
19603 PR target/12945
19604 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
19605 counter labels.
19606 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
19607 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
19608 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
19609 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
19610 (mips_symbol_insns): Don't trust the local/global classification.
19611 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
19612 (override_options): Make -mabicalls -fno-unit-at-a-time imply
19613 -mno-explicit-relocs.
19614 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
19615 between local and global symbols.
19616
19617 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19618
19619 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
19620 (mips_preferred_reload_class): Declare.
19621 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
19622 (EXTRA_CONSTRAINT): Update accordingly.
19623 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
19624 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
19625 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
19626 mips_dangerous_for_la25_p.
19627 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
19628 if mips_dangerous_for_la25_p.
19629
19630 2004-01-05 Bernardo Innocenti <bernie@develer.com>
19631
19632 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
19633 warning.
19634
19635 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
19636
19637 * configure.ac: Use AC_PROG_CPP_WERROR.
19638 * configure: Regenerate.
19639
19640 2004-01-04 Zack Weinberg <zack@codesourcery.com>
19641
19642 * .cvsignore: Add autom4te.cache.
19643
19644 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
19645
19646 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
19647 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
19648 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
19649 then architecture options, then ABI options. General rewording.
19650
19651 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
19652
19653 PR c/3414
19654 * doc/extend.texi: Clarify definition of malloc attribute.
19655
19656 2004-01-04 Jan Hubicka <jh@suse.cz>
19657
19658 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
19659 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
19660 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
19661 (cgraph_inline_p): Add extra argument reason.
19662 * cgraphunit.c: Minor formating fixes.
19663 cgraph_first_inlined_callee): New functions.
19664 (record_call_1): Record builtins too.
19665 (cgraph_analyze_function): Update inline_failed messages.
19666 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
19667 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
19668 (cgraph_check_inline_limits): Likewise; Add argument reason.
19669 (cgraph_set_inline_failed): New static function.
19670 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
19671 reasons.
19672 (cgraph_inline_p): Add new argument reason.
19673 * tree-inline.c (expand_call_inline): Update warning.
19674
19675 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
19676
19677 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
19678 with modern equivalents.
19679 * configure: Regenerate.
19680
19681 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
19682 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
19683 * configure: Regenerate.
19684
19685 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
19686
19687 * configure.in: Rename to configure.ac.
19688 * configure.ac: Renamed from configure.in; make minimum necessary
19689 changes for autoconf 2.5x.
19690 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
19691 * configure: Regenerate with autoconf 2.57.
19692
19693 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
19694
19695 * config/mips/linux.h: Fix comment formatting.
19696 * config/mips/mips.c: Likewise.
19697 * config/mips/mips.h: Likewise.
19698 * config/mips/mips.md: Likewise.
19699 * config/mips/netbsd.h: Likewise.
19700 * config/mips/windiss.h: Likewise.
19701
19702 2004-01-02 Richard Henderson <rth@redhat.com>
19703
19704 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
19705 for sse and 387; add suppression for mmx.
19706
19707 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
19708
19709 * loop.c (loop_optimize): Free all loops_info's mems.
19710
19711 * c-typeck.c (finish_init): Free spelling_base before
19712 setting it again.
19713
19714 * cfgloop.c (flow_loops_find): Always free the sbitmap
19715 headers.
19716
19717 * predict.c (estimate_probability): Free bbs after being
19718 done with it.
19719
19720 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19721
19722 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
19723 const_8bit_operand and call_address_operand.
19724
19725 2004-01-02 Jan Hubicka <jh@suse.cz>
19726
19727 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
19728 when there is nothing to inline but warnings are requested.
19729 (cgraph_decide_inlining): Fix memory leak.
19730
19731 2004-01-02 Jan Hubicka <jh@suse.cz>
19732
19733 * expr.c (store_constructor): Fix pasto in previous patch.
19734
19735 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19736
19737 * config/i386/cygming.h: Fix comment formatting.
19738 * config/i386/djgpp.h: Likewise.
19739 * config/i386/gthr-win32.c: Likewise.
19740 * config/i386/i386-interix.h: Likewise.
19741 * config/i386/i386.c: Likewise.
19742 * config/i386/i386.h: Likewise.
19743 * config/i386/openbsd.h: Likewise.
19744 * config/i386/winnt.c: Likewise.
19745 * config/i386/xm-mingw32.h: Likewise.
19746
19747 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
19748
19749 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
19750 copyright and last modification dates.
19751
19752 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
19753
19754 * doc/install.texi (Specific): Mention x86_64.
19755
19756 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19757
19758 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
19759 Call force_operand on plus_constant result.
19760
19761 2004-01-01 Jan Hubicka <jh@suse.cz>
19762
19763 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
19764 * expr.c (store_constructor): Use vec_init pattern.
19765 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
19766 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
19767 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
19768 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
19769 New patterns.
19770 (sse2_unpc?pd): Fix pattern.
19771 (sse2_movlpd): Kill.
19772 (sse2_movsd): Deal with movlpd too.
19773 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
19774 (ix86_expand_vector_init): New.
19775 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
19776 * md.texi (vec_set, vec_extract): Document
19777
19778 2003-12-31 Jan Hubicka <jh@suse.cz>
19779
19780 PR opt/13473
19781 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
19782 ASM input operands
19783
19784 PR opt/12617
19785 * toplev.c (dump_file_index): Reorder ce3 and bbro.
19786 (dump_file): Likewise.
19787 (rest_of_compilation): Likewise.
19788
19789 PR debug/13367
19790 * cgraph.c (cgraph_function_possibly_inlined): Even with
19791 flag_really_no_inline we inline always_inline functions.
19792 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
19793 for non-always_inline functions when there is flag_really_no_inline.
19794 (cgraph_decide_inlining): Limit work done when not inlining.
19795 (cgraph_decide_inlining_incrementally): Likewise.
19796 (cgraph_optimize_function): Check whether something got inlined.
19797 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
19798 extern inline functions when not inlining.
19799
19800 * opts.c (decode_options): Disable crossjumping at -O1
19801 * invoke.texi (-O1): Document change.
19802
19803 See ChangeLog.10 for earlier changes.
This page took 0.920809 seconds and 6 git commands to generate.